:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-main: #ffffff;
    --bg-sidebar: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --code-bg: #0f172a;
    --code-text: #f8fafc;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background: var(--bg-main);
}

/* Layout */
.doc-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    padding: 2rem 1.5rem;
}

.logo-container {
    margin-bottom: 2.5rem;
    padding-left: 0.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.nav-list {
    list-style: none;
}

.nav-item a {
    display: block;
    padding: 0.6rem 0.8rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-item a:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary);
}

.nav-item.active a {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 4rem 6rem;
    max-width: 1200px;
}

header {
    margin-bottom: 4rem;
}

.version-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
}

p {
    margin-bottom: 1.25rem;
    color: #475569;
}

/* Components */
.callout {
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid;
}

.callout-info {
    background: rgba(99, 102, 241, 0.05);
    border-color: var(--primary);
}

.callout-warning {
    background: rgba(245, 158, 11, 0.05);
    border-color: var(--accent-warning);
}

.callout-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

code {
    font-family: 'Fira Code', monospace;
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--primary-hover);
}

pre {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.7;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

th, td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--bg-sidebar);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Grid Layouts */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform 0.2s;
    background: #fff;
}

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

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Animations from intro.html */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.8s ease forwards;
}
.reveal-delay-1 { animation-delay: 0.2s; }
.reveal-delay-2 { animation-delay: 0.4s; }
.reveal-delay-3 { animation-delay: 0.6s; }

@keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Floating Visuals */
.image-stack {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 400px;
    animation: float 6s ease-in-out infinite;
    margin: 2rem 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.card-mock {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    background: #fff;
    border: 1px solid #eee;
    overflow: hidden;
}

.card-main { z-index: 3; width: 100%; height: 100%; top: 0; left: 0; }
.card-mid { z-index: 2; width: 95%; height: 95%; top: -25px; right: -25px; opacity: 0.8; }
.card-bottom { z-index: 1; width: 90%; height: 90%; top: -50px; right: -50px; opacity: 0.5; }

/* Typewriter */
.cursor-blink {
    display: inline-block;
    width: 4px;
    height: 1em;
    background-color: var(--primary);
    margin-left: 5px;
    animation: blink 0.8s infinite;
    vertical-align: middle;
}
@keyframes blink { 50% { opacity: 0; } }

/* Tabs for Installation */
.nav-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Step Indicators */
.step-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
}

.step-item::after {
    content: '';
    position: absolute;
    left: 16px;
    top: 32px;
    bottom: -32px;
    width: 2px;
    background: var(--border);
    z-index: 1;
}

.step-item:last-child::after { display: none; }

.step-content {
    flex-grow: 1;
    padding-bottom: 1rem;
}

/* Status Markers */
.marker {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.5rem;
}

.marker-required { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.marker-optional { background: rgba(100, 116, 139, 0.1); color: #64748b; }
.marker-pro { background: rgba(16, 185, 129, 0.1); color: #10b981; }

/* Responsive */
@media (max-width: 1024px) {
    .sidebar { width: 240px; }
    .main-content { margin-left: 240px; padding: 4rem 3rem; }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; padding: 2rem; }
}
