:root {
  --background: 220 33% 98%;
  --foreground: 224 28% 14%;
  --primary: 255 84% 60%;
  --secondary: 190 88% 42%;
  --muted: 220 18% 92%;
  --destructive: 0 76% 56%;
  --border: 221 24% 86%;
  --card: 0 0% 100%;

  --shadow-sm: 0 8px 20px rgba(59, 43, 132, 0.08);
  --shadow-md: 0 18px 40px rgba(59, 43, 132, 0.12);
  --shadow-lg: 0 28px 70px rgba(22, 30, 84, 0.18);

  --transition-fast: 160ms ease;
  --transition-smooth: 300ms cubic-bezier(0.22, 1, 0.36, 1);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

.dark {
  --background: 226 30% 8%;
  --foreground: 220 20% 94%;
  --primary: 258 90% 68%;
  --secondary: 186 85% 56%;
  --muted: 225 18% 18%;
  --destructive: 0 84% 64%;
  --border: 226 14% 22%;
  --card: 228 24% 11%;
}

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

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

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

textarea {
  resize: vertical;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid hsl(var(--primary) / 0.22);
  outline-offset: 2px;
}
