:root {
  --marinho: #022448;
  --azul: #114477;
  --azul-vivo: #0b64b4;
  --claro: #7fbcf2;
  --cinza: #5a5c5e;
  --cinza-claro: #919396;
  --prata: #c9cbce;
  --borda: #e1e3e6;
  --fundo: #ffffff;
  --fundo-suave: #f2f3f5;
  --noite: #061a3f;
  --degrade: linear-gradient(120deg, var(--azul), var(--azul-vivo));
  --degrade-cinza: linear-gradient(120deg, #4b4d50, #6d7074);
  --filete: linear-gradient(90deg, var(--azul-vivo), var(--cinza-claro));
  --sombra: 0 1px 2px rgb(2 36 72 / 6%), 0 14px 40px -12px rgb(2 36 72 / 18%);
  --raio: 1.5rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font: 1.0625rem/1.65 "Segoe UI Variable Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--cinza);
  background: var(--fundo);
}
img { max-width: 100%; height: auto; }
a { color: var(--azul-vivo); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--azul-vivo); outline-offset: 3px; }
h1, h2, h3 { color: var(--marinho); font-family: "Segoe UI Variable Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.25rem; margin-bottom: .5rem; letter-spacing: -0.015em; }

.caixa { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
section { padding-block: clamp(4rem, 9vw, 7.5rem); scroll-margin-top: 5.5rem; }
.suave { background: var(--fundo-suave); }
.centro { text-align: center; }
h2.centro { margin-bottom: 3.5rem; }
.sobretitulo { color: var(--cinza); font-weight: 700; font-size: .8125rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: .75rem; }
.pular { position: absolute; left: -999px; }
.pular:focus { left: 1rem; top: 1rem; background: var(--fundo); padding: .5rem 1rem; z-index: 4; }

/* barra que acompanha a rolagem da página */
.progresso { position: fixed; inset: 0 0 auto; height: 3px; z-index: 3; background: var(--filete); transform-origin: 0 50%; scale: 0 1; }

.topo { position: sticky; top: 0; z-index: 2; background: rgb(255 255 255 / 82%); backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid rgb(2 36 72 / 8%); }
.topo .caixa { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; padding-block: .625rem; width: min(1280px, 100% - 2.5rem); }
.marca { display: flex; align-items: center; gap: .75rem; margin-right: auto; text-decoration: none; line-height: 1.15; }
.marca img { width: 60px; height: 60px; }
.marca span { display: flex; flex-direction: column; }
.marca strong { color: var(--marinho); font-size: 1.625rem; letter-spacing: -0.03em; }
.marca strong b { color: var(--cinza); }
.marca small { color: var(--marinho); font-size: .6875rem; letter-spacing: .36em; text-transform: uppercase; }
.marca em { color: var(--cinza); font-size: .8125rem; font-style: normal; }
.menu { display: flex; flex-wrap: wrap; gap: 0 .25rem; list-style: none; }
.menu a { display: inline-block; padding: .625rem .875rem; border-radius: 2rem; color: var(--marinho); font-size: .9375rem; font-weight: 600; text-decoration: none; transition: background-color .2s, color .2s; }
.menu a:hover { background: #e8f1fb; color: var(--azul-vivo); }

.botao {
  display: inline-block; padding: .875rem 1.75rem; border: 1px solid transparent; border-radius: 3rem;
  background: var(--degrade); background-origin: border-box; color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 28px -8px rgb(11 100 180 / 60%); transition: translate .2s, box-shadow .2s;
}
.botao:hover { translate: 0 -2px; box-shadow: 0 16px 34px -8px rgb(11 100 180 / 70%); }
.botao-topo { padding: .625rem 1.375rem; font-size: .9375rem; }
.botao-contorno { background: transparent; border-color: #b9c9dc; color: var(--marinho); box-shadow: none; }
.botao-claro { background: #fff; color: var(--marinho); }
.acoes { display: flex; flex-wrap: wrap; gap: .875rem; }

.animada { position: relative; overflow: hidden; }
.animada > .caixa { position: relative; }
.rede { position: absolute; inset: 0; width: 100%; height: 100%; }

.destaque { display: flex; align-items: center; min-height: min(46rem, calc(100svh - 5rem)); padding-block: 4rem 4.5rem; color: #cddcf0;
  background: radial-gradient(60rem 36rem at 22% 40%, #14479c 0%, transparent 65%), radial-gradient(40rem 30rem at 90% 10%, #4b5360 0%, transparent 60%), linear-gradient(160deg, var(--noite), #020a1d); }
.destaque .caixa { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr 1.1fr; }
.destaque h1 { color: #fff; }
.destaque h1 em { font-style: normal; background: linear-gradient(90deg, var(--prata), #fff, var(--cinza-claro), var(--prata)) 0 0 / 200% 100%; background-clip: text; color: transparent; animation: correr 6s linear infinite; }
.subtitulo { display: inline-flex; align-items: center; gap: .625rem; margin-bottom: 1.5rem; padding: .375rem 1rem; border: 1px solid rgb(120 200 255 / 35%); border-radius: 3rem; background: rgb(255 255 255 / 7%); color: #dff3ff; font-size: .875rem; font-weight: 600; backdrop-filter: blur(6px); }
.subtitulo::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--claro); box-shadow: 0 0 0 4px rgb(127 188 242 / 22%), 0 0 12px var(--claro); }
.chamada { margin-block: 1.5rem 2.25rem; font-size: 1.1875rem; max-width: 33rem; }
.destaque .botao-contorno { color: #fff; border-color: rgb(255 255 255 / 40%); background: rgb(255 255 255 / 6%); }
.destaque a:focus-visible, .escura a:focus-visible { outline-color: #fff; }
.nucleo { width: 100%; aspect-ratio: 1; max-width: 540px; justify-self: center; }
.pausar { position: absolute; right: 1.25rem; bottom: 1rem; z-index: 1; min-height: 2.75rem; padding: 0 1rem; font: inherit; font-size: .8125rem; color: #dbe5f1; background: rgb(3 13 36 / 60%); border: 1px solid rgb(255 255 255 / 25%); border-radius: 2rem; cursor: pointer; backdrop-filter: blur(6px); }
.pausar:focus-visible { outline-color: #fff; }

.grade { display: grid; gap: 1.5rem; list-style: none; }
.cartao { position: relative; overflow: hidden; padding: 2.25rem; border: 1px solid var(--borda); border-radius: var(--raio); background: var(--fundo); box-shadow: var(--sombra); transition: translate .25s, border-color .25s; }
.cartao:hover { translate: 0 -6px; border-color: #9fc9ef; }
/* brilho que segue o cursor; a posição vem de efeitos.js */
.cartao::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(18rem circle at var(--x, 50%) var(--y, 0%), rgb(11 100 180 / 12%), transparent 70%); }
.cartao:hover::after { opacity: 1; }
.icone { width: 4rem; height: 4rem; padding: .875rem; margin-bottom: 1.5rem; border-radius: 1.125rem; background: var(--degrade); fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; box-shadow: 0 12px 24px -10px rgb(11 100 180 / 70%); }

/* os três serviços lado a lado */
#servicos .grade { grid-template-columns: repeat(3, 1fr); }
.marcados { list-style: none; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--borda); color: var(--marinho); font-weight: 600; font-size: .9375rem; }
.app-itens li, .marcados li { position: relative; padding-block: .25rem; padding-left: 1.5rem; }
.app-itens li::before, .marcados li::before { content: ""; position: absolute; left: .25rem; top: .7rem; width: .55rem; height: .55rem; border-radius: 2px; background: var(--cor-forte, var(--azul-vivo)); }

.duas { display: grid; gap: 3.5rem; align-items: center; grid-template-columns: 1fr 1fr; }
.lista { list-style: none; display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.lista li { padding: 1.5rem; border: 1px solid var(--borda); border-radius: 1.25rem; background: var(--fundo); box-shadow: var(--sombra); color: var(--cinza); font-size: .9375rem; line-height: 1.45; }
.lista strong { display: block; margin-bottom: .25rem; color: var(--marinho); font-size: 1.0625rem; }
.lista li::before { content: ""; display: block; width: 2.25rem; height: 2.25rem; margin-bottom: 1rem; border-radius: .75rem; background: var(--degrade); }
.lista li:nth-child(even) { translate: 0 1.5rem; }

/* etapas como linha do tempo */
.passos { position: relative; display: grid; gap: 1.5rem; grid-template-columns: repeat(4, 1fr); list-style: none; counter-reset: passo; text-align: center; }
.passos::before { content: ""; position: absolute; top: 2rem; left: 12%; right: 12%; height: 2px; background: var(--filete); }
.passos li { position: relative; counter-increment: passo; }
.passos li::before { content: "0" counter(passo); display: grid; place-items: center; width: 4rem; height: 4rem; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--degrade); color: #fff; font-weight: 800; box-shadow: 0 0 0 8px var(--fundo), 0 12px 26px -8px rgb(11 100 180 / 70%); }

.grade > li:nth-child(2) .icone, .lista li:nth-child(2)::before, .lista li:nth-child(3)::before,
.passos li:nth-child(even)::before { background: var(--degrade-cinza); box-shadow: 0 12px 24px -10px rgb(51 53 56 / 70%); }

.escura { background: radial-gradient(60rem 30rem at 50% 0%, #14479c, transparent 70%), linear-gradient(180deg, var(--noite), #020a1d); }
.escura h2 { color: #fff; }
.escura .sobretitulo { color: var(--prata); }

.apps { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); list-style: none; }
.app { display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgb(255 255 255 / 14%); border-radius: 1.75rem; background: var(--fundo); box-shadow: 0 24px 55px -18px rgb(0 0 0 / 65%); transition: translate .25s, box-shadow .25s; }
.app:hover { translate: 0 -10px; box-shadow: 0 0 0 2px var(--cor-brilho), 0 30px 70px -18px var(--cor-brilho); }
.app-capa { display: grid; place-items: center; padding: 2.5rem 1rem; background: radial-gradient(14rem 10rem at 50% 50%, rgb(255 255 255 / 18%), transparent 70%), var(--capa); }
.app-simbolo { display: grid; place-items: center; width: 8.5rem; height: 8.5rem; border-radius: 2.25rem; background: #fff; box-shadow: 0 0 0 8px rgb(255 255 255 / 12%), 0 0 50px var(--cor-brilho); transition: scale .25s; }
.app:hover .app-simbolo { scale: 1.07; }
.app-simbolo img { width: 6rem; height: 6rem; object-fit: contain; }
.app-corpo { display: flex; flex: 1; flex-direction: column; padding: 1.75rem 2rem 2rem; }
.app-area { align-self: flex-start; margin-bottom: .875rem; padding: .25rem .875rem; border-radius: 2rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cor-forte); background: var(--cor-suave); }
.app h3 { font-size: 1.75rem; }
.app-itens { list-style: none; margin-block: 1.25rem 1.75rem; color: var(--marinho); font-weight: 600; font-size: .9375rem; }
.app-botao { margin-top: auto; padding: .875rem 1rem; border-radius: 3rem; text-align: center; font-weight: 700; text-decoration: none; color: #fff; background: var(--cor-forte); }
.app-botao:hover { filter: brightness(1.2); }
.escura .app-botao:focus-visible { outline-color: var(--cor-forte); }
.app-cantai { --capa: linear-gradient(135deg, #06254f, #0d4c8c); --cor-forte: #0b4a86; --cor-suave: #fbf0d8; --cor-brilho: #e0a93e; }
.app-aplica { --capa: linear-gradient(135deg, #1546e0, #0ab8e6); --cor-forte: #1546e0; --cor-suave: #e3f6fd; --cor-brilho: #22d3f5; }
.app-terys { --capa: linear-gradient(135deg, #170b3b, #4b1fa6); --cor-forte: #4b1fa6; --cor-suave: #efe8fd; --cor-brilho: #ff8a2b; }

/* contato como painel flutuante */
.faixa { text-align: center; }
.faixa > .caixa { padding: clamp(2.5rem, 7vw, 4.5rem) 1.5rem; border-radius: 2.25rem; color: #dbe5f1; box-shadow: 0 30px 70px -28px rgb(2 36 72 / 70%);
  background: radial-gradient(30rem 18rem at 15% 0%, #1a73d1, transparent 70%), radial-gradient(26rem 16rem at 90% 100%, #6d7074, transparent 70%), var(--marinho); }
.faixa h2 { color: #fff; }
.faixa a { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.faixa .botao-claro { color: var(--marinho); }
.faixa a:focus-visible { outline-color: #fff; }
.faixa-acao { margin-block: 1.75rem; }

.rodape { background: #333538; color: var(--prata); border-top: 4px solid var(--azul-vivo); padding-block: 3.5rem; font-size: .9375rem; }
.rodape a { color: #fff; display: inline-block; padding-block: .375rem; overflow-wrap: anywhere; }
.rodape a:focus-visible { outline-color: #fff; }
.colunas { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.rodape-titulo { color: #fff; font-weight: 700; margin-bottom: .5rem; }

/* páginas de política */
.texto { max-width: 48rem; }
.texto h2 { font-size: 1.375rem; margin-block: 2rem .75rem; }
.texto p, .texto ul { margin-bottom: 1rem; }
.texto ul { padding-left: 1.25rem; }
.tabela { overflow-x: auto; margin-bottom: 1rem; }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
th, td { border: 1px solid var(--borda); padding: .625rem .75rem; text-align: left; vertical-align: top; }
th { background: var(--fundo-suave); color: var(--marinho); }

.janela { width: min(34rem, 100% - 2rem); max-height: calc(100% - 2rem); margin: auto; padding: 2rem; border: 0; border-radius: var(--raio); color: var(--cinza); box-shadow: 0 30px 80px rgb(2 36 72 / 45%); }
.janela::backdrop { background: rgb(2 14 40 / 65%); backdrop-filter: blur(6px); }
.janela h2 { font-size: 1.75rem; }
.janela label { display: block; margin: 0 0 .375rem; color: var(--marinho); font-weight: 600; }
.janela input, .janela textarea { width: 100%; margin-bottom: 1.125rem; padding: .75rem 1rem; font: inherit; color: var(--marinho); border: 1px solid #8a96a8; border-radius: .875rem; }
.janela textarea { resize: vertical; }
.janela :is(input, textarea):focus-visible { outline: 3px solid var(--azul-vivo); outline-offset: 2px; }
.ajuda { font-size: .875rem; margin-bottom: 1.25rem; }

/* efeitos ligados à rolagem; navegador sem suporte mostra tudo normalmente */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .progresso { animation: avancar linear both; animation-timeline: scroll(); }
    .grade > li, .passos > li, .apps > li, .duas > div { animation: surgir linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes avancar { to { scale: 1 1; } }
@keyframes surgir { from { opacity: 0; transform: translateY(2.5rem); } to { opacity: 1; transform: none; } }
@keyframes correr { to { background-position: -200% 0; } }

@media (max-width: 900px) {
  .destaque .caixa, .duas, #servicos .grade { grid-template-columns: 1fr; }
  .passos { grid-template-columns: 1fr 1fr; }
  .passos::before { display: none; }
  .nucleo { max-width: 340px; }
}
@media (max-width: 760px) {
  .topo { position: static; }
  /* menu em uma linha que desliza; o título vem antes do globo e o botão já está na abertura */
  .menu { flex-wrap: nowrap; width: 100%; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .menu a { padding-inline: .625rem; }
  .botao-topo { display: none; }
  .topo nav { width: 100%; }
  .destaque { min-height: 0; padding-top: 2.5rem; }
  .destaque .nucleo { order: 1; max-width: 300px; }
}
@media (max-width: 520px) {
  .lista, .passos { grid-template-columns: 1fr; }
  .lista li:nth-child(even) { translate: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .botao, .cartao, .app, .app-simbolo, .menu a { transition: none; }
  .botao:hover, .cartao:hover, .app:hover { translate: none; }
  .destaque h1 em { animation: none; }
}
