/* VHX landing — scrollytelling chapters (index.html) */

.vhx-scrolly {
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99, 102, 241, 0.08), transparent 55%),
    var(--vhx-bg, #09090b);
}

/* ── Chapter sections ─────────────────────────────────────────────────── */
.vhx-page .vhx-scrolly .vhx-scene.polar-section,
.vhx-page .vhx-scrolly .vhx-scene.polar-community,
.vhx-page .vhx-scrolly .vhx-scene.polar-final {
  max-width: none;
  margin: 0;
  padding: clamp(5rem, 14vh, 9rem) var(--vhx-pad, clamp(1rem, 4vw, 2rem));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  scroll-margin-top: 5rem;
}

.vhx-scrolly .vhx-scene:first-child {
  border-top: none;
}

.vhx-chapter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 1rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #818cf8;
}

.vhx-chapter span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.25);
  font-variant-numeric: tabular-nums;
}

.vhx-scene-rail .polar-section-title,
.vhx-scene-rail .vhx-scene-title {
  text-align: left;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.vhx-scene-rail .polar-section-lead {
  text-align: left;
  font-size: clamp(1rem, 2vw, 1.125rem);
  max-width: 28ch;
}

.vhx-scene-counter {
  margin-top: 1.75rem;
  font-size: 13px;
  font-weight: 700;
  color: #71717a;
  font-variant-numeric: tabular-nums;
}

.vhx-scene-counter-cur {
  color: #a78bfa;
  font-size: 1.25rem;
}

/* ── Split pin layout (features) ──────────────────────────────────────── */
.vhx-scene-layout {
  max-width: var(--vhx-max, 80rem);
  margin: 0 auto;
}

.vhx-scene-layout--split {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .vhx-scene-layout--split {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
  }

  .vhx-scene-rail {
    position: sticky;
    top: 6.5rem;
  }
}

/* ── Features — sticky pin with filled slides ─────────────────────────── */
.vhx-feature-pin {
  position: relative;
}

.vhx-feature-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vhx-feature-slide {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 0;
  padding: 1.5rem;
  overflow: hidden;
}

.vhx-feature-slide .polar-feature-icon {
  display: none;
}

.vhx-feature-num {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #818cf8;
  font-variant-numeric: tabular-nums;
}

.vhx-feature-visual {
  position: relative;
  min-height: 160px;
  border-radius: 1rem;
  overflow: hidden;
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vhx-feature-shot {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: top center;
}

.vhx-feature-visual-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(9, 9, 11, 0.92) 0%,
    rgba(9, 9, 11, 0.2) 52%,
    transparent 100%
  );
  pointer-events: none;
}

.vhx-feature-slide-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.vhx-feature-slide-body .polar-feature-title {
  font-size: 1.35rem;
  margin: 0;
}

.vhx-feature-slide-body .polar-feature-desc {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.vhx-feature-triggers {
  display: none;
}

@media (min-width: 1024px) {
  .vhx-scene--features {
    padding-bottom: clamp(3rem, 8vh, 5rem);
  }

  .vhx-feature-stage {
    position: sticky;
    top: 6.5rem;
    height: min(460px, 62vh);
    margin-bottom: 0;
  }

  .vhx-feature-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    transition:
      opacity 0.45s ease,
      transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    padding: 1.75rem;
  }

  .vhx-feature-slide.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    border-color: rgba(167, 139, 250, 0.35);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  }

  .vhx-feature-visual {
    min-height: 220px;
    flex: 1 1 auto;
  }

  .vhx-feature-slide {
    gap: 1rem;
  }

  .vhx-feature-slide-body {
    flex-shrink: 0;
  }

  .vhx-feature-triggers {
    display: block;
  }

  .vhx-feature-trigger {
    height: 52vh;
    pointer-events: none;
  }

  .vhx-feature-trigger:last-child {
    height: 40vh;
  }
}

@media (max-width: 1023px) {
  .vhx-scene-counter {
    display: none;
  }
}

/* ── How / centered scenes ────────────────────────────────────────────── */
.vhx-scene--how .polar-section-head,
.vhx-scene--eco .polar-section-head,
.vhx-scene--proof .polar-section-head,
.vhx-scene--community .polar-section-head,
.vhx-scene--faq .polar-section-head {
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.vhx-scene--how {
  min-height: min(88svh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vhx-scene--how .polar-steps {
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.vhx-scene--how .polar-step {
  padding: clamp(1.5rem, 3vw, 2rem);
}

/* ── Ecosystem — cinematic band ───────────────────────────────────────── */
.vhx-scene--eco {
  min-height: min(92svh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(124, 92, 255, 0.12), transparent 65%);
}

.vhx-scene--eco .polar-eco-grid {
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.vhx-scene--eco .polar-eco-tile {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  min-height: clamp(180px, 22vh, 260px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.vhx-scene--eco .polar-eco-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.vhx-scene--eco .polar-eco-tile-icon {
  width: 52px;
  height: 52px;
  margin-bottom: auto;
}

/* ── Real voices ──────────────────────────────────────────────────────── */
.vhx-scene--proof {
  min-height: min(88svh, 800px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vhx-scene--proof .polar-testimonials {
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

@media (max-width: 1023px) {
  .vhx-scene--proof .polar-testimonials {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.75rem;
    margin: 0 calc(-1 * var(--vhx-pad, 1rem));
    padding-left: var(--vhx-pad, 1rem);
    padding-right: var(--vhx-pad, 1rem);
  }

  .vhx-scene--proof .polar-testimonial {
    flex: 0 0 min(88vw, 360px);
    scroll-snap-align: center;
  }
}

.vhx-scene--proof .polar-testimonial {
  padding: clamp(1.5rem, 3vw, 2rem);
}

.vhx-scene--proof .polar-testimonial blockquote {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.65;
}

/* ── Community — full beat ────────────────────────────────────────────── */
.vhx-scene.polar-community {
  min-height: min(85svh, 720px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(56, 189, 248, 0.1), transparent 60%);
}

.vhx-scene.polar-community .polar-section-lead {
  margin: 0.75rem auto 2rem;
  max-width: 42ch;
}

.vhx-scene.polar-community .vhx-chapter {
  justify-content: center;
}

.vhx-scene--eco .polar-eco-grid,
.vhx-scene--how .polar-steps,
.vhx-scene--proof .polar-testimonials {
  max-width: var(--vhx-max, 80rem);
  margin-left: auto;
  margin-right: auto;
}

/* ── FAQ — calm close ─────────────────────────────────────────────────── */
.vhx-scene--faq {
  min-height: min(80svh, 680px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vhx-scene--faq .polar-faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vhx-scene--faq .polar-faq-item {
  border-radius: 14px;
}

/* ── Final CTA spacing ────────────────────────────────────────────────── */
.vhx-scrolly .polar-final {
  margin: 0 var(--vhx-pad) clamp(3rem, 8vh, 5rem);
  padding: clamp(3rem, 8vh, 5rem) var(--vhx-pad);
  border-radius: 1.5rem;
  text-align: center;
}

.vhx-scrolly .polar-final .polar-section-lead {
  margin: 0 auto 1.5rem;
  max-width: 42ch;
}

/* ── Scroll reveal ────────────────────────────────────────────────────── */
.vhx-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.vhx-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.vhx-reveal[data-reveal-delay="1"] { transition-delay: 0.08s; }
.vhx-reveal[data-reveal-delay="2"] { transition-delay: 0.16s; }
.vhx-reveal[data-reveal-delay="3"] { transition-delay: 0.24s; }
.vhx-reveal[data-reveal-delay="4"] { transition-delay: 0.32s; }
.vhx-reveal[data-reveal-delay="5"] { transition-delay: 0.4s; }
.vhx-reveal[data-reveal-delay="6"] { transition-delay: 0.48s; }

/* ── Side chapter nav (below hero only) ─────────────────────────────────── */
.vhx-scene-nav {
  display: none;
}

@media (min-width: 1200px) {
  .vhx-scene-nav {
    position: fixed;
    right: 20px;
    bottom: 28px;
    top: auto;
    transform: none;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 8px;
    border-radius: 999px;
    background: rgba(9, 9, 11, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
  }
}

.vhx-scene-nav a {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  text-indent: -9999px;
  overflow: hidden;
  transition: transform 0.2s, background 0.2s;
}

.vhx-scene-nav a:hover,
.vhx-scene-nav a.is-active {
  background: #a78bfa;
  transform: scale(1.35);
}

@media (prefers-reduced-motion: reduce) {
  .vhx-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .vhx-feature-triggers {
    display: none;
  }

  .vhx-feature-stage {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .vhx-feature-slide {
    position: relative;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}
