/* AdvanceRetro — site oficial. Sem fontes externas: usa as do sistema (Bahnschrift e Segoe UI no Windows). */
:root {
  --bg: #08080c; --bg-2: #0d0d14; --panel: #12121b; --panel-2: #171723; --line: #ffffff14; --line-2: #ffffff24;
  --text: #f2f2f7; --muted: #a6a6b8; --dim: #7a7a8e;
  --cyan: #22d3ee; --violet: #8b5cf6; --violet-2: #a78bfa;
  --ok: #34d399; --warn: #fbbf24; --off: #f87171;
  --r: 14px; --r-sm: 9px;
  --display: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16.5px/1.65 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #c4b5fd; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
code, pre { font-family: var(--mono); font-size: .9em; }
code { background: #ffffff0d; border: 1px solid var(--line); padding: .05em .4em; border-radius: 6px; overflow-wrap: anywhere; }
pre { background: #05050a; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; overflow-x: auto; margin: 10px 0; }
pre code { background: none; border: 0; padding: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -.01em; margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--cyan); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }
.ico { width: 20px; height: 20px; flex: none; }
.pendente { color: var(--warn); font-weight: 600; }
.fineprint { color: var(--dim); font-size: 14px; margin: 14px 0 0; }

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: 50; background: #08080cd9; backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.topo-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.marca { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 20px/1 var(--display); letter-spacing: -.01em; }
.marca img { border-radius: 9px; }
.marca b { font-weight: 600; color: var(--cyan); }
.marca:hover { color: var(--text); }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: #ffffff0a; }
.nav a[aria-current="page"] { color: var(--text); background: #ffffff0f; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); font-size: 15px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px)); display: grid; gap: 4px; padding: 10px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 20px 50px #000a; }
.menu nav a:not(.btn) { color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.menu nav a:not(.btn):hover, .menu nav a[aria-current="page"] { background: #ffffff0f; }
.menu nav .btn { margin-top: 6px; justify-content: center; }


/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; font: 600 15.5px/1 var(--body); text-decoration: none; padding: 13px 20px; border-radius: 11px; border: 1px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn-pri { color: #06060a; background: linear-gradient(135deg, var(--cyan), var(--violet-2)); box-shadow: 0 8px 30px #22d3ee2e, inset 0 1px 0 #ffffff66; }
.btn-pri:hover { color: #06060a; transform: translateY(-1px); box-shadow: 0 12px 36px #8b5cf640, inset 0 1px 0 #ffffff66; }
.btn-ghost { color: var(--text); background: #ffffff08; border-color: var(--line-2); }
.btn-ghost:hover { color: var(--text); background: #ffffff10; border-color: #ffffff3a; }
.btn-lg { padding: 16px 24px; font-size: 16.5px; border-radius: 13px; }
.btn-sm { padding: 9px 14px; font-size: 14.5px; border-radius: 10px; }
.btn.is-disabled { background: #ffffff10; color: var(--dim); box-shadow: none; border-color: var(--line); cursor: not-allowed; }
.btn .ico { width: 18px; height: 18px; }
button.btn { font-family: inherit; }
@media (max-width: 900px) { .topo .nav, .topo .topo-cta { display: none; } .topo .menu { display: block; margin-left: auto; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(60% 70% at 85% 10%, #8b5cf633, transparent 70%),
  radial-gradient(45% 60% at 70% 95%, #22d3ee22, transparent 70%),
  linear-gradient(180deg, #0b0b12, var(--bg)); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(#ffffff0a 1px, transparent 1px), linear-gradient(90deg, #ffffff0a 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(70% 80% at 70% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(70% 80% at 70% 40%, #000 30%, transparent 75%); }
.hero-in { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; padding: 88px 0 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; font: 600 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 600; max-width: 14ch; }
.grad { background: linear-gradient(100deg, var(--cyan) 10%, var(--violet-2) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(17px, 1.6vw, 19.5px); color: #c9c9d8; max-width: 56ch; margin: 22px 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { color: var(--dim); font-size: 14px; margin: 22px 0 0; }
.hero-shot { margin: 0; position: relative; }
.hero-shot::before { content: ""; position: absolute; inset: -1px; border-radius: 16px; padding: 1px; background: linear-gradient(140deg, #22d3ee88, #8b5cf622 40%, #8b5cf688); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.hero-shot img { border-radius: 15px; box-shadow: 0 40px 100px #000c, 0 0 80px #8b5cf61f; }
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: up .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: .06s; } .hero-text > :nth-child(3) { animation-delay: .12s; } .hero-text > :nth-child(4) { animation-delay: .18s; } .hero-text > :nth-child(5) { animation-delay: .24s; }
  .hero-shot { animation: up .9s .15s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 64px; } }

/* ---------- seções ---------- */
.sec { padding: 96px 0; }
.sec-tight { padding: 40px 0 88px; }
.sec-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.sec-head { margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; max-width: 22ch; }
.lead { color: var(--muted); font-size: 18px; max-width: 64ch; margin: 14px 0 0; }
.sec > .wrap > .btn { margin-top: 32px; }
@media (max-width: 700px) { .sec { padding: 68px 0; } }

.page-head { padding: 72px 0 24px; background: radial-gradient(50% 120% at 90% 0%, #8b5cf622, transparent 70%); }
.page-head h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 600; max-width: 22ch; }

/* ---------- cartões ---------- */
.cards { display: grid; gap: 16px; }
.c3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .c3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .c3 { grid-template-columns: 1fr; } }
.card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line-2); }
.card .ico { width: 26px; height: 26px; color: var(--cyan); }
.card h3 { font-size: 19px; font-weight: 600; margin: 16px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; transform: translateY(-2px); border-color: #8b5cf655; }

/* ---------- capturas ---------- */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.shot { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.shot-main { grid-column: 1 / -1; }
.shot figcaption { padding: 12px 16px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 700px) { .shots { grid-template-columns: 1fr; } }

/* ---------- chips (sistemas na home) ---------- */
.chips-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px 28px; }
.chip-group h3 { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin-bottom: 10px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: 14.5px; border: 1px solid var(--line-2); background: #ffffff06; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.chip-ok::before { background: var(--ok); box-shadow: 0 0 10px #34d39988; }
.chip-warn::before { background: var(--warn); }
.chip-neutral::before { background: var(--dim); }
.chip-off::before { background: var(--off); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; font-size: 13px; color: var(--muted); }
.legend .chip { font-size: 13px; padding: 4px 10px; }

/* ---------- passos ---------- */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 56px 22px 22px; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; top: 18px; left: 22px; font: 600 15px/1 var(--display); color: var(--cyan); letter-spacing: .06em; }
.steps h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.mini-steps { padding-left: 22px; margin: 12px 0; }
.mini-steps li { margin: 8px 0; padding-left: 4px; }
.mini-steps li::marker { color: var(--cyan); font-weight: 600; }
.bullets { padding-left: 20px; margin: 12px 0; }
.bullets li { margin: 8px 0; }
.bullets li::marker { color: var(--violet-2); }

/* ---------- perguntas ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-wrap .faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font: 600 17.5px/1.35 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-a { padding: 0 0 18px; color: var(--muted); max-width: 72ch; }
.faq-a p { margin: 0 0 10px; }

/* ---------- download ---------- */
.dl-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; background: linear-gradient(135deg, #22d3ee12, #8b5cf614 60%, transparent), var(--panel); border: 1px solid #8b5cf640; border-radius: 18px; padding: 30px; margin-bottom: 40px; }
.dl-main { display: grid; gap: 10px; justify-items: start; }
.dl-name { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 20px/1.2 var(--display); overflow-wrap: anywhere; }
.dl-name .ico { color: var(--cyan); }
.dl-meta { margin: 0 0 8px; color: var(--muted); }
.dl-req { margin: 0; color: var(--dim); font-size: 14px; }
.dl-why { color: var(--muted); margin: 0; font-size: 15px; }
.dl-off { border-color: var(--line-2); background: var(--panel); }
.hash { min-width: 0; }
.hash-label { margin: 0 0 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.hash-row { display: flex; gap: 10px; align-items: stretch; }
.hash-row code { flex: 1; min-width: 0; display: block; padding: 10px 12px; font-size: 13.5px; line-height: 1.5; word-break: break-all; background: #05050a; }
.cta-final { text-align: left; }
.cta-final h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; margin-bottom: 26px; }
.cta-final .dl-panel { margin: 0; grid-template-columns: 1fr; }
@media (max-width: 860px) { .dl-panel { grid-template-columns: 1fr; padding: 22px; } .hash-row { flex-direction: column; } }

.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin: 8px 0 36px; }
.cols2 h2 { font-size: 24px; font-weight: 600; margin-bottom: 12px; }
@media (max-width: 860px) { .cols2 { grid-template-columns: 1fr; gap: 28px; } }

.tbl { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--text); font-weight: 600; }
.tbl thead th { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.tbl td { color: #d4d4e0; }
th[scope="row"] { width: 34%; }
@media (max-width: 640px) {
  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; width: auto; }
  .tbl thead { display: none; }
  .tbl tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .tbl th, .tbl td { border: 0; padding: 2px 0; }
}

.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid; margin: 16px 0; font-size: 15.5px; }
.note .ico { margin-top: 2px; }
.note p { margin: 0; }
.note-info { background: #22d3ee0d; border-color: #22d3ee33; } .note-info .ico { color: var(--cyan); }
.note-warn { background: #fbbf240d; border-color: #fbbf2433; } .note-warn .ico { color: var(--warn); }
.note-ok { background: #34d3990d; border-color: #34d39933; } .note-ok .ico { color: var(--ok); }

/* ---------- sistemas ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.toc a { color: var(--text); text-decoration: none; font-size: 14.5px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #ffffff06; }
.toc a:hover { border-color: #22d3ee66; color: var(--text); }
.sys-group { margin-top: 48px; }
.sys-group > h2 { font-size: 28px; font-weight: 600; margin-bottom: 18px; }
.sys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
@media (max-width: 400px) { .sys-grid { grid-template-columns: 1fr; } }
.sys { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.sys header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sys h3 { font-size: 20px; font-weight: 600; }
.sys dl { margin: 0; display: grid; gap: 8px; font-size: 14.5px; }
.sys dl > div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
.sys dt { color: var(--dim); }
.sys dd { margin: 0; color: #d6d6e2; min-width: 0; }
.sys dd ul { margin: 0; padding-left: 18px; }
.sys dd code { font-size: 12.5px; margin: 0 2px 4px 0; display: inline-block; }
.sys-obs { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.lic { display: inline-block; font-size: 12px; color: var(--dim); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; margin-left: 4px; }
.badge { flex: none; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.badge-ok { color: var(--ok); border-color: #34d39955; background: #34d39914; }
.badge-warn { color: var(--warn); border-color: #fbbf2455; background: #fbbf2414; }
.badge-neutral { color: var(--muted); border-color: var(--line-2); background: #ffffff08; }
.badge-off { color: var(--off); border-color: #f8717155; background: #f8717114; }

/* ---------- textos longos ---------- */
.doc { max-width: 860px; }
.doc h2 { font-size: 26px; font-weight: 600; margin: 48px 0 12px; }
.doc h3 { font-size: 19px; margin: 24px 0 8px; }
.doc p, .doc li { color: #d2d2de; }
.doc .toc { margin-bottom: 8px; }
.upd { color: var(--dim); font-size: 14.5px; margin: 0 0 18px; }
.summary { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; margin: 0 0 12px; }
.summary p { margin: 0 0 6px; font-weight: 600; color: var(--text); }
.summary ul { margin: 0; padding-left: 20px; }
.ext-table { margin: 14px 0; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 16px; background: var(--panel); }
.ext-table summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.release h2 { margin-top: 0; }
.contact-line { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.contact-line .ico { color: var(--cyan); }
.notfound { text-align: left; padding: 120px 0; }
.notfound h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 600; }

/* ---------- rodapé ---------- */
.rodape { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 28px; font-size: 14.5px; color: var(--muted); }
.rodape-in { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.rodape-marca p { margin: 14px 0 0; max-width: 34ch; }
.rodape nav { display: grid; align-content: start; gap: 8px; }
.rodape nav h2 { font: 600 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.rodape nav a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.rodape nav a:hover { color: var(--text); }
.rodape-nota { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.rodape-nota p { margin: 0; font-size: 13px; color: var(--dim); max-width: 110ch; }
@media (max-width: 860px) { .rodape-in { grid-template-columns: 1fr 1fr; } .rodape-marca { grid-column: 1 / -1; } }
@media (max-width: 480px) { .rodape-in { grid-template-columns: 1fr; } }

.copied { color: var(--ok) !important; border-color: #34d39966 !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .topo, .rodape, .btn { display: none !important; } body { background: #fff; color: #000; } }
