:root {
  --bg: #0b1016;
  --bg2: #111922;
  --panel: #151f2a;
  --line: #243241;
  --text: #dce4ec;
  --muted: #93a3b3;
  --orange: #ff6b4a;
  --blue: #4aa8ff;
  --gold: #c9b27c;
  --radius: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
code { font-family: var(--mono); font-size: .88em; background: #1c2833; padding: .1em .4em; border-radius: 6px; }
pre { background: #0e151c; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
pre code { background: none; padding: 0; font-size: .85em; color: #cfe3f5; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(11,16,22,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { color: var(--muted); font-size: 15px; }
.nav nav a:hover { color: var(--text); text-decoration: none; }

/* buttons */
.btn { display: inline-block; background: var(--orange); color: #111; font-weight: 650; padding: 12px 20px; border-radius: 10px; border: 1px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); background: #ff8466; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel); }
.btn-small { padding: 7px 14px; font-size: 14px; color: #111 !important; }
.btn-sponsor { background: #db61a2; color: #fff; }
.btn-sponsor:hover { background: #e676b2; }

/* hero */
.hero { padding: 72px 0 40px; background: radial-gradient(1100px 500px at 80% 10%, rgba(74,168,255,.10), transparent 60%), radial-gradient(900px 500px at 10% 0%, rgba(255,107,74,.10), transparent 60%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--gold); font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 22px; }
.lead { font-size: 19px; color: #c3cfda; max-width: 36em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-img img, .feature-row figure img, .gallery img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.hero-img img { max-height: 620px; width: auto; margin: 0 auto; }
figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; text-align: center; }

/* stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid div { padding: 28px 20px; border-left: 1px solid var(--line); }
.stats-grid div:first-child { border-left: 0; }
.stats-grid b { display: block; font-size: 34px; letter-spacing: -.02em; color: #fff; }
.stats-grid span { color: var(--muted); font-size: 14.5px; }

/* sections */
.section { padding: 84px 0; }
.section.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 14px; }
h3 { font-size: 20px; margin: 0 0 12px; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 46em; margin: 0 0 36px; }
.note { color: var(--muted); font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card ul, .card ol { margin: 0; padding-left: 20px; color: #c3cfda; }
.card li { margin: 7px 0; }
.card li::marker { color: var(--orange); }

/* feature rows */
.feature-rows { display: flex; flex-direction: column; gap: 90px; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row.reverse .feature-text { order: 2; }
.feature-row figure { margin: 0; }
.feature-row figure img { max-height: 560px; width: auto; margin: 0 auto; }
.feature-text p { color: #c3cfda; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 13.5px; text-transform: uppercase; letter-spacing: .04em; }
td.hl { color: #fff; font-weight: 650; }
.perf { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.impedance-table { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.impedance-table td:nth-child(n+3) { font-family: var(--mono); color: #fff; }
.caption { color: var(--muted); font-size: 14px; margin: 12px 4px 0; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* support */
.support { background: linear-gradient(135deg, rgba(219,97,162,.10), rgba(74,168,255,.08)); border-top: 1px solid var(--line); }
.support-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.support p { color: #c3cfda; }
.support-cta { display: flex; flex-direction: column; gap: 12px; }
.support-cta .btn { text-align: center; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* responsive */
@media (max-width: 900px) {
  .hero-inner, .feature-row, .support-inner { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse .feature-text { order: 0; }
  .cards, .gallery { grid-template-columns: 1fr; }
  .cards.two { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid div:nth-child(3) { border-left: 0; }
  .stats-grid div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 60px 0; }
  .hero { padding: 44px 0 28px; }
}
@media (max-width: 620px) {
  .nav nav a:not(.btn) { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid div { border-left: 0; border-top: 1px solid var(--line); }
  .stats-grid div:first-child { border-top: 0; }
  th, td { padding: 10px; font-size: 14px; }
}

/* grid items may shrink below their content (long code lines scroll inside <pre>) */
.hero-inner > *, .feature-row > *, .cards > *, .support-inner > *, .gallery > *, .stats-grid > * { min-width: 0; }
body { overflow-x: hidden; }
pre .c { color: #6f8396; }

/* install */
.platforms { color: var(--muted); font-size: 14px; margin-top: 14px; }
.download-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 40px; }
.download-box b { display: block; font-size: 19px; }
.download-box span { display: block; color: var(--muted); font-size: 14.5px; margin: 4px 0 8px; }
.sha { display: block; font-size: 11.5px; color: #8fa3b6; word-break: break-all; background: none; padding: 0; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; position: relative; min-width: 0; }
.steps li::before { content: counter(step); position: absolute; top: 18px; right: 20px; font: 700 28px/1 var(--mono); color: #2d4053; }
.steps h3 { font-size: 17.5px; margin: 0 0 8px; padding-right: 36px; }
.steps p { color: #c3cfda; font-size: 15.5px; margin: 0; }
.card p { color: #c3cfda; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .download-box { flex-direction: column; align-items: flex-start; }
}
.dl-links { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.dl-all { font-size: 14px; }
@media (max-width: 900px) { .dl-links { align-items: flex-start; } }
