/* Base — reset, document defaults, typography, layout helpers,
   fixed background layers, and the shared reveal-on-scroll animation. */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-name { font-family: 'Space Grotesk', system-ui, sans-serif; }

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Background storm ---------- */
.storm-bg {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(124,92,255,0.16), transparent 60%),
    radial-gradient(900px 700px at 10% 10%, rgba(77,141,255,0.12), transparent 55%),
    radial-gradient(700px 700px at 50% 110%, rgba(53,224,212,0.08), transparent 60%),
    var(--bg);
}
.grid-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(124,92,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,92,255,0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

/* ---------- Reveal animation (used across sections) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
