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

html, body {
    height: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    background: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    color: white;
    position: relative;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-video {
        animation: none;
    }
}

/* Skip to main content link (hidden until focused) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    font-weight: 400;
}

.skip-link:focus {
    top: 0;
}

/* Background Video */
.hero-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    -webkit-object-fit: cover;
    object-fit: cover;
    z-index: -2;
}

/* Subtle dark overlay for better text contrast */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.25);
    z-index: -1;
    pointer-events: none;
}

/* Main Content */
.main-content {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
    padding-left: 16%;
    z-index: 1;
}

.content-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 600px;
    width: 100%;
}

/* Logo */
.logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2.5rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

/* Header */
.header {
    font-family: 'Georgia Pro Condensed', 'Georgia', 'Times New Roman', serif;
    font-weight: 300;
    font-stretch: condensed;
    font-size: 2.5rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
    color: white;
}

/* Subheader */
.subheader {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.6;
    letter-spacing: 0.01em;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
    color: white;
    max-width: 500px;
}

/* App Store Icons */
.app-store-icons {
    display: -webkit-flex;
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    width: 100%;
}

.app-store-icon {
    height: 45px;
    width: auto;
    cursor: pointer;
    transition: opacity 0.2s;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    display: block;
    object-fit: contain;
}

.app-store-icon:hover {
    opacity: 0.8;
}

.app-store-link {
    display: inline-block;
    text-decoration: none;
}

.app-store-link:focus {
    outline: 2px solid #9b7ae1;
    outline-offset: 4px;
    border-radius: 6px;
}

/* Release Date */
.release-date {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.75rem;
    letter-spacing: 0.02em;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
    color: white;
}

/* Email Form */
.email-form {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.email-label {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.6;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 12px rgba(0, 0, 0, 0.5);
    color: white;
}

.email-input-wrapper {
    display: -webkit-flex;
    display: flex;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    gap: 0.5rem;
}

.email-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: #333;
    outline: none;
}

.email-input:focus {
    outline: 2px solid #9b7ae1;
    outline-offset: 2px;
    border-radius: 4px;
}

.email-input::placeholder {
    color: #999;
    font-weight: 300;
}

.submit-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-weight: 300;
}

.submit-button:hover {
    background: rgba(0, 0, 0, 0.15);
}

.submit-button:focus {
    outline: 2px solid #9b7ae1;
    outline-offset: 2px;
}

.submit-button:active {
    transform: scale(0.95);
}

/* Sound Toggle */
.sound-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
    -webkit-transition: transform 0.2s, background 0.2s;
    transition: transform 0.2s, background 0.2s;
}

.sound-toggle:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 1);
}

.sound-toggle:focus {
    outline: 3px solid #9b7ae1;
    outline-offset: 3px;
}

.sound-toggle:active {
    transform: scale(0.95);
}

.sound-icon {
    width: 24px;
    height: 24px;
    stroke: #333;
    stroke-width: 2;
    fill: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        background: transparent;
    }
    
    body {
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
        background: transparent;
    }
    
    .hero-video {
        position: fixed;
        top: -env(safe-area-inset-top, 0);
        left: -env(safe-area-inset-left, 0);
        width: calc(100vw + env(safe-area-inset-left, 0) + env(safe-area-inset-right, 0));
        height: calc(100vh + env(safe-area-inset-top, 0) + env(safe-area-inset-bottom, 0));
        min-width: 100vw;
        min-height: 100vh;
        -webkit-object-fit: cover;
        object-fit: cover;
        z-index: -2;
    }
    
    .video-overlay {
        position: fixed;
        top: -env(safe-area-inset-top, 0);
        left: -env(safe-area-inset-left, 0);
        width: calc(100vw + env(safe-area-inset-left, 0) + env(safe-area-inset-right, 0));
        height: calc(100vh + env(safe-area-inset-top, 0) + env(safe-area-inset-bottom, 0));
        min-width: 100vw;
        min-height: 100vh;
        z-index: -1;
    }
    
    .main-content {
        padding: 0;
        padding-top: env(safe-area-inset-top, 0);
        padding-bottom: env(safe-area-inset-bottom, 0);
        padding-left: env(safe-area-inset-left, 0);
        padding-right: env(safe-area-inset-right, 0);
        justify-content: center;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }

    .content-column {
        align-items: center;
        text-align: center;
    }

    .logo {
        width: 80px;
        height: 80px;
        margin-bottom: 2rem;
    }

    .email-form {
        align-items: center;
    }

    .header {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }

    .subheader {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .app-store-icons {
        gap: 0.75rem;
        margin-bottom: 1.75rem;
        justify-content: center;
    }

    .app-store-icon {
        height: 40px;
        width: auto;
    }

    .release-date {
        font-size: 1.1rem;
        margin-bottom: 1.75rem;
    }

    .email-form {
        max-width: 90%;
        width: 90%;
    }

    .email-label {
        font-size: 1rem;
    }

    .sound-toggle {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }

    .sound-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .header {
        font-size: 1.75rem;
    }

    .subheader {
        font-size: 0.95rem;
    }

    .app-store-icon {
        height: 38px;
        width: auto;
    }
}

