/* =========================================================
   NULLBYTE // ROBLOX KEY SYSTEM
   Aesthetic: brutalist terminal · acid-lime · noise · scanlines
   ========================================================= */

/* ---------- TOKENS ---------- */
:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #161616;
  --ink: #f2f2ec;
  --ink-2: #a9a9a1;
  --ink-3: #6a6a63;
  --line: #1f1f1e;
  --line-2: #2a2a29;
  --acid: #c6ff3d;
  --acid-2: #a4d81f;
  --hot: #ff4b1f;
  --amber: #ffb547;

  --f-display: "Anton", "Impact", sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-body: "Onest", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --pad-x: clamp(20px, 5vw, 80px);
  --radius: 2px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

/* ---------- ATMOSPHERE LAYERS ---------- */
.grain {
  pointer-events: none;
  position: fixed; inset: 0;
  z-index: 9999;
  opacity: .08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.9'/></svg>");
}
.grid-bg {
  pointer-events: none;
  position: fixed; inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 20%, rgba(0,0,0,.9), rgba(0,0,0,.2) 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, rgba(0,0,0,.9), rgba(0,0,0,.2) 70%);
}
.scanline {
  pointer-events: none;
  position: fixed; inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0 3px,
    rgba(255,255,255,.012) 3px 4px
  );
  mix-blend-mode: screen;
}

/* ---------- TICKER ---------- */
.ticker {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: #050505;
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ink-2);
  height: 28px;
  display: flex; align-items: center;
}
.ticker__track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  animation: ticker 60s linear infinite;
  padding-left: 28px;
}
.ticker__track span:nth-child(even){ color: var(--acid); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad-x);
  background: rgba(10,10,10,.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav__left { display: flex; align-items: center; gap: 20px; }
.nav__meta {
  font-family: var(--f-mono);
  font-size: 10.5px; letter-spacing: .2em;
  color: var(--ink-3);
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.logo {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: .02em;
}
.logo__mark { color: var(--acid); font-size: 16px; transform: translateY(-1px); }
.logo__text i { font-style: normal; color: var(--acid); }
.nav__right {
  display: flex; gap: 26px; align-items: center;
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2);
}
.nav__right a { position: relative; padding: 6px 0; transition: color .2s ease; }
.nav__right a:hover { color: var(--ink); }
.nav__right a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--acid);
  transition: width .25s ease;
}
.nav__right a:hover::after { width: 100%; }
.nav__discord {
  color: var(--bg) !important;
  background: var(--acid);
  padding: 6px 12px !important;
  border-radius: 999px;
}
.nav__discord::after { display: none; }
.nav__discord:hover { background: var(--ink); }
@media (max-width: 780px) {
  .nav__right a:not(.nav__discord){ display: none; }
  .nav__meta { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; z-index: 2;
  padding: clamp(60px, 12vh, 140px) var(--pad-x) 80px;
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  /* acid orb */
  content: "";
  position: absolute;
  top: -120px; right: -160px;
  width: 520px; height: 520px;
  background: radial-gradient(circle at center, var(--acid) 0%, rgba(198,255,61,.35) 30%, transparent 60%);
  filter: blur(60px);
  opacity: .32;
  animation: pulse 8s ease-in-out infinite;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -180px; left: -140px;
  width: 460px; height: 460px;
  background: radial-gradient(circle at center, var(--hot) 0%, transparent 60%);
  filter: blur(80px);
  opacity: .22;
  pointer-events: none;
}
@keyframes pulse { 50% { opacity: .55; transform: scale(1.05); } }

.hero__ascii {
  position: absolute;
  top: 30%; right: 6%;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--acid);
  opacity: .28;
  line-height: 1.1;
  white-space: pre;
  transform: rotate(4deg);
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono);
  font-size: 11.5px; letter-spacing: .28em;
  color: var(--acid);
  margin-bottom: 32px;
  animation: fadeUp .6s .1s both;
}
.hero__eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--acid); box-shadow: 0 0 12px var(--acid);
  animation: blink 1.5s infinite;
}
@keyframes blink { 50% { opacity: .3; } }

.hero__title {
  font-family: var(--f-display);
  font-size: clamp(64px, 13vw, 220px);
  line-height: .82;
  letter-spacing: -.02em;
  margin: 0 0 44px;
  color: var(--ink);
  text-transform: uppercase;
}
.hero__title .line { display: block; animation: sliceIn .9s cubic-bezier(.2,.9,.2,1) both; }
.hero__title .line--1 { animation-delay: .05s; }
.hero__title .line--2 { animation-delay: .18s; padding-left: clamp(30px, 12vw, 180px); }
.hero__title .line--3 { animation-delay: .3s; color: var(--acid); }
.hero__title em {
  font-family: var(--f-serif); font-style: italic;
  font-weight: 400;
  color: var(--ink-2);
  padding: 0 .1em;
}
@keyframes sliceIn {
  from { transform: translateY(30%); opacity: 0; clip-path: inset(0 0 100% 0); }
  to   { transform: translateY(0);    opacity: 1; clip-path: inset(0 0 0 0); }
}

.hero__lede {
  max-width: 560px;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-2);
  margin: 0 0 40px;
  animation: fadeUp .8s .5s both;
}
.hero__lede u { text-decoration-color: var(--acid); text-underline-offset: 4px; color: var(--ink); }

.hero__cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeUp .8s .65s both;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 22px;
  font-family: var(--f-mono);
  font-size: 12.5px; letter-spacing: .22em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform .18s ease, background .2s ease, color .2s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn__arrow { transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--primary {
  background: var(--acid);
  color: #0a0a0a;
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--acid), 6px 6px 0 0 var(--ink);
}
.btn--primary:hover { box-shadow: 0 0 0 1px var(--acid), 10px 10px 0 0 var(--ink); }
.btn--primary:disabled {
  background: var(--bg-3); color: var(--ink-3);
  box-shadow: 0 0 0 1px var(--line-2);
  cursor: not-allowed;
  transform: none !important;
}
.btn--ghost {
  color: var(--ink);
  border: 1px solid var(--line-2);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--acid); color: var(--acid); }
.btn--wide { width: 100%; justify-content: center; padding: 22px; font-size: 14px; }
.btn--reset {
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase;
  padding: 8px 0;
  align-self: center;
}
.btn--reset:hover { color: var(--hot); }

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

/* ---------- HERO STATS ---------- */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 80px;
  border-top: 1px solid var(--line-2);
  animation: fadeUp .8s .9s both;
}
.hero__stats > div {
  padding: 24px 20px 4px 0;
  border-right: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 6px;
}
.hero__stats > div:last-child { border-right: 0; }
.hero__stats b {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}
.hero__stats span {
  font-family: var(--f-mono);
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-3);
}
@media (max-width: 720px){
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stats > div:nth-child(2){ border-right: 0; }
}

/* ---------- SECTION COMMON ---------- */
.section-title {
  font-family: var(--f-display);
  font-size: clamp(42px, 7vw, 96px);
  line-height: .92;
  letter-spacing: -.01em;
  margin: 0 0 40px;
  text-transform: uppercase;
}
.section-title em {
  font-family: var(--f-serif); font-style: italic;
  color: var(--acid); font-weight: 400;
}

/* ---------- SCRIPT ---------- */
.script {
  position: relative; z-index: 2;
  padding: 100px var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.script__label,
.howto__label,
.unlock__label,
.faq__label {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .3em;
  color: var(--acid);
  margin-bottom: 24px;
  display: block;
}
.script__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}
@media (max-width: 900px){ .script__grid { grid-template-columns: 1fr; } }

.script__code {
  background: #060606;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 8px 8px 0 0 var(--bg-3);
}
.script__codebar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
  background: #0d0d0d;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
}
.script__codebar .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--r { background: #ff4b1f; }
.dot--y { background: #ffb547; }
.dot--g { background: var(--acid); }
.script__filename { margin-left: 12px; letter-spacing: .12em; }
.script__copy {
  margin-left: auto;
  padding: 3px 10px;
  border: 1px solid var(--line-2);
  cursor: pointer;
  letter-spacing: .2em;
  transition: all .2s ease;
}
.script__copy:hover, .script__copy.copied { color: var(--acid); border-color: var(--acid); }
.script__pre {
  margin: 0; padding: 22px 20px;
  font-family: var(--f-mono);
  font-size: 13px; line-height: 1.7;
  color: var(--ink);
  overflow-x: auto;
}
.script__pre .c { color: var(--ink-3); font-style: italic; }
.script__pre .k { color: var(--acid); }
.script__pre .s { color: var(--amber); }

.script__side h3 {
  font-family: var(--f-display);
  font-size: 28px; letter-spacing: .01em; text-transform: uppercase;
  margin: 0 0 20px;
}
.script__side ul { list-style: none; padding: 0; margin: 0 0 28px; }
.script__side li {
  display: flex; gap: 14px; padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2);
}
.script__side li:last-child { border-bottom: 1px solid var(--line); }
.script__side li b {
  color: var(--acid); font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .2em;
  min-width: 22px;
}
.script__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.script__badges span {
  font-family: var(--f-mono);
  font-size: 10.5px; letter-spacing: .22em;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  border-radius: var(--radius);
}

/* ---------- HOW-TO ---------- */
.howto {
  position: relative; z-index: 2;
  padding: 100px var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.howto__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px){ .howto__grid { grid-template-columns: 1fr; } }
.step {
  padding: 32px 26px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
  border-radius: var(--radius);
  position: relative;
  transition: transform .3s ease, border-color .3s ease;
}
.step:hover { transform: translateY(-4px); border-color: var(--acid); }
.step__num {
  font-family: var(--f-display);
  font-size: 72px; line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1px var(--acid);
  margin-bottom: 16px;
}
.step h3 {
  font-family: var(--f-display);
  font-size: 24px; text-transform: uppercase;
  margin: 0 0 10px;
}
.step p { color: var(--ink-2); font-size: 14.5px; margin: 0; }

/* ---------- UNLOCK ---------- */
.unlock {
  position: relative; z-index: 2;
  padding: 120px var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.unlock__frame {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px clamp(24px, 5vw, 60px);
  border: 1px solid var(--line-2);
  background:
    linear-gradient(180deg, rgba(198,255,61,.03), rgba(198,255,61,0)),
    #0b0b0b;
  border-radius: var(--radius);
}
.unlock__corner {
  position: absolute;
  font-size: 22px;
  color: var(--acid);
  line-height: 1;
}
.unlock__corner--tl { top: 10px; left: 10px; }
.unlock__corner--tr { top: 10px; right: 10px; }
.unlock__corner--bl { bottom: 10px; left: 10px; }
.unlock__corner--br { bottom: 10px; right: 10px; }

.unlock__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap; gap: 12px;
}
.unlock__meta {
  font-family: var(--f-mono);
  font-size: 11.5px; letter-spacing: .22em;
  color: var(--ink-3);
}
.unlock__meta b { color: var(--acid); }
.unlock__title {
  font-family: var(--f-display);
  font-size: clamp(40px, 6vw, 84px);
  line-height: .95;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.unlock__title em {
  font-family: var(--f-serif); font-style: italic;
  color: var(--acid); font-weight: 400;
}
.unlock__sub { color: var(--ink-2); margin: 0 0 32px; max-width: 620px; }

.progress {
  display: flex; gap: 6px;
  margin-bottom: 34px;
}
.progress__seg {
  flex: 1; height: 8px;
  background: #0e0e0e;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.progress__seg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--acid), #eaff89);
  transform: translateX(-101%);
  transition: transform .5s cubic-bezier(.2,.9,.2,1);
  box-shadow: 0 0 20px var(--acid);
}
.progress__seg.done::after { transform: translateX(0); }

.checkpoints { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.chk {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line-2);
  background: #0e0e0e;
  border-radius: var(--radius);
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.chk:not(.locked):hover { border-color: var(--acid); transform: translateX(4px); }
.chk__num {
  font-family: var(--f-display); font-size: 30px;
  color: var(--acid);
  line-height: 1;
}
.chk__body h4 {
  margin: 0 0 4px;
  font-family: var(--f-mono);
  font-size: 13px; letter-spacing: .18em;
  text-transform: uppercase;
}
.chk__body p { margin: 0; font-size: 13px; color: var(--ink-3); }
.chk__cta {
  font-family: var(--f-mono);
  font-size: 11.5px; letter-spacing: .22em;
  padding: 12px 18px;
  border: 1px solid var(--acid);
  color: var(--acid);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
  text-transform: uppercase;
  white-space: nowrap;
}
.chk__cta:hover { background: var(--acid); color: #0a0a0a; }
.chk.locked { opacity: .38; filter: grayscale(1); }
.chk.locked .chk__cta { border-color: var(--line-2); color: var(--ink-3); cursor: not-allowed; }
.chk.done {
  background: linear-gradient(90deg, rgba(198,255,61,.08), transparent);
  border-color: rgba(198,255,61,.4);
}
.chk.done .chk__num::after { content: " ✓"; }
.chk.done .chk__cta { background: var(--acid); color: #0a0a0a; border-color: var(--acid); }
.chk.pending .chk__cta { background: var(--amber); color: #0a0a0a; border-color: var(--amber); }

.unlock__foot {
  display: flex; flex-direction: column; gap: 14px;
}
.unlock__legal {
  margin-top: 24px;
  font-family: var(--f-mono);
  font-size: 10.5px; letter-spacing: .16em;
  color: var(--ink-3);
  text-transform: uppercase;
  text-align: center;
}
.unlock__legal a { color: var(--acid); }

@media (max-width: 640px){
  .chk { grid-template-columns: 34px 1fr; }
  .chk__cta { grid-column: 1 / -1; text-align: center; }
}

/* ---------- FAQ ---------- */
.faq {
  position: relative; z-index: 2;
  padding: 100px var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.faq__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px 40px;
}
@media (max-width: 780px){ .faq__grid { grid-template-columns: 1fr; } }
.faq details {
  padding: 22px 0;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
}
.faq summary {
  list-style: none;
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: .01em;
  text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--acid);
  font-family: var(--f-mono);
  font-size: 24px;
  transition: transform .3s ease;
}
.faq details[open] summary::after { content: "×"; }
.faq details p {
  margin: 12px 0 0; color: var(--ink-2); font-size: 14.5px;
  max-width: 60ch;
}

/* ---------- FOOTER ---------- */
.foot {
  padding: 80px var(--pad-x) 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 40px;
  position: relative; z-index: 2;
}
.foot__left p { color: var(--ink-3); font-size: 13px; margin-top: 14px; max-width: 30ch; }
.foot__right {
  display: flex; flex-direction: column; gap: 12px;
  justify-self: end;
  font-family: var(--f-mono); font-size: 12px;
}
.foot__right > div { display: flex; gap: 14px; }
.foot__right span {
  color: var(--ink-3); letter-spacing: .22em;
  min-width: 60px;
}
.foot__right a:hover { color: var(--acid); }
.foot__bottom {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 10.5px; letter-spacing: .2em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.foot__ascii {
  overflow: hidden; white-space: nowrap;
  max-width: 40vw;
  color: var(--acid); opacity: .3;
}
@media (max-width: 780px){
  .foot { grid-template-columns: 1fr; }
  .foot__right { justify-self: start; }
  .foot__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .foot__ascii { max-width: 100%; }
}

