/* CSS Variables */
:root {
    --bg-color: #121212;
    --text-color: #f5f5f5;
    --accent-color: #00ff88;
    --cta-color: #ff5722;
    --cta-hover: #ff7043;
    --overlay-bg: rgba(0, 0, 0, 0.7);
    --progress-color: #00ff88;
    --font-family: 'Poppins', sans-serif;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    text-align: center;
}

.container {
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Typography */
h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

h1 .highlight {
    color: var(--accent-color);
}

.sub-headline {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.helper-text {
    font-size: 0.9rem;
    margin-top: 1rem;
    opacity: 0.7;
}

/* Video Section */
.video-section {
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* CSS Simplificado para Debug */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 9 / 16;
    background: #000;
    margin: 0 auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Fallback para navegadores antigos que não suportam aspect-ratio */
@supports not (aspect-ratio: 9 / 16) {
    .video-wrapper {
        padding-bottom: 177.77%;
        height: 0;
    }
}

/* NATIVE PLAYER CLEANU */
#main-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Centraliza removed - using full fill */
    object-fit: cover;
    /* Ajusta o vídeo inteiro na tela */
    display: block;
    z-index: 1;
    background: transparent;
    pointer-events: none;
    /* IMPEDE que o usuário pause tocando no vídeo (crucial para scroll) */
}

/* Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    /* Flex por padrão, JS controla display none */
    justify-content: center;
    align-items: center;
    z-index: 20;
    cursor: pointer;
}

/* Botão 1: ATIVAR SOM (Verde) - Para Autoplay Mudo */
.mute-overlay-btn {
    background: rgba(46, 125, 50, 0.9);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.mute-overlay-btn:hover {
    transform: scale(1.05);
}

.mute-overlay-btn:active {
    transform: scale(0.98);
}

.mute-overlay-btn svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}

.mute-overlay-btn span {
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
}

/* Botão 2: REPRODUZIR (Branco Simples) - Para Pausa */
.native-play-btn {
    width: 70px;
    height: 70px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    padding-left: 4px;
    /* Centralizar triângulo */
}

.native-play-btn svg {
    width: 35px;
    height: 35px;
    fill: #fff;
}

@keyframes gentlePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Progress Bar */
.progress-container {
    width: 100%;
    max-width: 400px;
    /* Igual ao vídeo */
    background: #333;
    height: 5px;
    margin-top: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    background: var(--progress-color);
    height: 100%;
    width: 0%;
    /* Dynamic width */
    transition: width 0.3s linear;
}

/* CTA Overlay */
.cta-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Se quiser cobrir o vídeo todo use height: 100% ou ajuste para bottom: 10% */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    /* Overlay escuro mas transparente */
    /* backdrop-filter removed */
    z-index: 20;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    /* Não bloquear cliques se estiver invisível */
    transition: opacity 1s ease;
}

.cta-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.cta-button {
    display: flex;
    /* Flex para alinhar itens se houver ícone, senão block */
    justify-content: center;
    align-items: center;
    /* Estilo copiado do mute-overlay-btn para consistência */
    background: rgba(46, 125, 50, 0.95);
    /* Verde um pouco mais opaco para CTA */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 16px 32px;
    /* Maior destaque que o botão de som */
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, background-color 0.2s ease;
    width: 100%;
    max-width: 320px;
    text-align: center;
    animation: greenPulse 2s infinite;
}

.cta-button:hover {
    background: rgba(46, 125, 50, 1);
    transform: scale(1.05);
    border-color: #fff;
}

.cta-guarantee {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #ccc;
}

@keyframes greenPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.7);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 15px rgba(46, 125, 50, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0);
    }
}

/* Footer Removido a pedido */
.footer {
    display: none;
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.5rem;
    }

    .cta-button {
        font-size: 1.2rem;
        padding: 15px 25px;
    }
}