:root {
  color-scheme: dark;
  --night: #080d1b;
  --ink: #0e1529;
  --panel: #151f39;
  --panel-light: #1e2d4b;
  --paper: #f5e9ce;
  --dim: #a9b3c5;
  --citron: #c7eb4e;
  --teal: #46d5bd;
  --coral: #f06a5d;
  --lavender: #a99bd9;
  --line: rgba(245, 233, 206, 0.32);
  --shadow: #030610;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--night);
  color: var(--paper);
  line-height: 1.55;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  content: "";
  pointer-events: none;
}

body::before {
  inset: 0;
  opacity: 0.27;
  background-image: linear-gradient(rgba(130, 160, 211, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(130, 160, 211, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

body::after {
  width: min(68vw, 740px);
  height: min(68vw, 740px);
  top: -32vw;
  right: -22vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 213, 189, 0.15), rgba(70, 213, 189, 0) 68%);
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--citron);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border: 2px solid var(--paper);
  background: var(--citron);
  color: var(--night);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

.site-header,
main,
.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--paper);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark,
.footer-mark {
  position: relative;
  display: inline-flex;
  align-items: end;
  gap: 2px;
  width: 22px;
  height: 22px;
  padding: 4px;
  border: 2px solid var(--citron);
  box-shadow: 3px 3px 0 var(--shadow);
}

.brand-mark i,
.footer-mark span {
  display: block;
  width: 3px;
  background: var(--citron);
}

.brand-mark i:nth-child(1),
.footer-mark span:nth-child(1) { height: 5px; }
.brand-mark i:nth-child(2),
.footer-mark span:nth-child(2) { height: 10px; }
.brand-mark i:nth-child(3),
.footer-mark span:nth-child(3) { height: 14px; }

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px 17px;
}

.site-header nav a,
.site-footer nav a {
  color: var(--dim);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer nav a:hover { color: var(--citron); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
  align-items: center;
  gap: clamp(40px, 7vw, 108px);
  min-height: 605px;
  padding: 52px 0 92px;
}

.kicker,
.section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--citron);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(70, 213, 189, 0.14), 0 0 18px rgba(70, 213, 189, 0.85);
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 8ch;
  margin-bottom: 23px;
  color: var(--paper);
  font-size: clamp(3.1rem, 6.5vw, 5.7rem);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.88;
}

h1 em {
  display: block;
  color: var(--citron);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04em;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.08em;
}

.intro {
  max-width: 52ch;
  margin-bottom: 28px;
  color: var(--dim);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 12px 17px;
  border: 2px solid transparent;
  box-shadow: 5px 5px 0 var(--shadow);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--shadow);
}

.button-primary {
  background: var(--citron);
  border-color: var(--paper);
  color: var(--night);
}

.button-quiet {
  border-color: var(--line);
  background: var(--panel);
  color: var(--paper);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin: 29px 0 0;
  padding: 0;
  color: var(--dim);
  font-size: 0.69rem;
  list-style: none;
}

.trust-list li { display: flex; align-items: center; gap: 7px; }
.trust-list li::before { width: 5px; height: 5px; content: ""; background: var(--coral); }

.relay-console {
  position: relative;
  width: 100%;
  max-width: 555px;
  margin: 0;
  border: 3px solid var(--paper);
  background: var(--ink);
  box-shadow: 12px 12px 0 var(--shadow), 0 0 0 7px rgba(199, 235, 78, 0.12);
}

.console-topline,
.relay-console figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 47px;
  padding: 0 17px;
  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.console-topline { border-bottom: 3px solid var(--paper); }
.console-topline span:last-child { color: var(--teal); }
.relay-console figcaption { border-top: 3px solid var(--paper); }

.prompt-key {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid var(--paper);
  background: var(--citron);
  color: var(--night);
  font-size: 1rem;
}

.pixel-world {
  position: relative;
  height: clamp(300px, 36vw, 414px);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(169, 155, 217, 0.23) 0 2px, transparent 3px),
    radial-gradient(circle at 23% 14%, rgba(245, 233, 206, 0.75) 0 1px, transparent 2px),
    linear-gradient(180deg, #182746 0 63%, #0f1930 63%);
  image-rendering: pixelated;
}

.pixel-world::before,
.pixel-world::after {
  position: absolute;
  z-index: 0;
  content: "";
}

.pixel-world::before {
  inset: 0;
  background-image: linear-gradient(rgba(118, 151, 203, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(118, 151, 203, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.8;
}

.pixel-world::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: 37%;
  background: linear-gradient(180deg, transparent 0 17%, #344869 17% 20%, #111b32 20% 100%);
}

.star,
.moon,
.skyline,
.office,
.street-lamp,
.signal-tower,
.route,
.player,
.ground { position: absolute; z-index: 1; display: block; }

.star { width: 3px; height: 3px; background: var(--paper); box-shadow: 3px 0 var(--paper), 0 3px var(--paper); }
.star-one { top: 16%; left: 15%; }
.star-two { top: 31%; left: 39%; transform: scale(0.66); }
.star-three { top: 9%; right: 13%; transform: scale(0.7); }

.moon {
  z-index: 0;
  top: 11%;
  right: 15%;
  width: 51px;
  height: 51px;
  border: 4px solid var(--paper);
  background: var(--lavender);
  box-shadow: 0 0 0 5px rgba(169, 155, 217, 0.15), 6px 6px 0 rgba(5, 8, 20, 0.55);
}

.moon::before,
.moon::after { position: absolute; content: ""; background: #786aaf; }
.moon::before { width: 12px; height: 8px; top: 13px; left: 10px; }
.moon::after { width: 8px; height: 14px; right: 9px; bottom: 8px; }

.skyline { bottom: 37%; background: #101a31; box-shadow: 7px 0 #101a31, 14px 0 #101a31, 21px 0 #101a31; }
.skyline-left { left: 0; width: 16%; height: 27%; }
.skyline-right { right: 0; width: 19%; height: 39%; }

.skyline::before {
  position: absolute;
  width: 30%;
  height: 62%;
  bottom: 0;
  left: 35%;
  content: "";
  background: #15213c;
  box-shadow: -35px 17px #15213c, 35px 6px #15213c;
}

.office {
  z-index: 3;
  bottom: 37%;
  left: 13%;
  width: 42%;
  height: 33%;
  border: 5px solid #0a1020;
  background: #263b5d;
  box-shadow: 8px 8px 0 #060a15;
}

.office::before {
  position: absolute;
  top: -18px;
  left: -8px;
  width: calc(100% + 20px);
  height: 20px;
  content: "";
  background: #345075;
  box-shadow: 7px 7px 0 #101a2f;
}

.office b {
  position: absolute;
  width: 14px;
  height: 12px;
  border: 3px solid #0d1830;
  background: var(--paper);
  box-shadow: 0 0 0 2px rgba(70, 213, 189, 0.08);
}

.office b:nth-child(1) { top: 23%; left: 17%; background: var(--citron); }
.office b:nth-child(2) { top: 23%; left: 48%; }
.office b:nth-child(3) { top: 23%; right: 13%; background: var(--teal); }
.office b:nth-child(4) { top: 57%; left: 17%; }
.office b:nth-child(5) { top: 57%; left: 48%; background: var(--teal); }
.office b:nth-child(6) { top: 57%; right: 13%; background: var(--citron); }

.street-lamp {
  z-index: 5;
  bottom: 21%;
  left: 14%;
  width: 5px;
  height: 66px;
  background: #785039;
  box-shadow: 3px 0 #352d32;
}

.street-lamp::before {
  position: absolute;
  top: -10px;
  left: -7px;
  width: 18px;
  height: 11px;
  border: 3px solid #0d1830;
  content: "";
  background: #f4b351;
  box-shadow: 0 0 18px rgba(244, 179, 81, 0.5);
}

.street-lamp i { position: absolute; top: -16px; left: -4px; width: 11px; height: 5px; background: #0d1830; }

.signal-tower {
  z-index: 4;
  right: 18%;
  bottom: 30%;
  width: 7px;
  height: 101px;
  background: #35547c;
  box-shadow: 4px 0 #14223d;
}

.signal-tower::before,
.signal-tower::after,
.signal-tower i {
  position: absolute;
  left: 50%;
  content: "";
  transform: translateX(-50%);
}

.signal-tower::before { top: -31px; width: 35px; height: 35px; border: 4px solid var(--teal); border-radius: 50%; box-shadow: 0 0 0 5px rgba(70, 213, 189, 0.12), 0 0 21px rgba(70, 213, 189, 0.68); }
.signal-tower::after { top: -20px; width: 16px; height: 16px; background: var(--teal); box-shadow: 0 0 0 3px #0d1830; }
.signal-tower i { bottom: 0; width: 31px; height: 9px; background: #496c95; box-shadow: 0 5px #0d1830; }
.signal-tower b { position: absolute; top: 4px; left: -12px; width: 30px; height: 2px; background: #496c95; transform: rotate(-38deg); transform-origin: left; }

.route {
  z-index: 4;
  height: 7px;
  background: var(--citron);
  box-shadow: 0 4px #0b1426;
}

.route-one { bottom: 18%; left: 25%; width: 31%; }
.route-two { right: 24%; bottom: 23%; width: 17%; transform: rotate(-54deg); transform-origin: right; }

.player {
  z-index: 6;
  bottom: 15%;
  left: 43%;
  width: 28px;
  height: 48px;
  background: #ed9a68;
  box-shadow: 4px 4px 0 #0a1020;
}

.player::before { position: absolute; top: -9px; left: 4px; width: 20px; height: 11px; content: ""; background: #16243d; }
.player::after { position: absolute; top: 13px; left: 7px; width: 5px; height: 5px; content: ""; background: #111829; box-shadow: 11px 0 #111829; }
.player i { position: absolute; top: 27px; left: -5px; width: 38px; height: 18px; background: var(--citron); }
.player b { position: absolute; bottom: -15px; left: 5px; width: 7px; height: 15px; background: var(--paper); box-shadow: 12px 0 var(--paper); }

.ground { z-index: 2; right: 0; bottom: 0; left: 0; height: 13%; background: #0a1020; box-shadow: inset 0 8px #284162; }
.ground::before { position: absolute; top: 19px; right: 6%; left: 6%; height: 4px; content: ""; background: repeating-linear-gradient(90deg, #7794bd 0 34px, transparent 34px 56px); }

.play-loop { padding: 78px 0 97px; }

.section-heading { display: grid; grid-template-columns: minmax(170px, 0.52fr) 1fr; gap: 28px; padding-bottom: 34px; border-bottom: 2px solid var(--line); }
.section-heading .section-label { padding-top: 11px; }

h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.9rem); font-weight: 900; letter-spacing: -0.075em; line-height: 0.98; }

.loop-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }

.loop-steps li { position: relative; min-height: 290px; padding: 27px 25px 25px; border-right: 2px solid var(--line); background: linear-gradient(135deg, rgba(30, 45, 75, 0.62), rgba(14, 21, 41, 0.14)); }
.loop-steps li:first-child { border-left: 2px solid var(--line); }
.loop-steps li:hover { background: var(--panel); }

.step-no { display: block; margin-bottom: 28px; color: var(--coral); font-size: 0.69rem; font-weight: 900; letter-spacing: 0.12em; }
.step-glyph { position: relative; width: 73px; height: 60px; margin-bottom: 29px; border: 3px solid var(--paper); background: #1c3153; box-shadow: 5px 5px 0 var(--shadow); }
.step-glyph::before,
.step-glyph::after,
.step-glyph i,
.step-glyph b,
.step-glyph em { position: absolute; display: block; content: ""; }

.walk-glyph::before { bottom: 10px; left: 11px; width: 44px; height: 5px; background: #526e96; }
.walk-glyph::after { bottom: 14px; left: 24px; width: 13px; height: 25px; background: var(--citron); box-shadow: 0 -10px #ed9a68; }
.walk-glyph i { top: 15px; left: 27px; width: 7px; height: 7px; background: #10182c; }
.walk-glyph b { bottom: 5px; left: 22px; width: 7px; height: 8px; background: var(--paper); box-shadow: 11px 0 var(--paper); }

.listen-glyph::before { top: 15px; left: 18px; width: 19px; height: 24px; border: 4px solid var(--teal); border-right: 0; }
.listen-glyph::after { top: 23px; left: 25px; width: 17px; height: 9px; background: var(--teal); }
.listen-glyph i { top: 12px; right: 11px; width: 7px; height: 7px; background: var(--citron); box-shadow: 0 12px var(--citron), 0 24px var(--citron); }
.listen-glyph b { right: 19px; bottom: 11px; width: 19px; height: 5px; background: #657fa5; }
.listen-glyph em { right: 12px; bottom: 8px; width: 6px; height: 11px; background: #657fa5; }

.relay-glyph::before { top: 12px; left: 22px; width: 25px; height: 25px; border: 4px solid var(--citron); box-shadow: 0 0 0 4px rgba(199, 235, 78, 0.13); }
.relay-glyph::after { top: 21px; left: 31px; width: 7px; height: 7px; background: var(--teal); }
.relay-glyph i { bottom: 9px; left: 11px; width: 49px; height: 5px; background: #526e96; }
.relay-glyph b { bottom: 14px; left: 30px; width: 9px; height: 19px; background: #657fa5; }

h3 { margin-bottom: 8px; font-size: 1.03rem; }
.loop-steps p { margin: 0; color: var(--dim); font-size: 0.83rem; }

.support-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 92px;
  padding: clamp(27px, 5vw, 52px);
  border: 3px solid var(--paper);
  background: linear-gradient(104deg, #203653, #192948 63%, #14263e);
  box-shadow: 11px 11px 0 var(--shadow);
}

.support-strip .section-label { margin-bottom: 11px; color: var(--teal); }
.support-strip h2 { max-width: 17ch; font-size: clamp(1.8rem, 3.2vw, 3.1rem); }
.support-strip p:not(.section-label) { max-width: 53ch; margin: 14px 0 0; color: #c3cbda; font-size: 0.86rem; }
.support-strip .button { flex: 0 0 auto; }

.site-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  border-top: 2px solid var(--line);
  color: var(--dim);
}

.footer-mark { flex: 0 0 auto; width: 20px; height: 20px; padding: 3px; border-color: var(--teal); box-shadow: none; }
.footer-mark span { background: var(--teal); }
.site-footer p { margin: 0 auto 0 0; font-size: 0.69rem; }

@media (max-width: 800px) {
  .site-header,
  main,
  .site-footer { width: min(100% - 28px, 600px); }

  .site-header { align-items: flex-start; flex-direction: column; gap: 14px; padding: 25px 0; }
  .site-header nav { justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; gap: 54px; min-height: 0; padding: 39px 0 70px; }
  .relay-console { max-width: none; }
  .section-heading { grid-template-columns: 1fr; gap: 3px; }
  .section-heading .section-label { padding-top: 0; }
  .loop-steps { grid-template-columns: 1fr; }
  .loop-steps li { display: grid; grid-template-columns: auto 82px 1fr; column-gap: 21px; align-items: center; min-height: 0; padding: 22px; border: 0; border-bottom: 2px solid var(--line); }
  .loop-steps li:first-child { border-left: 0; }
  .step-no { grid-column: 1 / -1; margin-bottom: 13px; }
  .step-glyph { grid-column: 2; grid-row: 2 / span 2; margin: 0; }
  .loop-steps h3 { grid-column: 3; align-self: end; margin: 0 0 6px; }
  .loop-steps p { grid-column: 3; align-self: start; }
  .support-strip { align-items: flex-start; flex-direction: column; margin-bottom: 67px; }
  .site-footer { flex-wrap: wrap; padding: 22px 0; }
  .site-footer p { margin-right: auto; }
  .site-footer nav { width: 100%; justify-content: flex-start; }
}

@media (max-width: 470px) {
  .site-header,
  main,
  .site-footer { width: calc(100% - 24px); }
  .site-header nav { gap: 7px 13px; }
  .site-header nav a { font-size: 0.66rem; }
  h1 { font-size: clamp(2.85rem, 15vw, 4rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .console-topline,
  .relay-console figcaption { padding: 0 12px; font-size: 0.56rem; }
  .pixel-world { height: 290px; }
  .office { left: 9%; width: 48%; }
  .signal-tower { right: 14%; }
  .loop-steps li { grid-template-columns: 62px 1fr; column-gap: 17px; padding: 20px 16px; }
  .step-glyph { grid-column: 1; width: 60px; height: 52px; transform: scale(0.82); transform-origin: left center; }
  .loop-steps h3,
  .loop-steps p { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
