:root {
  --bg: #07070a;
  --bg-2: #0d0b0e;
  --panel: #110e11;
  --line: #2b1b1d;
  --line-hi: #4a2326;
  --text: #ece7e2;
  --muted: #9b908b;
  --red: #e0262f;
  --red-deep: #9e0c18;
  --ember: #cc5500;
  --ember-hi: #ff8a2a;
  --cut: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--text); }

body {
  font: 17px/1.65 "Barlow", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ember-hi); text-decoration: none; }
a:hover { color: #ffb347; }

h1, h2, h3, .brand, .btn, nav a, .eyebrow, .chip, .num {
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
header.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  background: linear-gradient(180deg, rgba(7, 7, 10, 0.92), rgba(7, 7, 10, 0.6));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; }
.brand img { width: 34px; height: 34px; }
.brand .uo { color: var(--ember-hi); }
nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
nav a { color: var(--muted); font-size: 13px; font-weight: 600; }
nav a:hover, nav a.active { color: var(--text); }
nav a.active { box-shadow: inset 0 -2px 0 var(--red); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg) url("/hero.svg?v=5") right bottom / cover no-repeat;
}
.hero::before {
  /* left fade so the words stay readable over the scene */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7, 7, 10, 0.96) 0%, rgba(7, 7, 10, 0.82) 38%, rgba(7, 7, 10, 0.1) 70%);
}
.hero::after {
  /* faint scanlines, like an old field monitor */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.18;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px);
}
#embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 72px; width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ember-hi); font-size: 13px; font-weight: 600;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--red); }

.title { margin: 18px 0 10px; line-height: 0.92; }
.title .uo {
  display: inline-block; padding: 4px 14px 2px; margin-bottom: 10px;
  font-family: "Saira Stencil One", "Chakra Petch", sans-serif; font-size: clamp(28px, 4vw, 44px);
  color: var(--bg); background: var(--ember);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 88% 100%, 0 100%);
}
.title .name {
  display: block;
  font-family: "Saira Stencil One", "Chakra Petch", sans-serif;
  font-size: clamp(54px, 10vw, 128px); letter-spacing: 0.02em; text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #f0d9cf 45%, var(--red) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 26px rgba(224, 38, 47, 0.35));
}
.hero .tag { font-size: clamp(19px, 2.4vw, 26px); font-weight: 600; margin: 8px 0 6px; max-width: 640px; }
.hero .sub { color: var(--muted); margin: 0 0 30px; max-width: 580px; }

.cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px;
  font-size: 15px; font-weight: 700; color: #fff; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: filter 0.15s, transform 0.15s;
}
.btn:hover { color: #fff; filter: brightness(1.15); transform: translateY(-1px); }
/* The clipped corners cut off a normal outline, so show keyboard focus inside the button. */
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px #fff; }
a:focus-visible, nav a:focus-visible { outline: 2px solid var(--ember-hi); outline-offset: 3px; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line-hi); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--ember); color: var(--ember-hi); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; padding: 7px 14px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line-hi); background: rgba(7, 7, 10, 0.6);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ee08a; box-shadow: 0 0 10px #3ee08a; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- Sections ---------- */
section { padding: 88px 0; border-bottom: 1px solid var(--line); position: relative; }
section.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
section h2 { font-size: clamp(28px, 4vw, 40px); margin: 6px 0 10px; line-height: 1.1; }
section h2 .accent { color: var(--red); }
section .lead { color: var(--muted); margin: 0 0 40px; max-width: 720px; font-size: 18px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }

/* HUD card: cut corner and corner brackets */
.card {
  position: relative; padding: 26px 24px 24px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.card::before, .card::after {
  content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--ember); border-style: solid;
}
.card::before { left: 8px; top: 8px; border-width: 2px 0 0 2px; }
.card::after { right: 8px; bottom: 8px; border-width: 0 2px 2px 0; }
.card .num { color: #ff4a52; font-size: 13px; font-weight: 700; }
.card h3 { margin: 6px 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }

.story { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.story p { color: #cfc6c0; }
.quote {
  position: relative; margin: 0; padding: 30px 30px 30px 34px;
  font-family: "Chakra Petch", sans-serif; font-size: 22px; line-height: 1.4; font-weight: 600;
  background: linear-gradient(135deg, rgba(158, 12, 24, 0.22), rgba(204, 85, 0, 0.08));
  border-left: 4px solid var(--red);
}
.quote small { display: block; margin-top: 14px; font-size: 13px; color: var(--ember-hi); letter-spacing: 0.08em; text-transform: uppercase; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; position: relative; padding: 20px 22px 20px 78px;
  background: var(--panel); border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 20px; top: 18px;
  font-family: "Chakra Petch", sans-serif; font-weight: 700; font-size: 26px; color: var(--red);
}
code, .mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; color: var(--ember-hi); }

table.info { width: 100%; border-collapse: collapse; margin-top: 10px; }
table.info td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.info td:first-child { color: var(--muted); width: 40%; }

.banner {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 34px; border: 1px solid var(--line-hi);
  background: linear-gradient(120deg, rgba(158, 12, 24, 0.35), rgba(7, 7, 10, 0.9) 60%), var(--panel);
}
.banner h2 { margin: 0; }

footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }

.page-top { padding-top: 120px; }

@media (max-width: 800px) {
  header.top .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  nav { margin-left: 0; gap: 14px; }
  .hero { min-height: 86vh; background-position: 72% bottom; }
  .hero::before { background: linear-gradient(180deg, rgba(7, 7, 10, 0.92) 0%, rgba(7, 7, 10, 0.75) 60%, rgba(7, 7, 10, 0.35) 100%); }
  .story { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .chip .dot { animation: none; }
  .btn { transition: none; }
}

/* ---------- Wait list ---------- */
.waves { margin-bottom: 18px; }
.counter { color: var(--ember-hi); font-family: "Chakra Petch", sans-serif; font-weight: 600; letter-spacing: 0.04em; min-height: 1.6em; }
.form-card {
  max-width: 520px; margin-top: 24px; padding: 26px 24px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line-hi);
}
.form-card h3 { margin: 0 0 12px; font-size: 19px; }
.form-card label { display: block; margin: 14px 0 6px; color: var(--muted); font-size: 14px; }
.form-card input {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-hi); border-radius: 0;
}
.form-card input:focus { outline: 2px solid var(--ember-hi); outline-offset: 1px; }
.form-card .btn { margin-top: 20px; }
.hint { color: var(--muted); font-size: 15px; }
.error { color: #ff6b6b; font-weight: 600; min-height: 1.4em; }
.alpha-strip { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; margin-top: 22px; color: var(--muted); font-size: 15px; }
.alpha-strip b { color: var(--ember-hi); }
