:root {
    --cs-cyan: #00ffff;
    --cs-blue: #0088ff;
    --cs-bg: #050505;
    --cs-card: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
}

body {
    background-color: var(--cs-bg);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0 10%;
    padding-bottom: 100px;
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin-top: 60px;
    letter-spacing: -2px;
    text-align: center;
    background: linear-gradient(135deg, var(--cs-cyan) 0%, var(--cs-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    margin-top: 80px;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
}

p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 1.5rem auto;
    color: #ccc;
}

.home-nav {
    padding: 2rem 0;
}

.home-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.home-nav a:hover {
    color: #fff;
}

.hero-canvas-container {
    width: 100%;
    height: 300px;
    margin: 40px 0;
    background: #000;
    border: 1px solid #111;
    border-radius: 8px;
    overflow: hidden;
}

.toc {
    background: var(--cs-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #222;
    max-width: 600px;
    margin: 4rem auto;
}

.toc-title {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.toc-part {
    font-weight: bold;
    color: var(--cs-cyan);
    margin-top: 1.5rem;
}

.toc ol {
    list-style: none;
    padding-left: 0;
}

.toc li {
    margin: 0.8rem 0;
}

.toc a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.toc a:hover {
    opacity: 0.7;
}

.interactive-container {
    background: #080808;
    border: 1px solid #222;
    border-radius: 12px;
    margin: 3rem 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bit-box {
    width: 50px;
    height: 60px;
    background: #000;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.bit-box.active {
    background: #00ffff22;
    border-color: #00ffff;
    color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.value-display {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: var(--cs-cyan);
}

.controls {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

button {
    background: transparent;
    border: 1px solid #333;
    color: #fff;
    padding: 10px 20px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    border-color: var(--cs-cyan);
    background: rgba(0, 255, 255, 0.1);
}

.section-tag {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.tag-info { background: rgba(0, 255, 255, 0.1); color: var(--cs-cyan); }
.tag-logic { background: rgba(0, 136, 255, 0.1); color: var(--cs-blue); }
.tag-struct { background: rgba(255, 255, 255, 0.05); color: #fff; }
.tag-algo { background: rgba(0, 255, 0, 0.1); color: #00ff00; }
.tag-security { background: rgba(255, 51, 51, 0.1); color: #ff3333; }
.tag-interpreter { background: rgba(255, 0, 255, 0.1); color: #ff00ff; }
.tag-compiler { background: rgba(255, 119, 0, 0.1); color: #ff7700; }

footer {
    margin-top: 100px;
    border-top: 1px solid #111;
    padding-top: 40px;
    text-align: center;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}
