@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── Theme tokens ── */
:root {
  --background: 220 30% 97%;
  --foreground: 220 47% 10%;
  --card: 0 0% 100%;
  --card-foreground: 220 47% 10%;
  --primary: 217 91% 55%;
  --primary-foreground: 0 0% 100%;
  --secondary: 220 20% 93%;
  --secondary-foreground: 220 47% 10%;
  --muted: 220 15% 88%;
  --muted-foreground: 220 10% 46%;
  --accent: 189 94% 43%;
  --accent-foreground: 0 0% 100%;
  --border: 220 13% 87%;
  --destructive: 0 84% 60%;
  --ring: 217 91% 55%;
}

.dark {
  --background: 224 40% 8%;
  --foreground: 210 30% 94%;
  --card: 224 35% 12%;
  --card-foreground: 210 30% 94%;
  --primary: 217 91% 60%;
  --primary-foreground: 0 0% 100%;
  --secondary: 224 30% 16%;
  --secondary-foreground: 210 30% 94%;
  --muted: 224 20% 20%;
  --muted-foreground: 220 15% 55%;
  --accent: 189 94% 50%;
  --accent-foreground: 0 0% 100%;
  --border: 224 20% 18%;
  --destructive: 0 72% 55%;
  --ring: 217 91% 60%;
}

/* ── Grid dot pattern ── */
.grid-pattern {
  background-image: radial-gradient(circle, hsl(var(--border)) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes progressFill {
  from { width: 0; }
}

.animate-fade-up {
  animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 5s ease-in-out infinite;
}

/* Stagger children via CSS */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Modal backdrop ── */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: hsl(var(--background)); }
::-webkit-scrollbar-thumb { background: hsl(var(--border)); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: hsl(var(--muted-foreground)); }

/* ── Smooth scroll ── */
html { scroll-behavior: smooth; }

/* ── Progress bar fill ── */
.progress-fill {
  animation: progressFill 1.6s ease-out both;
  animation-play-state: paused;
}
.progress-fill.visible {
  animation-play-state: running;
}
