/* ============================================================
   DESIGN TOKENS — single source of truth.
   Every section stylesheet MUST use these. No raw hex values.
   ============================================================ */

:root {
  /* ---- Brand ---- */
  --c-brand:            #635bff;
  --c-brand-hover:      #7a73ff;
  --c-brand-press:      #544dd6;
  --c-brand-tint:       #f0efff;
  --c-cyan:             #00d4ff;
  --c-teal:             #11efe3;
  --c-lime:             #96f2b1;
  --c-magenta:          #ff5996;
  --c-orange:           #ffbb4f;

  /* ---- Ink (text / dark surfaces) ---- */
  --c-navy:             #0a2540;
  --c-navy-deep:        #061c33;
  --c-slate:            #425466;
  --c-slate-light:      #6b7c93;
  --c-white:            #ffffff;
  --c-offwhite:         #f6f9fc;
  --c-hairline:         #e3e8ee;
  --c-hairline-soft:    #eef2f7;

  /* ---- Semantic ---- */
  --text-strong:        var(--c-navy);
  --text-body:          var(--c-slate);
  --text-muted:         var(--c-slate-light);
  --text-invert:        var(--c-white);
  --text-invert-body:   rgba(255,255,255,.72);
  --surface:            var(--c-white);
  --surface-alt:        var(--c-offwhite);
  --surface-dark:       var(--c-navy);
  --border:             var(--c-hairline);

  /* ---- Type scale (fluid, clamp-based) ---- */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono",
               Menlo, Consolas, monospace;

  --fs-display: clamp(2.75rem, 1.4rem + 4.6vw, 5.25rem);   /*  44 → 84 */
  --fs-h1:      clamp(2.25rem, 1.3rem + 3.1vw, 3.75rem);   /*  36 → 60 */
  --fs-h2:      clamp(1.875rem, 1.2rem + 2.2vw, 3rem);     /*  30 → 48 */
  --fs-h3:      clamp(1.375rem, 1.1rem + 1vw, 1.875rem);   /*  22 → 30 */
  --fs-h4:      clamp(1.125rem, 1rem + .5vw, 1.375rem);    /*  18 → 22 */
  --fs-lead:    clamp(1.0625rem, 1rem + .5vw, 1.3125rem);  /*  17 → 21 */
  --fs-body:    1.0625rem;                                  /*  17 */
  --fs-sm:      0.9375rem;                                  /*  15 */
  --fs-xs:      0.8125rem;                                  /*  13 */
  --fs-eyebrow: 0.875rem;                                   /*  14 */

  --lh-tight:   1.08;
  --lh-snug:    1.24;
  --lh-normal:  1.5;
  --lh-relaxed: 1.62;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;

  --tracking-tight:  -0.022em;
  --tracking-snug:   -0.014em;
  --tracking-normal: 0;
  --tracking-wide:   0.06em;

  /* ---- Space (8pt grid) ---- */
  --s-1:  4px;   --s-2:  8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 20px;   --s-6: 24px;   --s-7: 32px;  --s-8: 40px;
  --s-9: 48px;   --s-10: 64px;  --s-11: 80px; --s-12: 96px;
  --s-13: 120px; --s-14: 160px;

  --section-y: clamp(72px, 8vw, 128px);
  --container: 1080px;
  --container-wide: 1240px;
  --gutter: clamp(20px, 5vw, 40px);

  /* ---- Radii ---- */
  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --r-xl: 24px; --r-2xl: 32px; --r-pill: 999px;

  /* ---- Elevation ---- */
  --sh-xs: 0 1px 2px rgba(10,37,64,.06);
  --sh-sm: 0 2px 5px -1px rgba(50,50,93,.10), 0 1px 3px -1px rgba(0,0,0,.06);
  --sh-md: 0 6px 12px -2px rgba(50,50,93,.16), 0 3px 7px -3px rgba(0,0,0,.18);
  --sh-lg: 0 13px 27px -5px rgba(50,50,93,.20), 0 8px 16px -8px rgba(0,0,0,.24);
  --sh-xl: 0 30px 60px -12px rgba(50,50,93,.22), 0 18px 36px -18px rgba(0,0,0,.26);
  --sh-brand: 0 8px 24px -6px rgba(99,91,255,.45);

  /* ---- Motion ---- */
  --ease-out:   cubic-bezier(.22, 1, .36, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);
  --ease-expo:  cubic-bezier(.16, 1, .3, 1);
  --t-fast:   140ms;
  --t-base:   240ms;
  --t-slow:   420ms;
  --t-slower: 700ms;

  /* ---- Gradients ---- */
  --grad-brand: linear-gradient(101deg, #635bff 0%, #8b5cf6 48%, #00d4ff 100%);
  --grad-text:  linear-gradient(94deg, #0a2540 4%, #635bff 52%, #00d4ff 96%);
  --grad-dark:  linear-gradient(180deg, #0a2540 0%, #061c33 100%);

  /* ---- Z ---- */
  --z-base: 1; --z-raised: 10; --z-sticky: 100; --z-nav: 500;
  --z-overlay: 900; --z-modal: 1000;
}
