/* ================= DOCS ================= */

.docs-hero{
    padding:120px 20px 90px;
    text-align:center;
    position:relative;
    overflow:hidden;

    background:
    radial-gradient(circle at top,
    rgba(106,92,255,0.25),
    transparent 45%),
    var(--bg);
}

.docs-hero-content{
    max-width:900px;
    margin:auto;
    position:relative;
    z-index:2;
}

.docs-badge{
    display:inline-block;
    padding:10px 20px;
    border-radius:50px;

    background:
    rgba(106,92,255,0.12);

    color:#8B7CFF;

    font-size:14px;
    font-weight:700;

    margin-bottom:24px;
}

.docs-hero h1{
    font-size:64px;
    line-height:1.08;
    margin-bottom:24px;
    color:var(--dark);
}

.docs-hero p{
    max-width:760px;
    margin:auto;
    line-height:1.9;
    font-size:18px;
    color:var(--text);
}

.docs-hero-buttons{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:18px;
    margin-top:40px;
}


/* ================= BUTTONS ================= */

.docs-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-width:190px;
    height:58px;

    padding:0 30px;

    border-radius:16px;

    text-decoration:none;
    font-weight:700;
    font-size:15px;

    transition:.3s ease;
}

.docs-btn.primary{

    background:
    linear-gradient(
    135deg,
    #6A5CFF,
    #8B7CFF);

    color:#fff;

    box-shadow:
    0 15px 40px rgba(106,92,255,0.28);
}

.docs-btn.primary:hover{

    transform:
    translateY(-4px);

    box-shadow:
    0 25px 50px rgba(106,92,255,0.4);
}

.docs-btn.secondary{

    border:1px solid var(--border);

    color:var(--dark);

    background:var(--card);
}

.docs-btn.secondary:hover{

    background:#6A5CFF;
    color:#fff;
}


/* ================= LAYOUT ================= */

.docs-layout{
    max-width:1450px;
    margin:auto;

    padding:70px 20px;

    display:grid;
    grid-template-columns:280px 1fr;
    gap:35px;
}


/* ================= SIDEBAR ================= */

.docs-sidebar{
    position:sticky;
    top:100px;
    height:fit-content;

    background:var(--card);

    border:1px solid var(--border);

    border-radius:28px;

    padding:28px;

    box-shadow:
    0 10px 40px rgba(0,0,0,0.05);
}

.docs-sidebar h3{
    margin-bottom:22px;
    color:var(--dark);
    font-size:22px;
}

.docs-sidebar a{
    display:flex;
    align-items:center;
    gap:12px;

    padding:14px 16px;

    border-radius:14px;

    text-decoration:none;

    color:var(--text);

    margin-bottom:10px;

    transition:.25s ease;
}

.docs-sidebar a:hover{

    background:#6A5CFF;
    color:#fff;

    transform:translateX(6px);
}

.docs-sidebar a.active{

    background:
    linear-gradient(
    135deg,
    #6A5CFF,
    #8B7CFF);

    color:#fff;

    box-shadow:
    0 10px 30px rgba(106,92,255,0.35);
}


/* ================= CONTENT ================= */

.docs-content{
    display:flex;
    flex-direction:column;
    gap:28px;
}

.docs-card{
    background:var(--card);

    border:1px solid var(--border);

    border-radius:30px;

    padding:38px;

    box-shadow:
    0 10px 40px rgba(0,0,0,0.04);
}


/* ================= LABEL ================= */

.card-label{
    display:inline-block;

    padding:7px 16px;

    border-radius:50px;

    background:
    rgba(106,92,255,0.12);

    color:#8B7CFF;

    font-size:12px;
    font-weight:700;
    letter-spacing:1px;

    margin-bottom:18px;
}


/* ================= TYPOGRAPHY ================= */

.docs-card h2{
    font-size:38px;
    line-height:1.2;
    margin-bottom:18px;
    color:var(--dark);
}

.docs-card p{
    color:var(--text);
    line-height:1.9;
    font-size:16px;
}


/* ================= GRID ================= */

.docs-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:25px;
}


/* ================= FEATURE CARD ================= */

.feature-card{
    background:var(--card);

    border:1px solid var(--border);

    border-radius:24px;

    padding:32px;

    transition:.35s ease;

    text-decoration:none;

    box-shadow:
    0 10px 40px rgba(0,0,0,0.04);
}

.feature-card:hover{

    transform:
    translateY(-8px);

    border-color:
    rgba(106,92,255,0.4);
}

.feature-icon{
    width:65px;
    height:65px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:20px;

    background:
    linear-gradient(
    135deg,
    #6A5CFF,
    #8B7CFF);

    font-size:26px;

    margin-bottom:22px;

    box-shadow:
    0 10px 30px rgba(106,92,255,0.28);
}

.feature-card h3{
    margin-bottom:12px;
    color:var(--dark);
    font-size:24px;
}

.feature-card p{
    color:var(--text);
    line-height:1.8;
}


/* ================= CODE ================= */

.code-block{
    position:relative;

    margin-top:24px;

    background:#0f172a;

    border-radius:22px;

    overflow:hidden;

    border:1px solid rgba(255,255,255,0.06);
}

.code-block pre{
    padding:30px;
    overflow:auto;
}

.code-block code{
    color:#e2e8f0;
    font-size:14px;
    line-height:1.9;
}

.copy-btn{
    position:absolute;
    top:14px;
    right:14px;

    border:none;
    cursor:pointer;

    background:#6A5CFF;
    color:#fff;

    padding:9px 16px;

    border-radius:10px;

    font-weight:600;

    transition:.25s ease;
}

.copy-btn:hover{
    transform:translateY(-2px);
}


/* ================= LIST ================= */

.docs-list{
    padding-left:20px;
    line-height:2.1;
    color:var(--text);
}


/* ================= CTA ================= */

.docs-cta{
    text-align:center;

    padding:70px 40px !important;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.docs-cta h2{
    font-size:44px;
    margin-bottom:18px;
    color:var(--dark);
}

.docs-cta p{
    max-width:760px;

    margin:0 auto 38px;

    line-height:1.9;
    color:var(--text);
}

.docs-cta .docs-btn{
    min-width:240px;
}


/* ================= DARK MODE ================= */

body.dark .docs-sidebar,
body.dark .docs-card,
body.dark .feature-card{

    background:#111827;

    box-shadow:
    0 10px 40px rgba(0,0,0,0.4);
}


/* ================= NOTE ================= */

.docs-note{
    margin-top:24px;

    padding:20px 22px;

    border-radius:18px;

    background:
    rgba(106,92,255,0.08);

    border:
    1px solid rgba(106,92,255,0.18);

    color:var(--text);
}


/* ================= TABLE ================= */

.docs-table{
    margin-top:25px;

    border:1px solid var(--border);

    border-radius:18px;

    overflow:hidden;
}

.table-row{
    display:grid;
    grid-template-columns:150px 1fr;
}

.table-row div{
    padding:18px 20px;

    border-bottom:1px solid var(--border);

    color:var(--text);
}

.table-head{
    background:rgba(106,92,255,0.08);
    font-weight:700;
}

.table-head div{
    color:var(--dark);
}

body.dark .table-head{
    background:rgba(106,92,255,0.12);
}


/* ================= WARNING ================= */

.docs-warning{
    margin:24px 0;

    padding:20px 22px;

    border-radius:18px;

    background:
    rgba(239,68,68,0.08);

    border:
    1px solid rgba(239,68,68,0.2);

    color:#ef4444;

    font-weight:600;
}


/* ================= RESPONSIVE ================= */

@media(max-width:1100px){

    .docs-layout{
        grid-template-columns:1fr;
    }

    .docs-sidebar{
        position:static;
    }
}

@media(max-width:768px){

    .docs-hero{
        padding:100px 20px 70px;
    }

    .docs-hero h1{
        font-size:42px;
    }

    .docs-grid{
        grid-template-columns:1fr;
    }

    .docs-card{
        padding:28px;
    }

    .docs-card h2{
        font-size:30px;
    }

    .docs-hero-buttons{
        flex-direction:column;
    }

    .docs-btn{
        width:100%;
    }

    .docs-cta{
        padding:55px 25px !important;
    }

    .docs-cta h2{
        font-size:34px;
    }

    .table-row{
        grid-template-columns:1fr;
    }
}