:root {
  /* Color */
  --color-primary: #7c87f7;
  --color-primary-dark: #5b63d3;
  --color-primary-soft: rgba(124, 135, 247, 0.12);
  --color-primary-glow: rgba(124, 135, 247, 0.18);
  --color-muted: #939db8;
  --color-dark: #05060f;
  --color-dark-2: #0d0f2d;
  --color-dark-3: #060814;
  --color-bg: #f9f9f9;
  --color-surface: #ffffff;
  --color-surface-translucent: rgba(255, 255, 255, 0.86);

  --color-line: rgba(5, 6, 15, 0.08);
  --color-line-strong: rgba(5, 6, 15, 0.14);
  --color-line-on-dark: rgba(255, 255, 255, 0.12);

  --color-text: #05060f;
  --color-text-muted: rgba(5, 6, 15, 0.58);
  --color-text-soft: rgba(5, 6, 15, 0.46);
  --color-text-on-dark: #ffffff;
  --color-text-on-dark-muted: rgba(255, 255, 255, 0.72);
  --color-text-on-dark-soft: rgba(255, 255, 255, 0.5);

  --color-success: #047857;
  --color-success-bg: rgba(16, 185, 129, 0.12);
  --color-success-line: rgba(16, 185, 129, 0.35);
  --color-warning: #92400e;
  --color-warning-bg: rgba(245, 158, 11, 0.12);
  --color-warning-line: rgba(245, 158, 11, 0.35);
  --color-danger: #b91c1c;
  --color-danger-bg: rgba(185, 28, 28, 0.1);
  --color-danger-line: rgba(185, 28, 28, 0.32);

  /* Typography */
  --font-sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Bebas Neue", var(--font-sans);
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 17px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 30px;
  --text-3xl: 38px;
  --text-4xl: clamp(40px, 5vw, 60px);

  --leading-tight: 1.05;
  --leading-snug: 1.25;
  --leading-normal: 1.45;
  --leading-relaxed: 1.6;

  --tracking-tight: -0.03em;
  --tracking-display: -0.04em;
  --tracking-eyebrow: 0.14em;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(5, 6, 15, 0.04);
  --shadow-md: 0 18px 52px -34px rgba(5, 6, 15, 0.38);
  --shadow-lg: 0 28px 80px -24px rgba(5, 6, 15, 0.38);
  --shadow-primary: 0 18px 44px -20px rgba(91, 99, 211, 0.55);
  --shadow-focus: 0 0 0 3px rgba(124, 135, 247, 0.22);

  /* Spacing scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;

  /* Layout */
  --container-narrow: 720px;
  --container: 1080px;
  --container-wide: 1240px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 420ms;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--color-primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
