:root {
  --bg: #020a05;
  --bg-2: #04140a;
  --green: #39ff88;
  --green-2: #19c964;
  --green-dim: rgba(57, 255, 136, 0.16);
  --ink: #e9fff1;
  --ink-2: #9cc8ad;
  --ink-3: #5d8a6f;
  --card: rgba(6, 26, 14, 0.55);
  --line: rgba(57, 255, 136, 0.18);
  --radius: 18px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
a { color: inherit; }

/* ── Backdrop ──────────────────────────────────────────────────────────── */
#hole {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 0;
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.75) 100%);
}
.scanlines {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.07;
  background: repeating-linear-gradient(0deg, #000 0 1px, transparent 1px 3px);
}

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  background: linear-gradient(to bottom, rgba(2, 10, 5, 0.85), rgba(2, 10, 5, 0));
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: 0.14em; font-size: 13px; }
.brand img { border-radius: 50%; mix-blend-mode: screen; }
.nav nav { display: flex; gap: clamp(12px, 3vw, 28px); align-items: center; font-size: 14px; }
.nav nav a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav nav a:hover { color: var(--green); }
.nav-cta { border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; color: var(--ink) !important; }
.nav-cta:hover { border-color: var(--green); box-shadow: 0 0 18px var(--green-dim); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
main { position: relative; z-index: 2; }

.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 110px 16px 80px;
}

.logo-stage {
  position: relative;
  width: clamp(200px, 34vw, 340px);
  aspect-ratio: 1313 / 1198;
  perspective: 900px;
  margin-bottom: 18px;
}
.logo {
  width: 100%; height: 100%;
  object-fit: contain;
  /* The logo's black background disappears into the page: screen blending
     drops black, and the mask fades its square edge out. */
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 52%, transparent 71%);
          mask-image: radial-gradient(circle at 50% 48%, #000 52%, transparent 71%);
  transform-style: preserve-3d;
  transition: transform .25s ease-out, filter .25s;
  filter: drop-shadow(0 0 22px rgba(57, 255, 136, 0.35));
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}
.logo-glow {
  position: absolute; inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 255, 136, 0.28), transparent 65%);
  filter: blur(30px);
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes pulse { 0%, 100% { opacity: .55; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.06); } }

.kicker { color: var(--green); font-size: 13px; letter-spacing: 0.08em; min-height: 1.6em; margin: 0 0 10px; padding: 3px 12px; border-radius: 8px; background: rgba(2, 10, 5, 0.65); }
.caret { animation: blink 1s steps(1) infinite; color: var(--green); }
@keyframes blink { 50% { opacity: 0; } }

h1 {
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.98;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.glow-text {
  color: #fff;
  text-shadow: 0 0 18px rgba(57, 255, 136, 0.6), 0 0 48px rgba(57, 255, 136, 0.35);
}
.lead { color: var(--ink-2); font-size: clamp(16px, 2vw, 19px); max-width: 620px; margin: 0 auto 30px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform .15s, box-shadow .25s, background .25s, border-color .25s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #02130a; box-shadow: 0 0 28px rgba(57, 255, 136, 0.35); }
.btn-primary:hover { box-shadow: 0 0 44px rgba(57, 255, 136, 0.6); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: rgba(2, 10, 5, 0.4); }
.btn-ghost:hover { border-color: var(--green); }
.btn-lg { padding: 16px 34px; font-size: 17px; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--ink-3); font-size: 11px; letter-spacing: .25em; text-transform: uppercase; text-decoration: none;
}
.scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--green), transparent); animation: drip 2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ── Sections ──────────────────────────────────────────────────────────── */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 14vh, 150px) 16px;
}
.section-tag { color: var(--green); font-size: 13px; margin: 0 0 10px; letter-spacing: .06em; }
h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.05; margin: 0 0 36px; letter-spacing: -0.02em; }
h3 { margin: 0 0 8px; font-size: 21px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  text-decoration: none;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color .3s, box-shadow .3s;
}
.card::before {
  /* A light that follows the pointer across the card. */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(57, 255, 136, 0.14), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { border-color: rgba(57, 255, 136, 0.5); box-shadow: 0 0 40px rgba(57, 255, 136, 0.12); }
.card:hover::before { opacity: 1; }
.card p { color: var(--ink-2); margin: 0 0 18px; flex: 1; }
.card-index { color: var(--ink-3); font-size: 12px; margin-bottom: 18px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: 11px; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--ink-2); }
.card-link { color: var(--green); font-size: 13px; }
.card-link.muted { color: var(--ink-3); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0 0 56px; display: grid; gap: 14px; }
.steps li {
  display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: start;
  padding: 22px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(10px);
}
.steps p { margin: 0; color: var(--ink-2); }
.step-n { color: var(--green); font-size: 15px; padding-top: 2px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; text-align: center; }
.stat-n { display: block; font-size: clamp(38px, 6vw, 60px); color: #fff; text-shadow: 0 0 22px rgba(57, 255, 136, 0.45); }
.stat-l { color: var(--ink-3); font-size: 14px; }

/* Contact */
.contact { text-align: center; padding-bottom: 120px; }
.contact .lead { margin-bottom: 34px; }
.tiny { color: var(--ink-3); font-size: 12px; margin-top: 46px; opacity: .7; }

.footer {
  position: relative; z-index: 2;
  display: flex; gap: 12px; justify-content: center; align-items: center;
  padding: 26px 16px 34px; color: var(--ink-3); font-size: 12px;
  border-top: 1px solid rgba(57, 255, 136, 0.08);
}
.footer .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* No WebGL: a still gradient keeps the page readable. */
.no-webgl #hole { display: none; }
.no-webgl body, body.no-webgl {
  background: radial-gradient(ellipse at 50% 20%, #0b3a1d, var(--bg) 60%);
}

@media (max-width: 640px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .steps li { grid-template-columns: 1fr; gap: 6px; }
}
