/* 1. Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0b0c10;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    -webkit-font-smoothing: antialiased;
}

/* 2. Header Styles */
.site-header {
    width: 100%;
    height: 90px; 
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}

.header-logo-wrapper {
    display: flex;
    align-items: center;
    width: 75px; /* 50% width reduction */
    height: 38px; /* 50% height reduction */
    margin-top: 10px; /* Added 10px of space above the logo */
}

.header-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
}



.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    margin-left: 20px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

/* 3. Main Layout Column */
.main-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 4. Movie Poster Element */
.poster-wrapper {
    width: 80%;
    max-width: 320px;
    margin-bottom: 24px;
}

.movie-poster {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* 5. Typography Hierarchy */
.movie-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.movie-tagline {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* 6. Email Capture Form Layout (Stacked on Mobile) */
.form-wrapper {
    width: 100%;
    max-width: 480px; /* Optimized block constraints */
    margin: 0 auto;
}

.email-form {
    width: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Clean layout break on mobile */
    width: 100%;
}

.email-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.email-input:focus {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.submit-button {
    width: 100%;
    height: 50px;
    background-color: #ffffff;
    color: #0b0c10;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.submit-button:hover {
    background-color: #e5e5e5;
    transform: translateY(-1px);
}

.submit-button:active {
    transform: translateY(0);
}

/* 7. Footer Credits Block */
.site-footer {
    width: 100%;
    padding: 40px 24px;
    text-align: center;
}

.billing-block {
    font-size: 14px; /* Increased from 12px for better readability */
    font-weight: 500;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8); /* Brighter white so the date pops */
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* 8. Desktop Responsive Layout Rules */
@media (min-width: 768px) {
    .site-header {
        height: 80px;
    }

    .poster-wrapper {
        max-width: 450px;
        margin-top: 40px;
        margin-bottom: 32px;
    }

    .movie-title {
        font-size: 48px;
        letter-spacing: 2px;
        margin-bottom: 16px;
    }

.movie-tagline {
    font-size: 16px; 
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    max-width: 540px; /* Widened slightly so the text breaks naturally across 2-3 lines */
    margin-bottom: 32px; 
    line-height: 1.6; /* Increased line-height for easier reading */
    letter-spacing: 0.5px;
}

.movie-tagline strong {
    font-weight: 700;
    color: #ffffff; /* Makes the "You." pop at the end */
}

@media (min-width: 768px) {
    .movie-tagline {
        font-size: 20px; /* Crisp, readable scale for desktop viewports */
        margin-bottom: 40px;
    }
}


    /* Merges fields horizontally on larger viewports */
    .input-group {
        flex-direction: row;
        gap: 0;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 4px;
        padding: 4px;
        background-color: rgba(255, 255, 255, 0.05);
        transition: border-color 0.2s ease;
    }

    /* Highlights entire outline block when editing field */
    .input-group:focus-within {
        border-color: #ffffff;
    }

    .email-input {
        border: none;
        background: transparent;
        height: 46px;
    }

    .email-input:focus {
        background: transparent;
    }

    .submit-button {
        width: 160px;
        height: 46px;
        flex-shrink: 0;
    }
}
