:root {
    --bg: #0a0c10;
    --bg-alt: #12151c;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --accent: #7c88ff;
    --accent-hover: #6572e8;
    --border: #30363d;
    --code-bg: #161b22;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    background: rgba(10, 12, 16, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
}

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

.brand {
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-mark {
    background: var(--accent);
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: var(--font-mono);
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-1px);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--text-muted);
    background: var(--bg-alt);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Hero */
.hero {
    padding: 8rem 0 6rem;
    text-align: center;
    background: radial-gradient(circle at top center, rgba(124, 136, 255, 0.15), transparent 60%);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a5b4fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Features Grid */
.features {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

/* Code Block */
.code-preview {
    margin: 4rem auto;
    max-width: 800px;
    text-align: left;
}

.code-preview pre {
    margin-bottom: 0;
}

/* Code Tabs */
.code-tabs {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 4rem auto;
    max-width: 800px;
    overflow: hidden;
    text-align: left;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9rem;
    border-right: 1px solid var(--border);
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--accent);
    background: var(--code-bg);
    box-shadow: inset 0 -2px 0 var(--accent);
}

.tab-content {
    display: none;
    padding: 1.5rem;
}

.tab-content.active {
    display: block;
}

.tab-content pre {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -2.45rem;
    top: 0.25rem;
    width: 16px;
    height: 16px;
    background: var(--bg);
    border: 2px solid var(--accent);
    border-radius: 50%;
    z-index: 1;
}

.timeline-date {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-content h3 {
    margin-top: 0;
    font-size: 1.25rem;
}

.timeline-content ul {
    margin-top: 1rem;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    background: var(--bg-alt);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-col a:hover { color: var(--accent); }

.brand-sm {
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Typography for Markdown Content */
main { padding-bottom: 4rem; }
main h1, main h2, main h3 { margin-top: 2rem; margin-bottom: 1rem; }
main p { margin-bottom: 1.5rem; color: #d0d7de; }
main ul, main ol { margin-bottom: 1.5rem; padding-left: 1.5rem; color: #d0d7de; }
main li { margin-bottom: 0.5rem; }
main pre {
    background: var(--code-bg);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}
main code {
    font-family: var(--font-mono);
    font-size: 0.9em;
}
main :not(pre) > code {
    background: rgba(110, 118, 129, 0.4);
    padding: 0.2em 0.4em;
    border-radius: 6px;
}

/* Page specific */
.page-header {
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero h1 { font-size: 2.5rem; }
    .main-nav { display: none; } /* Mobile menu would go here */
}
