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

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main container when CTA is inside video */
.container:has(.video-container .cta-section) {
    min-height: 100vh;
}

/* Video Container */
.video-container {
    width: 100%;
    height: 100vh; /* fallback */
    height: 100svh; /* account for mobile browser UI */
    min-height: auto;
    position: relative;
    overflow: hidden;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Video Wrapper fills remaining space between headline and CTA */
.video-wrapper {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Attention-grabbing play overlay */
.play-scrim {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.75) 60%, rgba(0,0,0,0.85) 100%);
    z-index: 9;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 32px;
    border-radius: 999px;
    font-size: 1.125rem;
    font-weight: 800;
    color: #000000;
    background: linear-gradient(45deg, #ffcc00, #ffaa00);
    box-shadow: 0 0 0 6px rgba(255, 204, 0, 0.2), 0 10px 30px rgba(255, 170, 0, 0.45);
    border: none;
    cursor: pointer;
    z-index: 10;
    text-shadow: none;
    transition: transform 0.15s ease;
    animation: pulse-glow 1.3s ease-in-out infinite;
}

.play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.04);
}

.play-overlay:active {
    transform: translate(-50%, -50%) scale(0.98);
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 6px rgba(255, 204, 0, 0.22), 0 10px 30px rgba(255, 170, 0, 0.45); }
    50% { box-shadow: 0 0 0 10px rgba(255, 204, 0, 0.16), 0 16px 46px rgba(255, 170, 0, 0.58); }
    100% { box-shadow: 0 0 0 6px rgba(255, 204, 0, 0.22), 0 10px 30px rgba(255, 170, 0, 0.45); }
}

/* Video Headline */
.video-headline {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin: 16px 0 8px 0;
    padding: 0 20px;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fill container; may crop to remove letterboxing */
    display: block;
    background-color: #000000;
}

/* CTA Section */
.cta-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: #000000;
    min-height: auto;
}

/* Utility */

/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: #ffcc00;
    color: #000000;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    text-align: center;
    min-height: 44px;
    min-width: 200px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
    border: 2px solid transparent;
}

.cta-button:hover {
    background-color: #ffaa00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 204, 0, 0.3);
}

/* Bonus Page Styles */
.bonus-page {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
}

.content-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
}

.headline {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffcc00, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #cccccc;
    max-width: 600px;
    line-height: 1.5;
}

.bonus-cta {
    font-size: 1.75rem;
    padding: 1.5rem 4rem;
    min-width: 250px;
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .video-headline {
        font-size: 2rem;
        padding: 0 15px;
        margin: 12px 0 6px 0;
    }
    
    .cta-section {
        padding: 0.75rem 1rem;
    }
    
    .headline {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .description {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    .cta-button {
        font-size: 1.25rem;
        padding: 1rem 2.5rem;
        min-width: 180px;
    }
    
    .bonus-cta {
        font-size: 1.5rem;
        padding: 1.25rem 3rem;
        min-width: 220px;
    }
    
    .cta-section {
        padding: 1.5rem 1rem;
    }
    
    .content-section {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .video-headline {
        font-size: 1.5rem;
        padding: 0 10px;
        margin: 10px 0 4px 0;
    }
    
    .cta-section {
        padding: 0.5rem 1rem;
    }
    
    .cta-button {
        font-size: 1.125rem;
        padding: 0.875rem 2rem;
        min-width: 160px;
    }
    
    .headline {
        font-size: 1.75rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .cta-button {
        font-size: 1.125rem;
        padding: 0.875rem 2rem;
        min-width: 160px;
    }
    
    .bonus-cta {
        font-size: 1.25rem;
        padding: 1rem 2.5rem;
        min-width: 200px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .cta-button {
        transition: none;
    }
    
    .cta-button:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cta-button {
        border: 3px solid #ffffff;
    }
    
    .headline {
        -webkit-text-fill-color: #ffffff;
        color: #ffffff;
    }
}

/* Print styles */
@media print {
    .video-container {
        display: none;
    }
    
    .cta-button {
        background-color: #000000 !important;
        color: #ffffff !important;
        border: 2px solid #ffffff !important;
    }
}
