:root {
  color-scheme: dark;
  --bg: #08111f;
  --surface: #101c2e;
  --surface-2: #17263b;
  --line: #263a54;
  --text: #edf4fc;
  --muted: #a3b4c9;
  --accent: #35d6c0;
  --accent-ink: #04201c;
  --warn: #ffcf70;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--accent); }
img { display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 24px; }

.top { position: sticky; top: 0; z-index: 5; background: rgba(8, 17, 31, .92); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 20px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--text); }
.lang-select { min-height: 40px; padding: 0 8px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }

.hero { padding: 88px 0 72px; background: linear-gradient(160deg, #0d2b3a 0%, #0c1a30 45%, var(--bg) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; margin: 0 0 14px; }
.hero h1 { font-size: clamp(36px, 6vw, 62px); letter-spacing: -.02em; }
.lead { color: var(--muted); font-size: 19px; max-width: 58ch; margin: 22px 0 30px; }
.hero-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 340px; justify-self: end; }
.hero-icons img { width: 100%; height: auto; border-radius: 22%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 18px;
  border-radius: 10px; border: 1px solid var(--line); font-weight: 600; font-size: 15px; text-decoration: none; color: var(--text);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #5de6d3; }
.btn.ghost:hover { background: var(--surface-2); }

section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 18px; margin-bottom: 28px; }
.section-head h2, .plain-h2 { font-size: clamp(28px, 4vw, 38px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 6px 15px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 15px; cursor: pointer; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--surface-2); border-color: var(--accent); color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { display: flex; flex-direction: column; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-head { display: flex; align-items: center; gap: 15px; }
.card-head img { border-radius: 22%; flex: none; object-fit: contain; }
.card h3 { font-size: 21px; }
.meta { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.tagline { margin: 0; flex: 1; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.card-actions .primary { flex: 1 1 auto; }
.badge { align-self: center; color: var(--warn); font-weight: 600; flex: 1; }
.card.next { background: transparent; border-style: dashed; justify-content: center; color: var(--muted); }
.card.next h3 { color: var(--text); }
.card.next p { margin: 0; }

.install { background: var(--surface); border-block: 1px solid var(--line); }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 30px 0 0; padding: 0; }
.steps li { counter-increment: step; color: var(--muted); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 50%; background: var(--surface-2); color: var(--accent); font-weight: 700; }
.steps strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 4px; }

footer { padding: 36px 0 44px; color: var(--muted); font-size: 14px; }
footer p { margin: 0 0 8px; max-width: 90ch; }

dialog { width: min(720px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
dialog::backdrop { background: rgba(3, 8, 16, .75); }
.dialog-inner { position: relative; padding: 28px; }
.close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--text); font-size: 22px; cursor: pointer; }
#product-body .card-head { padding-right: 52px; }
#product-body h2 { font-size: 30px; }
#product-body h3 { margin: 26px 0 10px; font-size: 18px; }
.note { padding: 11px 14px; border-left: 3px solid var(--warn); background: var(--surface-2); border-radius: 0 8px 8px 0; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; margin: 0; padding-left: 19px; color: var(--muted); }
.downloads { display: grid; gap: 8px; }
.download { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 15px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; }
.download:hover { border-color: var(--accent); }
.download strong, .download small { display: block; }
.download small { color: var(--muted); overflow-wrap: anywhere; }
.size { flex: none; color: var(--accent); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 22px; margin: 22px 0 0; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; }
.links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 20px 0 0; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-icons { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top nav a.optional { display: none; }
  .hero { padding: 56px 0 48px; }
  .lead { font-size: 17px; }
  section { padding: 52px 0; }
  .grid, .steps, .features, .facts { grid-template-columns: 1fr; }
  .dialog-inner { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
