:root {
    --background:#050505;
    --surface:#101010;
    --surface-hover:#151515;
    --border:#242424;
    --text:#ffffff;
    --secondary:#9CA3AF;
    --accent:#38BDF8;
    --radius:18px;
    --transition:.25s ease;
}

* {
    box-sizing:border-box;
}

html {
    scroll-behavior:smooth;
}

body {
    margin:0;
    background:var(--background);
    color:var(--text);
    font-family:Arial,Helvetica,sans-serif;
    line-height:1.6;
}

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

.logo {
    position:fixed;
    top:24px;
    left:24px;
    width:42px;
    height:42px;
    z-index:10;
}

.container {
    width:100%;
    max-width:900px;
    margin:0 auto;
    padding:100px 25px 50px;
}

.documentation-header {
    text-align:center;
    margin-bottom:50px;
}

.documentation-label {
    display:inline-block;
    margin-bottom:15px;
    color:var(--accent);
    font-size:12px;
    font-weight:700;
    letter-spacing:2px;
}

.documentation-header h1 {
    margin:0;
    font-size:clamp(42px,8vw,68px);
    line-height:1.05;
    letter-spacing:-3px;
    font-weight:800;
}

.slogan {
    max-width:680px;
    margin:18px auto 0;
    color:var(--secondary);
    font-size:16px;
    line-height:1.7;
}

.documentation-index {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
    margin-bottom:60px;
}

.documentation-index a {
    padding:10px 14px;
    border:1px solid var(--border);
    border-radius:12px;
    color:var(--secondary);
    background:var(--surface);
    font-size:13px;
    transition:var(--transition);
}

.documentation-index a:hover {
    color:var(--text);
    background:var(--surface-hover);
    border-color:#3f3f3f;
}

.doc-section {
    position:relative;
    margin-bottom:70px;
    scroll-margin-top:90px;
}

.section-number {
    display:block;
    margin-bottom:10px;
    color:var(--accent);
    font-size:12px;
    font-weight:700;
    letter-spacing:1px;
}

.doc-section h2 {
    margin:0 0 12px;
    font-size:30px;
    line-height:1.2;
    letter-spacing:-1px;
}

.doc-section > p {
    max-width:700px;
    margin:0 0 22px;
    color:var(--secondary);
    font-size:15px;
}

.code-card {
    overflow:hidden;
    border:1px solid var(--border);
    border-radius:var(--radius);
    background:#0b0b0b;
}

.code-header {
    padding:11px 16px;
    border-bottom:1px solid var(--border);
    color:var(--secondary);
    font-size:12px;
    font-weight:600;
}

.code-card pre {
    overflow-x:auto;
    margin:0;
    padding:20px;
    color:#e5e7eb;
    font-family:"Courier New",monospace;
    font-size:13px;
    line-height:1.7;
}

.code-card code {
    font-family:inherit;
}

.doc-status {
    display:inline-flex;
    align-items:center;
    gap:9px;
    padding:11px 15px;
    border:1px solid var(--border);
    border-radius:12px;
    color:var(--secondary);
    background:var(--surface);
    font-size:13px;
}

.status-dot {
    width:7px;
    height:7px;
    border-radius:50%;
    background:var(--accent);
}

.documentation-footer {
    padding-top:35px;
    border-top:1px solid var(--border);
    color:var(--secondary);
    font-size:12px;
    text-align:center;
}

.documentation-footer p {
    margin:0 0 15px;
}

.documentation-footer div {
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:18px;
}

.documentation-footer a {
    transition:var(--transition);
}

.documentation-footer a:hover {
    color:var(--text);
}

@media(max-width:600px) {

    .container {
        padding:90px 18px 40px;
    }

    .documentation-header {
        margin-bottom:40px;
    }

    .documentation-header h1 {
        letter-spacing:-2px;
    }

    .documentation-index {
        justify-content:flex-start;
        margin-bottom:45px;
    }

    .documentation-index a {
        font-size:12px;
    }

    .doc-section {
        margin-bottom:55px;
    }

    .doc-section h2 {
        font-size:26px;
    }

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

    .documentation-footer div {
        gap:14px;
    }

}

@media(prefers-reduced-motion:reduce) {

    html {
        scroll-behavior:auto;
    }

}
.code-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    padding:10px 12px 10px 16px;
    border-bottom:1px solid var(--border);
    color:var(--secondary);
    font-size:12px;
    font-weight:600;
}

.copy-button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    padding:7px 10px;
    border:none;
    border-radius:9px;
    background:transparent;
    color:var(--secondary);
    font:inherit;
    font-size:11px;
    cursor:pointer;
    transition:var(--transition);
}

.copy-button svg {
    width:14px;
    height:14px;
}

.copy-button:hover {
    color:var(--text);
    background:transparent;
    border-color:#3f3f3f;
}

.copy-button.copied {
    color:#3f3f3f;
    border-color:#3f3f3f;
}

.doc-section {
    opacity:0;
    filter:blur(5px);
    transform:translateY(28px);
    transition:
        opacity .7s ease,
        filter .7s ease,
        transform .7s cubic-bezier(.22,1,.36,1);
}

.doc-section.visible {
    opacity:1;
    filter:blur(0);
    transform:translateY(0);
}

.doc-section:nth-child(even) {
    transform:translateX(-24px);
}

.doc-section:nth-child(odd) {
    transform:translateX(24px);
}

.doc-section.visible:nth-child(even),
.doc-section.visible:nth-child(odd) {
    transform:translateX(0);
}

@media(max-width:600px) {

    .copy-button {
        padding:7px 8px;
    }

    .copy-button span {
        display:none;
    }

    .copy-button svg {
        width:15px;
        height:15px;
    }

}
