/*
 * CENTRYA — Camada de animação dinâmica
 * Animações leves, elegantes, sem ruído — alinhadas à identidade visual.
 * Carregado após main.css; não sobrescreve tokens ou layout.
 */

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
  z-index: 999;
  border-radius: 0 2px 2px 0;
  pointer-events: none;
  will-change: width;
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
::-webkit-scrollbar            { width: 5px; }
::-webkit-scrollbar-track      { background: var(--bone); }
::-webkit-scrollbar-thumb      { background: var(--brand); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover{ background: var(--brand-deep); }

/* ===== EYEBROW DOT — GLOW RESPIRAÇÃO ===== */
.eyebrow::before {
  animation: eyebrowGlow 3.5s ease-in-out infinite;
}
@keyframes eyebrowGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30, 63, 224, .5); }
  50%       { box-shadow: 0 0 0 5px rgba(30, 63, 224, 0); transform: scale(1.25); }
}

/* ===== HERO CHART BARS — CRESCIMENTO DO ZERO ===== */
.hero-chart .bars i {
  transform-origin: bottom center;
  animation: barGrow 1.5s cubic-bezier(.4, 0, .2, 1) backwards;
}
.hero-chart .bars i:nth-child(1)  { animation-delay: .55s; }
.hero-chart .bars i:nth-child(2)  { animation-delay: .62s; }
.hero-chart .bars i:nth-child(3)  { animation-delay: .68s; }
.hero-chart .bars i:nth-child(4)  { animation-delay: .74s; }
.hero-chart .bars i:nth-child(5)  { animation-delay: .80s; }
.hero-chart .bars i:nth-child(6)  { animation-delay: .86s; }
.hero-chart .bars i:nth-child(7)  { animation-delay: .92s; }
.hero-chart .bars i:nth-child(8)  { animation-delay: .98s; }
.hero-chart .bars i:nth-child(9)  { animation-delay: 1.04s; }
.hero-chart .bars i:nth-child(10) { animation-delay: 1.10s; }
@keyframes barGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* ===== HERO KPI VALUES — ENTRADA ===== */
.hero-kpi .value {
  animation: kpiIn .8s cubic-bezier(.4, 0, .2, 1) .95s both;
}
@keyframes kpiIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ===== TRUST STRIP — STAGGER ENTRADA ===== */
.trust-item {
  animation: trustIn .8s cubic-bezier(.2, .7, .2, 1) both;
}
.trust-item:nth-child(1) { animation-delay: .75s; }
.trust-item:nth-child(2) { animation-delay: .92s; }
.trust-item:nth-child(3) { animation-delay: 1.08s; }
.trust-item:nth-child(4) { animation-delay: 1.24s; }
@keyframes trustIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ===== SERVICE ICON — POP AO HOVER ===== */
.service:hover .service-icon svg {
  animation: iconPop .45s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes iconPop {
  0%   { transform: scale(1) rotate(0deg); }
  45%  { transform: scale(1.28) rotate(-10deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* ===== SERVICE FEATURED — GLOW PULSANTE ===== */
@keyframes featuredGlow {
  0%, 100% { box-shadow: var(--shadow-2); }
  50%       { box-shadow: var(--shadow-2), 0 0 32px 6px rgba(30, 63, 224, .16); }
}
.service.is-featured {
  animation: featuredGlow 5s ease-in-out infinite;
}

/* ===== HERO CARD OUTER — WRAPPER PARA 3D TILT ===== */
.hero-card-outer {
  will-change: transform;
  transform-style: preserve-3d;
}

/* ===== FAQ ANSWER — EXPAND SUAVE AO ABRIR ===== */
details[open] .faq-answer {
  animation: faqExpand .35s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes faqExpand {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* ===== ABOUT CAPS — PONTO BRAND NO HOVER ===== */
.about-cap {
  position: relative;
}
.about-cap::after {
  content: "";
  position: absolute;
  top: 14px; right: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0;
  transform: scale(0);
  transition: opacity .3s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.about-cap:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* ===== NAV CTA — SPOTLIGHT SEGUINDO O MOUSE ===== */
.nav-cta {
  position: relative;
  overflow: hidden;
}
.nav-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, .20) 0%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  border-radius: 999px;
}
.nav-cta:hover::after { opacity: 1; }

/* ===== FORM INPUTS — GLOW AO FOCO ===== */
.field input:focus,
.field textarea:focus,
.field select:focus {
  box-shadow: 0 0 0 3px rgba(30, 63, 224, .22);
}

/* ===== PROCESS STEP — NÚMERO ENTRA COM BOUNCE ===== */
.process-step.reveal.in::before {
  animation: stepNumBounce .6s cubic-bezier(.34, 1.56, .64, 1) .1s both;
}
@keyframes stepNumBounce {
  from { transform: translateY(8px) scale(.8); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ===== PROOF MARKS — PONTO DOT BLINK ===== */
.proof-marks .mark-client .dot-brand {
  animation: clientDot 2.8s ease-in-out infinite;
}
@keyframes clientDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30, 63, 224, .45); }
  60%       { box-shadow: 0 0 0 6px rgba(30, 63, 224, 0); }
}

/* ===== HERO BG — ORBS FLUTUANTES ADICIONAIS ===== */
.hero-bg::after {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  top: 55%; left: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 63, 224, .055) 0%, transparent 70%);
  pointer-events: none;
  animation: orbDrift 18s ease-in-out infinite alternate;
}
@keyframes orbDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, 25px) scale(1.12); }
}

/* ===== CTA SECTION — SHIMMER NO FUNDO ===== */
.cta-section::before {
  animation: ctaShimmer 9s ease-in-out infinite alternate;
}
@keyframes ctaShimmer {
  from { opacity: 1; }
  to   { opacity: .75; }
}

/* ===== FOOTER LOGO — HOVER SUAVE ===== */
.footer-brand .logo:hover .logo-mark {
  filter: drop-shadow(0 0 8px rgba(30, 63, 224, .5));
}

/* ===== PREFERS-REDUCED-MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
