:root {
  /* Colors — Clearstack brand (dark default, matches the 3D logo) */
  --color-primary: #0ea5e9;
  --color-primary-hover: #38bdf8;
  --color-accent: #06b6d4;
  --color-accent-hover: #22d3ee;
  --color-success: #10b981;
  --color-success-hover: #34d399;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #6366f1;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-text-inverse: #0f172a;
  --color-bg: #0a0f1a;
  --color-surface: #111827;
  --color-surface-alt: #1e293b;
  --color-border: #1e3a5f;
  --color-glow: rgb(14 165 233 / 15%);

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

  /* Typography */
  --font-sans: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', ui-monospace, monospace;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-hero: clamp(2.5rem, 5vw, 4rem);

  /* Borders */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 30%);
  --shadow-md: 0 4px 12px rgb(0 0 0 / 40%);
  --shadow-glow: 0 0 60px var(--color-glow);

  /* Layout */
  --max-width: 72rem;
  --section-padding: var(--space-4xl) var(--space-xl);
}

/* Light mode */
[data-theme='light'] {
  --color-primary: #0284c7;
  --color-primary-hover: #0369a1;
  --color-accent: #0891b2;
  --color-accent-hover: #0e7490;
  --color-success: #059669;
  --color-warning: #d97706;
  --color-danger: #dc2626;
  --color-info: #4f46e5;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-inverse: #fff;
  --color-bg: #f0f9ff;
  --color-surface: #fff;
  --color-surface-alt: #e0f2fe;
  --color-border: #bae6fd;
  --color-glow: rgb(2 132 199 / 10%);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 5%);
  --shadow-md: 0 4px 12px rgb(0 0 0 / 8%);
  --shadow-glow: 0 0 60px var(--color-glow);
}
