* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #1a1a1a; /* Darker fallback background */
    color: #ffffff; /* Ensure bright white text */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    overflow: hidden;
}

/* Enhanced fallback background for production - Static for performance */
.video-background.fallback-bg {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

/* Removed unused animation for better performance */

/* Future video styles (when video is added) - Optimized for performance */
.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
    filter: blur(1px) brightness(0.9);
    /* Removed will-change for better performance */
    /* Removed translateZ for better performance */
}

/* Heavy gray overlay for old TV effect - Optimized for Chromium */
.video-background.has-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
    /* Removed expensive backdrop-filter and mix-blend-mode for better performance */
    /* Removed will-change for better performance */
    /* Removed translateZ for better performance */
}

/* Old TV static/noise overlay - Optimized for Chromium */
.video-background.has-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    z-index: -1;
    pointer-events: none;
    /* Removed expensive mix-blend-mode for better performance */
    opacity: 0.8;
    /* Removed will-change for better performance */
    /* Removed translateZ for better performance */
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: normal;
    letter-spacing: 2px;
}

.menu-btn {
    background: black;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0;
    animation: terminalFadeIn 0.8s ease-out 0.5s forwards;
}

.menu-icon {
    font-size: 16px;
}

.menu-text {
    font-weight: normal;
}

/* Menu button transformations */
.menu-btn.active .menu-icon {
    transform: rotate(45deg);
}

.menu-btn.active .menu-text {
    opacity: 0;
}

.menu-icon {
    transition: transform 0.3s ease;
}

.menu-text {
    transition: opacity 0.3s ease;
}

/* Menu Overlay - Hidden by default */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 50%, #2c5aa0 100%);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.5s ease-out;
    display: none !important;
    visibility: hidden;
    opacity: 0;
}

.menu-overlay.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0);
}

.menu-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.menu-item {
    color: white;
    text-decoration: none;
    font-family: 'Times New Roman', Times, serif;
    font-size: 100px;
    font-weight: normal;
    line-height: 1;
    transition: opacity 0.3s ease;
    opacity: 0.9;
}

.menu-item:hover {
    opacity: 1;
}


/* Main Content */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 40px 60px;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-top: 20px;
}

.hero-text {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    animation: terminalTypewriter 1.2s ease-out 3s forwards;
}

.underlined {
    text-decoration: underline;
    text-decoration-color: #4a9eff;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
}

/* CTA Button Styling - Right Side */
.cta-container-right {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 20px;
    opacity: 0;
    animation: terminalSlideIn 1s ease-out 1.5s forwards;
    width: 273px;
    transition: width 0.5s ease;
    display: flex;
    justify-content: flex-end;
}

/* Expanded state for dynamic form */
.cta-container-right.expanded {
    width: 656px;
}

.cta-button {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    padding: 12px 24px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    text-transform: uppercase;
    /* Removed expensive backdrop-filter for better performance */
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform, background-color, border-color;
    /* Removed translateZ for better performance */
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
    /* Removed expensive box-shadow for better performance */
}

.cta-button:active {
    transform: translateY(0);
    /* Removed expensive box-shadow for better performance */
}

/* Subtle animation for the button */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

/* Dynamic Invest Form Styles */
.button-form {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    position: relative;
    top: 0;
    left: 0;
}

.button-text {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.email-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    padding: 0;
    margin: 0;
    margin-right: 16px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    outline: none;
    min-width: 0;
    cursor: text;
    position: relative;
    display: inline-block;
    vertical-align: baseline;
    line-height: 1;
}

.email-input:empty:before {
    content: attr(data-placeholder);
    color: rgba(255, 255, 255, 0.6);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.email-input:focus {
    outline: none;
    background: transparent;
    border: none;
}



.submit-text {
    color: #ffffff;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.8;
}

.submit-text:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.submit-text:active {
    transform: translateY(0);
}

/* Enhanced Menu Styles - Moved from JavaScript for better performance */

/* Keep header and footer above overlay */
header {
    z-index: 1000 !important;
    position: relative;
}

footer {
    z-index: 1000 !important;
    position: relative;
}

/* Menu button - keep consistent size and position */
.menu-btn {
    z-index: 1001 !important;
    position: relative;
    min-width: fit-content;
    width: auto;
    height: auto;
}

/* Enhanced menu button transformation - maintain exact same size */
.menu-btn {
    min-width: 75px !important;
    width: 75px !important;
    height: 32px !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.menu-btn.active {
    background: black !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: 'JetBrains Mono', 'Courier New', monospace !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
    box-sizing: border-box !important;
    min-width: 75px !important;
    width: 75px !important;
    height: 32px !important;
    justify-content: center !important;
}

.menu-btn.active .menu-icon {
    display: none;
}

.menu-btn.active .menu-text {
    font-size: 0 !important;
    color: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.menu-btn.active .menu-text::before {
    content: '✕ CLOSE';
    color: white !important;
    font-size: 12px !important;
    letter-spacing: 1px !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline !important;
    white-space: nowrap !important;
}
.enhanced-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0066ff 0%, #003399 50%, #001f66 100%);
    z-index: 100;
    transform: translateY(-100%);
    transition: transform 0.6s ease;
    display: flex;
    flex-direction: row;
    /* Removed will-change for better performance */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.enhanced-menu.menu-open {
    transform: translateY(0);
}

.enhanced-menu-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding-left: 40px;
}

.menu-items-container {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.menu-right-section {
    flex: 0 0 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 40px;
}

.waitlist-ad {
    text-align: center;
    color: white;
}

.waitlist-ad h3 {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.waitlist-ad p {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    opacity: 0.8;
    text-transform: uppercase;
}

.enhanced-menu-item {
    color: white;
    text-decoration: none;
    font-family: 'Times New Roman', Times, serif;
    font-size: 64px;
    font-weight: normal;
    line-height: 1;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    transform: translateY(50px);
    display: block;
    position: relative;
    padding: 0;
    margin: 0;
    padding-left: 0px;
    padding-right: 200px;
    overflow: hidden;
    /* Removed will-change for better performance */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.enhanced-menu.menu-open .enhanced-menu-item {
    opacity: 0.9;
    transform: translateY(0);
}

.enhanced-menu.menu-open .enhanced-menu-item:nth-child(1) {
    transition-delay: 0.2s;
}

.enhanced-menu.menu-open .enhanced-menu-item:nth-child(2) {
    transition-delay: 0.3s;
}

.enhanced-menu.menu-open .enhanced-menu-item:nth-child(3) {
    transition-delay: 0.4s;
}

.enhanced-menu.menu-open .enhanced-menu-item:nth-child(4) {
    transition-delay: 0.5s;
}

.enhanced-menu.menu-open .enhanced-menu-item:nth-child(5) {
    transition-delay: 0.6s;
}

.enhanced-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    transition: transform 0.6s ease;
    z-index: -1;
    /* Removed will-change for better performance */
    transform: translateX(-100%);
}

.enhanced-menu-item:hover::before {
    transform: translateX(0);
}

.enhanced-menu-item:hover {
    opacity: 1;
    color: white;
    transform: translateX(8px);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Remove the submit button animation since it's now inside the main button */

/* Terminal Animation Keyframes */
@keyframes terminalFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes terminalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes terminalTypewriter {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    padding: 30px 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 11px;
    letter-spacing: 1px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 400;
}

.locations {
    display: flex;
    gap: 60px;
    opacity: 0;
    animation: terminalTypewriter 1.2s ease-out 2s forwards;
}

.location {
    line-height: 1.4;
}

.footer-right {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    opacity: 0;
    animation: terminalTypewriter 1.2s ease-out 2.5s forwards;
}


.email-login-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.email {
    font-size: 11px;
}

.separator {
    font-size: 8px;
}

.login-link {
    font-size: 11px;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.login-link:hover {
    opacity: 0.7;
    cursor: pointer;
}



/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    main {
        padding: 80px 20px 40px;
    }
    
    .hero-text {
        font-size: 16px;
    }
    
    .cta-container-right {
        position: absolute;
        right: 20px;
        top: 60%;
        transform: translateY(-50%);
    }
    
    .cta-button {
        font-size: 11px;
        padding: 10px 20px;
        letter-spacing: 1px;
    }
    
    footer {
        padding: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .locations {
        gap: 30px;
        flex-direction: column;
    }
    

    /* Mobile menu adjustments */
    .menu-item {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    .locations {
        gap: 20px;
    }
    
    .location {
        font-size: 11px;
    }
    
    .email, .login {
        font-size: 11px;
    }
}
