/* ORÇATOX — camada de efeitos (parallax, 3D, transições, brilho). Respeita "reduzir movimento". */

/* ---------- fundo vivo ---------- */
.bg { will-change: transform; }
.bg .glow { will-change: transform; }
.bg video { will-change: transform; transform: scale(1.12); }
.spot { position: fixed; z-index: 0; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(242, 193, 78, .065), rgba(91, 155, 255, .03) 55%, transparent); opacity: 0; transition: opacity .6s; will-change: transform; }
.spot.on { opacity: 1; }

/* ---------- transição entre telas (View Transitions) ---------- */
main { view-transition-name: pagina; }
.dock { view-transition-name: dock; }
.top, .progress { view-transition-name: none; }
::view-transition-group(pagina) { animation-duration: .6s; }
::view-transition-old(pagina) { animation: vt-out .38s cubic-bezier(.4, 0, .2, 1) both; }
::view-transition-new(pagina) { animation: vt-in .62s cubic-bezier(.2, .8, .2, 1) both; }
html[data-dir="back"]::view-transition-old(pagina) { animation-name: vt-out-back; }
html[data-dir="back"]::view-transition-new(pagina) { animation-name: vt-in-back; }
@keyframes vt-out { to { opacity: 0; transform: translateX(-60px) scale(.97); filter: blur(14px); } }
@keyframes vt-in { from { opacity: 0; transform: translateX(70px) scale(1.02); filter: blur(14px); } }
@keyframes vt-out-back { to { opacity: 0; transform: translateX(60px) scale(.97); filter: blur(14px); } }
@keyframes vt-in-back { from { opacity: 0; transform: translateX(-70px) scale(1.02); filter: blur(14px); } }

/* ---------- entrada escalonada (só quando a tela abre) ---------- */
.step.enter .choices > *, .step.enter .pacotes > *, .step.enter .divisor, .step.enter .resumo, .step.enter .sec > .lab {
  animation: surge .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 55ms + 120ms);
}
@keyframes surge { from { opacity: 0; transform: translateY(26px) scale(.98); filter: blur(8px); } }

/* ---------- título: palavras que surgem ---------- */
.w { display: inline-block; white-space: pre; }
.step.enter .w { animation: palavra .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--w, 0) * 90ms + 150ms); }
@keyframes palavra { from { opacity: 0; transform: translateY(.55em) rotateX(-40deg); filter: blur(12px); } }
h1 em.fire, h2 em.fire { background-size: 220% 100%; animation: brilho 5s ease-in-out infinite; }
@keyframes brilho { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }

/* ---------- horizonte: camadas que andam em velocidades diferentes ---------- */
.horizon { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.horizon .layer { position: absolute; left: -2%; right: -2%; will-change: transform; }
.horizon .layer svg { display: block; width: 100%; height: 22vh; }
.horizon .layer i { display: block; height: 170vh; }
.horizon .far  { top: 34vh; } .horizon .far  svg path { fill: rgba(110, 150, 235, .075); } .horizon .far  i { background: rgba(110, 150, 235, .075); }
.horizon .mid  { top: 56vh; } .horizon .mid  svg path { fill: rgba(60, 105, 205, .10); }   .horizon .mid  i { background: rgba(60, 105, 205, .10); }
.horizon .near { top: 78vh; } .horizon .near svg path { fill: rgba(3, 8, 22, .55); }       .horizon .near i { background: rgba(3, 8, 22, .55); }

/* ---------- setinha do 8X (só o traço) + película ---------- */
.hero { position: relative; }
.seta8x { position: absolute; z-index: -1; right: -16%; top: -8%; width: min(52vw, 300px); pointer-events: none; overflow: visible; animation: flutua 9s ease-in-out infinite alternate; }
.seta8x .tr { fill: none; stroke: url(#sg); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .5; animation: traco 2.4s cubic-bezier(.5, 0, .2, 1) .2s forwards; }
.seta8x .dobra { opacity: .5; }
@keyframes traco { to { stroke-dashoffset: 0; } }
@keyframes flutua { to { transform: translateY(14px) rotate(-1.5deg); } }
.film { position: absolute; z-index: -1; left: -12%; right: -12%; bottom: -6%; height: 72px; pointer-events: none; opacity: .17; transform: rotate(-5deg);
  background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='72'%3E%3Cg fill='rgba(255,255,255,.55)'%3E%3Crect x='10' y='6' width='12' height='9' rx='2'/%3E%3Crect x='10' y='57' width='12' height='9' rx='2'/%3E%3Crect x='40' y='6' width='12' height='9' rx='2'/%3E%3Crect x='40' y='57' width='12' height='9' rx='2'/%3E%3Crect x='70' y='6' width='12' height='9' rx='2'/%3E%3Crect x='70' y='57' width='12' height='9' rx='2'/%3E%3Crect x='100' y='6' width='12' height='9' rx='2'/%3E%3Crect x='100' y='57' width='12' height='9' rx='2'/%3E%3Crect x='130' y='6' width='12' height='9' rx='2'/%3E%3Crect x='130' y='57' width='12' height='9' rx='2'/%3E%3Crect x='160' y='6' width='12' height='9' rx='2'/%3E%3Crect x='160' y='57' width='12' height='9' rx='2'/%3E%3Crect x='190' y='6' width='12' height='9' rx='2'/%3E%3Crect x='190' y='57' width='12' height='9' rx='2'/%3E%3Crect x='220' y='6' width='12' height='9' rx='2'/%3E%3Crect x='220' y='57' width='12' height='9' rx='2'/%3E%3C/g%3E%3Cg fill='rgba(150,185,255,.10)' stroke='rgba(255,255,255,.45)' stroke-width='1.2'%3E%3Crect x='8' y='21' width='108' height='30' rx='3'/%3E%3Crect x='126' y='21' width='108' height='30' rx='3'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / 240px 72px; animation: rola 70s linear infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
@keyframes rola { to { background-position-x: -240px; } }

/* ---------- cartões 3D com brilho que segue o dedo/cursor ---------- */
.choice, .pkg, .resumo.mini { position: relative; transform-style: preserve-3d; }
.choice { overflow: hidden; }
.choice.tilt, .pkg.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transition: transform .12s ease-out, border-color .25s, background .25s; }
.choice:not(.tilt):hover, .pkg:not(.tilt):hover { transform: translateY(-2px); }
.choice::after, .pkg::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .13), transparent 60%); }
.choice.tilt::after, .pkg.tilt::after { opacity: 1; }
.choice.sel::before, .pkg.sel::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: conic-gradient(from var(--ang, 0deg), rgba(242, 193, 78, .0), rgba(242, 193, 78, .9), rgba(91, 155, 255, .8), rgba(242, 193, 78, .0) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: giraBorda 5s linear infinite; }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes giraBorda { to { --ang: 360deg; } }

/* ondinha ao tocar */
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 255, 255, .35), transparent 65%); transform: scale(0); animation: onda .65s ease-out forwards; }
@keyframes onda { to { transform: scale(1); opacity: 0; } }

/* ---------- botões: brilho que varre + magnético ---------- */
.btn { position: relative; overflow: hidden; will-change: transform; }
.btn.fire::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: varre 4.5s ease-in-out infinite; }
@keyframes varre { 0%, 60% { left: -60%; } 100% { left: 140%; } }

/* ---------- total que pulsa ao mudar ---------- */
.dock .tot b { display: inline-block; }
.dock .tot b.flash { animation: pulsa .7s ease; }
@keyframes pulsa { 30% { transform: scale(1.12); text-shadow: 0 0 22px rgba(242, 193, 78, .9); color: #ffe7a6; } }
.progress i { position: relative; box-shadow: 0 0 12px rgba(242, 193, 78, .8); }
.progress i::after { content: ''; position: absolute; right: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #fff3c9; box-shadow: 0 0 14px 4px rgba(242, 193, 78, .9); }

/* ---------- reduzir movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .seta8x .tr { stroke-dashoffset: 0 !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- assinatura no rodapé: o traço se desenha ao chegar no fim ---------- */
.rodape { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 20px 36px; }
body.com-dock .rodape { padding-bottom: 112px; }
.rodape .seta-mini { width: 62px; overflow: visible; }
.rodape .tr { fill: none; stroke: url(#sg2); stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.rodape .dobra { opacity: .55; }
.rodape p { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); opacity: 0; transform: translateY(8px); transition: opacity .9s ease 1.4s, transform .9s ease 1.4s; }
.rodape.vis .tr { animation: traco 2.2s cubic-bezier(.5, 0, .2, 1) forwards; }
.rodape.vis p { opacity: .8; transform: none; }
@media (prefers-reduced-motion: reduce) { .rodape .tr { stroke-dashoffset: 0 !important; } .rodape p { opacity: .8; transform: none; } }

/* ---------- portfólio ---------- */
.pf { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #02060f; box-shadow: 0 24px 60px -30px rgba(0,0,0,.8); }
.pf.vert { aspect-ratio: 9 / 16; max-width: 320px; margin: 0 auto; }
.pf iframe, .pf video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.pf-facade { position: absolute; inset: 0; width: 100%; height: 100%; background-size: cover; background-position: center; display: grid; place-items: center; cursor: pointer; }
.pf-facade::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,12,29,.15), rgba(5,12,29,.55)); }
.pf-play { position: relative; z-index: 1; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; padding-left: 5px; color: #0a1228; background: var(--fire); box-shadow: 0 10px 40px -8px rgba(242,193,78,.7); transition: transform .2s; }
.pf-facade:hover .pf-play { transform: scale(1.08); }
