:root {
  /* Typography */
  --font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;

  /* Layout */
  --container-max: 76rem;
  --container-narrow: 42rem;
  --header-height: 4.25rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 500ms;

  /* Light theme (default) */
  --color-bg: #f8f9fc;
  --color-bg-elevated: #ffffff;
  --color-surface: #eef1f6;
  --color-surface-hover: #e2e7ef;
  --color-border: #c8d0dc;
  --color-border-subtle: #e2e7ef;
  --color-text: #0c1222;
  --color-text-muted: #4a5568;
  --color-text-subtle: #718096;
  --color-accent: #0057ff;
  --color-accent-hover: #0046d4;
  --color-accent-muted: rgba(0, 87, 255, 0.08);
  --color-accent-text: #ffffff;
  --color-code-keyword: #0057ff;
  --color-code-string: #0d7a5f;
  --color-code-fn: #7c3aed;
  --color-code-comment: #718096;
  --color-terminal-bg: #0c1222;
  --color-terminal-text: #e2e8f0;
  --color-success: #059669;
  --color-error: #dc2626;
  --color-overlay: rgba(248, 249, 252, 0.92);
  --color-grid: rgba(0, 87, 255, 0.04);
  --shadow-sm: 0 1px 3px rgba(12, 18, 34, 0.06);
  --shadow-md: 0 8px 24px rgba(12, 18, 34, 0.08);
  --shadow-lg: 0 20px 50px rgba(12, 18, 34, 0.12);
  --shadow-accent: 0 8px 32px rgba(0, 87, 255, 0.2);
}

[data-theme="dark"] {
  --color-bg: #080b12;
  --color-bg-elevated: #0f1420;
  --color-surface: #161c2c;
  --color-surface-hover: #1e2638;
  --color-border: #2a3348;
  --color-border-subtle: #1a2235;
  --color-text: #f0f4fa;
  --color-text-muted: #94a3b8;
  --color-text-subtle: #64748b;
  --color-accent: #3d82ff;
  --color-accent-hover: #5b96ff;
  --color-accent-muted: rgba(61, 130, 255, 0.12);
  --color-accent-text: #080b12;
  --color-code-keyword: #5b96ff;
  --color-code-string: #34d399;
  --color-code-fn: #a78bfa;
  --color-code-comment: #64748b;
  --color-terminal-bg: #040608;
  --color-terminal-text: #e2e8f0;
  --color-overlay: rgba(8, 11, 18, 0.9);
  --color-grid: rgba(61, 130, 255, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  --shadow-accent: 0 8px 32px rgba(61, 130, 255, 0.25);
}
