@font-face {
    font-family: 'PP Neue Montreal';
    src: url('fonts/PPNeueMontreal-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'PP Neue Montreal';
    src: url('fonts/PPNeueMontreal-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'PP Neue Montreal';
    src: url('fonts/PPNeueMontreal-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PP Neue Montreal', sans-serif;
    font-weight: 300;
}

body {
    background-color: #000;
    color: white;
    /* Allow scrolling for policy pages */
    overflow-x: hidden; 
    overflow-y: auto;
}

.container {
    position: relative;
    min-height: 100vh; /* Changed from fixed height to minimum height */
    width: 100vw;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.content {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#logo {
    width: 100%;
    padding: 0 48px;
    opacity: 0;
    margin-bottom: 48px;
    margin-top: 24px;
    position: fixed; /* Fixed positioning */
    top: 30px; /* Fixed to top with some margin */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center correction */
    z-index: 10; /* Ensure it's above other content */
    visibility: hidden; /* Hide initially, GSAP will control visibility */
}

#tagline {
    font-size: 41px;
    letter-spacing: 0.8px;
    opacity: 0;
    visibility: hidden; /* Hide initially, GSAP will control visibility */
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    top: 80px; /* Move down to compensate for fixed logo */
}

#sub-tagline {
    font-size: 30px;
    letter-spacing: 0.5px;
    margin-top: 24px;
    opacity: 0;
    visibility: hidden; /* Hide initially, GSAP will control visibility */
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    top: 80px; /* Move down to compensate for fixed logo */
}

#email-form {
    opacity: 0;
    visibility: hidden; /* Hide initially, GSAP will control visibility */
    position: relative;
    top: 80px; /* Move down to compensate for fixed logo */
}

/* Remove transitions since GSAP will handle animations */
.hidden {
    display: none;
}

h2 {
    margin-bottom: 20px;
    font-weight: 300;
    font-size: 24px;
    letter-spacing: 1px;
}

#signup-form {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
}

input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: white;
    color: #333;
    border-radius: 4px;
    font-size: 16px;
    transition: box-shadow 0.3s;
}

input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

input.error {
    box-shadow: 0 0 0 2px rgba(241, 92, 19, 0.4);
}

button {
    padding: 12px 25px;
    background: #f15c13;
    background-image: linear-gradient(to right, #f15c13, #f17c43);
    color: #000;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background-position 0.4s;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(241, 92, 19, 0.3);
    position: relative;
    z-index: 1;
}

button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #f17c43, #f15c13, #f17c43);
    background-size: 200% 100%;
    background-position: 100% 0;
    transition: background-position 0.4s ease-in-out;
    z-index: -1;
    border-radius: 5px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(241, 92, 19, 0.5);
}

button:hover:before {
    background-position: 0 0;
}

#status-message {
    margin-top: 15px;
    font-size: 14px;
    height: 20px;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s, transform 0.3s;
}

#status-message.visible {
    opacity: 1;
    transform: translateY(0);
}

#status-message.error {
    color: rgba(255, 120, 120, 0.9);
}

#status-message.success {
    color: rgba(120, 255, 160, 0.9);
}

#thank-you-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0s 0.5s;
    z-index: 100;
    pointer-events: none;
    padding: 20px;
}

#thank-you-message.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s, visibility 0s;
    pointer-events: auto;
}

#thank-you-message h2 {
    font-size: 32px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    text-align: center;
}

#thank-you-message p {
    font-size: 20px;
    max-width: 600px;
    text-align: center;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    line-height: 1.5;
}

#thank-you-message button {
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    padding: 14px 30px;
    font-size: 18px;
    background: #f15c13;
    background-image: linear-gradient(to right, #f15c13, #f17c43);
}

.validation-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
}

.footer {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    font-size: 12px;
    opacity: 0.7;
    letter-spacing: 0.5px;
    z-index: 10;
}

.copyright {
    text-align: left;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    #tagline {
        font-size: 32px;
    }
    
    #sub-tagline {
        font-size: 20px;
    }
    
    #email-form {
    }
    
    .footer {
        bottom: 15px;
        font-size: 10px;
        padding: 0 20px;
    }
    
    .footer-links {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    #tagline {
        font-size: 24px;
        top: 40px;
    }
    
    #sub-tagline {
        font-size: 18px;
        top: 40px;
    }
    
    #email-form {
        top: 40px;
    }
    
    #signup-form {
        flex-direction: column;

    }
    
    .input-wrapper, 
    input {
        width: 100%;
    }
    
    #signup-form button {
        width: 100%;
    }
    
    .footer {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
        bottom: 10px;
    }
    
    .copyright {
        text-align: center;
        font-size: 9px;
        opacity: 0.7;
    }
    
    .footer-links {
        justify-content: center;
        gap: 15px;
        font-size: 9px;
    }
}