:root {
  --bg: #0A0A1F;
  --surface: #12122E;
  --surface-2: #181838;
  --border: rgba(167, 139, 250, .16);
  --text: #EEEDF8;
  --muted: #A9A7C6;
  --purple: #8B5CF6;
  --purple-light: #A78BFA;
  --blue: #5A95F3;
  --green: #4ADE80;
  --radius: 18px;
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Poppins, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--purple-light); }
a:hover { color: #C4B5FD; }

:focus-visible { outline: 2px solid var(--purple-light); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

/* ---------- cabeçalho ---------- */
.topo {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 31, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topo .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }

.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.marca img { width: 38px; height: 38px; }
.marca span { font-weight: 600; font-size: 22px; letter-spacing: -.04em; }
.marca span b { font-weight: 600; color: var(--purple); }
.marca:hover { color: var(--text); }

.menu { display: flex; gap: 4px; }
.menu a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.menu a:hover { color: var(--text); background: var(--surface); }
@media (max-width: 560px) { .menu a.opcional { display: none; } }

/* ---------- herói ---------- */
.heroi { position: relative; overflow: hidden; padding: 88px 0 96px; text-align: center; }
.heroi::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 120%;
  background:
    radial-gradient(closest-side, rgba(139, 92, 246, .30), transparent 70%) 30% 40% / 60% 80% no-repeat,
    radial-gradient(closest-side, rgba(90, 149, 243, .20), transparent 70%) 70% 30% / 50% 70% no-repeat;
  pointer-events: none;
}
.heroi .container { position: relative; }
.marca-grande { gap: clamp(12px, 2.4vw, 18px); margin-bottom: 6px; }
.marca-grande img { width: clamp(56px, 11vw, 80px); height: auto; }
.marca-grande span { font-size: clamp(38px, 8vw, 58px); }
.heroi h1 { font-size: clamp(22px, 4vw, 32px); line-height: 1.25; letter-spacing: -.01em; font-weight: 500; color: var(--muted); margin: 0 auto; text-wrap: balance; }
.gradiente { background: linear-gradient(90deg, var(--purple), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.botoes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font: 500 15px/1 Poppins, system-ui, sans-serif; text-decoration: none;
  background: var(--purple); color: #fff; border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
.botao:hover { background: #7C4DEB; color: #fff; }
.botao.secundario { background: transparent; color: var(--text); border-color: var(--border); }
.botao.secundario:hover { background: var(--surface); }
.botao.desativado { background: var(--surface-2); color: var(--muted); border-color: var(--border); cursor: default; }
.botao svg { width: 18px; height: 18px; flex: none; }

/* ---------- seções ---------- */
.secao { padding: 72px 0; border-top: 1px solid var(--border); scroll-margin-top: 68px; }
.secao h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 600; letter-spacing: -.02em; margin: 0 0 8px; }
.secao .intro { color: var(--muted); margin: 0 0 36px; max-width: 40em; }
.rotulo { display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--purple-light); margin-bottom: 10px; }

.app {
  display: grid; gap: 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
@media (min-width: 760px) { .app { padding: 36px; } }
.app-topo { display: flex; align-items: center; gap: 18px; }
.app-icone { width: 88px; height: 88px; display: block; flex: none; }
.app h3 { font-size: clamp(22px, 4vw, 28px); font-weight: 600; margin: 0; letter-spacing: -.01em; line-height: 1.2; }
.app p { color: var(--muted); margin: 0 0 18px; }
.app .botoes { justify-content: flex-start; }

.sobre p { color: var(--muted); max-width: 44em; margin: 0 0 14px; }
.sobre .assinatura { color: var(--text); font-size: 19px; font-weight: 500; margin-top: 28px; }
.sobre .assinatura b { font-weight: 500; color: var(--purple); }

.contato-cartao {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.contato-cartao p { margin: 0; color: var(--muted); }
.contato-cartao strong { display: block; color: var(--text); font-size: 18px; font-weight: 500; word-break: break-all; }

/* ---------- rodapé ---------- */
.rodape { border-top: 1px solid var(--border); padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
.rodape .container { display: grid; gap: 24px; }
@media (min-width: 760px) { .rodape .container { grid-template-columns: 1fr auto; align-items: start; } }
.rodape .marca img { width: 30px; height: 30px; }
.rodape .marca span { font-size: 18px; }
.rodape address { font-style: normal; margin-top: 12px; line-height: 1.7; }
.rodape nav { display: flex; flex-direction: column; gap: 6px; }
.rodape nav a { color: var(--muted); text-decoration: none; }
.rodape nav a:hover { color: var(--text); }
.rodape .copy { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 20px; }

/* ---------- páginas de texto (política) ---------- */
.documento { padding: 56px 0 80px; }
.documento .container { max-width: 760px; }
.documento h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 8px; }
.documento .data { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.documento h2 { font-size: 21px; font-weight: 600; margin: 40px 0 10px; letter-spacing: -.01em; }
.documento p, .documento li { color: #D3D1E6; }
.documento ul { padding-left: 22px; }
.documento li { margin-bottom: 8px; }
.documento strong { color: var(--text); font-weight: 600; }
.resumo {
  background: rgba(74, 222, 128, .07); border: 1px solid rgba(74, 222, 128, .28);
  border-radius: var(--radius); padding: 20px 22px; margin: 0 0 8px;
}
.resumo p { margin: 0; color: var(--text); }
.resumo strong { color: var(--green); }
.voltar { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 15px; margin-bottom: 28px; }

/* ---------- 404 ---------- */
.erro { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.erro h1 { font-size: clamp(64px, 14vw, 120px); font-weight: 600; margin: 0; line-height: 1; letter-spacing: -.04em; }
.erro p { color: var(--muted); margin: 12px 0 28px; }
