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

:root {
  --bg: #0a0a0a;
  --ink: #e2e2e2;
  --muted: #888;
  --accent: #00e87a;
}

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  overflow-x: hidden;
}

/* ── Fixed 3D canvas sits behind everything ── */
#canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Subtle radial vignette — aids text legibility */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 90% 80% at 50% 50%,
    transparent 45%, rgba(10,10,10,0.72) 100%);
  pointer-events: none;
}

/* ── Scrollable content ── */
#content {
  position: relative;
  z-index: 2;
}

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 0;
}

.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 1s 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-h1 {
  font-size: clamp(4.5rem, 16vw, 10.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.86;
  color: #fff;
  opacity: 0;
  animation: fadeUp 1.1s 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-sub {
  margin-top: 2rem;
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  font-weight: 300;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.85;
  opacity: 0;
  animation: fadeUp 1s 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.scroll-cue {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.scroll-cue span {
  font-family: 'Space Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: linePulse 2.4s ease-in-out infinite;
  transform-origin: top;
}

@keyframes linePulse {
  0%   { transform: scaleY(0.2); opacity: 0; }
  50%  { transform: scaleY(1);   opacity: 1; }
  100% { transform: scaleY(0.2); opacity: 0; transform-origin: bottom; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────
   STEP SECTIONS
───────────────────────────────────────────── */
.step {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(2rem, 10vw, 7rem);
}

.step.r { justify-content: flex-end; }
.step.l { justify-content: flex-start; }

.step-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.step-tag::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.step-title {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin-bottom: 1.3rem;
  color: #fff;
}

.step-body {
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--muted);
}

/* Frosted card backdrop for text legibility over the 3D scene */
.card {
  max-width: min(420px, 88vw);
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 2rem 2rem 2.25rem;
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
#footer {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.footer-by {
  font-family: 'Space Mono', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.footer-link {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}

.footer-link:hover { border-color: var(--accent); }

.stats {
  display: flex;
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: 3.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-val {
  display: block;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}

.stat-lbl {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.45rem;
}

/* ─────────────────────────────────────────────
   MOBILE
───────────────────────────────────────────── */
@media (max-width: 580px) {
  .step.r, .step.l { justify-content: center; }
  .card { max-width: 100%; }
  .stats { gap: 1.75rem; }
}
