/* Ajustes e efeitos que o Tailwind CDN não cobre. */
:root { --ease: cubic-bezier(0.22, 1, 0.36, 1); }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }

::selection { background: #7ED957; color: #0B1F3A; }
:focus-visible { outline: 2px solid #4CAF2B; outline-offset: 3px; }
[hidden] { display: none !important; }

/* Grade fina usada como textura nas seções escuras */
.grid-lines {
  background-image: linear-gradient(to right, rgba(197, 208, 220, 0.05) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
}

/* Grão de filme por cima das seções escuras */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Aurora: canvas em baixa resolução, desfocado pela GPU */
.aurora { position: absolute; left: -10%; top: -10%; width: 120%; height: 120%; filter: blur(46px) saturate(1.15); pointer-events: none; }

/* Cabeçalho: ganha vidro ao rolar, some ao descer e volta ao subir */
#site-header { transition: transform .6s var(--ease), background-color .4s, border-color .4s; border-bottom: 1px solid transparent; }
#site-header.is-scrolled { background: rgba(11, 31, 58, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: rgba(197, 208, 220, .08); }
#site-header.is-hidden { transform: translateY(-100%); }

/* Linha que cresce no hover dos links */
.link-underline { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.link-underline:hover, .link-underline[aria-current="page"] { background-size: 100% 1px; }

/* Entrada suave dos blocos */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* Títulos que sobem palavra por palavra */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .14em 0; margin: 0 -.08em -.14em 0; }
.wi { display: inline-block; transform: translateY(110%) rotate(5deg); transform-origin: left bottom; transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--d, 0ms)); }
.is-in .wi { transform: none; }

/* Texto que acende conforme a rolagem */
.hl-word { opacity: .13; transition: opacity .4s ease; }
.hl-word.on { opacity: 1; }

/* Faixa infinita */
.marquee { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee.rev { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }
.text-outline { color: transparent; -webkit-text-stroke: 1px #5E7189; }
.text-outline-light { color: transparent; -webkit-text-stroke: 1px rgba(126, 217, 87, .55); }

/* Selo giratório */
.spin { animation: spin 20s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Indicador de rolagem */
.scroll-cue { position: relative; overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: #7ED957; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* Cursor próprio (só com mouse) */
#cursor { position: fixed; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #FFFFFF; pointer-events: none; z-index: 100; mix-blend-mode: difference; opacity: 0; transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), opacity .3s; }
#cursor.on { opacity: 1; }
#cursor.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; }

/* Botões magnéticos */
[data-magnetic] { transition: transform .5s var(--ease), background-color .3s, color .3s, border-color .3s; will-change: transform; }

/* Imagem revelada por cortina */
.clip-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.6s var(--ease); }
.clip-reveal.is-in { clip-path: inset(0 0 0 0); }

/* Luz que segue o mouse nos cards */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s; pointer-events: none;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), rgba(126, 217, 87, .16), transparent 60%); }
.spot:hover::before { opacity: 1; }

/* Linha que se desenha (vertical no celular, horizontal no desktop) */
.draw { transform: scaleY(var(--p, 0)); transform-origin: top; }
@media (min-width: 768px) { .draw { transform: scaleX(var(--p, 0)); transform-origin: left; } }
.step-dot { transition: background-color .5s, transform .6s var(--ease), box-shadow .6s; }
.step.on .step-dot { background: #7ED957; transform: rotate(45deg) scale(1.25); box-shadow: 0 0 0 8px rgba(126, 217, 87, .12); }
.step .step-body { opacity: .35; transition: opacity .6s; }
.step.on .step-body { opacity: 1; }

/* Índice de serviços */
.svc-btn .svc-title { transition: color .4s, transform .6s var(--ease); }
.svc-btn .svc-arrow { transition: transform .6s var(--ease), opacity .4s; opacity: 0; transform: translateX(-12px); }
.svc-item { position: relative; }
.svc-item::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: #0B1F3A; transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.svc-item.active::after { transform: scaleX(1); }
.svc-item.active .svc-title { color: #0B1F3A; transform: translateX(10px); }
.svc-item.active .svc-arrow { opacity: 1; transform: none; }
.svc-item:not(.active) .svc-title { color: #C5D0DC; }
.svc-item:not(.active) .svc-btn:hover .svc-title { color: #5E7189; }
.panel-swap { animation: swap .7s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* Filtro de cases com marcador deslizante */
.filter-ind { transition: transform .6s var(--ease), width .6s var(--ease); }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .wi, .clip-reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .marquee, .spin, .scroll-cue::after, .panel-swap { animation: none !important; }
  .hl-word { opacity: 1; }
}

/* Marca: títulos em sans bold e destaque em degradê verde para teal */
.font-display { font-weight: 700; }
.text-grad, .text-grad .wi { background: linear-gradient(100deg, #8BE05E 0%, #4CAF2B 45%, #19B3A0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-grad-dark, .text-grad-dark .wi { background: linear-gradient(100deg, #3E9A22 0%, #0E9384 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-a { display: inline-block; height: .74em; width: auto; margin: 0 .02em; vertical-align: baseline; }

/* Versão sóbria: sem cursor próprio, aurora mais calma, destaques sem itálico */
#cursor { display: none !important; }
em.text-grad, em.text-grad-dark { font-style: italic; padding-right: .06em; }
.aurora { filter: blur(56px) saturate(.9); }
.wi { transform: translateY(100%); transition-duration: .9s; transition-delay: calc(var(--i) * 35ms + var(--d, 0ms)); }
.reveal { transform: translateY(14px); }

/* Setores: cartões-link em azul da marca */
.sector { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; height: 100%; padding: 1.25rem 1.25rem 1.1rem; border-radius: .875rem; background: #FFFFFF; border: 1px solid #D6E0EA; color: #0B1F3A; transition: border-color .3s, box-shadow .4s, transform .4s var(--ease), background-color .3s; }
.sector-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #E8EFF6; transition: background-color .3s; }
.sector-ico svg { width: 22px; height: 22px; fill: none; stroke: #163A5F; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.sector-name { font-weight: 600; font-size: .9375rem; line-height: 1.25; }
.sector-go { position: absolute; right: 1rem; top: 1.1rem; color: #5E7189; font-size: .95rem; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--ease); }
.sector:hover, .sector:focus-visible { border-color: #163A5F; box-shadow: 0 14px 34px -20px rgba(11, 31, 58, .45); transform: translateY(-3px); }
.sector:hover .sector-ico, .sector:focus-visible .sector-ico { background: #0B1F3A; }
.sector:hover .sector-ico svg, .sector:focus-visible .sector-ico svg { stroke: #7ED957; }
.sector:hover .sector-go, .sector:focus-visible .sector-go { opacity: 1; transform: none; }

/* Contador tipo odômetro */
.odo { display: inline-block; height: 1em; line-height: 1; overflow: hidden; vertical-align: top; }
.odo-col { display: block; transform: translateY(0); transition: transform 2.4s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--od, 0ms); }
.odo-col > span { display: block; height: 1em; line-height: 1; }
.stat-bar { display: block; height: 2px; margin-top: 1rem; width: 2.5rem; background: #4CAF2B; transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.16, 1, .3, 1) .35s; }
.is-in .stat-bar { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .odo-col, .stat-bar { transition: none; } .stat-bar { transform: none; } }

/* Linha do tempo: brilho que percorre o trilho e divisórias que se desenham */
.rail-glow { position: absolute; left: 0; top: 5px; height: 1px; width: calc(var(--p, 0) * 100%); overflow: hidden; pointer-events: none; }
.rail-pulse { position: absolute; top: -1px; left: -15%; width: 15%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #C8FFB0 60%, #FFFFFF); box-shadow: 0 0 12px 2px rgba(126, 217, 87, .7);
  animation: rail-run 3.2s cubic-bezier(.45, 0, .2, 1) infinite; }
@keyframes rail-run { to { left: 100%; } }
.draw { transition: transform .15s linear; box-shadow: 0 0 10px rgba(126, 217, 87, .45); }
.step-line { display: block; position: relative; height: 1px; background: #2A4D72; }
.step-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #7ED957, #19B3A0); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) .25s; }
.step.on .step-line::after { transform: scaleX(1); }
.step.on .step-dot { animation: dot-ping 2.4s ease-out .3s infinite; }
@keyframes dot-ping { 0% { box-shadow: 0 0 0 0 rgba(126, 217, 87, .45); } 70%, 100% { box-shadow: 0 0 0 14px rgba(126, 217, 87, 0); } }
@media (prefers-reduced-motion: reduce) { .rail-pulse, .step.on .step-dot { animation: none; } .rail-pulse { display: none; } }

/* Hero: zoom de entrada, reflexo de luz nos painéis e cartão flutuante */
.hero-zoom { animation: hero-zoom 2.6s var(--ease) both; }
@keyframes hero-zoom { from { transform: scale(1.14); } to { transform: scale(1); } }
.sheen { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 244, 214, .28) 49%, rgba(255, 255, 255, .12) 53%, transparent 64%);
  transform: translateX(-120%); animation: sheen 8s ease-in-out 1.8s infinite; }
@keyframes sheen { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
.hero-chip.is-in { animation: float 7s ease-in-out 1.5s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Barra de progresso de leitura no cabeçalho */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, #4CAF2B, #19B3A0); transform: scaleX(var(--sp, 0)); transform-origin: left; }

@media (prefers-reduced-motion: reduce) { .hero-zoom, .sheen, .hero-chip.is-in { animation: none !important; } .sheen { display: none; } }

/* ===== Vida no celular: efeitos guiados pela rolagem e pelo toque ===== */
a, button { -webkit-tap-highlight-color: transparent; }
a.rounded-full:active, button.rounded-full:active { transform: scale(.97); }

/* Pilares: a linha verde se desenha ao aparecer */
.pillar { position: relative; border-top: 2px solid #DCE3EA; }
.pillar::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: linear-gradient(90deg, #4CAF2B, #19B3A0); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); transition-delay: calc(var(--d, 0ms) + 200ms); }
.pillar.is-in::before { transform: scaleX(1); }

/* Metodologia: trilho que se preenche e etapas que acendem */
.vline-track, .vline-fill { position: absolute; left: 19.5px; top: 20px; bottom: 20px; width: 1px; background: #DCE3EA; }
.vline-fill { background: linear-gradient(180deg, #4CAF2B, #19B3A0); transform: scaleY(var(--p, 0)); transform-origin: top; }
@media (min-width: 1024px) {
  .vline-track, .vline-fill { left: 20px; right: 20px; top: 20px; bottom: auto; width: auto; height: 1px; }
  .vline-fill { background: linear-gradient(90deg, #4CAF2B, #19B3A0); transform: scaleX(var(--p, 0)); transform-origin: left; }
}
.vdot { z-index: 1; transition: background-color .5s, color .5s, transform .6s var(--ease); }
[data-vstep].on .vdot { background: #4CAF2B; color: #0B1F3A; transform: scale(1.08); animation: dot-ping 2.4s ease-out .2s infinite; }

/* Toque: o que é hover no desktop acontece quando o item passa pelo centro da tela */
@media (hover: none) {
  .spot.in-view { border-color: rgba(126, 217, 87, .55); box-shadow: 0 0 0 1px rgba(126, 217, 87, .25), 0 18px 40px -24px rgba(126, 217, 87, .55); }
  .spot.in-view::before { opacity: 1; animation: spot-roam 4s ease-in-out infinite alternate; }
  @keyframes spot-roam { from { --mx: 15%; --my: 20%; background-position: 0 0; } to { background-position: 0 0; } }
  .spot::before { background: radial-gradient(260px circle at 30% 20%, rgba(126, 217, 87, .18), transparent 65%); }
  .spot { transition: border-color .5s, box-shadow .6s; }

  .sector.in-view { border-color: #163A5F; box-shadow: 0 14px 34px -20px rgba(11, 31, 58, .45); transform: translateY(-3px); }
  .sector.in-view .sector-ico { background: #0B1F3A; }
  .sector.in-view .sector-ico svg { stroke: #7ED957; }
  .sector.in-view .sector-go { opacity: 1; transform: none; }
}

/* Cartões de serviço e setores entram em cascata com leve escala */
.spot.reveal, li.reveal > .sector { transition: opacity 1s var(--ease), transform 1s var(--ease), border-color .5s, box-shadow .6s; }

@media (prefers-reduced-motion: reduce) {
  .pillar::before { transition: none; transform: scaleX(1); }
  .vline-fill { transform: none !important; }
  [data-vstep].on .vdot, .spot.in-view::before { animation: none; }
}

/* ===== Menu mobile ===== */
.burger { position: relative; display: block; width: 22px; height: 12px; }
.burger span { position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease), width .45s var(--ease); }
.burger span:first-child { top: 0; }
.burger span:last-child { top: 10.5px; width: 70%; left: auto; right: 0; }
[aria-expanded="true"] .burger span:first-child { top: 5.25px; transform: rotate(45deg); }
[aria-expanded="true"] .burger span:last-child { top: 5.25px; width: 100%; transform: rotate(-45deg); }

#menu { opacity: 0; transition: opacity .35s ease; }
#menu.open { opacity: 1; }
#menu .aurora-soft { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 40% at 85% 0%, rgba(126, 217, 87, .16), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(14, 147, 132, .18), transparent 70%); }
.menu-link { display: flex; align-items: center; gap: .875rem; padding: 1rem 0; border-bottom: 1px solid rgba(197, 208, 220, .12);
  font-size: 1.1875rem; font-weight: 600; letter-spacing: -.01em; }
.menu-num { font-family: "Geist Mono", ui-monospace, monospace; font-size: .75rem; font-weight: 500; letter-spacing: .1em; color: #7ED957; width: 1.75rem; }
.menu-arrow { color: #5E7189; font-weight: 400; transition: transform .4s var(--ease), color .3s; }
.menu-link:active .menu-arrow, .menu-link[aria-current="page"] .menu-arrow { color: #7ED957; transform: translateX(4px); }
.menu-link[aria-current="page"] { color: #7ED957; }
#menu a { transform: translateY(18px); opacity: 0; transition: transform .7s var(--ease), opacity .6s ease; transition-delay: calc(var(--i, 0) * 60ms + 120ms); }
#menu.open a { transform: none; opacity: 1; }
body.menu-open #site-header { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
@media (prefers-reduced-motion: reduce) { #menu, #menu a, .burger span { transition: none !important; } #menu a { opacity: 1; transform: none; } }

/* Faixa de números: cada número "acende" (hover no desktop, centro da tela no celular) */
.stat { position: relative; isolation: isolate; transition: background-color .6s; }
.stat::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .6s;
  background: linear-gradient(180deg, rgba(76, 175, 43, .08), rgba(76, 175, 43, 0) 75%); }
.stat dt { transition: color .5s; }
.stat .stat-bar { transition: transform 1.6s cubic-bezier(.16, 1, .3, 1) .35s, width .8s var(--ease); }
.stat dd { transition: color .5s; }
.stat:hover::before, .stat.in-view::before { opacity: 1; }
.stat:hover .stat-bar, .stat.in-view .stat-bar { width: calc(100% - 1rem); }
.stat:hover dt, .stat.in-view dt { color: #2F7D1C; }
.stat:hover dd, .stat.in-view dd { color: #0B1F3A; }
@media (hover: hover) { .stat { cursor: default; } }

/* Cases: filtro preso logo abaixo do cabeçalho; sobe quando o cabeçalho se esconde */
.filter-sticky { top: 80px; transition: top .6s var(--ease); }
body.header-hidden .filter-sticky { top: 0; }
@media (max-width: 767px) {
  .filter-scroll { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 32px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 32px), transparent 100%); }
}


/* ===== Títulos do topo com vida ===== */
/* Brilho que desliza no degradê das palavras em destaque */
.text-grad, .text-grad .wi, .text-grad .rot-word {
  background-image: linear-gradient(100deg, #8BE05E 0%, #4CAF2B 30%, #19B3A0 55%, #8BE05E 80%, #4CAF2B 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-shift 7s ease-in-out infinite alternate; }
@keyframes grad-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* Palavra que alterna */
.rot-word { display: inline-block; font-style: italic; padding-right: .06em; }
.rot-word.in { animation: rot-in .8s var(--ease) both, grad-shift 7s ease-in-out infinite alternate; }
.rot-word.out { animation: rot-out .45s ease-in both; }
@keyframes rot-in { from { opacity: 0; transform: translateY(45%); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rot-out { to { opacity: 0; transform: translateY(-45%); filter: blur(6px); } }

/* Rótulo digitado com cursor */
[data-type] .tc { opacity: 0; }
[data-type] .tc.on { opacity: 1; }
.type-caret { display: inline-block; width: .55em; height: 1.05em; margin-left: .15em; vertical-align: -0.18em; background: #7ED957; animation: caret 1s steps(1) infinite; }
.type-caret.done { animation: caret 1s steps(1) 3, caret-hide .3s ease 3s forwards; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes caret-hide { to { opacity: 0; width: 0; margin: 0; } }

@media (prefers-reduced-motion: reduce) {
  .text-grad, .text-grad .wi, .text-grad .rot-word { animation: none; }
  .rot-word.in { animation: rot-fade .5s ease both; } .rot-word.out { animation: rot-fade .3s ease reverse both; }
  @keyframes rot-fade { from { opacity: 0; } to { opacity: 1; } }
  [data-type] .tc { opacity: 1; } .type-caret { display: none; }
}

/* Trajetória do líder: linha verde que conecta as etapas */
.career-item { position: relative; padding: 1rem 1.1rem; border-radius: .75rem; background: #FFFFFF; border: 1px solid #DCE3EA; transition: border-color .3s, transform .4s var(--ease); }
.career-item::before { content: ""; position: absolute; left: 1.1rem; top: 0; width: 2rem; height: 2px; background: linear-gradient(90deg, #4CAF2B, #19B3A0); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.is-in .career-item::before { transform: scaleX(1); }
.is-in .career-item:nth-child(2)::before { transition-delay: .15s; }
.is-in .career-item:nth-child(3)::before { transition-delay: .3s; }
.career-item:hover { border-color: #163A5F; transform: translateY(-2px); }

/* Cargos atuais na trajetória */
.career-now { border-color: rgba(76, 175, 43, .45); background: linear-gradient(180deg, rgba(76, 175, 43, .06), #FFFFFF 70%); }
.career-now::after { content: "Atual"; position: absolute; right: .9rem; top: .9rem; font-family: "Geist Mono", ui-monospace, monospace; font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: #2F7D1C; background: rgba(76, 175, 43, .12); padding: .15rem .45rem; border-radius: 999px; }
.is-in .career-item:nth-child(4)::before { transition-delay: .45s; }
.is-in .career-item:nth-child(5)::before { transition-delay: .6s; }
.is-in .career-item:nth-child(6)::before { transition-delay: .75s; }
