:root {
  --bg: #f6f9fc; --bg-alt: #eaf1f7; --surface: #ffffff; --text: #12263a; --muted: #52667a;
  --border: #d6e1ea; --cyan: #0aa8cc; --amber: #d98e04; --navy: #0b1b2b;
  --hot: #0aa8cc; --shadow: 0 8px 28px rgba(18, 38, 58, .08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1b2b; --bg-alt: #0f2336; --surface: #132a40; --text: #e8f1f8; --muted: #9db3c6;
    --border: #23405a; --cyan: #19d3f3; --amber: #f2a900; --shadow: 0 8px 28px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --bg: #0b1b2b; --bg-alt: #0f2336; --surface: #132a40; --text: #e8f1f8; --muted: #9db3c6;
  --border: #23405a; --cyan: #19d3f3; --amber: #f2a900; --shadow: 0 8px 28px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* cabeçalho */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .06em; }
.brand.small { font-size: .9rem; }
.nav { margin-left: auto; display: flex; gap: 20px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--cyan); }
.icon-btn { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; width: 40px; height: 40px;
  font-size: 1.1rem; cursor: pointer; color: var(--text); }
.menu-btn { display: none; }

/* hero */
.hero { padding: 56px 0 40px; background:
  radial-gradient(60% 50% at 85% 0%, color-mix(in srgb, var(--cyan) 18%, transparent), transparent),
  radial-gradient(50% 40% at 0% 100%, color-mix(in srgb, var(--amber) 12%, transparent), transparent); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
.eyebrow { margin: 0 0 10px; color: var(--cyan); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
h1 { font-size: clamp(2rem, 5.2vw, 3.2rem); line-height: 1.12; margin: 0 0 16px; letter-spacing: -.02em; }
.grad { background: linear-gradient(90deg, var(--cyan), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; max-width: 56ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.center-cta { justify-content: center; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.btn[hidden] { display: none; }
.btn.primary { background: linear-gradient(135deg, var(--cyan), color-mix(in srgb, var(--cyan) 60%, var(--navy))); color: #04141f; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: var(--border); background: var(--surface); }
.btn.ghost:hover { border-color: var(--cyan); }
.chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: .88rem; color: var(--muted); }

/* diagrama */
.flow { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); }
.flow svg { width: 100%; height: auto; display: block; }
.flow .pipe { fill: none; stroke: var(--border); stroke-width: 3; stroke-linejoin: round; }
.flow .pulse { fill: none; stroke: url(#g1); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 14 340; animation: run 3.4s linear infinite; }
@keyframes run { to { stroke-dashoffset: -354; } }
.flow .node rect { fill: var(--bg-alt); stroke: var(--border); stroke-width: 1.5; }
.flow .node.hot rect { fill: #0b1b2b; stroke: var(--cyan); stroke-width: 2.5; }
.flow .node text { fill: var(--text); font: 700 14px system-ui, sans-serif; }
.flow .node.hot text { fill: #19d3f3; letter-spacing: .1em; }
.flow .node.sm text { font-size: 11.5px; }
.flow .cap { fill: var(--muted); font: 600 12px system-ui, sans-serif; }

/* seções */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.band { padding: 56px 0; background: var(--navy); color: #e8f1f8; }
.band .sub { color: #b4c7d8; }
.band .sub.strong { color: #fff; }
.band em { color: #19d3f3; font-style: normal; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
h3 { margin: 0 0 6px; font-size: 1.08rem; }
.sub { color: var(--muted); font-size: 1.05rem; margin: 0 auto 28px; max-width: 62ch; }
.band .sub { margin-bottom: 14px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: var(--cyan); }
.card p { margin: 0; color: var(--muted); }
.ico { width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.5rem; border-radius: 14px; margin-bottom: 14px;
  background: color-mix(in srgb, var(--cyan) 14%, var(--bg-alt)); }

.steps { list-style: none; padding: 0; margin: 32px auto 0; max-width: 780px; display: grid; gap: 16px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; }
.steps p { margin: 0; color: var(--muted); }
.n { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #04141f;
  background: linear-gradient(135deg, var(--cyan), var(--amber)); }
.locks { max-width: 780px; margin: 32px auto 0; text-align: center; padding: 24px; border-radius: 18px; border: 2px dashed var(--cyan); background: var(--surface); }
.locks p { color: var(--muted); margin: 0 0 16px; }
.lock-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.lock { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .92rem; }
.lock.ok { background: color-mix(in srgb, #1ec98a 18%, var(--surface)); border-color: #1ec98a; }
.and { font-weight: 800; color: var(--amber); font-size: 1.2rem; }

.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.sec { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--amber); border-radius: 14px; padding: 18px 20px; }
.sec > span { font-size: 1.7rem; line-height: 1; }
.sec p { margin: 0; color: var(--muted); }

.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0 20px; }
.tabs button { font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--cyan); border-color: var(--cyan); color: #04141f; }
.panel[hidden] { display: none; }
.acts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.acts li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.acts span { color: var(--muted); font-size: .9rem; }
.note { color: var(--muted); font-size: .92rem; margin: 16px 0 0; }
.note.center { text-align: center; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats div { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 12px; }
.stats b { display: block; font-size: 1.9rem; background: linear-gradient(90deg, var(--cyan), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: .92rem; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 18px; margin-top: 12px; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
details p { margin: 0 0 14px; color: var(--muted); }

.closing { padding: 72px 0; text-align: center; background: var(--navy); color: #e8f1f8; }
.closing .sub { color: #b4c7d8; }
.closing img { margin-bottom: 12px; }
.foot { border-top: 1px solid var(--border); padding: 20px 0; font-size: .9rem; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }

/* aparecer ao rolar */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
.reveal.in { opacity: 1; transform: none; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .flow { max-width: 420px; margin: 0 auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .acts { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .menu-btn { display: block; margin-left: auto; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-top: 1px solid var(--border); }
  .top-in { gap: 8px; }
}
@media (max-width: 560px) {
  .grid, .sec-grid, .acts { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .hero { padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow .pulse { animation: none; stroke-dasharray: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
