/* DestravaProxy · animações compartilhadas (leves, só transform/opacity) */
:root{--ease-out:cubic-bezier(.16,1,.3,1);--ease-spring:cubic-bezier(.34,1.56,.64,1)}

/* ---------- entrada em cascata ---------- */
@keyframes mo-up{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes mo-fade{from{opacity:0}to{opacity:1}}
@keyframes mo-blur-in{from{opacity:0;filter:blur(10px);transform:translateY(10px)}to{opacity:1;filter:none;transform:none}}
.mo-stagger>*{opacity:0;animation:mo-up .8s var(--ease-out) forwards;animation-delay:calc(var(--i,0) * 90ms + 120ms)}
.mo-words .w{display:inline-block;opacity:0;animation:mo-blur-in .9s var(--ease-out) forwards;animation-delay:calc(var(--i,0) * 70ms + 200ms)}

/* ---------- revelar ao rolar ---------- */
.mo-reveal{opacity:0;transform:translateY(28px);transition:opacity .9s var(--ease-out),transform .9s var(--ease-out);transition-delay:calc(var(--i,0) * 80ms)}
.mo-reveal.in{opacity:1;transform:none}

/* ---------- painel do topo: entra, flutua e inclina com o mouse ---------- */
@keyframes mo-dash-in{from{opacity:0;transform:perspective(1200px) rotateX(14deg) translateY(40px) scale(.96)}to{opacity:1;transform:perspective(1200px) rotateX(0) translateY(0) scale(1)}}
.mo-dash{animation:mo-dash-in 1.2s var(--ease-out) .35s both;transform-style:preserve-3d}
.mo-tilt{transition:transform .5s var(--ease-out);will-change:transform}

/* ---------- linha do gráfico se desenhando ---------- */
@keyframes mo-draw{to{stroke-dashoffset:0}}
.mo-draw{stroke-dasharray:var(--len,1200);stroke-dashoffset:var(--len,1200);animation:mo-draw 1.6s var(--ease-out) forwards;animation-delay:var(--dd,.6s)}
.mo-draw~circle{opacity:0;animation:mo-fade .5s ease forwards;animation-delay:calc(var(--dd,.6s) + 1s)}
.mo-area{opacity:0;animation:mo-fade 1.2s ease forwards;animation-delay:calc(var(--dd,.6s) + .5s)}

/* ---------- brilho de fundo respirando ---------- */
@keyframes mo-breathe{0%,100%{opacity:.6;transform:scale(1) translate(0,0)}50%{opacity:1;transform:scale(1.15) translate(-12px,10px)}}
.mo-breathe{animation:mo-breathe 7s ease-in-out infinite}

/* ---------- pontinho "ao vivo" ---------- */
@keyframes mo-ping{0%{box-shadow:0 0 0 0 currentColor}70%,100%{box-shadow:0 0 0 7px transparent}}
.mo-live{color:inherit;animation:mo-ping 2s cubic-bezier(0,0,.2,1) infinite}

/* ---------- brilho que segue o mouse nos cards ---------- */
.mo-spot{position:relative;isolation:isolate}
.mo-spot::after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;opacity:0;transition:opacity .35s ease;
  background:radial-gradient(420px circle at var(--mx,50%) var(--my,50%),rgba(52,211,153,.10),transparent 45%)}
.mo-spot::before{content:'';position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;padding:1px;opacity:0;transition:opacity .35s ease;
  background:radial-gradient(260px circle at var(--mx,50%) var(--my,50%),rgba(52,211,153,.55),transparent 60%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
.mo-spot:hover::after,.mo-spot:hover::before{opacity:1}
.mo-lift{transition:transform .4s var(--ease-out),border-color .2s}
.mo-lift:hover{transform:translateY(-4px)}

/* ---------- botão principal: reflexo passando ---------- */
.mo-shine{position:relative;overflow:hidden}
.mo-shine::after{content:'';position:absolute;top:0;bottom:0;left:-60%;width:40%;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);transform:skewX(-20deg);transition:none}
.mo-shine:hover::after{left:130%;transition:left .75s var(--ease-out)}
.mo-press{transition:transform .15s ease}
.mo-press:active{transform:scale(.97)}

/* ---------- barra do topo ao rolar ---------- */
nav.mo-nav{transition:background .3s ease,box-shadow .3s ease}
nav.mo-nav.scrolled{background:rgba(10,10,10,.95);box-shadow:0 8px 30px rgba(0,0,0,.45)}

/* ---------- painel: troca de aba, barras, seleção ---------- */
@keyframes mo-page{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.page.active>*{animation:mo-page .55s var(--ease-out) both;animation-delay:calc(var(--i,0) * 60ms)}
@keyframes mo-grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.mo-grow{transform-origin:left;animation:mo-grow 1.1s var(--ease-out) .2s both}
@keyframes mo-pop{0%{transform:scale(1)}40%{transform:scale(1.045)}100%{transform:scale(1)}}
.mo-pop{animation:mo-pop .35s var(--ease-spring)}
@keyframes mo-flash{0%{color:var(--pink);transform:translateY(-3px)}100%{transform:none}}
.mo-flash{animation:mo-flash .5s var(--ease-out)}
@keyframes mo-modal{from{opacity:0;transform:translateY(16px) scale(.96)}to{opacity:1;transform:none}}
.modal-bg[style*="flex"] .modal{animation:mo-modal .45s var(--ease-out)}
@keyframes mo-toast{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.mo-toast{animation:mo-toast .35s var(--ease-out)}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-delay:0s !important;transition-duration:.01ms !important}
  .mo-reveal,.mo-stagger>*,.mo-words .w{opacity:1 !important;transform:none !important;filter:none !important}
}
