:root {
    --crt-bg: #001100;
    --crt-text: #33ff33;
    --crt-dim: #115511;
    --crt-highlight: #aaffaa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--crt-bg); color: var(--crt-text);
    font-family: 'VT323', 'Courier New', Courier, monospace;
    font-size: 18px; line-height: 1.5;
    position: relative;
}
/* CRT Scanlines */
body::after {
    content: " "; display: block; position: fixed; top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2; background-size: 100% 3px, 3px 100%; pointer-events: none;
}
/* CRT Flicker */
@keyframes flicker {
    0% { opacity: 0.95; } 5% { opacity: 0.85; } 10% { opacity: 0.95; } 15% { opacity: 1; }
    100% { opacity: 1; }
}
.crt-container {
    max-width: 960px; margin: 0 auto; padding: 30px;
    animation: flicker 0.15s infinite; text-shadow: 0 0 5px var(--crt-text);
}
a { text-decoration: none; color: var(--crt-highlight); }
a:hover { background: var(--crt-text); color: var(--crt-bg); }

/* Header */
.crt-header { display: flex; justify-content: space-between; border-bottom: 2px solid var(--crt-dim); padding-bottom: 15px; margin-bottom: 30px;}
.crt-brand { font-size: 24px; font-weight: bold; }
.crt-nav { display: flex; gap: 20px; }
.crt-nav a { padding: 5px 10px; }

/* Hero */
.crt-hero { margin-bottom: 50px; border: 1px solid var(--crt-dim); padding: 30px;}
.crt-hero h1 { font-size: 40px; margin-bottom: 20px;}
.crt-hero p { font-size: 20px; margin-bottom: 30px; color: var(--crt-highlight);}
.btn-crt {
    display: inline-block; padding: 10px 20px; border: 2px solid var(--crt-text);
    background: transparent; color: var(--crt-text); font-weight: bold; text-transform: uppercase;
    margin-right: 15px; cursor: pointer;
}
.btn-crt:hover { background: var(--crt-text); color: var(--crt-bg); }
.btn-crt-alt {
    display: inline-block; padding: 10px 20px; border: 2px dashed var(--crt-dim);
    background: transparent; color: var(--crt-dim); font-weight: bold; text-transform: uppercase;
    cursor: pointer;
}
.btn-crt-alt:hover { border-color: var(--crt-text); color: var(--crt-text); }

/* Stats */
.crt-stats { display: flex; justify-content: space-between; margin-bottom: 50px;}
.cs-item { flex: 1; text-align: center; border-right: 2px solid var(--crt-dim);}
.cs-item:last-child { border-right: none;}
.cs-val { font-size: 36px; font-weight: bold;}
.cs-lbl { font-size: 14px; text-transform: uppercase;}

/* Grid */
.crt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 50px;}
.cg-card { border: 1px solid var(--crt-dim); padding: 20px;}
.cg-icon { font-size: 30px; margin-bottom: 15px;}
.cg-card h3 { font-size: 20px; margin-bottom: 10px; border-bottom: 1px dashed var(--crt-dim); padding-bottom: 5px;}
.cg-card p { font-size: 16px; }

/* Nodes */
.crt-nodes { margin-bottom: 50px;}
.crt-nodes h2 { margin-bottom: 20px;}
.node-table { width: 100%; border-collapse: collapse;}
.node-table th, .node-table td { border: 1px solid var(--crt-dim); padding: 10px; text-align: left;}
.node-table th { background: var(--crt-dim); color: var(--crt-bg);}

/* FAQ */
.crt-faq { margin-bottom: 50px;}
.crt-faq h2 { margin-bottom: 20px;}
.faq-item { margin-bottom: 20px;}
.faq-q { font-weight: bold; margin-bottom: 5px;}
.faq-q::before { content: "USER> "; color: var(--crt-highlight);}
.faq-a { margin-left: 20px;}
.faq-a::before { content: "SYS> "; color: var(--crt-dim);}

.cursor { display: inline-block; width: 12px; height: 20px; background: var(--crt-text); animation: blink 1s step-end infinite; vertical-align: middle;}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

footer { text-align: center; padding: 20px; border-top: 2px solid var(--crt-dim); font-size: 14px;}

@media (max-width: 768px) {
    .crt-header { flex-direction: column; gap: 15px; text-align: center;}
    .crt-stats { flex-direction: column; gap: 20px;}
    .cs-item { border-right: none; border-bottom: 2px solid var(--crt-dim); padding-bottom: 10px;}
    .crt-grid { grid-template-columns: 1fr; }
}