.lw-scrollstack {
  padding: 125px 0;
  position: relative;
}

.lw-scrollstack .lw-scrollstack__wrapper {
  position: relative;
}

.lw-scrollstack .lw-scrollstack__card {
  overflow: visible !important;
  width: 100%;
  max-width: 1035px;
  margin: 0 auto 40px;
  background-color: transparent !important;
  position: sticky !important;
  top: 30px;
}

.lw-scrollstack .lw-scrollstack__card:nth-child(2) {
  top: 60px;
}

.lw-scrollstack .lw-scrollstack__card:nth-child(3) {
  top: 90px;
}

.lw-scrollstack .lw-scrollstack__card-inner {
  background: #f5f5f5;
  border-radius: 32px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 12px 12px 2px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(21, 23, 26, 0.06);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

/* .lw-scrollstack .lw-scrollstack__card-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle, rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 215, 0, 0.5) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 450px 450px, 350px 350px, 550px 550px, 280px 280px;
  background-position: 10% 20%, 80% 70%, 40% 60%, 70% 30%;
  pointer-events: none;
  opacity: 0.7;
  z-index: 1;
  border-radius: 32px;
} */

.lw-scrollstack .lw-scrollstack__card-inner::before,
.lw-scrollstack .lw-scrollstack__card-inner::after {
  content: "";
  position: absolute;
  height: 565px;
  aspect-ratio: 1/1;
  background: linear-gradient(
    90deg,
    rgb(121, 84, 41) 0%,
    rgb(243, 236, 152) 50%,
    rgb(121, 84, 41) 100%
  );
  border-radius: 50%;
  filter: blur(200px);
  z-index: 1;
}

.lw-scrollstack .lw-scrollstack__card-inner::before {
  top: 0;
  left: 0;
  transform: translate(-60%, -60%);
}

.lw-scrollstack .lw-scrollstack__card-inner::after {
  bottom: 0;
  right: 0;
  transform: translate(80%, 80%);
}

.lw-scrollstack .lw-scrollstack__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* gap: 40px; */
  max-width: 55%;
  position: relative;
  z-index: 2;
}

.lw-scrollstack .lw-scrollstack__title {
  font-size: 42px;
  font-weight: 600;
  color: #15171a;
  margin: 0 0 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lw-scrollstack .lw-scrollstack__text {
  font-size: 16px;
  line-height: 1.65;
  color: #15171a;
  margin: 0 0 32px;
}

.lw-scrollstack .lw-scrollstack__text p {
  margin: 0 0 16px;
}

.lw-scrollstack .lw-scrollstack__text p:last-child {
  margin-bottom: 0;
}

.lw-scrollstack .lw-scrollstack__cta {
  margin-top: auto;
  display: block;
  width: max-content;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 700;
  color: #15171a;
  background: radial-gradient(
    ellipse at center,
    #f7ef9c 0%,
    #f5e58a 25%,
    #e6c768 55%,
    #c99832 80%,
    #a56e26 100%
  );
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  position: relative;
  pointer-events: auto;
  cursor: pointer;
}

.lw-scrollstack .lw-scrollstack__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 100px;
}

.lw-scrollstack .lw-scrollstack__cta:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.lw-scrollstack .lw-scrollstack__cta:hover::before {
  opacity: 1;
}

.lw-scrollstack .lw-scrollstack__visual {
  flex: 1;
  max-width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.lw-scrollstack .lw-scrollstack__image {
  width: 100%;
  height: auto;
  max-width: 380px;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

@media (max-width: 1023px) {
  .lw-scrollstack {
    padding: 100px 0;
  }

  .lw-scrollstack .lw-scrollstack__card-inner {
    padding: 30px;
  }

  .lw-scrollstack .lw-scrollstack__card {
    margin: 0 auto 24px;
  }

  .lw-scrollstack .lw-scrollstack__title {
    font-size: 38px;
    margin-bottom: 20px;
  }
}

@media (max-width: 991px) {
  .lw-scrollstack {
    padding: 80px 0;
  }

  .lw-scrollstack .lw-scrollstack__card-inner {
    padding: 24px;
  }

  .lw-scrollstack .lw-scrollstack__title {
    font-size: 32px;
    margin-bottom: 16px;
  }
}

@media (max-width: 767px) {
  .lw-scrollstack {
    padding: 60px 0;
  }

  .lw-scrollstack .lw-scrollstack__card {
    position: static !important;
    margin: 0 auto 16px;
  }

  .lw-scrollstack {
    padding: 80px 0;
  }

  .lw-scrollstack .lw-scrollstack__text {
    font-size: 14px;
    margin: 0 0 24px;
  }

  .lw-scrollstack .lw-scrollstack__card-inner {
    flex-direction: column;
    padding: 20px;
    gap: 24px;
    text-align: center;
  }

  .lw-scrollstack .lw-scrollstack__content {
    max-width: 100%;
  }

  .lw-scrollstack .lw-scrollstack__title {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .lw-scrollstack .lw-scrollstack__visual {
    max-width: 100%;
  }

  .lw-scrollstack .lw-scrollstack__cta {
    padding: 12px 24px;
    font-size: 16px;
    margin: 0 auto;
  }
}

@media (max-width: 575px) {
  .lw-scrollstack {
    padding: 48px 0;
  }

  .lw-scrollstack .lw-scrollstack__card-inner {
    padding: 16px;
  }
}

.lw-scrollstack .lw-scrollstack__card {
  will-change: transform;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.lw-scrollstack .lw-scrollstack__card.prev-1 {
  transform: scale(0.95);
}

.lw-scrollstack .lw-scrollstack__card.prev-2 {
  transform: scale(0.9);
}
