:root {
  --azul: #104aad;
  --azul-escuro: #0b3478;
  --azul-medio: #3c82e6;
  --azul-claro: #e1ecfc;
  --azul-fundo: #f4f8ff;
  --vermelho: #d62839;
  --branco: #ffffff;
  --texto: #1c2740;
  --texto-suave: #55627a;
  --raio: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--texto);
  background: var(--branco);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Botões */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  background: var(--azul); color: var(--branco); font-weight: 600;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--azul-escuro); transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; }
.btn-claro { background: var(--azul-claro); color: var(--azul); }
.btn-claro:hover { background: #cddffa; }
.btn-branco { background: var(--branco); color: var(--azul); }
.btn-branco:hover { background: var(--azul-claro); }

.btn-verde { background: #25d366; color: #0b3d1f; }
.btn-verde:hover { background: #1ebe5b; }
.btn-wa { display: inline-flex; align-items: center; gap: 8px; }
.ico-wa { width: 1.2em; height: 1.2em; flex: none; }
.cta .tel { margin: 18px 0 0; opacity: .95; user-select: all; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 10; background: var(--azul-escuro); color: var(--branco); box-shadow: 0 4px 18px rgba(11,52,120,.25); }
.topo-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; }
.topo .logo img { height: 46px; width: auto; }
.menu { display: flex; gap: 24px; align-items: center; font-weight: 500; }
.menu a:not(.btn) { color: #dbe6fa; position: relative; }
.menu a:not(.btn):hover, .menu a:not(.btn):focus-visible { color: var(--branco); }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--vermelho); transform: scaleX(0); transition: transform .2s; }
.menu a:not(.btn):hover::after { transform: scaleX(1); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--azul-fundo), var(--branco)); padding: 72px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.selo { display: inline-block; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--azul); background: var(--azul-claro); padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; color: var(--azul-escuro); margin-bottom: 18px; }
h1 em { font-style: normal; color: var(--vermelho); }
.lead { font-size: 1.15rem; color: var(--texto-suave); margin-bottom: 28px; max-width: 54ch; }
.acoes { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img { min-width: 0; }

/* Faixa de números */
.faixa { background: var(--azul); color: var(--branco); padding: 28px 0; }
.faixa-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }
.faixa strong { display: block; font-size: 1.6rem; }
.faixa span { opacity: .85; }

/* Seções */
.secao { padding: 88px 0; }
.secao h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--azul-escuro); text-align: center; }
.sub { text-align: center; color: var(--texto-suave); margin: 8px auto 48px; max-width: 60ch; }
.secao-azul { background: var(--azul-fundo); }

/* Cards de serviços */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--branco); border: 1px solid var(--azul-claro); border-radius: var(--raio);
  padding: 28px 22px; border-top: 4px solid var(--azul);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(16,74,173,.12); }
.card img { margin-bottom: 12px; }
.card h3 { font-size: 1.5rem; color: var(--azul); }
.sigla { font-size: .9rem; color: var(--texto-suave); margin-bottom: 14px; min-height: 2.9em; }
.card ul { list-style: none; display: grid; gap: 8px; font-size: .95rem; }
.card li { padding-left: 22px; position: relative; }
.card li::before { content: "✓"; position: absolute; left: 0; color: var(--azul-medio); font-weight: 700; }

/* Carrossel */
.carrossel { position: relative; max-width: 960px; margin-inline: auto; overflow: hidden; border-radius: 18px; box-shadow: 0 20px 50px rgba(16,74,173,.15); background: var(--branco); }
.trilho { display: flex; transition: transform .5s ease; }
.slide { min-width: 100%; }
.slide img { width: 100%; max-width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: var(--azul-fundo); }
.slide figcaption { padding: 14px 20px 44px; text-align: center; font-weight: 600; color: var(--azul-escuro); }
.seta {
  position: absolute; top: 42%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--azul); font-size: 2rem; line-height: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.seta:hover { background: var(--azul); color: var(--branco); }
.seta-ant { left: 14px; }
.seta-prox { right: 14px; }
.pontos { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.pontos button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #c3d4f2; cursor: pointer; padding: 0; transition: width .3s; }
.pontos button[aria-selected="true"] { background: var(--azul); width: 28px; border-radius: 999px; }

/* Passos */
.passos { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; counter-reset: p; }
.passos li { position: relative; text-align: center; padding: 8px; --n: 0; }
.passos li:nth-child(2) { --n: 1; }
.passos li:nth-child(3) { --n: 2; }
.passos li:nth-child(4) { --n: 3; }
.passos span { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--azul-claro); color: var(--azul); font-weight: 800; font-size: 1.3rem; margin-bottom: 12px; animation: passo-ativo 8s ease-in-out infinite; animation-delay: calc(var(--n) * 2s); }
.passos h3 { animation: passo-titulo 8s ease-in-out infinite; animation-delay: calc(var(--n) * 2s); }
/* Linha entre os números: trilho azul claro e o vermelho que corre até o próximo passo */
.passos li:not(:last-child)::before,
.passos li:not(:last-child)::after { content: ""; position: absolute; top: 33px; left: calc(50% + 34px); right: calc(-50% + 14px); height: 3px; border-radius: 3px; }
.passos li:not(:last-child)::before { background: var(--azul-claro); }
.passos li:not(:last-child)::after { background: var(--vermelho); transform-origin: left; transform: scaleX(0); animation: passo-linha 8s ease-in-out infinite; animation-delay: calc(var(--n) * 2s); }
@keyframes passo-ativo {
  0%, 22% { background: var(--vermelho); color: var(--branco); transform: scale(1.14); box-shadow: 0 0 0 8px rgba(214,40,57,.14); }
  30%, 100% { background: var(--azul-claro); color: var(--azul); transform: scale(1); box-shadow: 0 0 0 0 rgba(214,40,57,0); }
}
@keyframes passo-titulo { 0%, 22% { color: var(--vermelho); } 30%, 100% { color: var(--azul-escuro); } }
@keyframes passo-linha {
  0%, 10% { transform: scaleX(0); opacity: 1; }
  25% { transform: scaleX(1); opacity: 1; }
  35%, 100% { transform: scaleX(1); opacity: 0; }
}
@media (max-width: 960px) { .passos li::before, .passos li::after { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .passos span, .passos h3 { animation: none; }
  .passos li:last-child span { background: var(--vermelho); color: var(--branco); }
}
.passos h3 { color: var(--azul-escuro); margin-bottom: 4px; }
.passos p { color: var(--texto-suave); font-size: .95rem; }

/* CTA */
.cta { background: linear-gradient(135deg, var(--azul), var(--azul-escuro)); color: var(--branco); padding: 72px 0; text-align: center; }
.cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.cta p { opacity: .9; margin-bottom: 26px; }

/* Rodapé */
.rodape { background: var(--azul-escuro); color: #c9d6ee; padding: 24px 0; font-size: .9rem; }
.rodape-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rodape .logo img { height: 40px; width: auto; }

/* Clientes */
.clientes { border-top: 1px solid var(--azul-claro); }
.rotulo { display: flex; align-items: center; gap: 12px; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--azul-medio); margin-bottom: 8px; }
.rotulo::before { content: ""; width: 28px; height: 2px; background: var(--vermelho); }
.clientes h2 { text-align: left; }
.sub-esq { color: var(--texto-suave); margin: 8px 0 32px; max-width: 60ch; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-trilho { list-style: none; display: flex; gap: 20px; width: max-content; animation: rolar 40s linear infinite; }
.marquee:hover .marquee-trilho, .marquee-trilho.pausado { animation-play-state: paused; }
.logo-card {
  flex: 0 0 auto; width: 210px; height: 128px; display: grid; place-items: center; padding: 18px;
  background: var(--branco); border: 1px solid var(--azul-claro); border-radius: 18px;
  box-shadow: 0 6px 18px rgba(16,74,173,.08);
}
.logo-card img { max-height: 92px; max-width: 100%; width: auto; object-fit: contain; }
@keyframes rolar { to { transform: translateX(calc(-50% - 10px)); } }
.btn-pausa {
  margin-top: 24px; padding: 10px 18px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .9rem;
  background: var(--branco); color: var(--azul); border: 1px solid #c3d4f2;
}
.btn-pausa:hover, .btn-pausa:focus-visible { border-color: var(--azul); outline: none; box-shadow: 0 0 0 3px var(--azul-claro); }
@media (max-width: 600px) { .logo-card { width: 160px; height: 100px; } }
@media (prefers-reduced-motion: reduce) { .marquee-trilho { animation-play-state: paused; } }

#telas .carrossel { max-width: 624px; }

/* Carrossel da abertura */
.carrossel-hero { max-width: 560px; border-radius: 24px; }
.slide-hero { padding: 20px 20px 48px; display: flex; flex-direction: column; justify-content: center; }
.carrossel-hero .seta { top: 50%; width: 38px; height: 38px; font-size: 1.6rem; opacity: 0; transition: opacity .2s; }
.carrossel-hero:hover .seta, .carrossel-hero .seta:focus-visible { opacity: 1; }
.fluxo { width: 100%; height: auto; display: block; }
.fluxo .rota { fill: none; stroke: var(--azul-claro); stroke-width: 4; stroke-linecap: round; }
.fluxo .pacote { fill: var(--azul-medio); opacity: 0; }
.fluxo .no rect { fill: var(--branco); stroke: var(--azul); stroke-width: 2.5; animation: brilho 2.4s ease-in-out infinite; animation-delay: var(--d); }
.fluxo .no-ico circle { fill: var(--azul-claro); }
.fluxo .no-ico path { fill: none; stroke: var(--azul); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fluxo .no-titulo { font: 800 19px "Segoe UI", system-ui, sans-serif; fill: var(--azul); }
.fluxo .no-sub { font: 500 11px "Segoe UI", system-ui, sans-serif; fill: var(--texto-suave); }
.fluxo .hub-fundo { fill: var(--azul); }
.fluxo .hub-titulo { font: 800 26px "Segoe UI", system-ui, sans-serif; fill: var(--branco); text-anchor: middle; }
.fluxo .hub-sub { font: 500 12px "Segoe UI", system-ui, sans-serif; fill: #cfe0fb; text-anchor: middle; }
.fluxo .hub-mais circle { fill: var(--vermelho); }
.fluxo .hub-mais path { stroke: var(--branco); stroke-width: 2.5; stroke-linecap: round; }
.fluxo .orbita { fill: none; stroke: var(--azul-medio); stroke-width: 2; stroke-dasharray: 4 10; stroke-linecap: round; transform-origin: 0 0; animation: girar 14s linear infinite; }
.fluxo .onda { fill: var(--azul-medio); transform-origin: 0 0; animation: onda 2.4s ease-out infinite; }
.fluxo .onda2 { animation-delay: 1.2s; }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes onda { from { transform: scale(1); opacity: .35; } to { transform: scale(1.45); opacity: 0; } }
@keyframes brilho { 0%, 100% { stroke: var(--azul); } 10% { stroke: var(--azul-medio); stroke-width: 4; } 30% { stroke: var(--azul); stroke-width: 2.5; } }

/* Gráfico de faturamento */
.grafico { gap: 4px; }
.graf-titulo { font-weight: 800; font-size: 1.2rem; color: var(--azul-escuro); }
.graf-sub { font-size: .85rem; color: var(--texto-suave); }
.graf-area { position: relative; height: 250px; margin: 22px 0 30px 40px; }
.grade { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.grade span { height: 0; border-top: 1px dashed #d3e0f5; font-size: .7rem; line-height: 0; text-indent: -40px; color: var(--texto-suave); font-variant-numeric: tabular-nums; }
.barras { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; padding-inline: 6px; }
.barra { position: relative; height: var(--h); background: linear-gradient(180deg, var(--azul-medio), var(--azul)); border-radius: 8px 8px 2px 2px; transform-origin: bottom; transform: scaleY(0); }
.barra-max { background: linear-gradient(180deg, var(--azul), var(--azul-escuro)); }
.slide.ativo .barra { animation: crescer .9s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * .12s); }
.barra .valor { position: absolute; bottom: 100%; left: 50%; translate: -50% -6px; font-size: .72rem; font-weight: 700; color: var(--azul-escuro); white-space: nowrap; font-variant-numeric: tabular-nums; }
.barra .ano { position: absolute; top: 100%; left: 50%; translate: -50% 6px; font-size: .75rem; color: var(--texto-suave); font-variant-numeric: tabular-nums; }
.barra-max .valor { color: var(--vermelho); }
.graf-total { font-size: .9rem; color: var(--texto-suave); }
.graf-total strong { color: var(--azul-escuro); }
@keyframes crescer { to { transform: scaleY(1); } }
@media (max-width: 600px) { .barras { gap: 5px; } .barra .valor { font-size: .6rem; } .graf-area { height: 200px; } }
@media (prefers-reduced-motion: reduce) {
  .fluxo .orbita, .fluxo .onda, .fluxo .no rect { animation: none; }
  .fluxo .pacote { display: none; }
  .barra { transform: none; }
}

/* Responsivo */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .passos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .menu a:not(.btn) { display: none; }
  .cards, .passos { grid-template-columns: 1fr; }
  .faixa-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .secao { padding: 64px 0; }
  .seta { width: 36px; height: 36px; font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
