/* ==========================================================================
   Closing CTA Section - Premium Asymmetrical Editorial Showcase
   Apple, Stripe, Framer, Antigravity Luxury B2B Aesthetic
   ========================================================================== */

:root {
  --cta-bg-gradient: linear-gradient(180deg, #FAFAFC 0%, #FFFFFF 50%, #F8FAFC 100%);
  --cta-text-heading: #0F172A;
  --cta-text-accent: #2563EB;
  --cta-text-body: #475569;
  --cta-font-heading: 'Syne', 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --cta-font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
}

.cta-section {
  position: relative;
  background: var(--cta-bg-gradient);
  color: var(--cta-text-heading);
  padding: 140px 0 160px;
  overflow: hidden;
  font-family: var(--cta-font-body);
}

/* Ambient Lighting Orbs & Mesh Backgrounds */
.cta-bg-glow-1 {
  position: absolute;
  top: 10%;
  left: -5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.045) 0%, transparent 70%);
  filter: blur(85px);
  pointer-events: none;
}

.cta-bg-glow-2 {
  position: absolute;
  bottom: 10%;
  right: -5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(212, 161, 57, 0.05) 0%, transparent 75%);
  filter: blur(90px);
  pointer-events: none;
}

.cta-container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

/* Asymmetrical 55/45 Split Grid */
.cta-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 76px;
  align-items: center;
}

/* Left Column: Content & Glassmorphism Pill Buttons */
.cta-content-col {
  max-width: 650px;
  position: relative;
  padding-left: 28px;
}

/* Vertical Accent Line beside Heading */
.cta-vertical-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #2563EB 0%, #D4A139 100%);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

.cta-heading-main {
  position: relative;
  font-family: var(--cta-font-heading);
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--cta-text-heading);
  margin: 0 0 24px;
  padding-bottom: 16px;
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cta-heading-main::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, #2563EB 0%, #D4A139 100%);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.cta-paragraph {
  font-family: var(--cta-font-body);
  font-size: clamp(1.05rem, 1.2vw, 1.18rem);
  line-height: 1.85;
  color: var(--cta-text-body);
  margin: 0 0 20px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.1s, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.1s;
}

.cta-subheading {
  font-family: var(--cta-font-heading);
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  font-weight: 700;
  color: var(--cta-text-accent);
  line-height: 1.35;
  margin: 28px 0 10px;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.16s, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.16s;
}

.cta-heading-secondary {
  font-family: var(--cta-font-heading);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 800;
  color: var(--cta-text-heading);
  line-height: 1.25;
  margin: 0 0 28px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s;
}

/* Glassmorphism Pill Buttons Grid (2x2 Desktop) */
.cta-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.cta-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 24px 12px 14px;
  border-radius: 999px;
  font-family: var(--cta-font-body);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--cta-text-heading);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 0 20px rgba(37, 99, 235, 0.04);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              background 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.4s ease,
              color 0.3s ease;
  opacity: 0;
  transform: translateY(24px);
  text-align: left;
}

.cta-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  color: #2563EB;
  margin-right: 14px;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, color 0.3s ease;
}

.cta-btn-icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.cta-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-pill-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-pill-btn:hover {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.35);
}

.cta-pill-btn:hover .cta-btn-icon {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  transform: scale(1.15) rotate(6deg);
}

/* Right Column: Immersive Corporate Image Frame */
.cta-image-wrapper {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 32px;
  overflow: hidden;
  background: #0F172A;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 70px -15px rgba(15, 23, 42, 0.15), 0 0 40px rgba(37, 99, 235, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.165, 0.84, 0.44, 1) 0.25s, transform 0.9s cubic-bezier(0.165, 0.84, 0.44, 1) 0.25s;
  animation: ctaFloatImg 8s ease-in-out infinite alternate;
}

.cta-image-wrapper.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.75s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cta-image-wrapper:hover img {
  transform: scale(1.03);
}

@keyframes ctaFloatImg {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* Responsive Adaptations */
@media (max-width: 1199px) {
  .cta-buttons-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .cta-section {
    padding: 100px 0 110px;
  }
  .cta-split-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .cta-content-col {
    max-width: 100%;
    padding-left: 20px;
  }
  .cta-image-wrapper {
    height: 360px;
  }
}

@media (max-width: 575px) {
  .cta-section {
    padding: 80px 0 90px;
  }
  .cta-heading-main {
    margin-bottom: 18px;
  }
  .cta-pill-btn {
    padding: 14px 20px;
    font-size: 0.92rem;
    width: 100%;
  }
  .cta-image-wrapper {
    height: 270px;
    border-radius: 24px;
  }
}
