/* ============================================================
   VoiceFlo Landing — styles.css
   ============================================================ */

/* ----- Cosmic background orbs ----- */

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(99, 102, 241, 0.15);
  top: -80px;
  right: -80px;
  animation: float-1 20s ease-in-out infinite;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(236, 72, 153, 0.12);
  bottom: -60px;
  left: -60px;
  animation: float-2 25s ease-in-out infinite;
}

@keyframes float-1 {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(-20px, 30px) scale(1.05); }
  50%  { transform: translate(10px, 50px) scale(0.97); }
  75%  { transform: translate(25px, 15px) scale(1.03); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes float-2 {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(30px, -20px) scale(1.04); }
  50%  { transform: translate(15px, -40px) scale(0.96); }
  75%  { transform: translate(-25px, -10px) scale(1.02); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ----- Scroll-reveal ----- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Gradient text ----- */

.gradient-text {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----- Shimmer button ----- */

.btn-shimmer {
  background-size: 200% 100%;
}

.btn-shimmer:hover {
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { background-position: 100% 0; }
  50%  { background-position: 0 0; }
  100% { background-position: 100% 0; }
}

/* ----- Feature card hover glow ----- */

.feature-card {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

/* ----- Success particle burst ----- */

.success-burst {
  position: relative;
  animation: fadeIn 0.5s ease;
}

.success-burst::before,
.success-burst::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: particle 0.8s ease-out forwards;
}

.success-burst::before {
  background: #6366f1;
  top: 50%;
  left: 30%;
}

.success-burst::after {
  background: #ec4899;
  top: 40%;
  right: 30%;
  animation-delay: 0.1s;
}

@keyframes particle {
  0%   { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx, 20px), var(--dy, -30px)) scale(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ----- How-it-works connector animation ----- */

.connector-line {
  stroke-dashoffset: 40;
  transition: stroke-dashoffset 1s ease;
}

.connector.active .connector-line {
  stroke-dashoffset: 0;
}

/* ----- Nav scrolled state ----- */

.nav-scrolled {
  background: rgba(15, 15, 35, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
