:root {
  --background: 222 42% 97%;
  --foreground: 226 32% 14%;
  --primary: 257 87% 62%;
  --secondary: 184 83% 42%;
  --muted: 222 28% 92%;
  --muted-foreground: 223 14% 40%;
  --destructive: 0 84% 58%;
  --border: 224 22% 84%;
  --card: 0 0% 100%;
  --shadow-sm: 0 6px 16px hsla(252, 35%, 20%, 0.08);
  --shadow-md: 0 16px 40px hsla(252, 38%, 16%, 0.12);
  --shadow-lg: 0 24px 80px hsla(252, 44%, 14%, 0.22);
  --transition-fast: 140ms ease;
  --transition-smooth: 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

.dark {
  --background: 228 30% 8%;
  --foreground: 222 34% 96%;
  --primary: 259 92% 68%;
  --secondary: 185 82% 46%;
  --muted: 228 20% 14%;
  --muted-foreground: 220 14% 66%;
  --destructive: 0 80% 60%;
  --border: 227 18% 22%;
  --card: 226 23% 11%;
  --shadow-sm: 0 10px 24px hsla(240, 30%, 2%, 0.28);
  --shadow-md: 0 18px 48px hsla(240, 30%, 2%, 0.36);
  --shadow-lg: 0 30px 100px hsla(240, 30%, 2%, 0.48);
}

* { box-sizing: border-box; }
html, body, #root { min-height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }

.animate-fade-in {
  animation: fade-in 220ms ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: hsla(0, 0%, 50%, 0.28);
  border-radius: 999px;
}
::-webkit-scrollbar-track {
  background: transparent;
}