:root {
  /* Primitive colors */
  --neutral-0: #ffffff;
  --neutral-50: #f4f7fa;
  --neutral-300: #b7bec8;
  --neutral-500: #7e8792;
  --neutral-700: #343a42;
  --neutral-800: #1a1f24;
  --neutral-900: #0c0f12;
  --neutral-950: #07090b;

  --mint-300: #9fe8c2;
  --blue-300: #8fc7ff;
  --yellow-300: #f5d06f;
  --red-300: #ff8a80;

  /* Semantic colors */
  --color-background: var(--neutral-950);
  --color-background-elevated: var(--neutral-900);

  --color-surface: rgb(255 255 255 / 5.5%);
  --color-surface-hover: rgb(255 255 255 / 8.5%);

  --color-border: rgb(255 255 255 / 12%);
  --color-border-strong: rgb(255 255 255 / 20%);

  --color-text-primary: var(--neutral-50);
  --color-text-secondary: var(--neutral-300);
  --color-text-muted: var(--neutral-500);

  --color-accent: var(--mint-300);
  --color-accent-soft: rgb(159 232 194 / 12%);

  --color-info: var(--blue-300);
  --color-success: var(--mint-300);
  --color-warning: var(--yellow-300);
  --color-error: var(--red-300);

  /* Typography */
  --font-family-sans:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --font-family-mono:
    ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;

  --line-height-tight: 1.1;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Borders and corners */
  --border-width: 1px;

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-pill: 999px;

  /* Glass surfaces */
  --glass-background-fallback: var(--neutral-900);
  --glass-background: rgb(12 15 18 / 68%);
  --glass-border: rgb(255 255 255 / 12%);
  --glass-highlight: rgb(255 255 255 / 6%);
  --glass-blur: 20px;

  --shadow-panel:
    0 24px 80px rgb(0 0 0 / 45%), inset 0 1px 0 var(--glass-highlight);

  /* Layout */
  --content-max-width: 72rem;
  --page-padding: clamp(1rem, 4vw, 4rem);
  --section-spacing: clamp(5rem, 12vw, 10rem);

  /* Motion */
  --duration-fast: 120ms;
  --duration-normal: 240ms;
  --duration-slow: 600ms;

  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 1ms;
    --duration-normal: 1ms;
    --duration-slow: 1ms;
  }
}
