:root {
  --void: #050507;
  --panel: #0a0a0f;
  --surface: #101018;
  --line: #292936;
  --white: #f5f5fa;
  --soft: #a5a5b8;
  --cyan: #00e5f0;
  --pink: #f0189e;
  --green: #39d659;
  --yellow: #f0d400;
  --blue: #4d8fff;
}

* { box-sizing: border-box; }

html { background: var(--void); color: var(--white); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(0, 229, 240, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 240, 0.025) 1px, transparent 1px),
    var(--void);
  background-size: 42px 42px;
  font-family: "Cascadia Mono", "Lucida Console", monospace;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 72% 24%, rgba(240, 24, 158, 0.10), transparent 28%);
}

.matrix {
  position: fixed;
  inset: -20% 0 0 52%;
  overflow: hidden;
  color: rgba(57, 214, 89, 0.10);
  font-size: 12px;
  line-height: 2.2;
  word-spacing: 18px;
  writing-mode: vertical-rl;
  pointer-events: none;
  animation: matrix-drift 18s linear infinite;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.18;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.42) 3px 4px);
}

.masthead {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 7, 0.88);
}

.wordmark {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}

.wordmark-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--cyan);
  color: var(--pink);
  box-shadow: 3px 3px 0 var(--cyan);
}

.network-state {
  color: var(--green);
  font-size: 11px;
}

.network-state span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: blink 1.4s steps(2) infinite;
}

main { position: relative; z-index: 1; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  min-height: 620px;
  padding: 9vh 7vw 7vh;
  border-bottom: 1px solid var(--line);
}

.hero-copy { align-self: center; }

.eyebrow {
  margin: 0 0 20px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 104px;
  font-weight: 400;
  line-height: 0.82;
  text-transform: uppercase;
}

h1 span {
  color: transparent;
  -webkit-text-stroke: 2px var(--pink);
  text-shadow: 7px 7px 0 rgba(0, 229, 240, 0.24);
}

.lede {
  max-width: 680px;
  margin: 34px 0 0;
  color: var(--soft);
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 20px;
  line-height: 1.55;
}

.void-console {
  position: relative;
  align-self: center;
  min-height: 390px;
  border-left: 1px solid var(--cyan);
  background: rgba(10, 10, 15, 0.72);
  box-shadow: -7px 7px 0 rgba(0, 229, 240, 0.12);
}

.void-console::before,
.void-console::after {
  content: "";
  position: absolute;
  background: var(--pink);
}

.void-console::before { width: 90px; height: 3px; top: 0; right: 0; }
.void-console::after { width: 3px; height: 90px; bottom: 0; right: 0; }

.void-mark {
  position: absolute;
  inset: 50% auto auto 50%;
  margin: 0;
  color: var(--cyan);
  font-size: 18px;
  line-height: 1.45;
  text-shadow: 0 0 14px rgba(0, 229, 240, 0.7);
  transform: translate(-50%, -56%);
  animation: void-pulse 2.4s steps(6) infinite;
}

.console-status {
  position: absolute;
  right: 24px;
  bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 10px;
  color: var(--soft);
}

.console-status strong { color: var(--green); font-size: 16px; }

.command-deck {
  padding: 72px 7vw;
  background: rgba(10, 10, 15, 0.84);
  border-bottom: 1px solid var(--line);
}

.deck-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

h2 {
  margin: 0;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 42px;
  font-weight: 600;
}

.release-chip {
  padding: 9px 12px;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 11px;
  box-shadow: 3px 3px 0 rgba(57, 214, 89, 0.2);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 40px 0;
  padding: 1px;
  list-style: none;
  background: var(--line);
}

.steps li {
  min-height: 112px;
  padding: 22px;
  background: var(--surface);
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
}

.steps li span {
  display: block;
  margin-bottom: 10px;
  color: var(--pink);
  font-size: 11px;
}

kbd, code {
  color: var(--white);
  font-family: inherit;
}

kbd { border-bottom: 1px solid var(--cyan); }

.terminal-window {
  border: 1px solid var(--cyan);
  background: #020504;
  box-shadow: 8px 8px 0 rgba(240, 24, 158, 0.2);
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  border-bottom: 1px solid rgba(0, 229, 240, 0.35);
  padding-left: 18px;
}

.terminal-title { color: var(--cyan); font-size: 11px; }

button {
  align-self: stretch;
  min-width: 92px;
  border: 0;
  border-left: 1px solid var(--cyan);
  background: var(--cyan);
  color: var(--void);
  font: 700 11px "Cascadia Mono", monospace;
  cursor: pointer;
}

button:hover, button:focus-visible { background: var(--pink); outline: 0; }

#launch-command {
  min-height: 104px;
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  color: var(--green);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-response {
  display: flex;
  gap: 10px;
  min-height: 36px;
  align-items: center;
  padding: 0 18px;
  border-top: 1px solid rgba(57, 214, 89, 0.2);
  color: rgba(57, 214, 89, 0.7);
  font-size: 10px;
}

.terminal-response i {
  width: 7px;
  height: 13px;
  background: var(--green);
  animation: blink 0.9s steps(2) infinite;
}

.telemetry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.telemetry article {
  min-height: 220px;
  padding: 34px 28px;
  border-right: 1px solid var(--line);
  background: rgba(5, 5, 7, 0.76);
}

.telemetry article:last-child { border-right: 0; }
.telemetry article:nth-child(2) { border-top: 3px solid var(--pink); }
.telemetry article:nth-child(3) { border-top: 3px solid var(--blue); }
.telemetry article:nth-child(4) { border-top: 3px solid var(--yellow); }

.telemetry-id { display: block; margin-bottom: 24px; color: var(--pink); font-size: 10px; }
.telemetry strong { display: block; min-height: 44px; color: var(--green); font-size: 15px; overflow-wrap: anywhere; }
.telemetry p { color: var(--soft); font-size: 12px; line-height: 1.6; }

footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 5vw;
  color: var(--soft);
  font-size: 10px;
}

.footer-hash b { color: var(--pink); font-weight: 400; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes matrix-drift { to { transform: translateY(160px); } }
@keyframes void-pulse {
  0%, 100% { color: var(--cyan); transform: translate(-50%, -56%) scale(1); }
  50% { color: var(--pink); transform: translate(-50%, -56%) scale(1.05); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  h1 { font-size: 72px; }
  .void-console { min-height: 300px; margin-top: 56px; }
  .steps, .telemetry { grid-template-columns: 1fr; }
  .telemetry article { min-height: 160px; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .masthead { padding: 0 18px; }
  .network-state { display: none; }
  .hero, .command-deck { padding-left: 20px; padding-right: 20px; }
  .hero { min-height: auto; }
  h1 { font-size: 52px; }
  .lede { font-size: 17px; }
  .deck-heading { align-items: start; flex-direction: column; }
  h2 { font-size: 32px; }
  .void-mark { font-size: 12px; }
  footer { gap: 18px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}