:root {
    color-scheme: dark;

    --page: #090d18;
    --surface: #111827;
    --surface-soft: #172033;
    --surface-border: rgba(255, 255, 255, 0.09);

    --text: #f8fafc;
    --text-muted: #9ca9bd;

    --primary: #8b5cf6;
    --primary-soft: rgba(139, 92, 246, 0.16);

    --success: #2dd4bf;
    --string: #86efac;
    --number: #fbbf24;
    --boolean: #c4b5fd;

    --shadow:
        0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;

    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(124, 58, 237, 0.18),
            transparent 34rem
        ),
        radial-gradient(
            circle at 90% 30%,
            rgba(45, 212, 191, 0.09),
            transparent 30rem
        ),
        var(--page);

    color: var(--text);

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

button,
input,
textarea {
    font: inherit;
}

.site-header,
.page,
.site-footer {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    min-height: 76px;

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

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

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

    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

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

    display: grid;
    place-items: center;

    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 11px;

    background: var(--primary-soft);
    color: #c4b5fd;

    font-family: ui-monospace, monospace;
}

.status-badge {
    padding: 7px 11px;

    border: 1px solid rgba(45, 212, 191, 0.24);
    border-radius: 999px;

    background: rgba(45, 212, 191, 0.08);
    color: #99f6e4;

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page {
    padding: 76px 0 50px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
    gap: 72px;
    align-items: center;
}

.eyebrow {
    display: block;
    margin-bottom: 18px;

    color: #a78bfa;

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    max-width: 680px;
    margin: 0;

    font-size: clamp(2.7rem, 6vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy > p {
    max-width: 610px;
    margin: 26px 0 0;

    color: var(--text-muted);

    font-size: 1.06rem;
    line-height: 1.75;
}

.checks {
    margin-top: 34px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.check {
    padding: 14px 16px;

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

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

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

.check span {
    color: var(--text-muted);
}

.check strong {
    color: #99f6e4;
    font-size: 0.82rem;
}

.viewer-preview {
    overflow: hidden;

    border: 1px solid var(--surface-border);
    border-radius: 18px;

    background: rgba(17, 24, 39, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.preview-toolbar {
    min-height: 54px;
    padding: 0 18px;

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

    border-bottom: 1px solid var(--surface-border);
    background: rgba(255, 255, 255, 0.025);
}

.preview-title {
    color: #d5dbea;

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

    font-size: 0.85rem;
}

.window-buttons {
    display: flex;
    gap: 7px;
}

.window-buttons span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #39445a;
}

.preview-content {
    min-height: 380px;
    padding: 28px 20px;

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

    font-size: 0.9rem;
    line-height: 1.9;
}

.tree-line {
    min-height: 30px;

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

.tree-children {
    padding-left: 27px;
}

.tree-children.is-collapsed {
    display: none;
}

.toggle {
    width: 22px;
    height: 22px;
    padding: 0;

    border: 0;
    border-radius: 5px;

    background: transparent;
    color: #9ca9bd;

    cursor: pointer;
}

.toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

.tree-spacer {
    width: 22px;
}

.tree-key {
    color: #d8b4fe;
}

.tree-type {
    padding: 1px 7px;

    border-radius: 999px;

    background: rgba(139, 92, 246, 0.13);
    color: #a78bfa;

    font-family: inherit;
    font-size: 0.7rem;
}

.tree-separator {
    color: #64748b;
}

.tree-string {
    color: var(--string);
}

.tree-number {
    color: var(--number);
}

.tree-boolean {
    color: var(--boolean);
}

.server-result {
    margin-top: 70px;
    padding: 24px;

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

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

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

.result-icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    background: rgba(45, 212, 191, 0.1);
    color: var(--success);

    font-size: 1.25rem;
    font-weight: 800;
}

.server-result h2 {
    margin: 0 0 5px;
    font-size: 1rem;
}

.server-result p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.site-footer {
    min-height: 80px;

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

    border-top: 1px solid var(--surface-border);
    color: #64748b;

    font-size: 0.83rem;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .viewer-preview {
        width: 100%;
    }
}

@media (max-width: 580px) {
    .site-header,
    .page,
    .site-footer {
        width: min(100% - 24px, 1180px);
    }

    .page {
        padding-top: 48px;
    }

    h1 {
        font-size: 3rem;
    }

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

    .preview-content {
        min-height: 320px;
        padding-inline: 14px;

        overflow-x: auto;
    }

    .site-footer {
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
    }
}