:root {
  --bg: #09090b;
  --bg-soft: #0d0d10;
  --card: #121216;
  --card-hi: #17171c;
  --line: #232329;
  --line-soft: #1b1b20;
  --fg: #fafafa;
  --fg-mid: #a1a1aa;
  --fg-low: #71717a;
  --brand: #ff3d14;
  --amber: #e0b341;
  --green: #4ade80;
  --blue: #7c8cf8;
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1140px;
  --font: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(255, 61, 20, 0.28); }

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.mono { font-family: var(--mono); font-size: 0.92em; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line-soft); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 62px;
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 26px; height: 26px; }
.brand b { font-weight: 650; letter-spacing: -0.01em; }
.brand span.sub { color: var(--fg-low); font-size: 13px; padding-left: 9px; margin-left: 2px; border-left: 1px solid var(--line); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--fg-mid);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover { color: var(--fg); background: var(--card-hi); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.menu-toggle {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--fg);
  cursor: pointer;
}
.menu-toggle svg { width: 18px; height: 18px; }

.mobile-nav { display: none; border-top: 1px solid var(--line-soft); padding: 8px 24px 16px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 10px 0; color: var(--fg-mid); border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.mobile-nav a:last-child { border-bottom: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--fg); color: #09090b; }
.btn-primary:hover { background: #e4e4e7; }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { background: var(--card-hi); border-color: #2e2e35; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- generic section ---------- */

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.rule { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-low);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.section-head { max-width: 760px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
.section-head p { margin-top: 16px; color: var(--fg-mid); font-size: 1.06rem; }

/* ---------- hero ---------- */

.hero { padding: 80px 0 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 12.5px;
  color: var(--fg-mid);
  margin-bottom: 26px;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.badge b { color: var(--fg); font-weight: 600; }

.hero h1 {
  font-size: clamp(2.35rem, 5.6vw, 3.85rem);
  letter-spacing: -0.035em;
  max-width: 15ch;
}
.hero .lead {
  margin-top: 22px;
  max-width: 62ch;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--fg-mid);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--fg-low); }

.shot-frame {
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 8px;
  overflow: hidden;
}
.shot-frame img { border-radius: 6px; width: 100%; height: auto; }

/* ---------- stat strip ---------- */

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.strip div { padding: 22px 24px; border-right: 1px solid var(--line); }
.strip div:last-child { border-right: 0; }
.strip b { display: block; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.strip span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--fg-mid); }

/* ---------- feature rows ---------- */

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}
.row + .row { margin-top: 104px; }
.row.flip .row-text { order: 2; }
.row h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.row p { margin-top: 14px; color: var(--fg-mid); }
.row p + p { margin-top: 12px; }

.checks { margin-top: 22px; display: grid; gap: 11px; }
.checks li { position: relative; padding-left: 26px; font-size: 14.6px; color: var(--fg-mid); }
.checks li::before {
  content: "";
  position: absolute;
  left: 3px; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg-low);
}
.checks li b { color: var(--fg); font-weight: 550; }

/* ---------- figures ---------- */

figure { margin: 0; }
.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 6px;
  overflow: hidden;
}
.shot img { border-radius: 6px; width: 100%; height: auto; cursor: zoom-in; }
.zoom-hint {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  font-size: 12.5px; color: var(--fg-low);
}
.zoom-hint svg { width: 14px; height: 14px; }
figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--fg-low);
  line-height: 1.55;
}
figcaption b { color: var(--fg-mid); font-weight: 550; }

/* ---------- cards ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 26px;
}
.card h4 { font-size: 1.03rem; }
.card p { margin-top: 10px; font-size: 14.4px; color: var(--fg-mid); }
.card-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: var(--card-hi);
  border: 1px solid var(--line);
  margin-bottom: 18px;
  color: var(--fg-mid);
}
.card-icon svg { width: 17px; height: 17px; }

/* ---------- spec table ---------- */

.spec { border-top: 1px solid var(--line); }
.spec > div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.spec dt { font-size: 14.4px; font-weight: 550; }
.spec dd { margin: 0; font-size: 14.4px; color: var(--fg-mid); }
.spec dd code, .inline-code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--card-hi);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--fg);
}

/* ---------- chips ---------- */

.chip-block + .chip-block { margin-top: 28px; }
.chip-block h4 { font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--fg-low); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  font-family: var(--mono);
  font-size: 12.4px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  color: var(--fg-mid);
}

/* ---------- callout ---------- */

.chip-note {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 84ch;
  font-size: 14.6px;
  line-height: 1.72;
  color: var(--fg-mid);
}
.chip-note b { color: var(--fg); font-weight: 550; }

.callout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.callout svg { width: 20px; height: 20px; color: var(--fg-mid); margin-top: 2px; }
.callout h4 { font-size: 1rem; }
.callout p { margin-top: 8px; font-size: 14.4px; color: var(--fg-mid); }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.steps > div { padding: 24px; border-right: 1px solid var(--line); background: var(--card); }
.steps > div:last-child { border-right: 0; }
.steps .n { font-family: var(--mono); font-size: 12px; color: var(--fg-low); }
.steps h4 { margin-top: 12px; font-size: 0.98rem; }
.steps p { margin-top: 8px; font-size: 13.6px; color: var(--fg-mid); }

/* ---------- cta ---------- */

.cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  padding: 56px 40px;
  text-align: center;
}
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.cta p { margin: 16px auto 0; max-width: 58ch; color: var(--fg-mid); }
.cta .hero-actions { justify-content: center; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line-soft); padding: 56px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-top p { margin-top: 14px; font-size: 14px; color: var(--fg-low); max-width: 34ch; }
.footer-col h5 { font-size: 12.5px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--fg-low); font-weight: 500; margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: 14px; color: var(--fg-mid); }
.footer-col a:hover { color: var(--fg); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--fg-mid);
}
.socials a:hover { color: var(--fg); background: var(--card-hi); }
.socials svg { width: 16px; height: 16px; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--fg-low);
}

/* ---------- download page ---------- */

.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dl-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 32px; }
.dl-card.soon { background: transparent; }
.dl-head { display: flex; align-items: center; gap: 12px; }
.dl-head h3 { font-size: 1.25rem; }
.tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--fg-mid);
}
.dl-card .os-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: var(--card-hi); margin-bottom: 22px; }
.dl-card .os-icon svg { width: 20px; height: 20px; }
.dl-card > p { margin-top: 10px; color: var(--fg-mid); font-size: 14.6px; }
.dl-card .checks { flex: 1 0 auto; align-content: start; margin: 22px 0 26px; }
.dl-note { margin-top: 14px; font-size: 12.8px; color: var(--fg-low); text-align: center; }

/* ---------- lightbox ---------- */

.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 4, 6, 0.9);
  display: none;
  align-items: center; justify-content: center;
  padding: 32px;
  cursor: zoom-out;
}
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 8px; border: 1px solid var(--line); }
.lb-close {
  position: absolute; top: 18px; right: 22px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--fg); cursor: pointer;
}

/* ---------- error page ---------- */

.page-error { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.page-error main { flex: 1 0 auto; }
.page-error .hero { padding-bottom: 40px; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .row, .row.flip .row-text { grid-template-columns: 1fr; order: 0; gap: 32px; }
  .row + .row { margin-top: 76px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip div:nth-child(2) { border-right: 0; }
  .strip div:nth-child(1), .strip div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .hero { padding-top: 52px; }
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .grid-3, .grid-2, .dl-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps > div { border-right: 0; }
  .strip { grid-template-columns: 1fr; }
  .strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .strip div:last-child { border-bottom: 0; }
  .spec > div { grid-template-columns: 1fr; gap: 6px; }
  .callout { grid-template-columns: 1fr; }
  .cta { padding: 40px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .brand span.sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
