/* Animações das páginas da Lumora.
   As entradas só começam quando html recebe a classe .anima, então o conteúdo nunca depende delas para aparecer. */

.barra-progresso { position: fixed; inset: 0 0 auto; z-index: 90; height: 3px; background: linear-gradient(90deg, #5b9dff, #a67bff); transform: scaleX(0); transform-origin: 0 50%; }
.menu a[aria-current='page'] { color: var(--texto); background: var(--lavanda-suave); }

/* Entrada da abertura */
.palavra { display: inline-block; }
.anima .palavra { animation: palavra .75s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 55ms + 120ms); }
@keyframes palavra { from { opacity: 0; transform: translateY(.55em); filter: blur(8px); } }
.anima .entra { animation: subir .85s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
@keyframes subir { from { opacity: 0; transform: translateY(26px); } }

/* Abertura do site: o anel de luz revela a marca */
.splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #05071f; animation: splash-sai .65s ease 1.85s forwards; cursor: pointer; }
.splash.parada, .splash.parada * { animation-play-state: paused !important; }
.splash svg, .splash img { grid-area: 1 / 1; }
.splash svg { width: min(74vmin, 520px); height: auto; overflow: visible; animation: splash-onda .8s cubic-bezier(.12, .75, .3, 1) 1.7s forwards; }
.splash circle { fill: none; stroke: url(#splash-g); stroke-width: 1.1; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 7px #6f8dff); transform: rotate(-90deg); transform-origin: 50% 50%; animation: splash-desenha 1.05s cubic-bezier(.6, 0, .2, 1) .1s forwards; }
.splash-estrela { fill: #fff; opacity: 0; transform: scale(.2) rotate(-40deg); transform-origin: 100px 56px; filter: drop-shadow(0 0 10px #cdd7ff); animation: splash-estrela .5s cubic-bezier(.3, 1.6, .5, 1) .75s forwards; }
.splash img { position: relative; width: min(60vmin, 380px); height: auto; margin-top: 4vmin; opacity: 0; animation: splash-logo .7s ease .85s forwards; }
.som-botao { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; color: #f1f3ff; background: rgba(16, 21, 60, .82); box-shadow: 0 10px 26px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(170, 185, 255, .28); backdrop-filter: blur(10px); cursor: pointer; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.som-botao:hover { transform: scale(1.1); }
.som-botao svg { font-size: 21px; }
.som-botao .som-off, .som-botao.mudo .som-on { display: none; }
.som-botao.mudo .som-off { display: block; }
@keyframes splash-desenha { to { stroke-dashoffset: 0; } }
@keyframes splash-estrela { to { opacity: 1; transform: none; } }
@keyframes splash-logo { from { opacity: 0; letter-spacing: 1em; transform: scale(.94); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes splash-onda { to { transform: scale(7); opacity: 0; } }
@keyframes splash-sai { to { opacity: 0; visibility: hidden; } }

.constelacao { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.heroi-lumora > .container { position: relative; z-index: 1; }

/* Céu da abertura */
.heroi-lumora::after {
  content: ''; position: absolute; inset: -30% auto auto -15%; width: 60%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(80, 90, 255, .22), transparent 72%); animation: aurora 13s ease-in-out infinite alternate;
}
@keyframes aurora { to { transform: translate(34%, 26%) scale(1.25); } }
.estrelas, .estrelas::after { position: absolute; inset: 0; pointer-events: none; }
.estrelas {
  background-image:
    radial-gradient(1.5px 1.5px at 8% 22%, #fff, transparent), radial-gradient(1px 1px at 22% 68%, #c9d6ff, transparent),
    radial-gradient(1.5px 1.5px at 38% 12%, #fff, transparent), radial-gradient(1px 1px at 52% 84%, #cfc2ff, transparent),
    radial-gradient(1.5px 1.5px at 66% 28%, #fff, transparent), radial-gradient(1px 1px at 91% 62%, #c9d6ff, transparent);
  animation: piscar 4.5s ease-in-out infinite alternate;
}
.estrelas::after {
  content: '';
  background-image:
    radial-gradient(1px 1px at 15% 44%, #fff, transparent), radial-gradient(1.5px 1.5px at 31% 90%, #bcd2ff, transparent),
    radial-gradient(1px 1px at 47% 40%, #fff, transparent), radial-gradient(1.5px 1.5px at 74% 10%, #d9ceff, transparent),
    radial-gradient(1px 1px at 84% 86%, #fff, transparent), radial-gradient(1.5px 1.5px at 96% 34%, #bcd2ff, transparent);
  animation: piscar 3.2s ease-in-out -1.5s infinite alternate;
}
@keyframes piscar { from { opacity: .25; } to { opacity: 1; } }

/* Site sendo construído */
.heroi-visual.vivo { margin-right: 0; transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; }
.vivo .heroi-arco { top: -128px; z-index: 0; animation: respirar 5s ease-in-out infinite; }
@keyframes respirar { 50% { opacity: .72; transform: translateX(-50%) scale(1.035); } }
.site-vivo { position: relative; z-index: 1; border-radius: 22px; overflow: hidden; background: #0d1238; box-shadow: var(--sombra-forte), 0 0 0 1px var(--linha), 0 0 70px rgba(84, 118, 255, .2); }
.sv-barra { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: #141a48; }
.sv-barra i { width: 10px; height: 10px; border-radius: 50%; background: #39417a; }
.sv-barra span { flex: 1; height: 16px; margin-left: 12px; border-radius: 8px; background: #1e2558; }
.sv-corpo { display: grid; gap: 22px; padding: 22px; }
.sv-nav { display: flex; align-items: center; gap: 12px; }
.sv-nav b { width: 90px; height: 12px; margin-right: auto; border-radius: 6px; background: linear-gradient(90deg, #dfe6ff, #a9b7f5); }
.sv-nav u { width: 44px; height: 8px; border-radius: 4px; background: #333b75; }
.sv-principal { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: center; }
.sv-principal > div { display: grid; gap: 11px; }
.sv-principal b { display: block; height: 20px; border-radius: 7px; background: #eef1ff; }
.sv-principal s { display: block; height: 9px; border-radius: 5px; background: #4a5390; }
.sv-principal .curta { width: 66%; }
.sv-principal em { display: block; width: 46%; height: 30px; margin-top: 6px; border-radius: 999px; background: linear-gradient(100deg, #2c68ee, #6d46e6); box-shadow: 0 0 22px rgba(84, 118, 255, .55); }
.sv-principal figure { margin: 0; aspect-ratio: 1.15; border-radius: 16px; background: linear-gradient(140deg, #3b6ff0, #8a5cf0 70%, #c9a4ff); }
.sv-cartoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sv-cartoes span { height: 74px; border-radius: 14px; background: #1a2156; box-shadow: inset 0 0 0 1px rgba(170, 185, 255, .16); }
.anima .bloco { animation: construir 8s cubic-bezier(.2, .7, .2, 1) infinite both; animation-delay: var(--b, 0s); }
@keyframes construir {
  0% { opacity: 0; transform: translateY(14px) scale(.95); }
  9%, 86% { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: translateY(-6px); }
}

.etiqueta {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
  background: var(--cartao); color: var(--texto); font-size: 14px; font-weight: 600; box-shadow: var(--sombra-forte), 0 0 0 1px var(--linha);
  animation: flutuar 6s ease-in-out infinite;
}
.etiqueta i { width: 8px; height: 8px; border-radius: 50%; background: #5b9dff; }
.e1 { left: -28px; top: 26%; }
.e2 { right: -22px; top: 46%; animation-delay: -2s; }
.e2 i { background: #a67bff; }
.e3 { left: 12%; bottom: -18px; animation-delay: -4s; }
.e3 i { background: #5fd6a0; }

/* Título com reflexo de luz */
.heroi-lumora .destaque .palavra {
  color: transparent; background: linear-gradient(100deg, #8fb8ff 0%, #c9b8ff 38%, #ffffff 50%, #c9b8ff 62%, #8fb8ff 100%) 0 0 / 280% 100%;
  -webkit-background-clip: text; background-clip: text;
}
.anima .heroi-lumora .destaque .palavra { animation: palavra .75s cubic-bezier(.2, .7, .2, 1) both, reluzir 6s linear infinite; animation-delay: calc(var(--i) * 55ms + 120ms), 1.4s; }
@keyframes reluzir { to { background-position: -280% 0; } }

/* Ponteiro construindo o site */
.sv-ponteiro { position: absolute; z-index: 3; left: 0; top: 0; width: 26px; height: 26px; color: #fff; filter: drop-shadow(0 3px 6px #0009); opacity: 0; }
.sv-ponteiro svg { fill: currentColor; stroke: #05071f; stroke-width: 1.2; stroke-linejoin: round; }
.anima .sv-ponteiro { animation: ponteiro 8s cubic-bezier(.5, .05, .3, 1) infinite; }
@keyframes ponteiro {
  0% { opacity: 0; transform: translate(62%, 78%); } 5% { opacity: 1; transform: translate(70px, 120px); }
  17% { transform: translate(150px, 140px); } 30% { transform: translate(200px, 268px) scale(1); } 33% { transform: translate(200px, 268px) scale(.8); } 36% { transform: translate(200px, 268px) scale(1); }
  54% { transform: translate(430px, 210px); } 72% { opacity: 1; transform: translate(330px, 372px); } 88%, 100% { opacity: 0; transform: translate(380px, 330px); }
}

/* Títulos e cartões entram com profundidade */
.cabeca-secao.revelar h2 { transition: filter .9s ease, letter-spacing .9s ease; }
.js .cabeca-secao.revelar:not(.visivel) h2 { filter: blur(7px); letter-spacing: .05em; }
.js .recursos-grade .revelar:not(.visivel) { transform: perspective(900px) rotateX(18deg) translateY(36px); }
.js .linha-tempo .revelar:not(.visivel) { transform: translateY(40px) scale(.94); }

/* Faixa em movimento */
.faixa { overflow: hidden; padding: 18px 0; border-block: 1px solid var(--linha); background: var(--fundo-2); }
.faixa-trilho { display: flex; width: max-content; animation: correr 30s linear infinite; }
.faixa-trilho span { display: inline-flex; align-items: center; gap: 44px; padding-right: 44px; font-size: clamp(18px, 2vw, 24px); font-weight: 700; letter-spacing: -.02em; color: var(--suave); white-space: nowrap; }
.faixa-trilho span::after { content: '✦'; font-size: .7em; color: #a67bff; }
@keyframes correr { to { transform: translateX(-50%); } }

/* Aparição com direções */
.js .revelar[data-rv='zoom']:not(.visivel) { transform: scale(.93); }
.js .revelar[data-rv='dir']:not(.visivel) { transform: translateX(46px); }

/* Luz que segue o ponteiro nos cartões */
[data-luz] { position: relative; overflow: hidden; }
[data-luz]::before {
  content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(110, 130, 255, .24), transparent 70%);
}
[data-luz]:hover::before { opacity: 1; }
[data-luz] > * { position: relative; }
[data-luz]:hover .recurso-icone { transform: scale(1.12) rotate(-6deg); }
.recurso-icone { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }

/* Brilho que atravessa o botão principal */
[data-tema='lumora'] .botao-primario { position: relative; overflow: hidden; }
[data-tema='lumora'] .botao-primario::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
}
[data-tema='lumora'] .botao-primario:hover::after { transition: transform .7s ease; transform: translateX(120%) skewX(-20deg); }

/* Linha do processo */
.linha-progresso { height: 3px; margin-bottom: 20px; border-radius: 2px; background: linear-gradient(90deg, #5b9dff, #a67bff); transform-origin: 0 50%; }
.js .linha-progresso.revelar { transition: transform 1.8s cubic-bezier(.3, .7, .2, 1); }
.js .linha-progresso.revelar:not(.visivel) { opacity: 1; transform: scaleX(0); }
.linha-tempo .lt-numero { transition: transform .5s cubic-bezier(.3, 1.8, .5, 1) calc(var(--atraso, 0s) + .25s); }
.js .linha-tempo li:not(.visivel) .lt-numero { transform: scale(0); }

/* Questionário */
.contato-marca { align-items: stretch; place-items: start; }
.contato-marca-texto { position: relative; z-index: 1; display: grid; gap: 18px; padding-bottom: 130px; color: var(--texto); }
.contato-marca .logo { width: min(240px, 80%); }
.contato-marca h2 { font-size: clamp(28px, 3.2vw, 38px); }
.contato-marca-texto p { color: var(--suave); }
.contato-marca .ondas { animation: ondular 9s ease-in-out infinite alternate; }
@keyframes ondular { to { transform: translateX(-50%) scale(1.08) translateY(-6px); } }
[data-tema='lumora'] .campo input, [data-tema='lumora'] .campo textarea { background: #0a0e30; border-color: var(--linha); }
[data-tema='lumora'] .campo input::placeholder, [data-tema='lumora'] .campo textarea::placeholder { color: #98a1c6; }
[data-tema='lumora'] .form-erro { color: #ff9aa2; }

/* Página de projetos */
.projeto { background: linear-gradient(120deg, #fbfcff 0%, #e4eefc 58%, #fff0e8 100%); }
.projeto .marca { color: #2f64b1; }
.projeto .marca-icone { stroke: #3b7ddd; stroke-width: 1.75; }
.projeto .marca-icone path + path { stroke-width: 1.75; }
.projeto p { color: #4c5878; }
.carrossel-pontos button[aria-current='true']::before { background: #3b7ddd !important; }
.heroi-curto { padding: 40px 0 28px; text-align: center; }
.heroi-curto h1 { max-width: 15em; margin-inline: auto; }
.heroi-curto .selo { margin-bottom: 20px; }
.secao-projeto { padding: 24px 0 96px; }
.projeto h2 { margin-top: 16px; font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -.035em; }
.projeto { position: relative; }
.carrossel { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; }
.carrossel-telas { display: grid; }
.carrossel-telas > * { grid-area: 1 / 1; opacity: 0; transform: scale(1.03); transition: opacity .8s ease, transform 1.2s ease; }
.carrossel-telas > .ativa { opacity: 1; transform: none; }
.carrossel-pontos { display: flex; justify-content: center; gap: 2px; margin-top: 8px; }
.carrossel-pontos button { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.carrossel-pontos button::before { content: ''; display: block; width: 10px; height: 10px; margin: auto; border-radius: 999px; background: #bcc3df; transition: width .3s, background-color .3s; }
.carrossel-pontos button[aria-current='true']::before { width: 28px; background: #6750b0; }

@media (max-width: 1080px) {
  .heroi-visual.vivo { margin-top: 90px; }
}
@media (max-width: 640px) {
  .vivo .heroi-arco { top: -62px; }
  .heroi-visual.vivo { margin-top: 60px; }
  .e1 { left: 6px; top: -16px; }
  .e2 { right: 6px; top: 40%; }
  .e3 { left: 10px; }
  .sv-corpo { gap: 16px; padding: 16px; }
  .sv-cartoes span { height: 52px; }
  .etiqueta { font-size: 13px; padding: 7px 12px; }
  .contato-marca { padding: 32px 24px; }
  .contato-marca-texto { padding-bottom: 170px; }
}
@media (max-width: 640px) { .sv-ponteiro { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .heroi-lumora .destaque .palavra { color: var(--violeta-texto); background: none; }
  .sv-ponteiro { display: none; }
  .js .cabeca-secao.revelar:not(.visivel) h2 { filter: none; letter-spacing: inherit; }
  .heroi-visual.vivo, .carrossel { transform: none; }
  .js .linha-tempo li:not(.visivel) .lt-numero { transform: none; }
  .js .linha-progresso.revelar:not(.visivel) { transform: none; }
  .js .revelar[data-rv]:not(.visivel) { transform: none; }
}
