/* Extraído de partials/home.php: manter idêntico ao PHP. */
    :root {
        --gf-orange: #ff5500;
        --gf-orange-glow: rgba(255, 85, 0, 0.35);
        --gf-black: #050505;
    }

    /* Container Principal Cinematográfico */
    .hub-home-hero {
        font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
        position: relative;
        min-height: 100vh;
        min-height: 100dvh;
        width: 100%;
        background-color: var(--gf-black);
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 2rem 1.5rem;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* ==========================================================================
       1. ROLO DE FOTOS NO FUNDO (COMPATÍVEL COM MOBILE)
       ========================================================================== */
    .hub-bg-filmstrip-wrap {
        position: absolute;
        inset: 0;
        z-index: 1;
        overflow: hidden;
        pointer-events: none;
        user-select: none;
        display: flex;
        align-items: center;
        opacity: 0.55;
    }

    .hub-bg-filmstrip-track {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
        height: 100%;
        -webkit-animation: gfMarqueeLoop 95s linear infinite;
        animation: gfMarqueeLoop 95s linear infinite;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .hub-bg-slide {
        position: relative;
        height: 100vh;
        width: clamp(260px, 36vw, 520px);
        flex: 0 0 auto;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
        margin: 0 -1.5vw;
    }

    .hub-bg-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 25%;
        filter: grayscale(85%) contrast(118%) brightness(0.95);
        transform: scale(1.08);
    }

    /* 2. Textura Black / Film Grain */
    .hub-home-texture {
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        background-image: 
            radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 0),
            url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
        background-size: 24px 24px, 180px 180px;
        mix-blend-mode: overlay;
    }

    /* 3. Vinheta Cinematográfica */
    .hub-home-bg-gradient {
        position: absolute;
        inset: 0;
        z-index: 3;
        pointer-events: none;
        background: 
            radial-gradient(circle at 50% 45%, rgba(5, 5, 5, 0.1) 20%, rgba(5, 5, 5, 0.72) 80%, #000000 100%),
            linear-gradient(180deg, rgba(0,0,0,0.85) 0%, transparent 22%, transparent 75%, #000000 100%);
    }

    /* ==========================================================================
       4. DUAS FAIXAS MONUMENTAIS + NEON OTIMIZADO PARA CELULAR (SEM TRAVAR GPU)
       ========================================================================== */
    .hub-kinetic-type-wrap {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 220vw;
        -webkit-transform: translate(-50%, -50%) rotate(-6deg);
        transform: translate(-50%, -50%) rotate(-6deg);
        z-index: 4;
        pointer-events: none;
        user-select: none;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        opacity: 0.9;
    }

    .hub-kinetic-track {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
        white-space: nowrap;
        -webkit-animation: gfMarqueeLoop 80s linear infinite;
        animation: gfMarqueeLoop 80s linear infinite;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .hub-kinetic-track.reverse {
        -webkit-animation: gfMarqueeLoopReverse 95s linear infinite;
        animation: gfMarqueeLoopReverse 95s linear infinite;
        opacity: 0.38;
    }

    .hub-kinetic-text {
        flex: 0 0 auto;
        font-family: 'Archivo Black', sans-serif;
        font-size: clamp(9.5rem, 28vw, 30rem);
        font-weight: 400;
        text-transform: uppercase;
        line-height: 0.86;
        letter-spacing: -0.02em;
        color: transparent;
        -webkit-text-stroke: 3px rgba(255, 85, 0, 0.3);
        text-shadow: 0 0 50px rgba(255, 85, 0, 0.15);
        padding-right: 4rem;
    }

    /* Usa text-shadow em vez de filter:drop-shadow para não estourar a GPU do iPhone/Android */
    .hub-kinetic-text span.highlight-stroke {
        -webkit-text-stroke: 4px rgba(255, 95, 0, 0.58);
        text-shadow: 0 0 28px rgba(255, 85, 0, 0.38), 0 0 60px rgba(255, 85, 0, 0.18);
    }

    /* Ajuste fino para telas de Celular: acelera o tempo para compensar a largura menor */
    @media (max-width: 768px) {
        .hub-kinetic-track {
            -webkit-animation-duration: 38s;
            animation-duration: 38s;
        }
        .hub-kinetic-track.reverse {
            -webkit-animation-duration: 46s;
            animation-duration: 46s;
        }
        .hub-bg-filmstrip-track {
            -webkit-animation-duration: 55s;
            animation-duration: 55s;
        }
        .hub-kinetic-text {
            -webkit-text-stroke: 2px rgba(255, 85, 0, 0.34);
            padding-right: 2.5rem;
        }
        .hub-kinetic-text span.highlight-stroke {
            -webkit-text-stroke: 2.5px rgba(255, 95, 0, 0.62);
        }
    }

    /* 5. Conteúdo Central Principal */
    .hub-home-content {
        position: relative;
        z-index: 10;
        max-width: 680px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        animation: gfContentEntrance 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    /* Frase de Boas-vindas: Reta, Fina e Elegante */
    .hub-home-welcome {
        all: unset;
        display: block;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: clamp(0.85rem, 1.5vw, 1.05rem);
        font-weight: 300;
        text-transform: uppercase;
        letter-spacing: 0.45em;
        color: rgba(255, 255, 255, 0.92);
        margin-bottom: 1.5rem;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95);
    }

    /* Logo Central Proporcional */
    .hub-home-logo-wrap {
        margin: 0.25rem 0 1.75rem 0;
        width: 100%;
        display: flex;
        justify-content: center;
        position: relative;
    }

    .hub-home-logo-wrap::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 65%;
        height: 130%;
        transform: translate(-50%, -50%);
        background: radial-gradient(circle, rgba(0, 0, 0, 0.82) 0%, transparent 70%);
        z-index: -1;
        pointer-events: none;
    }

    .hub-home-logo-wrap a {
        display: inline-block;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .hub-home-logo-wrap a:hover {
        transform: scale(1.03);
    }

    .hub-home-logo-wrap img {
        width: clamp(250px, 42vw, 390px);
        max-width: 100%;
        height: auto;
        display: block;
        filter: drop-shadow(0 14px 35px rgba(0, 0, 0, 0.95));
    }

    /* Tagline Principal */
    .hub-home-tagline {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: clamp(1.6rem, 3.8vw, 2.5rem);
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        line-height: 1.1;
        color: #ffffff;
        margin: 0 0 2.25rem 0;
        text-shadow: 0 8px 30px rgba(0, 0, 0, 0.95);
    }

    /* Botão Central */
    .hub-home-action-wrap {
        position: relative;
        z-index: 2;
    }

    .hub-btn-central-menu {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        font-size: 0.9rem;
        color: #ffffff;
        background: linear-gradient(135deg, #ff5500 0%, #d93800 100%);
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 1.1rem 2.4rem;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        gap: 0.85rem;
        cursor: pointer;
        box-shadow: 0 10px 35px var(--gf-orange-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .hub-btn-central-menu:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 16px 45px rgba(255, 85, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }

    .hub-btn-central-menu svg {
        width: 18px;
        height: 18px;
        transition: transform 0.3s ease;
    }

    .hub-btn-central-menu:hover svg {
        transform: translateX(5px);
    }

    /* Texto Auxiliar */
    .hub-home-helper-text {
        color: rgba(255, 255, 255, 0.65);
        font-size: 0.85rem;
        font-weight: 400;
        margin-top: 1.4rem;
        letter-spacing: 0.03em;
        max-width: 440px;
        line-height: 1.5;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
    }

    /* Keyframes explícitos com prefixo WebKit (garante execução no iOS Safari) */
    @-webkit-keyframes gfMarqueeLoop {
        0% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
        100% { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); }
    }
    @keyframes gfMarqueeLoop {
        0% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
        100% { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); }
    }

    @-webkit-keyframes gfMarqueeLoopReverse {
        0% { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); }
        100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
    }
    @keyframes gfMarqueeLoopReverse {
        0% { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); }
        100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
    }

    @keyframes gfContentEntrance {
        0% {
            opacity: 0;
            transform: translateY(24px) scale(0.98);
        }
        100% {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    /* ==========================================================================
       MODO CLARO DA HOME (KAN-187) — mesmo layout, fundo claro e contornos laranja
       ========================================================================== */
    html[data-theme="light"] .hub-home-hero {
        background-color: #f5f5f7;
    }
    html[data-theme="light"] .hub-bg-filmstrip-wrap {
        opacity: 0.28;
    }
    html[data-theme="light"] .hub-bg-slide img {
        filter: grayscale(100%) contrast(105%) brightness(1.08);
    }
    html[data-theme="light"] .hub-home-texture {
        mix-blend-mode: multiply;
        opacity: 0.5;
    }
    html[data-theme="light"] .hub-home-bg-gradient {
        background:
            radial-gradient(circle at 50% 45%, rgba(245, 245, 247, 0.15) 20%, rgba(245, 245, 247, 0.78) 80%, #f5f5f7 100%),
            linear-gradient(180deg, rgba(245, 245, 247, 0.9) 0%, transparent 22%, transparent 75%, #f5f5f7 100%);
    }
    html[data-theme="light"] .hub-kinetic-text {
        -webkit-text-stroke: 3px rgba(243, 106, 39, 0.32);
        text-shadow: none;
    }
    html[data-theme="light"] .hub-kinetic-text span.highlight-stroke {
        -webkit-text-stroke: 4px rgba(243, 106, 39, 0.6);
        text-shadow: none;
    }
    html[data-theme="light"] .hub-home-welcome {
        color: #2a2a30;
        text-shadow: none;
    }
    html[data-theme="light"] .hub-home-logo-wrap::before {
        background: radial-gradient(circle, rgba(245, 245, 247, 0.9) 0%, transparent 70%);
    }
    html[data-theme="light"] .hub-home-logo-wrap img {
        filter: none;
    }
    html[data-theme="light"] .hub-home-tagline {
        color: #111114;
        text-shadow: none;
    }
    html[data-theme="light"] .hub-home-helper-text {
        color: #55555e;
        text-shadow: none;
    }
    @media (max-width: 768px) {
        html[data-theme="light"] .hub-kinetic-text {
            -webkit-text-stroke: 2px rgba(243, 106, 39, 0.36);
        }
        html[data-theme="light"] .hub-kinetic-text span.highlight-stroke {
            -webkit-text-stroke: 2.5px rgba(243, 106, 39, 0.62);
        }
    }
