@font-face {
  font-family: "Press Start 2P";
  src: url(fonts/press-start-2p.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "VT323";
  src: url(fonts/vt323.woff2) format("woff2");
  font-display: swap;
}

:root {
  --bg: #0b0d0a;
  --panel: #10150f;
  --line: #24401f;
  --text: #c8ffc0;
  --muted: #7fb878;
  --phos: #39ff5a;
  --amber: #ffb000;
  --red: #ff4d4d;
  --beige: #d8cfb4;
  --beige-dark: #a79d80;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --term: "VT323", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    linear-gradient(rgba(57, 255, 90, 0.04) 1px, transparent 1px) 0 0 / 100% 4px,
    var(--bg);
  color: var(--text);
  font: 22px/1.35 var(--term);
}

a { color: var(--phos); }
h1, h2, h3 { font-family: var(--pixel); font-weight: 400; line-height: 1.35; }
h2 { font-size: clamp(1rem, 2.6vw, 1.5rem); margin: 0 0 1rem; color: var(--phos); text-shadow: 0 0 8px rgba(57, 255, 90, 0.6); }
h2::before { content: "> "; color: var(--amber); }
h3 { font-size: 0.8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sub { color: var(--muted); max-width: 44rem; margin: 0 auto 2rem; }

.decree { margin: 0; padding: 0.5rem 1rem; background: var(--amber); color: #1a1000; text-align: center; font: 0.6rem/1.6 var(--pixel); }

.nav { display: flex; align-items: center; gap: 1.5rem; max-width: 76rem; margin: 0 auto; padding: 1rem 1.5rem; }
.logo { color: var(--phos); font: 0.75rem var(--pixel); text-decoration: none; }
.spark { color: var(--amber); font-family: system-ui, sans-serif; }
.nav nav { display: flex; gap: 1.5rem; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; text-transform: uppercase; }
.nav nav a:hover { color: var(--phos); }

.btn { display: inline-block; padding: 0.8rem 1.1rem; border: 0; background: var(--phos); color: #031a07; font: 0.65rem/1.4 var(--pixel); text-decoration: none; cursor: pointer; box-shadow: 4px 4px 0 #0e5a1c; }
.btn:hover { background: var(--amber); box-shadow: 4px 4px 0 #6b4a00; }
.btn:active { transform: translate(4px, 4px); box-shadow: none; }
.btn.small, .waitlist .btn { white-space: nowrap; padding: 0.55rem 0.8rem; font-size: 0.55rem; }
.btn.ghost { background: transparent; color: var(--phos); box-shadow: inset 0 0 0 2px var(--phos); }
.btn.ghost:hover { color: var(--amber); box-shadow: inset 0 0 0 2px var(--amber); }
.btn.disabled { opacity: 0.4; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

main { max-width: 76rem; margin: 0 auto; padding: 0 1.5rem; }

/* The mainframe */
.hero { padding: 1.5rem 0 2rem; text-align: center; }
.mainframe { padding: 1.25rem; background: var(--beige); box-shadow: inset -6px -6px 0 var(--beige-dark), inset 6px 6px 0 #f1ead3, 10px 10px 0 #000; }
.bezel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.hero-grid > * { min-width: 0; }
.hero-copy { container-type: inline-size; }
.crt { padding: 1.25rem; background: #2c2a24; box-shadow: inset 0 0 0 4px #1b1a16; }
.screen {
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2.5rem);
  border-radius: 1.5rem / 2rem;
  background: radial-gradient(ellipse at center, #0f2a12 0%, #051007 75%, #020603 100%);
  box-shadow: inset 0 0 4rem rgba(0, 0, 0, 0.9), 0 0 2rem rgba(57, 255, 90, 0.15);
  text-align: left;
}
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.28) 0 2px, transparent 2px 4px);
}
.boot { margin: 0 0 1.5rem; color: var(--muted); font: 1.05rem/1.25 var(--term); white-space: pre-wrap; overflow-wrap: anywhere; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
.eyebrow { margin: 0 0 1rem; color: var(--red); font: 0.6rem var(--pixel); }
.eyebrow s { text-decoration-thickness: 2px; }
.hero h1 { margin: 0 0 1.25rem; color: var(--phos); font-size: clamp(1rem, 7.6cqi, 3.2rem); line-height: 1.2; text-shadow: 0 0 6px rgba(57, 255, 90, 0.8), 0 0 24px rgba(57, 255, 90, 0.4), 4px 4px 0 #0e5a1c; }
.tm { font-size: 0.4em; vertical-align: super; }
.lede { max-width: 34rem; margin: 0 0 1.5rem; color: var(--text); font-size: 1.35rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.prompt { margin: 1.5rem 0 0; color: var(--phos); font-size: 1.3rem; }
.cursor { color: var(--phos); }

.mascot { margin: 0; text-align: center; }
.mascot img { display: block; width: 100%; max-width: 22rem; height: auto; margin: 0 auto; image-rendering: pixelated; border: 4px solid var(--phos); box-shadow: 0 0 1.5rem rgba(57, 255, 90, 0.35); }
.mascot figcaption { display: inline-block; margin-top: -1rem; padding: 0.4rem 0.7rem; position: relative; background: #b3121b; color: #fff; font: 0.7rem var(--pixel); transform: rotate(-6deg); box-shadow: 3px 3px 0 #000; }

.panel { display: flex; align-items: center; gap: 0.75rem; padding: 0 0.5rem; }
.led { width: 0.8rem; height: 0.8rem; background: #3a1010; box-shadow: inset 0 0 0 2px #00000055; }
.led.on { background: var(--phos); box-shadow: 0 0 8px var(--phos); }
.led.blink { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.label { margin-left: 0.5rem; color: #4a453a; font: 0.6rem var(--pixel); }
.tape { width: 3rem; height: 3rem; margin-left: auto; border-radius: 50%; background: radial-gradient(circle, #d8cfb4 0 18%, #2c2a24 19% 60%, #6d6655 61%); }
.tape + .tape { margin-left: 0; }

.endorse { display: flex; gap: 1.5rem; align-items: center; max-width: 50rem; margin: 3rem auto 0; padding: 1.5rem; border: 2px solid var(--line); background: var(--panel); text-align: left; }
.seal { position: relative; flex: none; display: grid; place-items: center; width: 8.5rem; height: 8.5rem; color: #3b2a00; font: 0.55rem/1.9 var(--pixel); text-align: center; transform: rotate(-12deg); }
.seal::before { content: ""; position: absolute; inset: 0; background: var(--amber); clip-path: polygon(50% 0, 61% 12%, 77% 6%, 80% 22%, 96% 26%, 90% 41%, 100% 55%, 87% 64%, 90% 81%, 73% 82%, 65% 97%, 50% 89%, 35% 97%, 27% 82%, 10% 81%, 13% 64%, 0 55%, 10% 41%, 4% 26%, 20% 22%, 23% 6%, 39% 12%); }
.seal span { position: relative; }
.endorse-text { min-width: 0; margin: 0; }
.endorse blockquote { margin: 0; font-size: 1.5rem; color: var(--text); }
.endorse blockquote p { margin: 0 0 0.5rem; }
.endorse figcaption { color: var(--muted); font-size: 1.05rem; }


.logos { padding: 2rem 0; text-align: center; color: var(--muted); }
.logos p { font: 0.55rem var(--pixel); letter-spacing: 0.1em; text-transform: uppercase; }
.logos ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem; margin: 0; padding: 0; list-style: none; color: var(--text); font-size: 1.3rem; }

.section { padding: 3.5rem 0; text-align: center; }

.converter { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; border: 2px solid var(--line); background: var(--panel); box-shadow: 6px 6px 0 #000; max-width: 46rem; margin: 0 auto; padding: 1.5rem; text-align: left; }
.converter > * { min-width: 0; }
.converter label { color: var(--amber); font: 0.55rem var(--pixel); }
.converter .btn { justify-self: start; }
.converter label[for="output"] { margin-top: 1rem; }
textarea, input, output { width: 100%; padding: 0.8rem 1rem; border: 2px solid var(--line); border-radius: 0; background: #050905; color: var(--phos); font: 1.3rem/1.3 var(--term); }
textarea { resize: vertical; field-sizing: content; min-height: 6.5rem; }
output { display: block; min-height: 4rem; white-space: pre-wrap; overflow-wrap: anywhere; border-color: var(--phos); }
.meter { margin: 0; color: var(--amber); }





.waitlist form { display: flex; gap: 0.75rem; max-width: 32rem; margin: 0 auto; }
.term-note { display: table; margin: 2rem auto 0; color: var(--muted); font-size: 1.15rem; text-align: left; }
.reply { min-height: 1.6rem; color: var(--amber); }

footer { max-width: 52rem; margin: 2rem auto 0; padding: 2rem 1.5rem 3rem; border-top: 2px dashed var(--line); color: var(--muted); font-size: 1.1rem; text-align: center; }

@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
}

@media (max-width: 760px) {
  .nav { gap: 0.75rem; padding: 1rem; }
  .logo { font-size: 0.55rem; }
  .mainframe { padding: 0.6rem; }
  .crt { padding: 0.5rem; }
  .screen { border-radius: 0.75rem; }
  .screen { container-type: inline-size; }
  .boot { font-size: min(4cqi, 1.05rem); white-space: pre; overflow: hidden; }
  .hero-grid { grid-template-columns: 1fr; }
  .mascot { order: -1; }
  .mascot img { max-width: 14rem; }
  .tape { width: 2rem; height: 2rem; }
  .endorse { flex-direction: column; text-align: center; }
  .waitlist form { flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .cursor, .led.blink { animation: blink 1s steps(1) infinite; }
  .screen { animation: flicker 5s steps(1) infinite; }
  .seal { animation: wobble 3s steps(4) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  @keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: 0.94; } 48% { opacity: 1; } }
  @keyframes wobble { 50% { transform: rotate(-4deg) scale(1.05); } }
}
