:root {
    --bg: #0b0d14;
    --bg-soft: #11141d;
    --surface: #161a26;
    --surface-2: #1c2130;
    --border: #262c3d;
    --text: #e9ebf3;
    --text-dim: #9aa1b5;
    --text-faint: #6b7085;
    --accent: #7c6cf6;
    --accent-2: #38d0c9;
    --accent-3: #f6a15c;
    --danger: #f6685c;
    --radius: 14px;
    --maxw: 1180px;
    --shadow: 0 10px 30px -10px rgba(0,0,0,.5);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: radial-gradient(1100px 550px at 85% -10%, rgba(124,108,246,.20), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(56,208,201,.12), transparent 55%), var(--bg);
    color: var(--text);
    font-family: 'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

code, .mono {
    font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

::selection {
    background: rgba(124,108,246,.35);
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* NAV */
header.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(160%) blur(14px);
    background: rgba(11,13,20,.72);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -.02em;
    text-decoration: none;
}

    .brand .mark {
        width: 30px;
        height: 30px;
        border-radius: 9px;
        display: grid;
        place-items: center;
        background: linear-gradient(135deg, var(--accent), var(--accent-2));
        font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
        font-weight: 700;
        font-size: 14px;
        color: #0b0d14;
    }

nav.links {
    display: flex;
    gap: 28px;
    font-size: 14.5px;
    font-weight: 500;
}

    nav.links a {
        color: var(--text-dim);
        text-decoration: none;
        transition: color .15s;
    }

        nav.links a:hover {
            color: var(--text);
        }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    transition: border-color .15s, transform .15s;
}

    .nav-cta:hover {
        border-color: var(--accent);
        transform: translateY(-1px);
    }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
}

@media (max-width:820px) {
    nav.links {
        position: fixed;
        inset: 60px 0 auto 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg-soft);
        border-bottom: 1px solid var(--border);
        padding: 8px 24px 18px;
        transform: translateY(-130%);
        transition: transform .25s ease;
    }

        nav.links.open {
            transform: translateY(0);
        }

        nav.links a {
            padding: 12px 0;
            border-bottom: 1px solid var(--border);
        }

    .nav-toggle {
        display: block;
    }

    .nav-cta {
        display: none;
    }
}

/* HERO */
.hero {
    padding: 88px 0 56px;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 26px;
}

    .eyebrow .dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--accent-2);
        box-shadow: 0 0 0 3px rgba(56,208,201,.18);
    }

h1 {
    font-size: clamp(34px, 5.2vw, 58px);
    line-height: 1.08;
    letter-spacing: -.03em;
    margin: 0 0 22px;
    font-weight: 800;
}

    h1 .grad {
        background: linear-gradient(100deg, var(--accent), var(--accent-2) 60%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.lede {
    max-width: 680px;
    margin: 0 auto 34px;
    color: var(--text-dim);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 52px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 13px 22px;
    border-radius: 11px;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}

.btn-primary {
    background: linear-gradient(100deg, var(--accent), #9b8bff);
    color: #fff;
    box-shadow: 0 8px 22px -8px rgba(124,108,246,.6);
}

    .btn-primary:hover {
        transform: translateY(-2px);
    }

.btn-ghost {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
}

    .btn-ghost:hover {
        border-color: var(--accent);
        transform: translateY(-2px);
    }

.stats {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 22px;
    min-width: 130px;
}

    .stat b {
        display: block;
        font-size: 22px;
        font-weight: 800;
    }

    .stat span {
        font-size: 12.5px;
        color: var(--text-faint);
    }

/* NOTICE */
.notice {
    max-width: var(--maxw);
    margin: 0 auto 64px;
    padding: 0 24px;
}

.notice-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: linear-gradient(180deg, rgba(246,161,92,.09), rgba(246,161,92,.03));
    border: 1px solid rgba(246,161,92,.28);
    border-radius: var(--radius);
    padding: 18px 20px;
    font-size: 14.5px;
    color: var(--text-dim);
}

    .notice-box .ic {
        font-size: 20px;
        line-height: 1;
    }

    .notice-box strong {
        color: var(--text);
    }

    .notice-box a {
        color: var(--accent-3);
        text-decoration: underline;
        text-underline-offset: 2px;
    }

/* SECTION HEADINGS */
section {
    padding: 0 0 88px;
}

.section-head {
    max-width: 640px;
    margin: 0 auto 40px;
    text-align: center;
}

    .section-head h2 {
        font-size: clamp(26px,3.4vw,36px);
        margin: 0 0 12px;
        letter-spacing: -.02em;
        font-weight: 800;
    }

    .section-head p {
        color: var(--text-dim);
        margin: 0;
        font-size: 16px;
    }

/* GETTING STARTED */
.quickstart {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px 88px;
}

@media (max-width:860px) {
    .quickstart {
        grid-template-columns: 1fr;
    }
}

.qs-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}

    .qs-card h3 {
        margin: 0 0 8px;
        font-size: 18px;
    }

    .qs-card p {
        color: var(--text-dim);
        font-size: 14.5px;
        margin: 0 0 16px;
    }

pre {
    margin: 0;
    background: #0a0c13;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    overflow-x: auto;
    font-size: 13px;
    color: #d7dae6;
}

    pre .k {
        color: #7c6cf6;
    }

    pre .s {
        color: #38d0c9;
    }

    pre .c {
        color: #6b7085;
    }

    pre .n {
        color: #f6a15c;
    }

/* FILTER BAR */
.filterbar {
    max-width: var(--maxw);
    margin: 0 auto 30px;
    padding: 0 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.search {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 340px;
}

    .search input {
        width: 100%;
        padding: 12px 14px 12px 38px;
        border-radius: 10px;
        background: var(--surface);
        border: 1px solid var(--border);
        color: var(--text);
        font-size: 14.5px;
        font-family: inherit;
    }

        .search input:focus {
            outline: none;
            border-color: var(--accent);
        }

    .search::before {
        content: "⌕";
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-faint);
        font-size: 16px;
    }

.pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pill {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}

    .pill:hover {
        color: var(--text);
        border-color: var(--accent);
    }

    .pill.active {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
    }

.count-note {
    max-width: var(--maxw);
    margin: 0 auto 18px;
    padding: 0 24px;
    font-size: 13px;
    color: var(--text-faint);
}

/* ENDPOINT GRID */
.grid {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
    gap: 16px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .15s, transform .15s;
}

    .card:hover {
        border-color: var(--accent);
        transform: translateY(-2px);
    }

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cat-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--accent-2);
    background: rgba(56,208,201,.1);
    border: 1px solid rgba(56,208,201,.25);
    padding: 3px 9px;
    border-radius: 6px;
}

.method {
    font-size: 11px;
    font-weight: 700;
    color: #7ee787;
    background: rgba(126,231,135,.1);
    border: 1px solid rgba(126,231,135,.25);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

.card h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.card p {
    margin: 0;
    color: var(--text-dim);
    font-size: 13.8px;
    flex: 1;
}

.path-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0a0c13;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 12.5px;
    overflow: hidden;
}

    .path-row code {
        flex: 1;
        overflow-x: auto;
        white-space: nowrap;
        color: #c7ccdb;
    }

.icon-btn {
    background: none;
    border: 0;
    color: var(--text-faint);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 5px;
    flex-shrink: 0;
    transition: color .15s;
}

    .icon-btn:hover {
        color: var(--accent-2);
    }

.card-actions {
    display: flex;
    gap: 8px;
}

.try-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .try-link:hover {
        text-decoration: underline;
    }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-faint);
    display: none;
}

/* CHANGELOG */
.changelog {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.log-item {
    display: flex;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

    .log-item:last-child {
        border-bottom: none;
    }

.log-date {
    flex-shrink: 0;
    width: 110px;
    font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    font-size: 13px;
    color: var(--accent-2);
}

.log-text {
    color: var(--text-dim);
    font-size: 14.5px;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--border);
    padding: 36px 0;
    margin-top: 20px;
}

.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-faint);
    font-size: 13.5px;
}

    .footer-inner a {
        color: var(--text-dim);
        text-decoration: none;
    }

        .footer-inner a:hover {
            color: var(--accent-2);
        }

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    box-shadow: var(--shadow);
    z-index: 100;
}

    .toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
