/* =========================================================
   ANIMAÇÕES — estilo "Apple": 3D, giratório e guiado pela rolagem
   ========================================================= */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* Barra de progresso da rolagem */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 12px rgba(150, 80, 255, .8); }

/* Brilho que segue o mouse */
.cursor-glow { position: fixed; left: 0; top: 0; z-index: -1; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(120, 60, 255, .16), transparent 65%); transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0); }
@media (hover: none) { .cursor-glow { display: none; } }

/* Gradiente animado nos textos */
.gradient-text { background: linear-gradient(100deg, #c07bff, #7b2bff, #3b7dff, #c07bff); background-size: 300% auto; -webkit-background-clip: text; background-clip: text; animation: gradShift 6s linear infinite; }
@keyframes gradShift { to { background-position: 300% center; } }

/* Título: palavras sobem uma a uma */
.split-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split-title .w > span { display: inline-block; transform: translateY(110%) rotate(8deg); opacity: 0; animation: wordUp 1s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(.15s + var(--wi) * .09s); }
@keyframes wordUp { to { transform: none; opacity: 1; } }
.hero-description.reveal { transition-delay: .7s; }
.hero-actions.reveal { transition-delay: .9s; }

/* Parallax do topo (valores vêm do JS) */
.hero-solo { transform: translate3d(0, var(--hy, 0px), 0) scale(var(--hs, 1)); opacity: var(--ho, 1); }
.hero-solo.at-top { transform: none; }

/* Brilho passando nos botões */
.button-primary, .button-whatsapp { overflow: hidden; }
.button-primary::after, .button-whatsapp::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: shine 3.5s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* ---------- Carrossel 3D giratório ---------- */
.orbit-stage { --r: clamp(220px, 40vw, 430px); position: relative; height: 470px; margin-top: 10px; perspective: 1400px; perspective-origin: 50% 30%; opacity: 0; animation: fadeUp 1.4s 1s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(60px) scale(.9); } to { opacity: 1; transform: none; } }
.orbit-tilt { position: absolute; left: 50%; top: 46%; transform-style: preserve-3d; transform: rotateX(var(--tilt, -12deg)) scale(var(--os, 1)); }
.orbit-ring { transform-style: preserve-3d; animation: spinY 26s linear infinite; }
.orbit-stage:hover .orbit-ring { animation-duration: 60s; }
@keyframes spinY { to { transform: rotateY(-360deg); } }
.orbit-item { position: absolute; left: -105px; top: -34px; width: 210px; height: 68px; display: flex; align-items: center; gap: 12px; padding: 0 18px; font-size: 24px; border-radius: 18px; border: 1px solid rgba(170, 130, 255, .45);
  background: linear-gradient(145deg, rgba(40, 26, 100, .85), rgba(12, 14, 40, .9)); box-shadow: 0 0 30px rgba(110, 50, 255, .35), inset 0 1px 0 rgba(255,255,255,.12);
  transform: rotateY(calc(var(--i) * 45deg)) translateZ(var(--r)); backface-visibility: hidden; }
.orbit-item b { font-family: var(--display); font-size: 14px; font-weight: 600; color: #fff; line-height: 1.2; }
.orbit-core { position: absolute; left: 50%; top: 46%; width: 170px; height: 170px; margin: -85px 0 0 -85px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #0e0b26 52%, #2a0f6e 78%, #6a1fff 100%); border: 1px solid rgba(190, 140, 255, .55); box-shadow: 0 0 80px rgba(130, 50, 255, .7), 0 0 160px rgba(60, 90, 255, .4), inset 0 0 40px rgba(130, 60, 255, .45); animation: breathe 5s ease-in-out infinite; }
.orbit-core::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid transparent; border-top-color: rgba(200, 150, 255, .9); border-right-color: rgba(59, 125, 255, .6); animation: spin 3s linear infinite; }
.orbit-core::after { content: ""; position: absolute; inset: -34px; border-radius: 50%; border: 1px dashed rgba(160, 130, 255, .35); animation: spin 18s linear infinite reverse; }
.core-logo { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.5px; color: #fff; line-height: 1; white-space: nowrap; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { box-shadow: 0 0 110px rgba(130, 50, 255, .95), 0 0 200px rgba(60, 90, 255, .55), inset 0 0 55px rgba(150, 80, 255, .65); } }
.orbit-floor { position: absolute; left: 50%; bottom: 10px; width: 760px; height: 120px; margin-left: -380px; border-radius: 50%; background: radial-gradient(ellipse, rgba(110, 50, 255, .35), transparent 70%); filter: blur(10px); }

.scroll-hint { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 10px; color: var(--muted); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; opacity: var(--ho, 1); }
.scroll-hint span { width: 24px; height: 38px; border-radius: 14px; border: 2px solid rgba(170, 140, 255, .5); position: relative; }
.scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #c084ff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Frase que acende palavra por palavra ---------- */
.statement { position: relative; height: 230vh; }
.statement-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; }
.statement-text { width: min(1050px, calc(100% - 48px)); font-family: var(--display); font-size: clamp(30px, 5vw, 64px); font-weight: 700; line-height: 1.18; letter-spacing: -1.5px; text-align: center; }
.statement-text .sw { display: inline-block; opacity: .12; transform: translateY(14px) scale(.96); filter: blur(4px); transition: opacity .35s, transform .35s, filter .35s; }
.statement-text .sw.on { opacity: 1; transform: none; filter: none; }
.statement-text .sw.hl.on { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Cards: entrada 3D + inclinação + borda giratória ---------- */
.card-wrap { height: 100%; }
.reveal-3d { opacity: 0; transform: perspective(1000px) rotateX(40deg) translateY(90px) scale(.88); transform-origin: 50% 100%; transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal-3d.is-visible { opacity: 1; transform: perspective(1000px); }
.service-card { height: 100%; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s; }
.service-card:hover { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px); box-shadow: 0 30px 60px -20px rgba(100, 40, 255, .55); transition: transform .12s linear, border-color .3s, box-shadow .3s; }
.card-border { position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: .4; transition: opacity .3s;
  background: conic-gradient(from var(--ang), transparent 0 60%, #b05bff 75%, #3b7dff 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: angSpin 5s linear infinite; }
.card-wrap:nth-child(2n) .card-border { animation-delay: -2.5s; }
.service-card:hover .card-border { opacity: 1; animation-duration: 2s; }
@keyframes angSpin { to { --ang: 360deg; } }
.service-icon { animation: iconFloat 4s ease-in-out infinite; }
.card-wrap:nth-child(2) .service-icon { animation-delay: -.7s; } .card-wrap:nth-child(3) .service-icon { animation-delay: -1.4s; }
.card-wrap:nth-child(4) .service-icon { animation-delay: -2.1s; } .card-wrap:nth-child(5) .service-icon { animation-delay: -2.8s; } .card-wrap:nth-child(6) .service-icon { animation-delay: -3.5s; }
@keyframes iconFloat { 50% { transform: translateY(-7px); } }
.service-icon svg { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.service-card:hover .service-icon svg { transform: rotateY(360deg) scale(1.1); }

/* Título das seções: zoom suave ao entrar */
.section-heading.reveal { transform: translateY(40px) scale(.92); }
.section-heading.reveal.is-visible { transform: none; }

/* ---------- Contato: cresce ao rolar + borda girando ---------- */
.contact { perspective: 1400px; }
.contact-panel.zoom-in { transform: scale(var(--z, .86)) rotateX(var(--zr, 12deg)); opacity: var(--zo, .3); transform-origin: 50% 100%; }
.contact-panel.zoom-in.settled { transform: none; opacity: 1; }
.contact-panel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 55%, #c07bff 72%, #2ef08a 84%, #3b7dff 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: angSpin 4s linear infinite; }
.contact-glow { animation: glowMove 8s ease-in-out infinite; }
@keyframes glowMove { 50% { transform: translateX(160px) scale(1.2); } }

/* WhatsApp flutuante com onda */
.whatsapp-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #2ef08a; animation: ripple 2.2s ease-out infinite; }
@keyframes ripple { to { transform: scale(1.7); opacity: 0; } }

/* Celular */
@media (max-width: 900px) {
  .orbit-item { left: -90px; top: -30px; width: 180px; height: 60px; font-size: 20px; gap: 10px; padding: 0 14px; }
  .orbit-item b { font-size: 12.5px; }
}
@media (max-width: 600px) {
  .orbit-stage { height: 360px; perspective: 900px; }
  .orbit-item { left: -78px; top: -26px; width: 156px; height: 52px; font-size: 18px; gap: 8px; padding: 0 12px; border-radius: 14px; }
  .orbit-item b { font-size: 11.5px; }
  .orbit-core { width: 120px; height: 120px; margin: -60px 0 0 -60px; }
  .core-logo { font-size: 19px; }
  .orbit-floor { width: 380px; margin-left: -190px; }
  .statement { height: 200vh; }
  .statement-text { letter-spacing: -.8px; }
}

/* Quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .split-title .w > span, .reveal-3d, .statement-text .sw, .orbit-stage { opacity: 1 !important; transform: none !important; filter: none !important; }
  .contact-panel.zoom-in, .hero-solo { transform: none !important; opacity: 1 !important; }
  .statement { height: auto; padding: 100px 0; }
  .statement-sticky { position: static; height: auto; }
}

/* Topo só com a logo (sem menu) */
.site-header, .site-header.scrolled { position: relative; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.main-nav, .menu-toggle, .header-cta { display: none !important; }

/* Rodapé: logo + Instagram */
.insta-link { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); font-weight: 600; font-size: 14px; transition: color .2s, border-color .2s, transform .2s, background .2s; }
.insta-link:hover { color: #fff; border-color: var(--line-strong); background: rgba(140, 80, 255, .1); transform: translateY(-2px); }
.insta-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.insta-link .fill { fill: currentColor; stroke: none; }

