/*
 * The closing call to action's backdrop, in place of Webflow's video — see
 * lib/pages/cta.ts.
 *
 * A cobalt gradient, three soft glows drifting slowly across it on their own
 * paths so the light never repeats the same way twice in a glance, a faint
 * turning sheen, and a grain to keep the gradient from banding. All CSS: no
 * download, and it stops for reduced motion.
 */

.cta-block.mt-cta {
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(145deg, #0a1a7a 0%, #1433d6 48%, #2a5bff 100%);
  border-color: transparent;
}

.mt-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* The three glows. */
.mt-cta-bg i {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.85;
  will-change: transform;
}

.mt-cta-bg i:nth-child(1) {
  top: -30%;
  left: -10%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, #6f9bff 0%, rgb(111 155 255 / 0) 70%);
  animation: mt-cta-a 18s ease-in-out infinite alternate;
}

.mt-cta-bg i:nth-child(2) {
  right: -15%;
  bottom: -45%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, #00c2ff 0%, rgb(0 194 255 / 0) 68%);
  opacity: 0.55;
  animation: mt-cta-b 22s ease-in-out infinite alternate;
}

.mt-cta-bg i:nth-child(3) {
  top: 20%;
  left: 35%;
  width: 45%;
  aspect-ratio: 1;
  background: radial-gradient(circle, #9d7bff 0%, rgb(157 123 255 / 0) 70%);
  opacity: 0.45;
  animation: mt-cta-c 26s ease-in-out infinite alternate;
}

@keyframes mt-cta-a {
  to { transform: translate(35%, 30%) scale(1.15); }
}

@keyframes mt-cta-b {
  to { transform: translate(-40%, -25%) scale(0.9); }
}

@keyframes mt-cta-c {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30%, 20%) scale(1.25); }
  100% { transform: translate(25%, -20%) scale(0.95); }
}

/* A slow sheen turning over the whole card, and the grain. */
.mt-cta-bg::before,
.mt-cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
}

.mt-cta-bg::before {
  inset: -50%;
  background: conic-gradient(from 0deg at 50% 50%, rgb(255 255 255 / 0) 0deg, rgb(255 255 255 / 0.09) 60deg, rgb(255 255 255 / 0) 140deg, rgb(255 255 255 / 0) 360deg);
  animation: mt-cta-turn 30s linear infinite;
}

.mt-cta-bg::after {
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes mt-cta-turn {
  to { transform: rotate(360deg); }
}

/* Webflow's black vignette, softened to the blue's own depth. */
.cta-block.mt-cta .div-block-110 {
  z-index: 1;
  background-image: radial-gradient(circle closest-corner, rgb(8 20 90 / 0) 40%, rgb(6 14 70 / 0.45) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .mt-cta-bg i,
  .mt-cta-bg::before {
    animation: none;
  }
}
