:root {
  --bg: #0a0c0f;
  --surface: #14181d;
  --surface-alt: #1b2027;
  --border: #262c33;
  --text: #eef1f4;
  --text-muted: #8a93a0;
  --amber: #ff8a3d;
  --amber-dim: #7a4626;
  --cyan: #39e6c4;
  --danger: #ff5d5d;

  --display: "Big Shoulders Display", sans-serif;
  --body: "IBM Plex Sans", -apple-system, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

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

html { color-scheme: dark; }

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

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.route-line {
  position: fixed;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  transform: translateX(-50%);
  z-index: 0;
  opacity: 0.28;
  pointer-events: none;
}
.route-line svg { width: 100%; height: 100%; }
.route-line path { stroke: var(--amber); animation: dash 40s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -800; } }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.page {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--amber);
  background: var(--surface);
}
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.01em;
}
.brand-name em { font-style: normal; color: var(--amber); }

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface);
}
.status-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-muted);
}
.status-badge .dot.online { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.status-badge .dot.offline { background: var(--danger); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 88px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 18px;
}
h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--amber);
}
.lede {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 34px;
}

.cta-row { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.download-button {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  background: var(--amber);
  color: #150c05;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  padding: 16px 26px;
  border-radius: 10px;
  box-shadow: 0 0 0 0 rgba(255, 138, 61, 0.5);
  animation: beacon 2.6s ease-in-out infinite;
  transition: transform 0.15s ease;
}
.download-button:hover { transform: translateY(-1px); }
.download-button .dl-meta {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  opacity: 0.75;
}
.download-button.disabled {
  background: var(--surface-alt);
  color: var(--text-muted);
  animation: none;
  cursor: not-allowed;
}
@keyframes beacon {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 138, 61, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(255, 138, 61, 0); }
}
.cta-sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}
.cta-sub .sep { margin: 0 8px; opacity: 0.5; }
.warning {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--danger);
}
.warning code {
  background: var(--surface-alt);
  padding: 1px 6px;
  border-radius: 4px;
}

/* HUD */
.hud {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  position: sticky;
  top: 28px;
}
.hud-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.hud .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.hud-grid { display: flex; flex-direction: column; gap: 12px; }
.hud-grid > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hud-grid dt {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hud-grid dd {
  font-family: var(--mono);
  font-size: 12.5px;
  text-align: right;
}
.hud-grid dd.ok { color: var(--cyan); }
.hud-grid dd.blink { color: var(--amber); }
.hud-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 88px;
}
.features article { background: var(--surface); padding: 30px 26px; }
.f-index {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  margin-bottom: 14px;
}
.features h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.features p { color: var(--text-muted); font-size: 14.5px; }

/* Flow */
.flow { margin-bottom: 80px; }
.flow-head { margin-bottom: 30px; }
.flow-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
  text-transform: uppercase;
  margin-top: 8px;
}
.flow-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--border);
}
.flow-steps li {
  counter-increment: step;
  padding: 22px 20px 0 0;
  border-right: 1px solid var(--border);
  position: relative;
}
.flow-steps li:last-child { border-right: none; padding-right: 0; }
.flow-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 10px;
}
.flow-steps b {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.flow-steps span { color: var(--text-muted); font-size: 13.5px; }

footer {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}
footer a { color: var(--cyan); }
footer a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hud { position: static; }
  .features { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr; }
  .flow-steps li { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 18px; margin-bottom: 18px; }
  footer { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .download-button, .hud .pulse, .route-line path { animation: none; }
}
