        .site-header, .sg-overlay {
            --primary: #7B2FBE; --primary-dark: #5C1FA0; --primary-bg: #F4EEFD;
            --dark: #0F091D; --gray-600: #4B5563; --gray-800: #1F2937;
            --glass-border: rgba(123,47,190,.08); --shadow-sm: 0 2px 8px rgba(15,9,29,.05);
            --font-display: 'Outfit', system-ui, sans-serif;
            --ease: cubic-bezier(.16,1,.3,1); --header-h: 76px;
            font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
            line-height: 1.6;
        }
        .site-header .container { width:100%; max-width:1200px; margin:0 auto; padding:0 24px; }
        .site-header .nav-menu { gap:clamp(12px,1.5vw,22px); margin:0; padding:0; }
        .site-header .logo { flex-shrink:0; white-space:nowrap; }
        .site-header .marca { white-space:nowrap; }
        .site-header .logo img { flex:none; }
        .resources-page { padding-top:66px; }
        .resources-page .skip-link { z-index:2001; }
        .sg-overlay .sg-enviar { display:inline-flex; padding:14px 20px; border:0; border-radius:12px; background:#7B2FBE; color:white; font:inherit; font-weight:800; cursor:pointer; }
        .site-header a:focus-visible, .site-header button:focus-visible { outline:3px solid #A78BFA; outline-offset:4px; }
        /* ── Cabeçalho ─────────────────────────────────────────────────── */
        .site-header {
            position: fixed;
            top: 0; left: 0;
            width: 100%;
            height: var(--header-h);
            z-index: 1000;
            display: flex;
            align-items: center;
            /* Começa transparente sobre o hero escuro; ao rolar vira vidro
               branco (classe .scrolled, ver script do fim da página). */
            background: transparent;
            border-bottom: 1px solid transparent;
            transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, height .3s ease;
        }
        .site-header.scrolled {
            --header-h: 66px;
            background: rgba(255, 255, 255, 0.86);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            border-bottom-color: var(--glass-border);
            box-shadow: var(--shadow-sm);
        }

        .nav-wrapper {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            width: 100%;
            /* Âncora do menu do celular (position:absolute logo abaixo). */
            position: relative;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-family: var(--font-display);
            font-size: 1.55rem;
            font-weight: 800;
            color: #FFFFFF;
            text-decoration: none;
            transition: color .3s ease, transform .2s ease;
        }
        .site-header.scrolled .logo { color: var(--primary); }
        /* Com o cabeçalho branco, o nome ganha o degradê roxo da arte. */
        .site-header.scrolled .logo .marca {
            background: linear-gradient(180deg, #9B5CFF 0%, #7B2FF7 45%, #5B1BB5 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        /* Chama azul translúcida sobre o "I" de LUMI, como na arte oficial.
           A fonte continua a do site; a chama tremula ancorada na base. */
        .i-chama { position: relative; display: inline-block; }
        .i-chama::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: 84%;
            width: .55em;
            height: .78em;
            margin-left: -.275em;
            background: url(/img/chama-lumi.svg) no-repeat center bottom / contain;
            transform-origin: 50% 100%;
            animation: chama-lumi 1.6s ease-in-out infinite alternate;
            pointer-events: none;
        }
        @keyframes chama-lumi {
            from { transform: scale(1, .94) skewX(3deg); opacity: .88; }
            to   { transform: scale(.96, 1.04) skewX(-3deg); opacity: 1; }
        }
        @media (prefers-reduced-motion: reduce) { .i-chama::after { animation: none; } }

        .logo:hover { transform: scale(1.02); }
        .logo img { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); }

        /* Selo "Beta" encostado na base do "LUMI", como na arte oficial.
           align-self:flex-end porque .logo é flex; o margin-left negativo
           compensa o gap do flex. */
        .logo-beta {
            align-self: flex-end;
            margin-left: -5px;
            padding-bottom: 4px;
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 0.02em;
            color: inherit;
            opacity: .85;
        }

        .nav-menu { display: flex; align-items: center; gap: 26px; list-style: none; }
        .nav-menu .nav-mobile-only { display: none; }

        .nav-link {
            text-decoration: none;
            color: rgba(255, 255, 255, .82);
            font-weight: 600;
            font-size: 0.93rem;
            transition: color .2s ease;
        }
        .nav-link:hover { color: #FFFFFF; }
        .site-header.scrolled .nav-link { color: var(--gray-600); }
        .site-header.scrolled .nav-link:hover { color: var(--primary); }

        .nav-link-painel { font-weight: 500; font-size: 0.82rem; opacity: .6; }
        .nav-link-painel:hover { opacity: 1; }

        .nav-cta {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 18px;
            border-radius: 12px;
            background: #FFFFFF;
            color: var(--primary);
            font-weight: 800;
            font-size: .9rem;
            text-decoration: none;
            box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
            transition: transform .25s var(--ease), box-shadow .25s ease, background .3s ease, color .3s ease;
            white-space: nowrap;
        }
        .nav-cta:hover { transform: translateY(-2px); }
        .site-header.scrolled .nav-cta {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: #FFFFFF;
            box-shadow: 0 6px 18px rgba(123, 47, 190, .3);
        }

        /* Botão de três traços: aparece até 1080px (o menu tem muitos itens
           e não cabe ao lado da logo em tablet/notebook pequeno). */
        .nav-toggle {
            display: none;
            flex-direction: column;
            justify-content: center;
            gap: 5px;
            width: 42px;
            height: 42px;
            padding: 0;
            border: 1px solid rgba(255, 255, 255, .25);
            border-radius: 10px;
            background: rgba(255, 255, 255, .1);
            cursor: pointer;
            flex: none;
        }
        .nav-toggle span {
            display: block;
            width: 20px;
            height: 2px;
            margin: 0 auto;
            background: #FFFFFF;
            border-radius: 2px;
            transition: transform .2s ease, opacity .2s ease;
        }
        .site-header.scrolled .nav-toggle { background: var(--primary-bg); border-color: rgba(123, 47, 190, .18); }
        .site-header.scrolled .nav-toggle span { background: var(--primary); }
        /* Vira um "X" quando aberto. */
        .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
        .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
        .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


@media (max-width:1080px) {
            .nav-toggle { display: flex; }
            .nav-menu {
                display: none; /* fechado por padrão; abre no toque */
                position: absolute;
                top: calc(100% + 10px);
                left: 0;
                right: 0;
                flex-direction: column;
                align-items: stretch;
                gap: 0;
                background: #fff;
                border-radius: 18px;
                box-shadow: 0 20px 40px rgba(0, 0, 0, .18);
                padding: 8px 0;
            }
            .nav-menu.is-open { display: flex; }
            .nav-menu li { width: 100%; }
            .nav-menu .nav-mobile-only { display: list-item; }
            .nav-menu .nav-link, .site-header.scrolled .nav-menu .nav-link {
                display: block;
                padding: 12px 22px;
                font-size: 1rem;
                color: var(--gray-800);
            }
            .nav-right { margin-left: auto; }


}
        /* ── Modal de sugestões ────────────────────────────────────────── */
        .sg-overlay {
            position: fixed;
            inset: 0;
            z-index: 2000;
            background: rgba(15, 9, 26, .55);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            overflow-y: auto;
        }
        .sg-overlay[hidden] { display: none; }
        .sg-modal {
            position: relative;
            width: 100%;
            max-width: 460px;
            background: #fff;
            border-radius: 20px;
            padding: 28px 24px 24px;
            box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
            /* Em tela baixa (celular deitado) rolar dentro do modal é melhor
               que estourar a tela. */
            max-height: 92vh;
            overflow-y: auto;
        }
        .sg-fechar {
            position: absolute; top: 10px; right: 14px;
            background: none; border: none; cursor: pointer;
            font-size: 30px; line-height: 1; color: #9CA3AF;
        }
        .sg-fechar:hover { color: var(--dark); }
        .sg-modal h3 { margin: 0 0 6px; font-size: 1.35rem; color: var(--dark); }
        .sg-sub { margin: 0 0 18px; color: var(--gray-600); font-size: .92rem; }
        .sg-campo { display: block; margin-bottom: 14px; }
        .sg-campo > span { display: block; margin-bottom: 6px; font-weight: 600; font-size: .88rem; color: var(--gray-800); }
        .sg-campo > span b { color: #DC2626; }
        .sg-campo > span i { font-weight: 400; color: #9CA3AF; font-style: normal; }
        .sg-campo input, .sg-campo textarea {
            width: 100%;
            border: 1.5px solid #E5E7EB;
            border-radius: 10px;
            padding: 11px 13px;
            font-family: inherit;
            font-size: 1rem;
            color: var(--dark);
            background: #fff;
            transition: border-color .15s ease;
        }
        .sg-campo input:focus, .sg-campo textarea:focus { outline: none; border-color: var(--primary); }
        .sg-campo textarea { resize: vertical; }
        .sg-captcha input { max-width: 130px; }
        .sg-erro, .sg-ok { font-size: .9rem; margin: 4px 0 12px; }
        .sg-erro { color: #DC2626; }
        .sg-ok { color: #059669; font-weight: 600; }
        .sg-erro[hidden], .sg-ok[hidden] { display: none; }
        .sg-enviar { width: 100%; justify-content: center; gap: 10px; }
        .sg-enviar[disabled] { opacity: .7; cursor: default; }
        /* Roda dentro do botão enquanto salva: o clique tem que dar sinal
           imediato, senão a pessoa aperta de novo achando que não pegou. */
        .sg-spinner {
            width: 17px; height: 17px;
            border: 2.5px solid rgba(255, 255, 255, .4);
            border-top-color: #fff;
            border-radius: 50%;
            animation: sgGirar .7s linear infinite;
        }
        .sg-spinner[hidden] { display: none; }
        @keyframes sgGirar { to { transform: rotate(360deg); } }


@media(max-width:1080px){.site-header .nav-menu{gap:0;padding:8px 0;max-height:calc(100dvh - 95px);overflow-y:auto}}
@media(max-width:640px){.site-header,.site-header.scrolled{--header-h:64px}.site-header .container{padding:0 16px}.site-header .logo{font-size:1.35rem}.site-header .nav-cta{padding:9px 13px;font-size:.84rem}.resources-page{padding-top:64px}}
