.xm {
    --fp-acc: #0e8f9b;
    --fp-soft: #e5f6f7;
    --xm-ink: #0b1517;
    --xm-aqua: #c5eef2;
}

.xm-hero {
    position: relative;
    isolation: isolate;
    margin-top: -64px;
    padding: 156px 0 96px;
    overflow: clip;
    background: linear-gradient(180deg, #eefafb 0%, #fff 75%);
}

.xm-hero__bg i {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(14, 143, 155, .14) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 25%, transparent 75%);
}

.xm-hero__copy {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.xm-hero .fp-desc {
    margin-left: auto;
    margin-right: auto;
}

.xm-center {
    justify-content: center;
}

.xm-pipe {
    display: grid;
    grid-template-columns: 220px 60px minmax(0, 1fr) 60px 220px;
    align-items: center;
    max-width: 1120px;
    margin: 64px auto 0;
}

.xm-prod {
    padding: 14px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #e3eef0;
    box-shadow: 0 40px 70px -50px rgba(10, 60, 70, .5);
}

.xm-prod img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
}

.xm-prod b {
    display: block;
    margin-top: 12px;
    font-size: 15px;
}

.xm-prod span {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 12.5px;
}

.xm-prod small {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--fp-mute);
}

.xm-prod em {
    font-style: normal;
    font-weight: 700;
}

.xm-flow {
    position: relative;
    height: 2px;
    margin: 0 6px;
    background: repeating-linear-gradient(90deg, #bfe2e6 0 6px, transparent 6px 12px);
}

.xm-flow i {
    position: absolute;
    top: -3px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fp-acc);
    box-shadow: 0 0 10px rgba(14, 143, 155, .6);
    animation: xm-pkt 2.4s linear infinite;
}

.xm-flow i:nth-child(2) { animation-delay: .8s; }
.xm-flow i:nth-child(3) { animation-delay: 1.6s; }

@keyframes xm-pkt {
    0% { left: 0; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { left: calc(100% - 8px); opacity: 0; }
}

.xm-code {
    border-radius: 22px;
    background: var(--xm-ink);
    color: #d6e3e5;
    overflow: hidden;
    box-shadow: 0 50px 90px -50px rgba(10, 40, 50, .7);
}

.xm-code__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    font-size: 12.5px;
    color: #8fa6aa;
}

.xm-dots {
    display: inline-flex;
    gap: 6px;
}

.xm-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
}

.xm-code__bar em {
    margin-left: auto;
    font-style: normal;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: #9fdde3;
}

.xm-code__bar em.is-done {
    background: rgba(110, 220, 170, .14);
    color: #8ee6be;
}

.xm-code__body {
    margin: 0;
    padding: 16px 0;
    min-height: 220px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px;
    line-height: 1.9;
    white-space: normal;
    overflow: hidden;
}

.xm-ln {
    display: block;
    padding: 0 16px 0 0;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .3s, transform .3s, background .3s;
    white-space: pre;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xm-ln.is-on {
    opacity: 1;
    transform: none;
}

.xm-ln.is-cur {
    background: rgba(159, 221, 227, .07);
}

.xm-ln > em {
    display: inline-block;
    width: 36px;
    padding-right: 12px;
    text-align: right;
    font-style: normal;
    color: #4f6468;
}

.xm-pad {
    display: inline-block;
    width: 18px;
}

.xm-t {
    color: #7fd0d8;
}

.xm-v {
    color: #f3e3b3;
}

.xm-dest {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.xm-dest li {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 36px;
    padding: 0 10px;
    border-radius: 11px;
    background: #fff;
    border: 1px solid #e3eef0;
    font-size: 13px;
    transition: border-color .4s, background .4s, transform .4s;
}

.xm-dest li b {
    font-weight: 600;
}

.xm-dest li > i {
    margin-left: auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d6e2e4;
    transition: background .4s, box-shadow .4s;
}

.xm-dest li.is-on {
    border-color: #9bd8de;
    background: #f2fbfc;
    transform: translateX(-3px);
}

.xm-dest li.is-on > i {
    background: #2fb487;
    box-shadow: 0 0 0 4px rgba(47, 180, 135, .15);
}

.xm-mono {
    width: 22px;
    height: 22px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: var(--xm-ink);
    color: #9fdde3;
    font-size: 11px;
    font-weight: 700;
}

.xm-mono.is-lg {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 17px;
}

.xm-hero .fp-chips {
    margin-top: 40px;
}

.xm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.xm-ch {
    padding: 20px;
    border-radius: 22px;
    border: 1px solid #e6eef0;
    background: #fff;
    transition: border-color .3s, box-shadow .3s, background .3s;
}

.xm-ch.is-on {
    border-color: #b9e3e7;
    box-shadow: 0 24px 40px -30px rgba(14, 143, 155, .45);
}

.xm-ch__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.xm-ch:not(.is-on) .xm-mono {
    background: #eef3f4;
    color: #8aa0a4;
}

.xm-sw {
    position: relative;
    width: 42px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    background: #dbe5e7;
    cursor: pointer;
    transition: background .25s;
}

.xm-sw i {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
    transition: transform .25s;
}

.xm-ch.is-on .xm-sw {
    background: var(--fp-acc);
}

.xm-ch.is-on .xm-sw i {
    transform: translateX(18px);
}

.xm-ch b {
    display: block;
    font-size: 16px;
}

.xm-ch small {
    display: block;
    margin-top: 4px;
    font-size: 13.5px;
    color: var(--fp-mute);
    min-height: 2.8em;
}

.xm-ch__st {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eff4f5;
}

.xm-st {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
}

.xm-st i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2fb487;
    animation: fp-blink 1.6s ease-in-out infinite;
}

.xm-ch.is-on .xm-st.is-live {
    display: inline-flex;
    color: #1f8a63;
}

.xm-ch:not(.is-on) .xm-st.is-off {
    display: inline-flex;
    color: #8aa0a4;
}

.xm-copy {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 26px;
    padding: 0 9px;
    border-radius: 8px;
    background: var(--fp-soft);
    color: var(--fp-acc);
    font-size: 11.5px;
    font-weight: 600;
    opacity: 0;
    transform: scale(.9);
    transition: opacity .3s, transform .3s;
}

.xm-copy .fp-ico {
    width: 13px;
    height: 13px;
}

.xm-ch.is-on .xm-copy {
    opacity: 1;
    transform: none;
}

.xm-sec--dark {
    background: var(--xm-ink);
    color: #fff;
}

.xm-sec--dark .fp-kicker {
    color: #9fdde3;
}

.xm-split {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 64px;
    align-items: center;
}

.xm-split > * {
    min-width: 0;
}

.xm-orders {
    padding: 18px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
}

.xm-url {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(255, 255, 255, .06);
}

.xm-url__lock {
    color: #9fdde3;
    display: grid;
}

.xm-url code {
    min-width: 0;
    flex: 1;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px;
    color: #8fa6aa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xm-url code b {
    color: #f3e3b3;
    font-weight: 500;
}

.xm-url button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: var(--xm-ink);
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.xm-url button .fp-ico {
    width: 15px;
    height: 15px;
}

.xm-url button.is-spin .fp-ico {
    animation: xm-spin .6s linear;
}

@keyframes xm-spin {
    to { transform: rotate(360deg); }
}

.xm-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.xm-field {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #b7c6c9;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.xm-field .fp-ico {
    width: 15px;
    height: 15px;
    opacity: .25;
}

.xm-field.is-on {
    background: #9fdde3;
    border-color: #9fdde3;
    color: var(--xm-ink);
}

.xm-field.is-on .fp-ico {
    opacity: 1;
}

.xm-preview {
    border-radius: 16px;
    background: rgba(0, 0, 0, .3);
    border: 1px solid rgba(255, 255, 255, .06);
    overflow: hidden;
}

.xm-preview__t {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    font-size: 12.5px;
    color: #8fa6aa;
}

.xm-preview pre {
    margin: 0;
    padding: 14px;
    min-height: 210px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px;
    line-height: 1.85;
    color: #d6e3e5;
    white-space: pre;
    overflow-x: auto;
}

.xm-preview pre .xm-new {
    animation: xm-flash 1s;
}

@keyframes xm-flash {
    from { background: rgba(159, 221, 227, .18); }
}

.xm-import {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    max-width: 1080px;
    margin: 0 auto;
}

.xm-import > * {
    min-width: 0;
}

.xm-map {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 120px;
    padding: 22px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid #e6eef0;
    box-shadow: 0 40px 80px -56px rgba(10, 60, 70, .45);
}

.xm-map__col {
    display: grid;
    gap: 10px;
    align-content: start;
}

.xm-map__col p {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fp-mute);
}

.xm-src,
.xm-dst {
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 13.5px;
    transition: border-color .3s, background .3s;
}

.xm-src {
    background: var(--xm-ink);
    color: #9fdde3;
}

.xm-src code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px;
}

.xm-dst {
    border: 1px dashed #cfdfe2;
    color: #8aa0a4;
    font-weight: 600;
}

.xm-dst.is-on {
    border-style: solid;
    border-color: #9bd8de;
    background: #f2fbfc;
    color: var(--xm-ink);
}

.xm-map__lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.xm-map__lines path {
    fill: none;
    stroke: var(--fp-acc);
    stroke-width: 1.6;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset .6s cubic-bezier(.4, 0, .2, 1);
}

.xm-map__lines path.is-on {
    stroke-dashoffset: 0;
}

.xm-runs {
    padding: 18px;
    border-radius: 26px;
    background: #f5fbfc;
    border: 1px solid #e3eef0;
}

.xm-runs__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.xm-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--xm-ink);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    transition: transform .15s, box-shadow .3s;
}

.xm-btn .fp-ico {
    width: 15px;
    height: 15px;
}

.xm-btn.is-ghost {
    background: #fff;
    color: var(--xm-ink);
    border: 1px solid #dbe8ea;
}

.xm-btn.is-press {
    transform: scale(.95);
    box-shadow: 0 0 0 4px rgba(14, 143, 155, .15);
}

.xm-runlist {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.xm-runlist li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e6eef0;
}

.xm-runic {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    flex: none;
    display: grid;
    place-items: center;
}

.xm-runlist li.is-ok .xm-runic {
    background: #e7f7ef;
    color: #1f8a63;
}

.xm-runlist li.is-test .xm-runic {
    background: #fff4e3;
    color: #b7791f;
}

.xm-runic .fp-ico {
    width: 16px;
    height: 16px;
}

.xm-runlist b {
    display: block;
    font-size: 14px;
}

.xm-runlist small {
    font-size: 12.5px;
    color: var(--fp-mute);
}

.xm-runlist em {
    margin-left: auto;
    font-style: normal;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.xm-runlist li.is-ok em {
    background: #e7f7ef;
    color: #1f8a63;
}

.xm-runlist li.is-test em {
    background: #fff4e3;
    color: #b7791f;
}

.xm-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 32px;
    background: linear-gradient(135deg, #0b1517, #0e3b42);
    color: #fff;
    padding: 96px 40px;
    text-align: center;
}

.xm-cta__rain {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.xm-cta__rain span {
    position: absolute;
    top: -10%;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    color: rgba(159, 221, 227, .22);
    animation: xm-rain 9s linear infinite;
}

.xm-cta__rain span:nth-child(1) { left: 6%; animation-delay: 0s; }
.xm-cta__rain span:nth-child(2) { left: 18%; animation-delay: -3s; }
.xm-cta__rain span:nth-child(3) { left: 30%; animation-delay: -6s; }
.xm-cta__rain span:nth-child(4) { left: 64%; animation-delay: -1.5s; }
.xm-cta__rain span:nth-child(5) { left: 76%; animation-delay: -4.5s; }
.xm-cta__rain span:nth-child(6) { left: 88%; animation-delay: -7.5s; }
.xm-cta__rain span:nth-child(7) { left: 44%; animation-delay: -2s; }
.xm-cta__rain span:nth-child(8) { left: 54%; animation-delay: -5s; }

@keyframes xm-rain {
    to { transform: translateY(560px); }
}

.xm-cta__copy {
    max-width: 560px;
    margin: 0 auto;
}

.xm-cta .fp-lead {
    margin-bottom: 30px;
}

@media (max-width: 1100px) {
    .xm-pipe {
        grid-template-columns: 1fr;
        max-width: 560px;
        gap: 14px;
    }

    .xm-flow {
        width: 2px;
        height: 36px;
        margin: 0 auto;
        background: repeating-linear-gradient(180deg, #bfe2e6 0 6px, transparent 6px 12px);
    }

    .xm-flow i {
        left: -3px !important;
        animation-name: xm-pktv;
    }

    .xm-prod {
        display: grid;
        grid-template-columns: 80px 1fr;
        gap: 4px 14px;
        align-items: center;
    }

    .xm-prod img {
        grid-row: span 2;
    }

    .xm-prod b {
        margin: 0;
    }

    .xm-dest {
        grid-template-columns: 1fr 1fr;
    }

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

    .xm-split,
    .xm-import {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@keyframes xm-pktv {
    0% { top: 0; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: calc(100% - 8px); opacity: 0; }
}

@media (max-width: 720px) {
    .xm-hero {
        padding: 116px 0 72px;
    }

    .xm-pipe {
        margin-top: 44px;
    }

    .xm-code__body {
        font-size: 11.5px;
        min-height: 0;
    }

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

    .xm-orders {
        padding: 12px;
        border-radius: 22px;
    }

    .xm-map {
        padding: 14px;
        column-gap: 44px;
    }

    .xm-src,
    .xm-dst {
        padding: 0 10px;
        font-size: 12.5px;
    }

    .xm-src code {
        font-size: 11px;
    }

    .xm-cta {
        padding: 72px 20px;
        border-radius: 26px;
    }
}
