/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Variables */
    --primary-black: #000000;
    --primary-white: #ffffff;
    --accent-red: #ff6b6b;
    --accent-green: #33ff99;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    
    /* Spacing Variables */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Typography Variables */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    
    /* Breakpoints */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(255, 255, 255, 0.1);
    --shadow-glow-lg: 0 0 40px rgba(255, 255, 255, 0.2);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--primary-black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== GRUNGE TEXTURE OVERLAY ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter></defs><rect width="100" height="100" filter="url(%23noise)" opacity="0.1"/></svg>');
    opacity: 0.3;
    pointer-events: none;
    z-index: 2;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--spacing-2xl) 0 8rem 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/bg.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: scroll;
    filter: brightness(1) contrast(1) saturate(1);
    mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(0,0,0,0.8) 80%,
        rgba(0,0,0,1) 100%
    );
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    z-index: 10;
    position: relative;
    width: 100%;
}

.hero-main {
    text-align: center;
}

.hero-logo {
    margin: var(--spacing-xl) 0;
    display: flex;
    justify-content: center;
}

.hero-logo img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(var(--shadow-glow));
    transition: transform 0.3s ease;
}

.hero-logo img:hover {
    transform: scale(1.02);
}

.hero-headline {
    font-size: var(--font-size-6xl);
    font-weight: 900;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 
        0 0 20px rgba(255,255,255,0.3),
        0 0 40px rgba(255,255,255,0.1);
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 20px rgba(255,255,255,0.3), 0 0 40px rgba(255,255,255,0.1); }
    100% { text-shadow: 0 0 30px rgba(255,255,255,0.5), 0 0 60px rgba(255,255,255,0.2); }
}

.hero-subheadline {
    font-size: var(--font-size-2xl);
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    line-height: 1.4;
    color: var(--text-secondary);
}

/* ===== VIDEO CONTAINER ===== */
.video-container {
    margin: var(--spacing-2xl) 0;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.video-container video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    filter: drop-shadow(var(--shadow-glow));
    object-fit: contain;
    transition: transform 0.3s ease;
}

.video-container video:hover {
    transform: scale(1.01);
}

/* ===== CTA BUTTONS ===== */
.cta-button {
    background: linear-gradient(135deg, var(--primary-white) 0%, #f0f0f0 100%);
    color: var(--primary-black);
    border: 2px solid var(--primary-white);
    padding: var(--spacing-lg) var(--spacing-3xl);
    font-size: var(--font-size-xl);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        var(--shadow-lg),
        var(--shadow-glow),
        inset 0 1px 0 rgba(255,255,255,0.5);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    font-family: var(--font-family);
    display: inline-block;
    text-decoration: none;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        var(--shadow-xl),
        var(--shadow-glow-lg),
        inset 0 1px 0 rgba(255,255,255,0.5);
    background: linear-gradient(135deg, var(--primary-white) 0%, #e8e8e8 100%);
}

.cta-button:active {
    transform: translateY(-2px) scale(1.02);
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.section-content {
    max-width: 900px;
    margin: 0 auto;
}

.section-header {
    font-size: var(--font-size-5xl);
    font-weight: 900;
    margin-bottom: var(--spacing-xl);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary-white) 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255,255,255,0.3);
}

.text-content {
    font-size: var(--font-size-xl);
    line-height: 1.8;
}

.highlight {
    font-weight: 700;
    color: var(--primary-white);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* ===== BLACKPRINT SECTION ===== */
.blackprint-section {
    background: var(--primary-black);
    position: relative;
    overflow: hidden;
    padding-top: 0;
    margin-top: -6rem;
    transform: translateY(300px);
}

.divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-white), transparent);
    margin: var(--spacing-xl) auto var(--spacing-xl);
    opacity: 0.6;
}

.blackprint-headline {
    font-size: var(--font-size-4xl);
    font-weight: 900;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--primary-white);
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.manifest-text {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
}

.manifest-text p {
    font-size: var(--font-size-xl);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
}

.cta-container {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.blueprint-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
}

/* ===== FAILURE SECTION ===== */
.failure-section {
    background: var(--primary-black);
    position: relative;
    overflow: hidden;
}

.comparison-container {
    position: relative;
    margin: var(--spacing-2xl) 0;
}

.vs-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: var(--font-size-6xl);
    font-weight: 900;
    color: var(--text-primary);
    text-shadow: 
        0 0 80px rgba(255,255,255,0.8),
        0 0 150px rgba(255,255,255,0.4);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: -0.1em;
}

.comparison-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    position: relative;
}

.fail-column {
    background: #1a0000;
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: 15px;
    border: 1px solid rgba(255,77,77,0.3);
    box-shadow: 0 10px 30px rgba(255,77,77,0.1);
}

.win-column {
    background: #001a00;
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: 15px;
    border: 1px solid rgba(51,255,153,0.3);
    box-shadow: 0 10px 30px rgba(51,255,153,0.1);
}

.column-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.fail-column .column-title {
    color: #ff4d4d;
}

.win-column .column-title {
    color: var(--accent-green);
}

.win-column .blackprint-logo {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.win-column .blackprint-logo img {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(51,255,153,0.4));
}

.fail-list, .win-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fail-list li, .win-list li {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-lg);
    position: relative;
}

.fail-list li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #ff4d4d;
    font-weight: bold;
}

.win-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

.fail-list li {
    color: #ff4d4d;
}

.win-list li {
    color: var(--accent-green);
}

.failure-closer {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

.closer-text {
    font-size: var(--font-size-xl);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

.closer-text.highlight {
    color: var(--primary-white);
    font-weight: 700;
    font-size: var(--font-size-2xl);
}

/* ===== VATSLAV SECTION ===== */
.vatslav-section {
    background: var(--primary-black);
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.vatslav-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.vatslav-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    margin-top: var(--spacing-xl);
}

.vatslav-image {
    position: relative;
    z-index: 10;
}

.vatslav-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
    filter: contrast(1.2) brightness(0.9);
    transition: transform 0.3s ease;
}

.vatslav-image img:hover {
    transform: scale(1.02);
}

.vatslav-content {
    position: relative;
    z-index: 10;
}

.vatslav-headline {
    font-size: var(--font-size-4xl);
    font-weight: 900;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--primary-white);
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
    position: relative;
}

.vatslav-headline::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-white), transparent);
    border-radius: 2px;
    opacity: 0.6;
}

.vatslav-text {
    font-size: var(--font-size-xl);
    line-height: 1.8;
    color: var(--text-secondary);
}

.vatslav-text p {
    margin-bottom: var(--spacing-lg);
}

.vatslav-text .highlight {
    color: var(--primary-white);
    font-weight: 700;
    font-size: var(--font-size-xl);
}

.skyline-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.02) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255,255,255,0.02) 50%, transparent 70%);
    background-size: 100px 100px, 150px 150px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

/* ===== CLOSER SECTION ===== */
.closer-section {
    background: var(--primary-black);
    position: relative;
    overflow: hidden;
}

.closer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: var(--spacing-2xl) 0;
}

.closer-accent {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-white), transparent);
    margin: 0 auto var(--spacing-lg);
    border-radius: 2px;
    opacity: 0.6;
}

.closer-headline {
    font-size: var(--font-size-6xl);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--primary-white);
    text-shadow: 
        0 0 30px rgba(255,255,255,0.4),
        0 0 60px rgba(255,255,255,0.2);
    margin-bottom: var(--spacing-xl);
    font-family: var(--font-family);
}

.closer-text {
    font-size: var(--font-size-xl);
    line-height: 2;
    color: #f2f2f2;
    margin-bottom: var(--spacing-xl);
}

.closer-text p {
    margin-bottom: var(--spacing-sm);
}

.closer-text .highlight {
    color: var(--primary-white);
    font-weight: 700;
    font-size: var(--font-size-xl);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--primary-black) 0%, #0a0a0a 100%);
    padding: var(--spacing-xl) 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.footer-logo h3 {
    font-size: var(--font-size-2xl);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.footer-quote p {
    font-style: italic;
    font-size: var(--font-size-lg);
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    color: var(--primary-white);
    transform: translateY(-3px);
}

.social-link i {
    font-size: var(--font-size-xl);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large screens (1024px and up) */
@media (min-width: 1024px) {
    .hero-headline {
        font-size: var(--font-size-6xl);
    }
    
    .section-header {
        font-size: var(--font-size-5xl);
    }
}

/* Medium screens (768px to 1023px) */
@media (max-width: 1023px) {
    .hero-headline {
        font-size: var(--font-size-5xl);
    }
    
    .section-header {
        font-size: var(--font-size-4xl);
    }
    
    .comparison-columns {
        gap: 4rem;
    }
    
    .vatslav-container {
        gap: var(--spacing-xl);
    }
}

/* Small screens (768px and down) */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding: var(--spacing-lg) 0;
    }
    
    .hero-headline {
        font-size: var(--font-size-4xl);
        line-height: 1.1;
    }
    
    .hero-subheadline {
        font-size: var(--font-size-xl);
    }
    
    .section-header {
        font-size: var(--font-size-3xl);
    }
    
    .blackprint-section {
        transform: translateY(0);
        margin-top: var(--spacing-lg);
        padding-top: var(--spacing-2xl);
    }
    
    .comparison-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    
    .vs-element {
        order: 2;
        position: relative;
        top: auto;
        left: auto;
        margin: var(--spacing-lg) auto;
        transform: none;
        font-size: var(--font-size-4xl);
        letter-spacing: -0.1em;
        text-align: center;
        width: 100%;
    }
    
    .comparison-columns {
        display: contents;
    }
    
    .fail-column {
        margin: 0 auto;
        max-width: 90%;
        order: 1;
        margin-bottom: 0;
    }
    
    .win-column {
        margin: 0 auto;
        max-width: 90%;
        order: 3;
        margin-top: 0;
    }
    
    .vatslav-container {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg);
        align-items: center;
    }
    
    .vatslav-image {
        order: 1;
        width: 100%;
        max-width: 400px;
    }
    
    .vatslav-content {
        order: 2;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-button {
        padding: var(--spacing-md) var(--spacing-xl);
        font-size: var(--font-size-lg);
    }
}

/* Extra small screens (480px and down) */
@media (max-width: 480px) {
    .hero-headline {
        font-size: var(--font-size-3xl);
        line-height: 1.1;
    }
    
    .hero-subheadline {
        font-size: var(--font-size-lg);
    }
    
    .section-header {
        font-size: var(--font-size-2xl);
    }
    
    .blackprint-headline {
        font-size: var(--font-size-3xl);
    }
    
    .vatslav-headline {
        font-size: var(--font-size-3xl);
    }
    
    .closer-headline {
        font-size: var(--font-size-4xl);
    }
    
    .cta-button {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-base);
    }
    
    .video-container {
        margin: var(--spacing-lg) 0;
    }
    
    .video-container video {
        max-height: 50vh;
    }
}

/* Very small screens (360px and down) */
@media (max-width: 360px) {
    .hero-headline {
        font-size: var(--font-size-2xl);
    }
    
    .section-header {
        font-size: var(--font-size-xl);
    }
    
    .cta-button {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-headline {
        animation: none;
    }
}

/* Focus styles for better accessibility */
.cta-button:focus,
.social-link:focus {
    outline: 2px solid var(--primary-white);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-headline,
    .section-header,
    .blackprint-headline,
    .vatslav-headline,
    .closer-headline {
        text-shadow: none;
    }
    
    .cta-button {
        border-width: 3px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .hero-background,
    .hero-overlay,
    .blueprint-pattern,
    .skyline-overlay {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .cta-button {
        background: white;
        color: black;
        border: 2px solid black;
    }
}