:root {
  /* ---- Type scale ---- */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-hero: 3.5rem;

  /* ---- Spacing (4px base) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ---- Radius ---- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 999px;

  /* ---- Motion ---- */
  --transition-interactive: 160ms ease;

  /* ---- Fonts ---- */
  --font-display: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif;
  --font-body: 'Satoshi', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* ---- VarianceVueAI palette — light mode ---- */
  --color-bg: #f5f6f8;
  --color-surface: #ffffff;
  --color-surface-2: #eef1f5;
  --color-border: #d8dee6;
  --color-text: #101826;
  --color-text-muted: #566073;
  --color-text-faint: #97a2b3;

  --color-primary: #12395f;
  --color-primary-hover: #0b2a47;
  --color-on-primary: #ffffff;

  --color-accent: #b8860b;
  --color-accent-strong: #96700a;

  --color-success: #2f7d4f;
  --color-success-bg: #e6f0e9;
  --color-warning: #b8860b;
  --color-warning-bg: #f6efdc;
  --color-neutral-status: #6b7280;
  --color-neutral-status-bg: #eaecef;

  --shadow-sm: 0 1px 2px rgba(16, 24, 38, 0.06);
  --shadow-md: 0 6px 20px rgba(16, 24, 38, 0.08);
  --shadow-lg: 0 20px 48px rgba(16, 24, 38, 0.14);
}

[data-theme='dark'] {
  --color-bg: #0b1420;
  --color-surface: #101b2b;
  --color-surface-2: #16233a;
  --color-border: #263450;
  --color-text: #e3e8ef;
  --color-text-muted: #94a1b8;
  --color-text-faint: #5c6a84;

  --color-primary: #6ba3dd;
  --color-primary-hover: #8fbbe8;
  --color-on-primary: #0b1420;

  --color-accent: #e0b34a;
  --color-accent-strong: #f0c866;

  --color-success: #5fb47f;
  --color-success-bg: #16301f;
  --color-warning: #e0b34a;
  --color-warning-bg: #362a12;
  --color-neutral-status: #94a1b8;
  --color-neutral-status-bg: #1b2536;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.55);
}

@media (max-width: 720px) {
  :root {
    --text-hero: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.6rem;
  }
}
