html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overscroll-behavior-x: none;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    width: 100%;
    background-color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #e0e0e0;
}

.image-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ======================================================= */
/* --- ESTILOS DO HEADER --- */
/* ======================================================= */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    padding: 1rem 0;
    box-sizing: border-box;
    transition: padding 0.3s ease;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 50px;
    transition: padding 0.3s ease;
}

.header-logo {
    height: 40px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.header-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.header-nav a {
    color: #ccc;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}
.header-nav a:hover { color: #fff; }
.header-nav span { color: #555; }


/* ======================================================= */
/* --- ESTILOS PADRÃO (DESKTOP) --- */
/* ======================================================= */

.efx-background-image {
    position: absolute; width: 110vw; height: auto; min-height: 110vh;
    top: -5vh; left: -5vw; z-index: 1; pointer-events: none; user-select: none;
}

.main-image {
    position: relative; z-index: 2; width: 100%; height: auto;
    min-height: 100vh; display: block; pointer-events: none;
    user-select: none; background-color: transparent;
}
.mobile-image { display: none; }

.acesse-agora {
    position: absolute; background: #f5e5c1; color: #222;
    font-family: 'Montserrat', Arial, sans-serif; font-weight: 900;
    border: none; border-radius: 12px; font-size: 1.2vw;
    padding: 1.0vw 3.9vw; letter-spacing: 0.08em;
    box-shadow: 0 2px 12px #0002; cursor: pointer; z-index: 10;
    opacity: 0.96; transition: box-shadow 0.2s, transform 0.1s;
}
.acesse-agora:hover {
    box-shadow: 0 8px 28px #fed60169;
    transform: scale(1.03);
}
.acesse-agora.hero { top: 40.9vw; left: 5vw; }
.acesse-agora.resultado { top: 101vw; left: 65vw; }
.acesse-agora.cta-final { top: 243vw; left: 53vw; }
.acesse-agora.cta-anterior { top: 201vw; left: 40vw; }
.acesse-agora.extra { top: 290vw; left: 8vw; }

@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.carousel-container {
    position: absolute; top: 167vw; left: 0; width: 100%;
    overflow: hidden; z-index: 5;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 2vw 0;
}
.carousel-track { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.carousel-link { display: block; text-decoration: none; cursor: pointer; }
.carousel-item { flex-shrink: 0; margin: 0 1vw; position: relative; }
.carousel-item img { height: 22vw; object-fit: contain; border-radius: 12px; transition: transform 0.3s ease; display: block; }
.carousel-link:hover .carousel-item img { transform: scale(1.15); }

.mac-image { position: absolute; top: 20vw; left: 45vw; width: 52vw; height: auto; z-index: 15; pointer-events: none; user-select: none; }
.xadrez-image { position: absolute; top: 258vw; left: 89vw; width: 25vw; height: auto; z-index: 5; pointer-events: none; user-select: none; }
.luz-image { position: absolute; top: 271vw; left: 50vw; width: 25vw; height: auto; z-index: 6; pointer-events: none; user-select: none; opacity: 0.9; transform: scale(0.04); transform-origin: center center; }

.video-container-youtube {
    position: absolute; top: 220vw; left: 8vw; width: 40vw;
    z-index: 10; border-radius: 15px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.video-container-youtube iframe { width: 100%; height: 100%; aspect-ratio: 16 / 9; }

.social-icons-container {
    position: absolute; top: 320vw; left: 50%;
    transform: translateX(-50%); display: flex;
    align-items: center; justify-content: center; gap: 2.5vw;
    z-index: 15;
}
.social-icons-container a {
    display: inline-block; color: #fff; font-size: 2vw; opacity: 0.7;
    transition: transform 0.2s ease-out, color 0.2s ease-out, opacity 0.2s ease-out;
}
.social-icons-container a:hover { transform: scale(1.2); color: #f5e5c1; opacity: 1; }

/* ======================================================= */
/* --- RESPONSIVIDADE (MOBILE) --- */
/* ======================================================= */
@media (max-width: 768px) {

    .parallax-element {
        transform: none !important;
    }

    .site-header { padding: 0.5rem 0; }
    .header-content { padding: 0 1rem; }
    .header-logo { height: 30px; }
    .header-nav a { font-size: 0.75rem; margin: 0 0.5rem; }

    .desktop-image { display: none; }
    .mobile-image { display: block; }

    .mac-image {
         top: 90vw;
         left: 10vw;
         width: 80vw;
    }
    
    .xadrez-image {
        top: 810vw;
        left: auto;
        right: 2vw;
        width: 35vw;
    }

    .luz-image {
        top: 790vw;
        left: 50%;
        width: 90vw;
        opacity: 0.6;
        transform: translateX(-50%) scale(0.6); 
        transform-origin: center center;
        z-index: 6;
    }

    /* --- POSIÇÕES DOS BOTÕES "ACESSE AGORA" PARA MOBILE (REVERTIDO) --- */
    .acesse-agora {
        font-size: 3.5vw;
        padding: 3vw 8vw;
        border-radius: 8px;
        box-sizing: border-box;
        text-align: center;
        /* A propriedade `transform` aqui permite que `left` posicione o centro do botão */
        transform: translateX(-50%);
        width: auto; /* Largura se ajusta ao texto */
        white-space: nowrap; /* Impede que o texto quebre */
    }

    /* Posições restauradas para os valores exatos do seu CSS original */
    .acesse-agora.hero { top: 72vw; left: 50vw; }
    .acesse-agora.resultado { top: 276vw; left: 50vw; }
    .acesse-agora.cta-final { top: 620vw; left: 47vw; }
    .acesse-agora.cta-anterior { top: 783vw; left: 47vw; }
    .acesse-agora.extra { top: 842vw; left: 25vw; }


    .carousel-container {
        top: 565vw;
        width: 100%;
    }
    .carousel-item img {
        height: 35vw;
    }

    .video-container-youtube {
        width: 90vw;
        left: 5vw;
        top: 675vw;
        transform: none;
    }

    .social-icons-container {
        top: 890vw;
        gap: 8vw;
    }
    .social-icons-container a {
        font-size: 6vw;
    }
}