:root {
  --bg: #070b12;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --card: #121a2b;
  --card-2: #182234;
  --green: #10b981;
  --green-2: #059669;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --amber: #f59e0b;
  --red: #ef4444;
  --max: 1180px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(16, 185, 129, 0.22), transparent 55%),
    radial-gradient(700px 420px at -10% 20%, rgba(6, 182, 212, 0.14), transparent 50%),
    var(--bg);
  font: 17px/1.55 "Segoe UI", system-ui, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: #6ee7b7; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 0.98; letter-spacing: -0.045em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.1; letter-spacing: -0.03em; }

.shell { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(7, 11, 18, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.nav { display: flex; align-items: center; gap: 18px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; color: white; font-weight: 800; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.desktop-nav { display: flex; gap: 18px; margin-left: auto; }
.desktop-nav a, .footer-links a { color: var(--muted); text-decoration: none; font-weight: 650; }
.desktop-nav a:hover, .footer-links a:hover { color: white; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.language-menu { position: relative; }
.language-menu summary {
  list-style: none; cursor: pointer; border: 1px solid var(--line);
  background: rgba(255,255,255,0.04); color: white; border-radius: 999px; padding: 8px 12px;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-options {
  position: absolute; right: 0; margin-top: 8px; min-width: 150px;
  background: #101826; border: 1px solid var(--line); border-radius: 16px; padding: 8px;
  box-shadow: var(--shadow);
}
.language-options a { display: block; text-decoration: none; color: white; padding: 8px 10px; border-radius: 10px; }
.language-options a[aria-current="page"], .language-options a:hover { background: rgba(16,185,129,0.16); }
.menu-btn, .mobile-nav { display: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 999px; text-decoration: none; font-weight: 750;
}
.btn-primary { background: linear-gradient(180deg, #34d399, var(--green-2)); color: #042016; }
.btn-ghost { color: white; border: 1px solid var(--line); background: rgba(255,255,255,0.03); }
.soon { color: var(--muted); border: 1px dashed var(--line); background: rgba(255,255,255,0.03); }
.pill-soon { display: inline-flex; padding: 12px 16px; border-radius: 999px; }

.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center; padding: 48px 0 12px; }
.eyebrow {
  display: inline-flex; color: #a7f3d0; background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.35); border-radius: 999px; padding: 6px 12px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em;
}
.lead { color: var(--muted); font-size: 1.12rem; max-width: 38rem; }
.hero-actions, .trust { display: flex; flex-wrap: wrap; gap: 10px; }
.trust { margin-top: 16px; }
.trust span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; color: #cbd5e1; background: rgba(255,255,255,0.03); }

.stage { position: relative; }
.stage:before {
  content: ""; position: absolute; inset: 8% -6% auto; height: 70%;
  background: radial-gradient(circle, rgba(16,185,129,0.35), transparent 68%);
  filter: blur(8px); z-index: 0;
}
.device { position: relative; z-index: 1; width: min(390px, 100%); margin-left: auto; }
.bezel {
  background: linear-gradient(180deg, #2a3548, #0c121c);
  border-radius: 36px; padding: 12px; box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.glass {
  background: #090d16; border-radius: 28px; overflow: hidden; min-height: 640px;
  border: 1px solid rgba(255,255,255,0.05);
}
.caption { text-align: center; color: var(--muted); margin: 12px 0 0; font-size: 0.92rem; }

.appbar, .finder, .sheet, .q, .gauge, .choice { font-size: 13px; }
.appbar { display: flex; align-items: center; gap: 8px; padding: 14px 14px 8px; }
.appbar b { display: block; font-size: 15px; }
.appbar small { color: var(--green); font-weight: 700; }
.dotbtn { margin-left: auto; width: 28px; height: 28px; border-radius: 9px; border: 1px solid #293548; display: grid; place-items: center; color: #cbd5e1; }
.finder {
  position: relative; height: 230px; margin: 8px 12px; border-radius: 18px; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.55)),
    radial-gradient(circle at 50% 40%, #1e3a34, #05070b 70%);
}
.finder:after {
  content: ""; position: absolute; inset: 18% 12%;
  border: 1px dashed rgba(16,185,129,0.7); border-radius: 12px;
}
.badge, .zoom {
  position: absolute; z-index: 1; background: rgba(9,13,22,0.82); border-radius: 999px;
  padding: 4px 8px; font-weight: 800; letter-spacing: 0.02em;
}
.badge { top: 10px; left: 10px; color: var(--green); }
.tools { position: absolute; top: 8px; right: 8px; z-index: 1; display: flex; gap: 4px; }
.tools i { width: 28px; height: 28px; border-radius: 8px; background: rgba(9,13,22,0.7); display: grid; place-items: center; font-style: normal; }
.zoom { left: 50%; bottom: 10px; transform: translateX(-50%); color: white; }
.zoom em { color: #94a3b8; font-style: normal; margin-left: 6px; }
.sheet { padding: 4px 14px 14px; }
.sheet strong { display: block; }
.sheet p { margin: 2px 0 10px; color: var(--muted); font-size: 12px; }
.start {
  display: block; text-align: center; background: var(--green); color: #042016;
  font-weight: 850; border-radius: 16px; padding: 14px 10px;
}
.q { display: flex; gap: 10px; align-items: center; margin-top: 8px; background: var(--card-2); border: 1px solid #293548; border-radius: 16px; padding: 10px; }
.q i { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #102033; font-style: normal; }
.q b { display: block; }
.q span { color: var(--muted); font-size: 11px; }

.rail { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 18px; padding-bottom: 10px; }
.mini { width: 100%; }
.mini .glass { min-height: 520px; }
.choice { position: relative; height: 168px; margin: 10px 12px 0; border-radius: 18px; overflow: hidden; border: 1px solid rgba(16,185,129,0.7); }
.choice.car { border-color: rgba(6,182,212,0.8); }
.choice img { width: 100%; height: 100%; object-fit: cover; }
.choice div {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px;
  background: rgba(9,13,22,0.78);
}
.choice b { display: block; }
.choice span { color: var(--green); font-size: 11px; }
.hud {
  position: relative; height: 250px; margin: 10px 12px; border-radius: 18px;
  background: linear-gradient(180deg, #1a2433, #070b12 80%);
  overflow: hidden;
}
.hud .road {
  position: absolute; left: 18%; right: 18%; bottom: 0; height: 62%;
  background: linear-gradient(#334155, #0f172a);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
}
.speed, .rec {
  position: absolute; top: 12px; background: rgba(9,13,22,0.82); border-radius: 12px; padding: 6px 10px;
}
.speed { left: 12px; border: 1px solid var(--green); color: var(--green); }
.speed b { font-size: 26px; line-height: 1; }
.rec { right: 12px; color: var(--red); font-weight: 800; }
.gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.gauge { background: var(--card-2); border: 1px solid #293548; border-radius: 14px; padding: 10px; }
.gauge small { color: var(--cyan); font-weight: 800; }
.gauge b { display: block; margin-top: 4px; font-size: 18px; }
.shield {
  margin: 12px; border: 2px solid var(--green); border-radius: 22px; text-align: center; padding: 22px 12px; background: #101a16;
}
.shield .ring { width: 72px; height: 72px; margin: 0 auto 8px; border-radius: 20px; display: grid; place-items: center; background: rgba(16,185,129,0.12); color: var(--green); font-size: 28px; }
.shield b { color: var(--green); }

.section { padding: 46px 0; }
.kicker { color: #67e8f9; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; }
.grid, .steps, .docs-cards, .stats { display: grid; gap: 14px; }
.grid { grid-template-columns: repeat(3, 1fr); }
.stats { grid-template-columns: repeat(4, 1fr); margin: 28px auto 8px; }
.card, .stats article, .steps article, .docs-card, .content-card, .final {
  background: rgba(18, 26, 43, 0.86);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.card, .steps article, .docs-card { padding: 20px; }
.stats article { padding: 16px; }
.card span, .step-no { color: var(--green); font-weight: 850; }
.docs-card { display: block; text-decoration: none; color: inherit; }
.lift { margin-top: 18px; }
.docs-card:hover, .card:hover { border-color: rgba(16,185,129,0.55); }
.fine, .note, .stats small, .caption { color: var(--muted); }
.final { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 22px; margin-bottom: 28px; }
details { background: rgba(18,26,43,0.86); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 750; }
.footer { border-top: 1px solid var(--line); padding: 22px 0 36px; }
.footer-inner, .footer-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-inner { justify-content: space-between; }
.content-page { padding: 32px 0 48px; }
.content-card { padding: 28px; }
.content-card h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 26px; }
.docs-toc { position: sticky; top: 92px; align-self: start; display: grid; gap: 8px; }
.docs-toc a { color: var(--muted); text-decoration: none; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .menu-btn {
    display: inline-grid; place-items: center; width: 46px; height: 46px;
    border-radius: 14px; border: 1px solid var(--line); background: #101826; color: white; font-size: 1.2rem;
  }
  .mobile-nav { display: grid; gap: 8px; padding: 0 0 14px; }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a { text-decoration: none; color: white; background: #121a2b; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
  .hero, .grid, .stats, .steps, .docs-cards, .docs-layout, .final, .footer-inner { grid-template-columns: 1fr; display: grid; }
  .device { margin: 0 auto; }
  .rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .rail .mini { scroll-snap-align: center; }
  .docs-toc { position: static; }
  h1 { font-size: 2.5rem; }
}
