:root {
  --bg: #0b0d16;
  --bg2: #0f1220;
  --surface: #161a2b;
  --surface2: #1d2238;
  --line: rgba(227, 223, 255, 0.09);
  --line2: rgba(227, 223, 255, 0.16);
  --text: #e9e6ff;
  --dim: #a7a3c4;
  --faint: #6f6b8c;
  --accent: #8b7aff;
  --accent2: #b4a9ff;
  --ok: #36ce95;
  --danger: #ed4159;
  --r: 14px;
  --font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: radial-gradient(1200px 600px at 75% -10%, rgba(139,122,255,.16), transparent 60%), radial-gradient(900px 500px at -10% 30%, rgba(80,90,200,.08), transparent 60%);
  background-repeat: no-repeat;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent2); text-decoration: none; }
a:hover { color: #fff; }
code, kbd { font-family: var(--mono); font-size: .88em; }
code { background: rgba(139,122,255,.12); border: 1px solid var(--line); padding: .1em .4em; border-radius: 6px; word-break: break-all; }
kbd { background: var(--surface2); border: 1px solid var(--line2); border-bottom-width: 2px; padding: .05em .45em; border-radius: 6px; }
em { color: var(--text); font-style: normal; font-weight: 600; }
.muted { color: var(--dim); }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(11,13,22,.72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: .04em; }
.brand img { border-radius: 7px; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--dim); font-size: 14.5px; }
.links a:hover { color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 12px; font-weight: 700; letter-spacing: .06em; font-size: 14px;
  border: 1px solid var(--line2); color: var(--text); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-1px); color: #fff; }
.btn-primary { background: linear-gradient(180deg, #9b8cff, #7b69f5); border-color: transparent; color: #fff; box-shadow: 0 10px 30px -10px rgba(139,122,255,.75), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { box-shadow: 0 14px 38px -10px rgba(139,122,255,.95), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost { background: rgba(255,255,255,.03); }
.btn-ghost:hover { background: rgba(255,255,255,.07); }
.btn-small { padding: 8px 14px; font-size: 12.5px; background: rgba(139,122,255,.14); border-color: rgba(139,122,255,.35); }
.btn-big { padding: 18px 30px; font-size: 15px; }

/* hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(40px, 7vw, 96px) clamp(16px, 4vw, 48px) 40px; max-width: 1440px; margin: 0 auto; }
.hero-glow { position: absolute; inset: -10% -20% auto auto; width: 60%; height: 80%; background: radial-gradient(closest-side, rgba(139,122,255,.25), transparent); filter: blur(30px); pointer-events: none; }
.eyebrow { color: var(--accent2); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12.5px; margin: 0 0 14px; }
h1 { font-family: var(--display); font-size: clamp(44px, 7vw, 88px); line-height: .95; margin: 0; letter-spacing: -.02em; font-weight: 800;
  background: linear-gradient(180deg, #fff 30%, #b9b0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { font-family: var(--display); font-size: clamp(24px, 3vw, 34px); margin: 14px 0 10px; font-weight: 600; color: var(--text); }
.lede { color: var(--dim); font-size: 18px; max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { font-size: 13px; color: var(--dim); background: rgba(255,255,255,.03); border: 1px solid var(--line); padding: 6px 11px; border-radius: 999px; }
.facts b { color: var(--text); font-weight: 600; }
.hero-shot { margin: 0; }
.hero-shot figcaption { color: var(--faint); font-size: 12.5px; margin-top: 10px; text-align: center; }
.frame { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line2); background: var(--bg2);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(139,122,255,.08), 0 0 80px -20px rgba(139,122,255,.25); }
.hero-shot .frame { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transition: transform .6s ease; }
.hero-shot .frame:hover { transform: none; }

/* strip */
.strip { max-width: 1200px; margin: 30px auto 40px; padding: 0 clamp(16px, 4vw, 48px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.strip > div { background: var(--surface); padding: 20px 22px; border: 1px solid var(--line); }
.strip > div:first-child { border-radius: var(--r) 0 0 var(--r); }
.strip > div:last-child { border-radius: 0 var(--r) var(--r) 0; }
.strip b { display: block; font-family: var(--display); font-size: 30px; font-weight: 700; color: #fff; }
.strip span { color: var(--dim); font-size: 14px; }

/* features */
section { scroll-margin-top: 76px; }
.feature { max-width: 1320px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-text { order: 2; }
.feature figure { margin: 0; position: relative; }
.kicker { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; }
h2 { font-family: var(--display); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 18px; font-weight: 700; }
h3 { font-size: 17px; margin: 0 0 8px; }
.feature p { color: var(--dim); }
.ticks { list-style: none; padding: 0; margin: 18px 0; }
.ticks li { position: relative; padding-left: 28px; margin: 9px 0; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.dock-shot { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); width: min(78%, 560px); filter: drop-shadow(0 18px 30px rgba(0,0,0,.6)); }
.hud-shot { width: min(40%, 260px); left: auto; right: -12px; transform: none; bottom: -30px; }
.palettes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.pal { display: grid; grid-template-columns: repeat(4, 22px); grid-template-rows: 22px auto; gap: 0; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; background: var(--surface); }
.pal i { display: block; height: 22px; }
.pal span { grid-column: 1 / -1; font-size: 12px; color: var(--dim); padding: 5px 8px; }
.modes { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.modes th { text-align: left; color: var(--accent2); font-size: 12.5px; letter-spacing: .08em; padding: 11px 14px 11px 0; white-space: nowrap; vertical-align: top; border-top: 1px solid var(--line); }
.modes td { color: var(--dim); padding: 10px 0; border-top: 1px solid var(--line); }

/* safety */
.safety { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 48px); }
.lede-small { color: var(--dim); font-size: 18px; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0; }
.steps li { counter-increment: s; background: linear-gradient(180deg, rgba(237,65,89,.12), rgba(237,65,89,.03)); border: 1px solid rgba(237,65,89,.28); border-radius: var(--r); padding: 18px; color: var(--text); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--danger); color: #fff; font-weight: 700; margin-bottom: 10px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card p { color: var(--dim); margin: 0; }
.tested { color: var(--ok); font-size: 14.5px; margin-top: 22px; }

/* screenshots */
.screens { max-width: 1320px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 48px); text-align: center; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0; }
.tabs button { font: 600 13.5px var(--font); color: var(--dim); background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.shot-view img { transition: opacity .25s ease; }

/* two-column info */
.two { max-width: 1200px; margin: 0 auto; padding: clamp(48px, 7vw, 90px) clamp(16px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.spec { display: grid; grid-template-columns: 120px 1fr; gap: 10px 18px; margin: 0; }
.spec dt { color: var(--faint); font-weight: 600; font-size: 14px; }
.spec dd { margin: 0; color: var(--dim); }
.install { padding-left: 20px; color: var(--dim); }
.install li { margin: 0 0 12px; padding-left: 4px; }

/* notes */
.notes { max-width: 1200px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 48px); }
.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.notes-grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.notes ul { padding-left: 18px; margin: 0; color: var(--dim); }
.notes li { margin: 6px 0; }

/* download */
.download { max-width: 920px; margin: 30px auto; padding: clamp(36px, 6vw, 64px) clamp(18px, 5vw, 56px); text-align: center; border-radius: 22px;
  background: radial-gradient(600px 300px at 50% 0%, rgba(139,122,255,.22), transparent 70%), var(--surface); border: 1px solid var(--line2); }
.dlmeta { display: grid; grid-template-columns: 110px 1fr; gap: 10px 18px; text-align: left; margin: 30px 0 0; }
.dlmeta dt { color: var(--faint); font-weight: 600; font-size: 14px; }
.dlmeta dd { margin: 0; color: var(--dim); min-width: 0; }
.hash code { font-size: 12.5px; }
.copy { font: 600 12px var(--font); color: var(--text); background: var(--surface2); border: 1px solid var(--line2); border-radius: 7px; padding: 4px 10px; cursor: pointer; margin: 4px 6px 0 0; }
.copy:hover { border-color: var(--accent); }

details { border-top: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "+"; color: var(--accent2); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--dim); margin: 8px 0 0; }

.footer { max-width: 1200px; margin: 40px auto 0; padding: 30px clamp(16px, 4vw, 48px) 50px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 13.5px; }
.footer > div:first-child { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.footer img { border-radius: 6px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, html:not(.js) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-shot .frame { transform: none; } }

/* responsive */
@media (max-width: 980px) {
  .hero, .feature, .feature.flip, .two { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
  .hero-shot .frame { transform: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cards3, .notes-grid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip > div { border-radius: 0 !important; }
  .links { display: none; }
  .nav .btn-small { margin-left: auto; }
  .dock-shot { position: static; transform: none; width: 100%; margin: 14px auto 0; }
  .hud-shot { width: 60%; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .strip b { font-size: 24px; }
  .btn { width: 100%; justify-content: center; }
  .dlmeta, .spec { grid-template-columns: 1fr; gap: 2px 0; }
  .dlmeta dd, .spec dd { margin-bottom: 10px; }
  .modes th { display: block; padding-bottom: 0; border-top: 1px solid var(--line); }
  .modes td { display: block; border-top: 0; padding-top: 2px; }
  .tabs button { padding: 7px 11px; font-size: 12.5px; }
}

/* grid children may shrink below their content (prevents mobile overflow) */
.hero > *, .feature > *, .two > *, .notes-grid > *, .strip > *, .cards3 > * { min-width: 0; }
@media (max-width: 980px) { .hero, .feature, .feature.flip, .two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .nav .btn { width: auto; } .nav { gap: 12px; } .eyebrow { font-size: 11px; } .facts li { font-size: 12px; } }
