:root {
    --bg-color: #030303;
    --text-color: #ffffff;
    --accent-red: #cc0000;
    --font-text: 'Montserrat', sans-serif;
    --font-display: 'Syncopate', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, .logo, .logo-huge {
    font-family: var(--font-display);
}

/* Loader */
.loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #000; z-index: 9999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: opacity 0.8s ease-out;
    padding: 0 20px; box-sizing: border-box;
}
.loader-text { font-size: 2.2rem; font-weight: bold; letter-spacing: 0.3rem; text-align: center; line-height: 1.2; }
.loader-text span { font-size: 0.9rem; color: #888; display: block; margin-top: 15px; font-family: var(--font-text); letter-spacing: 0.1rem; }

/* UI Overlay */
.ui-overlay {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 30px 5vw; display: flex; justify-content: space-between;
    z-index: 100; mix-blend-mode: difference;
}
.logo { font-weight: bold; letter-spacing: 2px; font-size: 1.5rem; }
.sound-toggle {
    background: transparent; border: 1px solid var(--text-color); font-family: var(--font-text);
    color: var(--text-color); padding: 8px 20px; border-radius: 20px;
    cursor: pointer; font-size: 0.8rem; letter-spacing: 1px;
}
.sound-toggle.active {
    border-color: var(--accent-red); color: var(--accent-red);
    box-shadow: 0 0 15px rgba(204, 0, 0, 0.4);
}

/* =========================================
   PALCO IMERSIVO AUTOMÁTICO
   ========================================= */
.immersive-stage {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Fundo: O Carro */
.car-stage {
    position: absolute; top: 0; left: 0; width: 100vw; height: 100vh;
    display: flex; justify-content: center; align-items: center; z-index: 1;
}
.hero-car-img {
    width: 100vw; height: 100vh;
    object-fit: cover;
    filter: brightness(0.1);
    transition: filter 1.2s ease-in-out;
}

/* Frases Iniciais de Abertura */
.intro-text-group {
    position: absolute; z-index: 5;
    text-align: center; width: 100%; padding: 0 5vw;
}
.fade-text {
    font-size: 2.2vw; font-weight: 300; opacity: 0; margin-bottom: 20px; 
    line-height: 1.4; text-transform: uppercase; letter-spacing: 2px;
}

/* Especificações Dinâmicas (Sem Glass, Tipografia Pura e Limpa) */
.specs-display-container {
    position: absolute; bottom: 10vh; z-index: 5;
    text-align: center; width: 100%; padding: 0 5vw;
    pointer-events: none;
}
.spec-category {
    display: inline-block; font-size: 1.85rem; font-weight: 700;
    color: var(--accent-red); letter-spacing: 5px; text-transform: uppercase;
    margin-bottom: 10px; font-style: italic;
}
.spec-title {
    font-size: 3rem; font-weight: 900; text-transform: uppercase;
    letter-spacing: 3px; margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.9);
}
.spec-description {
    font-size: 1.1rem; color: #ddd; font-weight: 300;
    letter-spacing: 1px; max-width: 600px; margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

/* Cena Final */
.scene-finale {
    position: relative; width: 100vw; height: 100vh;
    background: #000; z-index: 10;
    display: flex; justify-content: center; align-items: center; text-align: center;
}
.logo-huge { font-size: 8vw; font-weight: 700; letter-spacing: 4px; margin-bottom: 10px;}
.finale-content h3 { font-size: 1.5vw; color: #888; margin-bottom: 30px; font-weight: 400; text-transform: uppercase; letter-spacing: 3px;}
.finale-content p { font-size: 1.2rem; margin-bottom: 40px;}
.cta-group { margin-top: 40px; display: flex; gap: 20px; justify-content: center; }
button { padding: 15px 40px; font-size: 0.9rem; font-weight: 700; cursor: pointer; letter-spacing: 2px; transition: all 0.3s; border-radius: 4px; font-family: var(--font-text);}
.btn-primary { background: #fff; color: #000; border: none; }
.btn-primary:hover { background: var(--accent-red); color: #fff; }

.footer-container { margin-top: 60px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.footer-line { width: 80%; max-width: 600px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); margin-bottom: 25px; }
.footer-logo img { height: 80px; width: auto; opacity: 0.7; }

/* =========================================
   GALERIA DE REVELAÇÃO POR ROLAGEM
   ========================================= */
.scene-gallery {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    z-index: 5;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Espaço elegante entre uma imagem e outra */
    width: 100%;
    max-width: 800px; /* Mantém as imagens compactas no desktop */
    align-items: center;
}

.gallery-item {
    width: 100%;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    max-height: 400px; /* Trava a altura para não ficar gigante e arrastar muito a tela */
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    margin-bottom: 12px;
}

.gallery-item p {
    font-size: 0.9rem;
    color: #aaa;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: var(--font-text);
}

/* Estado inicial da animação de scroll (invisível e levemente abaixo) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
}


/* Responsivo para Celular */
@media (max-width: 768px) {
    .hero-car-img { object-fit: contain !important; max-height: 70vh !important; }
    .fade-text { font-size: 4.5vw !important; }
    .spec-title { font-size: 1.8rem !important; }
    .spec-description { font-size: 0.9rem !important; }
    .logo-huge { font-size: 12vw; }
    .finale-content h3 { font-size: 3vw; }
    .finale-content p { font-size: 0.95rem; padding: 0 15px; }
    .cta-group { padding: 0 8vw; width: 100%; }
    .btn-primary { width: 100%; }
    .scene-gallery {
        padding: 40px 15px;
        min-height: auto;
    }
    .gallery-container {
        gap: 30px;
    }
    .gallery-item img {
        max-height: 250px; /* Altura compacta ideal para telas de celular */
    }
    .gallery-item p {
        font-size: 0.8rem;
    }
    .specs-display-container {
        bottom: 14vh !important; /* Aumentei de 10vh para 14vh para subir o texto e fugir da barra do navegador */
    }
    .immersive-stage {
        padding-bottom: 50px !important; /* Cria um respiro para o conteúdo não colar na borda inferior */
    }
}