/* Final CTA */

#final-cta {
  position: relative;
  padding: clamp(3.2rem, 5.4vw, 4.6rem) 0;
  border-top: 1px solid rgba(var(--brand-color-rgb), 0.24);
  border-bottom: 1px solid rgba(var(--brand-color-rgb), 0.18);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 241, 232, 0.08), transparent 28%),
    radial-gradient(circle at 84% 76%, rgba(150, 236, 247, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(var(--brand-color-deep-rgb), 0.98) 0%, rgba(18, 104, 118, 0.94) 56%, rgba(122, 224, 238, 0.9) 100%);
  overflow: clip;
}

#final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: radial-gradient(circle at center, black 34%, transparent 82%);
  opacity: 0.22;
  pointer-events: none;
}

.final-cta__shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: clamp(1.4rem, 3vw, 2.8rem);
  align-items: center;
  padding: clamp(0.4rem, 1vw, 0.8rem) 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.final-cta__shell::after {
  content: "";
  position: absolute;
  inset: auto -2% -26% auto;
  width: clamp(14rem, 28vw, 22rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-color-rgb), 0.24), transparent 64%);
  filter: blur(22px);
  opacity: 0.78;
  pointer-events: none;
}

.final-cta__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.final-cta__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  padding: 0.36rem 0.72rem;
  border: 1px solid rgba(214, 245, 255, 0.24);
  background: rgba(7, 30, 38, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  color: rgba(214, 245, 255, 0.9);
  font-family: "IBM Plex Mono", "Fira Code", "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.1;
  text-transform: uppercase;
}

#final-cta h2 {
  max-width: 16ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.1rem, 3.8vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

#final-cta p {
  max-width: 58ch;
  margin: 0;
  color: rgba(230, 245, 250, 0.88);
  font-size: 1.02rem;
  line-height: 1.82;
}

.final-cta__actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.85rem;
  justify-items: start;
}

.final-cta__actions .btn {
  min-width: min(100%, 19rem);
  box-shadow: 0 18px 34px rgba(4, 14, 22, 0.24);
}

.final-cta__actions .btn-primary {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.92);
  color: rgba(var(--brand-color-deep-rgb), 0.96);
}

.final-cta__actions .btn-primary:hover,
.final-cta__actions .btn-primary:focus-visible {
  background: #ffffff;
  border-color: #ffffff;
  color: rgba(var(--brand-color-deep-rgb), 1);
}

.final-cta__actions .btn-outline {
  background: rgba(7, 24, 36, 0.18);
  border-color: rgba(223, 247, 255, 0.34);
  color: rgba(244, 252, 255, 0.94);
}

.final-cta__actions .btn-outline:hover,
.final-cta__actions .btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.56);
  color: #ffffff;
}

:root[data-theme="light"] #final-cta {
  border-top-color: rgba(var(--brand-color-rgb), 0.18);
  border-bottom-color: rgba(var(--brand-color-rgb), 0.14);
  background:
    radial-gradient(circle at 14% 24%, rgba(255, 255, 255, 0.16), transparent 26%),
    radial-gradient(circle at 82% 78%, rgba(65, 151, 170, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(var(--brand-color-rgb), 0.92) 0%, rgba(21, 84, 94, 0.94) 58%, rgba(7, 46, 56, 0.98) 100%);
}

:root[data-theme="light"] #final-cta::before {
  background:
    linear-gradient(90deg, rgba(170, 227, 237, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(170, 227, 237, 0.055) 1px, transparent 1px);
  background-size: 5rem 5rem;
  opacity: 0.22;
}

:root[data-theme="light"] #final-cta h2 {
  color: #ffffff;
}

:root[data-theme="light"] #final-cta p {
  color: rgba(234, 247, 252, 0.9);
}

:root[data-theme="light"] .final-cta__eyebrow {
  color: rgba(236, 251, 255, 0.96);
  border-color: rgba(195, 242, 250, 0.34);
  background: rgba(6, 37, 46, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 24px rgba(7, 34, 42, 0.16);
}

:root[data-theme="light"] .final-cta__actions .btn {
  box-shadow: 0 16px 30px rgba(8, 34, 46, 0.18);
}

:root[data-theme="light"] .final-cta__actions .btn-primary {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.92);
  color: rgba(var(--brand-color-deep-rgb), 0.96);
}

:root[data-theme="light"] .final-cta__actions .btn-outline {
  background: rgba(8, 28, 40, 0.14);
  border-color: rgba(223, 247, 255, 0.32);
  color: rgba(244, 252, 255, 0.94);
}

@media (max-width: 960px) {
  .final-cta__shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  #final-cta h2 {
    max-width: none;
  }

  .final-cta__actions {
    justify-items: stretch;
  }

  .final-cta__actions .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  #final-cta {
    padding-block: 2.6rem;
  }

  .final-cta__shell::after {
    display: none;
  }
}
