/* ==========================================================
   PEPTIZE SUPPLY — Estilos customizados
   Paleta primária: #19365A (Deep Biotech Blue)
   ========================================================== */

html {
  scroll-behavior: smooth;
}

body {
  background: #050b18;
}

/* Clip de overflow horizontal no documento.
   Usa overflow-x: hidden (e não clip) por ser a opção mais segura no
   iOS Safari: clip só é suportado a partir do Safari 16 (iOS 16+),
   enquanto hidden funciona em todas as versões. Impede que glows
   decorativos tornem a página rolável horizontalmente no mobile. */
html,
body {
  overflow-x: hidden;
}

::selection {
  background: rgba(56, 225, 255, 0.25);
  color: #e0f2fe;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #060f1d;
}
::-webkit-scrollbar-thumb {
  background: #19365a;
  border-radius: 8px;
  border: 2px solid #060f1d;
}
::-webkit-scrollbar-thumb:hover {
  background: #274e7e;
}

/* ---------- Header fixo (mobile-first) ---------- */
/* Compensa o notch/safe-area do iOS (requer viewport-fit=cover no meta viewport) */
.nav-safe {
  padding-top: env(safe-area-inset-top, 0px);
}

/* Impede que os destinos das âncoras fiquem ocultos sob o header fixo */
[id] {
  scroll-margin-top: calc(4.75rem + env(safe-area-inset-top, 0px));
}
@media (min-width: 1024px) {
  [id] {
    scroll-margin-top: 5.5rem;
  }
}

/* Grade técnica de fundo */
.bg-grid {
  background-image: linear-gradient(rgba(148, 197, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 197, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Texto com gradiente ciano/azul */
.text-gradient {
  background: linear-gradient(100deg, #7dd3fc 0%, #38e1ff 45%, #93c5fd 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Cartão de vidro (glassmorphism) */
.glass {
  background: linear-gradient(160deg, rgba(25, 54, 90, 0.32), rgba(6, 15, 29, 0.62));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Cartão de vidro elevado — mais profundidade e brilho */
.glass-elevated {
  background: linear-gradient(165deg, rgba(25, 54, 90, 0.45) 0%, rgba(10, 22, 40, 0.75) 50%, rgba(6, 15, 29, 0.85) 100%);
  border: 1px solid rgba(56, 225, 255, 0.12);
  box-shadow: 0 8px 32px -8px rgba(2, 8, 20, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Borda gradiente animada */
.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 225, 255, 0.4), rgba(56, 225, 255, 0.05) 40%, rgba(147, 197, 253, 0.05) 60%, rgba(56, 225, 255, 0.3));
  -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, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* Efeito de brilho varrendo o card no hover */
.card-shine {
  position: relative;
  overflow: hidden;
}
.card-shine::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  transform: rotate(25deg);
  transition: left 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}
.card-shine:hover::after {
  left: 120%;
}

/* Micro-interação de hover nos cards */
.card-hover {
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.45s,
    box-shadow 0.45s, background 0.45s;
}
.card-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 225, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(56, 225, 255, 0.12), 0 24px 60px -24px rgba(2, 8, 20, 0.9),
    0 0 32px rgba(56, 225, 255, 0.1);
}

/* Hover aprimorado para cards elevados */
.card-hover-elevated {
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.45s,
    box-shadow 0.45s, background 0.45s;
}
.card-hover-elevated:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(56, 225, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(56, 225, 255, 0.15), 0 32px 64px -20px rgba(2, 8, 20, 0.95),
    0 0 48px rgba(56, 225, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Badge de seção — número + linha */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(56, 225, 255, 0.8);
}
.section-badge::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 225, 255, 0.6));
}
.section-badge::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 225, 255, 0.6), transparent);
}

/* Texto com glow sutil */
.glow-text {
  text-shadow: 0 0 20px rgba(56, 225, 255, 0.3), 0 0 60px rgba(56, 225, 255, 0.1);
}

/* Noise overlay sutil para profundidade */
.noise-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Indicador de scroll animado */
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}
.animate-scroll-bounce {
  animation: scroll-bounce 2s ease-in-out infinite;
}

/* Linha de progresso animada para steps */
@keyframes progress-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.progress-line {
  background: linear-gradient(90deg, rgba(56,225,255,0.1), rgba(56,225,255,0.5), rgba(56,225,255,0.1));
  background-size: 200% 100%;
  animation: progress-flow 3s linear infinite;
}

/* Destaque de coluna em tabela */
.table-highlight-col {
  background: linear-gradient(180deg, rgba(56, 225, 255, 0.08) 0%, rgba(56, 225, 255, 0.03) 100%);
  border-left: 1px solid rgba(56, 225, 255, 0.15);
  border-right: 1px solid rgba(56, 225, 255, 0.15);
}

/* Linha de tabela com hover aprimorado */
.table-row-enhanced {
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.table-row-enhanced:hover {
  background-color: rgba(56, 225, 255, 0.03);
}
.table-row-enhanced:hover td:first-child {
  color: #7dd3fc;
}

/* Step connector dot pulse */
@keyframes step-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 225, 255, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(56, 225, 255, 0); }
}
.step-dot-active {
  animation: step-dot-pulse 2.5s ease-in-out infinite;
}

/* Fade in up genérico */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  animation: fade-in-up 0.6s ease-out both;
}

/* Gradiente de fundo para seções alternadas */
.section-alt-bg {
  background: linear-gradient(180deg, rgba(6, 15, 29, 0) 0%, rgba(25, 54, 90, 0.08) 50%, rgba(6, 15, 29, 0) 100%);
}

/* Flutuação suave (chips técnicos do hero) */
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}
.animate-floaty {
  animation: floaty 7s ease-in-out infinite;
}
.animate-floaty-slow {
  animation: floaty 10s ease-in-out infinite;
}

/* Ponto pulsante (badges/eyebrows) */
@keyframes ping-dot {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}
.animate-ping-dot {
  animation: ping-dot 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Pulso leve do CTA principal do hero */
@keyframes cta-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 24px rgba(56, 225, 255, 0.16), 0 0 72px rgba(25, 54, 90, 0.5);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 34px rgba(56, 225, 255, 0.35), 0 0 90px rgba(25, 54, 90, 0.65);
  }
}
.animate-cta-pulse {
  animation: cta-pulse 2.6s ease-in-out infinite;
}

/* Animações do gráfico térmico cold-chain */
@keyframes cc-draw {
  from {
    stroke-dashoffset: 720;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.cc-draw {
  stroke-dasharray: 720;
  animation: cc-draw 1.5s ease-out both;
}

@keyframes cc-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.cc-fade {
  animation: cc-fade 1.1s ease-out 0.25s both;
}

/* Spotlight vermelho que segue o cursor (cards de risco/impacto) */
.spotlight-red {
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(248, 113, 113, 0.1),
    transparent 70%
  );
}

/* Medidor de severidade — pulso suave nas barras preenchidas */
@keyframes sev-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}
.sev-bar {
  animation: sev-pulse 2.2s ease-in-out infinite;
}

/* Divisor de transição — varredura de luz percorrendo a linha */
@keyframes line-sweep {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    transform: translateX(300%);
    opacity: 0;
  }
}
.animate-line-sweep {
  animation: line-sweep 3.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Seta do divisor — fluxo contínuo indicando transição */
@keyframes arrow-flow {
  0%,
  100% {
    transform: translateY(-2px);
    opacity: 0.4;
  }
  50% {
    transform: translateY(2px);
    opacity: 1;
  }
}
.animate-arrow-flow {
  animation: arrow-flow 1.9s ease-in-out infinite;
}

/* Pulso de brilho sutil no pill de transição */
@keyframes pill-glow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(56, 225, 255, 0);
  }
  50% {
    box-shadow: 0 0 20px rgba(56, 225, 255, 0.16);
  }
}
.animate-pill-glow {
  animation: pill-glow 3.4s ease-in-out infinite;
}

/* Sublinhado de palavra-chave — o traço é desenhado via Framer Motion
   (animação de background-size ao entrar na viewport) */
.u-key,
.u-key-amber,
.u-key-red {
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 100%;
  padding-bottom: 2px;
}
.u-key {
  background-image: linear-gradient(90deg, rgba(56, 225, 255, 0.9), rgba(56, 225, 255, 0.25));
}
.u-key-amber {
  background-image: linear-gradient(90deg, rgba(252, 211, 77, 0.9), rgba(252, 211, 77, 0.25));
}
.u-key-red {
  background-image: linear-gradient(90deg, rgba(248, 113, 113, 0.9), rgba(248, 113, 113, 0.25));
}

/* Pulso de alerta térmico — caixa de advertência */
@keyframes warn-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
  }
  50% {
    box-shadow: 0 0 30px -6px rgba(251, 191, 36, 0.3);
  }
}
.animate-warn-pulse {
  animation: warn-pulse 3s ease-in-out infinite;
}

/* Pulso de resfriamento — caixa da solução cold-chain */
@keyframes cold-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(56, 225, 255, 0);
  }
  50% {
    box-shadow: 0 0 34px -8px rgba(56, 225, 255, 0.32);
  }
}
.animate-cold-pulse {
  animation: cold-pulse 3.6s ease-in-out infinite;
}

/* Rotação lenta — órbita do emblema floco de neve (cabeçalho cold-chain) */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.animate-spin-slow {
  animation: spin-slow 18s linear infinite;
}

/* Flutuação suave — disco central dos emblemas de seção */
@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}
.animate-float-soft {
  animation: float-soft 5.5s ease-in-out infinite;
}

/* Flutuação + pulso de brilho combinados — disco central do emblema espelhado */
.animate-float-pulse {
  animation: float-soft 5.5s ease-in-out infinite, cold-pulse 3.6s ease-in-out infinite;
}

/* Barras de conformidade GMP — preenchimento animado */
@keyframes bar-fill {
  from {
    width: 0;
  }
  to {
    width: var(--bar-w, 100%);
  }
}
.gmp-bar {
  animation: bar-fill 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* Gauge radial ISO — anel se desenha ao carregar */
@keyframes ring-fill {
  from {
    stroke-dashoffset: var(--ring-c, 352);
  }
  to {
    stroke-dashoffset: var(--ring-o, 14);
  }
}
.iso-ring {
  animation: ring-fill 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s both;
}

/* Traçado de sparkline curto (mockup do app) */
@keyframes cc-draw-sm {
  from {
    stroke-dashoffset: 240;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.cc-draw-sm {
  stroke-dasharray: 240;
  animation: cc-draw-sm 1.4s ease-out 0.3s both;
}

/* Esteira de logos (marquee) — certificações */
@keyframes logo-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.logo-marquee-track {
  animation: logo-marquee 42s linear infinite;
  will-change: transform;
}

/* Pausa ao passar o mouse / focar (UX) */
.logo-marquee:hover .logo-marquee-track,
.logo-marquee:focus-within .logo-marquee-track {
  animation-play-state: paused;
}

/* ==========================================================
   SOLUÇÕES INDUSTRIAIS — visualizações animadas (premium)
   ========================================================== */

/* Rotações orbitais — molécula e gota */
@keyframes sol-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes sol-spin-rev {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}
.sol-spin,
.sol-spin-rev {
  transform-box: fill-box;
  transform-origin: center;
}
.sol-spin {
  animation: sol-spin 14s linear infinite;
}
.sol-spin-rev {
  animation: sol-spin-rev 20s linear infinite;
}

/* Pulso de halo — átomos e marcadores HUD */
@keyframes sol-pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.35);
  }
}
.sol-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: sol-pulse 3s ease-in-out infinite;
}

/* Núcleo da molécula — respiração suave */
@keyframes sol-core {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.14);
  }
}
.sol-core {
  transform-box: fill-box;
  transform-origin: center;
  animation: sol-core 2.6s ease-in-out infinite;
}

/* Ligações químicas — fluxo de energia */
@keyframes sol-bond {
  from {
    stroke-dashoffset: 24;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.sol-bond {
  stroke-dasharray: 6 6;
  animation: sol-bond 1.15s linear infinite;
}

/* Varredura de scan técnica — molécula */
@keyframes sol-scan {
  0% {
    transform: translateY(-46px);
    opacity: 0;
  }
  12% {
    opacity: 0.85;
  }
  88% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(46px);
    opacity: 0;
  }
}
.sol-scan {
  animation: sol-scan 4.6s ease-in-out infinite;
}

/* Ondas do líquido do frasco — loop sem emenda (1 período = 40px) */
@keyframes sol-wave {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-40px);
  }
}
.sol-wave {
  animation: sol-wave 2.7s linear infinite;
}
.sol-wave-slow {
  animation: sol-wave 4.4s linear infinite;
}

/* Bolhas subindo no líquido do frasco */
@keyframes sol-bubble {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0;
  }
  12% {
    opacity: 0.85;
  }
  80% {
    opacity: 0.55;
  }
  100% {
    transform: translateY(-30px) scale(1.05);
    opacity: 0;
  }
}
.sol-bubble {
  transform-box: fill-box;
  transform-origin: center;
  animation: sol-bubble 2.8s ease-in infinite;
}

/* Vapor acima do gargalo do frasco */
@keyframes sol-steam {
  0% {
    transform: translateY(0) scale(0.7);
    opacity: 0;
  }
  25% {
    opacity: 0.65;
  }
  100% {
    transform: translateY(-14px) scale(1.2);
    opacity: 0;
  }
}
.sol-steam {
  transform-box: fill-box;
  transform-origin: center;
  animation: sol-steam 3.2s ease-out infinite;
}

/* Brilho pulsante — halos de base */
@keyframes sol-glow {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}
.sol-glow {
  animation: sol-glow 3.4s ease-in-out infinite;
}

/* Flutuação suave — gota cosmecêutica */
@keyframes sol-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.sol-float {
  transform-box: fill-box;
  transform-origin: center;
  animation: sol-float 5.2s ease-in-out infinite;
}

/* Cintilação de sparkles — gota cosmecêutica */
@keyframes sol-twinkle {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.15) rotate(180deg);
  }
}
.sol-twinkle {
  transform-box: fill-box;
  transform-origin: center;
  animation: sol-twinkle 3.6s ease-in-out infinite;
}

/* Reflexo interno — gota cosmecêutica */
@keyframes sol-shimmer {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.7;
  }
}
.sol-shimmer {
  animation: sol-shimmer 2.8s ease-in-out infinite;
}

/* ==========================================================
   MODELOS DE NEGÓCIO — ilustrações animadas dos cards
   SOLUTION 01/02/03 (seção #solucao)
   ========================================================== */

/* Ping de radar — pulso expansivo no hub central (card 01) */
@keyframes sol-radar {
  0% {
    transform: scale(0.35);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}
.sol-radar {
  transform-box: fill-box;
  transform-origin: center;
  animation: sol-radar 3.2s ease-out infinite;
}

/* Rotas logísticas — tracejado fluindo hub → satélite (card 01) */
@keyframes sol-route {
  from {
    stroke-dashoffset: 18;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.sol-route {
  stroke-dasharray: 4 5;
  animation: sol-route 1.1s linear infinite;
}

/* Barras de margem — equalizador vivo (card 01) */
@keyframes sol-fill {
  0%,
  100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1);
  }
}
.sol-fill {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: sol-fill 2.4s ease-in-out infinite;
}

/* Cromatograma — desenho progressivo do traçado (card 02) */
@keyframes sol-draw {
  0% {
    stroke-dashoffset: 1;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  55% {
    stroke-dashoffset: 0;
  }
  86% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}
.sol-draw {
  stroke-dasharray: 1;
  animation: sol-draw 5.4s ease-in-out infinite;
}

/* Avião fast-track — trânsito através da rota (card 02) */
@keyframes sol-transit {
  0% {
    transform: translateX(-24px);
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  86% {
    opacity: 1;
  }
  100% {
    transform: translateX(24px);
    opacity: 0;
  }
}
.sol-transit {
  animation: sol-transit 3.6s ease-in-out infinite;
}

/* Hélice peptídica — ondulação suave dos nós (card 03) */
@keyframes sol-helix {
  0%,
  100% {
    transform: translateY(2.4px);
  }
  50% {
    transform: translateY(-2.4px);
  }
}
.sol-helix {
  animation: sol-helix 2.2s ease-in-out infinite;
}

/* Scan de pureza — varredura vertical curta (card 03) */
@keyframes sol-scan-soft {
  0% {
    transform: translateY(-30px);
    opacity: 0;
  }
  14% {
    opacity: 0.85;
  }
  86% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(30px);
    opacity: 0;
  }
}
.sol-scan-soft {
  animation: sol-scan-soft 4.2s ease-in-out infinite;
}

/* Hover no card — acelera rotas, radar e trânsito */
.group:hover .sol-route {
  animation-duration: 0.45s;
}
.group:hover .sol-radar {
  animation-duration: 1.8s;
}
.group:hover .sol-transit {
  animation-duration: 2.2s;
}

/* ==========================================================
   LANDING DISTRIBUIDORAS — animações dedicadas
   ========================================================== */

/* Compressão de margens — barras espremidas (seção Desafio) */
@keyframes dist-squeeze {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.12);
  }
}
.dist-squeeze {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: dist-squeeze 3.2s ease-in-out infinite;
}

/* Coluna de mercúrio — gauge térmico da barreira cold chain (seções Assimetria/Solução) */
@keyframes dist-thermo {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(0.92);
  }
}
.dist-thermo {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: dist-thermo 4s ease-in-out infinite;
}

/* ==========================================================
   PLATAFORMA DIGITAL — animações da seção #plataforma
   ========================================================== */

/* Varredura de scan — dashboard HUD da plataforma */
@keyframes hud-scan {
  0% {
    top: -12%;
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    top: 108%;
    opacity: 0;
  }
}
.hud-scan {
  animation: hud-scan 5.5s ease-in-out infinite;
}

/* Progresso do tour automático — abas dos pilares (7s = intervalo do tour) */
@keyframes tab-progress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}
.tab-progress {
  animation: tab-progress 7s linear both;
}

/* Piscar suave do indicador LIVE (telemetria) */
@keyframes live-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.animate-live-blink {
  animation: live-blink 1.6s ease-in-out infinite;
}

/* ==========================================================
   RISCOS — ícones holográficos animados (seção #riscos)
   ========================================================== */

/* Anel espectral rotativo — borda de energia ao redor do ícone */
@keyframes holo-rotate {
  to {
    transform: rotate(360deg);
  }
}
.holo-ring {
  position: absolute;
  inset: -3px;
  border-radius: 16px;
  padding: 1.5px;
  background: conic-gradient(
    from 0deg,
    rgba(248, 113, 113, 0) 0%,
    rgba(248, 113, 113, 0.9) 10%,
    rgba(251, 146, 60, 0.55) 18%,
    rgba(248, 113, 113, 0) 32%,
    rgba(248, 113, 113, 0) 50%,
    rgba(56, 225, 255, 0.8) 62%,
    rgba(147, 197, 253, 0.5) 72%,
    rgba(248, 113, 113, 0) 86%
  );
  -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, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: holo-rotate 5.5s linear infinite;
  opacity: 0.65;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.group:hover .holo-ring,
.group:focus-visible .holo-ring {
  opacity: 1;
}

/* Halo difuso — respiração suave atrás do núcleo */
@keyframes holo-halo {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.1);
  }
}
.holo-halo {
  animation: holo-halo 3.8s ease-in-out infinite;
}

/* Glifo — flutuação holográfica + shimmer espectral (variação de matiz) */
@keyframes holo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2.5px);
  }
}
@keyframes holo-hue {
  0%,
  100% {
    filter: hue-rotate(0deg) drop-shadow(0 0 5px rgba(248, 113, 113, 0.35));
  }
  33% {
    filter: hue-rotate(-22deg) drop-shadow(0 0 10px rgba(251, 146, 60, 0.55));
  }
  66% {
    filter: hue-rotate(14deg) drop-shadow(0 0 10px rgba(248, 113, 113, 0.5));
  }
}
.holo-glyph {
  animation: holo-float 4.6s ease-in-out infinite, holo-hue 6.5s linear infinite;
}

/* Scanline holográfica — linha de varredura subindo pelo núcleo */
@keyframes holo-scan {
  0% {
    top: 110%;
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  88% {
    opacity: 0.9;
  }
  100% {
    top: -14%;
    opacity: 0;
  }
}
.holo-scanline {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 110%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 231, 231, 0.9), transparent);
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.8);
  animation: holo-scan 3.4s ease-in-out infinite;
  pointer-events: none;
}

/* Barra de nível de ameaça — preenchimento progressivo (painel de síntese) */
.risk-stat-bar {
  transition: width 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .animate-line-sweep,
  .animate-arrow-flow,
  .animate-pill-glow,
  .animate-warn-pulse,
  .animate-cold-pulse,
  .animate-spin-slow,
  .animate-float-soft,
  .animate-float-pulse,
  .gmp-bar,
  .iso-ring,
  .cc-draw-sm,
  .sev-bar,
  .logo-marquee-track,
  .sol-spin,
  .sol-spin-rev,
  .sol-pulse,
  .sol-core,
  .sol-bond,
  .sol-scan,
  .sol-wave,
  .sol-wave-slow,
  .sol-bubble,
  .sol-steam,
  .sol-glow,
  .sol-float,
  .sol-twinkle,
  .sol-shimmer,
  .sol-radar,
  .sol-route,
  .sol-fill,
  .sol-draw,
  .sol-transit,
  .sol-helix,
  .sol-scan-soft,
  .hud-scan,
  .tab-progress,
  .animate-live-blink,
  .holo-ring,
  .holo-halo,
  .holo-glyph,
  .holo-scanline,
  .dist-squeeze,
  .dist-thermo,
  .animate-scroll-bounce,
  .progress-line,
  .step-dot-active,
  .animate-fade-in-up {
    animation: none;
  }
  .risk-stat-bar {
    transition: none;
  }
}
