/* =========================================================
   Lepvi Group — divulgação em 3D (lepvi.com.br/divulgacao)
   Tela cheia, escura, com as cores da marca. O movimento fica em divulgacao.js.
   Sem a classe .vivo (JS desligado ou falhou) a página é um texto corrido normal.
   ========================================================= */
:root {
  --grafite: #0D0D0F;
  --nevoa: #F2F1EE;
  --azul: #2D4BFF;
  --azul-claro: #3A7BFF;
  --violeta: #8A3DFF;
  --magenta: #C04DFF;
  --suave: rgba(242, 241, 238, .68);
  --linha: rgba(242, 241, 238, .14);
  --gradiente: linear-gradient(90deg, #3A7BFF 0%, #2D4BFF 30%, #8A3DFF 68%, #C04DFF 100%);
  --fonte: "Outfit", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --margem: clamp(20px, 6.5vw, 112px);
  --p: 0;      /* quanto do tempo do ato atual já passou, 0 a 1 */
  --g: 0;      /* posição na apresentação inteira, 0 a 1 */
  --mx: 0;     /* ponteiro, -1 a 1 */
  --my: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--grafite); }
body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--nevoa);
  background: var(--grafite);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
p, h1, h2, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--nevoa); outline-offset: 3px; border-radius: 6px; }
.so-grande { display: none; }
@media (min-width: 640px) { .so-grande { display: inline; } }

/* ---------- Fundo ---------- */
.fundo { position: fixed; inset: -30vmax; z-index: 0; pointer-events: none; transform: rotate(calc(var(--g) * 260deg)); }
.fundo__luz { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .55; }
.fundo__luz--a { left: 8%; top: 12%; background: radial-gradient(closest-side, rgba(45, 75, 255, .55), rgba(45, 75, 255, 0)); animation: boia 17s ease-in-out infinite alternate; }
.fundo__luz--b { right: 6%; top: 30%; background: radial-gradient(closest-side, rgba(138, 61, 255, .42), rgba(138, 61, 255, 0)); animation: boia 23s ease-in-out infinite alternate-reverse; }
.fundo__luz--c { left: 30%; bottom: 4%; background: radial-gradient(closest-side, rgba(192, 77, 255, .32), rgba(192, 77, 255, 0)); animation: boia 29s ease-in-out infinite alternate; }
@keyframes boia { from { transform: translate3d(-6%, -4%, 0) scale(1); } to { transform: translate3d(7%, 6%, 0) scale(1.18); } }

.letreiro { position: fixed; inset: 0; z-index: 1; display: none; align-items: center; pointer-events: none; overflow: hidden; }
.letreiro span {
  display: block; white-space: nowrap; font-weight: 600; font-size: 34vw; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(242, 241, 238, .09);
  transform: translate3d(calc(18vw - var(--g) * 150vw), 0, 0);
  transition: opacity .5s linear;
}
.letreiro.troca span { opacity: 0; }

#cena { position: fixed; inset: 0; z-index: 2; width: 100%; height: 100%; display: none; pointer-events: none; }
.granulado {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
}
.brilho-ponteiro {
  position: fixed; left: 0; top: 0; z-index: 3; width: 46vmax; height: 46vmax; margin: -23vmax 0 0 -23vmax; border-radius: 50%;
  pointer-events: none; display: none; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(58, 123, 255, .16), rgba(58, 123, 255, 0));
  transform: translate3d(calc(50vw + var(--mx) * 50vw), calc(50vh + var(--my) * 50vh), 0);
}
@media (hover: hover) and (pointer: fine) { .vivo .brilho-ponteiro { display: block; } }

/* ---------- Topo ---------- */
.topo {
  position: fixed; left: 0; right: 0; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) var(--margem) 14px;
}
.topo__marca { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 500; font-size: 1.5rem; letter-spacing: -.03em; }
.topo__marca svg { width: 30px; height: 30px; fill: var(--nevoa); }

.botao {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border: 1px solid rgba(242, 241, 238, .32); border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 1.0625rem;
  background: rgba(13, 13, 15, .35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .18s var(--ease-out), background-color .2s ease, border-color .2s ease;
}
.botao:active { transform: scale(.97); }
.botao--fino { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.botao--cheio { border-color: transparent; background: var(--gradiente); background-size: 200% 100%; animation: corre 6s linear infinite alternate; box-shadow: 0 12px 44px -10px rgba(90, 70, 255, .75); }
@keyframes corre { to { background-position: 100% 0; } }
@media (hover: hover) and (pointer: fine) {
  .botao:hover { background-color: rgba(242, 241, 238, .12); border-color: rgba(242, 241, 238, .6); }
  .botao--cheio:hover { border-color: transparent; transform: translateY(-2px); }
}

/* ---------- Atos (texto corrido por padrão) ---------- */
.palco { position: relative; z-index: 10; }
.ato { padding: 96px var(--margem) 40px; }
.ato__texto { max-width: 640px; }
.sobre { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--suave); margin-bottom: 18px; }
.titulo { font-weight: 500; font-size: clamp(2.3rem, 5.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; margin-bottom: 22px; }
.titulo--gigante { font-size: clamp(2.5rem, 7.2vw, 6.4rem); line-height: .98; }
.titulo em { font-style: normal; background: var(--gradiente); -webkit-background-clip: text; background-clip: text; color: transparent; }
.apoio { font-weight: 300; font-size: clamp(1.0625rem, 1.5vw, 1.3rem); color: var(--suave); max-width: 34em; text-wrap: pretty; }
.miudo { font-size: .9rem; color: var(--suave); }

.numero { display: flex; align-items: center; gap: 18px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--linha); max-width: 30em; }
.numero strong { font-weight: 500; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.04em; white-space: nowrap; font-variant-numeric: tabular-nums; background: var(--gradiente); -webkit-background-clip: text; background-clip: text; color: transparent; }
.numero span { font-size: .98rem; color: var(--suave); line-height: 1.35; }
.numero strong span { font-size: inherit; color: inherit; }

.fichas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; max-width: 32em; }
.fichas li { font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; padding: 9px 14px; border: 1px solid var(--linha); border-radius: 999px; background: rgba(13, 13, 15, .4); }

.pacotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px 0 16px; perspective: 1200px; }
.pacote {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; text-align: left; text-decoration: none;
  border: 1px solid var(--linha); border-radius: 18px; background: rgba(18, 18, 24, .62);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.pacote--destaque { border-color: rgba(138, 61, 255, .75); background: linear-gradient(160deg, rgba(45, 75, 255, .3), rgba(192, 77, 255, .16)), rgba(18, 18, 24, .62); }
.pacote__nome { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--suave); }
.pacote__preco { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; white-space: nowrap; }
.pacote__preco b { font-weight: 500; font-size: clamp(1.35rem, 2.3vw, 2.1rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pacote__preco small { font-size: .85rem; color: var(--suave); }
.pacote__nota { font-size: .82rem; line-height: 1.35; color: var(--suave); }
@media (min-width: 900px) {
  .pacotes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 20px 0 24px; }
  .pacote { padding: 26px 22px; gap: 12px; border-radius: 22px; }
  .pacote__nota { font-size: .92rem; }
}

.acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.credito { margin-top: 30px; font-size: .9rem; color: var(--suave); }
.credito a { display: inline-block; padding: 12px 4px; text-underline-offset: 4px; }
.credito-lepvi { margin-top: 2px; font-size: .82rem; opacity: .85; }

/* Peças que só existem com o palco ligado */
.rotulos, .pontos, .painel, .progresso { display: none; }

/* ---------- Cortina de abertura ---------- */
.cortina {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--grafite);
  animation: cortina-some .6s ease 7s forwards; /* se o JS não carregar, a cortina sai sozinha */
}
.cortina__marca { display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: clamp(2.4rem, 8vw, 4.2rem); letter-spacing: -.04em; overflow: hidden; }
.cortina__marca svg { width: 1em; height: 1em; fill: var(--nevoa); animation: cortina-gira .9s var(--ease-out) both; }
.cortina__marca span { animation: cortina-sobe .8s var(--ease-out) .12s both; }
.cortina__linha { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gradiente); transform-origin: left; animation: cortina-carrega 1.5s var(--ease-in-out) both; }
.cortina.abre { animation: none; transition: clip-path .95s var(--ease-in-out), visibility 0s .95s; clip-path: inset(0 0 100% 0); visibility: hidden; }
.cortina.abre .cortina__marca { transition: transform .95s var(--ease-in-out), opacity .5s ease; transform: translateY(-60px); opacity: 0; }
@keyframes cortina-gira { from { transform: rotate(-90deg) scale(.4); opacity: 0; } }
@keyframes cortina-sobe { from { transform: translateY(105%); } }
@keyframes cortina-carrega { from { transform: scaleX(0); } }
@keyframes cortina-some { to { opacity: 0; visibility: hidden; } }

/* =========================================================
   Palco ligado (.vivo): tudo fixo, sem rolagem; a apresentação passa sozinha
   ========================================================= */
.vivo #cena { display: block; }
.vivo .letreiro { display: flex; }
.vivo, .vivo body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.vivo .palco { position: static; }
.vivo .ato {
  position: fixed; inset: 0; z-index: 10; display: flex; pointer-events: none; visibility: hidden;
  padding: 84px var(--margem) calc(96px + env(safe-area-inset-bottom));
  transition: visibility 0s .7s;
}
.vivo .ato.ativo { visibility: visible; transition-delay: 0s; }
.vivo .ato.ativo a, .vivo .ato.ativo button { pointer-events: auto; }

/* celular e telas em pé: 3D em cima, texto embaixo */
.vivo .ato--lado { align-items: flex-end; }
.vivo .ato--centro { align-items: flex-end; justify-content: center; text-align: center; }
.vivo .ato--centro .ato__texto { max-width: 1180px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.vivo .ato--pacotes { align-items: center; }
.vivo .ato--pacotes .pacotes { width: 100%; }
.vivo .ato--final .acoes { justify-content: center; }

@media (min-aspect-ratio: 1/1) and (min-width: 820px) {
  .vivo .ato--lado { align-items: center; }
  .vivo .ato--lado .ato__texto { max-width: min(42vw, 600px); }
  .vivo .ato--final { align-items: flex-end; }
}
@media (max-height: 560px) {
  .titulo { font-size: clamp(1.7rem, 4.2vw, 2.6rem); margin-bottom: 12px; }
  .titulo--gigante { font-size: clamp(1.9rem, 5vw, 3rem); }
  .numero { margin-top: 14px; padding-top: 12px; }
  .fichas { margin-top: 14px; }
}

/* entrada e saída do texto */
.vivo .sobe { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity .45s ease, transform .5s var(--ease-in-out); }
.vivo .ato.passou .sobe { transform: translate3d(0, -34px, 0); }
.vivo .ato.ativo .sobe { opacity: 1; transform: none; transition: opacity .8s ease, transform .9s var(--ease-out); transition-delay: calc(var(--i) * 70ms + 120ms); }

.palavra { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.palavra > span { display: inline-block; }
.vivo .palavra > span { transform: translate3d(0, 112%, 0) rotate(7deg); transform-origin: left bottom; transition: transform .45s var(--ease-in-out); }
.vivo .ato.passou .palavra > span { transform: translate3d(0, -112%, 0) rotate(-5deg); }
.vivo .ato.ativo .palavra > span { transform: none; transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 55ms + 80ms); }
.palavra.grad > span { background: var(--gradiente); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* cartões dos pacotes chegam girando e inclinam com o ponteiro */
.vivo .pacote { transform: translate3d(0, 60px, -120px) rotateX(38deg); transform-origin: center bottom; }
.vivo .ato.passou .pacote { transform: translate3d(0, -50px, -120px) rotateX(-30deg); }
.vivo .ato.ativo .pacote { transform: rotateY(calc(var(--mx) * 7deg)) rotateX(calc(var(--my) * -6deg)); }
@media (hover: hover) and (pointer: fine) {
  .vivo .ato.ativo .pacote:hover { border-color: rgba(242, 241, 238, .55); transition-delay: 0s; transform: translate3d(0, -8px, 40px) rotateY(calc(var(--mx) * 7deg)) rotateX(calc(var(--my) * -6deg)); }
}

/* rótulos presos aos módulos 3D do Hub */
.vivo .rotulos { display: block; position: fixed; inset: 0; z-index: 9; pointer-events: none; }
.rotulo {
  position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap; will-change: transform;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 11px; border: 1px solid rgba(242, 241, 238, .3); border-radius: 999px; background: rgba(13, 13, 15, .72);
}
.rotulo--centro { border-color: transparent; background: var(--gradiente); }
@media (min-width: 820px) { .rotulo { font-size: .78rem; padding: 7px 13px; } }

/* pontos de navegação */
.vivo .pontos { display: flex; flex-direction: column; position: fixed; right: max(4px, calc(var(--margem) - 34px)); top: 50%; z-index: 20; transform: translateY(-50%); }
.pontos button { width: 44px; height: 30px; display: grid; place-items: center; }
.pontos button::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: rgba(242, 241, 238, .35); transition: height .4s var(--ease-out), background-color .3s ease; }
.pontos button.ativo::before { height: 22px; background: var(--nevoa); }

/* painel de baixo */
.vivo .painel {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 0 var(--margem) calc(18px + env(safe-area-inset-bottom)); pointer-events: none;
}
.painel__conta { display: flex; align-items: baseline; gap: 8px; font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--suave); min-width: 0; }
.painel__conta b { font-weight: 400; font-size: 1.05rem; color: var(--nevoa); font-variant-numeric: tabular-nums; }
.painel__conta em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.painel__conta em::before { content: "— "; }
.painel__conta em { display: none; }
@media (min-width: 640px) { .painel__conta em { display: inline; } }
.painel__botoes { display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.painel__ir {
  width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(242, 241, 238, .3); border-radius: 50%;
  background: rgba(13, 13, 15, .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .18s var(--ease-out), border-color .2s ease;
}
.painel__ir:active { transform: scale(.94); }
.painel__ir svg { width: 20px; height: 20px; fill: none; stroke: var(--nevoa); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .painel__ir:hover, .painel__tocar:hover { border-color: var(--nevoa); } }
.painel__tocar {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px 0 14px;
  border: 1px solid rgba(242, 241, 238, .3); border-radius: 999px; font-size: .9rem; white-space: nowrap;
  background: rgba(13, 13, 15, .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .18s var(--ease-out), border-color .2s ease;
}
.painel__tocar:active { transform: scale(.96); }
.painel__tocar svg { width: 18px; height: 18px; fill: var(--nevoa); }
.painel__tocar .i-pausar, .painel__tocar[aria-pressed="true"] .i-tocar { display: none; }
.painel__tocar[aria-pressed="true"] .i-pausar { display: block; }
@media (max-width: 420px) { .painel__tocar { padding: 0; width: 44px; justify-content: center; } .painel__tocar span { display: none; } }

.vivo .progresso { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; height: 3px; background: rgba(242, 241, 238, .08); }
.progresso i { display: block; height: 100%; background: var(--gradiente); transform-origin: left; transform: scaleX(var(--p)); }

/* sem WebGL: o texto continua animando sobre o fundo de luzes */
.sem-webgl #cena, .sem-webgl .rotulos { display: none !important; }
.sem-webgl .ato--lado { align-items: center; }

/* ---------- Menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .fundo { transform: none; }
  .fundo__luz, .botao--cheio, .cortina__marca svg, .cortina__marca span { animation: none; }
  .letreiro span { transform: translate3d(4vw, 0, 0); }
  .vivo .sobe, .vivo .ato.passou .sobe, .vivo .palavra > span, .vivo .ato.passou .palavra > span,
  .vivo .pacote, .vivo .ato.passou .pacote, .vivo .ato.ativo .pacote { transform: none; }
  .vivo .palavra > span { opacity: 0; transition: opacity .4s ease; }
  .vivo .ato.ativo .palavra > span { opacity: 1; transition: opacity .6s ease; }
  .cortina.abre { transition: opacity .4s ease, visibility 0s .4s; clip-path: none; opacity: 0; }
}
