:root {
    --bg: #0C0C0C;
    --surface: #121212;
    --surface-2: #1A1A1A;
    --border: #2A2A2A;
    --border-2: #333333;
    --accent: #9CAF88;
    --gold: #9CAF88;
    --gold-light: #B5C6A1;
    --gold-dim: rgba(156, 175, 136, 0.1);
    --gold-border: rgba(156, 175, 136, 0.25);
    --text-1: #FFFFFF;
    --text-2: #B3B3B3;
    --text-3: #808080;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text-2);
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-1);
    font-weight: 600;
}

h2 {
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

h3 {
    font-size: 22px;
    margin: 32px 0 16px;
    color: var(--gold-light);
}

h4 {
    font-size: 18px;
    margin-bottom: 12px;
}

p,
ul,
ol {
    margin-bottom: 20px;
    font-size: 15px;
}

ul,
ol {
    padding-left: 24px;
}

li {
    margin-bottom: 8px;
}

code {
    font-family: monospace;
    background: var(--surface-2);
    padding: 3px 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--gold-light);
    font-size: 13.5px;
}

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

a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* Layout */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 100;
}

.logo h1 {
    font-size: 22px;
    margin: 0;
    display: inline-block;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-nav a {
    font-weight: 500;
    font-size: 14px;
}

.btn-primary {
    background: var(--gold);
    color: #000 !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-block;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.layout {
    display: flex;
    max-width: 1200px;
    margin: 70px auto 0;
    min-height: calc(100vh - 70px);
}

/* Sidebar */
.sidebar {
    width: 260px;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.sidebar-inner {
    padding: 40px 30px;
}

.sidebar-inner h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-3);
    margin: 0 0 20px;
}

.toc {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toc a {
    font-size: 14.5px;
    color: var(--text-2);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    margin-left: -12px;
}

.toc a:hover {
    color: var(--text-1);
    background: var(--surface);
}

/* Content */
.content {
    flex: 1;
    padding: 50px 60px 80px;
    max-width: 800px;
}

.hero {
    margin-bottom: 60px;
}

.hero h2 {
    font-size: 42px;
    border-bottom: none;
    margin-bottom: 16px;
    padding-bottom: 0;
}

.hero p {
    font-size: 18px;
    color: var(--text-3);
    line-height: 1.7;
}

.doc-section {
    margin-bottom: 80px;
    scroll-margin-top: 100px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.card p {
    margin-bottom: 0;
    font-size: 14px;
}

.notice {
    background: var(--gold-dim);
    border-left: 3px solid var(--gold);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
    font-size: 14.5px;
}

.notice strong {
    color: var(--gold);
}

.doc-footer {
    border-top: 1px solid var(--border);
    padding-top: 40px;
    margin-top: 60px;
    text-align: center;
    color: var(--text-3);
    font-size: 13.5px;
}

/* Responsive */
@media (max-width: 900px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        position: static;
    }

    .sidebar-inner {
        padding: 30px 40px;
    }

    .content {
        padding: 40px;
    }
}

@media (max-width: 600px) {
    .topbar {
        padding: 0 20px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 30px 20px;
    }

    .sidebar-inner {
        padding: 30px 20px;
    }

    .hero h2 {
        font-size: 32px;
    }
}