:root {
  --bg: #07090b;
  --bg-elev: #0d1114;
  --bg-card: #0f1418;
  --line: #1c2530;
  --text: #d7e0e4;
  --text-dim: #8794a0;
  --text-faint: #58656f;
  --accent: #b6ff2e;
  --accent-dim: #7bbf18;
  --accent-rgb: 182, 255, 46;
  --amber: #ffb347;
  --red: #ff5f56;
  --glow: 0 0 24px rgba(var(--accent-rgb), 0.28);
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---- background fx ---- */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.18;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 80%);
  pointer-events: none;
}
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.012) 0,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: overlay;
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ---- nav ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 5vw, 4rem);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 11, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.55rem; font-family: var(--mono); font-weight: 700; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-fallback { display: none; align-items: center; gap: 0.5rem; }
.brand-logo.hide { display: none; }
.brand-fallback.show { display: flex; }
.footer-logo { height: 30px; }
.brand-word {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 5px;
  font-size: 0.98rem;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover .brand-word { color: var(--accent); text-shadow: var(--glow); }
.footer-brand .brand-word { color: var(--text); letter-spacing: 4px; }
/* scrambling glyphs */
.scramble .dud { color: var(--accent); opacity: 0.85; }
.scramble.price .dud { color: var(--amber); }
.brand-mark {
  background: var(--accent);
  color: #04140d;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  letter-spacing: 1px;
  box-shadow: var(--glow);
}
.brand-name { letter-spacing: 3px; font-size: 0.95rem; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; font-family: var(--mono); font-size: 0.82rem; }
.nav-links a { color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  border: 1px solid var(--accent-dim);
  color: var(--accent) !important;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
}
.nav-cta:hover { background: var(--accent); color: #04140d !important; box-shadow: var(--glow); }

/* ---- hero ---- */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 7rem) clamp(1.2rem, 5vw, 2rem) 4rem;
  text-align: center;
}
.hero-tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.hero-title {
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -1px;
}
.hero-title .accent { color: var(--accent); text-shadow: var(--glow); }
.hero-title .price { color: var(--amber); }
.hero-sub {
  max-width: 620px;
  margin: 1.6rem auto 0;
  color: var(--text-dim);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}
.hero-sub strong { color: var(--text); }

/* ---- terminal ---- */
.terminal {
  max-width: 640px;
  margin: 2.4rem auto 0;
  text-align: left;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: #0a0d10;
  border-bottom: 1px solid var(--line);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: var(--red); }
.dot.amber { background: var(--amber); }
.dot.green { background: var(--accent); }
.terminal-title { margin-left: auto; font-family: var(--mono); font-size: 0.72rem; color: var(--text-faint); }
.terminal-body { padding: 1.1rem 1.2rem; font-family: var(--mono); font-size: 0.86rem; min-height: 132px; }
.terminal-body .line { color: var(--text); }
.prompt { color: var(--accent); margin-right: 0.5rem; }
.cursor { animation: blink 1s steps(1) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }
#terminal-output { margin-top: 0.4rem; color: var(--text-dim); white-space: pre-wrap; }
#terminal-output .ok { color: var(--accent); }
#terminal-output .key { color: var(--amber); }

/* ---- buttons ---- */
.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.btn {
  font-family: var(--mono);
  font-size: 0.9rem;
  padding: 0.8rem 1.4rem;
  border-radius: 7px;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #04140d; font-weight: 700; }
.btn-primary:hover { box-shadow: var(--glow); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--text-dim); }
.btn-ghost:hover { border-color: var(--accent-dim); color: var(--accent); }
.btn-block { display: block; text-align: center; width: 100%; margin-top: 0.4rem; }

/* ---- hero stats ---- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  max-width: 640px;
  margin: 3rem auto 0;
}
.stat { background: var(--bg-elev); padding: 1.2rem 0.5rem; display: flex; flex-direction: column; gap: 0.2rem; }
.stat-num { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1px; }

/* ---- sections ---- */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.2rem, 5vw, 2rem);
}
.section-head { margin-bottom: 2.6rem; }
.kicker { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 3px; color: var(--accent); }
.section-head h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-top: 0.6rem;
}

/* ---- challenge ---- */
.challenge-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.challenge-copy p { color: var(--text-dim); margin-bottom: 1rem; font-size: 1.02rem; }
.challenge-copy a { color: var(--accent); border-bottom: 1px dashed var(--accent-dim); }
.challenge-copy em { color: var(--text); font-style: normal; border-bottom: 1px solid var(--amber); }
.challenge-list { list-style: none; font-family: var(--mono); font-size: 0.92rem; }
.challenge-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
}
.challenge-list .check { color: var(--accent); margin-right: 0.6rem; }

/* ---- the code / no shortcuts ---- */
.code-intro { max-width: 760px; color: var(--text-dim); font-size: 1.05rem; margin-bottom: 2.4rem; }
.code-intro strong { color: var(--text); }
.code-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.compare-col { background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem 1.5rem; }
.compare-col.yes { border-color: var(--accent-dim); box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.06); }
.compare-head { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 2px; color: var(--text-faint); }
.compare-col.yes .compare-head { color: var(--accent); }
.compare-col ul { list-style: none; margin-top: 1.1rem; }
.compare-col li { padding: 0.6rem 0 0.6rem 1.7rem; position: relative; font-size: 0.96rem; border-bottom: 1px solid var(--line); }
.compare-col li:last-child { border-bottom: 0; }
.compare-col.not li { color: var(--text-faint); text-decoration: line-through; text-decoration-color: var(--red); }
.compare-col.not li::before { content: "\2717"; position: absolute; left: 0; color: var(--red); text-decoration: none; }
.compare-col.yes li { color: var(--text); }
.compare-col.yes li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem 1.3rem;
  transition: border-color 0.2s, transform 0.2s;
}
.step:hover { border-color: var(--accent-dim); transform: translateY(-4px); }
.step-num { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); }
.step h3 { margin: 0.8rem 0 0.5rem; font-size: 1.1rem; }
.step p { color: var(--text-dim); font-size: 0.92rem; }

/* ---- pricing ---- */
.pricing-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--accent-dim);
  border-radius: 14px;
  padding: 2.4rem 2rem;
  box-shadow: 0 0 50px rgba(var(--accent-rgb), 0.08);
}
.pricing-top { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 1.6rem; margin-bottom: 1.6rem; }
.pricing-label { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 3px; color: var(--text-dim); }
.pricing-amount { font-family: var(--mono); font-size: 3.4rem; font-weight: 700; color: var(--accent); margin: 0.4rem 0; line-height: 1; }
.pricing-amount .currency { font-size: 1.8rem; vertical-align: super; }
.pricing-amount .per { font-size: 1rem; color: var(--text-faint); font-weight: 400; }
.pricing-note { color: var(--text-dim); font-size: 0.95rem; }
.pricing-features { list-style: none; margin-bottom: 1.6rem; }
.pricing-features li { padding: 0.6rem 0 0.6rem 1.6rem; position: relative; color: var(--text-dim); font-size: 0.95rem; }
.pricing-features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pricing-scarcity { text-align: center; font-family: var(--mono); font-size: 0.78rem; color: var(--amber); margin-top: 1rem; }

/* ---- telemetry ---- */
.telemetry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tele-card { background: var(--bg-card); padding: 1.4rem 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; justify-content: center; }
.tele-card.wide { grid-column: span 1; }
.tele-num { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.tele-label { font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1.5px; }
.tele-msg { font-family: var(--mono); font-size: 0.86rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tele-foot { font-family: var(--mono); font-size: 0.78rem; color: var(--text-faint); margin-top: 1rem; }
.tele-foot .op { color: var(--accent); }
.tele-foot a { color: var(--text-dim); border-bottom: 1px dashed var(--line); }
.tele-foot a:hover { color: var(--accent); }

/* ---- builds ---- */
.builds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.build-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.6rem 1.4rem;
}
.build-card.open { border-color: var(--accent-dim); box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.07); }
.build-card.shipped { border-color: var(--accent-dim); }
.build-card.building { border-color: var(--amber); }
.build-card.building .build-status { color: var(--amber); }
.build-card.building .pulse { background: var(--amber); box-shadow: 0 0 0 0 rgba(255, 179, 71, 0.6); }
.build-status { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 1px; color: var(--accent); display: flex; align-items: center; gap: 0.5rem; }
.build-status.muted { color: var(--text-faint); }
.build-shot { margin: -1.6rem -1.4rem 1rem; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-elev); }
.build-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.build-client { font-family: var(--mono); font-size: 0.78rem; color: var(--text-faint); display: block; margin-top: -0.2rem; margin-bottom: 0.4rem; }
.build-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.build-stack span { font-family: var(--mono); font-size: 0.7rem; color: var(--accent); border: 1px solid var(--line); border-radius: 4px; padding: 0.2rem 0.5rem; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); } }
.build-card h3 { margin: 0.9rem 0 0.5rem; font-size: 1.15rem; }
.build-card p { color: var(--text-dim); font-size: 0.92rem; }
.build-card.placeholder { opacity: 0.6; }
.build-link { display: inline-block; margin-top: 1rem; font-family: var(--mono); font-size: 0.85rem; color: var(--accent); }
.build-link:hover { text-shadow: var(--glow); }

/* ---- contact ---- */
.contact { text-align: center; }
.contact .section-head { margin-bottom: 1rem; }
.contact-sub { max-width: 560px; margin: 0 auto 2rem; color: var(--text-dim); }
.contact-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.contact-actions.secondary { margin-top: 1.6rem; font-family: var(--mono); font-size: 0.85rem; align-items: center; }
.contact-actions.secondary .or { color: var(--text-faint); }
.contact-actions.secondary a { color: var(--text-dim); border-bottom: 1px dashed var(--line); }
.contact-actions.secondary a:hover { color: var(--accent); }

/* ---- intake console ---- */
.intake {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.intake-bar { border-bottom: 1px solid var(--line); }
.intake-form { padding: 1.6rem 1.5rem 1.7rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1.05rem; }
.field label,
.lp-label { font-family: var(--mono); font-size: 0.78rem; color: var(--text-dim); margin-bottom: 0.45rem; letter-spacing: 0.5px; }
.field .lp { color: var(--accent); margin-right: 0.35rem; }
.intake-form input[type="text"],
.intake-form input[type="email"],
.intake-form textarea,
.intake-form select {
  background: #0a0d10;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.9rem;
  padding: 0.7rem 0.8rem;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.intake-form textarea { resize: vertical; line-height: 1.5; }
.intake-form input:focus,
.intake-form textarea:focus,
.intake-form select:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}
.intake-form input::placeholder,
.intake-form textarea::placeholder { color: var(--text-faint); }
.intake-form .invalid { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(255, 95, 86, 0.12) !important; }
.field-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 0.35rem; }
.charcount { font-family: var(--mono); font-size: 0.72rem; color: var(--text-faint); }
.charcount.over { color: var(--red); }
.field-err { font-family: var(--mono); font-size: 0.74rem; color: var(--red); min-height: 1em; }

/* budget acknowledgment */
.budget-ack { justify-content: flex-start; }
.ack-box { display: flex; align-items: center; gap: 0.6rem; background: #0a0d10; border: 1px solid var(--line); border-radius: 7px; padding: 0.7rem 0.8rem; font-family: var(--mono); font-size: 0.85rem; color: var(--text-dim); }
.ack-box strong { color: var(--accent); }
.ack-box input { width: 16px; height: 16px; accent-color: var(--accent); flex: none; }

/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* transmit log */
.intake-form #submit-btn { margin-top: 0.3rem; }
.intake-form #submit-btn[disabled] { opacity: 0.7; cursor: progress; }
.intake-log { font-family: var(--mono); font-size: 0.82rem; color: var(--text-dim); margin-top: 0.9rem; white-space: pre-wrap; }
.intake-log .ok { color: var(--accent); }
.intake-log .err { color: var(--red); }

/* success state */
.intake-success { padding: 2.6rem 1.5rem 3rem; text-align: center; }
.success-mark {
  width: 56px; height: 56px; margin: 0 auto 1rem;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 1.6rem; color: #04140d; background: var(--accent);
  box-shadow: var(--glow);
  animation: pop 0.4s ease;
}
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.intake-success h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.intake-success p { color: var(--text-dim); }
.intake-success #echo-email { color: var(--accent); }
.success-meta { font-family: var(--mono); font-size: 0.76rem; color: var(--text-faint); margin-top: 1rem; }

/* ---- footer ---- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem clamp(1.2rem, 5vw, 4rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-weight: 700; flex-wrap: wrap; }
.footer-brand p { width: 100%; color: var(--text-faint); font-size: 0.8rem; font-weight: 400; margin-top: 0.4rem; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; font-family: var(--mono); font-size: 0.76rem; color: var(--text-faint); }
.footer-meta .op { color: var(--accent); }
.footer-meta .ver { letter-spacing: 1px; }

/* ---- responsive ---- */
@media (max-width: 820px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .challenge-grid { grid-template-columns: 1fr; }
  .code-compare { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .builds-grid { grid-template-columns: 1fr; }
  .telemetry { grid-template-columns: repeat(2, 1fr); }
  .tele-card.wide { grid-column: span 2; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-meta { align-items: flex-start; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .telemetry { grid-template-columns: 1fr; }
  .tele-card.wide { grid-column: span 1; }
}
