:root {
  --background: 216 33% 97%;
  --foreground: 222 35% 14%;
  --primary: 258 88% 58%;
  --secondary: 184 72% 42%;
  --muted: 220 28% 92%;
  --destructive: 5 78% 56%;
  --border: 220 23% 86%;
  --card: 0 0% 100%;

  --shadow-sm: 0 10px 24px -18px hsl(222 40% 12% / 0.28);
  --shadow-md: 0 22px 50px -24px hsl(252 55% 24% / 0.28);
  --shadow-lg: 0 34px 80px -30px hsl(252 55% 22% / 0.34);

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

  --radius-sm: 0.65rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
}

.dark {
  --background: 225 28% 10%;
  --foreground: 220 22% 94%;
  --primary: 263 92% 70%;
  --secondary: 184 70% 54%;
  --muted: 224 18% 18%;
  --destructive: 4 85% 66%;
  --border: 223 18% 22%;
  --card: 224 24% 13%;

  --shadow-sm: 0 12px 24px -18px hsl(220 50% 2% / 0.55);
  --shadow-md: 0 22px 50px -24px hsl(220 50% 2% / 0.6);
  --shadow-lg: 0 34px 80px -30px hsl(220 50% 2% / 0.68);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
input,
select {
  font: inherit;
}

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

.skeleton {
  background: linear-gradient(
    90deg,
    hsl(var(--muted) / 0.7) 0%,
    hsl(var(--background)) 50%,
    hsl(var(--muted) / 0.7) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@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;
  }
}