:root {
    --bg: #070707;
    --panel: rgba(16, 16, 16, 0.85);
    --panel-solid: #101010;
    --accent: #fff;
    --accent-dim: rgba(255, 255, 255, 0.6);
    --accent-glow: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.04);
    --border-bright: rgba(255, 255, 255, 0.1);
    --text: #e6e6e6;
    --text-muted: #888;
    --text-dim: #555;
    --font: 'JetBrains Mono', monospace;
    --radius: 12px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Drift Effect (Engine Vibe) */
body::before, body::after {
    content: '';
    position: fixed;
    width: 150vw;
    height: 150vh;
    top: -25vh;
    left: -25vw;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.02), transparent 60%);
    pointer-events: none;
    z-index: -1;
    animation: drift 40s linear infinite alternate;
}

body::after {
    background: radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.01), transparent 60%);
    animation-duration: 60s;
}

@keyframes drift {
    from { transform: translate(-2%, -2%) scale(1); }
    to { transform: translate(2%, 2%) scale(1.05); }
}

/* Typography */
h1, h2, h3, h4 {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Components */
.engine-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.engine-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-2px);
    background: rgba(20, 20, 20, 0.9);
}

.btn-engine {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-engine:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-bright);
    transform: translateY(-1px);
}

/* Console HUD Badges */
.hud-badge {
    display: inline-flex;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    vertical-align: middle;
    margin-right: 8px;
}

.hud-badge.core { color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.hud-badge.ok { color: #4ade80; border-color: rgba(74, 222, 128, 0.2); }
.hud-badge.warn { color: #fbbf24; border-color: rgba(251, 191, 36, 0.2); }

/* Terminal Blocks */
.terminal-block {
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    font-family: var(--font);
    font-size: 13px;
    color: #ccc;
    overflow-x: auto;
    position: relative;
}

.terminal-block::before {
    content: '[ RUNTIME ]';
    display: block;
    font-size: 9px;
    color: var(--text-dim);
    margin-bottom: 8px;
    letter-spacing: 2px;
}
