/* =========================
   Webits 2.0 — Design Tokens
   ========================= */
:root {
  /* Brand */
   --color-primary: #5A43F7;
   --color-primary-600: #4E38EA;
   --color-primary-700: #432FD8;
   --color-primary-800: #3827C4;

  --color-secondary: #2EE6D1;      /* modern teal-cyan */
  --color-secondary-600: #25cbb9;
  --color-secondary-700: #20b3a4;

  /* Text & surface */
  --color-bg: #FFFFFF;
  --color-heading: #080412;
  --color-text: rgba(0,0,0,0.70);
  --color-muted: #6B7280;

  /* Borders & UI */
  --color-border: #E5E7EB;
  --color-border-strong: #D1D5DB;

  /* States */
  --color-success: #16A34A;
  --color-warning: #D97706;
  --color-danger:  #DC2626;

  /* Focus (AA on white) */
  --color-focus: #1D4ED8;

  /* Layout */
  --container-max: 1500px;
  --container-pad: clamp(16px, 3vw, 32px);
  --section-pad-y: clamp(80px, 11vw, 128px);
  
  /* Spacing scale (px) → use for margins/padding/gaps) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Radii */
  --radius-1: 4px;
  --radius-2: 8px;
  --radius-3: 12px;
  --radius-4: 20px;
  --radius-round: 999px;

  /* Shadows (subtle, elevated) */
  --shadow-1: 0 1px 2px rgba(0,0,0,0.06), 0 1px 1px rgba(0,0,0,0.06);
  --shadow-2: 0 8px 30px rgba(0,0,0,0.10);

  /* Motion */
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur-1: 200ms;
  --dur-2: 260ms;
  --motion-intro-reveal-duration: 860ms;
  --motion-intro-reveal-distance: 20px;
  --motion-intro-reveal-blur: 8px;
  --motion-intro-reveal-ease: cubic-bezier(0.18, 0.88, 0.24, 1);

  /* Typography — families
     Current production choice = PP Mori
  */
  --font-sans-pp-mori: "PP Mori", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  --font-display-pp-mori: var(--font-sans-pp-mori);
  --font-sans-founders: "Founders Grotesk Text", "PP Mori", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  --font-display-founders: "Founders Grotesk", "Founders Grotesk Text", "PP Mori", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  --font-sans: var(--font-sans-pp-mori);
  --font-display: var(--font-display-pp-mori);

  /* Typography — shared heading scale
     H1 follows the homepage hero. H2 follows the homepage section title rhythm.
     Keep section templates on these tokens unless a local layout has a real constraint.
  */
  --fs-h1: clamp(46px, 6vw, 88px);
  --fs-h2: clamp(38px, 5.2vw, 62px);
  --fs-h3: clamp(24px, 2.4vw, 34px);
  --fs-h4: clamp(20px, 1.8vw, 26px);
  --fs-h5: clamp(17px, 1.35vw, 20px);
  --fs-h6: clamp(14px, 1vw, 16px);
  --fs-body: clamp(15px, 1.1vw, 16px);
  --fs-small: 14px;

  /* Line-heights & weights */
  --lh-tight: 1.15;
  --lh-snug: 1.25;
  --lh-normal: 1.6;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Buttons */
  --btn-height: 44px;
  --btn-pad-x: 18px;
  --btn-radius: 12px;
}

@media (min-width: 1280px) and (max-width: 1679px) {
  :root {
    --container-max: clamp(1320px, 88vw, 1500px);
  }
}
