@font-face { font-family: Inter; font-weight: 300; font-display: swap; src: url(/assets/fonts/inter-300.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/assets/fonts/inter-400.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/assets/fonts/inter-500.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/assets/fonts/inter-600.woff2) format('woff2'); }
@font-face { font-family: Mono; font-weight: 400; font-display: swap; src: url(/assets/fonts/mono-400.woff2) format('woff2'); }
@font-face { font-family: Mono; font-weight: 500; font-display: swap; src: url(/assets/fonts/mono-500.woff2) format('woff2'); }
@font-face { font-family: Mono; font-weight: 700; font-display: swap; src: url(/assets/fonts/mono-700.woff2) format('woff2'); }

:root {
  --bg: #08090B; --bg2: #0D0F12; --surface: #111418; --term: #090A0C;
  --text: #E8E9EA; --text2: #9A9DA2; --muted: #555A60;
  --cyan: #00E5F0; --cyan-hover: #25F3FF; --green: #15C784; --amber: #E5A64B; --red: #ED5B65; --line: #25282D;
  --sans: Inter, system-ui, sans-serif; --mono: Mono, ui-monospace, monospace;
  --max: 1320px; --pad: clamp(16px, 3vw, 32px); --nav: 56px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 12px); }
body { background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
:focus-visible { outline: 1px solid var(--cyan); outline-offset: 2px; }
code { font-family: var(--mono); font-size: .9em; color: var(--text); }
.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.dim { color: var(--muted); }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* navigation */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(8, 9, 11, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { height: var(--nav); display: flex; align-items: center; gap: 32px; }
.mark { font: 700 14px var(--mono); letter-spacing: .32em; }
.nav nav { display: flex; gap: 26px; margin-left: auto; font: 400 12px var(--mono); color: var(--text2); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav nav a { padding: 8px 0; transition: color .15s; }
.nav nav a:hover { color: var(--cyan-hover); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 20px; border: 1px solid var(--line); border-radius: 4px; font: 500 12.5px var(--mono); transition: border-color .15s, color .15s, background .15s; }
.btn:hover { border-color: var(--cyan); color: var(--cyan-hover); }
.btn-primary { background: var(--cyan); border-color: var(--cyan); color: var(--bg); }
.btn-primary:hover { background: var(--cyan-hover); color: var(--bg); }
.btn-nav { height: 32px; padding: 0 14px; font-size: 12px; border-color: rgba(0, 229, 240, .45); white-space: nowrap; }

/* hero */
.hero { position: relative; height: min(820px, calc(100svh - var(--nav) - 48px)); min-height: 600px; overflow: hidden; display: flex; align-items: center; }
#globe { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 18%, rgba(8, 9, 11, .6) 46%, transparent 72%), linear-gradient(0deg, var(--bg), transparent 22%); }
.hero-in { position: relative; }
h1 { font-weight: 500; font-size: clamp(46px, 7.6vw, 112px); line-height: 1; letter-spacing: -.045em; }
.hero p { max-width: 500px; margin-top: 28px; color: var(--text2); font-size: 17px; line-height: 1.7; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.install { display: inline-block; max-width: 100%; margin-top: 18px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 4px; background: rgba(9, 10, 12, .8); font: 400 12.5px var(--mono); }
.hero-meta { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; font: 400 10.5px var(--mono); letter-spacing: .08em; color: var(--text2); }

/* ticker */
.ticker { display: flex; height: 44px; border-block: 1px solid var(--line); background: var(--bg2); font: 400 11.5px var(--mono); }
.ticker-label { display: flex; align-items: center; gap: 8px; padding: 0 var(--pad); border-right: 1px solid var(--line); letter-spacing: .16em; white-space: nowrap; z-index: 1; }
.ticker-view { flex: 1; overflow: hidden; }
.ticker-track { display: flex; width: max-content; height: 100%; align-items: center; animation: marquee var(--dur, 120s) linear infinite; }
.ticker-view:hover .ticker-track, .ticker-view:focus-within .ticker-track { animation-play-state: paused; }
.ticker-track > div { display: flex; }
.tape-item { display: inline-flex; gap: 10px; padding: 0 22px; border-right: 1px solid var(--line); white-space: nowrap; }
.tape-item b { color: var(--cyan); font-weight: 500; text-transform: uppercase; }
.tape-item em { color: var(--text2); font-style: normal; }
.tape-empty { padding: 0 22px; color: var(--text2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* source state */
.state { font: 500 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.state.live { color: var(--green); } .state.cached { color: var(--amber); } .state.unavailable { color: var(--red); }
.src { font: 400 10.5px var(--mono); color: var(--text2); margin-top: 8px; }
.empty { color: var(--text2); font: 400 12px var(--mono); padding: 12px 0; list-style: none; }

/* statistics */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 28px; }
.stat { padding: 4px 24px; border-left: 1px solid var(--line); min-width: 0; }
label { display: block; font: 400 10.5px var(--mono); letter-spacing: .12em; color: var(--text2); }
.stat b { display: block; font: 500 30px/1.5 var(--mono); }
.stat small { display: block; font: 400 10.5px var(--mono); color: var(--muted); }

/* sections */
.sec { padding-top: clamp(80px, 11vw, 150px); }
.sec:last-child { padding-bottom: clamp(80px, 11vw, 150px); }
.eyebrow { font: 500 11px var(--mono); letter-spacing: .2em; color: var(--cyan); margin-bottom: 18px; }
h2 { font-weight: 500; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -.03em; max-width: 880px; }
.lead { max-width: 580px; margin-top: 18px; color: var(--text2); font-size: 16px; }
h2 + .cards, .lead + * { margin-top: 44px; }
h2 + .cards { margin-top: 44px; }
h4 { font: 500 10.5px var(--mono); letter-spacing: .14em; color: var(--text2); }

/* terminal */
.term { background: var(--term); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 0; }
.term-bar { display: grid; grid-template-columns: 90px 1fr 90px; align-items: center; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg2); font: 400 11.5px var(--mono); color: var(--text2); }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.lights i:nth-child(2) { background: var(--cyan); } .lights i:nth-child(3) { background: var(--green); }
.term-title { text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#replay { justify-self: end; font: 400 11.5px var(--mono); color: var(--text2); }
#replay:hover { color: var(--cyan-hover); }
.tabs { display: flex; gap: 4px; padding: 0 10px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { padding: 11px 12px 10px; border-bottom: 1px solid transparent; font: 400 12px var(--mono); color: var(--muted); white-space: nowrap; }
.tabs button:hover { color: var(--text2); }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--cyan); }
.output { height: 520px; overflow: auto; padding: 16px 18px; font: 400 12px/1.55 var(--mono); color: var(--text); white-space: pre; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.output .c { color: var(--cyan); } .output .g { color: var(--green); } .output .a { color: var(--amber); } .output .r { color: var(--red); }
.output .m { color: var(--muted); } .output .s { color: var(--text2); } .output .h { font-weight: 700; }
.output a { color: var(--cyan); } .output a:hover { text-decoration: underline; }
.score { display: inline-block; border: 1px solid var(--cyan); color: var(--cyan); border-radius: 3px; padding: 0 4px; font-size: 10.5px; line-height: 15px; }
.prompt { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 14px 0 18px; border-top: 1px solid var(--line); background: var(--bg2); font: 400 12.5px var(--mono); }
.prompt label { font: inherit; letter-spacing: 0; color: var(--cyan); white-space: nowrap; }
.prompt input { flex: 1; min-width: 0; height: 100%; font: 400 12.5px var(--mono); outline: none; }
.prompt:focus-within { box-shadow: inset 0 0 0 1px rgba(0, 229, 240, .35); }
.prompt input::placeholder { color: var(--muted); }
.prompt button { padding: 5px 12px; border: 1px solid var(--line); border-radius: 4px; font: 500 11.5px var(--mono); white-space: nowrap; }
.prompt button:hover { border-color: var(--cyan); color: var(--cyan-hover); }
.prompt button:disabled { opacity: .45; cursor: wait; }
.prompt-top { border-top: 0; border-bottom: 1px solid var(--line); background: transparent; }

/* chain */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 6px; background: var(--bg2); }
.metrics > div { padding: 16px 20px; min-width: 0; }
.metrics > div + div { border-left: 1px solid var(--line); }
.metrics b { font: 500 clamp(16px, 2.1vw, 22px)/1.7 var(--mono); overflow-wrap: anywhere; }
.chain-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 24px; align-items: start; }
.verdicts { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; border-bottom: 1px solid var(--line); }
.verdicts > div { padding: 14px 16px; min-width: 0; }
.verdicts > div + div { border-left: 1px solid var(--line); }
.verdicts b { font: 500 15px/2 var(--mono); }
.g { color: var(--green); } .a { color: var(--amber); } .r { color: var(--red); }
.token-detail { min-height: 220px; padding: 16px 18px; font: 400 11.5px/1.8 var(--mono); color: var(--text2); overflow-wrap: anywhere; white-space: pre-wrap; }
.pools { border-top: 1px solid var(--line); min-width: 0; }
.pools-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 0; font: 500 10.5px var(--mono); letter-spacing: .14em; }
.pools-head .src { margin: 0; letter-spacing: 0; }
#pool-list { max-height: 330px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.pool-row { display: grid; grid-template-columns: 1.6fr .9fr .9fr 1.2fr; gap: 10px; width: 100%; padding: 7px 8px; border-bottom: 1px solid var(--line); font: 400 11.5px var(--mono); text-align: left; }
.pool-row > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pool-cols { color: var(--muted); font-size: 10px; letter-spacing: .1em; }
button.pool-row:hover, button.pool-row[aria-pressed="true"] { background: var(--surface); }
button.pool-row[aria-pressed="true"] { box-shadow: inset 2px 0 var(--cyan); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.features article { border-top: 1px solid var(--line); padding-top: 18px; }
.features span { font: 500 11px var(--mono); color: var(--cyan); }
.features h3 { font-size: 18px; font-weight: 500; margin: 10px 0 8px; }
.features p { color: var(--text2); font-size: 14px; }

/* world */
.map { position: relative; border: 1px solid var(--line); border-radius: 6px; background: var(--term); }
#map { display: block; width: 100%; height: auto; }
#map .land { fill: var(--surface); stroke: var(--line); stroke-width: .6; }
#map .grid { stroke: var(--line); stroke-width: .4; opacity: .5; fill: none; }
#map .quake { fill: rgba(237, 91, 101, .25); stroke: var(--red); stroke-width: .8; }
#map .air { fill: var(--cyan); }
#map .nat { fill: var(--amber); }
#map [data-tip]:hover { stroke: var(--text); stroke-width: 1.2; }
.tip { position: absolute; max-width: 260px; padding: 7px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; font: 400 11px/1.5 var(--mono); pointer-events: none; z-index: 2; white-space: pre-line; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; padding-top: 12px; font: 400 11px var(--mono); color: var(--text2); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--red); }
.legend i.k-air { background: var(--cyan); } .legend i.k-nat { background: var(--amber); }
.legend em { font-style: normal; color: var(--text); }
.legend .src { margin: 0 0 0 auto; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.cols3 > div { border-top: 1px solid var(--line); padding-top: 14px; }
.cols3 ul { list-style: none; margin-top: 8px; }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font: 400 11.5px var(--mono); }
.line > :first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.line > :last-child { color: var(--text2); white-space: nowrap; }
a.line:hover > :first-child, a:hover > .line > :first-child { color: var(--cyan-hover); }

/* signals */
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lane { height: 560px; overflow: hidden; mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent); }
.lane-track.moving { animation: rise var(--dur) linear infinite; }
.lane:hover .lane-track, .lane:focus-within .lane-track { animation-play-state: paused; }
@keyframes rise { to { transform: translateY(-50%); } }
.signal { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.signal .score { height: 26px; line-height: 24px; text-align: center; font: 500 12px/24px var(--mono); }
.signal .meta { display: flex; justify-content: space-between; gap: 10px; font: 400 10.5px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.signal h3 { font-size: 14.5px; font-weight: 500; line-height: 1.45; margin: 4px 0; overflow-wrap: anywhere; }
.signal p { font: 400 11px/1.7 var(--mono); color: var(--text2); overflow-wrap: anywhere; }
.signal p a:hover { color: var(--cyan-hover); }

/* right now */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.card { display: flex; flex-direction: column; min-height: 300px; padding: 18px; background: var(--bg2); }
.card header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.card .body { flex: 1; font: 400 11.5px var(--mono); }
.card .note { color: var(--text2); padding: 6px 0; line-height: 1.7; }
.card footer { padding-top: 12px; font: 400 10px var(--mono); color: var(--muted); }

/* narratives */
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.story { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg2); }
.story:hover { border-color: var(--muted); }
.story .tag { font: 500 10px var(--mono); letter-spacing: .16em; color: var(--cyan); }
.story .tag.GROWING { color: var(--green); } .story .tag.FADING { color: var(--muted); }
.story h3 { font-size: 15.5px; font-weight: 500; line-height: 1.45; }
.story p { font-size: 13px; color: var(--text2); flex: 1; }
.story .foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; font: 400 10.5px var(--mono); color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.bars i { width: 7px; min-height: 2px; background: var(--muted); }
.bars i:last-child { background: var(--cyan); }
.stories > .empty { grid-column: 1 / -1; }

/* docs */
.docs { padding-block: 64px 100px; }
.docs h1 { font-size: 48px; }
.docs h2 { font-size: 22px; margin: 44px 0 14px; }
.docs p { max-width: 720px; color: var(--text2); margin-bottom: 14px; }
.docs pre { overflow-x: auto; padding: 16px 18px; background: var(--term); border: 1px solid var(--line); border-radius: 8px; font: 400 12px/1.8 var(--mono); }

@media (max-width: 1000px) {
  .nav-in { height: auto; flex-wrap: wrap; gap: 0 16px; padding-top: 10px; }
  :root { --nav: 90px; }
  .nav nav { order: 3; width: 100%; margin: 0; gap: 22px; padding-block: 4px; }
  .btn-nav { margin-left: auto; }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .chain-grid, .features { grid-template-columns: minmax(0, 1fr); }
  .cards, .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  :root { --nav: 112px; }
  .nav nav { flex-wrap: wrap; gap: 0 18px; }
  .nav nav a { padding-block: 5px; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 8%, rgba(8, 9, 11, .55) 60%, rgba(8, 9, 11, .3)); }
  .hero-meta { font-size: 9.5px; }
  .ticker-label { padding: 0 12px; }
  #tape-state { display: none; }
  .stat { padding: 0 12px; }
  .stat b { font-size: 23px; }
  .metrics, .verdicts { grid-template-columns: 1fr 1fr; }
  .metrics > div:nth-child(3), .verdicts > div:nth-child(3) { border-left: 0; }
  .metrics > div:nth-child(n+3), .verdicts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .term-bar { grid-template-columns: 62px 1fr 70px; }
  .output { height: 440px; font-size: 11px; }
  .prompt { gap: 8px; padding-left: 12px; }
  .prompt input { font-size: 16px; }
  .cols3, .lanes, .cards, .stories { grid-template-columns: minmax(0, 1fr); }
  .lane { height: 380px; }
  .pool-row { grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 6px; font-size: 10.5px; }
  .legend .src { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before { animation: none !important; }
  .ticker-view, .lane { overflow: auto; }
}
