/* ════════════════════════════════════════════════════════════
   VULCAN DEVX — space western
   Palette: warm void black · ember orange · brass · parchment
   Type:    Besley (Clarendon slab — the wanted-poster serif)
            Inter (body) · Space Mono (HUD/terminal labels)
   ════════════════════════════════════════════════════════════ */

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

:root {
  --void:      #0b0908;
  --void-2:    #12100d;
  --panel:     #171310;
  --line:      #2b241d;
  --ember:     #ff6b2b;
  --ember-dim: #e85d26;
  --brass:     #c8955c;
  --parchment: #ece5d8;
  --dust:      #9a8f7e;
  --font-slab: 'Besley', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;
  --max-w:     1100px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.section-dark { background: var(--void-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ── Star field (canvas) ─────────────────────────────────── */
#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

main, section, header, footer, .ticker { position: relative; z-index: 1; }

/* ── HUD labels (mono terminal accents) ──────────────────── */
.hud-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--brass);
  margin-bottom: 26px;
}
.hud-label.centered { text-align: center; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
}

.btn-primary {
  background: var(--ember-dim);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,107,43,0.4), 0 8px 32px -8px rgba(232,93,38,0.45);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.btn-primary:hover {
  background: var(--ember);
  box-shadow: 0 0 0 1px rgba(255,107,43,0.7), 0 12px 40px -8px rgba(232,93,38,0.65);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--parchment);
  border: 1px solid var(--line);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.btn-outline:hover { border-color: var(--brass); color: var(--brass); }

.btn-ghost { background: transparent; color: var(--dust); padding-left: 0; }
.btn-ghost:hover { color: var(--parchment); }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,9,8,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo { display: flex; align-items: center; gap: 11px; }

.logo-word {
  font-family: var(--font-slab);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--parchment);
}
.logo-word em {
  font-weight: 700;
  font-style: italic;
  color: var(--brass);
  letter-spacing: 0;
}

.nav-links { display: flex; align-items: center; gap: 34px; }

.nav-links a:not(.btn) {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dust);
  transition: color 0.15s;
}
.nav-links a:not(.btn):hover { color: var(--ember); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 130px 0 0;
  position: relative;
  overflow: hidden;
}

.hero-inner { text-align: center; position: relative; padding-bottom: 150px; }

.hero-heading {
  font-family: var(--font-slab);
  font-weight: 900;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--parchment);
  margin-bottom: 34px;
  text-shadow: 0 2px 40px rgba(232,93,38,0.15);
}

.ember { color: var(--ember); }

.brass-underline {
  color: var(--parchment);
  border-bottom: 6px solid var(--brass);
  padding-bottom: 2px;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 44px;
  font-size: 18px;
  color: var(--dust);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Desert horizon glow at the base of the hero */
.horizon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 130px;
  background:
    radial-gradient(60% 120px at 50% 100%, rgba(232,93,38,0.35) 0%, rgba(232,93,38,0.08) 55%, transparent 100%);
  border-bottom: 1px solid rgba(200,149,92,0.35);
}
.horizon::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  box-shadow: 0 0 18px 2px rgba(255,107,43,0.55);
}

/* ── Ticker ──────────────────────────────────────────────── */
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--void-2);
  padding: 14px 0;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--dust);
}
.ticker-track i { color: var(--ember-dim); font-style: normal; font-size: 9px; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Manifesto ───────────────────────────────────────────── */
.manifesto-inner { max-width: 780px; margin: 0 auto; text-align: center; }

.manifesto-text {
  font-family: var(--font-slab);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.5;
  color: var(--parchment);
}
.manifesto-text em { color: var(--ember); }

.divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 64px;
  color: var(--brass);
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}
.divider::after { background: linear-gradient(90deg, var(--line), transparent); }
.divider span { font-size: 13px; }

/* ── Section headings ────────────────────────────────────── */
.section-heading {
  font-family: var(--font-slab);
  font-weight: 900;
  font-size: clamp(34px, 4.5vw, 54px);
  letter-spacing: -0.01em;
  color: var(--parchment);
  text-align: center;
  margin-bottom: 18px;
}

.section-sub {
  text-align: center;
  color: var(--dust);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 72px;
}

/* ── The Trail ───────────────────────────────────────────── */
.trail {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.trail-stage {
  background: var(--void);
  padding: 34px 30px;
  position: relative;
  transition: background 0.2s;
}
.trail-stage:hover { background: var(--panel); }
.trail-stage:hover .stage-code { color: var(--ember); }

.stage-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brass);
  display: block;
  margin-bottom: 14px;
  transition: color 0.2s;
}

.trail-stage h3 {
  font-family: var(--font-slab);
  font-weight: 700;
  font-size: 21px;
  color: var(--parchment);
  margin-bottom: 8px;
}

.trail-stage p { font-size: 14px; color: var(--dust); line-height: 1.65; }

.stage-final {
  background: linear-gradient(135deg, rgba(232,93,38,0.10), var(--void) 65%);
  box-shadow: inset 0 0 0 1px rgba(232,93,38,0.35);
}
.stage-final .stage-code { color: var(--ember); }

/* ── The Payload ─────────────────────────────────────────── */
.payload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.payload-card {
  background: var(--void);
  border: 1px solid var(--line);
  padding: 36px 30px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.payload-card:hover {
  border-color: rgba(200,149,92,0.55);
  transform: translateY(-3px);
}

.payload-glyph {
  font-size: 22px;
  color: var(--ember);
  margin-bottom: 18px;
}

.payload-card h3 {
  font-family: var(--font-slab);
  font-weight: 700;
  font-size: 19px;
  color: var(--parchment);
  margin-bottom: 8px;
}

.payload-card p { font-size: 14px; color: var(--dust); }

/* ── Our Code ────────────────────────────────────────────── */
.code-inner { max-width: 760px; margin: 0 auto; }

.code-list { display: grid; gap: 34px; margin-top: 56px; }

.code-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: start;
}

.code-num {
  font-family: var(--font-slab);
  font-weight: 900;
  font-style: italic;
  font-size: 30px;
  color: var(--brass);
  line-height: 1.2;
  text-align: right;
}

.code-item p { font-size: 16px; color: var(--dust); line-height: 1.75; }
.code-item strong { color: var(--parchment); font-weight: 600; }

/* ── CTA ─────────────────────────────────────────────────── */
.section-cta {
  background:
    radial-gradient(70% 300px at 50% 115%, rgba(232,93,38,0.22) 0%, transparent 70%),
    var(--void-2);
  border-top: 1px solid var(--line);
}

.cta-inner { text-align: center; }

.waitlist-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.waitlist-form input {
  padding: 13px 22px;
  border: 1px solid var(--line);
  background: var(--void);
  color: var(--parchment);
  font-size: 15px;
  font-family: var(--font-mono);
  width: 320px;
  outline: none;
  transition: border-color 0.2s;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.waitlist-form input::placeholder { color: var(--dust); opacity: 0.7; }
.waitlist-form input:focus { border-color: var(--ember-dim); }

.form-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--dust);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: var(--void);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer .logo-word { font-size: 15px; }

.footer-tag {
  font-family: var(--font-slab);
  font-style: italic;
  font-size: 14px;
  color: var(--brass);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dust);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 680px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 90px; }
  .hero-inner { padding-bottom: 110px; }
  .section { padding: 72px 0; }
  .code-item { grid-template-columns: 44px 1fr; gap: 14px; }
  .code-num { font-size: 24px; }
  .waitlist-form input { width: 100%; max-width: 320px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
