@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important
    }
}

.flow-lines {
    z-index: 0
}

:root {
    color-scheme: dark;
    --ink: #e8edf6;
    --muted: #9eabc0;
    --deep: #09111f;
    --panel: #101b2d;
    --line: #263852;
    --cyan: #38bdf8;
    --teal: #22d3ee;
    --pink: #fb7185;
    --max: 1180px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--deep);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5
}

a {
    color: inherit
}

a:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 4px
}

.editor-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(20px, 5vw, 68px);
    background: rgba(9, 17, 31, .9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px)
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .95rem;
    font-weight: 750;
    text-decoration: none
}

.brand img {
    width: 48px;
    height: 40px;
    object-fit: contain
}

.editor-nav {
    display: flex;
    gap: clamp(14px, 3vw, 32px);
    color: var(--muted);
    font-size: .84rem
}

.editor-nav a {
    text-decoration: none
}

.editor-nav a:hover {
    color: #fff
}

.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(42px, 7vw, 100px);
    align-items: center;
    max-width: var(--max);
    min-height: 700px;
    margin: auto;
    padding: 92px 24px 110px
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--cyan);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase
}

.hero h1,
.section-heading h2,
.format-copy h2 {
    max-width: 700px;
    margin: 0;
    font-size: clamp(2.7rem, 5vw, 5rem);
    line-height: 1.02;
    letter-spacing: -.055em
}

.hero-lede {
    max-width: 590px;
    margin: 28px 0 32px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.75
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 5px;
    font-size: .9rem;
    font-weight: 750;
    text-decoration: none
}

.button.primary {
    color: #06111e;
    background: var(--cyan);
    border-color: var(--cyan)
}

.button.primary:hover {
    background: #7dd3fc
}

.button.secondary {
    color: #d9e4f5
}

.button.secondary:hover {
    border-color: var(--cyan)
}

.hero-facts {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 52px;
    color: var(--muted);
    font-size: .76rem
}

.hero-facts strong {
    display: block;
    margin-bottom: 3px;
    color: var(--teal);
    font-size: .8rem
}

.editor-preview {
    overflow: hidden;
    background: #0e1829;
    border: 1px solid #314661;
    border-radius: 9px;
    box-shadow: 0 32px 100px rgba(0, 0, 0, .38);
    transform: rotate(0deg)
}

.preview-topbar,
.preview-note {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    font-size: .68rem
}

.preview-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-weight: 750
}

.preview-brand small {
    color: #7186a3;
    font-weight: 500
}

.cross-mark {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    color: #07111e;
    background: var(--cyan);
    border-radius: 5px;
    font-size: 1.4rem;
    line-height: 1
}

.preview-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    color: #8195af
}

.preview-actions b {
    padding: 6px 9px;
    color: #07111e;
    background: var(--cyan);
    border-radius: 3px;
    font-weight: 700
}

.preview-body {
    display: grid;
    grid-template-columns: 145px 1fr 145px;
    min-height: 330px
}

.preview-sidebar,
.preview-inspector {
    padding: 16px 12px;
    background: #121f33;
    font-size: .62rem
}

.preview-sidebar {
    border-right: 1px solid var(--line)
}

.preview-inspector {
    border-left: 1px solid var(--line)
}

.preview-sidebar strong,
.preview-inspector h3 {
    display: block;
    margin: 0 0 10px;
    color: #fff;
    font-size: .75rem
}

.search-box {
    display: flex;
    justify-content: space-between;
    padding: 7px 8px;
    color: #6f829c;
    background: #0a1423;
    border: 1px solid #29415c;
    border-radius: 3px
}

.catalog-group {
    display: grid;
    gap: 8px;
    margin-top: 17px;
    color: #9eb1c9
}

.catalog-group small {
    color: var(--cyan);
    font-size: .57rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase
}

.preview-inspector h4 {
    margin: 0 0 5px;
    color: #d9e4f5;
    font-size: .65rem
}

.preview-inspector p {
    margin: 0;
    color: #7186a1;
    line-height: 1.45
}

.preview-inspector hr {
    margin: 18px 0;
    border: 0;
    border-top: 1px solid var(--line)
}

.check {
    display: block;
    margin-top: 9px;
    color: #86efac;
    font-size: .6rem
}

.preview-canvas {
    position: relative;
    min-width: 0;
    overflow: hidden
}

.canvas-toolbar {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    padding: 11px 12px;
    color: #8498b2;
    background: #111d30;
    border-bottom: 1px solid var(--line);
    font-size: .59rem
}

.grid-lines {
    position: absolute;
    inset: 39px 0 0;
    background-image: linear-gradient(#21354d 1px, transparent 1px), linear-gradient(90deg, #21354d 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .5
}

.flow-node {
    position: absolute;
    z-index: 1;
    width: 116px;
    padding: 10px 9px;
    background: #18283e;
    border: 1px solid #46617e;
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .25)
}

.flow-node small {
    display: block;
    color: var(--cyan);
    font-size: .5rem;
    font-weight: 800;
    letter-spacing: .1em
}

.flow-node strong {
    display: block;
    margin: 6px 0;
    color: #fff;
    font-size: .65rem;
    line-height: 1.2
}

.flow-node code {
    color: #8ca2bc;
    font-size: .52rem;
    white-space: nowrap
}

.flow-node i {
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    background: #18283e
}

.node-one {
    top: 100px;
    left: 5%
}

.node-one i {
    right: -5px
}

.node-two {
    top: 125px;
    left: 39%;
    width: 130px
}

.node-two i:first-of-type {
    left: -5px
}

.node-two i:last-of-type {
    right: -5px
}

.node-three {
    top: 165px;
    right: 5%
}

.node-three i {
    left: -5px
}

.flow-lines {
    position: absolute;
    inset: 39px 0 0;
    width: 100%;
    height: 291px
}

.flow-lines path {
    fill: none;
    stroke: var(--teal);
    stroke-width: 2;
    stroke-dasharray: 5 5;
    opacity: .8
}

.preview-note {
    border-top: 1px solid var(--line);
    border-bottom: 0;
    color: #879bb4
}

.preview-note span {
    padding: 4px 7px;
    color: #fcd34d;
    background: #493d1d;
    border-radius: 3px;
    font-size: .59rem;
    font-weight: 700
}

.section {
    padding: 110px 24px
}

.editor-section {
    background: #0e192b;
    border-top: 1px solid var(--line)
}

.section-heading,
.feature-grid,
.command-grid,
.format-section {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto
}

.section-heading h2,
.format-copy h2 {
    font-size: clamp(2.1rem, 4vw, 3.45rem)
}

.section-heading>p:last-child {
    max-width: 650px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.75
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 52px
}

.feature-card {
    padding: 28px;
    background: #132238;
    border: 1px solid var(--line)
}

.feature-card.accent {
    border-color: #269bc6;
    box-shadow: inset 0 3px var(--cyan)
}

.feature-number,
.command-number {
    color: var(--teal);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em
}

.feature-card h3 {
    margin: 38px 0 10px;
    font-size: 1.22rem
}

.feature-card p,
.command-card p,
.format-copy>p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.7
}

.commands-section {
    background: #09111f
}

.split-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: end
}

.split-heading>p:last-child {
    margin: 0
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 54px
}

.command-card {
    padding: 25px;
    background: var(--panel);
    border: 1px solid var(--line)
}

.command-card.wide {
    grid-column: span 2
}

.command-card h3 {
    margin: 8px 0 6px;
    font-size: 1rem
}

.command-card code {
    font-family: "SFMono-Regular", Consolas, monospace
}

.command-card pre {
    overflow: auto;
    margin: 22px 0 0;
    padding: 16px;
    background: #080e18;
    border: 1px solid #1d3048;
    border-radius: 4px;
    color: #dbeafe;
    font: .78rem/1.2 "SFMono-Regular", Consolas, monospace
}

.prompt {
    color: var(--teal)
}

.command-reference {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    max-width: var(--max);
    margin: 22px auto 0;
    color: var(--muted);
    font-size: .79rem
}

.command-reference strong {
    color: var(--ink)
}

.command-reference code {
    padding: 5px 8px;
    color: #b9eaff;
    background: #11263a;
    border: 1px solid #244b68;
    border-radius: 3px
}

.format-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center
}

.format-copy>p {
    max-width: 500px;
    margin: 24px 0
}

.text-link {
    color: var(--cyan);
    font-size: .9rem;
    font-weight: 750;
    text-decoration: none
}

.text-link span {
    margin-left: 8px
}

.json-preview {
    overflow: auto;
    margin: 0;
    padding: 25px;
    background: #0d1728;
    border: 1px solid #304a68;
    border-radius: 7px;
    color: #dbeafe;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .25);
    font: .76rem/1.8 "SFMono-Regular", Consolas, monospace
}

.json-preview .key {
    color: #7dd3fc
}

.json-preview .string {
    color: #86efac
}

.json-preview .number {
    color: #fbbf24
}

.desktop-app-section {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(34px, 7vw, 44px);
    align-items: center;
    color: #fff;
    background:
        radial-gradient(circle at 88% 12%, rgba(56, 189, 248, .22), transparent 36%),
        linear-gradient(135deg, #25324b, #182239);
}

.desktop-app-copy {
    max-width: 600px
}

.desktop-app-copy .eyebrow {
    color: #d7d7d4
}

.desktop-app-copy h2 {
    max-width: 11ch;
    margin: 0;
    font-size: clamp(2.7rem, 5vw, 5rem);
    line-height: 1.02;
    letter-spacing: -.055em
}

.desktop-app-copy>p:not(.eyebrow):not(.desktop-app-status):not(.desktop-app-note) {
    max-width: 600px;
    margin: 24px 0 30px;
    color: rgba(255, 255, 255, .78);
    font-size: 1.03rem;
    line-height: 1.75
}

.desktop-app-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 9px 13px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase
}

.desktop-app-status span {
    width: 7px;
    height: 7px;
    background: #a3e635;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(163, 230, 53, .14)
}

.desktop-app-note {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .66);
    font-size: .84rem;
    line-height: 1.5
}

.desktop-app-preview {
    margin: 0;
    padding: 10px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 9px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .2)
}

.desktop-app-preview img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(255, 255, 255, .2)
}

.desktop-app-preview figcaption {
    margin-top: 12px;
    color: rgba(255, 255, 255, .66);
    font-size: .72rem;
    text-align: right
}

.editor-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px clamp(20px, 5vw, 68px);
    color: #7488a3;
    background: #070d17;
    border-top: 1px solid var(--line);
    font-size: .78rem
}

.editor-footer a {
    color: var(--cyan);
    text-decoration: none
}

@media(max-width:900px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 70px
    }

    .editor-preview {
        transform: none
    }

    .feature-grid,
    .command-grid,
    .format-section,
    .desktop-app-section,
    .split-heading {
        grid-template-columns: 1fr
    }

    .command-card.wide {
        grid-column: auto
    }

    .format-section {
        gap: 40px
    }
}

@media(max-width:680px) {
    .editor-header {
        align-items: flex-start
    }

    .editor-nav {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: flex-end;
        font-size: .75rem
    }

    .brand span {
        display: none
    }

    .hero,
    .section {
        padding-left: 18px;
        padding-right: 18px
    }

    .hero h1 {
        font-size: 2.7rem
    }

    .hero-facts {
        display: grid;
        gap: 10px
    }

    .preview-topbar,
    .preview-actions {
        align-items: flex-start
    }

    .preview-topbar {
        flex-wrap: wrap
    }

    .preview-actions {
        margin-left: 0
    }

    .preview-body {
        grid-template-columns: 1fr
    }

    .preview-sidebar,
    .preview-inspector {
        display: none
    }

    .preview-canvas {
        min-height: 330px
    }

    .node-one {
        left: 3%
    }

    .node-two {
        left: 35%
    }

    .node-three {
        right: 3%
    }

    .flow-node {
        width: 100px
    }

    .node-two {
        width: 112px
    }

    .flow-node strong {
        font-size: .59rem
    }

    .flow-node code {
        font-size: .47rem
    }

    .editor-footer {
        flex-direction: column
    }
}