@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root{
    --bg: #000;
    --fg: #fff;
    --muted: #aaa;
}

::selection {
    background: var(--fg); 
    color: var(--bg);
}

*{ box-sizing: border-box; }
html,body{ min-height:100%; margin:0; }

body{
    background: var(--bg);
    color: var(--fg);
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

.page{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 40px 0;
    width: 100%;
}

.page::before,
.page::after {
    content: '';
    flex: 1;
    min-height: 0;
}

.logo-container{
    transform: translateY(-40px);
}

.logo{
    width: 320px;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.terminal{
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: var(--muted);
    width: 400px;
    max-width: 95%;
    margin: 0 auto;
}

.terminal-output{
    min-height: 140px;
}

.terminal-line{
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 0.2rem;
}

.terminal-input-line{
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.terminal-prompt{
    color: var(--fg);
}

.terminal-input-line input{
    background: transparent;
    border: none;
    outline: none;
    color: var(--fg);
    font-family: inherit;
    font-size: inherit;
    width: 100%;
}

.autocomplete {
    position: relative;
    flex-grow: 1;
}

.ghost {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: #444;
    pointer-events: none;
    z-index: 1;
    font-family: inherit;
    font-size: inherit;
    white-space: pre-wrap;
}

.terminal-input-line input {
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 0;
    margin: 0;
}

.train-animation {
    position: fixed;
    top: 50%;
    right: -100%;
    transform: translateY(-50%);
    font-family: monospace;
    font-weight: bold;
    white-space: pre;
    color: var(--fg);
    z-index: 9999;
    pointer-events: none;
    animation: train-move 6s linear forwards;
}

.mobile-disclaimer {
    display: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--muted);
    text-align: center;
    max-width: 90%;
    line-height: 1.4;
    opacity: 0.7;
}

@keyframes train-move {
    0% { right: -50vw; }
    100% { right: 120vw; }
}

@media (max-width: 480px){
    .logo{ 
        width: 200px;
        max-width: 80%;
    }
    
    .terminal{ 
        width: 100%;
        max-width: 90%;
        font-size: 0.85rem;
    }

    .terminal-input-line {
        min-height: 24px; 
    }

    .mobile-disclaimer {
        display: block;
    }
}