:root {
  color-scheme: dark;
  /* VexorCAM identity (vexorcam/ui/branding.py): steel blue and industrial orange on deep blue-grey */
  --bg: #0d1820;
  --panel: #15232e;
  --panel-2: #1b2d3b;
  --line: #28404f;
  --text: #eef4f7;
  --muted: #a9bcc8;
  --steel: #3f7396;
  --steel-light: #7fb0cf;
  --orange: #e0701f;
  --orange-hover: #c75f14;
  --orange-light: #f6a25e;
  --mono: "JetBrains Mono", monospace;
  --header: 72px;
  font-family: Inter, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 1rem); }
body { margin: 0; padding-top: var(--header); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange-light); outline-offset: 4px; }
p { margin: 0 0 1rem; color: var(--muted); }
h1, h2, h3 { margin: 0 0 1rem; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.9rem); font-weight: 800; }
h1 em { font-style: normal; color: var(--orange-light); }
h2 { font-size: clamp(1.8rem, 3.1vw, 2.8rem); }
h3 { font-size: 1.15rem; }
.wrap { width: min(100% - 3rem, 1260px); margin-inline: auto; }
.skip { position: fixed; z-index: 4; top: .5rem; left: .5rem; padding: .6rem 1rem; background: var(--panel); transform: translateY(-150%); }
.skip:focus { transform: none; }
.header { position: fixed; z-index: 3; inset: 0 0 auto; background: #0d1820f2; backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-row, .header nav, .brand { display: flex; align-items: center; }
.nav-row { min-height: var(--header); justify-content: space-between; gap: 1.5rem; }
.header nav { gap: clamp(.8rem, 1.6vw, 1.6rem); color: var(--muted); font-size: .875rem; font-weight: 600; }
.header nav a:hover, .footer a:hover { color: var(--steel-light); }
.brand { gap: .55rem; font-size: 1.4rem; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.brand span span { color: var(--orange); }
.menu { display: none; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; text-align: center; padding: .65rem 1.05rem; color: var(--text); font-size: .9rem; font-weight: 700; border: 1px solid transparent; border-radius: 8px; line-height: 1.35; }
.primary { background: var(--orange); color: #fff; }
.primary:hover { background: var(--orange-hover); }
.secondary, .nav-cta, .menu { background: #10202b; border: 1px solid #3c5a6e; }
.secondary:hover, .nav-cta:hover, .menu:hover { background: var(--panel-2); border-color: var(--steel-light); }
.hero { padding: clamp(3.5rem, 7vw, 6.5rem) 0; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 80% 35%, #1f3a4f, transparent 60%); }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: #c6d6df; font: 500 .85rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.eyebrow span { width: 1.35rem; height: 2px; background: var(--orange); flex: none; }
.lede { font-size: clamp(1rem, 1.35vw, 1.13rem); max-width: 55ch; }
.intro { max-width: 70ch; }
.actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.65rem; }
.release-line { margin: .85rem 0 0; font: .8125rem var(--mono); }
.shot { min-width: 0; margin: 0; border: 1px solid #3a5568; border-radius: 12px; overflow: hidden; background: #1d2a36; box-shadow: 0 22px 60px #0008; }
.shot img { display: block; width: 100%; }
.shot figcaption { padding: .75rem .9rem; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--panel); }
.shot figcaption b { color: var(--text); }
.hero-shot { transform: perspective(1600px) rotateY(-4deg); }
.tour { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 1.25rem; margin-top: 2rem; align-items: start; }
.steps { display: grid; gap: .4rem; }
.steps button { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--muted); text-align: left; font-weight: 600; font-size: .92rem; }
.steps button b { display: grid; place-items: center; flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #10202b; border: 1px solid #3c5a6e; font: 600 .8rem var(--mono); color: var(--steel-light); }
.steps button:hover { border-color: #3c5a6e; color: var(--text); }
.steps button[aria-pressed="true"] { color: var(--text); background: var(--panel-2); border-color: var(--orange); }
.steps button[aria-pressed="true"] b { background: var(--orange); border-color: var(--orange); color: #fff; }
.stage { display: grid; }
.stage img { display: none; max-height: 640px; object-fit: contain; background: #1d2a36; }
[data-active="pdf"] [data-view="pdf"], [data-active="pilot"] [data-view="pilot"], [data-active="percursos"] [data-view="percursos"],
[data-active="simulacao"] [data-view="simulacao"], [data-active="codigo"] [data-view="codigo"], [data-active="proposta"] [data-view="proposta"] { display: block; }
.terminal { display: grid; gap: .3rem; font: .8125rem/1.5 var(--mono) !important; }
.terminal span { color: var(--steel-light); }
.terminal code { color: #b6efcf; font: inherit; }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.band { border-block: 1px solid var(--line); background: #10202b; }
.features, .plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.card { min-width: 0; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: clamp(1.15rem, 2.4vw, 1.75rem); }
.card p:last-child { margin-bottom: 0; }
.card h3 { position: relative; padding-left: .9rem; }
.card h3::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 3px; border-radius: 2px; background: var(--orange); }
.plan h3 { padding-left: 0; }
.plan h3::before { display: none; }
.pilot { grid-column: span 2; background: linear-gradient(125deg, #1f3c52, var(--panel) 75%); }
.sequence { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.2rem; }
.sequence span { padding: .25rem .55rem; border: 1px solid #3c5a6e; background: #10202b; border-radius: 4px; color: #cfe0ea; font: .8rem var(--mono); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.gallery img { aspect-ratio: 16 / 10; object-fit: cover; object-position: center top; }
.billing { display: flex; flex-wrap: wrap; gap: .4rem 1rem; width: fit-content; margin: 1rem 0 0; border: 0; padding: 0; color: var(--muted); }
.billing legend { font-size: .875rem; }
.billing label { cursor: pointer; }
.billing input { accent-color: var(--orange); }
.save { margin-left: .35rem; padding: .1rem .45rem; border-radius: 999px; background: #7a3a10; color: #fff3ea; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.popular { border-color: var(--orange); box-shadow: inset 0 3px var(--orange); }
.badge { width: fit-content; color: #fff3ea; background: #7a3a10; padding: .2rem .5rem; border-radius: 4px; font-size: .8125rem; }
.price { margin: 0; color: var(--text); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.04em; }
.price span { color: var(--muted); font-size: .95rem; font-weight: 500; letter-spacing: 0; }
.alternate { font-size: .875rem; }
.plan ul, .oem ul { margin: .5rem 0 1.6rem; padding-left: 1.25rem; color: var(--muted); }
.plan li + li, .oem li + li { margin-top: .45rem; }
.plan li::marker, .oem li::marker { color: var(--orange); }
.plan .button { margin-top: auto; }
.addons { margin-top: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 10px; }
.addons > div { display: grid; grid-template-columns: 1fr 1fr auto; align-items: baseline; gap: .45rem 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.addons span { color: var(--muted); }
.text-button { border: 0; padding: 0; background: none; color: var(--steel-light); font-weight: 600; text-align: left; }
.text-button:hover { text-decoration: underline; }
.oem, .download-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.oem { padding-block: .5rem; }
.oem ul { margin-bottom: 0; }
.release details { margin-top: 1rem; }
.release summary { cursor: pointer; color: var(--steel-light); }
#changelog { margin-top: .6rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.footer { padding-block: 2rem; display: flex; gap: 1.5rem; justify-content: space-between; align-items: center; flex-wrap: wrap; font-size: .875rem; }
.footer p { margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: .85rem; }
dialog { width: min(100% - 2rem, 420px); padding: 1.5rem; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
dialog h2 { font-size: 1.35rem; }
dialog::backdrop { background: #000a; }
@media (max-width: 1050px) {
  .menu { display: block; color: var(--text); border-radius: 6px; padding: .4rem .75rem; }
  .header nav { display: none; position: absolute; inset: 100% 0 auto; padding: 1rem 1.5rem; background: var(--bg); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
  .menu[aria-expanded="true"] + nav { display: flex; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot { transform: none; }
  .tour { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 570px) {
  :root { --header: 62px; }
  .wrap { width: calc(100% - 2rem); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps button { font-size: .85rem; padding: .55rem .6rem; }
  .features, .plans, .gallery, .oem, .download-grid, .addons > div { grid-template-columns: 1fr; }
  .pilot { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
