/* ============================================
   FINAL CTA — Cinematic Ending
   ============================================ */

.cta {
  position: relative;
  z-index: 2;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-32) var(--space-6);
  overflow: hidden;
}

/* Energy wave background */
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 60%, rgba(0, 102, 255, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(0, 163, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 60%, rgba(108, 92, 231, 0.04) 0%, transparent 50%);
  animation: gradient-shift 12s ease-in-out infinite;
  background-size: 200% 200%;
  z-index: 0;
}

/* Animated wave lines */
.cta__waves {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.cta__wave {
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 120%;
  height: 400px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 163, 255, 0.03) 50%, transparent 100%);
  border-top: 1px solid rgba(0, 163, 255, 0.06);
  border-radius: 50%;
  transform-origin: center;
}

.cta__wave--1 {
  animation: wave 12s ease-in-out infinite;
}

.cta__wave--2 {
  bottom: -30%;
  animation: wave 14s ease-in-out infinite 2s;
  opacity: 0.7;
}

.cta__wave--3 {
  bottom: -40%;
  animation: wave 16s ease-in-out infinite 4s;
  opacity: 0.4;
}

/* ── Content ── */
.cta__inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Glass panel */
.cta__panel {
  background: rgba(7, 17, 30, 0.5);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(0, 163, 255, 0.1);
  border-radius: var(--radius-2xl);
  padding: var(--space-20) var(--space-16);
  position: relative;
  overflow: hidden;
}

/* Panel glow */
.cta__panel::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 163, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Panel border shimmer */
.cta__panel::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, rgba(0, 163, 255, 0.15), transparent 30%, transparent 70%, rgba(0, 212, 255, 0.1));
  z-index: -1;
  pointer-events: none;
}

.cta__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-electric);
  margin-bottom: var(--space-8);
}

.cta__title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.cta__title span {
  background: linear-gradient(135deg, var(--blue-electric), var(--blue-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
  line-height: 1.6;
}

.cta__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 2;
  padding: var(--space-12) var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-secondary);
}

.footer__logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--blue-azure), var(--blue-cyan));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: white;
}

.footer__links {
  display: flex;
  gap: var(--space-6);
}

.footer__link {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  transition: color var(--duration-fast);
}

.footer__link:hover {
  color: var(--text-secondary);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .cta {
    padding: var(--space-20) var(--space-4);
    min-height: 70vh;
  }

  .cta__panel {
    padding: var(--space-12) var(--space-6);
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__logo {
    justify-content: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cta__title {
    font-size: var(--text-3xl);
  }
}
