:root {
    --bg-main: #0b0e14;
    --bg-secondary: #151921;
    --bg-card: #1f242e;
    --accent: #22d3ee; /* Cyan */
    --accent-hover: #06b6d4;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #2d3748;
    --font-heading: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

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

/* --- Typography & Utils --- */
h1, h2, h3 { font-weight: 700; color: white; margin-bottom: 1rem; }
a { text-decoration: none; transition: 0.3s; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-darker { background-color: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.highlight { color: var(--accent); }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 14, 20, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.5rem; font-weight: 800; color: white; letter-spacing: -1px; }
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent); }

.btn-nav {
    background: rgba(34, 211, 238, 0.1);
    color: var(--accent) !important;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid rgba(34, 211, 238, 0.2);
}
.btn-nav:hover { background: var(--accent); color: var(--bg-main) !important; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 2px; background: white; margin: 5px 0; }

/* --- Hero --- */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
    background: radial-gradient(circle at top, #1a202c 0%, var(--bg-main) 60%);
}

.badge {
    display: inline-block;
    background: rgba(34, 211, 238, 0.1);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.hero h1 { font-size: 3.5rem; line-height: 1.1; max-width: 800px; margin: 0 auto 20px auto; }
.hero-sub { color: var(--text-muted); font-size: 1.2rem; max-width: 600px; margin: 0 auto 40px auto; }

.cta-group { display: flex; gap: 15px; justify-content: center; }

.btn-primary {
    background: var(--accent);
    color: var(--bg-main);
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    border: 2px solid var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-secondary {
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    color: white;
    background: transparent;
    border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: white; }

/* --- Tech Section --- */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.tech-list { list-style: none; margin-top: 20px; }
.tech-list li { padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.tech-list strong { color: white; margin-right: 10px; }

.terminal-window {
    background: #000;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
}
.terminal-header { background: #1a1a1a; padding: 10px; display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ef4444; } .yellow { background: #eab308; } .green { background: #22c55e; }
.terminal-body { padding: 20px; font-family: var(--font-mono); font-size: 0.9rem; color: #a3a3a3; }

/* --- Features --- */
.section-title { text-align: center; font-size: 2.5rem; }
.section-desc { text-align: center; color: var(--text-muted); max-width: 600px; margin: 0 auto 50px auto; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--accent); }

.card-header { padding: 20px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.card-header h3 { margin: 0; font-size: 1.2rem; }
.card-header .icon { font-size: 1.2rem; }
.combat { background: linear-gradient(90deg, rgba(239, 68, 68, 0.1), transparent); }
.movement { background: linear-gradient(90deg, rgba(34, 211, 238, 0.1), transparent); }
.visual { background: linear-gradient(90deg, rgba(168, 85, 247, 0.1), transparent); }
.utility { background: linear-gradient(90deg, rgba(34, 197, 94, 0.1), transparent); }

.module-list { list-style: none; padding: 20px; }
.module-list li { margin-bottom: 15px; }
.module-list strong { display: block; color: white; font-size: 0.95rem; margin-bottom: 4px; }
.module-list span { color: var(--text-muted); font-size: 0.85rem; display: block; line-height: 1.4; }

/* --- Config --- */
.config-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.code-block-wrapper {
    background: #0d1117;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.code-header {
    background: #161b22;
    padding: 8px 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    display: flex;
    justify-content: space-between;
}
#copyBtn { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 0.8rem; }

pre { margin: 0; padding: 20px; overflow-x: auto; }
code { font-family: var(--font-mono); font-size: 0.9rem; color: #c9d1d9; }

/* Custom Syntax Highlighting */
.key { color: #7ee787; }
.bool { color: #79c0ff; }
.num { color: #79c0ff; }

/* --- License --- */
.license-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}
.license-grid { display: flex; justify-content: center; gap: 50px; margin: 30px 0; text-align: left; }
.license-col h4 { margin-bottom: 15px; }
.license-col ul { list-style: none; color: var(--text-muted); }
.license-col li { margin-bottom: 5px; font-size: 0.9rem; }
.allowed h4 { color: #22c55e; }
.prohibited h4 { color: #ef4444; }

/* --- Footer --- */
footer { padding: 80px 0 40px; background: var(--bg-main); text-align: center; border-top: 1px solid var(--border); }
.footer-buttons { margin-top: 20px; display: flex; gap: 15px; justify-content: center; margin-bottom: 50px; }
.btn-outline { color: var(--text-muted); border: 1px solid var(--border); padding: 12px 25px; border-radius: 6px; }
.footer-links { color: var(--text-muted); font-size: 0.85rem; }
.socials { margin-top: 10px; display: flex; gap: 20px; justify-content: center; }
.socials a { color: var(--text-muted); }
.socials a:hover { color: white; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .mobile-toggle { display: block; }
    
    .hero h1 { font-size: 2.2rem; }
    .tech-grid, .config-wrapper, .license-grid { grid-template-columns: 1fr; }
    .license-grid { text-align: center; }
}
