.seo-product-stage {
  position: relative;
  width: min(100%, 650px);
  justify-self: end;
  padding-bottom: 0.5rem;
}

.seo-product-stage__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10.5;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1.4rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 36px 85px rgba(0, 0, 0, 0.34);
  transform: rotate(-1.2deg);
  animation: seoProductFloat 7s ease-in-out infinite;
}

.seo-product-stage__slide {
  position: absolute;
  inset: 0.5rem;
  overflow: hidden;
  margin: 0;
  border-radius: 0.9rem;
  opacity: 0;
  animation: seoProductReel 15s infinite;
}

.seo-product-stage__slide:nth-child(2) {
  animation-delay: 5s;
}

.seo-product-stage__slide:nth-child(3) {
  animation-delay: 10s;
}

.seo-product-stage__slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.seo-product-stage__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.seo-product-stage__slide:nth-child(3) img {
  object-position: center 14%;
}

.seo-product-stage__slide figcaption {
  position: absolute;
  left: 1rem;
  bottom: 0.95rem;
  border-radius: 0.6rem;
  padding: 0.5rem 0.7rem;
  background: rgba(7, 21, 47, 0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.seo-product-stage__chip {
  position: absolute;
  right: -0.55rem;
  bottom: -0.4rem;
  z-index: 3;
  border-radius: 0.8rem;
  padding: 0.68rem 0.95rem;
  background: #b9ef58;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  color: #173000;
  font-size: 0.8rem;
  font-weight: 800;
  transform: rotate(3deg);
}

.seo-product-stage__dots {
  position: absolute;
  top: -1.45rem;
  left: 1.5rem;
  display: flex;
  gap: 0.4rem;
}

.seo-product-stage__dots span {
  overflow: hidden;
  width: 1.75rem;
  height: 0.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.seo-product-stage__dots span::after {
  display: block;
  width: 100%;
  height: 100%;
  background: #35d5ff;
  content: "";
  transform: translateX(-100%);
  animation: seoProductDotProgress 15s infinite;
}

.seo-product-stage__dots span:nth-child(2)::after {
  animation-delay: 5s;
}

.seo-product-stage__dots span:nth-child(3)::after {
  animation-delay: 10s;
}

@keyframes seoProductFloat {
  50% {
    transform: rotate(0.2deg) translateY(-0.45rem);
  }
}

@keyframes seoProductReel {
  0%,
  29% {
    opacity: 1;
    transform: scale(1);
  }

  33%,
  96% {
    opacity: 0;
    transform: scale(1.015);
  }

  97%,
  100% {
    opacity: 1;
  }
}

@keyframes seoProductDotProgress {
  0% {
    transform: translateX(-100%);
  }

  29% {
    transform: translateX(0);
  }

  33%,
  100% {
    transform: translateX(-100%);
  }
}

.animated-product-gallery {
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.animated-product-gallery__list {
  display: grid;
  gap: clamp(4.5rem, 9vw, 8rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.animated-product-demo {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.animated-product-demo--reverse {
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
}

.animated-product-demo--reverse .animated-product-demo__copy {
  order: 2;
}

.animated-product-demo__copy h3 {
  max-width: 16ch;
  margin: 0.6rem 0 1rem;
  color: var(--mk-slate-900);
  font-size: clamp(1.7rem, 3.3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.animated-product-demo__copy > p:not(.eyebrow) {
  max-width: 34rem;
  margin: 0;
  color: var(--mk-slate-600);
  font-size: 1.05rem;
}

.animated-product-demo .journey-demo,
.animated-product-demo .conversation-demo {
  width: 100%;
}

.animated-product-demo .journey-demo::before,
.animated-product-demo .conversation-demo::before {
  pointer-events: none;
}

.animated-product-demo .tour-replay {
  padding: 0;
}

@media (max-width: 900px) {
  .seo-product-stage {
    width: min(100%, 680px);
    justify-self: start;
    margin-top: 1rem;
  }

  .seo-product-stage__frame {
    transform: none;
    animation: none;
  }

  .animated-product-demo,
  .animated-product-demo--reverse {
    grid-template-columns: 1fr;
  }

  .animated-product-demo--reverse .animated-product-demo__copy {
    order: 0;
  }

  .animated-product-demo__copy {
    max-width: 42rem;
  }

  .animated-product-demo__copy h3 {
    max-width: 20ch;
  }
}

@media (max-width: 600px) {
  .seo-product-stage {
    margin-top: 0.75rem;
    padding-bottom: 0.85rem;
  }

  .seo-product-stage__chip {
    right: 0.3rem;
    bottom: 0;
    font-size: 0.68rem;
  }

  .seo-product-stage__slide figcaption {
    left: 0.65rem;
    bottom: 0.65rem;
    padding: 0.42rem 0.55rem;
    font-size: 0.64rem;
  }

  .animated-product-gallery__list {
    gap: 4.5rem;
  }

  .animated-product-demo {
    gap: 1.75rem;
  }

  .animated-product-demo__copy h3 {
    font-size: 1.85rem;
  }

  .animated-product-demo__copy > p:not(.eyebrow) {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seo-product-stage__frame,
  .seo-product-stage__slide,
  .seo-product-stage__dots span::after {
    animation: none;
  }

  .seo-product-stage__slide {
    opacity: 0;
  }

  .seo-product-stage__slide:first-child {
    opacity: 1;
  }

  .animated-product-demo .tour-replay {
    display: none;
  }
}
