:root {
    --graphics-lime: #ccff00;
    --graphics-cyan: #00ffff;
    --graphics-bg: #050805;
    --graphics-card: #0a120a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-glow: rgba(204, 255, 0, 0.2);
}

body {
    background-color: var(--graphics-bg);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0 10%;
    padding-bottom: 100px;
    background-image: 
        linear-gradient(rgba(204, 255, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(204, 255, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

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, #fff 0%, var(--graphics-lime) 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 #1a2a1a;
    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: 400px;
    margin: 40px 0;
    background: #000;
    border: 1px solid #1a2a1a;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 50px rgba(204, 255, 0, 0.1);
}

.toc {
    background: var(--graphics-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #1a2a1a;
    max-width: 650px;
    margin: 4rem auto;
    backdrop-filter: blur(10px);
}

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

.toc-part {
    font-weight: bold;
    color: var(--graphics-lime);
    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: all 0.3s;
    display: flex;
    align-items: center;
}

.toc a::before {
    content: '→';
    margin-right: 10px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.toc a:hover {
    color: var(--graphics-lime);
}

.toc a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.interactive-container {
    background: #081008;
    border: 1px solid #1a2a1a;
    border-radius: 16px;
    margin: 4rem 0;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.visual-label {
    position: absolute;
    top: -15px;
    left: 30px;
    background: var(--graphics-lime);
    color: #000;
    padding: 4px 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

canvas {
    max-width: 100%;
}

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

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slider-group label {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

input[type="range"] {
    accent-color: var(--graphics-lime);
    width: 151px;
}

button {
    background: transparent;
    border: 1px solid #2a4a2a;
    color: #fff;
    padding: 12px 24px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 6px;
}

button:hover {
    border-color: var(--graphics-lime);
    background: rgba(204, 255, 0, 0.1);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.2);
}

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

.tag-geometry { background: rgba(0, 255, 255, 0.1); color: var(--graphics-cyan); }
.tag-raster { background: rgba(204, 255, 0, 0.1); color: var(--graphics-lime); }
.tag-raytracing { background: rgba(255, 255, 255, 0.1); color: #fff; }

footer {
    margin-top: 150px;
    border-top: 1px solid #1a2a1a;
    padding-top: 60px;
    text-align: center;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

@media (max-width: 800px) {
    body { padding: 0 5%; }
    h1 { font-size: 2.5rem; }
    .hero-canvas-container { height: 250px; }
}
