* {
    margin: 0;
    transition: all ease-out 0.5s;
    font-family: "Encode Sans Semi Expanded", Arial, Helvetica, sans-serif;
}

h1 {
    font-weight: 400;
}

.alternative {
    background-color: rgb(10, 10, 10);
}

footer { 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.container-x {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: 4em;
}

.container-y {
    display: flex;
    flex-wrap: wrap;
    gap: 3em;
}

.container-y div a {
    display: block;
    margin-top: 0.25em;
    transition: color 0.2s ease;
}

.footer-logo {
    width: 14em;
    height: auto;
}

#slogan {
    font-size: small;
    color: rgba(73, 158, 158, 0.459);
}

#home {
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

header {
    /* Fundo transparente por padrão no topo */
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    /* Transição suave ao mudar de estado */
    transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

/* Estado ativado após o scroll */
header.scrolled,
header.menu-open {
    background-color: rgba(8, 8, 8, 0.9);
    border-bottom: 1px solid rgb(35, 39, 41);
    backdrop-filter: blur(8px); /* Opcional: efeito de vidro fosco */
}

nav {
    display: flex;
    gap: 1em;
    font-size: 18px;
}

svg {
    width: 9em;
}

.plan {
    display: flex;
    flex-direction: column;
    background-color: rgb(7, 7, 7);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.075);
    padding: 3em 2em;
    width: 25em;
    min-height: 28em;
    transition: all ease-out 0.5s;
}

/* Botão hambúrguer (só aparece no mobile) */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    width: 44px;   /* área de toque confortável */
    height: 44px;
    padding: 11px 7px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
}

.menu-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    border-radius: 6px;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transform-origin: center;
    transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

/* Vira um "X" quando o menu está aberto */
.menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Impede a página de rolar por trás do menu aberto */
body.menu-lock {
    overflow: hidden;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media all and (max-width: 720px) {

    header {
        display: flex;
        justify-items: center;
    }

    .menu-btn {
        display: flex;
    }

    /* Painel do menu: ocupa a tela inteira abaixo do header */
    nav.nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: calc(100vh - 100%);
        height: calc(100dvh - 100%);
        flex-direction: column;
        gap: 0;
        font-size: 1.5rem;
        overflow-y: auto;
        background-color: rgba(3, 3, 5, 0.97);

        /* fechado */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-0.5rem);
        transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0.3s;
    }

    /* aberto */
    nav.nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    nav.nav-menu a {
        padding: 1.25rem 1.5rem;
        color: #ffffff;
        font-weight: 300;
        border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    }

    nav.nav-menu a:hover,
    nav.nav-menu a:focus-visible {
        background-color: rgba(255, 255, 255, 0.05);
        outline: none;
    }

    #logo {
        display: block;
    }

    svg {
        width: 45vw;
    }
    
    .plan {
        width: 95vw;
    }

    .plans {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2em;
    }

    .container-x {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2em;
    }
}

@media (prefers-reduced-motion: reduce) {
    nav.nav-menu,
    .menu-btn span {
        transition: none;
    }
}