/* Hero section styles */

.dot-matrix {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(75, 42, 99, 0.22) 0.9px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 30%, #000 0%, transparent 75%);
}

.cursor-glow {
  position: fixed;
  width: 520px; height: 520px;
  left: var(--mx, 70%); top: var(--my, 30%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(132, 76, 172, 0.28) 0%, rgba(199, 166, 222, 0.12) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transition: left 400ms var(--ease-soft), top 400ms var(--ease-soft);
  filter: blur(8px);
}

.hero {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(40px, 5.4vh, 72px) clamp(20px, 5vw, 32px) clamp(48px, 6.5vh, 96px);
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: rgba(75, 42, 99, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(75, 42, 99, 0.15);
  border-radius: var(--radius-pill);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 8px rgba(75, 42, 99, 0.06);
  animation: reveal-up 800ms 640ms var(--ease-smooth) both;
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-smooth);
}
.hero-pill-cta:hover {
  background: rgba(75, 42, 99, 0.1);
  border-color: rgba(75, 42, 99, 0.25);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 4px 14px rgba(75, 42, 99, 0.12);
}
.hero-pill .pill-arrow {
  margin-left: 2px;
  color: var(--primary);
  opacity: 0.6;
  transition: all var(--duration-base) var(--ease-smooth);
  font-size: var(--fs-label-md);
}
.hero-pill-cta:hover .arrow { transform: translate(2px, -2px); opacity: 1; }
.nav-shopify-pill { animation: none; padding: 10px 18px; font-size: var(--fs-body-base); }
.hero-pill .shopify-mark { flex-shrink: 0; width: 18px; height: 18px; }
.hero-pill .logo-img { height: 24px; }
.hero-pill .live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  animation: pulse-ring 2s infinite;
}
.hero-pill .divider { width: 1px; height: 12px; background: rgba(75, 42, 99, 0.2); }

.hero-headline {
  color: var(--charcoal);
  margin-top: clamp(16px, 2.2vh, 24px);
  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, rgba(75, 42, 99, 0.4), transparent);
}
.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.22em; }
.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: 10px;
  margin-top: clamp(24px, 3.2vh, 36px);
  animation: reveal-up 800ms 640ms var(--ease-smooth) both;
}

.hero-proof {
  margin-top: clamp(20px, 2.8vh, 32px);
  display: flex;
  align-items: stretch;
  gap: 12px;
  animation: reveal-up 800ms 740ms var(--ease-smooth) both;
}
.hero-proof .stat {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: 11px 15px;
  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 rgba(75, 42, 99, 0.08);
}

/* Hero demo player overrides */
.hero-right .demo-player {
  padding: 24px;
  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 rgba(75, 42, 99, 0.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: 12px 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: 20px; padding-top: 18px; }

/* Demo tabs */
.demo-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(75, 42, 99, 0.06);
  border-radius: var(--radius-pill);
  width: fit-content;
  margin-bottom: 20px;
}
.demo-tab {
  padding: 8px 14px;
  font-size: var(--fs-ui-lg);
  font-weight: 500;
  color: rgba(75, 42, 99, 0.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 rgba(75, 42, 99, 0.12), 0 0 0 1px rgba(75, 42, 99, 0.08);
}

.lang-chip {
  padding: 6px 10px;
  background: rgba(75, 42, 99, 0.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: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: 11px 15px;
  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 rgba(75, 42, 99, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  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: rgba(75, 42, 99, 0.6); 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: 8px;
  font-size: var(--fs-label-md);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(75, 42, 99, 0.45);
  animation: reveal-up 800ms 1300ms var(--ease-smooth) both;
}
.scroll-hint-line {
  width: 1px; height: 28px;
  background: linear-gradient(to bottom, rgba(75, 42, 99, 0.25), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-hint-line::after {
  content: "";
  position: absolute;
  top: -28px; left: 0;
  width: 100%; height: 14px;
  background: linear-gradient(to bottom, transparent, var(--primary));
  animation: scroll-travel 2.4s var(--ease-soft) infinite;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-headline { max-width: none; }
  .floating-stat { display: none; }
  .hero-proof { flex-wrap: wrap; gap: 12px 18px; }
  .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; }
}
