/* ============================================================
   AudSaúde — Animações avançadas (health/audit tech)
   ============================================================ */

/* ---------- aurora / mesh de fundo ---------- */
.aurora {
  position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  filter: blur(70px); opacity: .55;
  background:
    radial-gradient(40% 40% at 18% 28%, rgba(46,81,173,.6), transparent 70%),
    radial-gradient(35% 35% at 82% 72%, rgba(139,92,246,.5), transparent 70%),
    radial-gradient(28% 28% at 62% 18%, rgba(151,206,46,.4), transparent 70%);
  animation: auroraMove 16s ease-in-out infinite alternate;
}
@keyframes auroraMove {
  0%   { transform: translate(-2%, -1%) rotate(-3deg) scale(1); }
  100% { transform: translate(2%, 3%) rotate(4deg) scale(1.18); }
}

/* ---------- linha de ECG (eletrocardiograma) ---------- */
.hero-inner { padding: 48px 0; }
.ekg {
  position: absolute; left: 0; right: 0; bottom: 0; height: 92px; z-index: 2;
  pointer-events: none; opacity: .85;
}
.ekg svg { width: 100%; height: 100%; display: block; }
.ekg path {
  fill: none; stroke: var(--verde); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 50 50;
  filter: drop-shadow(0 0 8px rgba(151,206,46,.9));
  animation: ekgScroll 5s linear infinite;
}
@keyframes ekgScroll {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -100; }
}

/* ---------- cursor glow ---------- */
.cursor-glow {
  position: absolute; left: 0; top: 0; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.22), rgba(151,206,46,.1) 40%, transparent 70%);
  pointer-events: none; z-index: 1; filter: blur(8px); will-change: transform;
  transform: translate(-210px, -210px);
}

/* ---------- ticker de serviços ---------- */
.tech-ticker {
  background: linear-gradient(90deg, var(--azul), #4C1d95);
  overflow: hidden; padding-block: 15px; position: relative; border-top: 1px solid rgba(255,255,255,.12);
}
.tech-ticker::before, .tech-ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.tech-ticker::before { left: 0; background: linear-gradient(90deg, rgba(46,81,173,.9), transparent); }
.tech-ticker::after  { right: 0; background: linear-gradient(-90deg, rgba(76,29,149,.9), transparent); }
.ticker-track {
  display: flex; width: max-content; white-space: nowrap;
  animation: tickerScroll 32s linear infinite;
}
.tech-ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: flex; align-items: center; gap: 42px; padding-right: 42px;
  color: #fff; font-family: var(--fonte-titulo); font-weight: 500; font-size: .95rem; letter-spacing: .02em;
}
.ticker-item i { color: var(--verde); }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- indicadores: anéis de progresso ---------- */
.indicadores-secao { padding: 84px 0; background: #fff; position: relative; }
.rings-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 48px; text-align: center; }
.ring-wrap { position: relative; width: 150px; height: 150px; margin: 0 auto 12px; display: grid; place-items: center; }
.ring-wrap svg { width: 150px; height: 150px; transform: rotate(-90deg); }
.ring-trilha { fill: none; stroke: #EDF2F7; stroke-width: 11; }
.ring-preenche {
  fill: none; stroke-width: 11; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(151,206,46,.5));
}
.ring-num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--fonte-titulo); font-size: 1.55rem; font-weight: 700; color: var(--azul);
}
.ring-box p { font-size: .88rem; color: var(--texto); font-weight: 500; }

/* ---------- pulso de cruz médica (CTA) ---------- */
.cross-pulse {
  position: absolute; right: 7%; bottom: -30px; width: 120px; height: 120px;
  opacity: .4; pointer-events: none; z-index: 1;
}
.cross-pulse .cruz {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 12px; background: var(--verde);
  display: grid; place-items: center; box-shadow: 0 0 30px rgba(151,206,46,.8);
}
.cross-pulse .cruz::before, .cross-pulse .cruz::after {
  content: ""; position: absolute; background: #0F172A; border-radius: 2px;
}
.cross-pulse .cruz::before { width: 26px; height: 9px; }
.cross-pulse .cruz::after  { width: 9px; height: 26px; }
.cross-pulse .onda {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border: 2px solid var(--verde); border-radius: 12px;
  width: 54px; height: 54px; animation: cruzOnda 2.4s ease-out infinite;
}
@keyframes cruzOnda {
  0%   { width: 54px; height: 54px; opacity: .9; }
  100% { width: 150px; height: 150px; opacity: 0; }
}

/* ---------- cards 3D tilt ---------- */
.card-servico {
  transform-style: preserve-3d;
  transition: box-shadow .25s, border-color .25s;
  will-change: transform;
}
.card-servico:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
}
.card-servico .icone { transform: translateZ(24px); }

/* ---------- botões magnéticos ---------- */
.magnetic { transition: transform .18s ease-out; will-change: transform; }

/* ---------- glow sutil no rodapé de seções ---------- */
.rodape { position: relative; }
.rodape::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--verde), transparent);
  animation: scanTop 4s ease-in-out infinite;
}

/* ---------- respiro dos ícones nos pilares ---------- */
.pilar i { animation: pilarBreathe 3.6s ease-in-out infinite; }
.pilar:nth-child(2) i { animation-delay: .8s; }
.pilar:nth-child(3) i { animation-delay: 1.6s; }
@keyframes pilarBreathe {
  0%, 100% { transform: scale(1) translateY(0); }
  50%      { transform: scale(1.15) translateY(-4px); }
}

/* ---------- responsivo ---------- */
@media (max-width: 992px) {
  .rings-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .rings-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .ring-wrap, .ring-wrap svg { width: 120px; height: 120px; }
  .hero-inner { padding-bottom: 96px; }
  .cursor-glow { display: none; }
}
