:root {
    --bg-color: #0d0f14;
    --sidebar-bg: #15181f;
    --text-color: #e0e6ed;
    --accent-color: #4f46e5;
    --accent-hover: #6366f1;
    --border-color: #2d333b;
    --hero-gradient: linear-gradient(135deg, #0d0f14 0%, #1a1e2e 100%);
    --card-bg: rgba(255, 255, 255, 0.03);
    --badge-bg: rgba(79, 70, 229, 0.1);
    --badge-text: #818cf8;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo-text {
    font-family: 'Outfit', sans-serif;
}

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

.sidebar-header {
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--accent-color);
}

.version-badge {
    font-size: 0.75rem;
    background: var(--badge-bg);
    color: var(--badge-text);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

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

.nav-links li {
    margin-bottom: 0.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.95rem;
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
    border-left: 3px solid var(--accent-color);
    padding-left: calc(0.75rem - 3px);
}

.nav-group {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #475569;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    font-weight: 700;
}

/* Content Area Styling */
.content {
    margin-left: 280px;
    width: calc(100% - 280px);
    max-width: 1200px;
}

.hero {
    height: 400px;
    position: relative;
    background: url('hero-bg.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    padding: 0 4rem;
    border-bottom: 1px solid var(--border-color);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(13, 15, 20, 0.9) 0%, rgba(13, 15, 20, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: var(--accent-color);
}

.hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

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

.btn.primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn.secondary {
    border: 1px solid var(--border-color);
    color: white;
    margin-left: 1rem;
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.doc-section {
    padding: 5rem 4rem;
    border-bottom: 1px solid var(--border-color);
}

.doc-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.doc-section p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    background: #1e293b;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.badge.primary-badge {
    background: rgba(79, 70, 229, 0.15);
    color: #818cf8;
}

.badge.success-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.code-block {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: #011627 !important;
    border: 1px solid var(--border-color);
}

.highlight-box {
    background: rgba(79, 70, 229, 0.03);
}

.doc-footer {
    padding: 4rem;
    color: #475569;
    font-size: 0.9rem;
}

ul {
    list-style: none;
    margin-bottom: 2rem;
}

ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #94a3b8;
}

ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Visuals Section */
.visuals-section {
    padding: 3rem 4rem;
    background: #11141b;
}

.diagram-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.arch-diagram {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.diagram-caption {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

/* Tracks Grid */
.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.track-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.track-card:hover {
    background: rgba(79, 70, 229, 0.05);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.track-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.track-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }

    .content {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
}