@import url('https://api.fontshare.com/v2/css?f[]=clash-display@600&f[]=satoshi@400,500,700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.cinematic-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Increase min-width/height slightly to give room for parallax panning without showing edges */
    min-width: 105%;
    min-height: 105%;
    z-index: 1;
    object-fit: cover;
    /* Smooth out the parallax movement */
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
    z-index: 2;
}

.content-wrapper {
    position: relative;
    z-index: 3;
    text-align: center;
    padding-bottom: 12vh;
    width: 100%;
    max-width: 500px;
    padding-inline: 20px;
}

.hero-title {
    font-family: 'Clash Display', sans-serif;
    font-size: 76px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 22px;
    color: #888888;
    margin-bottom: 2.5rem;
}

.input-group {
    position: relative;
    margin-bottom: 1rem;
}

input[type="email"] {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #444;
    color: #ffffff;
    font-family: 'Satoshi', sans-serif;
    font-weight: 400;
    font-size: 18px;
    padding: 12px 0;
    outline: none;
    transition: border-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

input[type="email"]:focus {
    border-bottom-color: #0055ff;
}

input[type="email"]::placeholder {
    color: #666;
}

.submit-btn {
    width: 100%;
    background-color: #0055ff;
    color: #fff;
    border: none;
    padding: 16px;
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-bottom: 1rem;
}

.submit-btn:hover {
    background-color: #0044cc;
}

.submit-btn:disabled {
    background-color: #333;
    color: #777;
    cursor: not-allowed;
}

.microcopy {
    font-size: 0.75rem;
    color: #555;
    letter-spacing: 0.2px;
}

.hidden {
    display: none !important;
}

.error-text {
    color: #ff3333;
    font-size: 0.8rem;
    position: absolute;
    bottom: -20px;
    left: 0;
}
input.error-border {
    border-bottom-color: #ff3333;
}

@media (max-width: 768px) {
    /* Slightly less padding at the bottom for mobile */
    .content-wrapper { 
        padding-bottom: 8vh; 
        padding-inline: 24px;
    }
    
    /* Make the title fit better on smaller screens */
    .hero-title { 
        font-size: 52px; 
        line-height: 1.1; 
        margin-bottom: 0.75rem; 
    }
    
    /* Increase relative margin for readability */
    .hero-subtitle { 
        font-size: 18px; 
        margin-bottom: 3rem; 
    }
    
    /* Input & Button typography */
    input[type="email"] { 
        font-size: 16px; 
        padding: 14px 0; 
    }
    
    .submit-btn { 
        font-size: 16px; 
        padding: 16px; 
        margin-top: 5px; 
        margin-bottom: 1.25rem; 
    }
    
    .microcopy { 
        font-size: 12px; 
    }

    /* Keep video properly centered but ensure it still covers everything */
    .bg-video {
        min-height: 105vh; 
        top: 45%; 
    }
}
