/* ============================================================
   AudSaúde — Visual Tech (futurista/digital)
   ============================================================ */

/* ---------- grid de tecnologia ---------- */
.tech-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 75%);
          mask: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero .tech-grid { opacity: .7; }

/* ---------- partículas (canvas) ---------- */
#particulas { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

/* ---------- card dashboard tech no hero ---------- */
.hero-visual { position: relative; z-index: 3; }

.hero-card-tech {
  background: rgba(10, 20, 45, .55);
  border: 1px solid rgba(151,206,46,.35);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.04), 0 0 40px rgba(46,81,173,.25);
  position: relative; overflow: hidden;
}
.hero-card-tech::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 85% -10%, rgba(139,92,246,.35), transparent 55%);
  pointer-events: none;
}
.hero-card-tech::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--verde), transparent);
  animation: scanTop 3.5s ease-in-out infinite;
}
@keyframes scanTop { 0%,100% { transform: translateX(-30%); opacity:.3; } 50% { transform: translateX(30%); opacity:1; } }

.tech-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tech-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--fonte-titulo); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.tech-live .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--verde); position: relative; }
.tech-live .dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--verde); animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.tech-ico { color: var(--verde); font-size: 1.1rem; }

/* ---------- gráfico de barras animado ---------- */
.tech-bars { display: flex; gap: 10px; align-items: flex-end; height: 130px; padding-top: 8px; }
.tech-bars .tbar { flex: 1; display: flex; flex-direction: column; gap: 6px; height: 100%; justify-content: flex-end; }
.tech-bars .tbar-label { text-align: center; font-size: .62rem; color: rgba(255,255,255,.55); font-family: var(--fonte-titulo); }
.tech-bars .tbar-track { position: relative; height: 100%; display: flex; align-items: flex-end; }
.tech-bars .tbar-fill {
  width: 100%; height: 0;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--verde), rgba(46,81,173,.25));
  transform-origin: bottom;
  animation: barGrow 1.4s cubic-bezier(.22,.61,.36,1) both;
  box-shadow: 0 0 14px rgba(151,206,46,.4);
}
@keyframes barGrow { from { height: 0; } }

/* ---------- rodapé do card ---------- */
.tech-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.tech-foot > div { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px 14px; }
.tech-foot small { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.tech-foot strong { font-family: var(--fonte-titulo); font-size: 1.25rem; color: var(--verde); }

/* ---------- chips tech flutuantes ---------- */
.tech-chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 8px;
  background: rgba(10,20,45,.6); border: 1px solid rgba(151,206,46,.4); color: #fff;
  padding: 9px 14px; border-radius: 40px; font-family: var(--fonte-titulo); font-size: .72rem; font-weight: 600;
  backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0,0,0,.35);
  animation: chipFloat 6s ease-in-out infinite;
}
.tech-chip i { color: var(--verde); }
.tech-chip.c1 { top: -18px; right: 6%; animation-delay: .4s; }
.tech-chip.c2 { bottom: -16px; left: 8%; animation-delay: 1.2s; }
.tech-chip.c3 { top: 38%; right: -14px; animation-delay: 2s; }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- linha de dados "terminal" ---------- */
.tech-terminal {
  margin-top: 16px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 12px 14px; font-family: 'Inter', monospace; font-size: .72rem; color: rgba(255,255,255,.75);
  display: flex; flex-direction: column; gap: 5px; overflow: hidden;
}
.tech-terminal .linha { display: flex; justify-content: space-between; white-space: nowrap; }
.tech-terminal .ok { color: var(--verde); }
.tech-terminal .blink { animation: blinkCursor 1.1s step-end infinite; color: var(--verde); }
@keyframes blinkCursor { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ---------- anéis orbitais decorativos ---------- */
.ring-orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(151,206,46,.35); pointer-events: none; }
.ring-orbit.r1 { width: 120px; height: 120px; top: -30px; left: -30px; animation: spin 22s linear infinite; }
.ring-orbit.r2 { width: 90px; height: 90px; bottom: 40px; right: -24px; animation: spin 16s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- glow em seções alt ---------- */
.bg-alt { position: relative; }
.bg-alt .tech-grid { background-image:
  linear-gradient(rgba(46,81,173,.05) 1px, transparent 1px),
  linear-gradient(90deg, rgba(46,81,173,.05) 1px, transparent 1px); }

/* ---------- botão primário gradiente animado ---------- */
.btn-cta-azul {
  background: linear-gradient(120deg, var(--azul), var(--roxo), var(--azul));
  background-size: 220% 100%;
  animation: gradientShift 5s ease-in-out infinite;
  color: #fff;
}
@keyframes gradientShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- barras de progresso (diferenciais) ---------- */
.tech-meter { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: .72rem; color: rgba(255,255,255,.7); font-family: var(--fonte-titulo); }
.tech-meter .trilho { flex: 1; height: 6px; background: rgba(255,255,255,.12); border-radius: 6px; overflow: hidden; }
.tech-meter .preenche { height: 100%; width: 0; background: linear-gradient(90deg, var(--azul), var(--verde)); border-radius: 6px; animation: meterFill 1.6s cubic-bezier(.22,.61,.36,1) .3s both; box-shadow: 0 0 8px rgba(151,206,46,.6); }
@keyframes meterFill { from { width: 0; } }

@media (max-width: 992px) {
  .hero-visual { display: none; }
}