* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0D1117;
    background-image: radial-gradient(circle at 50% -10%, rgba(191, 90, 242, 0.15), transparent 60%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #E6EDF3;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

#header {
    background-color: #0D1117; 
    padding: 15px 5%; 
    border-bottom: solid 1px #30363D;
    display: grid;
    height: 90px;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
}

.logo {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: #E6EDF3;
    font-size: 2rem;
    letter-spacing: -0.04em;
    display: flex;
    position: relative;
    padding: 8px 16px;
}

@keyframes blink {
    50% { opacity: 0; }
}

.cursor {
    animation: blink 1s step-start infinite;
    color: #E6EDF3;
}

.logo-link {
    text-decoration: none; 
    display: flex;
    align-items: center;
    transition: opacity 0.2s; 
    color: #E6EDF3; 
}

.logo-link:hover {
    opacity: 0.8; 
}

.logo-suffix {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    color: #BF5AF2;
    letter-spacing: 0;
}

#menu {
    background-color: transparent;
    color: #E6EDF3;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

#menu a {
    color: #E6EDF3;
    text-decoration: none;
    margin: 0 15px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    background-color: transparent;
    transition: all 0.2s ease;
}

#menu a:hover {
    color: #58A6FF;
    box-shadow: 0 0 15px rgba(191, 90, 242, 0.4);
    border-radius: 12px;
}  

#menu .menu-item {
    font-weight: 500;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8px 16px;
}

#menu .menu-item.active {
    background-color: #21262d;
    font-weight: 600;
    padding: 14px 24px; 
    border-radius: 12px;
    border: 1px solid #30363D;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(191, 90, 242, 0.1);
}

#header-utils { 
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

#header-utils .btn-login, 
#header-utils .btn-signup {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: transparent;
    padding: 8px 20px;
    font-family: 'JetBrains Mono', monospace;
    border-radius: 12px;
    transition: all 0.3s ease;
}

#header-utils .btn-login {
    color: #8B949E;
    border: solid 1px #30363D;
}

#header-utils .btn-login:hover {
    color: #E6EDF3;
    border-color: #8B949E;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(191, 90, 242, 0.3);
}

#header-utils .btn-signup { 
    background-color: #BF5AF2;
    color: #0D1117;
    border: 1px solid #BF5AF2;
    box-shadow: 0 4px 15px rgba(191, 90, 242, 0.3);
}

#header-utils .btn-signup:hover {
    background-color: #A34ED9;
    border-color: #A34ED9;
    box-shadow: 0 0 20px rgba(191, 90, 242, 0.6);
    transform: translateY(-2px);
}

.main-footer {
    background-color: #0D1117;
    border-top: 1px solid #30363D; 
    padding: 80px 5% 40px 5%;
    margin-top: 100px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand .logo {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-tagline {
    color: #8B949E;
    font-size: 0.9rem;
    max-width: 250px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-column h4 {
    color: #E6EDF3;
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column a {
    display: block;
    color: #8B949E;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #BF5AF2;
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(48, 54, 61, 0.5);
    text-align: center;
}

.footer-bottom p {
    color: #484f58;
    font-size: 0.8rem;
}

/* Ajuste Mobile */
@media (max-width: 800px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-brand, .footer-links {
        justify-content: center;
        align-items: center;
    }
    .footer-tagline {
        margin: 0 auto;
    }
}

/* Celular */
#mobile-btn, .mobile-utils { display: none; }

@media (max-width: 1000px) {
    #header-utils { display: none !important; }

    /* O Botão Hambúrguer Fixo no Topo */
    #mobile-btn {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 32px !important;
        height: 22px !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        cursor: pointer !important;
        z-index: 99999 !important; /* Na frente de tudo */
        position: fixed !important; /* Fixo para não ser arrastado pelo menu */
        top: 35px !important;
        right: 5% !important;
    }

    /* As listras do botão */
    #mobile-btn span {
        display: block !important;
        width: 100% !important;
        height: 2px !important;
        background-color: #E6EDF3 !important;
        transition: all 0.3s ease-in-out !important;
        transform-origin: left center !important; /* Para a animação do X girar do eixo certo */
    }

    /* A animação do 'X' roxo quando o menu abre */
    #mobile-btn.active span:nth-child(1) {
        transform: rotate(45deg) !important;
        background-color: #BF5AF2 !important;
    }
    #mobile-btn.active span:nth-child(2) {
        opacity: 0 !important;
    }
    #mobile-btn.active span:nth-child(3) {
        transform: rotate(-45deg) !important;
        background-color: #BF5AF2 !important;
    }

    /* A Sidebar (Menu) */
    #menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important; /* Escondido por padrão */
        width: 300px !important;
        height: 100vh !important;
        background-color: #0D1117 !important;
        border-left: 1px solid #30363D !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 100px 30px !important;
        z-index: 99998 !important; /* Fica logo abaixo do botão */
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: -15px 0 40px rgba(0,0,0,0.6) !important;
    }

    /* Gatilho que puxa o menu para a tela */
    #menu.active { 
        right: 0 !important; 
    }

    /* Os links dentro do menu */
    #menu a {
        display: block !important;
        color: #E6EDF3 !important;
        font-size: 1.2rem !important;
        margin-bottom: 25px !important;
        font-weight: 500 !important;
        text-decoration: none !important;
    }

   /* =========================================================
       ÁREA DE BOTÕES MOBILE (LOGIN E CADASTRO)
       ========================================================= */
    .mobile-utils {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        margin-top: auto !important; /* Joga os botões para o fundo */
        padding-top: 20px !important;
        border-top: 1px solid #30363D !important;
        width: 100% !important;
    }

    /* Base idêntica para os dois botões não ficarem tortos */
    .mobile-utils a {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
        padding: 12px !important;
        border-radius: 8px !important;
        font-weight: 700 !important;
        margin-bottom: 0 !important;
        text-decoration: none !important;
    }

    /* Botão Secundário (Login) - Ghost Button */
    .mobile-utils .btn-login {
        border: 1px solid #30363D !important;
        color: #8B949E !important;
        background: transparent !important;
    }

    /* Botão Primário de Conversão (Cadastro) - Roxo Brutalista */
    .mobile-utils .btn-signup {
        background: #BF5AF2 !important;
        color: #0D1117 !important;
        border: 1px solid #BF5AF2 !important;
    }
    }