/* =======================================================
   HERO SECTION
   Main heading, sub copy, CTAs, hero meta stats,
   and the live AI call demo widget.
======================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 7rem 0 3rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background effects (grid + amber glow) */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 50%;
  width: 1100px;
  height: 1100px;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(245,166,35,.14), rgba(245,166,35,0) 55%);
  filter: blur(40px);
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--rule-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule-soft) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  opacity: .5;
}

/* Hero grid - text left, demo right */
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 4rem;
  align-items: center;
  z-index: 2;
}

/* Hero heading with animated line reveals */
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  margin: 1.2rem 0 1.6rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--amber);
  font-weight: 300;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise .9s var(--ease-out) forwards;
}
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }

/* Hero sub copy */
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ink-2);
  max-width: 30em;
  margin-bottom: 2.4rem;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) .5s forwards;
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) .65s forwards;
}

/* Hero meta stats (24/7, latency, languages) */
.hero-meta {
  margin-top: 3rem;
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) .85s forwards;
}
.hero-meta .item {
  border-left: 1px solid var(--rule);
  padding-left: 1rem;
}
.hero-meta .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
}
.hero-meta .lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: .25rem;
}

/* =======================================================
   LIVE CALL DEMO WIDGET
======================================================= */
.call-demo {
  position: relative;
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 1.6rem;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,.6),
    0 0 0 1px rgba(245,166,35,.04),
    inset 0 1px 0 rgba(255,255,255,.04);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) .4s forwards;
}
.call-demo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,166,35,.5), transparent);
}

/* Call header (live indicator + duration) */
.call-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 1rem;
}
.call-head-left {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: livePulse 1.5s infinite;
  box-shadow: 0 0 0 0 rgba(239,68,68,.6);
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,.6); }
  100% { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
}
.call-head-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.call-duration {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}

/* Caller info */
.caller-info {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.4rem;
}
.caller-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), #d68318);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  color: var(--bg);
  font-weight: 500;
  font-size: 1.1rem;
}
.caller-name { font-size: 14px; font-weight: 500; }
.caller-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* Animated waveform */
.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 50px;
  margin-bottom: 1.4rem;
  padding: 0 1rem;
}
.waveform .bar {
  width: 3px;
  background: linear-gradient(180deg, var(--amber) 0%, var(--amber-soft) 100%);
  border-radius: 2px;
  animation: wave 1.2s var(--ease-in-out) infinite;
  transform-origin: center;
}
@keyframes wave {
  0%, 100% { transform: scaleY(.25); opacity: .5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Transcript pane */
.transcript {
  background: rgba(0,0,0,.25);
  border: 1px solid var(--rule-soft);
  border-radius: 14px;
  padding: 1rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  font-size: 13.5px;
  line-height: 1.5;
}
.msg {
  display: flex;
  gap: .65rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.msg.show {
  opacity: 1;
  transform: translateY(0);
}
.msg-tag {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  height: fit-content;
  margin-top: 2px;
}
.msg-tag.ai {
  background: rgba(245,166,35,.15);
  color: var(--amber);
}
.msg-tag.user {
  background: rgba(184,176,163,.1);
  color: var(--ink-2);
}
.msg-text { color: var(--ink); flex: 1; }

/* Call result (success notification) */
.call-result {
  margin-top: 1rem;
  padding: .9rem 1rem;
  background: rgba(91,141,106,.1);
  border: 1px solid rgba(91,141,106,.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  transition: all .6s var(--ease-out);
}
.call-result.show {
  opacity: 1;
  transform: translateY(0);
}
.call-result svg {
  width: 16px;
  height: 16px;
  color: var(--emerald-soft);
  flex-shrink: 0;
}
.call-result strong {
  color: var(--emerald-soft);
  font-weight: 500;
}
