/* Color Palette */
:root {
    --bg-color: #050505;
    --text-primary: #FFFFFF;
    --accent-yellow: #FFD700;
    --accent-hover: #e5c100;
    --alert-red: #cc0000;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('assets/computador.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header */
.header {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem; /* Reduced from 3rem */
    animation: fadeIn 1s ease-out forwards;
}

.logo {
    max-width: 160px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

/* Headlines */
.headlines {
    text-align: center;
    margin-bottom: 2rem; /* Reduced from 3rem */
    animation: fadeUp 1s ease-out 0.2s forwards;
    opacity: 0; /* Starter state for animation */
    max-width: 800px;
}

.pre-headline {
    color: #fff;
    background: linear-gradient(90deg, #cc0000, #ff2a2a);
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.25);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    animation: attention-pulse 2.5s infinite ease-in-out;
}

@keyframes attention-pulse {
    0% { transform: scale(1); filter: brightness(100%); }
    50% { transform: scale(1.03); filter: brightness(115%); box-shadow: 0 12px 30px rgba(255,0,0,0.4); }
    100% { transform: scale(1); filter: brightness(100%); }
}

.headline {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.highlight {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 2px 10px rgba(255, 215, 0, 0.3));
}

/* Video Section */
.video-section {
    width: 100%;
    max-width: 420px; /* Refined width for vertical video (9:16) */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeUp 1s ease-out 0.4s forwards;
    opacity: 0;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 24px; /* Much softer corners for modern look */
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.05); /* Deep soft shadow */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Glassmorphism border */
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px); /* Frosted glass base if video isn't pure full width */
    cursor: pointer;
    aspect-ratio: 9/16;
}

/* Disable pointer events on the video to prevent native controls via right click or double click */
#vslVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; 
    border-radius: 24px;
}

/* Progress Bar */
.progress-bar-container {
    position: absolute;
    bottom: 0px; 
    left: 0;
    width: 100%;
    height: 4px; /* Thinner, more elegant */
    background: rgba(255, 255, 255, 0.1);
    z-index: 20;
    pointer-events: none; 
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-yellow), #FFA500);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    transition: width 0.1s linear;
}

/* Overlays (Glassmorphism) */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px); /* The magic glass effect */
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 0.4s ease;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Initial Play Button */
.play-button {
    width: 90px;
    height: 90px;
    background: rgba(255, 215, 0, 0.15); /* Glass play button base */
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(12px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 215, 0, 0.2);
    animation: glass-pulse 2.5s infinite;
    transition: transform 0.3s ease, background 0.3s ease;
}

.play-button svg {
    width: 45px;
    height: 45px;
    margin-left: 2px; /* Adjusted for perfect visual centering */
}

.video-container:hover .play-button {
    transform: scale(1.05);
    background: rgba(255, 215, 0, 0.25);
}

#playOverlay p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

@keyframes glass-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* Pause Overlay */
.pause-message {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 16px;
    max-width: 85%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
}

.warning-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(204, 0, 0, 0.5));
}

.pause-message h2 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.pause-message p {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.resume-btn {
    background: linear-gradient(90deg, #cc0000, #ff0000);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 50px; /* Pill shape for modern look */
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(204, 0, 0, 0.4);
    transition: all 0.3s ease;
    width: 100%;
}

.resume-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(204, 0, 0, 0.6);
    background: linear-gradient(90deg, #ff0000, #ff3333);
}

.sound-on {
    margin-top: 1.5rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* CTA Section */
.cta-section {
    margin-top: 3rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
    transition: opacity 1s ease-in;
}

.cta-section.hidden {
    display: none;
    opacity: 0;
}

.cta-button {
    position: relative;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border-radius: 8px;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    max-width: 600px;
    transition: transform 0.2s, box-shadow 0.3s;
    display: inline-block;
    z-index: 1;
    border: none;
}

.cta-button::before,
.cta-button::after {
    content: '';
    position: absolute;
    left: -2px;
    top: -2px;
    border-radius: 10px;
    background: linear-gradient(90deg, 
        #000000,
        var(--accent-yellow), 
        #000000, 
        var(--accent-yellow), 
        #000000
    );
    background-size: 200% 100%;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    z-index: -1;
    animation: smooth-loop 30s linear infinite; /* perfectly seamless loop */
}

.cta-button::after {
    filter: blur(20px);
    opacity: 0.7;
}

@keyframes smooth-loop {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(255, 215, 0, 0.3);
}

.secure-checkout {
    margin-top: 1rem;
    color: #aaa;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Layout Adjustments for Modern Design */
@media (max-width: 768px) {
    body {
        background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('assets/celular.png') !important;
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat;
    }
    
    .container {
        padding: 2rem 1rem;
    }

    .headline {
        font-size: 1.5rem; /* Reduced from 1.8rem */
        line-height: 1.2;
    }
    
    .pre-headline {
        font-size: 0.75rem; /* Slightly smaller */
        padding: 0.4rem 0.8rem; /* Tighter padding */
        margin-bottom: 1rem;
    }

    .headlines {
        margin-bottom: 1.5rem;
    }

    .video-section {
        max-width: 320px; /* Slightly smaller video on mobile to save vertical space */
    }

    .pause-message h2 {
        font-size: 1.4rem;
    }

    .pause-message {
        padding: 1.5rem 1rem;
    }

    .cta-button {
        font-size: 1.2rem;
        padding: 1rem 1.5rem;
        width: 100%;
    }
}
