:root {
    --bg-color: #0a0a0a;
    --surface-color: #121212;
    --primary-color: #00ff41; /* Cyberpunk Green */
    --text-color: #e0e0e0;
    --text-muted: #888;
    --accent-color: #ff003c;
    --font-mono: 'Courier New', Courier, monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-mono);
    color: #fff;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-shadow: 0 0 10px var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    padding: 2rem 0;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: var(--font-mono);
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hamburger {
    display: none;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 0.8rem;
    font-family: var(--font-mono);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-family: var(--font-mono);
    text-transform: uppercase;
    cursor: pointer;
    background: transparent;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    font-weight: bold;
}

.btn-primary:hover {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 255, 65, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.glitch {
    position: relative;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    5% { clip: rect(12px, 9999px, 59px, 0); }
    10% { clip: rect(48px, 9999px, 29px, 0); }
    /* ... more frames can be added for smoother glitch ... */
    100% { clip: rect(67px, 9999px, 12px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    100% { clip: rect(12px, 9999px, 6px, 0); }
}

/* Features */
.features {
    padding: 5rem 0;
    background: var(--surface-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: #0a0a0a;
    padding: 2rem;
    border: 1px solid #333;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Download Section */
.download-section {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-color), #051a0a);
}

.download-box {
    border: 2px solid var(--primary-color);
    padding: 3rem;
    display: inline-block;
    background: rgba(0, 255, 65, 0.05);
    backdrop-filter: blur(5px);
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #333;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Docs Page */
.docs-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    padding: 3rem 0;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    color: var(--text-muted);
    display: block;
    padding: 0.5rem;
    border-left: 2px solid transparent;
}

.sidebar a:hover, .sidebar a.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.docs-content h1 {
    font-size: 2.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

.docs-content h2 {
    margin-top: 2rem;
    color: var(--primary-color);
}

.docs-content p {
    margin-bottom: 1rem;
    color: #ccc;
}

.docs-content code {
    background: #222;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    color: #ff003c;
}

.docs-content pre {
    background: #1a1a1a;
    padding: 1rem;
    overflow-x: auto;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid #333;
}

.docs-content pre code {
    background: transparent;
    color: #e0e0e0;
    padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .docs-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none; /* Mobile menu needed ideally */
    }

    .hamburger {
        display: inline-block;
    }
    .nav-links {
        position: absolute;
        right: 0;
        top: 64px;
        background: rgba(10,10,10,0.95);
        border-left: 1px solid #333;
        border-bottom: 1px solid #333;
        padding: 1rem;
        display: none;
        flex-direction: column;
        gap: 1rem;
    }
    .nav-links.open {
        display: flex;
    }
}

.md-viewer {
    margin-top: 1.5rem;
    text-align: left;
    border: 1px solid #333;
    background: #0e0e0e;
    padding: 1rem;
    max-height: 500px;
    overflow: auto;
}
