.alta-feature-showcase {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  display: flex;
  justify-content: center;
  font-family: Satoshi, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.alta-feature-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: radial-gradient(ellipse at 50% 88%, #5a48a8 0%, #3f327e 27%, #17102f 55%, #05040b 82%, #000 100%);
}

.alta-feature-showcase__media,
.alta-feature-showcase__media-slide,
.alta-feature-showcase__asset,
.alta-feature-showcase__scrim {
  position: absolute;
  inset: 0;
}

.alta-feature-showcase__media { z-index: -2; }

.alta-feature-showcase__media-slide {
  opacity: 0;
  transition: opacity 700ms ease;
}

.alta-feature-showcase__media-slide.is-active { opacity: 1; }

.alta-feature-showcase__asset {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Poster sits behind the video so it's instantly visible while the video buffers. */
.alta-feature-showcase__asset--poster {
  z-index: 0;
}

.alta-feature-showcase__asset--video {
  z-index: 1;
}

.alta-feature-showcase__scrim {
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.12) 42%, rgba(0,0,0,.2) 100%);
  pointer-events: none;
}

.alta-feature-showcase__inner {
  width: min(863px, calc(100% - 40px));
  min-height: inherit;
  padding: 140px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 120px;
}

.alta-feature-showcase__copy {
  width: min(845px, 100%);
  animation: alta-feature-copy-in 500ms ease both;
}

.alta-feature-showcase__copy h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: normal;
  font-weight: 500;
  text-align: center;
  color: #ffffff;
}

.alta-feature-showcase__copy p {
  margin: 0;
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.5;
  letter-spacing: 0;
  font-weight: 400;
  text-align: center;
}

.alta-feature-showcase__tabs {
  width: 100%;
  min-height: 50px;
  padding: 0;
  display: flex;
  gap: 21px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(0,0,0,.6);
  overflow-x: auto;
  scrollbar-width: none;
}

.alta-feature-showcase__tabs::-webkit-scrollbar { display: none; }

.alta-feature-showcase__tabs button {
  flex: 0 0 200px;
  min-height: 50px;
  padding: 12px 20px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.alta-feature-showcase__tabs button.is-active {
  background: #fff;
  color: #000;
}

@keyframes alta-feature-copy-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
  .alta-feature-showcase__inner {
    width: min(720px, calc(100% - 32px));
    padding: 96px 0;
    gap: 80px;
  }
  /* Text tabs can't fit at tablet widths with 4+ slides — the dot row
     (below) takes over from 991px down, same as mobile. */
  .alta-feature-showcase__tabs {
    display: none;
  }
}

@media (max-width: 767px) {
  /* Mobile height now comes from the inline CSS variable set on the section.
     Fallback to 780px for legacy instances that haven't been re-dropped. */
  .alta-feature-showcase {
    min-height: var(--alta-fs-mobile-min-height, 780px) !important;
  }
  /* Extra flat dark layer over the video — copy needs more contrast on small
     screens where text overlaps busier parts of the frame. Opacity comes from
     the "Mobile video overlay" prop (default 0.3). */
  .alta-feature-showcase__scrim {
    background:
      linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.12) 42%, rgba(0,0,0,.2) 100%),
      linear-gradient(
        rgba(0, 0, 0, var(--alta-fs-mobile-overlay, 0.3)),
        rgba(0, 0, 0, var(--alta-fs-mobile-overlay, 0.3))
      );
  }
  .alta-feature-showcase__inner {
    padding: 72px 0 48px;
    gap: 40px;
  }
  .alta-feature-showcase__copy h2,
  .alta-feature-showcase__copy p { text-align: center; }
}

/* Dot navigation — replaces the text tabs on tablet + mobile (≤991px). */
.alta-feature-showcase__dots {
  display: none;
}
@media (max-width: 991px) {
  .alta-feature-showcase__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 4px 0;
  }
}
.alta-feature-showcase__dot {
  position: relative;
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  cursor: pointer;
  /* Snappy spring: slight overshoot on the width so the pill "pops" into
     place when swiping. Color changes faster than the width settles. */
  transition:
    width 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 120ms ease,
    border-color 120ms ease;
}
/* Invisible expanded hit area — 10px dots are below the ~44px minimum
   comfortable touch target, which made taps feel unresponsive. */
.alta-feature-showcase__dot::after {
  content: "";
  position: absolute;
  inset: -12px;
}
.alta-feature-showcase__dot:hover {
  border-color: rgba(255, 255, 255, 0.9);
}
/* Active pill: outlined and empty, then fills purple left → right in sync
   with the autoplay timer (duration comes from the autoplay delay prop). */
.alta-feature-showcase__dot.is-active {
  width: 32px;
  background: transparent;
  border-color: #8b7cff;
}
.alta-feature-showcase__dot.is-active::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #8b7cff;
  width: 0;
  animation: alta-fs-dot-progress var(--alta-fs-autoplay, 5500ms) linear forwards;
}
@keyframes alta-fs-dot-progress {
  from { width: 0; }
  to { width: 100%; }
}
/* Autoplay paused (hover) — freeze the fill where it is. */
.alta-feature-showcase.is-paused .alta-feature-showcase__dot.is-active::before {
  animation-play-state: paused;
}
/* No autoplay (prop = 0, reduced motion, single slide) — nothing to count
   down, show the pill fully filled. */
.alta-feature-showcase.is-autoplay-off .alta-feature-showcase__dot.is-active::before {
  animation: none;
  width: 100%;
}

.alta-feature-showcase {
  cursor: pointer;
}

.alta-feature-showcase__tabs,
.alta-feature-showcase__tabs button,
.alta-feature-showcase__asset:is(video) {
  cursor: auto;
}

