/* ==========================================================================
   Design Tokens — The Consulting Group
   Single source of truth for color, type, spacing, motion, and z-index.
   ========================================================================== */

:root {
  /* ---- Color: core palette ---- */
  --color-navy-950: #060f22;   /* deepest background */
  --color-navy-900: #0a1a3a;   /* primary background */
  --color-navy-800: #0d1f3c;   /* raised surface */
  --color-navy-700: #142a52;   /* card / border surface */
  --color-navy-600: #1c3868;   /* hairline borders, dividers */
  --color-blue: #0057d9;       /* secondary accent */
  --color-teal: #00f5a0;       /* primary accent (bright green) */
  --color-teal-dim: rgba(0, 245, 160, 0.14);
  --color-white: #ffffff;
  --color-gray: #b0bac9;       /* muted body text on dark */
  --color-silver: #c8cdd6;
  --color-ink: #060a14;        /* near-black for high-contrast text on light chips */
  --ghost-rgb: 255, 255, 255;  /* channel base for faint decorative numbers; flipped dark by .section--light */

  /* ---- Color: semantic ---- */
  --bg-body: var(--color-navy-950);
  --bg-surface: var(--color-navy-900);
  --bg-raised: var(--color-navy-800);
  --border-subtle: rgba(200, 205, 214, 0.12);
  --border-accent: rgba(0, 245, 160, 0.35);
  --text-primary: var(--color-white);
  --text-muted: var(--color-gray);
  --accent: var(--color-teal);
  --accent-secondary: var(--color-blue);

  /* ---- Typography ---- */
  --font-display: 'Red Hat Display', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --text-hero: clamp(2.75rem, 3.4rem + 3vw, 6rem);
  --text-h1: clamp(2.25rem, 2.6rem + 2vw, 4.25rem);
  --text-h2: clamp(1.75rem, 1.9rem + 1.6vw, 3rem);
  --text-h3: clamp(1.25rem, 1.3rem + 0.8vw, 1.75rem);
  --text-lead: clamp(1.1rem, 1.05rem + 0.5vw, 1.4rem);
  --text-body: 1.05rem;
  --text-small: 0.9rem;
  --text-caption: 0.78rem;
  --text-eyebrow: 0.78rem;

  --leading-tight: 1.05;
  --leading-snug: 1.25;
  --leading-normal: 1.6;

  --tracking-wide: 0.14em;
  --tracking-wider: 0.2em;

  /* ---- Spacing scale ---- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  /* ---- Layout ---- */
  --container-max: 1280px;
  --container-pad: clamp(1.25rem, 4vw, 3.5rem);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.5s;
  --dur-slow: 0.9s;

  /* ---- Elevation ---- */
  --shadow-card: 0 20px 60px rgba(2, 8, 22, 0.45);
  --shadow-glow-teal: 0 0 60px rgba(0, 245, 160, 0.18);

  /* ---- Z-index scale ---- */
  --z-base: 1;
  --z-dots: 150;
  --z-nav: 200;
  --z-progress: 300;
  --z-modal: 400;
}
