/* Background Overlay Effect */
body {
  margin: 0;
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(115deg, #0F2027 0%, #2C5364 100%);
  color: #F3F3F3;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

/* Add animated AI glow layer behind content */
body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  
  /* More vibrant glow gradient */
  background: radial-gradient(circle at center,
    rgba(0, 210, 255, 0.35),   /* brighter cyan */
    rgba(72, 183, 255, 0.25) 30%,
    rgba(0, 210, 255, 0) 70%);
  
  animation: pulseGlow 8s ease-in-out infinite;
  z-index: 0;
  pointer-events: none; /* doesn't block clicks */
  filter: blur(40px); /* softer edges */
}

@keyframes pulseGlow {
  0%   { transform: scale(1);   opacity: 0.5; }
  50%  { transform: scale(1.3); opacity: 0.9; }
  100% { transform: scale(1);   opacity: 0.5; }
}


/* All content stays above glow */
header, main, footer {
  position: relative;
  z-index: 1;
}

/* HEADER */
header {
  text-align: center;
  padding: 3rem 1rem 2rem;
}
h1 {
  font-size: 2.5rem;
  margin: 0;
  font-weight: 700;
}
.tagline {
  font-size: 1.4rem;
  margin-top: 0.5rem;
  color: #48b7ff;
}
.subtitle {
  margin: 1rem auto;
  max-width: 500px;
  color: #C0C7D6;
  font-size: 1rem;
}
.cta-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 2rem;
  background: #00D2FF;
  color: #0F2027;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s;
}
.cta-btn:hover {
  background: #48b7ff;
  transform: translateY(-2px);
}

/* BENEFITS SECTION */
.benefits {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 900px;
  flex-wrap: wrap;
}
.benefit {
  flex: 1 1 250px;
  background: rgba(34,41,54,0.8);
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.benefit h3 { margin-bottom: 0.7rem; }

/* DEMO / CONTENT SECTIONS */
.content-section {
  background: rgba(34,41,54,0.75);
  border-radius: 1.5rem;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 900px;
}
.demo-explainer {
  margin: 0.5rem 0 1rem 0;
  font-size: 0.95rem;
  color: #C0C7D6;
}
.demo {
  display: flex;
  flex-direction: column;
  align-items: center; /* keeps controls centered on small screens */
}


/* --- AUDIO PLAYER FIX --- */
.audio-player {
  width: 100% !important;     /* Always span container width */
  max-width: 600px;           /* But don’t overflow on desktop */
  display: block;
  margin: 0 auto 1rem auto;   /* Center horizontally */
}

.demo-btn {
  background: #1F4068;
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  margin-bottom: 1rem;
}
.demo-btn:hover {
  background: #48b7ff;
}
/* --- TRANSCRIPTIONS STACKED --- */
.transcriptions {
  display: flex;
  flex-direction: column;   /* always stacked, top above bottom */
  gap: 1rem;
  margin-top: 1.5rem;
  max-width: 700px;         /* nice readable width */
  margin-left: auto;
  margin-right: auto;       /* centered on page */
}

.transcriptions > div {
  background: rgba(255,255,255,0.05);
  padding: 1rem 1.2rem;
  border-radius: 0.8rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* transcription labels ("✔️ With ASRBoost", "❌ Without") */
.transcription-label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #48b7ff;
}

/* text area */
.transcription-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #fff;
  min-height: 40px;
  word-wrap: break-word;
}


/* CONTACT */
.contact {
  text-align: center;
}

/* Mobile improvements */
@media (max-width: 768px) {
  .benefits {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem; /* keep spacing, reduce padding */
  }

  .benefit {
    flex: unset;            /* stop forcing equal size */
    width: 100%;
    padding: 1rem;          /* tighter padding */
    margin: 0 auto;         /* centered */
  }
}

footer {
  text-align: center;
  color: #C0C7D6;
  font-size: 1rem;
  padding: 3rem 1rem 2rem;
}


