:root {
  --background: 213 40% 98%;
  --foreground: 226 31% 15%;
  --primary: 253 84% 63%;
  --secondary: 186 72% 58%;
  --muted: 220 20% 95%;
  --destructive: 0 76% 57%;
  --border: 223 24% 87%;
  --card: 0 0% 100%;
  --shadow-sm: 0 8px 24px hsl(230 35% 20% / 0.08);
  --shadow-md: 0 18px 45px hsl(250 55% 32% / 0.16);
  --shadow-lg: 0 28px 70px hsl(253 84% 40% / 0.18);
  --transition-fast: 140ms ease;
  --transition-smooth: 240ms cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --muted-foreground: 220 12% 46%;
}

.dark {
  --background: 228 30% 8%;
  --foreground: 210 33% 96%;
  --primary: 258 92% 72%;
  --secondary: 186 78% 58%;
  --muted: 228 25% 16%;
  --destructive: 0 72% 60%;
  --border: 228 18% 22%;
  --card: 228 26% 10%;
  --shadow-sm: 0 10px 24px hsl(220 50% 2% / 0.28);
  --shadow-md: 0 18px 45px hsl(260 90% 10% / 0.34);
  --shadow-lg: 0 24px 72px hsl(258 92% 30% / 0.34);
  --muted-foreground: 220 15% 68%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

button,
input,
a {
  transition: all var(--transition-smooth);
}

::selection {
  background: hsl(var(--primary) / 0.18);
  color: hsl(var(--foreground));
}

.chip {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
