:root {
    --bg: #070910;
    --panel: #0b0e17;
    --panel-2: #10141f;
    --panel-3: #151a28;

    --text: #f7f8fb;
    --muted: #929bad;
    --muted-2: #5f6879;

    --border: rgba(255,255,255,.075);
    --border-hover: rgba(255,255,255,.15);

    --purple: #795cff;
    --blue: #38a5ff;
    --green: #35d49a;

    --header: 68px;
    --sidebar: 255px;
    --code: 410px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;

    background:
        radial-gradient(
            circle at 48% -10%,
            rgba(90,80,255,.10),
            transparent 30%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}

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

button {
    font: inherit;
}


/* =========================================================
   HEADER
   ========================================================= */

.topbar {
    position: fixed;
    z-index: 1000;

    top: 0;
    left: 0;
    right: 0;

    height: var(--header);

    display: grid;
    grid-template-columns: var(--sidebar) 1fr var(--code);

    align-items: center;

    border-bottom: 1px solid var(--border);

    background: rgba(7,9,16,.88);
    backdrop-filter: blur(22px);
}

.brand {
    height: 100%;

    display: flex;
    align-items: center;
    gap: 11px;

    padding: 0 20px;

    border-right: 1px solid var(--border);
}

.brand-mark {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    color: #fff;

    font-size: 16px;
    font-weight: 900;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--blue)
        );

    box-shadow:
        0 10px 35px rgba(88,84,255,.25);
}

.brand > span:last-child {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.brand strong {
    font-size: 14px;
    letter-spacing: -.01em;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

.topnav {
    height: 100%;

    display: flex;
    align-items: center;
    gap: 28px;

    padding: 0 30px;
}

.topnav a {
    position: relative;

    color: var(--muted);

    font-size: 12px;
    font-weight: 600;

    transition: .18s ease;
}

.topnav a:hover,
.topnav a.active {
    color: #fff;
}

.topnav a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -26px;

    height: 2px;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            var(--purple),
            var(--blue)
        );
}

.top-actions {
    height: 100%;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 0 16px;

    border-left: 1px solid var(--border);
}

.search-button {
    height: 37px;
    flex: 1;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 0 10px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--panel);

    color: var(--muted);

    cursor: pointer;
}

.search-button span {
    flex: 1;
    text-align: left;

    font-size: 11px;
}

.search-button kbd {
    padding: 3px 6px;

    border: 1px solid var(--border);
    border-radius: 5px;

    background: var(--panel-2);

    color: var(--muted-2);

    font-size: 9px;
}

.version {
    padding: 8px 9px;

    border: 1px solid rgba(121,92,255,.22);
    border-radius: 8px;

    background: rgba(121,92,255,.08);

    color: #a69aff;

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
}

.theme-button {
    width: 37px;
    height: 37px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--panel);

    color: #fff;

    cursor: pointer;
}


/* =========================================================
   THREE COLUMN LAYOUT
   ========================================================= */

.layout {
    display: grid;

    grid-template-columns:
        var(--sidebar)
        minmax(0, 1fr)
        var(--code);

    min-height: 100vh;

    padding-top: var(--header);
}


/* =========================================================
   LEFT SIDEBAR
   ========================================================= */

.sidebar {
    position: fixed;

    top: var(--header);
    bottom: 0;
    left: 0;

    width: var(--sidebar);

    padding: 20px 14px 60px;

    overflow-y: auto;

    border-right: 1px solid var(--border);

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.012),
            transparent
        );

    scrollbar-width: thin;
    scrollbar-color: #242a38 transparent;
}

.sidebar-title {
    margin: 22px 10px 8px;

    color: var(--muted-2);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .13em;
}

.sidebar-title:first-child {
    margin-top: 3px;
}

.nav-item {
    min-height: 35px;

    display: flex;
    align-items: center;

    padding: 7px 10px;

    border-radius: 8px;

    color: var(--muted);

    font-size: 11.5px;
    font-weight: 500;

    transition: .15s ease;
}

.nav-item:hover {
    color: #fff;
    background: var(--panel-2);
}

.nav-item.active {
    color: #fff;

    background:
        linear-gradient(
            90deg,
            rgba(121,92,255,.14),
            rgba(56,165,255,.025)
        );

    box-shadow:
        inset 2px 0 0 var(--purple);
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.main-content {
    grid-column: 2;

    min-width: 0;

    padding:
        37px
        clamp(28px, 4vw, 62px)
        0;
}

.breadcrumb {
    margin-bottom: 25px;

    color: var(--muted-2);

    font-size: 10px;
}

.breadcrumb span {
    margin: 0 7px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    overflow: hidden;

    padding:
        52px
        clamp(27px, 4vw, 52px)
        40px;

    border: 1px solid var(--border);
    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.034),
            rgba(255,255,255,.006)
        );
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255,255,255,.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.018) 1px,
            transparent 1px
        );

    background-size: 32px 32px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 72%
        );
}

.hero::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -290px;
    right: -90px;

    border-radius: 50%;

    background: var(--purple);

    filter: blur(105px);

    opacity: .22;

    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero-badge {
    width: fit-content;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 7px 10px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: rgba(255,255,255,.025);

    color: var(--muted);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .07em;

    text-transform: uppercase;
}

.status-dot {
    width: 7px;
    height: 7px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 4px rgba(53,212,154,.09);
}

.hero h1 {
    max-width: 720px;

    margin: 21px 0 17px;

    font-size:
        clamp(44px, 5.3vw, 68px);

    line-height: .98;

    letter-spacing: -.055em;
}

.hero h1 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            #9b8aff,
            #55b8ff
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero > p {
    max-width: 650px;

    margin: 0;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    gap: 10px;

    margin-top: 27px;
}

.btn {
    min-height: 43px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 16px;

    border-radius: 10px;

    font-size: 11px;
    font-weight: 700;

    transition: .18s ease;
}

.btn.primary {
    color: #fff;

    background:
        linear-gradient(
            135deg,
            #7258ff,
            #3f8fff
        );

    box-shadow:
        0 10px 30px rgba(75,91,255,.22);
}

.btn.primary:hover {
    transform: translateY(-1px);
}

.btn.secondary {
    border: 1px solid var(--border);

    background: rgba(255,255,255,.025);
}

.btn.secondary:hover {
    background: var(--panel-3);
}

.hero-meta {
    display: flex;
    gap: 43px;

    margin-top: 42px;
    padding-top: 20px;

    border-top: 1px solid var(--border);
}

.hero-meta div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero-meta span {
    color: var(--muted-2);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .1em;
}

.hero-meta strong {
    font-size: 10.5px;
}


/* =========================================================
   CONTENT SECTIONS
   ========================================================= */

.section {
    padding-top: 68px;
}

.section > .eyebrow {
    display: block;
}

.section-heading {
    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(240px, .8fr);

    gap: 50px;

    align-items: end;

    margin-bottom: 26px;
}

.eyebrow {
    color: #9688ff;

    font-size: 8.5px;
    font-weight: 900;

    letter-spacing: .16em;
}

.section h2,
.section-heading h2 {
    max-width: 610px;

    margin: 9px 0 0;

    font-size:
        clamp(27px, 3vw, 38px);

    line-height: 1.08;

    letter-spacing: -.035em;
}

.section-heading > p {
    margin: 0;

    color: var(--muted);

    font-size: 11.5px;
    line-height: 1.7;
}


/* =========================================================
   CAPABILITY CARDS
   ========================================================= */

.cards {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;
}

.card {
    min-height: 195px;

    display: flex;
    flex-direction: column;

    padding: 20px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background:
        linear-gradient(
            150deg,
            rgba(255,255,255,.025),
            rgba(255,255,255,.005)
        );

    transition: .2s ease;
}

.card:hover {
    transform: translateY(-2px);

    border-color: rgba(121,92,255,.3);

    background:
        linear-gradient(
            150deg,
            rgba(121,92,255,.065),
            rgba(255,255,255,.006)
        );
}

.card-icon {
    width: 37px;
    height: 37px;

    display: grid;
    place-items: center;

    margin-bottom: 25px;

    border: 1px solid rgba(121,92,255,.18);
    border-radius: 10px;

    background: rgba(121,92,255,.08);

    color: #a89cff;

    font-size: 15px;
}

.card h3 {
    margin: 0 0 7px;

    font-size: 13px;
}

.card p {
    margin: 0;

    color: var(--muted);

    font-size: 10.5px;
    line-height: 1.6;
}

.card > span {
    margin-top: auto;

    color: #9789ff;

    font-size: 9.5px;
    font-weight: 700;
}


/* =========================================================
   GET STARTED
   ========================================================= */

.steps {
    margin-top: 25px;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 16px;
}

.step {
    display: grid;

    grid-template-columns: 55px 1fr;

    gap: 18px;

    padding: 23px;

    border-bottom: 1px solid var(--border);
}

.step:last-child {
    border-bottom: 0;
}

.step > span {
    color: #9587ff;

    font-family:
        Consolas,
        monospace;

    font-size: 10px;
    font-weight: 800;
}

.step h3 {
    margin: 0 0 5px;

    font-size: 12.5px;
}

.step p {
    margin: 0;

    color: var(--muted);

    font-size: 10.5px;
    line-height: 1.6;
}


/* =========================================================
   RIGHT CODE PANEL
   ========================================================= */

.code-panel {
    position: fixed;

    top: var(--header);
    right: 0;
    bottom: 0;

    width: var(--code);

    overflow-y: auto;

    padding: 34px 19px;

    border-left: 1px solid var(--border);

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.012),
            transparent
        );
}

.code-box,
.response-box {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: #080b12;

    box-shadow:
        0 20px 60px rgba(0,0,0,.16);
}

.code-tabs {
    height: 42px;

    display: flex;
    align-items: center;
    gap: 3px;

    padding: 0 10px;

    border-bottom:
        1px solid rgba(255,255,255,.06);
}

.code-tabs button {
    padding: 6px 8px;

    border: 0;
    border-radius: 6px;

    background: transparent;

    color: #70798b;

    font-size: 9.5px;

    cursor: pointer;
}

.code-tabs button.active {
    background: rgba(255,255,255,.06);
    color: #fff;
}

pre {
    margin: 0;

    white-space: pre-wrap;
    word-break: break-word;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 10px;
    line-height: 1.75;
}

.code-box pre {
    min-height: 175px;

    padding: 18px;

    color: #a9c7ff;
}

.response-box {
    margin-top: 14px;
}

.response-heading {
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 13px;

    border-bottom:
        1px solid rgba(255,255,255,.06);

    color: #798395;

    font-size: 9.5px;
}

.response-heading strong {
    color: #54d8a4;
    font-size: 9px;
}

.response-box pre {
    padding: 18px;

    color: #9fd8ba;
}

.environment {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 14px;

    padding: 12px 13px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: var(--panel);
}

.environment div {
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 2px;
}

.environment strong {
    font-size: 10px;
}

.environment small {
    color: var(--muted-2);
    font-size: 8.5px;
}

.environment em {
    color: var(--green);

    font-size: 8.5px;
    font-style: normal;
    font-weight: 700;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    display: flex;
    justify-content: space-between;

    margin-top: 75px;

    padding: 23px 0 30px;

    border-top: 1px solid var(--border);

    color: var(--muted-2);

    font-size: 9px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1300px) {

    :root {
        --code: 350px;
    }

    .topnav {
        gap: 18px;
        padding: 0 20px;
    }

}

@media (max-width: 1100px) {

    :root {
        --sidebar: 230px;
    }

    .code-panel {
        display: none;
    }

    .topbar {
        grid-template-columns:
            var(--sidebar)
            1fr
            auto;
    }

    .layout {
        grid-template-columns:
            var(--sidebar)
            minmax(0, 1fr);
    }

    .top-actions {
        border-left: 1px solid var(--border);
    }

    .cards {
        grid-template-columns:
            repeat(2, 1fr);
    }

}

@media (max-width: 800px) {

    :root {
        --header: 60px;
    }

    .topbar {
        display: flex;
        justify-content: space-between;

        padding: 0 14px;
    }

    .brand {
        padding: 0;
        border: 0;
    }

    .topnav {
        display: none;
    }

    .top-actions {
        border: 0;
        padding: 0;
    }

    .search-button {
        width: 37px;
        flex: none;
    }

    .search-button span,
    .search-button kbd,
    .version {
        display: none;
    }

    .sidebar {
        display: none;
    }

    .layout {
        display: block;
    }

    .main-content {
        padding:
            24px
            16px
            0;
    }

    .hero {
        padding:
            36px
            22px
            28px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 500px) {

    .brand small {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-meta {
        flex-direction: column;
        gap: 14px;
    }

    .section {
        padding-top: 52px;
    }

}
