/* ==========================================================================
   FINAL CONVERSION CTA SECTION STYLES
   ========================================================================== */

.final-cta-section {
  position: relative;
  overflow: visible;
  padding: clamp(3rem, 2rem + 3.5vw, 5.5rem) 0;
  padding-top: 0;
  width: 100%;
  background: #FFFFFF;
}

/* Large Dark Rounded parent panel */
.final-cta-panel {
  border-radius: 36px;
  padding: clamp(1.75rem, 1.25rem + 2.5vw, 4rem) clamp(1.25rem, 1rem + 2vw, 3.5rem);
  background: radial-gradient(circle at 30% 20%, #0F172A 0%, #040813 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xl);
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  background: #0F1427;
}

@media (min-width: 992px) {
  .final-cta-panel {
    grid-template-columns: 48fr 52fr;
    gap: var(--space-2xl);
    align-items: center;
  }
}

/* Ambient highlight inside panel */
.final-cta-panel-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(circle at 20% 10%, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
  animation: panel-ambient-light-sweep 35s ease-in-out infinite;
  will-change: background-position;
}

@keyframes panel-ambient-light-sweep {

  0%,
  100% {
    background-position: 20% 10%;
  }

  50% {
    background-position: 80% 90%;
  }
}

/* ==========================================================================
   LEFT MARKETING CONTENT
   ========================================================================== */

.final-cta-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  z-index: 2;
}

.final-cta-headline {
  color: #FFFFFF;
  margin-bottom: var(--space-md);
}

.final-cta-desc {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  max-width: 540px;
}

/* ==========================================================================
   RIGHT CONVERSION DETAILS CARD
   ========================================================================== */

.cta-info-card-parallax {
  width: 100%;
  position: relative;
  z-index: 2;
  transition: transform 150ms ease-out;
  will-change: transform;
}

.cta-info-card {
  background: #12182B;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: clamp(1.25rem, 1rem + 1.2vw, 2.5rem);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  animation: cta-card-float 8s ease-in-out infinite;
  will-change: transform;
}

@keyframes cta-card-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

.cta-info-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cta-info-card:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 4px;
}

/* Spotlight cursor follower */
.cta-info-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 120px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.08), transparent 80%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 300ms ease;
}

.cta-info-card:hover::before {
  opacity: 1;
}

.cta-card-title {
  font-size: var(--font-body-large);
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 0;
  margin-bottom: var(--space-sm);
  z-index: 2;
  position: relative;
}

/* Checklist */
.cta-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
  z-index: 2;
  position: relative;
}

.cta-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: 0.938rem;
  color: var(--text-secondary);
  line-height: 1.4;
  transition: color 300ms ease;
}

.cta-checklist-item:hover {
  color: #FFFFFF;
}

.cta-checkmark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition:
    transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 300ms ease,
    border-color 300ms ease,
    box-shadow 300ms ease;
  will-change: transform, background-color, border-color, box-shadow;
}

/* Flash active checkmark glow */
.cta-checkmark.checkmark-glow {
  transform: scale(1.15) rotate(10deg);
  background-color: #3B82F6;
  border-color: #3B82F6;
  box-shadow: 0 0 12px #3B82F6;
}

/* Primary CTA magnet Attraction wrappers */
.cta-btn-wrapper {
  margin-top: var(--space-md);
  width: 100%;
  display: flex;
  justify-content: flex-start;
  z-index: 2;
  position: relative;
  transition: transform 150ms ease-out;
  will-change: transform;
}

.cta-btn-wrapper .btn-primary {
  width: 100%;
  max-width: 240px;
}

@media (max-width: 480px) {
  .cta-btn-wrapper .btn-primary {
    max-width: 100%;
  }
}

/* Recurrent idle CTA pulse scale */
.btn-primary.periodic-cta-pulse {
  animation: cta-primary-breathing 1.2s ease-in-out forwards;
}

@keyframes cta-primary-breathing {
  0% {
    transform: scale(1);
    box-shadow: var(--shadow-sm);
  }

  50% {
    transform: scale(1.015);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
  }

  100% {
    transform: scale(1);
    box-shadow: var(--shadow-sm);
  }
}

.read-more-link,
.card-title {
  color: var(--color-black);
}

/* ==========================================================================
   CONVERSION JOURNEY OVERLAYS & HITS
   ========================================================================== */

.conversion-journey-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.journey-path {
  fill: none;
  stroke: transparent;
}

.journey-particle {
  fill: #3B82F6;
  opacity: 0;
  filter: drop-shadow(0 0 6px #3B82F6);
  will-change: opacity;
}

.journey-particle.active {
  opacity: 0.9;
}

/* Highlight flash pulse on button hit */
.btn-primary.cta-glow-pulse {
  animation: cta-flash-effect 600ms cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes cta-flash-effect {
  0% {
    box-shadow: var(--shadow-sm);
  }

  50% {
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.45);
    transform: scale(1.02);
  }

  100% {
    box-shadow: var(--shadow-sm);
    transform: scale(1);
  }
}

/* Soft blue connection line (hover button draws) */
.cta-connection-line {
  fill: none;
  stroke: #3B82F6;
  stroke-width: 1.5px;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  opacity: 0;
  transition: stroke-dashoffset 700ms ease, opacity 350ms ease;
}

.cta-info-card:has(.btn-primary:hover) .cta-connection-line {
  stroke-dashoffset: 0;
  opacity: 0.55;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM OVERRIDES
   ========================================================================== */

@media (max-width: 991px) {
  .conversion-journey-svg {
    display: none;
    /* Hide SVG journey overlays on tablets & mobile stacking */
  }
}

@media (prefers-reduced-motion: reduce) {

  .final-cta-panel-glow,
  .cta-info-card,
  .cta-checkmark,
  .btn-primary,
  .journey-particle,
  .cta-connection-line {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}