/* Section styles — cta-switch */

.cta-switch--neural {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(4.5rem, 5vw + 2rem, 7rem);
  background:
    radial-gradient(55% 45% at 100% 12%, rgba(var(--color-primary-rgb), 0.07), transparent 55%),
    radial-gradient(60% 50% at 0% 88%, rgba(28, 46, 53, 0.04), transparent 60%),
    linear-gradient(
      180deg,
      var(--section-surface-light, #f4f7fa) 0%,
      var(--section-surface-light, #f4f7fa) 78%,
      var(--color-background, #fcf9f8) 100%
    );
}

.cta-switch--neural::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(180deg, var(--section-surface-light, #f4f7fa) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.cta-switch__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cta-switch__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 1;
  mix-blend-mode: multiply;
}

.cta-switch__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--section-surface-light-rgb, 244, 247, 250), 0.72) 0%, transparent 22%, transparent 78%, rgba(var(--section-surface-light-rgb, 244, 247, 250), 0.55) 100%),
    radial-gradient(ellipse 70% 50% at 18% 80%, rgba(var(--color-primary-rgb), 0.05) 0%, transparent 65%),
    radial-gradient(ellipse 70% 50% at 82% 22%, rgba(77, 184, 220, 0.06) 0%, transparent 62%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(var(--color-primary-rgb), 0.04) 0%, transparent 70%);
}

.cta-switch__inner {
  position: relative;
  z-index: 1;
}

.cta-switch--static .cta-switch__canvas {
  display: none;
}

.cta-switch--static .cta-switch__stage {
  background:
    radial-gradient(ellipse 75% 55% at 22% 38%, rgba(var(--color-primary-rgb), 0.12) 0%, transparent 68%),
    radial-gradient(ellipse 65% 48% at 78% 62%, rgba(77, 184, 220, 0.1) 0%, transparent 65%),
    linear-gradient(
      180deg,
      var(--section-surface-light, #f4f7fa) 0%,
      var(--section-surface-light, #f4f7fa) 78%,
      var(--color-background, #fcf9f8) 100%
    );
}

/* Card — bright glass variant (structure shared with final-cta) */

.cta-switch .final-cta-card-shell {
  box-shadow:
    0 20px 56px rgba(var(--color-primary-rgb), 0.1),
    0 8px 24px rgba(28, 46, 53, 0.06);
}

.cta-switch .final-cta-card--glass-bright {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(24px) saturate(185%);
  -webkit-backdrop-filter: blur(24px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 0 0 1px rgba(var(--color-primary-rgb), 0.08),
    0 12px 40px rgba(var(--color-primary-rgb), 0.08);
}

.cta-switch .final-cta-card--glass-bright::before {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(var(--color-primary-rgb), 0.28) 46%,
    rgba(255, 255, 255, 0.72) 100%
  );
  opacity: 0.9;
}

.cta-switch .final-cta-card--glass-bright .final-cta-card__glow {
  top: -40%;
  width: min(32rem, 80%);
  background: radial-gradient(
    circle,
    rgba(var(--color-primary-rgb), 0.18) 0%,
    rgba(77, 184, 220, 0.08) 45%,
    transparent 72%
  );
  filter: blur(64px);
}

.cta-switch .final-cta-card__eyebrow {
  color: var(--color-primary);
  letter-spacing: 0.22em;
}

.cta-switch .final-cta-card__content .u-type-title-xl {
  color: #1c2e35;
  text-wrap: balance;
}

.cta-switch .final-cta-card__content .u-type-body-lg {
  color: #475569;
  max-width: 48rem;
}

.cta-switch .final-cta-card__actions {
  max-width: none;
}

@media (min-width: 480px) {
  .cta-switch .final-cta-card__actions {
    gap: 1rem;
  }
}

.cta-switch .final-cta-card__btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: clamp(0.8125rem, 0.78rem + 0.14vw, 0.9375rem);
  color: var(--color-primary-dark);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(var(--color-primary-rgb), 0.22);
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition:
    background 200ms ease,
    border-color 200ms ease,
    color 200ms ease,
    box-shadow 200ms ease;
}

.cta-switch .final-cta-card__btn--ghost:hover,
.cta-switch .final-cta-card__btn--ghost:focus-visible {
  color: var(--color-primary-dark);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(var(--color-primary-rgb), 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 6px 20px rgba(var(--color-primary-rgb), 0.1);
}

.cta-switch .final-cta-card .u-focus-ring:focus-visible {
  outline-color: var(--color-primary);
}
