body {
    margin: 0;
    font-family: sans-serif;
    color: #fff;
    background: linear-gradient(45deg, #1a1a2e, #16213e, #0f3460);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    font-display: swap;
}

/* Add flowing animation background */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
    animation: flowingBackground 20s ease infinite;
    z-index: -1;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes flowingBackground {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
        opacity: 0.6;
    }
    33% { 
        transform: rotate(120deg) scale(1.1);
        opacity: 0.8;
    }
    66% { 
        transform: rotate(240deg) scale(0.9);
        opacity: 0.7;
    }
}

.container {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.3); /* Reduced opacity for better blend */
    padding: 40px 20px;
    border-radius: 20px;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 700px; /* Increased to accommodate longer headline */
    min-width: 600px; /* Increased minimum width to prevent shrinking */
    margin: 0 auto;
}

header {
    margin-bottom: 40px;
    /* Add better background for logo visibility */
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    max-width: 200px; /* Increased from 150px */
    height: auto;
    /* Add glow effect for better visibility */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)) 
            drop-shadow(0 0 20px rgba(255, 255, 255, 0.3))
            drop-shadow(0 0 30px rgba(255, 255, 255, 0.2));
    transition: all 0.3s ease;
}

.logo:hover {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.7)) 
            drop-shadow(0 0 25px rgba(255, 255, 255, 0.5))
            drop-shadow(0 0 35px rgba(255, 255, 255, 0.3));
    transform: scale(1.05);
}

/* Add a logo text backup/enhancement */
.logo-text {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8),
                 0 0 10px rgba(255, 255, 255, 0.3);
    margin-top: 10px;
    letter-spacing: 2px;
}

main {
    margin-bottom: 40px;
}

.headline h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    /* Keep text inline and prevent wrapping */
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
}

/* Container for dynamic text to prevent layout shifts */
.dynamic-text-container {
    display: inline-block;
    min-width: 200px; /* Fixed width to prevent shifting */
    text-align: left;
    vertical-align: baseline;
}

#dynamic-text {
    color: #00bfff; /* Example blue color */
    display: inline-block;
    min-width: 180px; /* Ensure consistent width */
    text-align: left;
}

/* Blinking cursor animation */
.cursor {
    display: inline-block;
    background-color: #fff;
    margin-left: 3px;
    width: 3px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.tagline {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.form-container {
    margin-bottom: 30px;
}

#email-input {
    padding: 10px;
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
}

#request-invite-button {
    padding: 10px 20px;
    background-color: #28a745; /* Example green color */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#request-invite-button:hover {
    background-color: #218838;
}

.signup-text {
    font-size: 0.9em;
    margin-bottom: 20px;
}

#thank-you-message {
    font-size: 1.2em;
    color: #28a745;
    font-weight: bold;
}

footer {
    width: 100%;
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.7); /* Darker background for footer */
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.8em;
}

.social-links a {
    color: #fff;
    margin: 0 5px;
    text-decoration: none;
}

/* Basic mobile responsiveness */
@media (max-width: 600px) {
    .container {
        min-width: 320px; /* Smaller minimum width for mobile */
        margin: 10px;
        padding: 30px 15px;
    }

    .headline h1 {
        font-size: 1.4em; /* Smaller to fit on one line */
        line-height: 1.3;
        /* Allow wrapping on very small screens if needed */
        white-space: normal;
        text-align: center;
    }

    /* Adjust dynamic text container for mobile */
    .dynamic-text-container {
        min-width: 100px; /* Much smaller on mobile */
    }

    #dynamic-text {
        min-width: 80px; /* Much smaller on mobile */
    }

    .tagline {
        font-size: 1em;
    }

    /* Improve logo visibility on mobile */
    header {
        padding: 15px;
        margin-bottom: 30px;
    }

    .logo {
        max-width: 150px; /* Slightly smaller on mobile but still prominent */
    }

    .logo-text {
        font-size: 1.2em;
        letter-spacing: 1px;
    }

    .form-container {
        flex-direction: column;
        align-items: center;
    }

    #email-input {
        margin-right: 0;
        margin-bottom: 10px;
        width: 80%; /* Adjust as needed */
    }

    #request-invite-button {
        width: 80%; /* Adjust as needed */
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-content p, .social-links {
        margin-bottom: 10px;
    }
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
#email-input:focus,
#request-invite-button:focus {
    outline: 2px solid #00bfff;
    outline-offset: 2px;
}

/* Improve button accessibility */
#request-invite-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Email link styling */
footer a {
    color: #00bfff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover,
footer a:focus {
    color: #0099cc;
    text-decoration: underline;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .container {
        border: 2px solid #fff;
        background-color: rgba(0, 0, 0, 0.8);
    }
    
    #email-input {
        border: 1px solid #fff;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .container {
        background: white;
        box-shadow: none;
        border: 1px solid black;
    }
    
    .cursor,
    #request-invite-button {
        display: none;
    }
} 