/* Hero section styles */
/* .dot-matrix and .cursor-glow moved to base.css */

/* ─── Hero layout ─── */
.hero {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(40px, 5.4vh, var(--spacing-3xl)) clamp(20px, 5vw, var(--spacing-lg))
    clamp(var(--spacing-xl), 6.5vh, var(--spacing-4xl));
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr; /* Slightly wider left column keeps the headline visually dominant */
  gap: var(--spacing-3xl);
  align-items: center;
}
.hero-right {
  position: relative;
}

.hero-headline {
  color: var(--charcoal);
  margin-top: clamp(16px, 2.2vh, var(--spacing-md));
  max-width: 14ch;
}
.hero-headline .italic {
  font-style: italic;
  color: var(--primary);
  position: relative;
}
.hero-headline .italic::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.03em;
  height: 0.05em;
  /* background: linear-gradient(90deg, transparent, var(--primary-40), transparent); */
}
/* ─── Headline word-stagger ─── */
/* Each .word child reveals sequentially; word-4 gets an extra gap (420ms vs 300ms) to land after the italic phrase */
.hero-headline .word {
  display: inline-block;
  animation: reveal-up 800ms var(--ease-smooth) both;
}
.hero-headline .word-1 {
  animation-delay: 100ms;
}
.hero-headline .word-2 {
  animation-delay: 200ms;
  margin-left: 0.22em;
}
.hero-headline .word-3 {
  animation-delay: 300ms;
  margin-left: 0;
}
.hero-headline .word-4 {
  animation-delay: 420ms;
}

.hero-sub {
  margin-top: clamp(18px, 2.5vh, 28px);
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--charcoal-75);
  max-width: 54ch;
  animation: reveal-up 800ms 540ms var(--ease-smooth) both;
}
.hero-sub .emph {
  color: var(--charcoal);
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  gap: var(--spacing-xs);
  margin-top: clamp(var(--spacing-md), 3.2vh, 36px);
  animation: reveal-up 800ms 640ms var(--ease-smooth) both;
}

.hero-proof {
  margin-top: clamp(20px, 2.8vh, var(--spacing-lg));
  display: flex;
  align-items: stretch;
  gap: var(--spacing-xs);
  animation: reveal-up 800ms 740ms var(--ease-smooth) both;
}
.hero-proof .stat {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: var(--backdrop-blur-base);
  -webkit-backdrop-filter: var(--backdrop-blur-base);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: var(--spacing-xs) var(--spacing-sm);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 16px rgba(0, 0, 0, 0.06),
    0 12px 40px var(--primary-08);
}

/* Hero demo player overrides */
.hero-right .demo-player {
  padding: var(--spacing-md);
  animation: reveal-player 900ms 400ms var(--ease-spring) both;
}
.hero-right .play-btn {
  width: 44px;
  height: 44px;
  overflow: hidden;
}
.hero-right .play-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary-dark);
  transform: scale(0);
  border-radius: 50%;
  transition: transform var(--duration-slow) var(--ease-smooth);
  z-index: 0;
}
.hero-right .play-btn:hover::after {
  transform: scale(1);
}
.hero-right .play-btn:hover {
  box-shadow: 0 6px 18px var(--primary-35);
  transform: none;
}
.hero-right .play-btn svg {
  position: relative;
  z-index: 1;
}
.hero-right .waveform {
  height: 44px;
}
.hero-right .transcript {
  min-height: 160px;
}
.hero-right .transcript-bubble {
  padding: var(--spacing-xs) 15px;
  font-size: var(--fs-body-base);
  animation: bubble-in 500ms var(--ease-smooth) both;
}
.hero-right .transcript-bubble:nth-child(1) {
  animation-delay: 800ms;
}
.hero-right .transcript-bubble:nth-child(2) {
  animation-delay: 1200ms;
}
.hero-right .player-controls {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
}

/* Demo tabs */
.demo-tabs {
  display: flex;
  gap: var(--spacing-2xs);
  padding: var(--spacing-2xs);
  background: var(--primary-06);
  border-radius: var(--radius-pill);
  width: fit-content;
  margin-bottom: var(--spacing-md);
}
.demo-tab {
  padding: var(--spacing-2xs) var(--spacing-sm);
  font-size: var(--fs-ui-lg);
  font-weight: 500;
  color: var(--primary-55);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--duration-base) var(--ease-smooth);
  white-space: nowrap;
}
.demo-tab:hover {
  color: var(--primary);
}
.demo-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow:
    0 2px 6px var(--primary-12),
    0 0 0 1px var(--primary-08);
}

.lang-chip {
  padding: var(--spacing-2xs) var(--spacing-xs);
  background: var(--primary-08);
  border-radius: var(--radius-pill);
  font-size: var(--fs-label-md);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.floating-stat {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: var(--backdrop-blur-base);
  -webkit-backdrop-filter: var(--backdrop-blur-base);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: var(--spacing-xs) var(--spacing-sm);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 16px rgba(0, 0, 0, 0.06),
    0 12px 40px var(--primary-08);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--fs-ui-md);
  animation: float-reveal 900ms var(--ease-spring) both;
}
.floating-stat.br {
  bottom: 60px;
  right: -32px;
  animation-delay: 1100ms;
}
.floating-stat .stat-num,
.hero-proof .stat-num {
  color: var(--primary);
}
.floating-stat .stat-label,
.hero-proof .stat-label {
  font-size: var(--fs-label-md);
  color: var(--primary-60);
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-top: 3px;
}

.scroll-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--spacing-2xs);
  font-size: var(--fs-label-md);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-45);
  animation: reveal-up 800ms 1300ms var(--ease-smooth) both;
}
.scroll-hint-line {
  width: 1px;
  height: 28px;
  /* background: linear-gradient(to bottom, var(--primary-25), transparent); */
  position: relative;
  overflow: hidden;
}
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  .hero-headline {
    max-width: none;
  }
  .floating-stat {
    display: none;
  }
  .hero-proof {
    flex-wrap: wrap;
    gap: var(--spacing-xs) var(--spacing-md);
  }
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-right {
    min-width: 0;
  }
  .demo-tabs {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .demo-tabs::-webkit-scrollbar {
    display: none;
  }
}
