:root {
  --bg: #0B1014;
  --panel: #101A20;
  --rule: #22333D;
  --cyan: #2FD3E1;
  --amber: #FFB020;
  --text: #E8F4F7;
  --muted: #9FB3BD;

  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --display: "IBM Plex Sans Condensed", "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan); text-decoration-color: color-mix(in srgb, var(--cyan) 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--cyan); }

code { font-family: var(--mono); font-size: 0.92em; color: var(--amber); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--cyan); color: #06181C; padding: 10px 16px; font: 600 14px var(--mono);
}
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.brand img { width: 186px; height: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font: 500 13px/1 var(--mono);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.nav a:hover { color: var(--text); }
.nav a.btn { color: #06181C; }
.nav a.btn:hover { color: #06181C; }
@media (max-width: 820px) {
  .nav { gap: 16px; }
  .nav a:not(.btn) { display: none; }
  .brand img { width: 152px; }
  .topbar { padding: 12px 18px; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font: 600 14px/1 var(--mono);
  letter-spacing: .04em;
  padding: 15px 22px;
  color: #06181C;
  background: var(--cyan);
  border: 1px solid var(--cyan);
  text-decoration: none;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { background: #7BE9F3; box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 18%, transparent); }
.btn-sm { padding: 9px 15px; font-size: 12.5px; }
.btn-lg { padding: 18px 30px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--cyan); border-color: var(--rule); }
.btn-ghost:hover { background: transparent; border-color: var(--cyan); color: var(--text); box-shadow: none; }

/* ---------- hero ---------- */

.hero { position: relative; padding: 0 0 clamp(40px, 6vw, 72px); overflow: hidden; }

.scope { position: relative; height: clamp(300px, 46vh, 460px); }
.scope canvas { width: 100%; height: 100%; display: block; }
.scope-fade {
  position: absolute; inset: auto 0 0 0; height: 64%;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg) 82%, transparent) 46%, var(--bg) 92%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  max-width: var(--wrap);
  margin: -110px auto 0;
  padding: 0 var(--gutter);
}
@media (max-width: 720px) { .hero-copy { margin-top: -60px; } }

.eyebrow {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 14px;
}

h1 {
  font: 700 clamp(44px, 8.2vw, 92px)/0.98 var(--display);
  letter-spacing: -0.015em;
  margin: 0 0 22px;
}

.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 52ch; margin: 0 0 30px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }

.fineprint { font: 400 12.5px/1.5 var(--mono); color: color-mix(in srgb, var(--muted) 75%, var(--bg)); margin: 0; }

/* ---------- burst ticker ---------- */

.ticker {
  max-width: var(--wrap);
  margin: clamp(34px, 5vw, 56px) auto 0;
  padding: 0 var(--gutter);
}
.ticker-head, .ticker-rows li {
  display: grid;
  grid-template-columns: 78px 116px 74px 66px 1fr;
  gap: 12px;
  font: 400 13px/1.5 var(--mono);
  padding: 7px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
}
.ticker-head {
  color: color-mix(in srgb, var(--muted) 70%, var(--bg));
  font-size: 11px; letter-spacing: .12em;
  border-bottom-color: var(--rule);
  background: var(--panel);
}
.ticker-rows { list-style: none; margin: 0; padding: 0; }
.ticker-rows li { color: var(--muted); animation: rowin .35s ease both; }
.ticker-rows li .f { color: var(--text); }
.ticker-rows li .s { color: var(--cyan); }
.ticker-rows li .why { color: var(--text); }
.ticker-rows li.unclaimed .why { color: color-mix(in srgb, var(--muted) 80%, var(--bg)); font-style: italic; }
.ticker-rows li.fresh { background: color-mix(in srgb, var(--cyan) 7%, transparent); }
@keyframes rowin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ticker-rows li { animation: none; } }
@media (max-width: 720px) {
  .ticker-head, .ticker-rows li { grid-template-columns: 92px 66px minmax(0, 1fr); }
  .ticker-rows li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ticker-head span:nth-child(3), .ticker-head span:nth-child(1),
  .ticker-rows li .t, .ticker-rows li .m { display: none; }
}

/* ---------- sections ---------- */

.band { padding: clamp(64px, 9vw, 118px) 0; border-top: 1px solid var(--rule); }
.band.tight { padding-bottom: clamp(52px, 7vw, 92px); }

.section-h {
  font: 700 clamp(30px, 4.4vw, 50px)/1.06 var(--display);
  letter-spacing: -0.012em;
  margin: 0 0 22px;
}
.balance { text-wrap: balance; }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); } }

.prose { color: var(--muted); margin: 0; }
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 500; }

.note { color: var(--muted); font-size: 15px; margin: 28px 0 0; }

/* ---------- protocol cards ---------- */

.cards {
  list-style: none; margin: 34px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.card {
  background: var(--bg);
  padding: 24px 22px 26px;
  transition: background .18s ease;
}
.card:hover { background: var(--panel); }
.card h3 { font: 600 21px/1.2 var(--display); margin: 0 0 8px; letter-spacing: .005em; }
.card p:last-child { color: var(--muted); font-size: 15.5px; margin: 0; }
.freq {
  font: 500 11.5px/1.4 var(--mono);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 12px;
}
.card-tx .freq { color: var(--amber); }

/* ---------- views ---------- */

.views-intro { max-width: 68ch; margin-bottom: 8px; }
.views {
  list-style: none; margin: 34px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
}
.views li {
  background: var(--bg);
  padding: 22px 24px 26px 62px;
  position: relative;
  transition: background .18s ease;
}
.views li:hover { background: var(--panel); }
.views .key {
  position: absolute; left: 22px; top: 23px;
  width: 26px; height: 26px;
  border: 1px solid var(--cyan); color: var(--cyan);
  font: 500 12px/24px var(--mono); text-align: center;
}
.views h3 { font: 600 21px/1.2 var(--display); margin: 0 0 8px; }
.views p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- screenshot ---------- */

.shot figure { margin: 0; display: grid; grid-template-columns: minmax(0, 734px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
.shot img { border: 1px solid var(--rule); width: 100%; }
.shot figcaption { color: var(--muted); font-size: 15.5px; max-width: 40ch; }
@media (max-width: 880px) { .shot figure { grid-template-columns: 1fr; align-items: start; } .shot figcaption { max-width: 60ch; } }

/* ---------- hardware ---------- */

.rigs { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.rigs li { border-top: 2px solid var(--cyan); padding-top: 18px; }
.rigs h3 { font: 600 20px/1.25 var(--display); margin: 0 0 8px; }
.rigs p:last-child { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- code ---------- */

.code {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--amber);
  padding: 22px;
  overflow-x: auto;
  font: 400 13.5px/1.75 var(--mono);
  color: var(--muted);
  margin: 0;
}
.code code { color: inherit; font-size: inherit; }
.code .c { color: var(--cyan); }
.code .d { color: var(--text); }

/* ---------- closer ---------- */

.closer { padding: clamp(72px, 10vw, 132px) 0; border-top: 1px solid var(--rule); text-align: center; }
.closer h2 { font: 700 clamp(30px, 5vw, 54px)/1.05 var(--display); margin: 0 0 12px; letter-spacing: -0.012em; }
.closer p { color: var(--muted); margin: 0 0 32px; }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--rule); padding: 48px 0 64px; background: var(--panel); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-logo { width: 176px; height: auto; }
.foot p { color: var(--muted); font-size: 14px; margin: 14px 0 0; max-width: 34ch; }
.foot nav { display: flex; flex-direction: column; gap: 9px; }
.foot nav a { font: 400 14px/1 var(--mono); color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--cyan); }
.foot-h {
  font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 70%, var(--bg));
  margin: 0 0 6px !important;
}

/* ---------- download page ---------- */

.page-head { padding: clamp(48px, 7vw, 92px) 0 clamp(28px, 4vw, 44px); }
.page-head h1 { font-size: clamp(38px, 6vw, 66px); margin-bottom: 16px; }
.page-head .lede { margin-bottom: 0; }

.builds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.build { background: var(--bg); padding: 28px 26px 30px; display: flex; flex-direction: column; }
.build h2 { font: 700 26px/1.15 var(--display); margin: 0 0 6px; }
.build .meta { font: 400 12.5px/1.5 var(--mono); color: var(--muted); margin: 0 0 18px; }
.build .req { color: var(--muted); font-size: 15px; margin: 0 0 24px; flex: 1; }
.build .btn { align-self: flex-start; }

.steps { list-style: none; counter-reset: step; margin: 30px 0 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 52px; border-left: 1px solid var(--rule); margin-left: 13px; }
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: -13px; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--cyan); color: var(--cyan);
  font: 500 12px/24px var(--mono); text-align: center;
}
.steps h3 { font: 600 19px/1.3 var(--display); margin: 2px 0 8px; }
.steps p { color: var(--muted); font-size: 15.5px; margin: 0 0 12px; }
.steps .code { margin-top: 12px; }

.flags { width: 100%; border-collapse: collapse; margin-top: 26px; font-size: 15.5px; }
.flags th, .flags td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.flags th { font: 500 11.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.flags td { color: var(--muted); }
.flags td:first-child { color: var(--text); white-space: nowrap; }
