/* end2end — design tokens (single source of truth).
   Mirrored 1:1 in tailwind.config.js (theme.extend → var(--…)).
   Primitive tokens: --color-*, --font-*, --text-*, --space-*, --radius-*, --ease-*, --duration-*
   Semantic tokens (switch per section with data-theme="dark|light"): --bg, --surface, --text, --text-muted, --line, --accent-text */

:root {
  /* Brand palette — 9 colours, nothing else */
  --color-ink-950: #050A0B;   /* page background, near-black */
  --color-ink-900: #0C1618;   /* dark surface (cards) */
  --color-petrol-600: #1F5F6B; /* gradient mid tone */
  --color-petrol-400: #3D8C9B; /* secondary bubble / info */
  --color-green-600: #2FA24C;  /* client brand green, gradient end */
  --color-green-700: #1E7D3F;  /* accent text on light backgrounds */
  --color-mint-300: #86EFA6;   /* highlight (HL) — CTA, accents on dark */
  --color-paper: #F2F5F4;      /* light surface */
  --color-white: #FFFFFF;
  /* Neutrals derived for text/lines */
  --color-gray-400: #93A3A0;   /* muted text on dark */
  --color-gray-600: #52605D;   /* muted text on light */
  --color-line-dark: rgba(255, 255, 255, .12);
  --color-line-light: #DCE3E1;

  /* Type */
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-accent: "Instrument Serif", Georgia, serif;
  --text-display: clamp(2.75rem, 1.6rem + 4.2vw, 5rem);   /* 44 → 80  hero */
  --text-h1: clamp(2.25rem, 1.5rem + 2.8vw, 4rem);        /* 36 → 64  section title */
  --text-h2: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);      /* 28 → 40  large card title */
  --text-h3: 1.5rem;                                      /* 24       card title */
  --text-lead: 1.125rem;                                  /* 18 */
  --text-body: 1rem;                                      /* 16 */
  --text-sm: .875rem;                                     /* 14 */
  --text-xs: .75rem;                                      /* 12 */
  --text-stat: clamp(3rem, 2rem + 3vw, 4.5rem);           /* 48 → 72  numbers */
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.55;
  --tracking-tight: -.035em;
  --tracking-snug: -.02em;

  /* Layout & spacing (Tailwind 4px scale) */
  --container: 80rem;                                     /* 1280 */
  --gutter: clamp(1.25rem, .5rem + 3vw, 3rem);            /* 20 → 48 */
  --space-section: clamp(5rem, 3rem + 6vw, 9rem);         /* 80 → 144 */
  --space-stack: clamp(2.5rem, 2rem + 2vw, 3.5rem);       /* header → content */

  /* Shape */
  --radius-card: 6px;
  --radius-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --duration-fast: 350ms;
  --duration-base: 600ms;
  --duration-slow: 1200ms;

  /* Default theme = dark */
  --bg: var(--color-ink-950);
  --surface: var(--color-ink-900);
  --text: var(--color-white);
  --text-muted: var(--color-gray-400);
  --line: var(--color-line-dark);
  --accent-text: var(--color-mint-300);
  --chip-bg: rgba(255, 255, 255, .08);
  --btn-bg: var(--color-mint-300);
  --btn-fg: var(--color-ink-950);
  --btn-bg-hover: var(--color-white);
}

[data-theme="dark"] {
  --bg: var(--color-ink-950);
  --surface: var(--color-ink-900);
  --text: var(--color-white);
  --text-muted: var(--color-gray-400);
  --line: var(--color-line-dark);
  --accent-text: var(--color-mint-300);
  --chip-bg: rgba(255, 255, 255, .08);
  --btn-bg: var(--color-mint-300);
  --btn-fg: var(--color-ink-950);
  --btn-bg-hover: var(--color-white);
  color: var(--text);
}

[data-theme="light"] {
  --bg: var(--color-white);
  --surface: var(--color-paper);
  --text: var(--color-ink-950);
  --text-muted: var(--color-gray-600);
  --line: var(--color-line-light);
  --accent-text: var(--color-green-700);
  --chip-bg: var(--color-white);
  --btn-bg: var(--color-ink-950);
  --btn-fg: var(--color-white);
  --btn-bg-hover: var(--color-green-700);
  color: var(--text);
}
