/* ==========================================================================
   INTELLIXAPI ULTRA-PREMIUM FINAL CTA SECTION (APPLE & STRIPE TIER)
   ========================================================================== */

.ix-cta-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 100px 0 120px 0;
  background: #FFFFFF;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #142B68;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   BACKGROUND LIGHTING & MESH GRADIENTS
   ========================================================================== */
.ix-cta-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(231, 237, 247, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(231, 237, 247, 0.35) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, black 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 45%, transparent 85%);
  pointer-events: none;
  z-index: 1;
}

.ix-cta-spotlight {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.12) 0%, rgba(76, 132, 244, 0.08) 45%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.ix-cta-orb-blue {
  position: absolute;
  top: 15%;
  left: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 132, 244, 0.09) 0%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
  animation: ixCtaOrbFloat 14s ease-in-out infinite alternate;
}

.ix-cta-orb-green {
  position: absolute;
  bottom: 10%;
  right: -100px;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.09) 0%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
  animation: ixCtaOrbFloat 16s ease-in-out infinite alternate-reverse;
}

@keyframes ixCtaOrbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Container */
.ix-cta-container {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==========================================================================
   TOP BADGE
   ========================================================================== */
.ix-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(37, 211, 102, 0.35);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: #166534;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  animation: ixCtaPulse 3s infinite ease-in-out;
}

.ix-cta-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: skewX(-20deg);
  animation: ixCtaShimmer 4s infinite;
}

@keyframes ixCtaPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.12); }
  50% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.28); }
}

@keyframes ixCtaShimmer {
  0% { left: -100%; }
  30%, 100% { left: 200%; }
}

.ix-cta-meta-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
}

/* ==========================================================================
   HEADLINE & SUBTITLE
   ========================================================================== */
.ix-cta-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 4.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #142B68;
  max-width: 1050px;
  margin: 0 auto 20px auto;
}

.ix-cta-revenue-gradient {
  background: linear-gradient(135deg, #25D366 0%, #10B981 50%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

.ix-cta-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
  color: #475569;
  max-width: 720px;
  margin: 0 auto 40px auto;
  font-weight: 450;
}

/* ==========================================================================
   PRIMARY & SECONDARY CTA BUTTONS
   ========================================================================== */
.ix-cta-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.ix-cta-btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 38px;
  border-radius: 100px;
  background: linear-gradient(135deg, #25D366 0%, #10B981 100%);
  color: #FFFFFF !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px -4px rgba(37, 211, 102, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  user-select: none;
}

.ix-cta-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.ix-cta-btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 40px -4px rgba(37, 211, 102, 0.55), 0 0 25px rgba(37, 211, 102, 0.4);
}

.ix-cta-btn-primary:hover::before {
  left: 100%;
}

.ix-cta-btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.ix-cta-btn-primary:hover .ix-cta-btn-arrow {
  transform: translateX(5px);
}

.ix-cta-btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid #E2E8F0;
  color: #142B68 !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(20, 43, 104, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.ix-cta-btn-secondary:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: #4C84F4;
  color: #4C84F4 !important;
  box-shadow: 0 12px 30px rgba(76, 132, 244, 0.15);
}

.ix-cta-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(76, 132, 244, 0.12);
  color: #4C84F4;
}

.ix-cta-btn-secondary:hover .ix-cta-play-icon {
  background: #4C84F4;
  color: #FFFFFF;
}

/* ==========================================================================
   LIVE AI WORKFLOW DASHBOARD DEMO CARD
   ========================================================================== */
.ix-cta-demo-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 60px auto;
  position: relative;
}

.ix-cta-demo-card {
  border-radius: 28px;
  background: #FFFFFF;
  border: 1.5px solid #E7EDF7;
  box-shadow: 0 25px 70px -15px rgba(20, 43, 104, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  padding: 32px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.ix-cta-demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 24px;
}

.ix-cta-demo-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #142B68;
}

.ix-cta-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #166534;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ix-cta-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25D366;
  animation: ixDotBlink 1.5s infinite;
}

@keyframes ixDotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.ix-cta-revenue-counter-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.08) 0%, rgba(16, 185, 129, 0.12) 100%);
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.ix-cta-counter-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
}

.ix-cta-counter-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #166534;
}

/* Workflow Flow Steps Grid */
.ix-cta-flow-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.ix-cta-flow-step {
  padding: 14px 10px;
  border-radius: 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.ix-cta-flow-step.active {
  background: #FFFFFF;
  border-color: #25D366;
  box-shadow: 0 8px 24px -4px rgba(37, 211, 102, 0.22);
  transform: translateY(-3px);
}

.ix-cta-flow-icon {
  font-size: 20px;
  margin-bottom: 6px;
}

.ix-cta-flow-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #142B68;
  line-height: 1.2;
}

.ix-cta-flow-sub {
  font-size: 9.5px;
  color: #64748B;
  margin-top: 3px;
  font-weight: 600;
}

/* Interactive Chat Simulation Box */
.ix-cta-chat-sim {
  background: #F8FAFC;
  border-radius: 18px;
  border: 1px solid #E2E8F0;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ix-cta-msg-bubble {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 80%;
}

.ix-cta-msg-user {
  align-self: flex-start;
}

.ix-cta-msg-ai {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ix-cta-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.ix-cta-msg-content {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.ix-cta-msg-user .ix-cta-msg-content {
  background: #FFFFFF;
  color: #142B68;
  border: 1px solid #E2E8F0;
  border-top-left-radius: 2px;
}

.ix-cta-msg-ai .ix-cta-msg-content {
  background: #25D366;
  color: #FFFFFF;
  border-top-right-radius: 2px;
  font-weight: 500;
}

.ix-cta-msg-ticks {
  display: inline-flex;
  margin-left: 4px;
  color: #FFFFFF;
  font-size: 11px;
}

.ix-cta-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  align-self: flex-start;
}

.ix-cta-typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4C84F4;
  animation: ixTyping 1.4s infinite ease-in-out;
}

.ix-cta-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ix-cta-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes ixTyping {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

/* ==========================================================================
   SOCIAL PROOF GLASS BADGES
   ========================================================================== */
.ix-cta-trust-badges-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
  max-width: 1000px;
}

.ix-cta-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: #FFFFFF;
  border: 1.5px solid #E7EDF7;
  box-shadow: 0 4px 14px rgba(20, 43, 104, 0.03);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #142B68;
  transition: all 0.25s ease;
}

.ix-cta-trust-badge:hover {
  transform: translateY(-3px);
  border-color: #25D366;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.15);
}

.ix-cta-tb-icon {
  color: #25D366;
  font-size: 13px;
}

/* ==========================================================================
   LIVE METRICS STRIP
   ========================================================================== */
.ix-cta-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto 60px auto;
}

.ix-cta-metric-card {
  padding: 20px 16px;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1.5px solid #E7EDF7;
  box-shadow: 0 8px 25px -6px rgba(20, 43, 104, 0.04);
  text-align: center;
  transition: all 0.25s ease;
}

.ix-cta-metric-card:hover {
  transform: translateY(-4px);
  border-color: #4C84F4;
  box-shadow: 0 12px 30px rgba(76, 132, 244, 0.15);
}

.ix-cta-metric-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  color: #142B68;
  line-height: 1.1;
}

.ix-cta-metric-lbl {
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  margin-top: 4px;
}

/* ==========================================================================
   FINAL STATEMENT & GROWTH LINE
   ========================================================================== */
.ix-cta-final-statement-box {
  margin-top: 20px;
  text-align: center;
  max-width: 700px;
}

.ix-cta-final-statement {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 800;
  color: #142B68;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.ix-cta-growth-line-svg {
  width: 100%;
  max-width: 480px;
  height: 6px;
  margin: 0 auto;
}

.ix-cta-growth-path {
  stroke: url(#ctaGrowthGradient);
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: ixGrowthDraw 3.5s infinite linear;
}

@keyframes ixGrowthDraw {
  0% { stroke-dashoffset: 600; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -600; }
}

/* ==========================================================================
   FLOATING AMBIENT GRAPHICS & NODES
   ========================================================================== */
.ix-cta-floating-node {
  position: absolute;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(231, 237, 247, 0.8);
  box-shadow: 0 10px 25px rgba(20, 43, 104, 0.05);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #142B68;
  pointer-events: none;
  z-index: 2;
  animation: ixFloatNode 8s ease-in-out infinite alternate;
}

.ix-cta-fn-1 { top: 12%; left: 4%; animation-delay: 0s; }
.ix-cta-fn-2 { top: 22%; right: 4%; animation-delay: 1.5s; }
.ix-cta-fn-3 { bottom: 25%; left: 5%; animation-delay: 3s; }
.ix-cta-fn-4 { bottom: 18%; right: 5%; animation-delay: 4.5s; }

@keyframes ixFloatNode {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-16px) rotate(2deg); }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 991px) {
  .ix-cta-flow-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .ix-cta-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .ix-cta-floating-node {
    display: none; /* Hide ambient floating nodes on mobile for maximum space */
  }
}

@media (max-width: 640px) {
  .ix-cta-section {
    padding: 60px 0 80px 0;
  }

  .ix-cta-headline {
    font-size: 2.2rem;
  }

  .ix-cta-demo-card {
    padding: 20px 14px;
    border-radius: 20px;
  }

  .ix-cta-flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ix-cta-btn-group {
    flex-direction: column;
    width: 100%;
  }

  .ix-cta-btn-primary,
  .ix-cta-btn-secondary {
    width: 100%;
    box-sizing: border-box;
  }
}
