:root {
  --bg: #050507;
  --card: rgba(12, 12, 16, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f4f6;
  --muted: #a3a3ad;
  --accent: #b6ff3b;
  --accent-ink: #0a0d02;
  --danger: #ff6b6b;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 "Space Grotesk", system-ui, sans-serif;
  overflow-x: hidden;
}

.bg {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.shade {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,.25) 0%, rgba(0,0,0,.7) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.6));
}

.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px max(16px, 4vw);
}
.brand { font-weight: 700; letter-spacing: .08em; }
.x-link { color: var(--text); text-decoration: none; opacity: .8; font-family: "JetBrains Mono", monospace; font-size: 14px; }
.x-link:hover { opacity: 1; }

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 4vh 16px 48px;
}

.hero { text-align: center; margin-bottom: 28px; }
.eyebrow {
  display: inline-block; margin: 0 0 12px;
  font: 500 12px/1 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent);
  padding: 8px 12px; border: 1px solid rgba(182,255,59,.35); border-radius: 999px;
  background: rgba(0,0,0,.35);
}
h1 {
  margin: 0;
  font-size: clamp(64px, 18vw, 128px);
  line-height: .95; letter-spacing: -.03em;
  text-shadow: 0 6px 40px rgba(0,0,0,.6);
}
.lead { margin: 14px 0 0; color: #d8d8de; font-size: 18px; text-shadow: 0 2px 12px rgba(0,0,0,.8); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.steps { list-style: none; margin: 0; padding: 0; }
.step {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px; align-items: center;
  padding: 16px;
  border-radius: 14px;
  transition: opacity .2s, background .2s;
}
.step + .step { border-top: 1px solid var(--line); border-radius: 0; }
.step h2 { margin: 0; font-size: 17px; font-weight: 500; }
.step .hint { margin: 2px 0 0; }
.hint { color: var(--muted); font-size: 14px; }

.num {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font: 500 14px "JetBrains Mono", monospace;
  border: 1px solid var(--line);
}
.step.done .num { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-size: 0; }
.step.done .num::after { content: "✓"; font-size: 16px; font-weight: 700; }
.step.locked { opacity: .4; }
.step.locked .btn { pointer-events: none; }

#step-submit { grid-template-columns: 36px 1fr; align-items: start; }
#step-submit .num { margin-top: 0; }

.btn {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font: 500 15px "Space Grotesk", sans-serif;
  text-decoration: none; white-space: nowrap;
  transition: background .15s, transform .1s;
}
.btn:hover { background: rgba(255,255,255,.14); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.btn.primary:hover { filter: brightness(1.08); }
.step.done .btn:not(.primary) { border-color: rgba(182,255,59,.4); color: var(--accent); }

.form { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.field {
  flex: 1 1 180px;
  display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(0,0,0,.35);
  padding: 0 14px;
}
.field span { color: var(--muted); font-family: "JetBrains Mono", monospace; }
.field input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: 0;
  color: var(--text);
  font: 500 15px "JetBrains Mono", monospace;
  height: 42px; padding-left: 4px;
}
.field:focus-within { border-color: var(--accent); }
.form .btn { flex: 1 1 140px; }
.error { color: var(--danger); font-size: 14px; margin: 8px 0 0; min-height: 0; }
.error:empty { display: none; }

.success { text-align: center; padding: 32px 20px; }
.success h2 { margin: 12px 0 8px; font-size: 26px; }
.success p { margin: 6px 0; }
.success code { font-family: "JetBrains Mono", monospace; color: var(--accent); }
.success .h { color: var(--text); }
.check {
  width: 64px; height: 64px; margin: 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-size: 32px; font-weight: 700;
}

.safety { text-align: center; color: var(--muted); font-size: 13px; margin-top: 20px; text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.safety strong { color: var(--text); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 480px) {
  .step { grid-template-columns: 32px 1fr; padding: 14px 10px; }
  .num { width: 32px; height: 32px; }
  .step > .btn { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .bg { display: none; }
  body { background: radial-gradient(ellipse at top, #1a1f10, var(--bg)); }
}
