@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    --bg: #07070a;
    --card: rgba(255, 255, 255, 0.045);
    --card-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.09);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text: #f7f7f8;
    --muted: #9696a3;
    --muted-2: #666672;
    --purple: #8b5cf6;
    --purple-light: #a78bfa;
    --blue: #6366f1;
    --max-width: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(124, 58, 237, 0.13),
            transparent 35%
        ),
        var(--bg);

    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
}

body::before {
    content: '';

    position: fixed;
    inset: 0;

    pointer-events: none;
    opacity: 0.35;

    background-image:
        radial-gradient(
            rgba(255, 255, 255, 0.12) 0.7px,
            transparent 0.7px
        );

    background-size: 28px 28px;

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

    z-index: -2;
}

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

button,
input {
    font: inherit;
}

.ambient {
    position: fixed;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    filter: blur(130px);

    pointer-events: none;
    opacity: 0.09;

    z-index: -1;
}

.ambient-one {
    top: 100px;
    left: -250px;
    background: var(--purple);
}

.ambient-two {
    top: 600px;
    right: -300px;
    background: var(--blue);
}

.navbar {
    width: min(
        calc(100% - 48px),
        var(--max-width)
    );

    height: 78px;

    margin: auto;

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

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

.brand {
    display: flex;
    align-items: center;
    gap: 11px;

    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.brand-icon {
    width: 31px;
    height: 31px;

    display: grid;
    place-items: center;

    border-radius: 9px;
    overflow: hidden;

    box-shadow:
        0 0 25px rgba(139, 92, 246, 0.25);
}

.brand-icon img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;

    margin-left: auto;
    margin-right: 35px;
}

.nav-links a {
    color: var(--muted);
    font-size: 12px;

    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 9px 14px;

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

    background: rgba(255, 255, 255, 0.04);

    font-size: 11px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

.documentation {
    width: min(
        calc(100% - 48px),
        var(--max-width)
    );

    margin: auto;

    padding: 85px 0 100px;
}

.docs-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 40px;

    margin-bottom: 45px;
}

.docs-hero h1 {
    max-width: 700px;

    margin-top: 12px;

    font-family: 'Plus Jakarta Sans', sans-serif;

    font-size: clamp(
        38px,
        5vw,
        60px
    );

    line-height: 1.08;
    letter-spacing: -3px;
}

.docs-hero h1 span {
    color: transparent;

    background:
        linear-gradient(
            100deg,
            #ffffff,
            #a78bfa 55%,
            #6366f1
        );

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

.docs-hero p {
    max-width: 600px;

    margin-top: 15px;

    color: var(--muted);
    font-size: 12px;
}

.docs-stat {
    min-width: 120px;

    padding: 18px;

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

    background: rgba(255, 255, 255, 0.03);

    text-align: center;
}

.docs-stat strong {
    display: block;

    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 25px;
}

.docs-stat span {
    color: var(--muted);
    font-size: 9px;
}

.docs-search {
    height: 50px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 0 15px;

    margin-bottom: 35px;

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

    background:
        rgba(255, 255, 255, 0.035);

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.15);
}

.search-icon {
    color: var(--muted-2);
    font-size: 20px;
}

.docs-search input {
    flex: 1;
    min-width: 0;

    border: 0;
    outline: 0;

    background: transparent;
    color: var(--text);

    font-size: 11px;
}

.docs-search input::placeholder {
    color: var(--muted-2);
}

.docs-search kbd {
    padding: 4px 7px;

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

    background: rgba(255, 255, 255, 0.04);

    color: var(--muted-2);
    font-size: 8px;
}

.documentation-layout {
    display: grid;
    grid-template-columns: 200px 1fr;

    gap: 45px;
}

.docs-sidebar {
    position: sticky;
    top: 25px;

    height: max-content;
}

.docs-sidebar-title {
    margin-bottom: 12px;

    color: var(--muted-2);

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

    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-navigation {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-item {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 8px 9px;

    border: 1px solid transparent;
    border-radius: 7px;

    background: transparent;

    color: var(--muted);

    cursor: pointer;

    text-align: left;
    font-size: 10px;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.sidebar-item:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.035);
}

.sidebar-item.active {
    color: var(--text);

    background:
        linear-gradient(
            90deg,
            rgba(139, 92, 246, 0.13),
            rgba(139, 92, 246, 0.03)
        );

    border-color:
        rgba(139, 92, 246, 0.15);
}

.sidebar-icon {
    width: 20px;
    color: var(--muted-2);
    font-size: 8px;
}

.docs-commands {
    min-width: 0;
}

.command-section {
    display: none;
}

.command-section.active {
    display: block;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    padding-bottom: 15px;
    margin-bottom: 15px;

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

.section-label {
    color: var(--purple-light);
    font-size: 8px;
}

.section-heading h2 {
    margin-top: 3px;

    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 21px;

    letter-spacing: -0.5px;
}

.command-count {
    color: var(--muted-2);
    font-size: 9px;
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 10px;
}

.command-card {
    padding: 18px;

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

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.018)
        );

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

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

    border-color: var(--border-hover);
    background: var(--card-hover);
}

.command-card.hidden {
    display: none;
}

.command-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.command-name {
    color: var(--text);

    font-family: 'Plus Jakarta Sans', sans-serif;

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

.command-prefix {
    color: var(--purple-light);
}

.command-arrow {
    color: var(--muted-2);
    font-size: 12px;

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.command-card:hover .command-arrow {
    transform: translate(2px, -2px);
    color: var(--purple-light);
}

.command-card p {
    margin-top: 8px;

    color: var(--muted);

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

.no-results {
    display: none;

    padding: 50px;

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

    background: rgba(255, 255, 255, 0.025);

    color: var(--muted);

    text-align: center;
    font-size: 11px;
}

.no-results.visible {
    display: block;
}

footer {
    width: min(
        calc(100% - 48px),
        var(--max-width)
    );

    margin: auto;

    padding: 28px 0;

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

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

    color: var(--muted-2);
    font-size: 9px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 9px;

    color: var(--text);
}

.footer-brand .brand-icon {
    width: 24px;
    height: 24px;

    border-radius: 7px;
    overflow: hidden;
}

.footer-brand .brand-icon img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
}

@media (max-width: 850px) {

    .nav-links {
        margin-right: 0;
    }

    .nav-button {
        display: none;
    }

    .documentation-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .docs-sidebar {
        position: static;
    }

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

@media (max-width: 650px) {

    .navbar {
        width: min(
            calc(100% - 30px),
            var(--max-width)
        );
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 10px;
    }

    .docs-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .docs-stat {
        width: 100%;
    }

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

    footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
