:root {
    --bg-dark: #050505;
    --text-main: #f4f4f4;
    --text-dim: #555555;
    --grid-color: rgba(255, 255, 255, 0.05);
    --grid-secondary: rgba(255, 255, 255, 0.02);
    --accent: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark); color: var(--text-main);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden; display: flex; justify-content: center; align-items: center; height: 100vh;
}

#terminal-screen {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-dark); display: flex; padding: 2rem;
    z-index: 100; transition: opacity 0.5s ease;
}

.terminal-text {
    font-family: 'Courier New', Courier, monospace; color: var(--text-dim);
    font-size: 0.85rem; line-height: 1.6; text-transform: uppercase;
}

.hidden { opacity: 0; pointer-events: none; }
.hidden-bot { display: none !important; }

#main-ui {
    position: relative; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 1.5s ease;
}

/* Enhanced Volumetric Horizon Grid */
.grid-background {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px),
        linear-gradient(var(--grid-secondary) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-secondary) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    z-index: 1;
    transform: perspective(600px) rotateX(70deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    /* This mask creates the fading "void" effect at the edges */
    -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 70%);
    mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 70%);
}

@keyframes gridMove {
    0% { transform: perspective(600px) rotateX(70deg) translateY(0); }
    100% { transform: perspective(600px) rotateX(70deg) translateY(50px); }
}

.content-wrapper {
    position: relative; z-index: 10; text-align: center; max-width: 400px; width: 90%; padding: 2rem;
}

/* Glowing Logo Treatment */
.brand-logo {
    width: 140px; 
    margin-bottom: 0.5rem;
    filter: drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.4));
    animation: neonBreathe 4s infinite alternate;
}

@keyframes neonBreathe {
    0% { filter: drop-shadow(0px 0px 6px rgba(255, 255, 255, 0.2)); }
    100% { filter: drop-shadow(0px 0px 12px rgba(255, 255, 255, 0.6)); }
}

.cryptic-text {
    font-size: 0.75rem; letter-spacing: 0.15rem; color: var(--text-dim);
    margin-bottom: 2.5rem; line-height: 1.8;
}

#form-container { min-height: 120px; }

.access-form { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }

.email-input {
    background: transparent; border: 1px solid #222; color: var(--text-main);
    padding: 1rem; font-size: 0.8rem; letter-spacing: 0.1rem; text-align: center;
    outline: none; transition: all 0.3s ease; border-radius: 0; -webkit-appearance: none;
}
.email-input:focus { border-color: var(--text-dim); background: rgba(255,255,255,0.02); }

.submit-btn {
    background: var(--text-main); 
    color: var(--bg-dark); 
    border: 1px solid var(--text-main); /* Solid border added */
    padding: 1rem; 
    font-size: 0.8rem; 
    letter-spacing: 0.15rem; 
    font-weight: bold; 
    cursor: pointer;
    transition: all 0.3s ease; 
    border-radius: 0; 
    -webkit-appearance: none;
}

.submit-btn:hover { 
    background: transparent; 
    color: var(--text-main); 
}

.success-msg {
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    color: var(--text-dim); 
    font-size: 0.80rem; 
    letter-spacing: 0.1rem;
    animation: pulse 1s infinite; 
    margin-bottom: 2.5rem; 
    display: block;
    line-height: 1.8; /* Perfect spacing between the two lines */
}

@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }

/* Social Nodes */
.social-header {
    font-size: 0.6rem; 
    letter-spacing: 0.2rem; 
    color: #444; 
    margin-top: 3.5rem; /* Breathing Room */
    margin-bottom: 1.5rem; 
    text-transform: uppercase;
}

.social-links { 
    display: flex; justify-content: center; gap: 2rem; 
}

.social-icon {
    width: 22px; height: 22px; color: var(--text-dim); transition: color 0.3s ease, transform 0.3s ease;
}

/* Hover Physics & Brand Colors */
.social-icon:hover { transform: translateY(-2px); }
.social-icon.discord:hover { color: #5865F2; }
.social-icon.x-twitter:hover { color: #ffffff; }
.social-icon.instagram:hover { color: #E1306C; }