:root {
  --bg: #0b1626;
  --panel: #12233a;
  --line: #213552;
  --text: #e8eef7;
  --muted: #93a4bb;
  --gold: #f2b84b;
  --green: #5bd16a;
  --teal: #3ec5b4;
  --red: #e5624f;
  --max: 1080px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--gold); }
code { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font-size: .92em; }
.muted { color: var(--muted); }

.top {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--max); margin: 0 auto; padding: 18px 16px;
}
.brand { color: #fff; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.top nav a { color: var(--text); text-decoration: none; margin-left: 20px; font-weight: 600; }
.top nav a:hover { color: var(--gold); }

.hero { max-width: var(--max); margin: 0 auto; padding: 40px 16px 0; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
h1 { margin: 0 0 12px; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; max-width: 14em; }
.lead { max-width: 36em; margin: 0 0 24px; font-size: 1.15rem; color: #cdd9ea; }
.btn { display: inline-block; padding: 11px 20px; margin: 0 10px 10px 0; border: 1px solid var(--line); border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 700; background: var(--panel); }
.btn:hover { border-color: var(--gold); }
.btn.primary { background: var(--gold); color: #1a1405; border-color: var(--gold); }
.btn.primary:hover { background: #ffd070; }
.hero-shot { margin: 28px 0 0; }
.hero-shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 24px 60px #0008; }
.hero-shot figcaption { margin-top: 8px; font-size: .9rem; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; max-width: var(--max); margin: 32px auto 0; padding: 0 16px; }
.facts > div { background: var(--panel); border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; }
.facts strong { color: var(--green); font-size: 1.05rem; }
.facts span { color: var(--muted); font-size: .9rem; }

.block { max-width: var(--max); margin: 0 auto; padding: 56px 16px 0; }
.block h2 { margin: 0 0 10px; font-size: 1.6rem; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.block-head p { margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.shot img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); display: block; }
.shot p { margin: 8px 0 0; font-size: .9rem; }

.table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.name { font-weight: 700; }
.badge { display: inline-block; margin-left: 8px; padding: 0 7px; border-radius: 99px; background: #f2b84b22; color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sub { display: block; color: var(--muted); font-size: .88rem; font-weight: 400; }
.on { color: var(--green); } .off { color: var(--red); }
.dot::before { content: "●"; margin-right: 6px; }

footer { max-width: var(--max); margin: 72px auto 0; padding: 22px 16px 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }

@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 16px 0; }
.dl { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.dl.mine { border-color: var(--gold); }
.dl strong { font-size: 1.1rem; }
.dl .btn { margin: 4px 0 0; align-self: flex-start; }
.dl .dl-note, .dl .dl-meta { font-size: .9rem; }
.dl .dl-meta code { word-break: break-all; }
