/* ============================
   MARKETING HUB – HERO
   ============================ */

.section-marketing-hero {
    padding: 3.2rem 0 3.6rem;
}

.marketing-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 2.6rem;
    align-items: center;
}

.marketing-hero-copy {
    max-width: 32rem;
}

.marketing-hero-title {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: clamp(2rem, 2.5vw + 1rem, 2.7rem);
    letter-spacing: -0.04em;
    margin: 0 0 0.9rem;
    color: var(--text-main);
}

.marketing-hero-title .highlight {
    background: linear-gradient(120deg, var(--accent-2), var(--accent-strong));
    -webkit-background-clip: text;
    color: transparent;
}

.marketing-hero-text {
    font-size: 0.96rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 1.2rem;
}

.marketing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.marketing-hero-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Hero visual */

.marketing-hero-visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 20px 52px rgba(15, 23, 42, 0.25);
    background:
        radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.2), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.2), transparent 60%);
}

.marketing-hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    transition: transform 220ms ease-out;
}

.section-marketing-hero:hover .marketing-hero-visual img {
    transform: scale(1.06);
}

/* ============================
   MARKETING HUB – STATS
   ============================ */

.section-marketing-stats {
    padding: 2.6rem 0 3.4rem;
}

.marketing-stats-inner {
    max-width: 46rem;
    margin: 0 auto;
}

.stats-header {
    text-align: center;
    margin-bottom: 1.8rem;
}

.stats-title {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--text-main);
}

.marketing-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.stat-card {
    position: relative;
    border-radius: 22px;
    padding: 1.15rem 1.15rem 1.1rem;
    background:
        radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.11), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.10), transparent 55%),
        #ffffff;
    border: 1px solid rgba(209, 213, 219, 0.95);
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.7) inset;
    text-align: left;
    transition:
        transform 180ms ease-out,
        box-shadow 180ms ease-out,
        border-color 180ms ease-out,
        background 200ms ease-out;
    overflow: hidden;
}

/* subtle glow blob */
.stat-card::before {
    content: "";
    position: absolute;
    inset: -35%;
    background:
        radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.26), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.24), transparent 55%);
    opacity: 0;
    mix-blend-mode: screen;
    pointer-events: none;
    transition: opacity 220ms ease-out;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22);
    border-color: rgba(34, 197, 94, 0.7);
    background:
        radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.16), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.15), transparent 55%),
        #ffffff;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    background: linear-gradient(135deg, var(--accent-2), var(--accent-strong));
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.03em;
}

.stat-text {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 16rem;
}

/* ============================
   MARKETING HUB – RESPONSIVE
   ============================ */

@media (max-width: 960px) {
    .marketing-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .marketing-hero-visual {
        max-width: 420px;
        margin: 0 auto 0.6rem;
        order: -1;
    }

    .marketing-hero-copy {
        max-width: none;
    }

    .marketing-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .section-marketing-hero {
        padding: 2.5rem 0 3rem;
    }

    .marketing-hero-inner {
        gap: 1.8rem;
    }

    .marketing-hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .marketing-stats-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .stat-card {
        padding-inline: 1rem;
    }
}

/* MARKETING HUB – dynamic feature grid
   Only affects the Marketing Hub page (#features section) */

#features .suite-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
    grid-auto-flow: dense;
    /* let browser pack cards tightly */
}

/* Base card already styled; here we only change sizing / layout */
#features .suite-card {
    height: 100%;
}

/* 1st card – big hero (wide) */
#features .suite-card:nth-child(1) {
    grid-column: span 2;
}

/* 2nd card – tall, feels “important” */
#features .suite-card:nth-child(2) {
    grid-row: span 2;
}

/* 4th card – wide again for rhythm */
#features .suite-card:nth-child(4) {
    grid-column: span 2;
}

/* Give tall cards more breathing room */
#features .suite-card:nth-child(2) {
    min-height: 230px;
}

/* ---------- RESPONSIVE BEHAVIOUR ---------- */

/* Medium screens: 2 columns */
@media (max-width: 960px) {
    #features .suite-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Reset spans so layout doesn’t get weird */
    #features .suite-card {
        grid-column: span 1;
        grid-row: auto;
        min-height: auto;
    }

    /* Keep only the first card wide (looks nice) */
    #features .suite-card:nth-child(1) {
        grid-column: span 2;
    }
}

/* Small screens: simple stack */
@media (max-width: 720px) {
    #features .suite-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #features .suite-card {
        grid-column: span 1 !important;
        grid-row: auto !important;
        min-height: auto;
    }
}

/* PREMIUM STYLING FOR TALL JOURNEY AUTOMATION CARD
   ------------------------------------------------ */

.suite-card-tall {
    /* already spanning more grid height – keep this */
    grid-row: span 2;

    /* make it feel more “hero” than the others */
    background: radial-gradient(circle at 0 0,
            rgba(124, 92, 255, 0.10),
            rgba(255, 255, 255, 0.98));
    border-color: rgba(129, 140, 248, 0.55);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.65);
    overflow: visible;
    /* so inner card can “float” */
}

/* Make the visual more cinematic */
.suite-card-tall .suite-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: 0;
}

.suite-card-tall .suite-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,
            rgba(15, 23, 42, 0.55),
            rgba(15, 23, 42, 0.1),
            transparent 55%);
    mix-blend-mode: multiply;
    opacity: 0.9;
    pointer-events: none;
}

.suite-card-tall .suite-media img {
    transform: scale(1.06);
    filter: saturate(1.05) contrast(1.02);
    transition: transform 260ms ease-out, filter 260ms ease-out;
}

/* Inner body floats slightly over the image */
.suite-card-tall .suite-body {
    position: relative;
    margin: -1.1rem 0.95rem 1.1rem;
    padding: 1.1rem 1.1rem 1.15rem;
    border-radius: 18px;
    background:
        linear-gradient(135deg,
            rgba(248, 250, 252, 0.98),
            rgba(239, 246, 255, 0.98));
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.25),
        0 0 0 1px rgba(226, 232, 240, 0.9);
    border: 1px solid rgba(209, 213, 219, 0.9);
}

/* subtle top sheen */
.suite-card-tall .suite-body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.38),
            transparent 40%);
    opacity: 0.85;
    pointer-events: none;
    border-radius: inherit;
}

/* bring content above sheen */
.suite-card-tall .suite-body>* {
    position: relative;
    z-index: 1;
}

/* Icon gets a slightly more “badge” feel */
.suite-card-tall .suite-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0.7rem;
    background: radial-gradient(circle at 0 0,
            rgba(34, 197, 94, 0.35),
            #ffffff);
    box-shadow:
        0 0 0 4px rgba(22, 163, 74, 0.10),
        0 10px 20px rgba(15, 23, 42, 0.18);
}

/* Headline slightly stronger */
.suite-card-tall .suite-title {
    font-size: 1rem;
    letter-spacing: -0.01em;
}

/* Paragraphs a bit more airy */
.suite-card-tall .suite-text {
    font-size: 0.86rem;
    line-height: 1.7;
}

/* Bullet list styling */
.suite-bullets {
    list-style: none;
    margin: 0.5rem 0 0.85rem;
    padding: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.suite-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.suite-bullets li::before {
    content: "";
    flex-shrink: 0;
    margin-top: 0.4rem;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: radial-gradient(circle,
            rgba(34, 197, 94, 1),
            rgba(59, 130, 246, 1));
    box-shadow: 0 0 8px rgba(45, 212, 191, 0.6);
}

/* Highlight box – proper premium chip */
.suite-highlight {
    margin-top: 0.3rem;
    padding: 0.75rem 0.8rem;
    border-radius: 14px;
    background:
        radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.08), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.08), transparent 60%),
        rgba(248, 250, 252, 0.95);
    border: 1px dashed rgba(34, 197, 94, 0.55);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.suite-highlight-label {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #15803d;
    margin-bottom: 0.15rem;
}

/* Tagline at bottom */
.suite-card-tall .suite-tagline {
    margin-top: 0.7rem;
    font-size: 0.82rem;
}

/* Hover micro-interaction */
.suite-card-tall:hover .suite-media img {
    transform: scale(1.09);
    filter: saturate(1.12) contrast(1.05);
}

.suite-card-tall:hover .suite-body {
    transform: translateY(-2px);
    box-shadow:
        0 22px 55px rgba(15, 23, 42, 0.28),
        0 0 0 1px rgba(226, 232, 240, 1);
}