/* ============================================================
   Landing page — hero, demo, features, chatbot spotlight
   ============================================================ */

.hero {
  padding: 4.6rem 0 2.6rem;
}

.hero-grid {
  display: grid;
  gap: 2.6rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), 0 4px 16px rgba(15, 23, 42, 0.06);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.3rem;
  max-width: 100%;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 10px color-mix(in srgb, var(--primary) 70%, transparent);
  flex: 0 0 auto;
  animation: pulse 2.4s ease-in-out infinite;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
  font-weight: 760;
  line-height: 1.03;
  margin: 0 0 1.1rem;
  letter-spacing: -0.04em;
}

.hero-text h1 .grad {
  background: linear-gradient(95deg,
      var(--primary) 0%,
      color-mix(in srgb, var(--primary) 45%, #3f78ff) 60%,
      #3f78ff 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text .lead {
  font-size: 1.12rem;
  max-width: 560px;
}

.bullet-list {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  display: grid;
  gap: 0.55rem;
}

.bullet-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  line-height: 1.5;
}

.bullet-list li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transform: translateY(2px);
  background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.7rem;
  flex-wrap: wrap;
}

.cta-row.centered {
  justify-content: center;
}

/* ---------- hero visual ---------- */

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

.hero-glow {
  position: absolute;
  inset: 8% 12%;
  border-radius: 50%;
  background: radial-gradient(circle at center,
      color-mix(in srgb, var(--primary) 35%, transparent), transparent 70%);
  filter: blur(50px);
  z-index: -1;
}

.phone-card {
  width: min(340px, 88vw);
  border-radius: 32px;
  padding: 1.4rem;
  box-shadow: var(--glass-highlight), var(--shadow-pop);
  position: relative;
  animation: float 8s ease-in-out infinite;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 640;
  font-size: 0.8rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px color-mix(in srgb, var(--primary) 65%, transparent);
  animation: pulse 2s ease-in-out infinite;
}

.phone-body {
  background: var(--surface-strong);
  border-radius: 22px;
  padding: 1.2rem;
  border: 1px solid var(--hairline);
}

.waveform {
  display: flex;
  justify-content: center;
  margin-bottom: 0.95rem;
}

.waveform svg {
  width: 160px;
  height: 40px;
}

.wave-bar {
  fill: var(--primary);
  transform-origin: center bottom;
  animation: wave 1.8s ease-in-out infinite;
}

.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; }
.wave-bar:nth-child(7) { animation-delay: 0.6s; }
.wave-bar:nth-child(8) { animation-delay: 0.7s; }
.wave-bar:nth-child(9) { animation-delay: 0.8s; }
.wave-bar:nth-child(10) { animation-delay: 0.9s; }

.phone-meta p {
  margin: 0.35rem 0;
  font-size: 0.93rem;
}

.phone-footer {
  margin-top: 1rem;
  font-size: 0.84rem;
  color: var(--muted);
}

/* ---------- proof strip ---------- */

.proof-strip {
  padding: 1.4rem 0 2.2rem;
}

.proof-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.proof-chip {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), 0 4px 14px rgba(15, 23, 42, 0.05);
  font-size: 0.88rem;
  font-weight: 580;
  color: var(--muted);
}

/* ---------- sections ---------- */

.demo-section,
.how-it-works,
.verticals,
.final-cta,
.features-section,
.chatbot-spotlight {
  padding: 3.4rem 0;
}

.services-section {
  padding: 2.6rem 0 3.4rem;
}

.services-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.service-card {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-highlight), var(--shadow-pop);
}

.service-icon,
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.service-icon svg,
.feature-icon svg {
  width: 23px;
  height: 23px;
}

.service-card .button {
  justify-self: start;
  margin-top: 0.4rem;
}

.bundle-teaser {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--glass-border));
  box-shadow: var(--glass-highlight), var(--shadow-card);
  color: var(--muted);
}

.bundle-teaser strong {
  color: var(--text);
}

.bundle-teaser a {
  margin-left: 0.35rem;
  color: var(--primary-strong);
  font-weight: 650;
}

/* ---------- demo chat ---------- */

.demo-grid {
  display: grid;
  gap: 1.4rem;
}

.tone-switcher {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-content: start;
}

.tone-button {
  border: 1px solid var(--hairline);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 580;
  font-family: inherit;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.tone-button:hover {
  transform: translateY(-1px);
}

.tone-button.is-active {
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--primary) 92%, #ffffff 8%), var(--primary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 30%, transparent);
}

.chat {
  border-radius: 26px;
  padding: 1.4rem;
  display: grid;
  gap: 0.7rem;
}

.bubble {
  padding: 0.74rem 1.05rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 85%;
}

.bubble.assistant {
  background: var(--bubble-assistant-bg);
  color: var(--bubble-assistant-text);
  justify-self: start;
  border-bottom-left-radius: 6px;
  position: relative;
}

.bubble.user {
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--primary) 92%, #ffffff 8%), var(--primary));
  color: #fff;
  justify-self: end;
  border-bottom-right-radius: 6px;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 25%, transparent);
}

.tone-bubble {
  min-height: 82px;
}

.tone-text {
  position: absolute;
  inset: 0.74rem 1.05rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 280ms ease, transform 280ms ease;
}

.tone-text.is-active {
  opacity: 1;
  transform: none;
  position: relative;
  inset: auto;
}

/* typing indicator */

.bubble.typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 0.85rem 1rem;
}

.bubble.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
  animation: typing 1.3s ease-in-out infinite;
}

.bubble.typing span:nth-child(2) { animation-delay: 0.18s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.36s; }

/* ---------- features ---------- */

.features-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-tile {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(155%);
  -webkit-backdrop-filter: blur(20px) saturate(155%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--shadow-card);
  border-radius: 22px;
  padding: 1.45rem;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.feature-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-highlight), var(--shadow-pop);
}

.feature-tile h3 {
  font-size: 1.08rem;
  margin: 0.95rem 0 0.4rem;
}

.feature-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- chatbot spotlight ---------- */

.spotlight-card {
  border-radius: 32px;
  padding: clamp(1.6rem, 3.6vw, 2.8rem);
  display: grid;
  gap: 2.2rem;
  box-shadow: var(--glass-highlight), var(--shadow-soft);
  border-color: color-mix(in srgb, var(--primary) 22%, var(--glass-border));
  overflow: hidden;
  position: relative;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: -40% 55% 40% -20%;
  background: radial-gradient(circle at center,
      color-mix(in srgb, var(--primary) 18%, transparent), transparent 70%);
  pointer-events: none;
}

.spotlight-copy {
  position: relative;
}

.chatbot-live-hint {
  margin-top: 1.2rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  color: var(--primary-strong);
  font-weight: 560;
  font-size: 0.95rem;
}

.spotlight-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.widget-mock {
  width: min(330px, 100%);
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  animation: float 9s ease-in-out infinite;
}

.widget-mock-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  font-weight: 640;
  font-size: 0.92rem;
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--primary) 92%, #ffffff 8%), var(--primary));
  color: #fff;
}

.widget-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.widget-mock-body {
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
}

.widget-mock-body .bubble {
  font-size: 0.88rem;
  padding: 0.6rem 0.85rem;
}

/* ---------- how it works ---------- */

.how-cards {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.6rem;
}

.how-card {
  border-radius: 22px;
  padding: 1.45rem;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 740;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--primary) 92%, #ffffff 8%), var(--primary));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 32%, transparent);
  margin-bottom: 0.95rem;
}

.how-card h3 {
  font-size: 1.08rem;
}

.how-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- verticals ---------- */

.verticals-scroll {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.3rem 0.2rem 0.7rem;
  scrollbar-width: thin;
}

.vertical-card {
  min-width: 176px;
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-radius: 18px;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--shadow-card);
  scroll-snap-align: start;
  flex: 0 0 auto;
  font-weight: 600;
  font-size: 0.97rem;
}

/* ---------- final CTA ---------- */

.final-card {
  background: linear-gradient(135deg,
      color-mix(in srgb, var(--primary) 16%, transparent),
      transparent 50%), var(--surface);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-radius: 30px;
  padding: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--glass-border));
  text-align: center;
  box-shadow: var(--glass-highlight), var(--shadow-soft);
}

.final-card h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}

.is-visible .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- keyframes ---------- */

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@keyframes typing {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-3px); opacity: 0.9; }
}

/* ---------- responsive ---------- */

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
    align-items: center;
  }

  .demo-grid {
    grid-template-columns: 0.4fr 0.6fr;
    align-items: start;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .spotlight-card {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 2.8rem;
  }

  .cta-row .button {
    flex: 1 1 100%;
  }

  .phone-card {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .tone-text,
  .tone-button,
  .phone-card,
  .widget-mock,
  .wave-bar,
  .eyebrow-dot,
  .status-dot,
  .bubble.typing span {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  .reveal {
    opacity: 1;
  }
}
