/* ============================================================
   FOCO OOH — Camada de efeitos ("Foco": luz que faz a marca ser vista)
   Carregada depois de style.css em todas as páginas.
   Regras da marca respeitadas: ciano #00FFF7 / #00a89e, base #0A0A0F,
   foto como protagonista, números grandes em peso 300.
   ============================================================ */

:root{
    --ease-out: cubic-bezier(.16,1,.3,1);
    --cyan-glow: rgba(0,255,247,.35);
}

/* ─── Fundo fluido fixo (canvas criado pelo fx.js) ─── */
body{ background: var(--dark); }
canvas.fx-fundo, canvas.fx-aurora-fixa{
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh; height: 100lvh;
    z-index: -1; pointer-events: none; display: block;
    transform: translateZ(0);
}
/* seções deixam o fundo vivo aparecer */
.section, .final-cta, .hero:not(.hero-photo){ background: transparent !important; }
.final-cta{ border-color: rgba(0,255,247,.10); }
/* superfícies de cartão: escuras e levemente translúcidas (sem blur, por desempenho) */
.step, .stat-card, .crosslink-item, .format-card{ background: rgba(13,13,18,.86); }
.steps, .stat-cards, .crosslink-row{ background: rgba(0,255,247,.07); }
.method, .form-field{ background: rgba(13,13,18,.7); }

/* ─── Barra de progresso ─── */
.fx-progresso{
    position: fixed; top: 0; left: 0; height: 2px; width: 100%;
    background: linear-gradient(90deg, var(--cyan-2), var(--cyan));
    transform-origin: 0 50%; transform: scaleX(0);
    z-index: 300; pointer-events: none;
    box-shadow: 0 0 12px var(--cyan-glow);
}

/* ─── Navegação: sem blur (o fundo é animado), mais compacta ao rolar ─── */
nav{
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(10,10,15,.96);
    transition: padding .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
nav.fx-rolou{ padding-top: 14px; padding-bottom: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); border-bottom-color: rgba(0,255,247,.14); }
.nav-dropdown-menu, .nav-mobile{ backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav-links > li > a:not(.nav-cta){ position: relative; }
.nav-links > li > a::after{
    content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px;
    background: var(--cyan); transform: scaleX(0); transform-origin: right;
    transition: transform .4s var(--ease-out);
}
.nav-links > li > a:hover::after,
.nav-links > li > a[aria-current="page"]::after{ transform: scaleX(1); transform-origin: left; }

/* ─── Botões: brilho que atravessa ─── */
.btn-primary, .btn-outline, .nav-cta{ position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after, .nav-cta::after{
    content: ""; position: absolute; top: 0; left: -130%; width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent);
    transform: skewX(-20deg); transition: left .75s var(--ease-out); z-index: -1;
}
.btn-primary:hover::after, .nav-cta:hover::after{ left: 150%; }
.btn-primary{ transition: box-shadow .35s, transform .35s var(--ease-out); }
.btn-primary:hover{ opacity: 1; box-shadow: 0 0 0 1px var(--cyan), 0 10px 34px rgba(0,255,247,.28); transform: translateY(-2px); }
.btn-outline:hover{ transform: translateY(-2px); }
.btn-outline{ transition: all .3s var(--ease-out); }

/* ─── HERO com vídeo: película só atrás do texto + faixa de luz + parallax ─── */
.hero-video{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none;
    /* opacidade < 1 impede o Chrome/Windows de jogar o vídeo numa camada de hardware ("overlay"),
       que vazava por trás dos canvas transparentes da aurora */
    opacity: .995; }
/* o vídeo sobra só para cima: com o parallax empurrando para baixo, a borda de baixo nunca passa do fim do topo */
.fx-parallax .hero-video{ top: -30%; height: 130%; will-change: transform; }
/* película escura apenas na região do texto, sumindo em degradê para o vídeo */
.hero-photo::before{
    background: linear-gradient(90deg,
        rgba(10,10,15,.92) 0%, rgba(10,10,15,.86) 12%, rgba(10,10,15,.76) 19%,
        rgba(10,10,15,.62) 25%, rgba(10,10,15,.46) 30%, rgba(10,10,15,.31) 34%,
        rgba(10,10,15,.18) 38%, rgba(10,10,15,.08) 42%, rgba(10,10,15,.02) 45%,
        rgba(10,10,15,0) 47%) !important;
}
/* sombra suave no texto para manter a leitura onde a película já clareou */
.hero-photo .hero-sub, .hero-photo .hero-h1{ text-shadow: 0 2px 22px rgba(0,0,0,.55); }
.hero-photo::after{
    /* leve escurecido no rodapé do hero para os atalhos de formato */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: 1; pointer-events: none;
    background: linear-gradient(to top, rgba(10,10,15,.55), transparent);
}
@media (max-width: 768px){
    /* película só atrás do bloco de texto (topo); o vídeo aparece livre na metade de baixo */
    .hero-photo::before{ background: linear-gradient(180deg, rgba(10,10,15,.45) 0%, rgba(10,10,15,.72) 22%, rgba(10,10,15,.72) 52%, rgba(10,10,15,.25) 72%, rgba(10,10,15,.05) 86%, rgba(10,10,15,.35) 100%) !important; }
}
.fx-farol{ position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.fx-farol::before{
    content: ""; position: absolute; top: -30%; bottom: -30%; left: -45%; width: 38%;
    background: linear-gradient(90deg, transparent, rgba(0,255,247,.10) 30%, rgba(220,255,253,.20) 50%, rgba(0,255,247,.10) 70%, transparent);
    transform: skewX(-20deg) translateX(0); opacity: 0;
    animation: farol 7s cubic-bezier(.5,0,.3,1) 1.6s infinite;
}
@keyframes farol{ 0%{ transform: skewX(-20deg) translateX(0); opacity: 0; } 6%{ opacity: 1; } 55%,100%{ transform: skewX(-20deg) translateX(420%); opacity: 0; } }

/* sublinhado ciano 4px na palavra-chave do título (padrão da marca) */
.hero-h1 em{ position: relative; display: inline-block; }
.hero-h1 em::after{
    content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: 4px;
    background: var(--cyan); transform: scaleX(0); transform-origin: left;
    animation: risco 1s var(--ease-out) 1.05s forwards;
    box-shadow: 0 0 14px var(--cyan-glow);
}
@keyframes risco{ to{ transform: scaleX(1); } }

/* pílula "ao vivo" */
.pill::before{ animation: pulso 2s ease-out infinite; box-shadow: 0 0 0 0 var(--cyan-glow); }
@keyframes pulso{ 0%{ box-shadow: 0 0 0 0 var(--cyan-glow); } 80%,100%{ box-shadow: 0 0 0 8px rgba(0,255,247,0); } }

/* entrada em sequência do hero */
.js .fx-entra{ opacity: 0; transform: translateY(24px); animation: entra .95s var(--ease-out) forwards; }
@keyframes entra{ to{ opacity: 1; transform: none; } }

/* atalhos de formato: ícone ganha vida */
.hero-quicklinks a{ transition: background .25s, color .25s, border-color .25s, transform .35s var(--ease-out); }
.hero-quicklinks a:hover{ transform: translateY(-3px); }

/* ─── Imagens reveladas como um outdoor sendo descoberto ─── */
.js .fx-cortina{ clip-path: inset(0 100% 0 0); transition: clip-path 1.25s var(--ease-out); transition-delay: var(--d, 0s); }
.js .fx-cortina.visivel{ clip-path: inset(0 0 0 0); }
.hero-frame.filled{ transition: transform 1.2s var(--ease-out), clip-path 1.25s var(--ease-out); }

/* ─── Data strip: números contam ─── */
.ds-num{ font-variant-numeric: tabular-nums; }

/* ─── Revelação na rolagem ─── */
.js .fx-revela{ opacity: 0; }
.js .fx-revela.visivel{ animation: entra .9s var(--ease-out) var(--d, 0s) both; }
.js .fx-revela.pronto{ opacity: 1; animation: none; }
.divider-line{ transition: width .9s var(--ease-out) .15s; }
.js .divider.fx-revela .divider-line{ width: 0; }
.js .divider.fx-revela.visivel .divider-line,
.js .divider.fx-revela.pronto .divider-line{ width: 48px; }

/* ─── Cartões de formato ─── */
.format-card{ position: relative; overflow: hidden; transition: border-color .35s, transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.format-card .img-frame{ transition: transform 1.2s var(--ease-out), filter .6s; }
.format-card:hover{ transform: translateY(-8px); border-color: rgba(0,255,247,.45); box-shadow: 0 24px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(0,255,247,.15); }
.format-card:hover .img-frame{ transform: scale(1.06); filter: brightness(1.08); }
.format-card::after{
    content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 75%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.14), transparent);
    transform: skewX(-18deg); transition: left .9s var(--ease-out); pointer-events: none; z-index: 2;
}
.format-card:hover::after{ left: 140%; }
.format-card-link{ display: inline-flex; gap: 6px; transition: color .25s, gap .35s var(--ease-out); }
.format-card:hover .format-card-link{ gap: 12px; }

/* ─── Foco que segue o mouse dentro dos cartões ─── */
.fx-foco{ position: relative; }
.fx-foco::before{
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(260px circle at var(--x, 50%) var(--y, 50%), rgba(0,255,247,.10), transparent 60%);
    transition: opacity .35s;
}
.fx-foco:hover::before{ opacity: 1; }
.stat-card, .step, .crosslink-item, .method{ transition: background .3s, transform .45s var(--ease-out); }
.stat-card:hover, .step:hover{ transform: translateY(-4px); }
.stat-card-num{ font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgba(0,255,247,.25); }
.crosslink-arrow{ transition: transform .35s var(--ease-out); }
.crosslink-item:hover .crosslink-arrow{ transform: translateX(6px); }
.benefit-icon{ transition: box-shadow .4s, transform .4s var(--ease-out); }
.benefit:hover .benefit-icon{ box-shadow: 0 0 0 6px rgba(0,255,247,.08), 0 0 24px rgba(0,255,247,.25); transform: scale(1.06); }

/* galeria: zoom suave */
.gallery-grid .img-frame{ transition: transform 1.1s var(--ease-out), filter .5s, clip-path 1.25s var(--ease-out); }
.gallery-grid .img-frame:hover{ transform: scale(1.03); filter: brightness(1.08); z-index: 1; }

/* formulário */
.form-field{ transition: border-color .3s, box-shadow .3s; }
.form-field:focus-within{ border-color: rgba(0,255,247,.45); box-shadow: inset 3px 0 0 var(--cyan); }

/* ─── Letreiro (home) ─── */
.fx-letreiro{
    position: relative; overflow: hidden; padding: 22px 0;
    background: #ffffff;
}
.fx-letreiro-trilho{ display: flex; width: max-content; animation: letreiro 42s linear infinite; will-change: transform; }
.fx-letreiro:hover .fx-letreiro-trilho{ animation-play-state: paused; }
.fx-letreiro-item{
    display: flex; align-items: center; gap: 40px; padding-right: 40px;
    font-family: 'Inter', Arial, Helvetica, sans-serif; font-weight: 300; font-size: clamp(20px, 2.4vw, 34px);
    letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; line-height: 1;
}
.fx-letreiro-item span{ color: rgba(10,10,15,.38); }
.fx-letreiro-item i{ width: 7px; height: 7px; background: var(--cyan-2); transform: rotate(45deg); flex-shrink: 0; }
/* letreiro em carrossel (troca de palavras no lugar) */
.fx-letreiro.fx-carrossel{ padding: 26px 64px; }
.fx-car-linha{ display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1280px; margin: 0 auto; }
.fx-car-linha i{ width: 7px; height: 7px; background: var(--cyan-2); transform: rotate(45deg); flex-shrink: 0; }
.fx-car-slot{ flex: 1; display: grid; place-items: center; overflow: hidden; padding: 6px 0; }
.fx-car-slot span{
    grid-area: 1 / 1; font-family: 'Inter', Arial, Helvetica, sans-serif; font-weight: 700; font-size: clamp(18px, 2vw, 28px);
    letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; line-height: 1.2; color: rgba(10,10,15,.62);
}
/* a palavra antiga sai primeiro; a nova só entra depois que a antiga sumiu (sem sobreposição) */
.fx-car-sai{ animation: carSai .32s cubic-bezier(.5,0,.75,0) var(--d, 0s) both; }
.fx-car-entra{ animation: carEntra .55s cubic-bezier(.2,.8,.2,1) calc(var(--d, 0s) + .34s) both; }
@keyframes carEntra{ from{ transform: translateY(28px); filter: blur(4px); opacity: 0; } to{ transform: none; filter: blur(0); opacity: 1; } }
@keyframes carSai{ from{ transform: none; filter: blur(0); opacity: 1; } to{ transform: translateY(-28px); filter: blur(4px); opacity: 0; } }
@media (max-width: 768px){
    .fx-letreiro.fx-carrossel{ padding: 20px 24px; }
    .fx-car-slot span{ font-size: 14px; letter-spacing: .06em; }
}
@keyframes letreiro{ to{ transform: translateX(-50%); } }

/* ─── Final CTA: brilho de palco ─── */
.final-cta{ position: relative; overflow: hidden; }
.final-cta::before{
    content: ""; position: absolute; left: 50%; top: -60%; width: 900px; height: 900px; transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0,255,247,.10), transparent 60%); pointer-events: none;
}
.final-cta > *{ position: relative; }

/* ─── Acessibilidade: sem movimento para quem prefere ─── */
@media (prefers-reduced-motion: reduce){
    *, *::before, *::after{ animation: none !important; transition: none !important; }
    .js .fx-entra, .js .fx-revela{ opacity: 1 !important; transform: none !important; }
    .js .fx-cortina{ clip-path: none !important; }
    .hero-h1 em::after{ transform: scaleX(1); }
    .js .divider.fx-revela .divider-line{ width: 48px; }
    canvas.fx-fundo, .fx-farol{ display: none; }
}
@media (max-width: 768px){
    nav.fx-rolou{ padding-top: 12px; padding-bottom: 12px; }
    .fx-letreiro{ padding: 16px 0; }
}

/* ─── Nossos formatos: revelação em diagonal + inclinação 3D ─── */
.fx-com-aurora{ position: relative; overflow: hidden; isolation: isolate; }
.fx-com-aurora > :not(.fx-aurora){ position: relative; z-index: 1; }
.final-cta.fx-com-aurora{ isolation: isolate; }
.final-cta.fx-com-aurora::before{ display: none; }
.final-cta.fx-com-aurora > :not(.fx-aurora){ z-index: 1; }
.fx-aurora{ position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }

/* placa apagada que acende como frontlight */
/* revelação em diagonal (foto) + texto subindo depois */
.format-card.fx-diag .img-frame{ clip-path: polygon(0 0, 0 0, 0 0, 0 0); }
.format-card.fx-diag .format-card-body{ opacity: 0; transform: translateY(12px); }
.format-card.fx-diag.fx-visto .img-frame{ animation: fxDiag 1.1s cubic-bezier(.7,0,.2,1) calc(var(--i, 0) * .14s) both; }
.format-card.fx-diag.fx-visto .format-card-body{ animation: fxDiagTexto .7s ease calc(var(--i, 0) * .14s + .55s) both; }
@keyframes fxDiag{ 0%{ clip-path: polygon(0 0, 0 0, 0 0, 0 0); } 100%{ clip-path: polygon(0 0, 200% 0, 0 200%, 0 0); } }
@keyframes fxDiagTexto{ to{ opacity: 1; transform: none; } }

.fx-reflexo{
    position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s;
    background: radial-gradient(circle 220px at var(--gx, 50%) var(--gy, 30%), rgba(255,255,255,.22), transparent 70%);
}
.format-card:hover .fx-reflexo{ opacity: 1; }

/* inclinação 3D (tilt card): rotação, leve elevação, foto com parallax interno e reflexo */
.format-card.fx-tilt{
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)) scale(var(--sc, 1));
    transition: border-color .35s, box-shadow .5s var(--ease-out);
    will-change: transform;
}
.format-card.fx-tilt:hover{ transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)) scale(var(--sc, 1)); }
.format-card.fx-tilt .img-frame{ transform: translate(var(--px, 0px), var(--py, 0px)) scale(1.08); transition: filter .6s; }
.format-card.fx-tilt:hover .img-frame{ transform: translate(var(--px, 0px), var(--py, 0px)) scale(1.1); }
.format-card-num{ transition: letter-spacing .5s var(--ease-out); }
.format-card:hover .format-card-num{ letter-spacing: .3em; }

@media (max-width: 768px){
}
@media (prefers-reduced-motion: reduce){
    .format-card.fx-diag .img-frame{ clip-path: none !important; }
    .format-card.fx-diag .format-card-body{ opacity: 1 !important; transform: none !important; }
    .fx-aurora{ display: none; }
}
