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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fafafa;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    background: #fff;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}

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

nav a,
nav .nav-dropdown > span {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    cursor: pointer;
}

nav a:hover,
nav .nav-dropdown:hover > span {
    color: #1a1a1a;
}

nav a.active {
    color: #1a1a1a;
    font-weight: 600;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    min-width: 180px;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a {
    display: block;
    padding: 10px 16px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.nav-dropdown-content a:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.nav-dropdown-content a.active {
    background: #f5f5f5;
    color: #1a1a1a;
    font-weight: 600;
}

/* Main */
main {
    padding: 60px 0;
}

section {
    margin-bottom: 80px;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1a1a1a;
}

h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

/* Intro */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.intro-text h2 {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 16px;
}

.description {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

.description.tagline {
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 16px;
}

.intro-code .example {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 24px;
}

.example code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

/* Features */
.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.feature-list li {
    padding: 12px 0;
    font-size: 14px;
    color: #666;
}

.feature-list li::before {
    content: '✓ ';
    color: #1a1a1a;
    font-weight: 600;
    margin-right: 8px;
}

/* Quick Start */
.quickstart-section h2 {
    text-align: center;
    margin-bottom: 24px;
}

.quickstart-code {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    overflow-x: auto;
    max-width: 700px;
    margin: 0 auto;
}

.quickstart-code code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: #333;
}

/* Doc cards */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.doc-card {
    display: block;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.doc-card:hover {
    border-color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.doc-card h3 {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.doc-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Doc page layout */
.docs-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.docs-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
    height: fit-content;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-nav a {
    padding: 10px 16px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.sidebar-nav a:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.sidebar-nav a.active {
    background: #f5f5f5;
    color: #1a1a1a;
    font-weight: 600;
}

.doc-content {
    min-width: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px;
}

.doc-content h1 {
    font-size: 32px;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.doc-content h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.doc-content h3 {
    font-size: 18px;
    margin-top: 32px;
    margin-bottom: 12px;
    color: #333;
}

.doc-content p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #333;
}

.doc-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.doc-content li {
    margin-bottom: 8px;
    color: #333;
}

.doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.doc-content th,
.doc-content td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: left;
}

.doc-content th {
    background: #f5f5f5;
    font-weight: 600;
    color: #1a1a1a;
}

.doc-content td {
    color: #333;
}

.doc-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 13px;
    color: #333;
}

.doc-content pre {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

.doc-content pre code {
    background: none;
    padding: 0;
    font-size: 13px;
    line-height: 1.6;
}

/* Start */
.start pre {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 24px;
    overflow-x: auto;
}

.start code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: #333;
}

/* Docs */
.doc-section {
    margin-bottom: 40px;
}

.doc-section pre {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    overflow-x: auto;
}

.doc-section code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

/* Footer */
footer {
    border-top: 1px solid #e0e0e0;
    padding: 40px 0;
    text-align: center;
    background: #fff;
}

footer p {
    color: #999;
    font-size: 13px;
    margin-bottom: 8px;
}

footer a {
    color: #666;
    text-decoration: none;
    margin: 0 12px;
    font-size: 13px;
}

footer a:hover {
    color: #1a1a1a;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 16px;
    }

    nav {
        gap: 16px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .intro-text h2 {
        font-size: 22px;
    }

    h2 {
        font-size: 20px;
    }

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

    .docs-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .docs-sidebar {
        position: static;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 16px;
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
    }

    .sidebar-nav a {
        white-space: nowrap;
    }

    .doc-content {
        padding: 24px;
    }

    pre {
        font-size: 12px;
        padding: 16px;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: #1a1a1a;
    color: #fff;
}
