/* DataPulseX — Hero cinematográfica v2 (cena fixa + cartelas) */

body.nx-lp.nx-cinematic-active {
    background: #07050C !important;
    color: #F4F0F8;
}

.nx-act1 {
    position: relative;
    z-index: 1;
    /* transparente — a cena fixa fica visível atrás das cartelas */
    background: transparent;
}

/* Os tokens da cena moram no :root.
   Antes viviam dentro de .nx-scene, então toda regra fora dela — botão do
   hero, readout, HUD, navbar — computava vazio e caía no valor herdado.
   Era isso que deixava o CTA principal transparente. Os cinzas frios
   (#5F737E / #9DAEB2 / #1D2A33) eram herança da paleta verde antiga e
   brigavam com o roxo; agora puxam para a família da marca. */
:root {
    --nx-cine-pulse: #8B5CF6;
    --nx-cine-pulse-d: #6D28D9;
    --nx-cine-ember: #C4B5FD;
    --nx-cine-dead: #6E6486;
    --nx-cine-paper: #F4F0F8;
    --nx-cine-paper-dim: #A79FC0;
    --nx-cine-line: rgba(196, 181, 253, 0.16);
    --nx-cine-line-strong: rgba(196, 181, 253, 0.34);
    --nx-cine-gut: clamp(20px, 5vw, 84px);
    --nav-h: 74px;
}

.nx-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: var(--scene, 1);
}

.nx-scene > * {
    position: absolute;
    inset: 0;
}

.nx-scene-glow {
    background: radial-gradient(58% 62% at 50% 46%, rgba(20, 12, 36, 0.92) 0%, rgba(10, 6, 18, 0.45) 55%, rgba(7, 5, 12, 0) 100%);
    transform: translate3d(var(--gx, 0px), 0, 0);
}

#nxSceneCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

.nx-scene-scrim.l {
    opacity: var(--sl, 0);
    background: linear-gradient(90deg, rgba(7, 5, 12, 0.95) 0%, rgba(7, 5, 12, 0.84) 26%, rgba(7, 5, 12, 0.40) 50%, rgba(7, 5, 12, 0) 72%);
}

.nx-scene-scrim.r {
    opacity: var(--sr, 0);
    background: linear-gradient(270deg, rgba(7, 5, 12, 0.95) 0%, rgba(7, 5, 12, 0.84) 26%, rgba(7, 5, 12, 0.40) 50%, rgba(7, 5, 12, 0) 72%);
}

@media (max-width: 900px) {
    .nx-scene-scrim.l,
    .nx-scene-scrim.r {
        background: linear-gradient(180deg, rgba(7, 5, 12, 0.50) 0%, rgba(7, 5, 12, 0.30) 26%, rgba(7, 5, 12, 0.88) 56%, rgba(7, 5, 12, 0.95) 100%);
    }
}

.nx-scene-ab {
    opacity: var(--ab, 0.30);
    background:
        radial-gradient(62% 62% at 50% 46%, rgba(139, 92, 246, 0) 34%, rgba(139, 92, 246, 0.08) 100%),
        radial-gradient(70% 70% at 50% 46%, rgba(196, 181, 253, 0) 40%, rgba(196, 181, 253, 0.06) 100%);
}

.nx-scene-grain {
    inset: -8%;
    background-repeat: repeat;
    opacity: 0.055;
    animation: nx-cine-grain 0.6s steps(1) infinite;
    will-change: transform;
}

@keyframes nx-cine-grain {
    0% { transform: translate3d(0, 0, 0); }
    25% { transform: translate3d(-14px, 7px, 0); }
    50% { transform: translate3d(9px, -11px, 0); }
    75% { transform: translate3d(-6px, -4px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

.nx-scene-vig {
    background: radial-gradient(82% 66% at 50% 46%, transparent 38%, rgba(2, 4, 6, 0.78) 100%);
}

.nx-cartela {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h, 74px) + 8svh) var(--nx-cine-gut, clamp(20px, 5vw, 84px)) 16svh;
    opacity: var(--o, 0);
    transform: translate3d(0, calc(var(--ty, 0) * 1px), 0) scale(var(--sc, 1));
    will-change: opacity, transform;
    color: var(--nx-cine-paper);
}

.nx-cartela[data-side="right"] {
    justify-content: flex-end;
}

.nx-cartela-col {
    width: 100%;
    max-width: min(560px, 48vw);
}

.nx-cartela--open .nx-cartela-col {
    max-width: min(600px, 50vw);
}

.nx-cartela--beat .nx-cartela-col {
    max-width: min(480px, 44vw);
}

.nx-cartela[data-side="right"] .nx-cartela-col {
    text-align: right;
}

@media (max-width: 900px) {
    .nx-cartela-col { max-width: none; }
    .nx-cartela[data-side="right"] { justify-content: flex-start; }
    .nx-cartela[data-side="right"] .nx-cartela-col { text-align: left; }
    .nx-cartela {
        align-items: flex-end;
        padding-bottom: 16svh;
    }
}

.nx-act-out {
    height: var(--nx-act-out-h, 1px);
    background: transparent;
    pointer-events: none;
}

body.nx-cinematic-done .nx-scene,
body.nx-cinematic-done .nx-hud {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Primeira cartela legível antes do JS */
.nx-cartela--open {
    --o: 1;
    --ty: 0;
    --sc: 1;
}

.nx-cartela-h1 {
    font-family: var(--inst-display);
    font-size: clamp(38px, 5.8vw, 80px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.034em;
    text-wrap: balance;
    margin: 0 0 24px;
}

.nx-cartela-h1 em {
    display: block;
    margin-top: 0.12em;
    color: rgba(196, 181, 253, 0.82);
    font-style: normal;
    font-weight: 400;
    letter-spacing: -0.028em;
}

.nx-cartela-h2 {
    font-family: var(--inst-display);
    font-size: clamp(30px, 4.2vw, 58px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.03em;
    text-wrap: balance;
    margin: 0 0 28px;
}

.nx-cartela--beat .nx-cartela-h2 {
    margin-bottom: 32px;
}

.nx-cartela-h2.dead {
    color: rgba(244, 240, 248, 0.42);
    font-weight: 500;
}

.nx-cartela-lede {
    font-family: var(--inst-sans);
    font-size: clamp(16px, 1.2vw, 19px);
    line-height: 1.6;
    color: rgba(244, 240, 248, 0.72);
    max-width: 40ch;
    margin: 0 0 32px;
}

.nx-cartela--open .nx-cartela-lede {
    max-width: 44ch;
}

.nx-cartela-meta {
    margin: 28px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(244, 240, 248, 0.38);
}

.nx-cartela-meta span {
    margin: 0 0.45em;
    opacity: 0.55;
}

.nx-cartela[data-side="right"] .nx-cartela-lede {
    margin-left: auto;
}

@media (max-width: 900px) {
    .nx-cartela[data-side="right"] .nx-cartela-lede {
        margin-left: 0;
    }
}

.nx-cartela-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.nx-cartela[data-side="right"] .nx-cartela-actions {
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .nx-cartela[data-side="right"] .nx-cartela-actions {
        justify-content: flex-start;
    }
}

body.nx-cinematic-active .nx-cartela-actions .inst-btn {
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
}

body.nx-cinematic-active .nx-cartela-actions .inst-btn-primary {
    background: var(--nx-cine-pulse);
    color: #fff;
    border-radius: 6px;
    padding: 14px 26px;
    font-size: 15px;
    box-shadow: none;
}

body.nx-cinematic-active .nx-cartela-actions .inst-btn-primary:hover {
    background: var(--nx-cine-pulse-d);
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.38);
    transform: translateY(-1px);
    filter: none;
}

body.nx-cinematic-active .nx-cartela-actions .inst-btn-ghost {
    border-color: var(--nx-cine-line-strong, rgba(196, 181, 253, 0.34));
    color: var(--nx-cine-paper);
    border-radius: 6px;
    padding: 14px 26px;
    font-size: 15px;
    background: rgba(7, 5, 12, 0.45);
}

body.nx-cinematic-active .nx-cartela-actions .inst-btn-ghost:hover {
    border-color: rgba(196, 181, 253, 0.55);
    background: rgba(255, 255, 255, 0.08);
    color: var(--nx-cine-paper);
    transform: translateY(-1px);
}

.nx-cartela-readout {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--inst-mono);
    font-size: 13px;
    line-height: 1.45;
    border-left: 1px solid var(--nx-cine-line-strong, rgba(196, 181, 253, 0.34));
}

.nx-cartela-readout--plain {
    font-family: var(--inst-sans);
    font-size: clamp(15px, 1.1vw, 17px);
    border-left-color: rgba(95, 115, 126, 0.45);
}

.nx-cartela-readout--plain li {
    padding: 10px 0 10px 18px;
    color: rgba(244, 240, 248, 0.38);
}

.nx-cartela-readout--plain.dead li:last-child {
    color: rgba(244, 240, 248, 0.28);
}

.nx-cartela[data-side="right"] .nx-cartela-readout {
    border-left: 0;
    border-right: 1px solid var(--nx-cine-line-strong, rgba(196, 181, 253, 0.34));
}

@media (max-width: 900px) {
    .nx-cartela[data-side="right"] .nx-cartela-readout {
        border-right: 0;
        border-left: 1px solid var(--nx-cine-line-strong, rgba(196, 181, 253, 0.34));
    }
}

.nx-cartela-readout li {
    display: flex;
    gap: 14px;
    align-items: baseline;
    padding: 9px 0 9px 16px;
    color: rgba(244, 240, 248, 0.68);
}

.nx-cartela[data-side="right"] .nx-cartela-readout li {
    flex-direction: row-reverse;
    padding: 9px 16px 9px 0;
}

@media (max-width: 900px) {
    .nx-cartela[data-side="right"] .nx-cartela-readout li {
        flex-direction: row;
        padding: 9px 0 9px 16px;
    }
}

.nx-cartela-readout .t {
    color: var(--nx-cine-dead);
    min-width: 5.5ch;
    flex: none;
    font-variant-numeric: tabular-nums;
}

.nx-cartela-readout.lit li {
    color: rgba(244, 240, 248, 0.88);
}

.nx-cartela-readout.lit .t {
    color: var(--nx-cine-pulse);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.nx-cartela-readout.lit li:last-child,
.nx-cartela-readout.lit li:last-child .t {
    color: var(--nx-cine-ember);
}

.nx-cartela-hint {
    margin-top: clamp(36px, 7svh, 72px);
    opacity: var(--hint, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--inst-mono);
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--nx-cine-dead, #6E6486);
}

.nx-cartela-hint i {
    display: block;
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, rgba(244, 240, 248, 0.35), transparent);
    animation: nx-cine-drop 1.9s ease-in-out infinite;
}

@keyframes nx-cine-drop {
    0%, 100% { transform: scaleY(0.35); transform-origin: top; opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 1; }
}

.nx-hud {
    position: fixed;
    z-index: 35;
    left: var(--nx-cine-gut, clamp(20px, 5vw, 84px));
    right: var(--nx-cine-gut, clamp(20px, 5vw, 84px));
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    opacity: var(--hud, 0);
    pointer-events: var(--hud-pe, none);
}

@media (max-width: 900px) {
    .nx-hud {
        left: 16px;
        right: 16px;
        bottom: 14px;
    }
}

.nx-hud-tc {
    font-family: var(--inst-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--nx-cine-dead);
    display: flex;
    gap: 12px;
    align-items: center;
    flex: none;
    font-variant-numeric: tabular-nums;
}

.nx-hud-tc .rec {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nx-cine-ember);
    flex: none;
}

.nx-hud-tc .beat {
    color: var(--nx-cine-paper-dim);
    text-transform: uppercase;
}

@media (max-width: 700px) {
    .nx-hud-tc .beat { display: none; }
}

body.nx-lp.nx-cinematic-active .nx-skip {
body.nx-lp #instNav {
    --nav-h: 74px;
    --nav-glass-a: 0.46;
    height: var(--nav-h);
    z-index: 1100;
    overflow: visible;
    background: rgba(12, 9, 22, var(--nav-glass-a)) !important;
    background-image: linear-gradient(
        180deg,
        rgba(139, 92, 246, 0.10) 0%,
        rgba(12, 9, 22, 0) 100%
    ) !important;
    border-bottom: 1px solid rgba(196, 181, 253, 0.12) !important;
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    box-shadow:
        0 4px 28px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition:
        background 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

body.nx-lp #instNav.is-scrolled {
    --nav-glass-a: 0.62;
    border-bottom-color: rgba(139, 92, 246, 0.18) !important;
    box-shadow:
        0 10px 36px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.nx-lp #instNav .inst-nav-inner {
    position: relative;
    z-index: 1;
}

body.nx-lp #instNav .inst-logo {
    position: relative;
    z-index: 2;
    isolation: isolate;
}

body.nx-lp #instNav .brand-logo__name,
body.nx-lp #instNav .brand-logo__icon {
    filter: none !important;
    opacity: 1;
}

body.nx-lp #instNav .inst-nav-links a {
    color: var(--nx-cine-paper-dim);
    transition: color 0.2s ease;
}

body.nx-lp #instNav .inst-nav-links a:hover {
    color: var(--nx-cine-paper);
}

body.nx-lp #instNav .inst-logo,
body.nx-lp #instNav .inst-btn-ghost,
body.nx-lp #instNav .inst-nav-login {
    color: var(--nx-cine-paper);
}

body.nx-lp #instNav .inst-hamburger span {
    background: var(--nx-cine-paper);
}

body.nx-lp #instNav .nav-lang-slot .lp-lang-switch a {
    color: var(--nx-cine-paper-dim);
    transition: color 0.2s ease;
}

body.nx-lp #instNav .nav-lang-slot .lp-lang-switch a:hover {
    color: var(--nx-cine-paper);
}

body.nx-lp #instNav .nav-lang-slot .lp-lang-switch a.active {
    color: var(--nx-cine-pulse);
}

body.nx-lp #instNav .inst-btn {
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
}

body.nx-lp #instNav .inst-btn-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 0 rgba(139, 92, 246, 0);
}

body.nx-lp #instNav .inst-btn-primary:hover {
    background: #7C3AED;
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.42);
    transform: translateY(-1px);
    filter: none;
}

body.nx-lp #instNav .inst-btn-ghost,
body.nx-lp #instNav .inst-nav-login {
    border-color: rgba(196, 181, 253, 0.28);
    background: rgba(255, 255, 255, 0.03);
}

body.nx-lp #instNav .inst-btn-ghost:hover,
body.nx-lp #instNav .inst-nav-login:hover {
    border-color: rgba(196, 181, 253, 0.55);
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    transform: translateY(-1px);
}

body.nx-lp.nx-cinematic-active .nx-skip {
    background: var(--nx-cine-pulse);
    color: #fff;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .nx-scene-grain,
    .nx-cartela-hint i {
        animation: none;
    }
}

.nx-act1[data-static="1"] .nx-cartela {
    opacity: 1 !important;
    transform: none !important;
    min-height: 0;
    padding: 0 0 clamp(38px, 6vh, 60px);
}

.nx-act1[data-static="1"] {
    padding: calc(74px + 7vh) var(--nx-cine-gut, clamp(20px, 5vw, 84px)) clamp(50px, 8vh, 90px);
}

.nx-act1[data-static="1"] .nx-cartela-col {
    max-width: min(660px, 58vw);
}

.nx-act1[data-static="1"] .nx-act-out,
.nx-act1[data-static="1"] .nx-cartela-hint {
    display: none;
}

@media (max-width: 900px) {
    .nx-act1[data-static="1"] .nx-cartela-col {
        max-width: none;
    }
}

/* Site normal após o ato 1 */
body.nx-lp #conteudo {
    position: relative;
    z-index: 2;
    isolation: isolate;
}

body.nx-lp .nx-cases {
    --nx-cases-overlap: clamp(18vh, 24svh, 30vh);
    margin-top: calc(-1 * var(--nx-cases-overlap));
    position: relative;
    z-index: 2;
    opacity: var(--cases-reveal, 1);
    transform: translate3d(0, var(--cases-lift, 0), 0);
    will-change: opacity, transform;
}

body.nx-cinematic-active #casos {
    opacity: var(--cases-reveal, 0);
    transition: none;
}

body.nx-cinematic-done #casos,
body.nx-lp:not(.nx-cinematic-active) #casos {
    opacity: 1;
}

/* Revelação ao rolar — restante do site */
.nx-rise {
    opacity: 0;
    transform: translate3d(0, 48px, 0) scale(0.97);
    filter: blur(3px);
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.nx-rise.in {
    opacity: 1;
    transform: none;
    filter: none;
}

.nx-cases .nx-case.nx-rise:nth-child(2) { transition-delay: 0.12s; }
.nx-cases .nx-case.nx-rise:nth-child(3) { transition-delay: 0.24s; }

.nx-how .nx-line.nx-rise:nth-child(2) { transition-delay: 0.1s; }
.nx-how .nx-line.nx-rise:nth-child(3) { transition-delay: 0.2s; }

.inst-pricing-grid .inst-price-card.nx-rise:nth-child(2) { transition-delay: 0.1s; }
.inst-pricing-grid .inst-price-card.nx-rise:nth-child(3) { transition-delay: 0.18s; }
.inst-pricing-grid .inst-price-card.nx-rise:nth-child(4) { transition-delay: 0.26s; }
.inst-pricing-grid .inst-price-card.nx-rise:nth-child(5) { transition-delay: 0.34s; }

@media (prefers-reduced-motion: reduce) {
    .nx-rise {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }

    body.nx-cinematic-active #casos {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ══════════════════════════════════════════════════════════════════
   A COSTURA — o que os dois atos passam a ter em comum
   ══════════════════════════════════════════════════════════════════ */

/* 1 · o rótulo em monoespaçada ganha o mesmo traço nos dois atos.
   O ato 2 já usava rótulo mono roxo; faltava o traço e o alinhamento. */
body.nx-lp .nx-kicker,
body.nx-lp .inst-section-label,
body.nx-lp .nx-quote-author {
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    line-height: 1.5;
}

body.nx-lp .nx-kicker::before,
body.nx-lp .inst-section-label::before,
body.nx-lp .nx-quote-author::before {
    content: '';
    width: 22px;
    height: 1px;
    margin-top: 0.72em;
    flex: none;
    background: currentColor;
    opacity: 0.55;
}

body.nx-lp .nx-quote-author {
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

body.nx-lp .nx-quote-author::before {
    margin-top: 0;
    margin-bottom: 10px;
    width: 34px;
    opacity: 0.7;
}

/* 2 · todo número da página alinha em coluna, como o timecode do filme.
   É o detalhe que faz o site inteiro soar como instrumento de medição. */
body.nx-lp .inst-price-amount,
body.nx-lp .inst-price-strike,
body.nx-lp .pc-amount,
body.nx-lp .pc-strike,
body.nx-lp .pc-price-wrap,
body.nx-lp .inst-price-list,
body.nx-lp .pc-list,
body.nx-lp .nx-hud-tc,
body.nx-lp .nx-cartela-readout {
    font-variant-numeric: tabular-nums;
}

/* 3 · botão fantasma em seção escura: antes herdava --nx-ink (quase preto)
   e o "Falar no WhatsApp" sumia no fundo do contato. */
body.nx-lp .nx-close .inst-btn-ghost,
body.nx-lp .nx-cases .inst-btn-ghost,
body.nx-lp .nx-close-actions .inst-btn-ghost {
    color: var(--nx-cine-paper, #F4F0F8);
    border-color: var(--nx-cine-line-strong, rgba(196, 181, 253, 0.34));
    background: rgba(255, 255, 255, 0.04);
}

body.nx-lp .nx-close .inst-btn-ghost:hover,
body.nx-lp .nx-cases .inst-btn-ghost:hover,
body.nx-lp .nx-close-actions .inst-btn-ghost:hover {
    border-color: rgba(196, 181, 253, 0.6);
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

/* 4 · a entrega ganha respiro: sem isso o último frame do filme e a
   primeira seção do site trocam de lugar em menos de uma tela. */
.nx-act-out {
    height: var(--nx-act-out-h, 30svh);
}

/* 5 · títulos do ato 2 com a mesma entrelinha fechada do ato 1.
   Estavam frouxos o bastante para cada linha ler como item separado. */
body.nx-lp .nx-case h2 {
    line-height: 1.05;
    letter-spacing: -0.025em;
}
