:root {
  color-scheme: dark;
  --color-surface-base: #05070d;
  --color-surface-elevated: rgba(15, 20, 35, 0.65);
  --color-surface-muted: rgba(255, 255, 255, 0.04);
  --color-text-primary: #f4f7ff;
  --color-text-secondary: #9ba7c6;
  --color-text-inverse: #05070d;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-accent: #5b8dff;
  --color-accent-alt: #3ce6d0;
  --color-danger: #ff5e7a;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --radius-xs: 0.5rem;
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --shadow-glass: 0 20px 40px rgba(5, 7, 13, 0.35);
  --blur-glass: 18px;
  --font-base: "Inter", "Noto Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  --font-size-xs: 0.85rem;
  --font-size-sm: 0.95rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2.15rem;
  --motion-duration-short: 200ms;
  --motion-duration-medium: 320ms;
  --motion-duration-long: 420ms;
  --motion-curve: cubic-bezier(0.18, 0.84, 0.44, 1);
  --focus-ring: 0 0 0 3px rgba(91, 141, 255, 0.45);
}

:root[data-theme="light"] {
  color-scheme: light;
  --color-surface-base: #f7f9ff;
  --color-surface-elevated: rgba(255, 255, 255, 0.65);
  --color-surface-muted: rgba(5, 7, 13, 0.04);
  --color-text-primary: #0b1530;
  --color-text-secondary: #516082;
  --color-text-inverse: #ffffff;
  --color-border: rgba(5, 7, 13, 0.12);
  --color-accent: #365cff;
  --color-accent-alt: #00bfa6;
  --shadow-glass: 0 15px 30px rgba(11, 21, 48, 0.12);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --color-surface-base: #f7f9ff;
    --color-surface-elevated: rgba(255, 255, 255, 0.65);
    --color-surface-muted: rgba(5, 7, 13, 0.04);
    --color-text-primary: #0b1530;
    --color-text-secondary: #516082;
    --color-text-inverse: #ffffff;
    --color-border: rgba(5, 7, 13, 0.12);
    --color-accent: #365cff;
    --color-accent-alt: #00bfa6;
    --shadow-glass: 0 15px 30px rgba(11, 21, 48, 0.12);
  }
}
