@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --ink: #f2f3ef;
  --muted: #909795;
  --quiet: #555c5a;
  --ground: #090b0b;
  --panel: #101313;
  --line: #282e2c;
  --acid: #c9ff48;
  --lumen: #d9ff74;
  --moss: #67d7b0;
  --ember: #ff7b5b;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Manrope", Inter, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 7%, rgba(201, 255, 72, 0.055), transparent 30rem),
    var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  min-width: 320px;
}

button, select { font: inherit; }

.shell { width: min(100%, 1600px); margin: 0 auto; }

.masthead {
  min-height: 84px;
  padding: 0 clamp(20px, 4vw, 72px);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font: 400 11px/1 var(--mono);
  letter-spacing: .1em;
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  justify-self: start;
}

.wordmark-mark { width: 22px; height: 22px; position: relative; display: inline-block; }
.wordmark-mark i { width: 9px; height: 9px; border: 1px solid var(--acid); position: absolute; display: block; }
.wordmark-mark i:nth-child(1) { top: 0; left: 0; }
.wordmark-mark i:nth-child(2) { top: 5px; left: 7px; }
.wordmark-mark i:nth-child(3) { right: 0; bottom: 0; }

.status-line { color: var(--muted); display: flex; align-items: center; gap: 9px; }
.status-line b { color: var(--ink); font-weight: 400; }
.live-dot { width: 6px; height: 6px; background: var(--acid); box-shadow: 0 0 11px var(--acid); border-radius: 50%; animation: pulse 2.4s ease-in-out infinite; }
.boundary { color: var(--muted); justify-self: end; margin: 0; }

.hero {
  display: grid;
  grid-template-columns: minmax(290px, .72fr) minmax(600px, 1.28fr);
  min-height: calc(100vh - 84px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  padding: clamp(48px, 8vh, 104px) clamp(30px, 5vw, 80px) 48px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.eyebrow {
  color: var(--acid);
  font: 400 11px/1.4 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
  margin: 0 0 28px;
}

h1 {
  font-size: clamp(54px, 6.5vw, 112px);
  letter-spacing: -.075em;
  line-height: .86;
  margin: 0;
  font-weight: 500;
}

.dek {
  color: #b7bdb9;
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.55;
  max-width: 34rem;
  margin: clamp(36px, 7vh, 78px) 0 52px;
}

.run-facts { margin: auto 0 0; display: grid; gap: 13px; }
.run-facts div { border-top: 1px solid var(--line); padding-top: 12px; display: grid; grid-template-columns: 110px 1fr; }
.run-facts dt, .run-facts dd { margin: 0; font: 400 10px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.run-facts dt { color: var(--quiet); }
.run-facts dd { color: var(--muted); }

.observatory { padding: clamp(20px, 3vw, 48px); display: flex; flex-direction: column; min-width: 0; }
.observatory-bar { min-height: 58px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.observatory-bar > div:first-child { display: grid; gap: 7px; }
.kicker, .speed-control span { color: var(--quiet); font: 400 9px/1 var(--mono); letter-spacing: .12em; }
.observatory-bar strong { color: var(--muted); font: 400 11px/1 var(--mono); letter-spacing: .08em; }
.bar-actions { display: flex; align-items: center; gap: 8px; }
.bar-actions button, .speed-control {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  min-height: 32px;
  padding: 0 11px;
  font: 400 9px/1 var(--mono);
  letter-spacing: .08em;
}
.bar-actions button { cursor: pointer; }
.bar-actions button:hover, .bar-actions button:focus-visible { color: var(--ink); border-color: var(--acid); outline: 0; }
.speed-control { display: flex; align-items: center; gap: 7px; }
.speed-control select { appearance: none; border: 0; color: var(--ink); background: transparent; outline: 0; font: inherit; cursor: pointer; }

.world-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0e0d;
}

#world { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
.world-scan { pointer-events: none; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(201, 255, 72, .025), transparent); transform: translateY(-100%); animation: scan 9s linear infinite; }
.world-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 80px rgba(0, 0, 0, .52); }
.step-stamp { position: absolute; right: 15px; bottom: 14px; padding: 9px 11px; background: rgba(9, 11, 11, .83); border: 1px solid var(--line); display: flex; align-items: baseline; gap: 6px; font-family: var(--mono); }
.step-stamp span, .step-stamp i { color: var(--quiet); font-size: 8px; font-style: normal; letter-spacing: .08em; }
.step-stamp b { color: var(--ink); font-weight: 400; font-size: 13px; }

.telemetry { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-top: 0; }
.telemetry article { min-width: 0; padding: 17px 15px 15px; border-right: 1px solid var(--line); }
.telemetry article:last-child { border-right: 0; }
.telemetry span, .telemetry small { display: block; color: var(--quiet); font: 400 8px/1.2 var(--mono); letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.telemetry strong { display: block; margin: 7px 0 5px; font: 300 clamp(21px, 2vw, 31px)/1 var(--mono); }

.inspect-panel {
  padding: clamp(68px, 9vw, 140px) clamp(20px, 4vw, 72px);
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(44px, 8vw, 120px);
  border-bottom: 1px solid var(--line);
}

.inspect-intro h2 { margin: 0 0 30px; max-width: 560px; font-size: clamp(39px, 5vw, 76px); line-height: .98; letter-spacing: -.055em; font-weight: 500; }
.inspect-intro > p:last-child { max-width: 460px; color: var(--muted); line-height: 1.6; font-size: 15px; }
.focus-identity { min-height: 1.3em; margin: -12px 0 22px; overflow: hidden; color: #b5c492; font: 400 9px/1.3 var(--mono); letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }
.agent-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.agent-card { background: var(--ground); padding: 22px; min-height: 190px; }
.agent-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; margin-bottom: 27px; }
.agent-id { min-width: 0; overflow: hidden; color: #c9cfcb; font: 400 9px/1.25 var(--mono); letter-spacing: .035em; text-overflow: ellipsis; white-space: nowrap; }
.tribe-chip { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 11px currentColor; }
.trait { display: grid; grid-template-columns: 80px 1fr 28px; gap: 10px; align-items: center; margin-top: 11px; font: 400 8px/1 var(--mono); color: var(--quiet); text-transform: uppercase; letter-spacing: .05em; }
.trait-bar { height: 2px; background: #242a28; position: relative; }
.trait-bar i { position: absolute; inset: 0 auto 0 0; background: currentColor; }
.trait b { color: var(--muted); font-weight: 400; text-align: right; }

footer { min-height: 80px; padding: 0 clamp(20px, 4vw, 72px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; color: var(--quiet); font: 400 9px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
footer p { margin: 0; }
footer p:nth-child(2) { text-align: center; }
footer p:last-child { text-align: right; }

@keyframes pulse { 50% { opacity: .35; box-shadow: 0 0 4px var(--acid); } }
@keyframes scan { to { transform: translateY(100%); } }

@media (max-width: 1000px) {
  .masthead { grid-template-columns: 1fr auto; }
  .boundary { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 680px; border-right: 0; border-bottom: 1px solid var(--line); }
  .observatory { min-height: 720px; }
  .inspect-panel { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .masthead { min-height: 70px; padding-inline: 17px; }
  .status-line { font-size: 8px; }
  .status-line span:last-child { max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #run-label { display: none; }
  .hero-copy { min-height: 620px; padding: 48px 20px 30px; }
  h1 { font-size: clamp(48px, 16.2vw, 68px); }
  .observatory { padding: 18px; min-height: 690px; }
  .observatory-bar { min-height: 84px; }
  .speed-control { display: none; }
  .world-wrap { min-height: 420px; }
  .telemetry { grid-template-columns: repeat(2, 1fr); }
  .telemetry article:nth-child(2) { border-right: 0; }
  .telemetry article:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .agent-cards { grid-template-columns: 1fr; }
  footer { padding-block: 25px; grid-template-columns: 1fr 1fr; }
  footer p:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot, .world-scan { animation: none; }
}
