:root {
  --background: 36 33% 97%;
  --foreground: 228 21% 16%;
  --primary: 265 78% 58%;
  --secondary: 187 72% 46%;
  --muted: 35 24% 92%;
  --destructive: 2 75% 56%;
  --border: 225 20% 84%;
  --card: 0 0% 100%;

  --shadow-sm: 0 8px 20px hsla(228, 40%, 10%, 0.08);
  --shadow-md: 0 18px 42px hsla(228, 40%, 10%, 0.12);
  --shadow-lg: 0 30px 80px hsla(228, 40%, 10%, 0.18);

  --transition-fast: 150ms ease;
  --transition-smooth: 300ms cubic-bezier(0.2, 0.8, 0.2, 1);

  --radius-sm: 0.5rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.5rem;
}

.dark {
  --background: 230 22% 10%;
  --foreground: 36 18% 95%;
  --primary: 271 82% 67%;
  --secondary: 187 78% 58%;
  --muted: 228 18% 17%;
  --destructive: 4 78% 61%;
  --border: 227 18% 24%;
  --card: 228 20% 13%;

  --shadow-sm: 0 8px 20px hsla(0, 0%, 0%, 0.24);
  --shadow-md: 0 18px 42px hsla(0, 0%, 0%, 0.34);
  --shadow-lg: 0 30px 80px hsla(0, 0%, 0%, 0.42);
}

* {
  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;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

::selection {
  background: hsl(var(--primary) / 0.2);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
}

input::placeholder,
textarea::placeholder {
  color: hsl(var(--foreground) / 0.45);
}

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