:root {
    --bg-base: #000000;
    --bg-panel: #111111;
    --bg-elevated: #1a1a1a;
    --border-dim: #333333;
    --border-glow: rgba(255, 255, 255, 0.1);
    --text-primary: #ededed;
    --text-secondary: #a1a1aa;
    --accent: #C9A84C;
    --accent-hover: #E8C87A;
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --blue: #3b82f6;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #666; }

/* Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dim);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

/* Layout */
.layout {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 64px;
}

/* Sidebar */
.sidebar {
    width: 250px;
    padding: 40px 24px;
    position: fixed;
    height: calc(100vh - 64px);
    overflow-y: auto;
    border-right: 1px solid var(--border-dim);
}

.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-section h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 600;
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-section li {
    margin-bottom: 8px;
}

.sidebar-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    display: block;
    padding: 6px 12px;
    border-radius: 6px;
    margin-left: -12px;
}

.sidebar-section a:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.sidebar-section a.active {
    color: var(--blue);
    background: rgba(59, 130, 246, 0.1);
}

/* Content */
.content {
    flex: 1;
    margin-left: 250px;
    padding: 56px 64px;
    max-width: 800px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    margin-top: 0;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: 48px;
    margin-bottom: 16px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

hr {
    border: none;
    border-top: 1px solid var(--border-dim);
    margin: 48px 0;
}

/* Hero Box */
.hero-box {
    background: linear-gradient(145deg, var(--bg-panel), #161616);
    border: 1px solid var(--border-dim);
    padding: 24px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 0 var(--border-glow);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--blue);
    color: #fff;
    border-radius: 9999px;
    margin-bottom: 12px;
}

/* Button */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #000;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 16px;
}

.download-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(201,168,76,0.35);
}

/* Step Cards */
.step-card {
    display: flex;
    gap: 24px;
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    transition: transform 0.3s, border-color 0.3s;
}

.step-card:hover {
    border-color: #555;
    transform: translateY(-2px);
}

.step-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-elevated);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    flex-shrink: 0;
    border: 1px solid var(--border-dim);
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.step-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.step-content ol, .step-content ul {
    color: var(--text-secondary);
    padding-left: 20px;
    margin-bottom: 16px;
}

.step-content li {
    margin-bottom: 8px;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--blue);
}

/* Callouts */
.callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.callout.warning {
    background: var(--warning-bg);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.callout.success {
    background: var(--success-bg);
    border-color: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.callout i {
    flex-shrink: 0;
}

/* Code Block */
.code-block {
    background: #0d0d0d;
    border: 1px solid var(--border-dim);
    border-radius: 12px;
    overflow: hidden;
    margin: 24px 0;
}

.code-header {
    background: #1a1a1a;
    border-bottom: 1px solid var(--border-dim);
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.copy-btn:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.1);
}

.code-block pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
}

.code-block code {
    background: transparent;
    color: #e5e5e5;
    font-size: 0.9rem;
    padding: 0;
}

.small-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .sidebar { display: none; }
    .content { margin-left: 0; padding: 32px 24px; }
}
