.marketing-section-shell {
    --marketing-section-max-width: 58rem;
    --marketing-section-copy-align: left;
    --marketing-section-card-bg: var(--bg-soft);
    --marketing-section-card-border: var(--glass-border);
    --marketing-section-heading-size: clamp(2rem, 3vw, 3rem);
    --marketing-section-metric-size: clamp(2rem, 3vw, 3rem);
}

.marketing-section-shell .marketing-section-measure {
    max-width: var(--marketing-section-max-width);
}

.marketing-section-shell .marketing-primary-heading {
    font-family: "Fraunces", serif;
    font-size: var(--marketing-section-heading-size);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.marketing-section-shell .marketing-section-kicker {
    font-family: "Instrument Sans", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    color: var(--spx-color-brand-400);
}

.marketing-section-shell .marketing-section-copy {
    line-height: 1.7;
}

.marketing-section-shell .marketing-section-kicker,
.marketing-section-shell .marketing-section-copy,
.marketing-section-shell .marketing-primary-heading,
.marketing-section-shell .marketing-section-measure {
    text-align: var(--marketing-section-copy-align);
}

.marketing-section-shell .marketing-metric-value {
    font-size: var(--marketing-section-metric-size);
    line-height: 1;
    letter-spacing: -0.03em;
}

.marketing-section-shell .glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
    border-radius: var(--spx-radius-xl);
}

.marketing-section-shell .premium-card {
    background: var(--spx-surface-panel);
    border: 1px solid var(--spx-border-subtle);
    box-shadow: var(--spx-shadow-lg);
    border-radius: var(--spx-radius-xl);
    transition: transform var(--spx-motion-duration-slow) var(--spx-motion-ease-emphasis),
                box-shadow var(--spx-motion-duration-slow) var(--spx-motion-ease-emphasis);
}

.marketing-section-shell .premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 80px rgba(18, 25, 37, 0.16);
}

.marketing-section-shell .section-tag {
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.marketing-section-shell--density-compact .container.py-5,
.marketing-section-shell--density-compact .landing-section-inner {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.marketing-section-shell--density-comfortable .container.py-5,
.marketing-section-shell--density-comfortable .landing-section-inner {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.marketing-section-shell--density-spacious .container.py-5,
.marketing-section-shell--density-spacious .landing-section-inner {
    padding-top: 6.5rem !important;
    padding-bottom: 6.5rem !important;
}

.marketing-section-shell--heading-md {
    --marketing-section-heading-size: clamp(1.7rem, 2vw, 2.25rem);
}

.marketing-section-shell--heading-lg {
    --marketing-section-heading-size: clamp(2rem, 2.8vw, 2.7rem);
}

.marketing-section-shell--heading-xl {
    --marketing-section-heading-size: clamp(2.35rem, 3.6vw, 3.35rem);
}

.marketing-section-shell--heading-display {
    --marketing-section-heading-size: clamp(2.9rem, 5vw, 4.7rem);
}

.marketing-section-shell--numbers-md {
    --marketing-section-metric-size: clamp(1.7rem, 2vw, 2.2rem);
}

.marketing-section-shell--numbers-lg {
    --marketing-section-metric-size: clamp(2rem, 2.6vw, 2.7rem);
}

.marketing-section-shell--numbers-xl {
    --marketing-section-metric-size: clamp(2.3rem, 3.2vw, 3.3rem);
}

.marketing-section-shell--align-left {
    --marketing-section-copy-align: left;
}

.marketing-section-shell--align-left .marketing-section-measure {
    margin-left: 0;
    margin-right: auto;
}

.marketing-section-shell--align-center {
    --marketing-section-copy-align: center;
}

.marketing-section-shell--align-center .marketing-section-measure {
    margin-left: auto;
    margin-right: auto;
}

.marketing-section-shell--width-narrow {
    --marketing-section-max-width: 44rem;
}

.marketing-section-shell--width-standard {
    --marketing-section-max-width: 58rem;
}

.marketing-section-shell--width-wide {
    --marketing-section-max-width: 72rem;
}

.marketing-section-shell--surface-default {
    background: transparent;
}

.marketing-section-shell--surface-tint {
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary-accent), transparent 92%), transparent 34%),
        linear-gradient(180deg, color-mix(in srgb, var(--text-strong), transparent 98%), transparent);
}

.marketing-section-shell--surface-contrast {
    background:
        linear-gradient(180deg, rgba(8, 15, 43, 0.16), rgba(8, 15, 43, 0.04));
}

.marketing-section-shell--cards-glass {
    --marketing-section-card-bg: var(--glass-bg);
    --marketing-section-card-border: var(--glass-border);
}

.marketing-section-shell--cards-outline {
    --marketing-section-card-bg: rgba(255, 255, 255, 0.02);
    --marketing-section-card-border: rgba(255, 255, 255, 0.18);
}

.marketing-section-shell--cards-tint {
    --marketing-section-card-bg: rgba(77, 217, 240, 0.08);
    --marketing-section-card-border: rgba(77, 217, 240, 0.18);
}

.marketing-section-shell--eyebrow-accent .section-tag,
.marketing-section-shell--eyebrow-accent .marketing-section-kicker {
    color: var(--primary-accent, #4DD9F0);
}

.marketing-section-shell--eyebrow-neutral .section-tag,
.marketing-section-shell--eyebrow-neutral .marketing-section-kicker {
    color: var(--text-strong);
    background: color-mix(in srgb, var(--text-strong), transparent 92%);
    border-color: var(--glass-border);
}

@media (max-width: 767.98px) {
    .marketing-section-shell {
        --marketing-section-heading-size: clamp(1.9rem, 8vw, 3rem);
    }

    .marketing-section-shell .marketing-primary-heading {
        letter-spacing: -0.025em;
    }
}

/* --- Reveal System --- */
.spx-marketing-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.spx-marketing-reveal--active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveals for children */
.spx-marketing-reveal--staggered > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.spx-marketing-reveal--active.spx-marketing-reveal--staggered > * {
    opacity: 1;
    transform: translateY(0);
}

.spx-marketing-reveal--active.spx-marketing-reveal--staggered > *:nth-child(1) { transition-delay: 0.1s; }
.spx-marketing-reveal--active.spx-marketing-reveal--staggered > *:nth-child(2) { transition-delay: 0.2s; }
.spx-marketing-reveal--active.spx-marketing-reveal--staggered > *:nth-child(3) { transition-delay: 0.3s; }
.spx-marketing-reveal--active.spx-marketing-reveal--staggered > *:nth-child(4) { transition-delay: 0.4s; }
.spx-marketing-reveal--active.spx-marketing-reveal--staggered > *:nth-child(5) { transition-delay: 0.5s; }
.spx-marketing-reveal--active.spx-marketing-reveal--staggered > *:nth-child(6) { transition-delay: 0.6s; }

/* --- Premium Card Enhancements --- */
.spx-marketing-section .glass-card,
.spx-marketing-section .solution-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.spx-marketing-section .glass-card:hover,
.spx-marketing-section .solution-card:hover {
    transform: translateY(-6px);
    border-color: rgba(77, 217, 240, 0.35);
    box-shadow: 0 24px 60px rgba(8, 15, 43, 0.24), 0 0 0 1px rgba(77, 217, 240, 0.08);
}
