.cta {
  padding-block: 60px 100px;
}

.cta__box {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 680px;
  padding: 76px 76px 68px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.92) 0%, rgba(233, 239, 243, 0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 40px;
  box-shadow: 0 30px 70px rgba(30, 50, 70, 0.07);
}

.cta__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  max-width: 100%;
}

.cta__title,
.cta__text {
  max-width: 52%;
}

.cta__title {
  max-width: 11ch;
}

.cta__text {
  margin-bottom: 44px;
}

.cta__btn {
  align-self: flex-start;
  height: 62px;
  padding-inline: 38px;
  font-size: 17px;
}

.cta__benefits {
  --benefit-gap: 40px;

  display: flex;
  align-items: stretch;
  margin-top: auto;
  margin-left: calc(-1 * var(--benefit-gap));
  padding-top: 72px;
}

.cta__benefit {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  gap: 4px;
  padding-inline: var(--benefit-gap);
  white-space: nowrap;
  border-left: 1px solid #ccd6de;
}

.cta__benefit:first-child {
  border-left: 0;
}

.cta__benefit-title {
  position: relative;
  padding-left: 18px;
  font-size: 17px;
  font-weight: 500;
  color: var(--color-text);
}

.cta__benefit-title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  background-color: #9aa8b4;
  border-radius: 50%;
  transform: translateY(-50%);
}

.cta__benefit-text {
  padding-left: 18px;
  font-size: 15px;
  color: var(--color-muted);
}

.cta__tagline {
  position: absolute;
  top: 78px;
  right: 76px;
  z-index: 2;
  padding-top: 22px;
  font-size: 15px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: right;
  color: var(--color-muted);
}

.cta__tagline::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 26px;
  height: 1px;
  background-color: #b6c2cc;
}

.cta__spiral {
  position: absolute;
  right: -2%;
  bottom: -4%;
  z-index: 1;
  width: 50%;
  aspect-ratio: 1292 / 881;
}

.cta__spiral-img {
  position: relative;
  z-index: 2;
  width: 100%;
  filter:
    drop-shadow(0 46px 50px rgba(40, 62, 84, 0.2))
    drop-shadow(0 16px 20px rgba(40, 62, 84, 0.12))
    drop-shadow(-12px 8px 14px rgba(40, 62, 84, 0.07));
}

.cta__spiral-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.cta__glow {
  position: absolute;
  inset: 0;
  filter: blur(20px);
  opacity: 0;
  animation: cta-glow 9s linear infinite;
  animation-delay: var(--glow-delay, 0s);
}

.cta__glow::before {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask: url("../images/spiral4.webp") center / 100% 100% no-repeat;
  mask: url("../images/spiral4.webp") center / 100% 100% no-repeat;
  background: conic-gradient(
    from var(--turn, 0deg),
    rgba(110, 165, 220, 0) 0deg,
    rgba(110, 165, 220, 0.75) 40deg,
    rgba(255, 255, 255, 1) 65deg,
    rgba(110, 165, 220, 0.75) 90deg,
    rgba(120, 170, 220, 0) 140deg,
    rgba(120, 170, 220, 0) 360deg
  );
  transform: scale(1.035);
}

@keyframes cta-glow {
  0% {
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  25% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.cta__spiral-sheen {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  -webkit-mask: url("../images/spiral4.webp") center / 100% 100% no-repeat;
  mask: url("../images/spiral4.webp") center / 100% 100% no-repeat;
  pointer-events: none;
}

.cta__spiral-band {
  position: absolute;
  top: -40%;
  left: -55%;
  width: 40%;
  height: 180%;
  background: linear-gradient(
    90deg,
    rgba(40, 62, 84, 0) 0%,
    rgba(40, 62, 84, 0.2) 32%,
    rgba(255, 255, 255, 0.85) 62%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(16deg);
  animation: cta-sheen 11s ease-in-out infinite;
}

@keyframes cta-sheen {
  0% {
    transform: translate3d(0, 0, 0) rotate(16deg);
  }

  32%,
  100% {
    transform: translate3d(400%, 0, 0) rotate(16deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta__glow,
  .cta__spiral-band {
    animation: none;
  }

  .cta__glow:first-child {
    opacity: 1;
  }
}

@media (max-width: 1500px) {
  .cta__box {
    min-height: 620px;
    padding: 64px 64px 56px;
    border-radius: 36px;
  }

  .cta__tagline {
    top: 66px;
    right: 64px;
  }

  .cta__benefits {
    --benefit-gap: 36px;

    padding-top: 56px;
  }

  .cta__btn {
    height: 58px;
    padding-inline: 34px;
    font-size: 16px;
  }
}

@media (max-width: 1200px) {
  .cta {
    padding-block: 40px 72px;
  }

  .cta__box {
    min-height: 0;
    padding: 48px 48px 44px;
    border-radius: 32px;
  }

  .cta__content {
    max-width: 62%;
  }

  .cta__title {
    max-width: 14ch;
  }

  .cta__spiral {
    right: -6%;
    bottom: -8%;
    width: 52%;
  }

  .cta__tagline {
    top: 48px;
    right: 48px;
    font-size: 13px;
  }

  .cta__benefits {
    --benefit-gap: 28px;

    padding-top: 48px;
  }

  .cta__benefit-title {
    font-size: 16px;
  }

  .cta__benefit-text {
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .cta__content {
    max-width: 100%;
  }

  .cta__title {
    max-width: 16ch;
  }

  .cta__text {
    max-width: 46ch;
  }

  .cta__spiral {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: flex-end;
    width: 72%;
    margin-top: 16px;
    margin-right: -10%;
    margin-bottom: -6%;
  }

  .cta__benefits {
    padding-top: 40px;
  }
}

@media (max-width: 768px) {
  .cta {
    padding-block: 32px 56px;
  }

  .cta__box {
    padding: 36px 32px 32px;
    border-radius: 28px;
  }

  .cta__tagline {
    position: static;
    order: -1;
    margin-bottom: 20px;
    padding-top: 0;
    text-align: left;
  }

  .cta__tagline::before {
    display: none;
  }

  .cta__spiral {
    width: 68%;
    margin-right: -10%;
  }

  .cta__benefits {
    --benefit-gap: 20px;

    padding-top: 32px;
  }

  .cta__btn {
    height: 54px;
    padding-inline: 30px;
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .cta__box {
    padding: 28px 22px 26px;
    border-radius: 24px;
  }

  .cta__text {
    margin-bottom: 28px;
  }

  .cta__btn {
    align-self: stretch;
    width: 100%;
  }

  .cta__spiral {
    width: 80%;
    margin-right: -12%;
  }

  .cta__benefits {
    flex-direction: column;
    gap: 16px;
    margin-left: 0;
    padding-top: 28px;
  }

  .cta__benefit {
    padding-inline: 0;
    border-left: 0;
  }
}
