/* ── Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* ── Floating stat card animations ── */
@keyframes float1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float-1 { animation: float1 4s ease-in-out infinite; }
.animate-float-2 { animation: float2 5s ease-in-out infinite 0.5s; }
.animate-float-3 { animation: float3 3.5s ease-in-out infinite 1s; }

/* ── Reveal on scroll (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fallback: ensure content is visible if JS is disabled */
.reveal {
  opacity: 1;
  transform: none;
}

/* ── Nav scroll state ── */
.nav-scrolled {
  background: rgba(4, 11, 22, 0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── Selection color ── */
::selection {
  background: rgba(52, 211, 153, 0.3);
  color: #fff;
}
