:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --text: #1d2330;
    --muted: #667085;
    --line: #e4e7ec;
    --accent: #3b5bdb;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

code, pre {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text);
}

.brand:hover { text-decoration: none; }

nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

.badge {
    font-size: 11px;
    color: var(--muted);
    background: #eef0f4;
    padding: 2px 8px;
    border-radius: 999px;
}

.hero { padding: 56px 0 32px; }
.hero h1 { font-size: 30px; line-height: 1.25; margin-bottom: 14px; }
.hero p { color: var(--muted); max-width: 620px; }
.actions { margin-top: 22px; }

.button {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 6px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.button:hover { text-decoration: none; opacity: 0.92; }
.button.ghost { background: transparent; color: var(--accent); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    padding-bottom: 32px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}

.card h2 { font-size: 16px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }

.sample { padding-bottom: 48px; }
.sample h2 { font-size: 18px; margin-bottom: 12px; }

pre {
    background: #101828;
    color: #e4e7ec;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 12px;
}

.doc { padding: 40px 20px 48px; }
.doc h1 { font-size: 26px; margin-bottom: 24px; }
.doc section { margin-bottom: 32px; }
.doc h2 { font-size: 18px; margin-bottom: 10px; }
.doc p { color: var(--muted); font-size: 14px; }

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
}

th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: none; }

.footer {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 32px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}
