/* --- Fonts Integration --- */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- Developer Design System --- */
:root {
    --bg-base: #0a0b0d;
    --bg-panel: #111318;
    --bg-panel-hover: #161920;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-glow: rgba(139, 92, 246, 0.25);
    
    --color-primary: #8b5cf6;
    --color-secondary: #ec4899;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    
    --text-main: #f3f4f6;
    --text-muted: #8892b0;
    --text-dark: #4b5563;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', Courier, monospace;
    
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Ambient Grid Background --- */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.radial-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 60vh;
    z-index: -1;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    filter: blur(60px);
}

/* --- Header / Navbar --- */
header {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    background: rgba(10, 11, 13, 0.8);
    backdrop-filter: blur(8px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.logo-bold {
    color: var(--color-primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

nav a:hover {
    color: var(--text-main);
}

.github-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1f232a;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.github-badge:hover {
    background: #2b313a;
    border-color: rgba(255,255,255,0.2);
}

.gh-icon::before {
    content: '🐙'; /* Simple clean unicode placeholder representing github symbol */
}

/* --- Hero Section --- */
.hero-section {
    padding: 180px 0 100px;
    border-bottom: 1px solid var(--border-color);
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.version-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-primary);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border-color-glow);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.hero-section h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: #7c3aed;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
}

/* --- Terminal Console Mockup --- */
.terminal-mockup {
    background: #0f1015;
    border: 1px solid #1f2330;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    overflow: hidden;
}

.terminal-header {
    background: #161821;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #1f2330;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.btn-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.btn-dot.close { background-color: #ef4444; }
.btn-dot.minimize { background-color: #f59e0b; }
.btn-dot.maximize { background-color: #10b981; }

.terminal-title {
    margin-left: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dark);
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 250px;
    overflow-y: auto;
}

.output-line {
    color: #e2e8f0;
}

.output-line.command {
    color: #38bdf8;
}

.output-line.command::before {
    content: '> ';
}

.output-line.info {
    color: #94a3b8;
}

.output-line.success {
    color: #4ade80;
}

/* --- Components Section --- */
.components-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.component-box {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 36px;
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.component-box:hover {
    border-color: var(--border-color-glow);
    background: var(--bg-panel-hover);
    transform: translateY(-4px);
}

.component-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.component-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(139, 92, 246, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.component-box h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.component-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Features Section --- */
.features-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    margin-bottom: 64px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-box {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 36px;
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.feature-box:hover {
    border-color: var(--border-color-glow);
    background: var(--bg-panel-hover);
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Code & Benchmarks Section --- */
.code-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.code-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.code-info h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.code-info p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.metric-group {
    display: flex;
    gap: 32px;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-num {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.code-mockup {
    background: #0f1015;
    border: 1px solid #1f2330;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.code-header {
    background: #161821;
    padding: 12px 20px;
    border-bottom: 1px solid #1f2330;
}

.code-tab {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 8px;
}

.code-body {
    padding: 24px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* Code Highlighting stubs */
.keyword { color: #f43f5e; }
.type { color: #38bdf8; }
.method { color: #fbbf24; }
.annotation { color: #a855f7; }
.number { color: #10b981; }

/* --- Roadmap --- */
.roadmap-section {
    padding: 100px 0;
}

.roadmap-tree {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.roadmap-node {
    border: 1px solid var(--border-color);
    background: var(--bg-panel);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    align-items: center;
    position: relative;
}

.roadmap-node.done {
    border-left: 4px solid var(--color-success);
}

.roadmap-node.active {
    border-left: 4px solid var(--color-primary);
    background: var(--bg-panel-hover);
}

.node-status {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
}

.roadmap-node.done .node-status { color: var(--color-success); }
.roadmap-node.active .node-status { color: var(--color-primary); }

.node-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.node-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border-color);
    background: #07080a;
    padding: 40px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dark);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .hero-section .container,
    .code-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
