/* Preto de verdade, como as telas do carro; azul do ponteiro das skins para o que se toca e
   âmbar só para o Pro. Barlow, a fonte das skins: fina nos títulos, como os números do painel. */
:root {
  --ink: #000;
  --panel: #0f1114;
  --panel-2: #171a1f;
  --line: #24272e;
  --text: #f2f2ee;
  --muted: #9da1a9;
  --needle: #3d7bff;
  --needle-soft: rgba(61, 123, 255, .14);
  --amber: #ffb224;
  --red: #ff3b30;
  --wrap: 1180px;
  --display: "Barlow", system-ui, sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17.5px/1.55 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--needle); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
h1, h2 { font-weight: 300; letter-spacing: -.015em; line-height: 1.04; }
h2 { font-size: clamp(34px, 4.6vw, 58px); }
h3 { font-size: 24px; font-weight: 500; line-height: 1.2; }
p { margin: 0; }

/* ---------- topo ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 28px;
  max-width: var(--wrap); margin: 0 auto; padding: 14px 20px;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 500 21px/1 var(--body); margin-right: auto; }
.brand svg { width: 28px; height: 28px; color: var(--needle); }
.brand span { color: var(--muted); font-weight: 400; }
.top nav { display: flex; gap: 22px; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.top nav a:hover { color: var(--text); }

/* selo do Pro */
.pro {
  display: inline-block; vertical-align: middle; padding: 2px 7px 1px; border-radius: 5px;
  background: var(--amber); color: #000; font: 600 12px/1.3 var(--body); letter-spacing: .06em;
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border-radius: 10px;
  font: 600 18px/1.1 var(--body); text-decoration: none; text-align: center;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-pro { background: var(--amber); color: #000; }
.btn-pro:hover { background: #ffc252; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--needle); }
.btn-dl { background: var(--needle); color: #fff; width: 100%; font-size: 20px; min-height: 60px; }
.btn-dl:hover { background: #6a9dff; }
.btn-dl svg { width: 24px; height: 24px; }

section { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sec-head { max-width: 720px; margin-bottom: 36px; }
.sec-head p { color: var(--muted); margin-top: 14px; font-size: 18px; }
.sec-head strong { color: var(--text); font-weight: 600; }

/* ---------- abertura ---------- */
.hero { padding-top: 64px; padding-bottom: 96px; text-align: center; }
.hero h1 { font-size: clamp(40px, 6.4vw, 84px); max-width: 15ch; margin: 0 auto; }
.lede { margin: 22px auto 0; color: var(--muted); font-size: 20px; max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .ctas { justify-content: center; margin-top: 36px; }

.live { margin: 52px auto 0; max-width: 1180px; }
.cluster {
  position: relative; aspect-ratio: 8 / 3; overflow: hidden; border-radius: 22px; background: #000;
  box-shadow: 0 0 0 1px #1d2026, 0 40px 120px -50px rgba(61, 123, 255, .35);
  transition: box-shadow .9s ease;
}
.cluster video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* motor ligado: o vidro do painel acende um pouco mais */
.cluster.is-on { box-shadow: 0 0 0 1px #2a3550, 0 50px 140px -40px rgba(61, 123, 255, .65); }
.live-bar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: flex-end; margin-top: 22px; }
.start {
  min-height: 52px; padding: 0 26px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--needle); background: var(--needle-soft); color: var(--text); font: 600 17px var(--body);
}
.start { position: relative; transition: background-color .2s, transform .1s; }
.start:active { transform: scale(.97); }
.start[aria-pressed="true"] { background: var(--needle); }
/* convite discreto para dar a partida, enquanto ninguém tocou */
.start[aria-pressed="false"]::after {
  content: ""; position: absolute; inset: -1.5px; border-radius: inherit; border: 1.5px solid var(--needle);
  animation: ping 2.4s ease-out infinite; pointer-events: none;
}
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.18, 1.5); opacity: 0; } }
.pick { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 14px; text-align: left; }
.pick select {
  min-height: 52px; padding: 0 40px 0 16px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239da1a9' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 15px center / 12px;
  color: var(--text); font: 500 17px var(--body); -webkit-appearance: none; appearance: none;
}
.live figcaption { color: var(--muted); font-size: 15px; margin-top: 14px; }

/* ---------- movimento ---------- */
/* abertura: título, texto e painel entram em sequência, uma vez */
.hero h1, .hero .lede, .hero .live, .hero .ctas { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero .lede { animation-delay: .12s; }
.hero .live { animation-delay: .24s; }
.hero .ctas { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* as telas "acendem" quando chegam na tela, como o painel do carro ao ligar */
.js .power { filter: brightness(.15) saturate(.4); transform: scale(.985); transition: filter 1.1s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.js .power.lit { filter: none; transform: none; }

/* ---------- recursos ---------- */
.feat { margin-bottom: 140px; }
.feat-text { max-width: 640px; margin-bottom: 40px; }
.feat-text p { color: var(--muted); font-size: 18.5px; margin-top: 18px; }
.feat-split { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: center; }
.feat-split .feat-text { margin-bottom: 0; }
.shot { position: relative; }
.shot img, .dash img, .duo img { border-radius: 16px; box-shadow: 0 0 0 1px #1d2026; }
.shot-ui img { border-radius: 20px; box-shadow: 0 0 0 1px #262a31, 0 30px 80px -30px rgba(0, 0, 0, .9); }
.shot .pro-pin { position: absolute; top: 14px; right: 14px; }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pnl { margin: 0; }
.pnl-frame {
  position: relative; aspect-ratio: 8 / 3; background: #000; border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 1px #1d2026; display: flex; flex-direction: column;
}
.pnl-frame > img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.pnl-fit > img { flex: 1; min-height: 0; object-fit: contain; }
/* ilustração neutra das camadas da BYD: só faixas, sem desenho da interface dela */
.byd { display: flex; align-items: center; justify-content: space-between; gap: 6%; padding: 0 5%; background: #1b1d22; }
.byd i { display: block; height: 22%; width: 12%; border-radius: 99px; background: #34373e; }
.byd i.w { width: 26%; }
.byd-top { height: 15%; flex: none; }
.byd-bottom { height: 14%; flex: none; justify-content: center; }
.byd-bottom .bat { width: 46%; height: 26%; background: #2c2f35; overflow: hidden; }
.byd-bottom .bat b { display: block; width: 78%; height: 100%; background: #4a4e57; }
.byd-lights { position: absolute; top: 0; left: 33%; width: 34%; height: 11%; background: transparent; padding: 0; justify-content: center; gap: 8%; }
.byd-lights i { width: auto; height: 32%; aspect-ratio: 1; background: #3a3d44; }
.pnl-frame .pro-pin { position: absolute; top: 12px; right: 12px; }
.pnl figcaption { color: var(--muted); font-size: 15.5px; margin-top: 12px; }
.pnl figcaption b { color: var(--text); font-weight: 500; margin-right: 6px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.duo figure { margin: 0; }
.duo figcaption { color: var(--muted); font-size: 15px; margin-top: 10px; }

/* navegação */
.nav-side { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; margin-top: 28px; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 16px 0; border-top: 1px solid var(--line); font-size: 18.5px; }
.facts li:first-child { border-top: 0; }
.note { color: var(--muted); font-size: 15.5px; margin-top: 28px; }

/* mais no Pro */
.more { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 24px; }
.more h3 { margin-top: 20px; }
.more p { color: var(--muted); margin-top: 8px; max-width: 34em; }
.more-tall { grid-column: 1 / -1; display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.more-tall h3 { margin-top: 0; }
.more-tall .more-h { margin-top: 32px; }
.dev { font: 500 14px var(--body); color: var(--amber); margin-left: 8px; }

/* abas (versão do sistema na instalação) */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: transparent; color: var(--muted); font: 500 16px var(--body);
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { border-color: var(--needle); color: var(--text); background: var(--needle-soft); }

/* ---------- Grátis ou Pro ---------- */
.plans { margin-bottom: 140px; }
.plans .feat-text strong { color: var(--text); font-weight: 500; }
.plans-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.cmp { width: 100%; border-collapse: collapse; font-size: 16.5px; }
.cmp th, .cmp td { padding: 13px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.cmp thead th { color: var(--muted); font-weight: 500; padding-top: 0; }
.cmp td, .cmp thead th + th { width: 96px; text-align: center; }
.cmp td.y::before { content: ""; display: inline-block; width: 14px; height: 7px; border-left: 2px solid var(--needle); border-bottom: 2px solid var(--needle); transform: rotate(-45deg) translateY(-3px); }
.cmp td.n::before { content: ""; display: inline-block; width: 12px; height: 1.5px; background: #3a3e46; vertical-align: middle; }
.cmp tr > td:last-child.y::before { border-color: var(--amber); }
.cmp-time th, .cmp-time td { font-weight: 500; color: var(--text); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.buy { position: sticky; top: 90px; background: var(--panel); border: 1.5px solid var(--amber); border-radius: 18px; padding: 28px; }
.buy-name { font-weight: 500; font-size: 19px; }
.buy-price { font: 300 64px/1 var(--display); margin-top: 18px; letter-spacing: -.02em; }
.buy-once { color: var(--muted); margin: 8px 0 24px; }
.buy .btn { width: 100%; }
.buy-note { color: var(--muted); font-size: 14.5px; margin-top: 12px; }

/* ---------- instalar ---------- */
.install { margin-bottom: 112px; }
.install-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 64px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -4px;
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--needle);
  display: flex; align-items: center; justify-content: center; font: 600 22px var(--display); color: var(--needle);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 4px; width: 1.5px; background: var(--line); }
.steps b { display: block; font-weight: 600; }
.steps li { color: var(--muted); }
.steps li b { color: var(--text); }
.dl { background: var(--panel); border-radius: 16px; padding: 24px; position: sticky; top: 84px; }
.how h3 { font-size: 24px; margin-bottom: 8px; }
.how p { color: var(--muted); }
.how p b { color: var(--text); font-weight: 600; }
.ver { margin-bottom: 26px; }
.vtabs { margin-bottom: 22px; }
.path { margin-bottom: 22px; }
.warn { border-left: 2px solid var(--red); padding: 2px 0 2px 14px; margin-bottom: 24px; }
.steps code, .how code {
  font: 600 .95em var(--body); color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; white-space: nowrap;
}
.steps i { font-style: normal; color: var(--text); }
.after { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 8px; }
.after p + p { margin-top: 10px; }
.help a { color: var(--needle); font-weight: 600; }
.dl-meta { margin-top: 14px; font-weight: 500; }
.dl-note { color: var(--muted); font-size: 15px; margin-top: 8px; }
.compat { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.compat h3 { margin-bottom: 18px; }
.compat dl { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 0; }
.compat dt { font-weight: 600; margin-bottom: 4px; }
.compat dd { margin: 0; color: var(--muted); }

/* ---------- dúvidas ---------- */
.faq { margin-bottom: 96px; }
.faq details { max-width: 820px; }
.faq h2 { margin-bottom: 20px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font: 600 19px/1.3 var(--body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 26px; width: 10px; height: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details p { color: var(--muted); padding: 0 0 20px; max-width: 42em; }

/* ---------- rodapé ---------- */
.foot { border-top: 1px solid var(--line); max-width: var(--wrap); margin: 0 auto; padding: 56px 20px 40px; }
.foot-contact { display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: center; }
.foot-contact h2 { font-size: 36px; }
.foot-contact p { color: var(--muted); grid-column: 1; }
.foot-contact .btn { grid-column: 2; grid-row: 1 / span 2; }
.legal { color: #6f7f98; font-size: 14px; margin-top: 40px; max-width: 60em; }

/* barra do Pro no celular */
.mbar { display: none; }

/* ---------- telas menores ---------- */
@media (max-width: 900px) {
  .feat-split { grid-template-columns: 1fr; gap: 36px; }
  .feat-split .shot-ui { max-width: 360px; }
  .plans-grid, .install-grid { grid-template-columns: 1fr; }
  .buy { position: static; }
  .dl { position: static; order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .top nav { gap: 14px; font-size: 15px; }
  .top nav a:nth-child(1), .top nav a:nth-child(4) { display: none; }
  .top nav a { white-space: nowrap; }
  .cmp td, .cmp thead th + th { width: 66px; }
  .cmp { font-size: 15.5px; }
  .duo, .panels { grid-template-columns: 1fr; }
  .nav-side { grid-template-columns: 1fr; gap: 24px; }
  .more, .more-tall { grid-template-columns: 1fr; gap: 48px; }
  .more-tall .shot-ui { max-width: 320px; }
  .nav-side .shot-ui { max-width: 320px; }
  .feat { margin-bottom: 96px; }
  .ctas .btn { width: 100%; }
  .compat dl { grid-template-columns: 1fr; gap: 18px; }
  .foot-contact { grid-template-columns: 1fr; }
  .foot-contact .btn { grid-column: 1; grid-row: auto; margin-top: 12px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-right: -20px; padding-right: 20px; scrollbar-width: none; }
  .tabs button { flex: none; }
}
@media (max-width: 640px) {
  .hero { padding-top: 36px; padding-bottom: 72px; }
  .lede { font-size: 18px; }
  .live { margin-top: 32px; }
  .cluster { border-radius: 14px; }
  .live-bar { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .live-bar .start { grid-column: 1 / -1; }
  .pick select { width: 100%; }
  .mbar {
    display: flex; align-items: center; gap: 12px; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 20;
    padding: 10px 10px 10px 16px; border-radius: 16px; background: rgba(18, 20, 24, .94); border: 1px solid #2b2f36;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transform: translateY(140%); transition: transform .45s cubic-bezier(.2, .7, .2, 1);
  }
  .mbar.show { transform: none; }
  .mbar p { flex: 1; font-size: 15px; line-height: 1.25; }
  .mbar p span { display: block; color: var(--muted); font-size: 13.5px; }
  .mbar .btn { min-height: 44px; padding: 8px 16px; font-size: 16px; }
  .foot { padding-bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .power { filter: none; transform: none; }
}
.vpanel > .btn { margin-bottom: 28px; }
.path a { color: var(--needle); font-weight: 600; }
