/* Landing marketing sections – index.html (hero extensions + story arc) */

/* ── Hero layout ── */
.hero-grid {
  display: grid;
  gap: clamp(1rem, 3vw, 1.5rem);
  grid-template-columns: 1fr;
  grid-template-areas:
    "intro"
    "cta";
}

.hero-intro {
  grid-area: intro;
}

.hero-cta {
  grid-area: cta;
}

.hero-preview-band {
  width: 100%;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.hero-preview-band .hero-carousel {
  max-width: min(840px, 100%);
  margin-inline: auto;
}

.hero-preview-band .hero-carousel-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-preview-band .hero-carousel-slide .hero-preview-live {
  flex: 0 0 auto;
  margin-inline: auto;
}

@media (min-width: 992px) {
  .hero-preview-band .hero-carousel-slide {
    padding: clamp(0.85rem, 2vw, 1.25rem);
  }
}

@media (max-width: 575.98px) {
  .hero-preview-band .hero-carousel {
    max-width: 100%;
  }

  .hero-preview-band .hero-carousel-slide {
    padding: clamp(0.5rem, 2.5vw, 0.75rem);
  }
}

.hero-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2.5vw, 1.25rem);
}

.hero-brand {
  color: #e9efff;
  font-weight: 800;
  font-size: clamp(1.35rem, 4.6vw, 2.9rem);
  letter-spacing: 0.6px;
  line-height: 1.1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-headline {
  color: #e9efff;
  font-weight: 700;
  font-size: clamp(1.15rem, 3.4vw, 1.85rem);
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-problem {
  margin: 0;
  font-size: clamp(0.9rem, 2vw, 1.02rem);
  line-height: 1.6;
  color: rgba(207, 214, 230, 0.78);
}

.hero-problem strong {
  color: rgba(233, 239, 255, 0.95);
  font-weight: 700;
}

.hero-benefit {
  margin: 0;
  font-size: clamp(0.95rem, 2.1vw, 1.08rem);
  line-height: 1.6;
  color: rgba(215, 220, 235, 0.92);
}

.hero-closing {
  margin: 0;
  font-size: clamp(0.88rem, 1.9vw, 0.98rem);
  line-height: 1.5;
  color: rgba(207, 214, 230, 0.72);
  font-style: italic;
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  align-self: flex-start;
  font-size: clamp(0.72rem, 1.5vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(207, 214, 230, 0.85);
  padding: 0.4em 0.85em;
  border-radius: 999px;
  border: 1px solid rgba(138, 92, 255, 0.28);
  background: rgba(138, 92, 255, 0.07);
}

.hero-trust-badge i {
  color: #b89aff;
  font-size: 0.95em;
}

.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.hero-cta-row .hero-btn {
  width: 100%;
  white-space: normal;
  text-align: center;
}

.hero-cta-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  font-size: clamp(0.88rem, 1.9vw, 0.95rem);
}

.hero-cta-links a {
  color: rgba(184, 154, 255, 0.95);
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s;
}

.hero-cta-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.hero-cta-links-sep {
  color: rgba(207, 214, 230, 0.35);
  user-select: none;
}

/* ── Hero carousel ── */
.hero-carousel {
  padding: 0;
  overflow: hidden;
}

.hero-carousel-viewport {
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.hero-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.hero-carousel-track.is-no-transition {
  transition: none !important;
}

.hero-carousel-slide.is-clone {
  pointer-events: none;
}

.hero-carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: clamp(0.85rem, 2vw, 1.1rem);
  box-sizing: border-box;
}

.hero-carousel-caption {
  margin: 0.65rem 0 0;
  font-size: clamp(0.8rem, 2vw, 0.88rem);
  color: rgba(207, 214, 230, 0.72);
  text-align: center;
  line-height: 1.4;
}

.hero-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 0.85rem 0.85rem;
}

.hero-carousel-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(138, 92, 255, 0.35);
  transition: width 0.3s, background 0.25s, box-shadow 0.25s;
  position: relative;
}

.hero-carousel-dot::before {
  content: "";
  position: absolute;
  inset: -12px;
}

.hero-carousel-dot.is-active {
  width: 24px;
  background: #8a5cff;
  box-shadow: 0 0 10px rgba(138, 92, 255, 0.55);
}

.hero-carousel-dot:focus-visible {
  outline: 2px solid #8a5cff;
  outline-offset: 2px;
}

@media (max-width: 991.98px) {
  .hero-grid {
    --bs-gutter-x: 0.75rem;
  }

  .hero-brand {
    font-size: clamp(1.32rem, 6.8vw, 1.8rem);
  }
}

@media (max-width: 575.98px) {
  .hero-headline {
    font-size: clamp(1.05rem, 4.8vw, 1.35rem);
  }

  .hero-carousel-slide {
    padding: clamp(0.65rem, 2vw, 0.85rem);
  }

  .hero-carousel-caption {
    margin-top: 0.45rem;
    font-size: 0.72rem;
  }

  .hero-carousel-dots {
    width: 100%;
    justify-content: center;
    gap: 6px;
    padding: 0.35rem 0.5rem 0.45rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    min-height: 28px;
  }

  .hero-carousel-dots::-webkit-scrollbar {
    display: none;
  }

  .hero-carousel-dot {
    width: 8px;
    height: 8px;
    min-height: unset;
    min-width: unset;
    padding: 0;
    box-sizing: border-box;
    align-self: center;
    border-radius: 50%;
    background: rgba(138, 92, 255, 0.28);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  }

  .hero-carousel-dot.is-active {
    width: 8px;
    height: 8px;
    background: #8a5cff;
    box-shadow: 0 0 0 2px rgba(138, 92, 255, 0.4), 0 0 6px rgba(138, 92, 255, 0.45);
    transform: scale(1.2);
  }

  .hero-carousel-dot::before {
    inset: -8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-track {
    transition: none;
  }

  .shine {
    animation: none;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: inherit;
  }
}

.landing-section {
  margin-top: clamp(2.5rem, 6vw, 3.75rem);
  padding: 0;
}

.landing-section-title {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 800;
  color: #e9efff;
  text-align: center;
  margin: 0 0 0.35rem;
  letter-spacing: 0.01em;
}

.landing-section-lead {
  text-align: center;
  color: rgba(207, 214, 230, 0.82);
  font-size: clamp(0.88rem, 2vw, 0.98rem);
  max-width: 52ch;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}

.landing-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.landing-problem-card {
  padding: 1.25rem 1.1rem;
  border-radius: clamp(14px, 2vw, 18px);
  text-align: center;
  height: 100%;
}

.landing-problem-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: rgba(233, 76, 90, 0.14);
  border: 1px solid rgba(233, 76, 90, 0.35);
  color: #ff8fa0;
}

.landing-problem-card h3 {
  font-size: clamp(0.92rem, 2vw, 1rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.landing-problem-card p {
  font-size: clamp(0.82rem, 1.8vw, 0.9rem);
  color: rgba(207, 214, 230, 0.78);
  margin: 0;
  line-height: 1.5;
}

.landing-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  counter-reset: flow-step;
}

.landing-flow-step {
  position: relative;
  padding: 1.1rem 0.85rem;
  border-radius: clamp(14px, 2vw, 18px);
  text-align: center;
  border: 1px solid rgba(138, 92, 255, 0.28);
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(138, 92, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(21, 24, 33, 0.85), rgba(18, 20, 27, 0.92));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.landing-flow-step::before {
  counter-increment: flow-step;
  content: counter(flow-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0 auto 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #8a5cff, #6a5cff);
  box-shadow: 0 4px 12px rgba(138, 92, 255, 0.35);
}

.landing-flow-step h3 {
  font-size: clamp(0.85rem, 1.9vw, 0.95rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.landing-flow-step p {
  font-size: clamp(0.78rem, 1.7vw, 0.86rem);
  color: rgba(207, 214, 230, 0.75);
  margin: 0;
  line-height: 1.45;
}

.landing-flow-note {
  text-align: center;
  margin-top: 1.1rem;
  font-size: clamp(0.82rem, 1.8vw, 0.9rem);
  color: rgba(207, 214, 230, 0.72);
  font-style: italic;
}

.landing-chat-workflow {
  margin-top: 1.25rem;
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(0.85rem, 2vw, 1.25rem);
  text-align: center;
}

.landing-chat-workflow-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 1.1rem;
  font-size: clamp(0.82rem, 1.8vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(207, 214, 230, 0.88);
}

.landing-chat-workflow-title i {
  font-size: 1.05em;
  color: #b89aff;
}

.landing-chat-workflow-inner {
  position: relative;
  padding: 0 0.35rem;
}

.landing-chat-workflow-track {
  position: absolute;
  left: calc(100% / 14);
  right: calc(100% / 14);
  top: 0.45rem;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.landing-chat-workflow-fill {
  height: 100%;
  width: 64%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8a5cff, #6a5cff, #1dd1a1);
  box-shadow: 0 0 12px rgba(138, 92, 255, 0.45);
}

.landing-chat-workflow-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-chat-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-size: clamp(0.68rem, 1.5vw, 0.78rem);
  font-weight: 600;
  line-height: 1.2;
  color: rgba(207, 214, 230, 0.55);
}

.landing-chat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(18, 20, 27, 0.95);
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.landing-chat-step.is-done {
  color: rgba(207, 214, 230, 0.82);
}

.landing-chat-step.is-done .landing-chat-dot {
  background: #1dd1a1;
  border-color: #1dd1a1;
  box-shadow: 0 0 8px rgba(29, 209, 161, 0.4);
}

.landing-chat-step.is-active {
  color: #fff;
}

.landing-chat-step.is-active .landing-chat-dot {
  background: #8a5cff;
  border-color: #b89aff;
  box-shadow:
    0 0 0 3px rgba(138, 92, 255, 0.22),
    0 0 14px rgba(138, 92, 255, 0.55);
}

.landing-chat-step span:last-child {
  text-align: center;
  max-width: 4.75rem;
}

.landing-chat-actions {
  margin: 0.85rem auto 0;
  max-width: min(52ch, 100%);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 193, 7, 0.25);
  background: rgba(255, 193, 7, 0.08);
  text-align: center;
}

.landing-chat-actions-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  font-size: clamp(0.82rem, 1.8vw, 0.92rem);
  font-weight: 700;
  color: #ffe082;
}

.landing-chat-actions-head i {
  font-size: 1.1em;
  color: #ffc107;
}

.landing-chat-actions-text {
  margin: 0;
  font-size: clamp(0.8rem, 1.75vw, 0.88rem);
  line-height: 1.55;
  color: rgba(207, 214, 230, 0.82);
}

.landing-chat-actions-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.landing-chat-action-chip {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 224, 130, 0.92);
  border: 1px solid rgba(255, 193, 7, 0.35);
  background: rgba(255, 193, 7, 0.06);
}

.landing-audience-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

.landing-audience-card {
  display: flex;
  flex-direction: column;
  padding: 1.15rem 0.95rem;
  border-radius: clamp(14px, 2vw, 18px);
  height: 100%;
  text-align: center;
}

.landing-audience-icon {
  width: 2.35rem;
  height: 2.35rem;
  margin: 0 auto 0.65rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  background: rgba(138, 92, 255, 0.16);
  border: 1px solid rgba(138, 92, 255, 0.38);
  color: #b89aff;
}

.landing-audience-card h3 {
  font-size: clamp(0.88rem, 1.9vw, 0.96rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.45rem;
}

.landing-audience-card p {
  font-size: clamp(0.78rem, 1.7vw, 0.85rem);
  color: rgba(207, 214, 230, 0.76);
  margin: 0 0 0.85rem;
  line-height: 1.45;
  flex: 1;
}

.landing-audience-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: clamp(0.78rem, 1.7vw, 0.84rem);
  font-weight: 600;
  color: #b89aff;
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(138, 92, 255, 0.35);
  background: rgba(138, 92, 255, 0.08);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.landing-audience-link:hover {
  color: #fff;
  background: rgba(138, 92, 255, 0.2);
  border-color: rgba(138, 92, 255, 0.55);
}

.landing-audience-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}

html {
  scroll-padding-top: 80px;
}

@media (max-width: 991.98px) {
  .landing-problem-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .landing-flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .landing-chat-workflow-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }

  .landing-chat-workflow-inner::-webkit-scrollbar {
    display: none;
  }

  .landing-chat-workflow-steps {
    min-width: 36rem;
    grid-template-columns: repeat(7, minmax(4.5rem, 1fr));
    scroll-snap-type: x proximity;
  }

  .landing-chat-step {
    scroll-snap-align: center;
    font-size: 0.64rem;
  }

  .landing-chat-step span:last-child {
    max-width: 4.5rem;
  }

  .landing-chat-workflow-track {
    left: calc(4.5rem / 2);
    right: calc(4.5rem / 2);
  }
}

@media (max-width: 575.98px) {
  .landing-flow-grid {
    grid-template-columns: 1fr;
  }

  .landing-audience-grid {
    grid-template-columns: 1fr;
  }
}
