﻿/* =========================================================
   MaxiForge · Niche Page (Scoped)
   All styles are scoped to #mf-niche
   ========================================================= */

/* ---------------------------------------------------------
   Base
--------------------------------------------------------- */
#mf-niche {
    position: relative;
    scroll-margin-top: 110px;
}

    #mf-niche .mf-section {
        padding-top: clamp(2.5rem, 5vw, 4rem);
        padding-bottom: clamp(2.5rem, 5vw, 4rem);
    }

    /* ---------------------------------------------------------
   Alternating backgrounds
--------------------------------------------------------- */
    #mf-niche .mf-bg-a {
        background: radial-gradient(1200px 500px at 10% 0%, rgba(28,141,255,0.12), rgba(0,0,0,0) 60%), linear-gradient(180deg, rgba(2,6,23,0.65), rgba(2,6,23,0.90));
    }

    #mf-niche .mf-bg-b {
        background: repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 10px, rgba(255,255,255,0) 10px 28px), radial-gradient(1000px 420px at 90% 20%, rgba(255,91,0,0.10), rgba(0,0,0,0) 65%), linear-gradient(180deg, rgba(2,6,23,0.75), rgba(2,6,23,0.95));
    }

    /* ---------------------------------------------------------
   HERO (100vh)
--------------------------------------------------------- */
    #mf-niche .mf-niche-hero {
        height: 100vh;
        min-height: 100vh;
        display: flex;
        align-items: stretch;
    }

        #mf-niche .mf-niche-hero > .mf-container {
            flex: 1;
            display: flex;
            align-items: stretch;
        }

    #mf-niche .mf-niche-hero-panel {
        width: 100%;
        flex: 1;
        display: flex;
        align-items: stretch;
    }

    #mf-niche .mf-niche-hero-panel-inner {
        flex: 1;
        display: flex;
        align-items: stretch;
    }

    #mf-niche .mf-niche-hero-inner {
        flex: 1;
        display: grid;
        grid-template-columns: 1.15fr 0.85fr;
        gap: clamp(1.5rem, 3vw, 3rem);
        align-items: center;
    }

    /* Copy */
    #mf-niche .mf-niche-kicker {
        text-transform: uppercase;
        letter-spacing: 0.14em;
        font-size: 0.85rem;
        opacity: 0.8;
        margin-bottom: 0.75rem;
    }

    #mf-niche .mf-niche-title {
        font-size: clamp(2.4rem, 4.5vw, 3.8rem);
        line-height: 1.05;
        margin: 0 0 1rem;
    }

    #mf-niche .mf-niche-subtitle {
        max-width: 42ch;
        opacity: 0.9;
        margin-bottom: 1.6rem;
        font-size: 1.05rem;
    }

    #mf-niche .mf-niche-hero-ctas {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        margin-bottom: 1.25rem;
    }

    #mf-niche .mf-niche-hero-badges {
        display: flex;
        gap: 0.6rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }

        #mf-niche .mf-niche-hero-badges li {
            padding: 0.5rem 0.8rem;
            border-radius: 999px;
            background: rgba(2,6,23,0.45);
            border: 1px solid rgba(148,163,184,0.25);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            font-size: 0.9rem;
        }

    /* Visual column */
    #mf-niche .mf-niche-hero-visual {
        display: flex;
        align-items: stretch;
    }

    /* Frame (cell-shaded vibe) */
    #mf-niche .mf-niche-hero-frame {
        width: 100%;
        height: 100%;
        border-radius: 22px;
        padding: 14px;
        background: rgba(2,6,23,0.45);
        border: 2px solid rgba(255,91,0,0.75);
        box-shadow: 0 22px 60px rgba(0,0,0,0.7), inset 0 0 0 2px rgba(28,141,255,0.22), inset 0 -12px 0 rgba(0,0,0,0.45);
    }

    #mf-niche .mf-niche-hero-frame-inner {
        position: relative;
        height: 100%;
        border-radius: 16px;
        border: 2px solid rgba(12,12,14,0.45);
        overflow: hidden;
        background: linear-gradient(135deg, rgba(28,141,255,0.18), rgba(255,91,0,0.16)), repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 10px, rgba(255,255,255,0) 10px 22px);
    }

    #mf-niche .mf-niche-hero-frame-label {
        position: absolute;
        left: 14px;
        bottom: 14px;
        padding: 0.55rem 0.75rem;
        border-radius: 999px;
        background: rgba(12,12,14,0.6);
        border: 1px solid rgba(148,163,184,0.25);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        font-size: 0.9rem;
    }

    /* ---------------------------------------------------------
   HERO Carousel (scoped)
--------------------------------------------------------- */
    #mf-niche .mf-niche-hero-carousel {
        position: relative;
        width: 100%;
        height: 100%;
    }

    #mf-niche .mf-niche-hero-slides {
        position: relative;
        height: 100%;
    }

    #mf-niche .mf-niche-hero-slide {
        display: none;
        height: 100%;
    }

        #mf-niche .mf-niche-hero-slide.is-active {
            display: block;
        }

    #mf-niche .mf-niche-hero-carousel-controls {
        position: absolute;
        inset: 0;
        pointer-events: none;
    }

    #mf-niche .mf-niche-hero-nav {
        pointer-events: auto;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        border-radius: 12px;
        border: 2px solid rgba(12,12,14,0.55);
        background: rgba(2,6,23,0.55);
        box-shadow: 0 18px 45px rgba(0,0,0,0.6), inset 0 -4px 0 rgba(0,0,0,0.35);
        color: inherit;
        font-size: 28px;
        line-height: 1;
    }

        #mf-niche .mf-niche-hero-nav[data-dir="-1"] {
            left: -10px;
        }

        #mf-niche .mf-niche-hero-nav[data-dir="1"] {
            right: -10px;
        }

    #mf-niche .mf-niche-hero-dots {
        display: flex;
        gap: 10px;
        justify-content: center;
        margin-top: 12px;
    }

        #mf-niche .mf-niche-hero-dots button {
            width: 10px;
            height: 10px;
            border-radius: 999px;
            border: 2px solid rgba(148,163,184,0.25);
            background: rgba(2,6,23,0.55);
        }

            #mf-niche .mf-niche-hero-dots button.is-active {
                border-color: rgba(255,91,0,0.85);
            }

    /* ---------------------------------------------------------
   Dummy visuals (video / image / before-after)
--------------------------------------------------------- */
    #mf-niche .mf-dummy-video {
        position: relative;
        overflow: hidden;
    }

        #mf-niche .mf-dummy-video video {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    #mf-niche .mf-dummy-img {
        background-size: cover;
        background-position: center;
    }

    #mf-niche .mf-dummy-ecosystem {
        background-image: linear-gradient(135deg, rgba(0,0,0,0.45), rgba(0,0,0,0.75)), url("https://images.unsplash.com/photo-1581092580497-e0d23cbdf1dc");
    }

    #mf-niche .mf-dummy-beforeafter-real {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        height: 100%;
        overflow: hidden;
    }

    #mf-niche .mf-ba-item {
        position: relative;
        background-size: cover;
        background-position: center;
    }

        #mf-niche .mf-ba-item.before {
            background-image: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.55)), url("https://images.unsplash.com/photo-1602526219046-2b1f76c19b9b");
        }

        #mf-niche .mf-ba-item.after {
            background-image: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.35)), url("https://images.unsplash.com/photo-1615484477778-ca3b779fdf0a");
        }

        #mf-niche .mf-ba-item.before::after {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            width: 2px;
            height: 100%;
            background: rgba(255,91,0,0.85);
        }

    #mf-niche .mf-ba-label {
        position: absolute;
        top: 12px;
        left: 12px;
        padding: 0.45rem 0.7rem;
        font-size: 0.85rem;
        border-radius: 999px;
        background: rgba(12,12,14,0.65);
        border: 1px solid rgba(148,163,184,0.25);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    /* ---------------------------------------------------------
   Panels (cell-shaded framing)
--------------------------------------------------------- */
    #mf-niche .mf-niche-panel {
        position: relative;
        border-radius: 28px;
        padding: 16px;
        background: rgba(2, 6, 23, 0.30);
        border: 2px solid rgba(255, 91, 0, 0.60);
        box-shadow: 0 28px 80px rgba(0,0,0,0.70), inset 0 0 0 2px rgba(28,141,255,0.18), inset 0 -14px 0 rgba(0,0,0,0.35);
        backdrop-filter: blur(14px) saturate(1.05);
        -webkit-backdrop-filter: blur(14px) saturate(1.05);
        overflow: hidden;
    }

        #mf-niche .mf-niche-panel::before {
            content: "";
            position: absolute;
            inset: -3px;
            border-radius: inherit;
            border: 3px solid rgba(12, 12, 14, 0.55);
            pointer-events: none;
        }

        #mf-niche .mf-niche-panel::after {
            content: "";
            position: absolute;
            inset: 0;
            background: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 10px, rgba(255,255,255,0.00) 10px 26px);
            opacity: 0.35;
            pointer-events: none;
        }

    #mf-niche .mf-niche-panel-inner {
        position: relative;
        border-radius: 18px;
        padding: clamp(1.4rem, 2.4vw, 2rem);
        background: rgba(2, 6, 23, 0.55);
        border: 2px solid rgba(148, 163, 184, 0.14);
        box-shadow: inset 0 0 0 2px rgba(255,255,255,0.04);
    }

    /* Section headers */
    #mf-niche .mf-niche-section-head {
        margin-bottom: 1.6rem;
    }

    #mf-niche .mf-niche-h2 {
        font-size: clamp(1.7rem, 2.6vw, 2.2rem);
        margin: 0 0 0.5rem;
    }

    #mf-niche .mf-niche-lead {
        max-width: 70ch;
        opacity: 0.9;
    }

    /* Cards */
    #mf-niche .mf-niche-card-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }

    #mf-niche .mf-niche-card {
        position: relative;
        border-radius: 18px;
        padding: 1.1rem;
        background: rgba(2,6,23,0.62);
        border: 2px solid rgba(255,91,0,0.75);
        box-shadow: 0 22px 55px rgba(0,0,0,0.65), inset 0 0 0 2px rgba(255,255,255,0.05), inset 0 -10px 0 rgba(0,0,0,0.45);
        overflow: hidden;
        transition: transform 180ms ease, box-shadow 180ms ease;
    }

        #mf-niche .mf-niche-card::before {
            content: "";
            position: absolute;
            inset: -3px;
            border-radius: inherit;
            border: 3px solid rgba(12,12,14,0.55);
            pointer-events: none;
        }

        #mf-niche .mf-niche-card::after {
            content: "";
            position: absolute;
            top: -40px;
            left: -60px;
            width: 180px;
            height: 120px;
            transform: rotate(-18deg);
            background: rgba(255,255,255,0.06);
            pointer-events: none;
        }

        #mf-niche .mf-niche-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 32px 70px rgba(0,0,0,0.75), inset 0 0 0 2px rgba(255,255,255,0.06), inset 0 -12px 0 rgba(0,0,0,0.5);
        }

        #mf-niche .mf-niche-card h3 {
            margin: 0 0 0.45rem;
            font-size: 1.05rem;
            letter-spacing: 0.01em;
        }

        #mf-niche .mf-niche-card p {
            margin: 0;
            font-size: 0.95rem;
            line-height: 1.35;
            opacity: 0.9;
        }

    /* Buttons (cell feel) */
    #mf-niche .mf-btn.mf-btn-cel {
        position: relative;
        border: 2px solid rgba(12,12,14,0.55);
        box-shadow: 0 18px 45px rgba(0,0,0,0.6), inset 0 -5px 0 rgba(0,0,0,0.4), inset 0 2px 0 rgba(255,255,255,0.12);
    }

        #mf-niche .mf-btn.mf-btn-cel::after {
            content: "";
            position: absolute;
            top: 6px;
            left: 10px;
            right: 10px;
            height: 2px;
            border-radius: 999px;
            background: rgba(255,255,255,0.14);
            pointer-events: none;
        }

        #mf-niche .mf-btn.mf-btn-cel:active {
            transform: translateY(1px);
            box-shadow: 0 12px 30px rgba(0,0,0,0.55), inset 0 -3px 0 rgba(0,0,0,0.4);
        }

/* Responsive */
@media (max-width: 980px) {
    #mf-niche .mf-niche-hero {
        height: auto;
        min-height: 100vh;
    }

    #mf-niche .mf-niche-hero-inner {
        grid-template-columns: 1fr;
        align-items: start;
    }

    #mf-niche .mf-niche-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    #mf-niche .mf-niche-card-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   FIX: Hero visual column collapsing (carousel height = 0)
   ========================================================= */

/* Make the right column actually stretch inside the grid */
#mf-niche .mf-niche-hero-inner {
    align-items: stretch !important;
}

/* Ensure both columns can stretch */
#mf-niche .mf-niche-hero-copy,
#mf-niche .mf-niche-hero-visual {
    min-height: 0;
}

/* Force the visual column to provide a real height context */
#mf-niche .mf-niche-hero-visual {
    height: 100%;
}

/* Ensure the carousel stack has a concrete height chain */
#mf-niche .mf-niche-hero-carousel {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#mf-niche .mf-niche-hero-slides {
    flex: 1;
    min-height: 0;
}

#mf-niche .mf-niche-hero-slide {
    height: 100%;
}

/* Frame must fill the available height */
#mf-niche .mf-niche-hero-frame {
    height: 100%;
    display: flex;
    align-items: stretch;
}

#mf-niche .mf-niche-hero-frame-inner {
    flex: 1;
    height: 100%;
    min-height: 0 !important;
}
/* =========================================================
   HERO full-width carousel + overlay copy
   ========================================================= */

#mf-niche .mf-niche-hero-full {
    position: relative;
    flex: 1;
    display: flex;
    align-items: stretch;
    min-height: 0;
}

#mf-niche .mf-niche-hero-visual-full {
    position: absolute;
    inset: 0;
    height: 100%;
}

    /* Make carousel occupy full hero */
    #mf-niche .mf-niche-hero-visual-full .mf-niche-hero-carousel,
    #mf-niche .mf-niche-hero-visual-full .mf-niche-hero-slides,
    #mf-niche .mf-niche-hero-visual-full .mf-niche-hero-slide,
    #mf-niche .mf-niche-hero-visual-full .mf-niche-hero-frame,
    #mf-niche .mf-niche-hero-visual-full .mf-niche-hero-frame-inner {
        height: 100%;
    }

/* Overlay placement */
#mf-niche .mf-niche-hero-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    width: min(760px, 92%);
    padding-left: clamp(0rem, 2vw, 0.5rem);
}

/* Overlay card glass */
#mf-niche .mf-niche-hero-overlay-card {
    width: 100%;
    border-radius: 22px;
    padding: clamp(1.2rem, 2.6vw, 2rem);
    background: rgba(2,6,23,0.62);
    border: 2px solid rgba(148,163,184,0.18);
    box-shadow: 0 26px 70px rgba(0,0,0,0.7), inset 0 0 0 2px rgba(255,255,255,0.04);
    backdrop-filter: blur(16px) saturate(1.05);
    -webkit-backdrop-filter: blur(16px) saturate(1.05);
}

/* Add readability gradient over carousel */
#mf-niche .mf-niche-hero-full::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(900px 520px at 18% 50%, rgba(2,6,23,0.75), rgba(2,6,23,0) 70%);
    pointer-events: none;
}

/* Mobile */
@media (max-width: 980px) {
    #mf-niche .mf-niche-hero-overlay {
        width: min(680px, 92%);
        align-items: flex-end;
        padding-bottom: 1.2rem;
    }
}
/* =========================================================
   HERO full-width carousel + overlay copy
   ========================================================= */

#mf-niche .mf-niche-hero-full {
    position: relative;
    flex: 1;
    display: flex;
    align-items: stretch;
    min-height: 0;
}

#mf-niche .mf-niche-hero-visual-full {
    position: absolute;
    inset: 0;
    height: 100%;
}

    /* Make carousel occupy full hero */
    #mf-niche .mf-niche-hero-visual-full .mf-niche-hero-carousel,
    #mf-niche .mf-niche-hero-visual-full .mf-niche-hero-slides,
    #mf-niche .mf-niche-hero-visual-full .mf-niche-hero-slide,
    #mf-niche .mf-niche-hero-visual-full .mf-niche-hero-frame,
    #mf-niche .mf-niche-hero-visual-full .mf-niche-hero-frame-inner {
        height: 100%;
    }

/* Overlay placement */
#mf-niche .mf-niche-hero-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    width: min(760px, 92%);
    padding-left: clamp(0rem, 2vw, 0.5rem);
}

/* Overlay card glass */
#mf-niche .mf-niche-hero-overlay-card {
    width: 100%;
    border-radius: 22px;
    padding: clamp(1.2rem, 2.6vw, 2rem);
    background: rgba(2,6,23,0.62);
    border: 2px solid rgba(148,163,184,0.18);
    box-shadow: 0 26px 70px rgba(0,0,0,0.7), inset 0 0 0 2px rgba(255,255,255,0.04);
    backdrop-filter: blur(16px) saturate(1.05);
    -webkit-backdrop-filter: blur(16px) saturate(1.05);
}

/* Add readability gradient over carousel */
#mf-niche .mf-niche-hero-full::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(900px 520px at 18% 50%, rgba(2,6,23,0.75), rgba(2,6,23,0) 70%);
    pointer-events: none;
}

/* Mobile */
@media (max-width: 980px) {
    #mf-niche .mf-niche-hero-overlay {
        width: min(680px, 92%);
        align-items: flex-end;
        padding-bottom: 1.2rem;
    }
}
#mf-niche .mf-niche-hero-overlay-card {
    width: 100%;
    border-radius: 22px;
    padding: clamp(1.2rem, 2.6vw, 2rem);
    background: rgba(2,6,23,0.62);
    border: 2px solid rgba(148,163,184,0.18);
    box-shadow: 0 26px 70px rgba(0,0,0,0.7), inset 0 0 0 2px rgba(255,255,255,0.04);
    backdrop-filter: blur(16px) saturate(1.05);
    -webkit-backdrop-filter: blur(16px) saturate(1.05);
}
/* =========================================================
   100vh that respects fixed header + secondary nav
   ========================================================= */

#mf-niche .mf-niche-hero {
    height: calc(100vh - 56px); /* ajusta 56px al alto real del mf-sandbox-nav */
    min-height: calc(100vh - 56px);
}
/* =========================================================
   Niche: header + secondary nav aware hero height
   ========================================================= */

/* Ajusta estes 2 valores se necessário (depende do teu header real) */
:root {
    --mf-header-h: 72px; /* header principal */
    --mf-subnav-h: 56px; /* mf-sandbox-nav */
}

/* Faz o segundo nav comportar-se como na Home */
#mf-niche .mf-sandbox-nav {
    position: sticky;
    top: var(--mf-header-h);
    z-index: 80;
}

/* Remove qualquer padding herdado da class mf-section só no hero */
#mf-niche .mf-niche-hero.mf-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* HERO: ocupa o ecrã “útil”, abaixo do header + subnav */
#mf-niche .mf-niche-hero {
    height: calc(100vh - var(--mf-header-h) - var(--mf-subnav-h)) !important;
    min-height: calc(100vh - var(--mf-header-h) - var(--mf-subnav-h)) !important;
}

    /* Mantém o carousel a preencher o hero */
    #mf-niche .mf-niche-hero,
    #mf-niche .mf-niche-hero > .mf-container,
    #mf-niche .mf-niche-hero-panel,
    #mf-niche .mf-niche-hero-panel-inner,
    #mf-niche .mf-niche-hero-full,
    #mf-niche .mf-niche-hero-visual-full,
    #mf-niche .mf-niche-hero-carousel,
    #mf-niche .mf-niche-hero-slides,
    #mf-niche .mf-niche-hero-slide,
    #mf-niche .mf-niche-hero-frame,
    #mf-niche .mf-niche-hero-frame-inner {
        height: 100%;
    }
/* =========================================================
   Section: Modelo vs Configuração
   ========================================================= */

#mf-niche .mf-niche-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

#mf-niche .mf-niche-split-col {
    border-radius: 18px;
    padding: 1.1rem;
    background: rgba(2,6,23,0.55);
    border: 2px solid rgba(148,163,184,0.14);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.04), inset 0 -10px 0 rgba(0,0,0,0.35);
    position: relative;
    overflow: hidden;
}

    #mf-niche .mf-niche-split-col::before {
        content: "";
        position: absolute;
        inset: -3px;
        border-radius: inherit;
        border: 3px solid rgba(12,12,14,0.55);
        pointer-events: none;
    }

#mf-niche .mf-niche-pill-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
    background: rgba(2,6,23,0.45);
    border: 1px solid rgba(255,91,0,0.55);
}

#mf-niche .mf-niche-bullets {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.65rem;
}

    #mf-niche .mf-niche-bullets li {
        line-height: 1.35;
        opacity: 0.95;
    }

#mf-niche .mf-niche-note {
    margin-top: 1rem;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    background: rgba(255,91,0,0.08);
    border: 1px solid rgba(255,91,0,0.35);
}

#mf-niche .mf-niche-note-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,91,0,0.95);
    box-shadow: 0 0 0 3px rgba(255,91,0,0.18);
    flex: 0 0 auto;
}

#mf-niche .mf-niche-mini-cta {
    margin-top: 1.2rem;
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

@media (max-width: 980px) {
    #mf-niche .mf-niche-split {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Section: Portfólio (gallery, not catalog)
   ========================================================= */

#mf-niche .mf-niche-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

#mf-niche .mf-niche-portfolio-item {
    position: relative;
    border-radius: 18px;
    padding: 0.9rem;
    background: rgba(2,6,23,0.62);
    border: 2px solid rgba(255,91,0,0.65);
    box-shadow: 0 22px 55px rgba(0,0,0,0.65), inset 0 0 0 2px rgba(255,255,255,0.05), inset 0 -10px 0 rgba(0,0,0,0.45);
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

    #mf-niche .mf-niche-portfolio-item::before {
        content: "";
        position: absolute;
        inset: -3px;
        border-radius: inherit;
        border: 3px solid rgba(12,12,14,0.55);
        pointer-events: none;
    }

    #mf-niche .mf-niche-portfolio-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 32px 70px rgba(0,0,0,0.75), inset 0 0 0 2px rgba(255,255,255,0.06), inset 0 -12px 0 rgba(0,0,0,0.5);
    }

#mf-niche .mf-niche-portfolio-media {
    border-radius: 14px;
    height: 180px;
    border: 2px solid rgba(12,12,14,0.45);
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

#mf-niche .mf-niche-portfolio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

#mf-niche .mf-niche-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    background: rgba(2,6,23,0.45);
    border: 1px solid rgba(148,163,184,0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#mf-niche .mf-niche-disclaimer {
    margin: 1.1rem 0 0;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Dummy images for portfolio (swap later with your real work) */
#mf-niche .mf-dummy-port-1 {
    background-image: url("https://images.unsplash.com/photo-1618331835717-801e976710b2");
}

#mf-niche .mf-dummy-port-2 {
    background-image: url("https://images.unsplash.com/photo-1602526219046-2b1f76c19b9b");
}

#mf-niche .mf-dummy-port-3 {
    background-image: url("https://images.unsplash.com/photo-1615484477778-ca3b779fdf0a");
}

#mf-niche .mf-dummy-port-4 {
    background-image: url("https://images.unsplash.com/photo-1520975958225-9adf2a9c0680");
}

#mf-niche .mf-dummy-port-5 {
    background-image: url("https://images.unsplash.com/photo-1581092580497-e0d23cbdf1dc");
}

#mf-niche .mf-dummy-port-6 {
    background-image: url("https://images.unsplash.com/photo-1526481280695-3c687fd643ed");
}

/* Responsive */
@media (max-width: 980px) {
    #mf-niche .mf-niche-portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    #mf-niche .mf-niche-portfolio-grid {
        grid-template-columns: 1fr;
    }

    #mf-niche .mf-niche-portfolio-media {
        height: 220px;
    }
}
/* =========================================================
   Section: ForgeTicket (guided configuration)
   ========================================================= */

#mf-niche .mf-niche-ticket-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
}

#mf-niche .mf-niche-ticket-step {
    position: relative;
    border-radius: 18px;
    padding: 1.1rem;
    background: rgba(2,6,23,0.62);
    border: 2px solid rgba(255,91,0,0.65);
    box-shadow: 0 20px 48px rgba(0,0,0,0.65), inset 0 0 0 2px rgba(255,255,255,0.05), inset 0 -10px 0 rgba(0,0,0,0.45);
    overflow: hidden;
}

    #mf-niche .mf-niche-ticket-step::before {
        content: "";
        position: absolute;
        inset: -3px;
        border-radius: inherit;
        border: 3px solid rgba(12,12,14,0.55);
        pointer-events: none;
    }

#mf-niche .mf-niche-step-index {
    display: inline-block;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.6rem;
    background: rgba(2,6,23,0.45);
    border: 1px solid rgba(148,163,184,0.25);
}

#mf-niche .mf-niche-ticket-step h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

#mf-niche .mf-niche-ticket-step p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.35;
    opacity: 0.9;
}

#mf-niche .mf-niche-note-strong {
    margin-top: 1.4rem;
    background: rgba(28,141,255,0.08);
    border-color: rgba(28,141,255,0.35);
}

/* Responsive */
@media (max-width: 1100px) {
    #mf-niche .mf-niche-ticket-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    #mf-niche .mf-niche-ticket-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    #mf-niche .mf-niche-ticket-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Section: Ecosistema (Passport + Album)
   ========================================================= */

#mf-niche .mf-niche-eco-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

#mf-niche .mf-niche-eco-card {
    position: relative;
    border-radius: 18px;
    padding: 1.1rem;
    background: rgba(2,6,23,0.62);
    border: 2px solid rgba(255,91,0,0.65);
    box-shadow: 0 22px 55px rgba(0,0,0,0.65), inset 0 0 0 2px rgba(255,255,255,0.05), inset 0 -10px 0 rgba(0,0,0,0.45);
    overflow: hidden;
}

    #mf-niche .mf-niche-eco-card::before {
        content: "";
        position: absolute;
        inset: -3px;
        border-radius: inherit;
        border: 3px solid rgba(12,12,14,0.55);
        pointer-events: none;
    }

#mf-niche .mf-niche-eco-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

#mf-niche .mf-niche-eco-id {
    font-size: 0.9rem;
    opacity: 0.85;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(2,6,23,0.45);
    border: 1px solid rgba(148,163,184,0.25);
}

#mf-niche .mf-niche-eco-footer {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#mf-niche .mf-niche-bullets-tight {
    gap: 0.55rem;
}

#mf-niche .mf-niche-eco-mini {
    margin: 0 0 0.9rem;
    opacity: 0.9;
    line-height: 1.35;
}

#mf-niche .mf-niche-album-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

#mf-niche .mf-niche-slot {
    position: relative;
    border-radius: 14px;
    height: 92px;
    background: rgba(2,6,23,0.45);
    border: 2px solid rgba(148,163,184,0.18);
    box-shadow: inset 0 -10px 0 rgba(0,0,0,0.35);
    overflow: hidden;
}

    #mf-niche .mf-niche-slot::before {
        content: "";
        position: absolute;
        inset: 10px;
        border-radius: 10px;
        border: 2px dashed rgba(148,163,184,0.22);
        opacity: 0.9;
    }

    #mf-niche .mf-niche-slot.is-filled {
        background: linear-gradient(135deg, rgba(28,141,255,0.20), rgba(255,91,0,0.18)), rgba(2,6,23,0.55);
        border-color: rgba(255,91,0,0.45);
    }

        #mf-niche .mf-niche-slot.is-filled::before {
            border-style: solid;
            border-color: rgba(255,91,0,0.35);
            opacity: 1;
        }

#mf-niche .mf-niche-slot-label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    font-size: 0.85rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: rgba(12,12,14,0.60);
    border: 1px solid rgba(148,163,184,0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 980px) {
    #mf-niche .mf-niche-eco-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Section: Temporadas
   ========================================================= */

#mf-niche .mf-niche-season-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

#mf-niche .mf-niche-season-card {
    position: relative;
    border-radius: 18px;
    padding: 1.1rem;
    background: rgba(2,6,23,0.62);
    border: 2px solid rgba(255,91,0,0.65);
    box-shadow: 0 22px 55px rgba(0,0,0,0.65), inset 0 0 0 2px rgba(255,255,255,0.05), inset 0 -10px 0 rgba(0,0,0,0.45);
    overflow: hidden;
}

    #mf-niche .mf-niche-season-card::before {
        content: "";
        position: absolute;
        inset: -3px;
        border-radius: inherit;
        border: 3px solid rgba(12,12,14,0.55);
        pointer-events: none;
    }

#mf-niche .mf-niche-season-rules {
    border-color: rgba(28,141,255,0.55);
}

#mf-niche .mf-niche-rules {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

    #mf-niche .mf-niche-rules li {
        display: flex;
        align-items: flex-start;
        gap: 0.65rem;
        line-height: 1.35;
        opacity: 0.95;
        padding: 0.75rem 0.8rem;
        border-radius: 14px;
        background: rgba(2,6,23,0.45);
        border: 1px solid rgba(148,163,184,0.18);
    }

#mf-niche .mf-niche-rule-badge {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.85rem;
    background: rgba(28,141,255,0.14);
    border: 2px solid rgba(28,141,255,0.40);
    flex: 0 0 auto;
}

#mf-niche .mf-niche-disclaimer-tight {
    margin-top: 0.9rem;
}

@media (max-width: 980px) {
    #mf-niche .mf-niche-season-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Section: Garantia & Manutenção
   ========================================================= */

#mf-niche .mf-niche-guarantee-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

#mf-niche .mf-niche-guarantee-card {
    position: relative;
    border-radius: 18px;
    padding: 1.1rem;
    background: rgba(2,6,23,0.62);
    border: 2px solid rgba(255,91,0,0.65);
    box-shadow: 0 22px 55px rgba(0,0,0,0.65), inset 0 0 0 2px rgba(255,255,255,0.05), inset 0 -10px 0 rgba(0,0,0,0.45);
    overflow: hidden;
}

    #mf-niche .mf-niche-guarantee-card::before {
        content: "";
        position: absolute;
        inset: -3px;
        border-radius: inherit;
        border: 3px solid rgba(12,12,14,0.55);
        pointer-events: none;
    }

    #mf-niche .mf-niche-guarantee-card p {
        margin: 0.5rem 0 0.9rem;
        opacity: 0.9;
        line-height: 1.35;
    }

@media (max-width: 980px) {
    #mf-niche .mf-niche-guarantee-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Section: Token NFC/QR + Mods
   ========================================================= */

#mf-niche .mf-niche-token-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

#mf-niche .mf-niche-token-card {
    position: relative;
    border-radius: 18px;
    padding: 1.1rem;
    background: rgba(2,6,23,0.62);
    border: 2px solid rgba(255,91,0,0.65);
    box-shadow: 0 22px 55px rgba(0,0,0,0.65), inset 0 0 0 2px rgba(255,255,255,0.05), inset 0 -10px 0 rgba(0,0,0,0.45);
    overflow: hidden;
}

    #mf-niche .mf-niche-token-card::before {
        content: "";
        position: absolute;
        inset: -3px;
        border-radius: inherit;
        border: 3px solid rgba(12,12,14,0.55);
        pointer-events: none;
    }

    #mf-niche .mf-niche-token-card p {
        margin: 0.5rem 0 0.9rem;
        opacity: 0.9;
        line-height: 1.35;
    }

@media (max-width: 980px) {
    #mf-niche .mf-niche-token-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Section: FAQs (niche)
   ========================================================= */

#mf-niche .mf-niche-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

#mf-niche .mf-niche-faq {
    border-radius: 16px;
    padding: 0.9rem 1rem;
    background: rgba(2,6,23,0.55);
    border: 2px solid rgba(148,163,184,0.18);
    box-shadow: inset 0 -8px 0 rgba(0,0,0,0.35);
}

    #mf-niche .mf-niche-faq summary {
        cursor: pointer;
        font-weight: 600;
        list-style: none;
        position: relative;
        padding-right: 1.4rem;
    }

        #mf-niche .mf-niche-faq summary::after {
            content: "+";
            position: absolute;
            right: 0;
            top: 0;
            font-weight: 700;
            opacity: 0.8;
        }

    #mf-niche .mf-niche-faq[open] summary::after {
        content: "–";
    }

    #mf-niche .mf-niche-faq p {
        margin-top: 0.7rem;
        line-height: 1.4;
        opacity: 0.9;
    }

@media (max-width: 900px) {
    #mf-niche .mf-niche-faq-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Floating CTA (single, non-invasive)
   ========================================================= */

#mf-niche .mf-floating-cta {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 120;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
}

    #mf-niche .mf-floating-cta.is-visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

#mf-niche .mf-floating-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(2,6,23,0.65);
    border: 2px solid rgba(255,91,0,0.75);
    box-shadow: 0 18px 45px rgba(0,0,0,0.6), inset 0 -4px 0 rgba(0,0,0,0.45), inset 0 2px 0 rgba(255,255,255,0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    white-space: nowrap;
}

    #mf-niche .mf-floating-cta-btn:hover {
        transform: translateY(-1px);
    }
/* =========================================================
   Section backgrounds (remove "hazard" stripes feel)
   Applies to niche sections only
   ========================================================= */

/* Base: calmer, premium */
#mf-niche .mf-section.mf-bg-a,
#mf-niche .mf-section.mf-bg-b {
    position: relative;
    overflow: hidden;
    background: radial-gradient(1200px 600px at 18% 20%, rgba(28,141,255,0.14), rgba(0,0,0,0) 60%), radial-gradient(900px 520px at 82% 65%, rgba(255,91,0,0.08), rgba(0,0,0,0) 62%), linear-gradient(180deg, rgba(2,6,23,0.85), rgba(2,6,23,0.92));
}

/* Alternate: slightly different temperature so sections "breathe" */
#mf-niche .mf-section.mf-bg-b {
    background: radial-gradient(1200px 600px at 20% 30%, rgba(255,91,0,0.07), rgba(0,0,0,0) 62%), radial-gradient(900px 520px at 80% 25%, rgba(28,141,255,0.12), rgba(0,0,0,0) 58%), linear-gradient(180deg, rgba(2,6,23,0.88), rgba(2,6,23,0.95));
}

    /* Subtle tech grid overlay (very faint, no "danger tape") */
    #mf-niche .mf-section.mf-bg-a::before,
    #mf-niche .mf-section.mf-bg-b::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        opacity: 0.18; /* keep low */
        background-image: linear-gradient(rgba(148,163,184,0.10) 1px, rgba(0,0,0,0) 1px), linear-gradient(90deg, rgba(148,163,184,0.10) 1px, rgba(0,0,0,0) 1px);
        background-size: 64px 64px;
        mask-image: radial-gradient(70% 55% at 50% 40%, rgba(0,0,0,1), rgba(0,0,0,0));
    }

    /* Vignette to focus content (premium look) */
    #mf-niche .mf-section.mf-bg-a::after,
    #mf-niche .mf-section.mf-bg-b::after {
        content: "";
        position: absolute;
        inset: -2px;
        pointer-events: none;
        background: radial-gradient(85% 70% at 50% 35%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%);
        opacity: 0.9;
    }

/* IMPORTANT: kill old diagonal stripe pattern if it exists via a class or old selector */
#mf-niche .mf-section .mf-section-pattern,
#mf-niche .mf-section .mf-section-pattern-inner {
    background-image: none !important;
}
/* =========================================================
   Kill diagonal pattern inside niche panels/cards
   ========================================================= */

/* 1) Main big panels */
#mf-niche .mf-niche-panel,
#mf-niche .mf-niche-panel-inner {
    background-image: none !important;
}

/* Force a clean glass base for the big wrapper */
#mf-niche .mf-niche-panel {
    background: radial-gradient(900px 420px at 18% 25%, rgba(28,141,255,0.12), rgba(0,0,0,0) 60%), radial-gradient(700px 380px at 82% 70%, rgba(255,91,0,0.07), rgba(0,0,0,0) 62%), rgba(2,6,23,0.62) !important;
    backdrop-filter: blur(18px) saturate(1.05);
    -webkit-backdrop-filter: blur(18px) saturate(1.05);
}

/* 2) Individual cards (steps, eco, temporadas, token, guarantee, etc.) */
#mf-niche .mf-niche-ticket-step,
#mf-niche .mf-niche-eco-card,
#mf-niche .mf-niche-season-card,
#mf-niche .mf-niche-token-card,
#mf-niche .mf-niche-guarantee-card,
#mf-niche .mf-niche-faq,
#mf-niche .mf-niche-card {
    background-image: none !important;
    background: radial-gradient(520px 220px at 20% 25%, rgba(28,141,255,0.10), rgba(0,0,0,0) 55%), radial-gradient(520px 220px at 80% 75%, rgba(255,91,0,0.06), rgba(0,0,0,0) 55%), rgba(2,6,23,0.62) !important;
}

    /* 3) If any pseudo overlays are adding stripes */
    #mf-niche .mf-niche-panel::before,
    #mf-niche .mf-niche-panel::after,
    #mf-niche .mf-niche-panel-inner::before,
    #mf-niche .mf-niche-panel-inner::after,
    #mf-niche .mf-niche-ticket-step::before,
    #mf-niche .mf-niche-ticket-step::after,
    #mf-niche .mf-niche-eco-card::after,
    #mf-niche .mf-niche-season-card::after,
    #mf-niche .mf-niche-token-card::after,
    #mf-niche .mf-niche-guarantee-card::after,
    #mf-niche .mf-niche-faq::after {
        /* Keep your borders/frames if they rely on ::before,
     but kill any stripe overlays if they're on ::after. */
        background-image: none !important;
    }

/* 4) Optional: soften the "hazard" orange border intensity a touch */
#mf-niche .mf-niche-ticket-step,
#mf-niche .mf-niche-eco-card,
#mf-niche .mf-niche-season-card,
#mf-niche .mf-niche-token-card,
#mf-niche .mf-niche-guarantee-card {
    border-color: rgba(255,91,0,0.55);
}
/* =========================================================
   Sticky CTA buttons polish
   ========================================================= */

#mf-sticky-cta .mf-btn-primary {
    border-radius: 12px;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 14px 35px rgba(0,0,0,0.55), inset 0 -4px 0 rgba(0,0,0,0.45), 0 0 0 1px rgba(28,141,255,0.22);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

    #mf-sticky-cta .mf-btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 44px rgba(0,0,0,0.60), inset 0 -4px 0 rgba(0,0,0,0.45), 0 0 0 1px rgba(28,141,255,0.28);
    }

#mf-sticky-cta .mf-btn-primary--ghost {
    background: rgba(2,6,23,0.35);
    border: 1px solid rgba(148,163,184,0.22);
    box-shadow: inset 0 -4px 0 rgba(0,0,0,0.35), 0 10px 26px rgba(0,0,0,0.45);
}

    #mf-sticky-cta .mf-btn-primary--ghost:hover {
        border-color: rgba(255,91,0,0.35);
        box-shadow: inset 0 -4px 0 rgba(0,0,0,0.35), 0 14px 34px rgba(0,0,0,0.55);
    }
/* =========================================================
   Glow overlays (force visible on mf-section-pattern)
   Put at the very end of the loaded CSS
   ========================================================= */

/* Ensure the section can layer safely */
#mf-niche .mf-section-pattern {
    position: relative;
    isolation: isolate; /* avoids weird blending with parents */
}

    /* Put content above overlays */
    #mf-niche .mf-section-pattern > .mf-container,
    #mf-niche .mf-section-pattern > * {
        position: relative;
        z-index: 2;
    }

/* Define variables per glow class */
#mf-niche .mf-glow-blue {
    --mfGlowA: rgba(28,141,255,0.28);
    --mfGlowB: rgba(28,141,255,0.14);
    --mfGlowC: rgba(255,91,0,0.06);
}

#mf-niche .mf-glow-orange {
    --mfGlowA: rgba(255,91,0,0.22);
    --mfGlowB: rgba(255,91,0,0.10);
    --mfGlowC: rgba(28,141,255,0.08);
}

#mf-niche .mf-glow-mix {
    --mfGlowA: rgba(28,141,255,0.20);
    --mfGlowB: rgba(255,91,0,0.16);
    --mfGlowC: rgba(148,163,184,0.07);
}

/* The overlay itself: use ::after so we don't fight the existing ::before pattern */
#mf-niche .mf-section-pattern.mf-glow-blue::after,
#mf-niche .mf-section-pattern.mf-glow-orange::after,
#mf-niche .mf-section-pattern.mf-glow-mix::after,
#mf-niche .mf-section-pattern.mf-glow-purple::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1; /* above background/pattern, below content */
    pointer-events: none;
    background: radial-gradient(900px 520px at 18% 25%, var(--mfGlowA), rgba(0,0,0,0) 62%), radial-gradient(900px 520px at 82% 70%, var(--mfGlowB), rgba(0,0,0,0) 64%), radial-gradient(700px 420px at 55% 15%, var(--mfGlowC), rgba(0,0,0,0) 58%);
    opacity: 1; /* IMPORTANT: visible */
    mix-blend-mode: screen; /* gives that neon lift without muddying */
}

/* Optional purple variant */
#mf-niche .mf-glow-purple {
    --mfGlowA: rgba(155, 89, 182, 0.18);
    --mfGlowB: rgba(28,141,255,0.12);
    --mfGlowC: rgba(255,91,0,0.08);
}
/* =========================================================
   Glow lines overlay (subtle, premium)
   Works with mf-section-pattern
   ========================================================= */

#mf-niche .mf-section-pattern.mf-glow-lines::before {
    /* If your home already uses ::before for lines,
     we DON'T override it. We add a new layer in ::after. */
}

/* Use ::after for the glowing line overlay */
#mf-niche .mf-section-pattern.mf-glow-lines::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* glowing diagonal lines */
    background: repeating-linear-gradient( 135deg, rgba(28,141,255,0.12) 0 2px, rgba(0,0,0,0) 2px 18px );
    /* soften and make it feel like light */
    opacity: 0.22;
    filter: blur(0.25px);
    mix-blend-mode: screen;
    /* keep it concentrated near center, not everywhere */
    mask-image: radial-gradient(70% 55% at 50% 40%, rgba(0,0,0,1), rgba(0,0,0,0));
}
#mf-niche .mf-section-pattern.mf-glow-lines-orange::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient( 135deg, rgba(255,91,0,0.10) 0 2px, rgba(0,0,0,0) 2px 20px );
    opacity: 0.14; /* keep low */
    mix-blend-mode: screen;
    mask-image: radial-gradient(70% 55% at 50% 40%, rgba(0,0,0,1), rgba(0,0,0,0));
}
.mf-sandbox-nav a.is-active {
    color: #fff;
    text-shadow: 0 0 10px rgba(28,141,255,0.55);
    position: relative;
}

    .mf-sandbox-nav a.is-active::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -10px;
        height: 2px;
        background: rgba(28,141,255,0.9);
        box-shadow: 0 0 12px rgba(28,141,255,0.6);
        border-radius: 2px;
    }
/* Use Cases (B2B) */
.mf-usecases {
    margin-top: 24px;
}

.mf-usecases-head {
    text-align: center;
    margin-bottom: 14px;
}

.mf-usecases-title {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mf-usecases-sub {
    opacity: 0.75;
    max-width: 780px;
    margin: 8px auto 0;
}

.mf-usecase-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 14px 0 18px;
}

.mf-usecase-tab {
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(10, 12, 18, 0.42);
    color: rgba(255,255,255,0.86);
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

    .mf-usecase-tab:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,0.28);
    }

    .mf-usecase-tab.is-active {
        border-color: rgba(60,160,255,0.9);
        background: rgba(20, 40, 70, 0.55);
        box-shadow: 0 0 0 1px rgba(60,160,255,0.25) inset;
    }

.mf-bundle-panel {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 16px;
    align-items: start;
}

@media (max-width: 980px) {
    .mf-bundle-panel {
        grid-template-columns: 1fr;
    }
}

.mf-bundle-scene {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(10, 12, 18, 0.35);
    min-height: 300px;
}

.mf-bundle-scene-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
}

.mf-node {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(10, 12, 18, 0.55);
    color: rgba(255,255,255,0.9);
    padding: 8px 10px;
    border-radius: 999px;
    cursor: pointer;
    user-select: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

    .mf-node:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,0.26);
    }

    .mf-node.is-active {
        border-color: rgba(60,160,255,0.9);
        background: rgba(20, 40, 70, 0.62);
    }

.mf-node-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(60,160,255,0.95);
    box-shadow: 0 0 14px rgba(60,160,255,0.55);
}

.mf-node-label {
    font-size: 12px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    white-space: nowrap;
}

.mf-bundle-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(10, 12, 18, 0.45);
}

.mf-bundle-card-media img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.mf-bundle-card-body {
    padding: 12px 12px 14px;
}

.mf-bundle-card-kicker {
    font-size: 12px;
    opacity: 0.8;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.mf-bundle-card-title {
    font-size: 18px;
    margin: 0 0 8px;
}

.mf-bundle-card-text {
    opacity: 0.85;
    margin: 0 0 10px;
}

.mf-bundle-card-note {
    opacity: 0.65;
    font-size: 12px;
    margin: 0 0 14px;
}

.mf-bundle-card-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.mf-usecases {
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(32px, 6vw, 6em);
    padding-right: clamp(24px, 4vw, 48px);
}

.mf-bundle-panel {
    width: 100%;
}
.mf-bundle-scene,
.mf-bundle-card {
    border-radius: 20px;
}
/* Secondary page wrapper */
.mf-secondary {
    max-width: 1800px;
    margin: 0 auto;
    padding-left: clamp(32px, 6vw, 6em);
    padding-right: clamp(24px, 4vw, 48px);
}

.mf-secondary-head {
    text-align: center;
    margin-bottom: 14px;
}

.mf-secondary-title {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
}

.mf-secondary-sub {
    opacity: 0.75;
    margin-top: 8px;
}

.mf-secondary-cats {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 14px 0 22px;
}

.mf-cat-pill {
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(10,12,18,0.42);
    color: rgba(255,255,255,0.86);
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

    .mf-cat-pill.is-active {
        border-color: rgba(60,160,255,0.9);
        background: rgba(20,40,70,0.55);
        box-shadow: 0 0 0 1px rgba(60,160,255,0.25) inset;
    }

/* Node layer wrapper (so we can inject node buttons cleanly) */
.mf-nodes-layer {
    position: absolute;
    inset: 0;
}
.mf-secondary-hero {
    padding: 28px 0 18px;
    text-align: center;
}

.mf-secondary-hero-inner {
    max-width: 980px;
    margin: 0 auto;
}

.mf-kicker {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.75;
    margin: 0 0 8px;
}

.mf-secondary-title {
    font-size: clamp(28px, 3vw, 44px);
    margin: 0 0 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mf-secondary-sub {
    opacity: 0.8;
    margin: 0 auto 16px;
    max-width: 780px;
}

.mf-secondary-hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.mf-section {
    padding: 28px 0;
}

.mf-section-head {
    text-align: center;
    margin-bottom: 16px;
}

.mf-section-title {
    font-size: clamp(18px, 2vw, 22px);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.mf-section-sub {
    opacity: 0.75;
    margin: 0 auto;
    max-width: 860px;
}

.mf-value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

@media (max-width: 980px) {
    .mf-value-grid {
        grid-template-columns: 1fr;
    }
}

.mf-value-card {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(10,12,18,0.40);
    padding: 16px 16px 18px;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

    .mf-value-card:hover {
        transform: translateY(-2px);
        border-color: rgba(60,160,255,0.35);
        background: rgba(10,12,18,0.52);
    }

.mf-value-title {
    margin: 0 0 8px;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mf-value-text {
    margin: 0;
    opacity: 0.82;
    line-height: 1.45;
}
.mf-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
    margin-top: 18px;
}

@media (max-width: 980px) {
    .mf-packages-grid {
        grid-template-columns: 1fr;
    }
}

.mf-pack-card {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(10,12,18,0.40);
    padding: 16px 16px 18px;
    position: relative;
    overflow: hidden;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

    .mf-pack-card:hover {
        transform: translateY(-2px);
        border-color: rgba(60,160,255,0.32);
        background: rgba(10,12,18,0.52);
    }

    .mf-pack-card.is-featured {
        border-color: rgba(60,160,255,0.65);
        box-shadow: 0 0 0 1px rgba(60,160,255,0.18) inset;
    }

.mf-pack-head {
    margin-bottom: 10px;
}

.mf-pack-title {
    margin: 0 0 4px;
    font-size: 16px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.mf-pack-tag {
    margin: 0;
    opacity: 0.75;
    font-size: 13px;
}

.mf-pack-list {
    margin: 12px 0 14px;
    padding-left: 18px;
    opacity: 0.86;
    line-height: 1.55;
}

.mf-pack-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.mf-pack-meta-item {
    font-size: 12px;
    opacity: 0.75;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(10,12,18,0.30);
    padding: 8px 10px;
    border-radius: 999px;
}

.mf-pack-cta {
    display: flex;
    gap: 10px;
}

.mf-pack-note {
    text-align: center;
    opacity: 0.7;
    margin: 14px auto 0;
    max-width: 860px;
}
.mf-process-steps {
    list-style: none;
    margin: 18px auto 0;
    padding: 0;
    max-width: 980px;
    display: grid;
    gap: 12px;
}

.mf-process-step {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    align-items: start;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(10,12,18,0.40);
    padding: 14px 14px 16px;
}

.mf-process-badge {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 700;
    border: 1px solid rgba(60,160,255,0.55);
    background: rgba(20,40,70,0.50);
    box-shadow: 0 0 0 1px rgba(60,160,255,0.18) inset;
}

.mf-process-title {
    margin: 0 0 4px;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mf-process-text {
    margin: 0;
    opacity: 0.82;
    line-height: 1.45;
}
.mf-gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.mf-gallery-item {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(10,12,18,0.35);
    position: relative;
}

    .mf-gallery-item img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform 220ms ease;
    }

    .mf-gallery-item:hover img {
        transform: scale(1.03);
    }

    /* Layout: 2 big + 4 small (premium looking, not boring grid) */
    .mf-gallery-item:nth-child(1) {
        grid-column: span 7;
        min-height: 240px;
    }

    .mf-gallery-item:nth-child(2) {
        grid-column: span 5;
        min-height: 240px;
    }

    .mf-gallery-item:nth-child(3) {
        grid-column: span 4;
        min-height: 180px;
    }

    .mf-gallery-item:nth-child(4) {
        grid-column: span 4;
        min-height: 180px;
    }

    .mf-gallery-item:nth-child(5) {
        grid-column: span 4;
        min-height: 180px;
    }

    .mf-gallery-item:nth-child(6) {
        grid-column: span 12;
        min-height: 220px;
    }

@media (max-width: 980px) {
    .mf-gallery-item:nth-child(1),
    .mf-gallery-item:nth-child(2),
    .mf-gallery-item:nth-child(3),
    .mf-gallery-item:nth-child(4),
    .mf-gallery-item:nth-child(5),
    .mf-gallery-item:nth-child(6) {
        grid-column: span 12;
        min-height: 200px;
    }
}
.mf-faq-list {
    max-width: 980px;
    margin: 18px auto 0;
    display: grid;
    gap: 12px;
}

.mf-faq-item {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(10,12,18,0.40);
    padding: 12px 14px;
}

.mf-faq-q {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    font-size: 13px;
    outline: none;
}

    .mf-faq-q::-webkit-details-marker {
        display: none;
    }

.mf-faq-a {
    margin-top: 10px;
    opacity: 0.82;
    line-height: 1.5;
}

/* Subtle state */
.mf-faq-item[open] {
    border-color: rgba(60,160,255,0.28);
    background: rgba(10,12,18,0.52);
}
.mf-final-cta-card {
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(10,12,18,0.45);
    padding: 22px 18px;
    text-align: center;
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.mf-final-cta-title {
    margin: 0 0 10px;
    font-size: clamp(20px, 2.2vw, 28px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mf-final-cta-text {
    margin: 0 auto 16px;
    opacity: 0.82;
    max-width: 780px;
    line-height: 1.5;
}

.mf-final-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.mf-final-cta-note {
    margin: 14px 0 0;
    opacity: 0.65;
    font-size: 12px;
}
.mf-container-wide {
    max-width: 1600px;
}
.mf-gallery {
    min-height: 520px;
    display: flex;
    align-items: center;
}
@media (max-width: 768px) {
    .mf-gallery {
        min-height: auto;
    }
}
/* --- Secondary template page only: spacing + containers (no impact on Home) --- */
.mf-secondary-template .mf-section {
    padding-top: 64px;
    padding-bottom: 64px;
}

@media (max-width: 768px) {
    .mf-secondary-template .mf-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }
}

/* --- Standard container feel for this page only --- */
.mf-secondary-template .mf-section-head,
.mf-secondary-template .mf-value-grid,
.mf-secondary-template .mf-usecase-tabs,
.mf-secondary-template .mf-packages-grid,
.mf-secondary-template .mf-process-steps,
.mf-secondary-template .mf-faq-list,
.mf-secondary-template .mf-final-cta-card {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
}

@media (max-width: 768px) {
    .mf-secondary-template .mf-section-head,
    .mf-secondary-template .mf-value-grid,
    .mf-secondary-template .mf-usecase-tabs,
    .mf-secondary-template .mf-packages-grid,
    .mf-secondary-template .mf-process-steps,
    .mf-secondary-template .mf-faq-list,
    .mf-secondary-template .mf-final-cta-card {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* --- Use-cases bundle: keep it wide but not glued to edges --- */
.mf-secondary-template .mf-bundle-panel {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
}

@media (max-width: 768px) {
    .mf-secondary-template .mf-bundle-panel {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* --- Gallery: wide container + consistent side padding (only this page) --- */
.mf-secondary-template .mf-gallery-grid {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
}

@media (max-width: 768px) {
    .mf-secondary-template .mf-gallery-grid {
        padding-left: 20px;
        padding-right: 20px;
    }
}
/* --- Secondary template only: tame gallery heights --- */
.mf-secondary-template .mf-gallery-item:nth-child(6) {
    min-height: 260px; /* was too tall */
}

@media (max-width: 980px) {
    .mf-secondary-template .mf-gallery-item:nth-child(1),
    .mf-secondary-template .mf-gallery-item:nth-child(2),
    .mf-secondary-template .mf-gallery-item:nth-child(3),
    .mf-secondary-template .mf-gallery-item:nth-child(4),
    .mf-secondary-template .mf-gallery-item:nth-child(5),
    .mf-secondary-template .mf-gallery-item:nth-child(6) {
        min-height: 180px;
    }
}
/* --- Secondary template page only: more breathing room --- */
.mf-secondary-template .mf-section {
    padding-top: 84px;
    padding-bottom: 84px;
}

@media (max-width: 768px) {
    .mf-secondary-template .mf-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}
/* --- Secondary template only: subtle glow pattern like Home/Niche --- */
.mf-secondary-template {
    position: relative;
    background: radial-gradient(900px 500px at 50% 0%, rgba(60,160,255,0.16), transparent 60%), radial-gradient(700px 420px at 20% 18%, rgba(255,91,0,0.10), transparent 65%), radial-gradient(700px 420px at 80% 22%, rgba(60,160,255,0.10), transparent 65%), repeating-linear-gradient( 135deg, rgba(255,255,255,0.028) 0px, rgba(255,255,255,0.028) 1px, transparent 1px, transparent 12px );
}
    .mf-secondary-template .mf-section-head {
        margin-bottom: 22px;
    }
    /* --- Secondary template only: fix Gallery header layout --- */
    .mf-secondary-template .mf-gallery .mf-section-head {
        max-width: 1320px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 32px;
        padding-right: 32px;
        text-align: center;
    }

@media (max-width: 768px) {
    .mf-secondary-template .mf-gallery .mf-section-head {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Ensure gallery grid is separate and starts below header */
.mf-secondary-template .mf-gallery .mf-gallery-grid {
    margin-top: 18px;
}
.mf-secondary-template .mf-gallery {
    display: block;
}
/* --- Secondary template only: normalize last gallery item --- */
.mf-secondary-template .mf-gallery-item:nth-child(6) {
    grid-column: span 6;
    min-height: 180px;
}

@media (max-width: 980px) {
    .mf-secondary-template .mf-gallery-item:nth-child(6) {
        grid-column: span 12;
        min-height: 180px;
    }
}
.mf-secondary-template .mf-gallery-item {
    min-height: 180px;
}
/* --- Secondary Hub (landing) only --- */
.mf-secondary-hub {
    position: relative;
    background: radial-gradient(900px 500px at 50% 0%, rgba(60,160,255,0.16), transparent 60%), radial-gradient(700px 420px at 20% 18%, rgba(255,91,0,0.10), transparent 65%), radial-gradient(700px 420px at 80% 22%, rgba(60,160,255,0.10), transparent 65%), repeating-linear-gradient( 135deg, rgba(255,255,255,0.028) 0px, rgba(255,255,255,0.028) 1px, transparent 1px, transparent 12px );
}

.mf-secondary-hub-hero {
    text-align: center;
    padding: 70px 32px 34px;
    max-width: 1100px;
    margin: 0 auto;
}

.mf-secondary-hub-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px 84px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 980px) {
    .mf-secondary-hub-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 64px;
    }

    .mf-secondary-hub-hero {
        padding: 54px 20px 26px;
    }
}

.mf-hub-card {
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.14);
    overflow: hidden;
    min-height: 260px;
    background: rgba(10,12,18,0.40);
    display: flex;
    align-items: flex-end;
    padding: 18px;
}

    .mf-hub-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        transform: scale(1.02);
        transition: transform 220ms ease;
        opacity: 0.92;
    }

    .mf-hub-card:hover::before {
        transform: scale(1.05);
    }

.mf-hub-card-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 380px at 30% 20%, rgba(60,160,255,0.18), transparent 60%), linear-gradient(180deg, rgba(10,12,18,0.20), rgba(10,12,18,0.85));
}

.mf-hub-card-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.mf-hub-card-title {
    margin: 0 0 8px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    font-size: 18px;
}

.mf-hub-card-text {
    margin: 0 0 14px;
    opacity: 0.86;
    line-height: 1.45;
}
.mf-hub-card::before {
    background-image: var(--hub-bg-url);
}
/* --- Secondary Hub: Hero Cards in container --- */
.mf-secondary-hub--cards {
    background: radial-gradient(900px 500px at 50% 0%, rgba(60,160,255,0.16), transparent 60%), radial-gradient(700px 420px at 20% 18%, rgba(255,91,0,0.10), transparent 65%), radial-gradient(700px 420px at 80% 22%, rgba(60,160,255,0.10), transparent 65%), repeating-linear-gradient( 135deg, rgba(255,255,255,0.028) 0px, rgba(255,255,255,0.028) 1px, transparent 1px, transparent 12px );
}

    .mf-secondary-hub--cards .mf-secondary-hub-hero {
        text-align: center;
        padding: 70px 32px 34px;
        max-width: 1100px;
        margin: 0 auto;
    }

.mf-hub-cards {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px 84px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (max-width: 980px) {
    .mf-hub-cards {
        padding: 0 20px 64px;
    }

    .mf-secondary-hub--cards .mf-secondary-hub-hero {
        padding: 54px 20px 26px;
    }
}

.mf-hub-hero-card {
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.14);
    overflow: hidden;
    background: rgba(10,12,18,0.40);
    min-height: 280px;
    position: relative;
}

    .mf-hub-hero-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: var(--bg);
        background-size: cover;
        background-position: center;
        opacity: 0.95;
        transform: scale(1.02);
        transition: transform 220ms ease;
    }

    .mf-hub-hero-card:hover::before {
        transform: scale(1.05);
    }

    .mf-hub-hero-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(700px 360px at 30% 20%, rgba(60,160,255,0.16), transparent 60%), linear-gradient(90deg, rgba(10,12,18,0.92) 0%, rgba(10,12,18,0.65) 45%, rgba(10,12,18,0.25) 100%);
    }

.mf-hub-hero-card-inner {
    position: relative;
    z-index: 1;
    padding: 22px;
    display: flex;
    align-items: center;
    min-height: 280px;
}

.mf-hub-hero-card-content {
    max-width: 680px;
}

.mf-hub-hero-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.75;
}

.mf-hub-hero-title {
    margin: 0 0 10px;
    font-size: 24px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.mf-hub-hero-text {
    margin: 0 0 16px;
    opacity: 0.86;
    line-height: 1.5;
}

.mf-hub-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Mobile: make overlay less "side" and more "bottom" */
@media (max-width: 768px) {
    .mf-hub-hero-card {
        min-height: 320px;
    }

        .mf-hub-hero-card::after {
            background: radial-gradient(700px 360px at 50% 0%, rgba(60,160,255,0.16), transparent 60%), linear-gradient(180deg, rgba(10,12,18,0.25) 0%, rgba(10,12,18,0.92) 85%);
        }

    .mf-hub-hero-card-inner {
        align-items: flex-end;
        padding: 18px;
    }
}
@media (min-width: 1100px) {
    .mf-hub-cards {
        grid-template-columns: 1fr 1fr;
    }

    .mf-hub-hero-card-inner {
        min-height: 300px;
    }
}
/* ===== Secondary hub landing: diagonal glow background (scoped) ===== */
.mf-secondary-hub--cards {
    position: relative;
    background: radial-gradient(900px 520px at 50% 0%, rgba(60,160,255,0.16), transparent 60%), radial-gradient(720px 420px at 20% 16%, rgba(255,91,0,0.10), transparent 65%), radial-gradient(720px 420px at 80% 18%, rgba(60,160,255,0.10), transparent 65%), repeating-linear-gradient( 135deg, rgba(255,255,255,0.028) 0px, rgba(255,255,255,0.028) 1px, transparent 1px, transparent 12px );
}

    /* Give sections breathing room on this landing */
    .mf-secondary-hub--cards .mf-hub-cards {
        padding-bottom: 40px;
    }

/* ===== Final CTA section ===== */
.mf-hub-final-cta {
    padding: 48px 0 20px;
}

.mf-hub-final-cta-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 22px 18px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(10,12,18,0.45);
    text-align: center;
}

.mf-hub-final-cta-title {
    margin: 0 0 10px;
    font-size: clamp(18px, 2.1vw, 26px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mf-hub-final-cta-text {
    margin: 0 auto 16px;
    max-width: 880px;
    opacity: 0.82;
    line-height: 1.5;
}

.mf-hub-final-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Mini FAQ section ===== */
.mf-hub-mini-faq {
    padding: 26px 0 84px;
}

.mf-hub-mini-faq-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 0;
}

.mf-hub-mini-faq-head {
    text-align: center;
    padding: 0 18px;
    margin-bottom: 16px;
}

.mf-hub-mini-faq-title {
    margin: 0 0 8px;
    font-size: clamp(18px, 2vw, 22px);
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.mf-hub-mini-faq-sub {
    margin: 0 auto;
    max-width: 860px;
    opacity: 0.75;
}

.mf-hub-mini-faq-list {
    max-width: 980px;
    margin: 18px auto 0;
    padding: 0 18px;
    display: grid;
    gap: 12px;
}

.mf-hub-mini-faq-item {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(10,12,18,0.40);
    padding: 12px 14px;
}

.mf-hub-mini-faq-q {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    font-size: 13px;
    outline: none;
}

    .mf-hub-mini-faq-q::-webkit-details-marker {
        display: none;
    }

.mf-hub-mini-faq-a {
    margin-top: 10px;
    opacity: 0.82;
    line-height: 1.5;
}

.mf-hub-mini-faq-item[open] {
    border-color: rgba(60,160,255,0.28);
    background: rgba(10,12,18,0.52);
}

/* Responsive padding to match your system */
@media (max-width: 980px) {
    .mf-hub-final-cta-inner,
    .mf-hub-mini-faq-head,
    .mf-hub-mini-faq-list {
        padding-left: 20px;
        padding-right: 20px;
    }

    .mf-hub-mini-faq {
        padding-bottom: 64px;
    }
}
