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

:root {
    --bg: #0a0a0a;
    --surface: #111111;
    --surface-2: #151515;
    --surface-3: #1b1b1b;
    --border: #262626;
    --border-strong: #343434;
    --text: #f5f5f5;
    --text-soft: #dddddd;
    --muted: #a3a3a3;
    --subtle: #737373;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-soft: rgba(59, 130, 246, 0.14);
    --green: #22c55e;
    --green-soft: rgba(34, 197, 94, 0.12);
    --red: #ef4444;
    --red-soft: rgba(239, 68, 68, 0.12);
    --yellow: #f59e0b;
    --yellow-soft: rgba(245, 158, 11, 0.12);
    --max: 1240px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
}

.docs-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.docs-nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    height: 60px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.docs-nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.18rem;
    font-weight: 700;
}

.docs-nav-mark {
    width: 0.88rem;
    height: 0.88rem;
    border-radius: 0.28rem;
    background: var(--accent);
    flex-shrink: 0;
}

.docs-nav-logo span:last-child span {
    color: var(--accent);
}

.docs-nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.docs-nav-link,
.docs-nav-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0.95rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.docs-nav-link {
    color: var(--text-soft);
    border: 1px solid transparent;
}

.docs-nav-link:hover {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

.docs-nav-btn {
    background: var(--accent);
    color: #fff;
    border: 1px solid transparent;
}

.docs-nav-btn:hover {
    background: var(--accent-hover);
}

.docs-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    max-width: var(--max);
    margin: 0 auto;
    min-height: calc(100vh - 60px);
}

.docs-sidebar {
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 1.5rem 1rem 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.docs-sidebar::-webkit-scrollbar { width: 5px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 0.55rem;
    padding-left: 0.55rem;
}

.sidebar-link {
    display: block;
    font-size: 0.9rem;
    color: var(--subtle);
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    transition: background 0.14s ease, color 0.14s ease;
}

.sidebar-link:hover {
    background: var(--surface);
    color: var(--text);
}

.sidebar-link.active {
    background: var(--accent-soft);
    color: #bfdbfe;
    border: 1px solid rgba(59, 130, 246, 0.18);
}

.docs-content {
    padding: 2.2rem 2.2rem 4rem;
    max-width: 860px;
}

.docs-hero {
    margin-bottom: 2.6rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.docs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.76rem;
    font-weight: 700;
    background: var(--accent-soft);
    color: #bfdbfe;
    border: 1px solid rgba(59, 130, 246, 0.18);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.docs-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.05em;
    margin-bottom: 0.85rem;
}

.docs-hero p {
    font-size: 1rem;
    color: var(--muted);
    max-width: 62ch;
}

.docs-section {
    margin-bottom: 3rem;
    scroll-margin-top: 88px;
}

.docs-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 0.9rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.docs-section h3 {
    font-size: 1.02rem;
    font-weight: 650;
    color: var(--text);
    margin: 1.4rem 0 0.55rem;
}

.docs-section p {
    color: var(--text-soft);
    margin-bottom: 0.9rem;
    font-size: 0.94rem;
}

.docs-section ul,
.docs-section ol {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.docs-section li {
    color: var(--text-soft);
    font-size: 0.93rem;
    margin-bottom: 0.42rem;
}

.docs-section li strong,
.docs-section p strong {
    color: var(--text);
}

.callout {
    padding: 1rem 1.1rem;
    border-radius: 12px;
    margin: 1rem 0 1.25rem;
    font-size: 0.92rem;
    border: 1px solid transparent;
}

.callout strong {
    display: block;
    margin-bottom: 0.2rem;
    color: inherit;
}

.callout-info {
    background: rgba(12, 26, 58, 0.9);
    border-color: rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
}

.callout-tip {
    background: rgba(5, 46, 22, 0.9);
    border-color: rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
}

.callout-warning {
    background: rgba(28, 18, 0, 0.9);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fde68a;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.step-list li {
    display: flex;
    gap: 0.9rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: #bfdbfe;
    border: 1px solid rgba(59, 130, 246, 0.18);
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 0.1rem;
}

.step-body {
    flex: 1;
}

.step-body strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.18rem;
    font-size: 0.93rem;
}

.step-body span {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.workflow-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.1rem 0;
    font-size: 0.9rem;
    overflow: hidden;
}

.workflow-table th {
    text-align: left;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--border);
}

.workflow-table td {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-soft);
    vertical-align: top;
}

.workflow-table td strong {
    color: var(--text);
}

.workflow-table tr:last-child td {
    border-bottom: none;
}

.tag {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.22rem 0.52rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.tag-business { background: var(--yellow-soft); color: #fcd34d; border-color: rgba(245, 158, 11, 0.14); }
.tag-personal { background: var(--accent-soft); color: #93c5fd; border-color: rgba(59, 130, 246, 0.14); }
.tag-income { background: var(--green-soft); color: #86efac; border-color: rgba(34, 197, 94, 0.14); }
.tag-expense { background: var(--red-soft); color: #fca5a5; border-color: rgba(239, 68, 68, 0.14); }

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.15rem 0;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
}

.feature-card-icon {
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #bfdbfe;
    margin-bottom: 0.45rem;
}

.feature-card h4 {
    font-size: 0.93rem;
    font-weight: 650;
    color: var(--text);
    margin-bottom: 0.32rem;
}

.feature-card p {
    font-size: 0.84rem;
    color: var(--muted);
    margin: 0;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-q {
    font-size: 0.93rem;
    font-weight: 650;
    color: var(--text);
    margin-bottom: 0.45rem;
}

.faq-a {
    font-size: 0.9rem;
    color: var(--text-soft);
}

.docs-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.docs-footer-copy {
    font-size: 0.86rem;
    color: var(--muted);
}

.docs-footer-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.docs-footer-links a {
    font-size: 0.86rem;
    color: var(--muted);
}

.docs-footer-links a:last-child {
    color: #93c5fd;
}

@media (max-width: 900px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        display: none;
    }

    .docs-content {
        padding: 1.5rem 1rem 3rem;
    }

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