:root {
    /* Color Palette based on your image */
    --bg-color: #e0e0e0;       /* Light grey/white screen background */
    --text-color: #111111;     /* Sharp black text */
    --grid-line: rgba(0, 0, 0, 0.15); /* The faint mesh lines */
}

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

body {
    background-color: var(--bg-color);
    font-family: 'VT323', monospace; 
    height: 100vh;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    padding-top: 30vh; /* Crucial: Start everything 30% down from the top */
    overflow: hidden; 
    color: var(--text-color);
    text-transform: uppercase;
}

/* --- THE RETRO SCREEN EFFECT --- */
/* This creates the mesh grid overlay without needing an image file */
.screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Lets you click buttons underneath */
    z-index: 1;
    
    /* This creates the vertical and horizontal mesh lines */
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 4px 4px; /* Size of the "pixels" */
    background-position: center;
}

/* --- LAYOUT & TYPOGRAPHY --- */
.container {
    text-align: center;
    z-index: 2; /* Sits above the screen overlay */
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Space between elements */
}

.logo {
    font-size: 4rem; /* Big logo text */
    letter-spacing: -2px; /* Tight tracking like the photo */
    font-weight: 400;
}

/* Blinking Cursor Animation */
.cursor {
    display: inline-block;
    width: 0.6em;
    background-color: var(--text-color);
    animation: blink 1s step-end infinite;
    vertical-align: bottom;
    margin-left: 5px;
}

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

.tagline {
    font-size: 1.5rem;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* --- BUTTONS --- */
.button-group {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.retro-btn {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.5rem;
    border: 2px solid transparent;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Hover effect: Invert colors like selecting text in DOS */
.retro-btn:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    border: 2px solid var(--text-color);
}

/* --- FOOTER --- */
.footer {
    position: fixed; /* Stick to the bottom of the screen */
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    opacity: 0.5; /* Makes it subtle/faded */
    z-index: 2;
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    
    /* 1. Reset the vertical alignment */
    body {
        padding-top: 15vh; /* Move content higher up (was 30vh) */
        padding-left: 20px; /* Add safety padding on the sides */
        padding-right: 20px;
    }

    /* 2. Shrink the logo text so it doesn't break */
    .logo {
        font-size: 2.5rem; /* Down from 4rem */
        line-height: 1.2;  /* Prevents overlapping if text wraps */
    }

    /* 3. Adjust the Tagline size */
    .tagline {
        font-size: 1.2rem;
        margin-left: 0; /* Reset the shift we added earlier */
        text-align: center;
    }

    /* 4. Stack buttons vertically for easier tapping */
    .button-group {
        flex-direction: column; /* Stack them top-to-bottom */
        gap: 1rem;
        margin-left: 0; /* Reset the shift */
        width: 100%; /* Make touch targets wide */
    }

    .retro-btn {
        display: block;
        width: 100%; /* Full width buttons are easier to tap on phones */
        max-width: 300px; /* But don't let them get HUGE */
        margin: 0 auto; /* Center them */
    }
    
    /* 5. Ensure the footer doesn't get covered */
    .footer {
        position: relative; /* Unstick it from bottom */
        margin-top: auto; /* Push it to the bottom naturally */
        padding-bottom: 20px;
        padding-top: 40px; /* Give it space from the content */
    }
}