:root {
  --background: 222 47% 97%;
  --foreground: 222 36% 12%;
  --primary: 22 94% 56%;
  --secondary: 266 84% 63%;
  --muted: 220 24% 91%;
  --destructive: 0 76% 58%;
  --border: 220 18% 82%;
  --card: 0 0% 100%;

  --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 26px 70px rgba(15, 23, 42, 0.18);

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

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

.dark {
  --background: 224 30% 8%;
  --foreground: 210 20% 96%;
  --primary: 24 95% 58%;
  --secondary: 266 92% 72%;
  --muted: 222 18% 17%;
  --destructive: 0 78% 62%;
  --border: 221 17% 23%;
  --card: 224 24% 11%;

  --shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.42);
}

* {
  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 {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: hsl(var(--foreground));
  transition: background-color 5000s ease-in-out 0s;
  box-shadow: 0 0 0px 1000px hsl(var(--background)) inset;
}

@media (max-width: 640px) {
  :root {
    --radius-lg: 22px;
  }
}
