/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }

/* ── Nav scroll state ─────────────────────────────────────────────── */
#nav.scrolled {
  background: rgba(59, 7, 100, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(147, 51, 234, 0.15);
  box-shadow: 0 4px 30px rgba(0,0,0,.3);
}

/* ── Hero stat cards ──────────────────────────────────────────────── */
.stat-card {
  animation: float 6s ease-in-out infinite;
}
.stat-card:nth-child(2) { animation-delay: -1.5s; }
.stat-card:nth-child(3) { animation-delay: -3s; }
.stat-card:nth-child(4) { animation-delay: -4.5s; }

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

/* ── Scroll-reveal (progressive enhancement) ─────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Fallback: always visible if JS disabled or reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ── Selection ────────────────────────────────────────────────────── */
::selection { background: rgba(251,191,36,.3); color: #fbbf24; }
