:root {
  --bg: #0b0c10;
  --bg-2: #11131a;
  --panel: #14161f;
  --panel-2: #191c27;
  --line: #262a38;
  --line-2: #333849;
  --fg: #e6e8ef;
  --fg-dim: #a3a8bb;
  --fg-faint: #6f7488;
  --accent: #d97757;
  --accent-2: #e8a87c;
  --green: #4eba65;
  --red: #e5484d;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --r: 10px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: #1c2030;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  color: #cdd3e6;
  white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: #10100f;
  padding: 10px 16px; border-radius: 0 0 var(--r) 0; font-weight: 600;
}
.skip:focus { left: 0; top: 0; z-index: 10; }

/* ---------- hero ---------- */

.hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(217,119,87,.16), transparent 70%),
    radial-gradient(700px 380px at 88% 0%, rgba(78,186,101,.09), transparent 70%),
    var(--bg-2);
  padding: 84px 0 68px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin: 0 0 22px;
}
.eyebrow .dot { color: var(--accent); }

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  margin: 0 0 22px;
  max-width: 20ch;
  font-weight: 680;
}

.lede {
  font-size: 1.06rem;
  color: var(--fg-dim);
  max-width: 68ch;
  margin: 0 0 34px;
}

.stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin: 0 0 34px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: rgba(20,22,31,.7);
  max-width: 620px;
}
.stats li {
  flex: 1 1 130px;
  padding: 16px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stats li:last-child { border-right: 0; }
.stats strong {
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--fg);
  font-weight: 600;
  line-height: 1.2;
}
.stats span {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 8px;
  background: var(--accent);
  color: #14100e;
  font-weight: 620;
  border: 1px solid var(--accent);
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--panel); border-color: var(--fg-faint); }

/* ---------- bands ---------- */

.band { padding: 76px 0; border-bottom: 1px solid var(--line); }
.band.alt { background: var(--bg-2); }

h2 {
  font-size: clamp(1.5rem, 3.1vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 660;
}

.sub { color: var(--fg-dim); max-width: 72ch; margin: 0 0 34px; }

h3 { font-size: 1.02rem; margin: 0 0 8px; font-weight: 640; }

/* ---------- install steps ---------- */

.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 34px; }
.step { display: flex; gap: 18px; align-items: flex-start; min-width: 0; }
.step .n {
  flex: 0 0 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent-2);
  margin-top: 2px;
}
.step > div { flex: 1 1 auto; min-width: 0; }

.cmd {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0d0f16;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 10px 10px 14px;
  margin-top: 8px;
  overflow: hidden;
}
.cmd code {
  flex: 1 1 auto;
  min-width: 0;
  background: none; border: 0; padding: 0;
  font-size: 0.85rem;
  color: #cbd2e8;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}
.copy {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 6px 11px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.copy:hover { color: var(--fg); border-color: var(--fg-faint); }
.copy.done { color: var(--green); border-color: rgba(78,186,101,.5); background: rgba(78,186,101,.1); }

/* ---------- callouts ---------- */

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  background: var(--panel);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.callout h3 { margin-bottom: 6px; }
.callout p { margin: 0; color: var(--fg-dim); font-size: 0.95rem; }
.callout.warn { border-left-color: var(--red); }
.callout.warn h3 { color: #ffb3b5; }
.callout.warn code { background: rgba(229,72,77,.12); border-color: rgba(229,72,77,.32); color: #ffc9ca; }

/* ---------- mods grid ---------- */

.head {
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center; justify-content: space-between;
  margin-bottom: 30px;
}
.head h2 { margin: 0; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.chip:hover { color: var(--fg); border-color: var(--line-2); }
.chip.is-on { color: #14100e; background: var(--accent-2); border-color: var(--accent-2); font-weight: 600; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: 18px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card.is-hidden { display: none; }

.card-top {
  display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between;
  gap: 8px 10px; margin-bottom: 12px;
}
.card-top h3 {
  font-family: var(--mono);
  font-size: 1.02rem;
  margin: 0;
  color: var(--accent-2);
  letter-spacing: -0.01em;
}
.live {
  flex: 0 0 auto;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(78,186,101,.1);
  border: 1px solid rgba(78,186,101,.4);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.tag {
  flex: 0 0 auto;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-faint);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.card p { margin: 0 0 12px; font-size: 0.94rem; color: var(--fg-dim); }
.card p.note {
  font-size: 0.86rem;
  color: var(--fg-faint);
  border-left: 2px solid var(--line-2);
  padding-left: 12px;
}
.card em { color: #d3d8e8; font-style: italic; }

.facts {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--fg-faint);
  padding: 12px 0;
  margin: 4px 0 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts b { color: var(--fg-dim); font-weight: 600; }

.cmds { display: grid; gap: 8px; margin-bottom: 12px; }
.cmds .cmd { margin-top: 0; padding: 8px 8px 8px 12px; }
.cmds .cmd code { font-size: 0.78rem; }
.cmds .copy { font-size: 0.68rem; padding: 5px 9px; }

.report { margin: auto 0 0; padding-top: 6px; }
.report a {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--green);
  border-bottom: 1px dashed rgba(78,186,101,.4);
}
.report a:hover { text-decoration: none; border-bottom-style: solid; }

/* ---------- video ---------- */

.videos { display: grid; gap: 30px; }
.videos figure { margin: 0; }
.videos video {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: #101116;
  image-rendering: pixelated;
}
.videos figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--fg-dim);
  max-width: 78ch;
}
.videos figcaption strong { color: var(--accent-2); font-family: var(--mono); }

/* ---------- tests table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  -webkit-overflow-scrolling: touch;
}

.tests {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.tests th, .tests td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}
.tests thead th {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-weight: 600;
  background: var(--panel);
}
.tests tbody tr:last-child td { border-bottom: 0; }
.tests td:first-child { font-family: var(--mono); color: var(--accent-2); }
.tests .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tests .zero { color: var(--green); }
.tests tbody tr:hover { background: rgba(255,255,255,.017); }
.tests .total { background: var(--panel); font-weight: 620; }
.tests .total td { border-top: 1px solid var(--line-2); }

/* ---------- trust ---------- */

.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 18px;
}
.two > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  min-width: 0;
}
.two h3 { color: var(--fg); }
.two p { margin: 0; color: var(--fg-dim); font-size: 0.93rem; }
.two ul { margin: 0; padding-left: 18px; color: var(--fg-dim); font-size: 0.9rem; }
.two li { margin-bottom: 8px; }
.two li:last-child { margin-bottom: 0; }
.two strong { color: #d3d8e8; font-family: var(--mono); font-size: 0.86rem; font-weight: 600; }

/* ---------- links ---------- */

.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.links a {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
  transition: border-color .15s, background .15s;
}
.links a:hover { border-color: var(--line-2); background: var(--panel-2); text-decoration: none; }
.links strong { display: block; color: var(--fg); font-size: 0.98rem; margin-bottom: 4px; }
.links span { display: block; color: var(--fg-faint); font-size: 0.87rem; line-height: 1.5; }

/* ---------- footer ---------- */

footer {
  padding: 40px 0 64px;
  color: var(--fg-faint);
  font-size: 0.85rem;
}
footer p { margin: 0; max-width: 82ch; }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .hero { padding: 60px 0 50px; }
  .band { padding: 56px 0; }
  .stats li { flex-basis: 50%; }
  .stats li:nth-child(2) { border-right: 0; }
  .stats li:nth-child(1), .stats li:nth-child(2) { border-bottom: 1px solid var(--line); }
  .step { gap: 14px; }
  .tests th:nth-child(2), .tests td:nth-child(2) { display: none; }
  .tests th, .tests td { padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .card:hover { transform: none; }
  .btn:hover { transform: none; }
}
