#hero {
    padding-top: 10rem;
    /* Aumentado de 8rem para compensar header fixo */
    padding-bottom: 6rem;
    text-align: center;
    background: radial-gradient(circle at 50% 30%, rgba(187, 255, 0, 0.08) 0%, transparent 70%);
    position: relative;
    min-height: 80vh;
    /* Ocupar boa parte da tela */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#hero h1 {
    font-size: var(--font-size-h1);
    /* Fluido */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-accent-green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#hero p {
    font-size: 1.2rem;
    color: var(--color-gray-light);
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.typewriter {
    border-right: 3px solid var(--color-accent-green);
    white-space: normal;
    /* Permitir quebra de linha se necessário */
    overflow: visible;
    /* Evitar corte */
    display: inline;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--color-accent-green);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #hero {
        padding-top: 8rem;
        /* Better spacing */
        min-height: auto;
        padding-bottom: 4rem;
        /* Global Padding Safety is handled by .container in content.css, 
           but we ensure text doesn't touch edges if container is missing */
    }

    #hero h1 {
        font-size: 2.5rem;
        /* Force readable size, ignore clamp if too big */
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }

    #hero p.slogan {
        font-size: 1.1rem !important;
        margin-bottom: 2rem !important;
        padding-inline: 1rem;
    }

    #hero p {
        font-size: 1rem;
        padding-inline: 1rem;
    }

    /* Stack Buttons */
    .hero-ctas {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding-inline: 1rem;
    }

    .hero-ctas .btn {
        width: 100%;
        /* Full width buttons */
        margin-right: 0 !important;
        /* Remove horizontal margin */
        justify-content: center;
    }

    /* Typewriter fix for small screens */
    .typewriter {
        white-space: normal;
        border-right: none;
        animation: none;
        /* Disable animation on mobile to prevent layout quirks */
    }
}