/*
 * Extolem — CTA Section (Chunk 16)
 * Background: --ex-bg-2  (even — follows faq)
 * Prefix: .ex-cta-*
 */

/* ═══════════════════════════════════════════════════════
   SECTION SHELL
   ═══════════════════════════════════════════════════════ */
.ex-cta {
  position: relative;
  background: var(--ex-bg-2);
  padding: 120px 0 140px;
  overflow: hidden;
}

/* Edge fades */
.ex-cta::before,
.ex-cta::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 200px;
  pointer-events: none;
  z-index: 0;
}
.ex-cta::before {
  top: 0;
  background: linear-gradient(180deg, var(--ex-bg-2) 0%, transparent 100%);
}
.ex-cta::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--ex-bg-2) 0%, transparent 100%);
}

/* ═══════════════════════════════════════════════════════
   AMBIENT GLOW BACKGROUND
   ═══════════════════════════════════════════════════════ */
.ex-cta-glow-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ex-cta-glow-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(0, 230, 184, 0.07) 0%,
    rgba(0, 188, 212, 0.04) 40%,
    transparent 70%
  );
  border-radius: 50%;
}
.ex-cta-glow-bg::after {
  content: '';
  position: absolute;
  top: 30%;
  right: -10%;
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse at center,
    rgba(99, 102, 241, 0.05) 0%,
    transparent 65%
  );
  border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════
   INNER WRAPPER
   ═══════════════════════════════════════════════════════ */
.ex-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}

/* ═══════════════════════════════════════════════════════
   LEFT COLUMN — COPY
   ═══════════════════════════════════════════════════════ */
.ex-cta-copy {}

.ex-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ex-mint);
  background: rgba(0, 230, 184, 0.08);
  border: 1px solid rgba(0, 230, 184, 0.2);
  border-radius: var(--ex-r-full);
  padding: 6px 16px 6px 10px;
  margin-bottom: 28px;
}
.ex-cta-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ex-mint);
  box-shadow: 0 0 8px var(--ex-mint-glow);
}

.ex-cta-h2 {
  font-family: var(--ex-font);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ex-text);
  margin: 0 0 20px;
}
.ex-cta-h2 em {
  font-style: normal;
  background: var(--ex-grad-mint);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ex-cta-sub {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ex-text-muted);
  margin: 0 0 40px;
  max-width: 520px;
}

/* CTA buttons */
.ex-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.ex-cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ex-grad-mint);
  color: #05080D;
  font-size: 0.9375rem;
  font-weight: 800;
  border-radius: var(--ex-r-full);
  padding: 14px 32px;
  text-decoration: none;
  transition: transform var(--ex-t) var(--ex-ease-spring),
              box-shadow var(--ex-t) var(--ex-ease-out),
              filter var(--ex-t) var(--ex-ease-out);
  box-shadow: var(--ex-shadow-mint);
  white-space: nowrap;
}
.ex-cta-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 40px rgba(0, 230, 184, 0.45);
  filter: brightness(1.08);
}
.ex-cta-btn-primary:focus-visible {
  outline: 2px solid var(--ex-mint);
  outline-offset: 3px;
}

.ex-cta-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ex-text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid var(--ex-border-strong);
  border-radius: var(--ex-r-full);
  padding: 14px 28px;
  text-decoration: none;
  transition: color var(--ex-t) var(--ex-ease-out),
              border-color var(--ex-t) var(--ex-ease-out),
              transform var(--ex-t) var(--ex-ease-spring);
}
.ex-cta-btn-ghost:hover {
  color: var(--ex-text);
  border-color: var(--ex-border-mint);
  transform: translateY(-1px);
}
.ex-cta-btn-ghost:focus-visible {
  outline: 2px solid var(--ex-mint);
  outline-offset: 3px;
}

/* Arrow icons */
.ex-cta-arrow {
  font-size: 1rem;
  transition: transform var(--ex-t) var(--ex-ease-spring);
}
.ex-cta-btn-primary:hover .ex-cta-arrow,
.ex-cta-btn-ghost:hover .ex-cta-arrow {
  transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════
   RIGHT COLUMN — MINI DASHBOARD CARD
   ═══════════════════════════════════════════════════════ */
.ex-cta-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid var(--ex-border-md);
  border-radius: var(--ex-r-xl);
  padding: 32px;
  box-shadow: var(--ex-shadow-card),
              0 0 60px rgba(0, 230, 184, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}
/* Mint top-edge accent */
.ex-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ex-mint-dim), transparent);
}

/* Card header */
.ex-cta-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ex-border);
}
.ex-cta-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ex-mint);
  box-shadow: 0 0 10px var(--ex-mint-glow);
  animation: ex-cta-pulse 2.4s ease-in-out infinite;
}
@keyframes ex-cta-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--ex-mint-glow); }
  50%       { opacity: 0.6; box-shadow: 0 0 4px var(--ex-mint-glow); }
}
.ex-cta-card-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ex-text-subtle);
  text-transform: uppercase;
}
.ex-cta-card-badge {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ex-mint);
  background: rgba(0, 230, 184, 0.1);
  border: 1px solid rgba(0, 230, 184, 0.2);
  border-radius: var(--ex-r-full);
  padding: 3px 10px;
  letter-spacing: 0.04em;
}

/* Step rows */
.ex-cta-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ex-cta-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--ex-r-md);
  transition: background var(--ex-t) var(--ex-ease-out);
}
.ex-cta-step:hover {
  background: rgba(255, 255, 255, 0.03);
}

.ex-cta-step-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--ex-r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  flex-shrink: 0;
}
.ex-cta-step-icon--mint   { background: rgba(0, 230, 184, 0.12); }
.ex-cta-step-icon--teal   { background: rgba(0, 188, 212, 0.12); }
.ex-cta-step-icon--blue   { background: rgba(99, 102, 241, 0.12); }
.ex-cta-step-icon--gold   { background: rgba(245, 158, 11, 0.12); }

.ex-cta-step-text {
  flex: 1;
}
.ex-cta-step-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ex-text);
  line-height: 1.3;
}
.ex-cta-step-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--ex-text-subtle);
  margin-top: 1px;
}

.ex-cta-step-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--ex-r-full);
  white-space: nowrap;
}
.ex-cta-step-status--done {
  background: rgba(0, 230, 184, 0.12);
  color: var(--ex-mint);
}
.ex-cta-step-status--ready {
  background: rgba(245, 158, 11, 0.12);
  color: var(--ex-gold);
}
.ex-cta-step-status--live {
  background: rgba(99, 102, 241, 0.12);
  color: var(--ex-purple);
}

/* Card footer CTA nudge */
.ex-cta-card-footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--ex-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ex-cta-card-footer-label {
  font-size: 0.8125rem;
  color: var(--ex-text-subtle);
}
.ex-cta-card-footer-action {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ex-mint);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--ex-t) var(--ex-ease-spring);
}
.ex-cta-card-footer-action:hover { gap: 8px; }

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════════ */
.ex-cta-copy .ex-cta-eyebrow,
.ex-cta-copy .ex-cta-h2,
.ex-cta-copy .ex-cta-sub,
.ex-cta-copy .ex-cta-btns {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ex-ease-out), transform 0.6s var(--ex-ease-out);
}
.ex-cta-copy.is-visible .ex-cta-eyebrow { opacity: 1; transform: none; transition-delay: 0s; }
.ex-cta-copy.is-visible .ex-cta-h2     { opacity: 1; transform: none; transition-delay: 0.1s; }
.ex-cta-copy.is-visible .ex-cta-sub    { opacity: 1; transform: none; transition-delay: 0.18s; }
.ex-cta-copy.is-visible .ex-cta-btns   { opacity: 1; transform: none; transition-delay: 0.26s; }

.ex-cta-card {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.7s var(--ex-ease-out), transform 0.7s var(--ex-ease-spring);
}
.ex-cta-card.is-visible {
  opacity: 1;
  transform: none;
  transition-delay: 0.15s;
}

/* Step stagger */
.ex-cta-card.is-visible .ex-cta-step:nth-child(1) { animation: ex-cta-step-in 0.5s var(--ex-ease-out) 0.25s both; }
.ex-cta-card.is-visible .ex-cta-step:nth-child(2) { animation: ex-cta-step-in 0.5s var(--ex-ease-out) 0.35s both; }
.ex-cta-card.is-visible .ex-cta-step:nth-child(3) { animation: ex-cta-step-in 0.5s var(--ex-ease-out) 0.45s both; }
.ex-cta-card.is-visible .ex-cta-step:nth-child(4) { animation: ex-cta-step-in 0.5s var(--ex-ease-out) 0.55s both; }

@keyframes ex-cta-step-in {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ex-cta-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 720px;
  }
  .ex-cta-card {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .ex-cta {
    padding: 80px 0 100px;
  }
  .ex-cta-inner {
    padding: 0 20px;
    gap: 40px;
  }
  .ex-cta-h2 { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .ex-cta-sub { font-size: 1rem; }
  .ex-cta-btns { flex-direction: column; align-items: flex-start; }
  .ex-cta-btn-primary,
  .ex-cta-btn-ghost { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .ex-cta { padding: 60px 0 80px; }
  .ex-cta-card { padding: 24px 18px; }
}

/* ═══════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .ex-cta-copy .ex-cta-eyebrow,
  .ex-cta-copy .ex-cta-h2,
  .ex-cta-copy .ex-cta-sub,
  .ex-cta-copy .ex-cta-btns,
  .ex-cta-card {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
  .ex-cta-card-dot { animation: none; }
  .ex-cta-card.is-visible .ex-cta-step { animation: none; opacity: 1; transform: none; }
}
/* =========================================================
   Final AI Growth Audit CTA Upgrade
========================================================= */

.ex-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(90px, 9vw, 150px) 24px;
    background:
        radial-gradient(circle at 16% 20%, rgba(27, 255, 176, 0.13), transparent 34%),
        radial-gradient(circle at 86% 35%, rgba(80, 146, 255, 0.15), transparent 36%),
        linear-gradient(180deg, var(--ex-bg-2, #080b16) 0%, var(--ex-bg, #05070f) 100%);
    color: #fff;
}

.ex-cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.ex-cta-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 50% 42%, black 0%, transparent 74%);
    opacity: 0.3;
}

.ex-cta-glow {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.38;
}

.ex-cta-glow-1 {
    left: -190px;
    top: 10%;
    background: rgba(27, 255, 176, 0.42);
    animation: ex-cta-drift-1 13s ease-in-out infinite alternate;
}

.ex-cta-glow-2 {
    right: -190px;
    bottom: 8%;
    background: rgba(126, 87, 255, 0.36);
    animation: ex-cta-drift-2 15s ease-in-out infinite alternate;
}

.ex-cta-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(32px, 5vw, 70px);
    align-items: center;
    width: min(1220px, 100%);
    margin: 0 auto;
}

.ex-cta-main {
    max-width: 560px;
}

.ex-cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(27, 255, 176, 0.28);
    border-radius: 999px;
    background: rgba(27, 255, 176, 0.08);
    color: var(--ex-mint, #1bffb0);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ex-cta-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--ex-mint, #1bffb0);
    box-shadow: 0 0 0 0 rgba(27, 255, 176, 0.55);
    animation: ex-cta-pulse 1.7s ease-out infinite;
}

.ex-cta-title {
    margin: 0;
    color: #fff;
    font-size: clamp(2.35rem, 5.2vw, 4.9rem);
    line-height: 0.96;
    letter-spacing: -0.065em;
}

.ex-cta-subtitle {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(1rem, 1.35vw, 1.17rem);
    line-height: 1.75;
}

.ex-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.ex-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 950;
    text-decoration: none;
    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        border-color 220ms ease,
        background 220ms ease,
        color 220ms ease,
        filter 220ms ease;
}

.ex-cta-btn-primary {
    background: var(--ex-grad-mint, linear-gradient(135deg, #1bffb0, #42d9ff));
    color: #03120d;
    box-shadow: 0 18px 48px rgba(27, 255, 176, 0.24);
}

.ex-cta-btn-primary:hover,
.ex-cta-btn-primary:focus-visible {
    transform: translateY(-2px);
    filter: saturate(1.08);
    box-shadow: 0 24px 64px rgba(27, 255, 176, 0.34);
}

.ex-cta-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.ex-cta-btn-secondary:hover,
.ex-cta-btn-secondary:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(27, 255, 176, 0.3);
    background: rgba(27, 255, 176, 0.08);
    color: var(--ex-mint, #1bffb0);
}

.ex-cta-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.ex-cta-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.76rem;
    font-weight: 850;
}

.ex-cta-trust span::before {
    content: "✓";
    color: var(--ex-mint, #1bffb0);
    font-weight: 950;
}

/* Steps */

.ex-cta-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ex-cta-step {
    position: relative;
    overflow: hidden;
    min-height: 245px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.115);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.034));
    box-shadow:
        0 24px 76px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    transition:
        transform 240ms ease,
        border-color 240ms ease,
        box-shadow 240ms ease;
}

.ex-cta-step::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 20% 0%, rgba(27, 255, 176, 0.16), transparent 38%),
        radial-gradient(circle at 100% 100%, rgba(80, 146, 255, 0.12), transparent 38%);
    opacity: 0;
    transition: opacity 240ms ease;
    pointer-events: none;
}

.ex-cta-step:hover {
    transform: translateY(-6px);
    border-color: rgba(27, 255, 176, 0.32);
    box-shadow:
        0 30px 92px rgba(0, 0, 0, 0.43),
        0 0 42px rgba(27, 255, 176, 0.11);
}

.ex-cta-step:hover::before {
    opacity: 1;
}

.ex-cta-step > * {
    position: relative;
    z-index: 2;
}

.ex-cta-step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ex-cta-step-num {
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.09em;
}

.ex-cta-step-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.35rem;
}

.ex-cta-step h3 {
    margin: 0;
    color: #fff;
    font-size: 1.16rem;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.ex-cta-step p {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    line-height: 1.62;
}

.ex-cta-step-status {
    display: inline-flex;
    margin-top: 18px;
    padding: 7px 10px;
    border: 1px solid rgba(27, 255, 176, 0.22);
    border-radius: 999px;
    background: rgba(27, 255, 176, 0.075);
    color: var(--ex-mint, #1bffb0);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Animations */

@keyframes ex-cta-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(27, 255, 176, 0.55);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(27, 255, 176, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(27, 255, 176, 0);
    }
}

@keyframes ex-cta-drift-1 {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(64px, 42px, 0) scale(1.08);
    }
}

@keyframes ex-cta-drift-2 {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(-60px, -38px, 0) scale(1.08);
    }
}

/* Responsive */

@media (max-width: 980px) {
    .ex-cta-inner {
        grid-template-columns: 1fr;
    }

    .ex-cta-main {
        max-width: 820px;
        text-align: center;
        margin: 0 auto;
    }

    .ex-cta-actions,
    .ex-cta-trust {
        justify-content: center;
    }
}

@media (max-width: 680px) {
    .ex-cta {
        padding: 78px 18px;
    }

    .ex-cta-steps {
        grid-template-columns: 1fr;
    }

    .ex-cta-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ex-cta-btn {
        width: 100%;
    }

    .ex-cta-step {
        min-height: auto;
        padding: 22px;
        border-radius: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ex-cta *,
    .ex-cta *::before,
    .ex-cta *::after {
        animation: none !important;
        transition: none !important;
    }
}
