/* Hero Widget CSS */

.hero-section {
  padding: 80px 0 100px;
  background: radial-gradient(circle at 80% 20%, var(--color-accent-light) 0%, transparent 60%);
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 48px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--color-accent-light);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}

.accent-text {
  background: linear-gradient(135deg, var(--color-accent) 0%, #0093e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Soundwave animations */
.soundwave-container {
  display: none; /* Kept default display none, can be shown via interactive hover JS */
  gap: 4px;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.wave-bar {
  width: 5px;
  height: 80px;
  background: linear-gradient(to top, var(--color-accent), #0093e9);
  border-radius: 4px;
  animation: bounce 1.2s infinite ease-in-out alternate;
  animation-delay: calc(var(--i) * 0.08s);
}

@keyframes bounce {
  0% { transform: scaleY(0.2); }
  100% { transform: scaleY(1.8); }
}

.device-holder {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.device-holder::before {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 210, 196, 0.15) 0%, rgba(0, 147, 233, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.device-holder::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1.5px solid rgba(0, 210, 196, 0.25);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  animation: pulseRing 4s infinite ease-in-out;
}

.hero-device-img {
  max-width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(13, 21, 39, 0.22));
  position: relative;
  z-index: 3;
  animation: hoverFloat 5s infinite ease-in-out;
}

@keyframes hoverFloat {
  0%, 100% { transform: translateY(0) rotate(-30deg); }
  50% { transform: translateY(-12px) rotate(-28deg); }
}

@keyframes pulseRing {
  0% { transform: scale(0.85); opacity: 0.2; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(0.85); opacity: 0.2; }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-text h1 {
    font-size: 2.75rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 56px 0 72px;
  }

  .hero-container,
  .hero-text,
  .hero-visual,
  .device-holder {
    min-width: 0;
    width: 100%;
  }

  .hero-text h1 {
    font-size: 2.35rem;
    overflow-wrap: anywhere;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-actions {
    justify-content: stretch;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    min-width: 0;
  }

  .device-holder {
    height: 300px;
  }

  .device-holder::before {
    width: 280px;
    height: 280px;
  }

  .device-holder::after {
    width: 210px;
    height: 210px;
  }

  .hero-device-img {
    max-height: 260px;
  }
}
