/* Hero: the purple gradient with white text */
.hero { background: var(--grad); color: var(--white); overflow: hidden; padding: 88px 0 100px; }
.hero-glow {
  position: absolute; inset: -30% auto auto -15%; width: 620px; height: 620px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(196, 181, 253, .45), transparent 62%); filter: blur(30px);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
}
.hero h1 { font-size: clamp(42px, 6.2vw, 74px); font-weight: 800; margin: 20px 0; letter-spacing: -1px; }
.hero h1 em { color: var(--lav-200); }
.lead { font-size: clamp(17px, 1.9vw, 20px); max-width: 520px; opacity: .92; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin: 18px 0 0; font-size: 14px; opacity: .8; }

/* Phone mock (the wrapper hugs the phone so the toast is placed relative to it) */
.phone-wrap { position: relative; justify-self: center; }
.phone {
  width: min(320px, 84vw); height: 540px; background: var(--white); color: var(--ink);
  border-radius: 40px; border: 9px solid var(--ink); box-shadow: 0 40px 80px -30px rgba(30, 27, 75, .7);
  display: flex; flex-direction: column; overflow: hidden;
}
.phone-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--lav-100); }
.phone-top b { display: block; font-size: 15px; }
.phone-top small { color: var(--muted); font-size: 12px; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; }
.chat { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; justify-content: flex-end; }
.bubble { max-width: 82%; padding: 9px 13px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; animation: pop .35s ease both; }
.bubble.in { align-self: flex-start; background: var(--lav-50); border-bottom-right-radius: 5px; }
.bubble.out { align-self: flex-end; background: var(--violet); color: #fff; border-bottom-left-radius: 5px; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .9); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.toast {
  position: absolute; bottom: 30px; inset-inline-start: -40px; background: var(--white); color: var(--ink);
  padding: 11px 16px; border-radius: 14px; font-weight: 500; font-size: 14.5px; box-shadow: 0 18px 40px -16px rgba(30, 27, 75, .5);
  opacity: 0; transform: translateY(12px); transition: all .4s ease;
}
.toast::before { content: "✓"; color: var(--violet); font-weight: 800; margin-inline-end: 8px; }
.toast.show { opacity: 1; transform: none; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .toast { inset-inline-start: 0; }
}
/* Phones: tighter hero, full-width buttons, shorter phone mock */
@media (max-width: 560px) {
  .hero { padding: 52px 0 76px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .phone { height: 450px; }
}

/* Trust badges under the hero buttons */
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; font-weight: 500; opacity: .92; }
.trust li::before { content: "✓"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-inline-end: 6px; border-radius: 50%; background: rgba(255, 255, 255, .2); font-size: 11px; font-weight: 800; }

/* Caption over the phone: what Leader is doing right now in the demo */
.phone-step {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%); z-index: 2; white-space: nowrap;
  background: var(--white); color: var(--violet-700); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px;
  box-shadow: 0 12px 28px -12px rgba(30, 27, 75, .55);
}
.phone-step:empty { display: none; }
.phone-step.in { animation: step-in .35s ease both; }
@keyframes step-in { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 560px) { .phone-step { font-size: 13px; top: -16px; } .trust { gap: 6px 14px; font-size: 13.5px; } }
