:root {
  --background: 220 45% 97%;
  --foreground: 224 42% 12%;
  --primary: 217 91% 52%;
  --secondary: 220 24% 92%;
  --muted: 223 14% 43%;
  --destructive: 0 74% 54%;
  --border: 221 22% 84%;
  --card: 0 0% 100%;
  --shadow-sm: 0 8px 24px hsl(224 42% 12% / 0.07);
  --shadow-md: 0 18px 45px hsl(224 42% 12% / 0.12);
  --shadow-lg: 0 28px 80px hsl(224 42% 12% / 0.18);
  --transition-fast: 140ms ease;
  --transition-smooth: 260ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
}

.dark {
  --background: 224 40% 8%;
  --foreground: 218 35% 96%;
  --primary: 214 100% 61%;
  --secondary: 224 30% 15%;
  --muted: 220 15% 72%;
  --destructive: 0 79% 63%;
  --border: 224 25% 22%;
  --card: 224 35% 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));
}

button, a, input { transition: var(--transition-smooth); }
button:disabled { opacity: 0.65; cursor: not-allowed; }

.hero-orb {
  background:
    radial-gradient(circle at 18% 16%, hsl(var(--primary) / 0.28), transparent 34%),
    radial-gradient(circle at 82% 72%, hsl(266 90% 62% / 0.22), transparent 34%),
    radial-gradient(circle at 44% 92%, hsl(186 88% 42% / 0.16), transparent 30%);
}

.btn-primary {
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(250 84% 58%));
  color: white;
  padding: 0.9rem 1rem;
  font-weight: 900;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.01); box-shadow: var(--shadow-lg); }

.btn-secondary {
  border-radius: var(--radius-md);
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  padding: 0.9rem 1rem;
  font-weight: 900;
}
.btn-secondary:hover { transform: translateY(-2px); }

.skeleton {
  border-radius: 999px;
  background: linear-gradient(90deg, hsl(var(--secondary)), hsl(var(--border)), hsl(var(--secondary)));
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite linear;
}

@keyframes shimmer {
  from { background-position: 220% 0; }
  to { background-position: -220% 0; }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-toast { animation: toastIn 220ms ease-out both; }

@media (max-width: 420px) {
  h1 { letter-spacing: -0.05em; }
}
