:root {
    --bg: #050505;
    --panel: rgba(10, 10, 10, 0.9);
    --text: #f5f5f5;
    --muted: #9aa0a6;
    --dim: #5f676d;
    --accent: #d9d9d9;
    --border: rgba(255, 255, 255, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at top, rgba(255,255,255,0.06), transparent 32%), var(--bg);
    color: var(--text);
    font-family: Consolas, "Courier New", monospace;
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
    padding: 32px 20px 56px;
    min-height: 100vh;
}

.terminal {
    max-width: 900px;
    margin: auto;
    padding: 24px 28px;
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.02) inset, 0 16px 48px rgba(0,0,0,0.35);
    position: relative;
    overflow: hidden;
}

.terminal::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 100% 4px;
    mix-blend-mode: screen;
    opacity: 0.12;
    animation: scan 8s linear infinite;
}

.terminal h1 {
    font-size: 30px;
    margin: 0 0 8px;
    letter-spacing: 0.04em;
}

.prompt {
    color: var(--accent);
    margin: 8px 0 2px;
}

.system {
    color: var(--muted);
    margin: 6px 0 18px;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background: var(--text);
    margin-left: 5px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

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

@keyframes bootLine {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scan {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(100%);
    }
}

.boot-sequence .boot-line {
    display: block;
    opacity: 0;
    transform: translateY(4px);
    animation: bootLine 0.45s ease forwards;
}

.boot-sequence .boot-line:nth-child(2) {
    animation-delay: 0.35s;
}

.boot-sequence .boot-line:nth-child(3) {
    animation-delay: 0.7s;
}

.line {
    color: var(--dim);
    margin: 18px 0;
}

h2 {
    font-size: 20px;
    margin-top: 32px;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.item {
    margin: 10px 0;
    padding: 8px 10px;
    border-left: 2px solid transparent;
    background: rgba(255,255,255,0.03);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.item:hover {
    border-left-color: var(--accent);
    transform: translateX(2px);
}

.item a {
    color: var(--text);
    text-decoration: none;
    display: block;
}

.item a:hover {
    text-decoration: underline;
}

a {
    color: var(--text);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.footer {
    margin-top: 48px;
    color: var(--dim);
    font-size: 14px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

@media (max-width: 640px) {
    body {
        padding: 16px 12px 36px;
    }

    .terminal {
        padding: 18px 16px;
    }

    .terminal h1 {
        font-size: 24px;
    }
}
