/* ==========================================================================
   HORIZON - MOTION & ANIMAÇÕES
   ========================================================================== */

/* Animações de Entrada Suave */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

/* Indicador de Digitação do Chat de IA */
.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: #EEF4FF;
  border-radius: 12px;
  margin-top: 6px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: var(--hz-blue);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Ondas Dinâmicas de Voz / Soundwave Bars */
.voice-bars-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 28px;
  margin: 10px 0;
}

.voice-bar {
  width: 3px;
  background: var(--hz-blue);
  border-radius: 3px;
  animation: soundBars 1.2s infinite ease-in-out alternate;
}

.voice-bar:nth-child(1) { height: 8px; animation-delay: 0.1s; }
.voice-bar:nth-child(2) { height: 18px; animation-delay: 0.3s; }
.voice-bar:nth-child(3) { height: 26px; animation-delay: 0.5s; }
.voice-bar:nth-child(4) { height: 14px; animation-delay: 0.2s; }
.voice-bar:nth-child(5) { height: 22px; animation-delay: 0.4s; }
.voice-bar:nth-child(6) { height: 10px; animation-delay: 0.15s; }

@keyframes soundBars {
  0% { transform: scaleY(0.3); opacity: 0.6; }
  100% { transform: scaleY(1.1); opacity: 1; }
}

/* Efeito de Brilho Dinâmico nos Cards */
.glow-on-hover {
  position: relative;
  overflow: hidden;
}

.glow-on-hover::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.glow-on-hover:hover::before {
  opacity: 1;
}

/* Modal de Chamada / Demonstração ao Vivo */
.horizon-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 26, 56, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.horizon-modal.active {
  opacity: 1;
  visibility: visible;
}

.horizon-modal-content {
  background: var(--hz-white);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 36px 30px;
  position: relative;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--hz-border);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.horizon-modal.active .horizon-modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--hz-bg-page);
  border: 1px solid var(--hz-border);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--hz-text-muted);
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #FEE2E2;
  color: #DC2626;
}

@media (max-width: 768px) {
  .horizon-modal {
    padding: 12px;
  }
  .horizon-modal-content {
    padding: 24px 16px;
    border-radius: var(--radius-lg);
    max-height: 90vh;
    overflow-y: auto;
  }
}
