/* =========================================
   Hero Phone Embed — compact phone widget
   embedded directly in the hero section
   ========================================= */

.hero-phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-phone {
  width: 280px;
  background: #0d0d0f;
  border-radius: 36px;
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.06), 0 24px 80px rgba(245, 158, 11, 0.12), 0 4px 20px rgba(0,0,0,0.6);
  overflow: hidden;
  position: relative;
}

.hero-phone-notch {
  width: 80px;
  height: 24px;
  background: #0d0d0f;
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hero-phone-notch::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #1c1c1f;
  border-radius: 50%;
}

.hero-phone-notch-cam {
  width: 8px;
  height: 8px;
  background: #1a1a1d;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
}

/* Incoming call header */
.hero-call-header {
  padding: 36px 16px 12px;
  text-align: center;
  background: linear-gradient(180deg, rgba(245,158,11,0.08) 0%, transparent 100%);
}

.hero-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: #f59e0b;
}

.hero-caller-name {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #f4f4f5;
  margin-bottom: 2px;
}

.hero-caller-num {
  font-size: 0.7rem;
  color: #52525b;
  margin-bottom: 10px;
}

.hero-ringing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.68rem;
  color: #f59e0b;
  letter-spacing: 0.05em;
}

.hero-ringing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  animation: ring-pulse 1.2s infinite;
}

@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Waveform */
.hero-waveform {
  padding: 10px 16px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  background: rgba(245,158,11,0.03);
}

.hero-waveform span {
  display: block;
  width: 3px;
  height: 6px;
  background: #f59e0b;
  border-radius: 2px;
  opacity: 0.35;
  transition: height 0.15s, opacity 0.15s;
}

.hero-waveform.active span {
  opacity: 0.7;
  animation: wave-anim 0.8s ease-in-out infinite alternate;
}

.hero-waveform span:nth-child(1)  { animation-delay: 0.0s; }
.hero-waveform span:nth-child(2)  { animation-delay: 0.08s; }
.hero-waveform span:nth-child(3)  { animation-delay: 0.16s; }
.hero-waveform span:nth-child(4)  { animation-delay: 0.24s; }
.hero-waveform span:nth-child(5)  { animation-delay: 0.32s; }
.hero-waveform span:nth-child(6)  { animation-delay: 0.40s; }
.hero-waveform span:nth-child(7)  { animation-delay: 0.48s; }
.hero-waveform span:nth-child(8)  { animation-delay: 0.56s; }
.hero-waveform span:nth-child(9)  { animation-delay: 0.64s; }
.hero-waveform span:nth-child(10) { animation-delay: 0.72s; }
.hero-waveform span:nth-child(11) { animation-delay: 0.80s; }
.hero-waveform span:nth-child(12) { animation-delay: 0.88s; }

@keyframes wave-anim {
  from { height: 4px; }
  to   { height: 30px; }
}

/* Conversation thread */
.hero-conversation {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 160px;
  overflow: hidden;
}

.hero-msg {
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: msg-in 0.3s ease-out;
}

.hero-msg.ai { align-items: flex-start; }
.hero-msg.user { align-items: flex-end; }

.hero-msg-text {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  line-height: 1.45;
  word-break: break-word;
}

.hero-msg.ai .hero-msg-text {
  background: #161618;
  border: 1px solid rgba(255,255,255,0.06);
  border-bottom-left-radius: 3px;
  color: #e4e4e7;
}

.hero-msg.user .hero-msg-text {
  background: #f59e0b;
  color: #000;
  border-bottom-right-radius: 3px;
  font-weight: 500;
}

.hero-msg-time {
  font-size: 0.6rem;
  color: #52525b;
  padding: 0 2px;
}

/* Options */
.hero-options {
  padding: 10px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-opt {
  background: #161618;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.72rem;
  color: #a1a1aa;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: left;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.hero-opt:hover:not(:disabled) {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.04);
  color: #f4f4f5;
}

.hero-opt:disabled { opacity: 0.3; cursor: not-allowed; }

/* Lead capture reveal */
.hero-lead-reveal {
  display: none;
  padding: 0 16px 16px;
}

.hero-lead-reveal.show { display: block; }

.hero-lead-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
}

.hero-lead-badge.hot {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.hero-lead-badge.warm {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.hero-lead-badge.cold {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}

.hero-lead-stats {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.hero-lead-stat {
  flex: 1;
  background: #161618;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}

.hero-lead-stat-val {
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f4f4f5;
  margin-bottom: 2px;
}

.hero-lead-stat-label {
  font-size: 0.6rem;
  color: #52525b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Appointment confirmed — green banner */
.hero-confirmed {
  display: none;
  padding: 0 16px 16px;
}

.hero-confirmed.show { display: block; }

.hero-confirmed-banner {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.hero-confirmed-icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.hero-confirmed-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #22c55e;
  margin-bottom: 4px;
}

.hero-confirmed-detail {
  font-size: 0.72rem;
  color: #86efac;
}

/* =========================================
   Demo Showcase Section
   ========================================= */

.demo-showcase {
  padding: 100px 0;
  position: relative;
}

.demo-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.2), transparent);
}

.demo-showcase-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.demo-showcase-header {
  text-align: center;
  margin-bottom: 60px;
}

.demo-showcase-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #f59e0b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.demo-showcase h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #f4f4f5;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.demo-showcase h2 em {
  font-style: normal;
  color: #f59e0b;
}

.demo-showcase-sub {
  font-size: 1.1rem;
  color: #71717a;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
}

.demo-showcase-body {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}

/* Steps list */
.demo-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: #161618;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.demo-step:hover {
  border-color: rgba(245, 158, 11, 0.3);
  background: #1c1c1f;
}

.demo-step.active {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.04);
}

.demo-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f59e0b;
  flex-shrink: 0;
}

.demo-step.active .demo-step-num {
  background: #f59e0b;
  color: #000;
}

.demo-step-content {
  flex: 1;
}

.demo-step-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f4f4f5;
  margin-bottom: 3px;
}

.demo-step-desc {
  font-size: 0.8rem;
  color: #52525b;
  line-height: 1.5;
}

.demo-step.active .demo-step-desc { color: #71717a; }

.demo-step-check {
  display: none;
  color: #22c55e;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.demo-step.done .demo-step-check { display: block; }
.demo-step.done .demo-step-num { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.2); color: #22c55e; }

/* Showcase phone — slightly larger */
.showcase-phone {
  width: 100%;
  max-width: 400px;
  background: #0d0d0f;
  border-radius: 40px;
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.06), 0 24px 80px rgba(245, 158, 11, 0.1), 0 8px 32px rgba(0,0,0,0.7);
  overflow: hidden;
  position: relative;
}

/* Showcase stats card */
.showcase-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.showcase-stat {
  background: #161618;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
}

.showcase-stat-val {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #f4f4f5;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.showcase-stat-val.amber { color: #f59e0b; }
.showcase-stat-val.green { color: #22c55e; }
.showcase-stat-val.red   { color: #ef4444; }

.showcase-stat-label {
  font-size: 0.68rem;
  color: #52525b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Auto-play controls */
.showcase-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.showcase-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f59e0b;
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', system-ui, sans-serif;
  transition: opacity 0.2s;
}

.showcase-play-btn:hover { opacity: 0.85; }

.showcase-skip {
  background: none;
  border: 1px solid rgba(255,255,255,0.06);
  color: #52525b;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: 'DM Sans', system-ui, sans-serif;
  transition: border-color 0.2s, color 0.2s;
}

.showcase-skip:hover { border-color: rgba(255,255,255,0.15); color: #a1a1aa; }

.showcase-cta-link {
  color: #52525b;
  font-size: 0.82rem;
  text-decoration: none;
  margin-left: auto;
  transition: color 0.2s;
}

.showcase-cta-link:hover { color: #f59e0b; }

/* Responsive */
@media (max-width: 900px) {
  .demo-showcase-body { grid-template-columns: 1fr; }
  .showcase-phone { max-width: 360px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .demo-showcase-inner { padding: 0 20px; }
  .showcase-stats { grid-template-columns: 1fr 1fr 1fr; }
  .showcase-stat-val { font-size: 1.1rem; }
}