/* --- RESET BÁSICO E CONFIGURAÇÕES GLOBAIS --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Esconde o texto "Menu" do botão hambúrguer, mas o mantém para leitores de tela */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

html {
    scroll-behavior: smooth;
}

body.no-scroll {
    overflow: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb;
    background-image: radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 40%);
    background-repeat: no-repeat;
    color: #333;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ... (O restante do seu CSS que já tínhamos) ... */

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

.navbar {
    background-color: transparent;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo img {
    height: 162px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

/* Oculta o botão hambúrguer em telas grandes */
.mobile-nav-toggle {
    display: none;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

#primary-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

#primary-navigation a {
    text-decoration: none;
    color: #111827;
    font-size: 1.35rem;
    font-weight: 500;
    transition: color 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

#primary-navigation a:hover {
    color: #374151;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

#dark-mode-toggle {
    background: none;
    border: 1px solid #111827;
    color: #111827;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

#dark-mode-toggle:hover {
    color: #374151;
    border-color: #374151;
}

#dark-mode-toggle svg {
    width: 20px;
    height: 20px;
}

.moon-icon { display: none; }

.cta-button {
    background-color: #111827;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #374151;
    transform: scale(1.05);
}

.cta-button.large {
    font-size: 1.1rem;
    padding: 15px 30px;
}

#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    padding-top: 200px;
}

.video-background, .offer-image-wrapper, .level-video-wrapper, .future-video-wrapper, .charity-video-wrapper {
    background-color: #f0f0f0;
}

.video-background video, .offer-image-wrapper img, .level-video-wrapper video, .future-video-wrapper video, .charity-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content { z-index: 1; }
#hero h1 { font-size: 4.5rem; margin-bottom: 1rem; line-height: 1.2; }
#hero .subtitle { font-size: 1.2rem; max-width: 600px; margin: 0 auto 2rem auto; font-weight: 400; }

.content-section {
    padding: 100px 0;
    text-align: center;
    transition: background-color 0.3s ease;
}

.content-section h2 { font-size: 3rem; margin-bottom: 1rem; }
.content-section p { max-width: 700px; margin: 0 auto 1.5rem auto; }

#early-offer, #future {
    background-color: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.offer-layout, .future-layout, .charity-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.offer-content-wrapper, .future-content-wrapper, .charity-content-wrapper {
    flex: 2;
    max-width: 50%;
    padding: 20px;
}

.offer-content-wrapper { text-align: center; }
.offer-content-wrapper h2, .offer-content-wrapper p, .future-content-wrapper h2, .future-content-wrapper p, .charity-content-wrapper h2, .charity-content-wrapper p {
    text-align: left;
    max-width: none;
}

.offer-image-wrapper, .future-video-wrapper, .charity-video-wrapper {
    flex: 1;
    width: 30%;
    padding-top: 30%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rarity-levels {
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;
    gap: 20px;
}

.level {
    border: 1px solid #eee;
    padding: 2rem;
    border-radius: 8px;
    width: 30%;
    background-color: #f0f0f0;
    transition: all 0.3s ease;
}

.level:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.level h3 { font-size: 1.7rem; margin-bottom: 0.5rem; }
.section-cta { margin-top: 3rem; display: inline-block; }
.level-video-wrapper {
    width: 100%;
    padding-top: 100%;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

footer {
    background: #fff;
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid #eee;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-contact { text-align: right; }
.footer-contact h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.footer-contact p { margin: 0; }
.footer-contact p a { color: #333; text-decoration: none; transition: color 0.3s ease; }
.footer-contact p a:hover { color: #a855f7; }
.footer-socials { margin-top: 1rem; }
.footer-socials a { margin-left: 15px; color: #333; }
.footer-socials a:hover { color: #a855f7; }
.footer-socials svg { width: 24px; height: 24px; fill: currentColor; }

.social-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: 500;
    color: inherit;
    transition: color 0.3s ease;
}

.social-link:hover { color: #a855f7; }
.social-link svg { width: 1em; height: 1em; margin: 0 0.25em; transform: translateY(-1px); }

.content-section, .level, .offer-image-wrapper, .future-video-wrapper, .charity-video-wrapper, .offer-content-wrapper, .future-content-wrapper, .charity-content-wrapper {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.content-section.is-visible, .level.is-visible, .offer-image-wrapper.is-visible, .future-video-wrapper.is-visible, .charity-video-wrapper.is-visible, .offer-content-wrapper.is-visible, .future-content-wrapper.is-visible, .charity-content-wrapper.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
--- DARK MODE STYLES ---
================================ */
body.dark-mode {
    background-color: #121212;
    background-image: none;
    color: #e0e0e0;
}

body.dark-mode .moon-icon { display: block; }
body.dark-mode .sun-icon { display: none; }
body.dark-mode #dark-mode-toggle {
    color: #ffffff;
    border-color: #ffffff;
}
body.dark-mode #dark-mode-toggle:hover {
    color: #cccccc;
    border-color: #cccccc;
}
body.dark-mode #primary-navigation a {
    color: #ffffff;
}
body.dark-mode #primary-navigation a:hover {
    color: #cccccc;
}
body.dark-mode #early-offer, body.dark-mode #future {
    background-color: #1c1c1c;
    border-color: #2c2c2c;
}
body.dark-mode .level {
    background-color: #2a2a2a;
    border-color: #444;
}
body.dark-mode .level:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
body.dark-mode .offer-image-wrapper, body.dark-mode .future-video-wrapper, body.dark-mode .charity-video-wrapper {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: #1c1c1c;
}
body.dark-mode .level-video-wrapper {
    background-color: transparent;
}
body.dark-mode footer {
    background-color: #1c1c1c;
    border-color: #2c2c2c;
}
body.dark-mode .footer-contact p a, body.dark-mode .footer-socials a, body.dark-mode .social-link {
    color: #e0e0e0;
}

/* ================================
--- MEDIA QUERIES (ESTILOS PARA CELULAR) ---
================================ */
@media (max-width: 768px) {
    /* AJUSTES GERAIS */
    .container {
        padding: 0 20px;
    }

    /* CABEÇALHO E MENU HAMBÚRGUER */
    .navbar .logo img {
        height: 80px; /* Logo menor no celular */
        position: relative;
        z-index: 1001; /* Garante que o logo fique sobre o menu aberto */
    }

    .nav-wrapper {
        position: fixed;
        inset: 0 0 0 30%; /* Posição do menu: do topo à base, da direita até 30% da tela */
        flex-direction: column;
        padding: min(20vh, 10rem) 2em;
        gap: 2em;
        background: hsl(0 0% 10% / 0.9);
        backdrop-filter: blur(1rem);
        transform: translateX(100%);
        transition: transform 350ms ease-out;
    }

    .nav-wrapper[data-visible="true"] {
        transform: translateX(0%);
    }

    #primary-navigation ul {
        flex-direction: column;
        gap: 2em;
    }

    #primary-navigation a {
        font-size: 1.5rem;
        color: #fff;
    }

    .header-controls {
        flex-direction: column;
        gap: 2em;
    }

    .mobile-nav-toggle {
        display: block;
        position: absolute;
        z-index: 9999;
        background-color: transparent;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb(255, 255, 255)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        width: 2rem;
        aspect-ratio: 1;
        top: 2rem;
        right: 2rem;
        border: 0;
        cursor: pointer;
    }

    .mobile-nav-toggle[aria-expanded="true"] {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb(255, 255, 255)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M24 6L6 24'/%3e%3c/svg%3e");
    }
    
    body.dark-mode .mobile-nav-toggle {
        /* Garante que o ícone fique branco também no dark mode */
        filter: brightness(0) invert(1);
    }


    /* AJUSTES DE CONTEÚDO */
    #hero {
        padding-top: 120px;
    }
    #hero h1 { font-size: 2.5rem; }
    #hero .subtitle { font-size: 1rem; }
    .content-section h2 { font-size: 2.2rem; }

    .offer-layout, .future-layout, .charity-layout, .rarity-levels {
        flex-direction: column; /* Coloca os itens um em cima do outro */
        gap: 40px;
    }

    .offer-content-wrapper, .future-content-wrapper, .charity-content-wrapper {
        max-width: 100%;
        text-align: center;
    }
    .offer-content-wrapper h2, .offer-content-wrapper p, .future-content-wrapper h2, .future-content-wrapper p, .charity-content-wrapper h2, .charity-content-wrapper p {
        text-align: center;
    }

    .offer-image-wrapper, .future-video-wrapper, .charity-video-wrapper {
        width: 80%;
        padding-top: 80%;
    }
    
    /* Reverte a ordem no layout da charity */
    .charity-layout {
        flex-direction: column-reverse;
    }

    .level {
        width: 80%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    .footer-contact {
        text-align: center;
    }
}