/* ==========================================================================
   cta.css — closing call to action

   Centred copy over a dot field and a soft blue glow, matching the reference's
   closing band. The oversized wordmark sits behind the content as texture.
   ========================================================================== */

.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Dot field + glow, both behind the content */
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.14) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 5%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 5%, transparent 72%);
  pointer-events: none;
}

.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    ellipse 70% 60% at 50% 100%,
    rgba(103, 153, 254, 0.16) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ds-space-5);
  text-align: center;
}

.cta__heading {
  max-width: 22ch;
  font-family: var(--ds-font-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: -0.02em;
  color: var(--ds-color-text-primary);
}

@media (min-width: 768px) {
  .cta__heading {
    font-size: 46px;
  }
}

.cta__text {
  max-width: 60ch;
  font-size: 16px;
  line-height: 175%;
  color: var(--ds-color-text-description);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--ds-space-3);
  margin-top: var(--ds-space-2);
}

/* Oversized wordmark as texture. Clipped to its own box so it never adds
   horizontal scroll on narrow screens. */
.cta__wordmark {
  width: 100%;
  margin-top: var(--ds-space-8);
  overflow: hidden;
  font-family: var(--ds-font-display);
  font-size: clamp(3.5rem, 16vw, 12rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0) 85%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

.cta__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--ds-space-2) var(--ds-space-5);
  font-family: var(--ds-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ds-color-text-placeholder);
}
