:root {
    --bg-base: #09090b;
    --grid-color: rgba(255, 255, 255, 0.03);
    --primary-cyan: #00f3ff;
    --primary-purple: #bc13fe;
    --accent-yellow: #f1fa8c;
    --text-main: #a9b1d6;
    --text-bright: #c0caf5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fira Code', 'Consolas', monospace;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Developer Grid Background */
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* CRT Scanline Effect */
.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    z-index: 100;
    pointer-events: none;
}

.terminal-container {
    width: 100%;
    max-width: 800px;
    padding: 40px;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    z-index: 10;
}

/* Header */
.sys-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--primary-cyan);
    letter-spacing: 2px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    padding-bottom: 10px;
}

.sys-status { display: flex; align-items: center; gap: 8px; }

.pulse-dot {
    width: 8px; height: 8px;
    background-color: #50fa7b;
    border-radius: 50%;
    box-shadow: 0 0 10px #50fa7b;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* Clock Module */
.clock-module { text-align: center; margin-bottom: 40px; }

.cyber-time {
    font-size: 5rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -2px;
    text-shadow: 0 0 20px rgba(188, 19, 254, 0.3);
}

.typewriter-text {
    color: var(--accent-yellow);
    font-size: 1.1rem;
    margin-top: 5px;
}

/* Command Prompt */
.cmd-module { margin-bottom: 40px; }

#cmd-form {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px 20px;
    border: 1px solid rgba(188, 19, 254, 0.3);
    border-radius: 6px;
    transition: border 0.3s, box-shadow 0.3s;
}

#cmd-form:focus-within {
    border-color: var(--primary-purple);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.2);
}

.prompt {
    color: #50fa7b;
    margin-right: 15px;
    font-weight: bold;
}

#cmd-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-bright);
    font-size: 1.1rem;
}

/* Grid Links */
.nodes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.node-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s;
}

.node-link:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    transform: translateY(-2px);
}

/* Dev Tip */
.dev-tip {
    font-size: 0.9rem;
    color: #6272a4;
    text-align: center;
}

.tip-label { color: var(--primary-purple); font-weight: bold; margin-right: 5px; }