html,
body {
    scroll-behavior: smooth;
}

/* ===== Component Arrows ===== */
.item-arrows {
    position: absolute;
    left: 50%;
    transform: translate(-50%, calc(100% + 18px));
    bottom: 0;
    width: 28px;
    height: 52px;
}

.item-arrows svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== Component Logo ===== */
.lp-logo {
    position: relative;
    width: 135px;
    height: 32px;
    display: block;
}

.lp-logo svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== Component SiteControls ===== */
.site-controls {
    position: relative;
    width: 100%;
    display: flex;
}

.site-controls__nav {
    display: flex;
}

.site-controls__nav-link {
    color: #e8e8e8;
    font-size: 14px;
    font-weight: 400;
    line-height: 32px;
    letter-spacing: -0.084px;
    transition: color var(--transition-duration) ease 0s;
}

.site-controls__nav-link.active {
    color: #1a9782;
    pointer-events: none;
}

.site-controls .btn--outline-dark {
    background-color: transparent;
    border-color: #222b2f;
}

@media only screen and (max-width: 767px) {
    .site-controls {
        flex-direction: column;
    }

    .site-controls__close {
        position: absolute;
        top: 20px;
        right: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .site-controls--header {
        display: none;
    }

    .site-controls--mobile {
        position: fixed;
        z-index: 99999;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100%;
        padding: 16px;
        background-color: #060f11;
        transform: translateX(-100%);

        &::after {
            content: '';
            position: absolute;
            top: 64px;
            left: 0;
            width: 100%;
            height: 1px;
            background-color: #1a2225;
        }
    }

    .site-controls--mobile.anim {
        transition: transform var(--transition-duration) ease 0s;
    }

    .site-controls--mobile.open {
        transform: none;
    }

    .site-controls__nav {
        flex-direction: column;
        gap: 8px;
        margin: 26px -8px 0;
    }

    .site-controls__nav-link {
        padding: 0px 8px;
        border-radius: 4px;

        &.active {
            background-color: rgba(26, 151, 130, 0.15);
        }
    }

    .site-controls--mobile .site-controls__nav {
        flex: 1 1 auto;
    }

    .site-controls--footer .site-controls__nav {
        margin-bottom: 94px;
    }

    .site-controls__actions {
        width: 100%;
        display: flex;
        gap: 8px;

        .btn {
            flex-grow: 1;
        }
    }
}

@media only screen and (min-width: 768px) {
    .site-controls {
        align-items: center;
        justify-content: space-between;

        &.site-controls--mobile {
            display: none;
        }
    }

    .site-controls__nav {
        align-items: center;
        gap: 28px;
    }

    .site-controls__actions {
        display: flex;
        align-items: center;
        gap: 8.6px;
    }
}

@media (hover: hover) {
    .site-controls__nav-link {
        cursor: pointer;
    }

    .site-controls__nav-link:hover {
        color: #1a9782;
    }
}

/* ===== Component LP ===== */
.main {
    position: relative;
    width: 100%;
    min-height: 100vh;

    color: #e8e8e8;
}

.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: calc(1200px + 20px * 2);
    padding: 0 20px;
    margin: 0 auto;
}

.section {
    position: relative;
    z-index: 4;
    width: 100%;
    background-color: #060f11;
}

.section--advantages {
    z-index: 5;
}

.section--workflow .title {
    margin-bottom: 20px;
}

.section--workflow .text {
    margin-bottom: 24px;
}

.section__blure {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 50%;
    transform: translateX(-45%);
    width: 45%;
    height: 100%;
}

.section__blure-el {
    position: absolute;
}

.section__blure-el span {
    position: absolute;
    background-color: #1a9782;
}

.section__blure-el::after {
    content: '';
    position: absolute;
    width: 198px;
    height: 198px;
    border-radius: 50%;
    opacity: 0.5;
    background: linear-gradient(180deg, #1a9782 0%, rgba(20, 114, 98, 0.8) 48.89%, rgba(8, 49, 42, 0) 100%);
    filter: blur(70px);
}

.section__wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section__grid {
    width: 100%;
}

.section__grid--stacked,
.section__grid--linear {
    max-width: 488px;
}

.section__grid--linear {
    display: flex;
    flex-direction: column;
}

.section:not(.section--workflow, .section--intro) .title {
    margin-bottom: 24px;
}

.section--workflow .title {
    margin-bottom: 20px;
}

.section--workflow .text {
    margin-bottom: 24px;
}

.intro {
    overflow: hidden;

    @media only screen and (max-width: 575px) {
        &::after {
            content: '';
            position: absolute;
            z-index: 1;
            left: 0;
            bottom: -218px;
            width: 100%;
            height: 689px;
            border-radius: 1000px;
            opacity: 0.5;
            background: rgba(26, 151, 130, 0.80);
            filter: blur(200px);
        }
    }
}

.intro__wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.intro__wrap-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro__wrap-row:last-of-type {
    gap: 8px;
}

.intro__wrap-row:last-of-type .text {
    color: #616667;
}

.intro__charts {
    position: relative;
    margin: 0 auto;
}

.intro__charts::after {
    content: '';
    position: absolute;
    z-index: 1;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 489px;
    aspect-ratio: 1/1;
    border-radius: 1000px;
    opacity: 0.5;
    background: rgba(26, 151, 130, 0.8);
    filter: blur(200px);
}

.intro__charts-el {
    overflow: hidden;
    z-index: 2;
    background: #060f11;
}

.intro__charts-el--big {
    position: relative;
    width: 100%;
    border: 0.5px solid #222b2f;
    border-bottom: none;
    background: #060f11;
}

.intro__charts-el img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    pointer-events: none;
}

.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: 100%;
    max-width: calc(800px + 20px * 2);
    margin: 0 auto;
    padding: 20px;
}

.header__content {
    width: 100%;
    height: 52px;
    border-radius: 6px;
    border: 1px solid #222b2f;
    background-color: rgba(6, 15, 17, 0.6);
    backdrop-filter: blur(10px);
}

.footer {
    position: relative;
    width: 100%;
    border-top: 1px solid #222b2f;
    background: #121b1d;
}

.footer__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__terms {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer__terms-el {
    color: #616667;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    transition: color var(--transition-duration) ease 0s;
}

.item {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #222b2f;
    background: rgba(6, 15, 17, 0.6);
    backdrop-filter: blur(10px);
}

.item--step:last-of-type {
    overflow: hidden;
}

.item--step::after {
    content: '';
    position: absolute;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 154px;
    background: linear-gradient(180deg, #060f11 0%, rgba(6, 15, 17, 0.65) 100%);
    border-radius: inherit;
    pointer-events: none;
}

.item__icon {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    border: 1px solid rgba(26, 151, 130, 0.5);
    background: rgba(26, 151, 130, 0.06);

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

.item__icon svg {
    width: 24px;
    height: 24px;
}

.item__title {
    font-family: 'JetBrains Mono', 'monospace';
    color: #e8e8e8;
    font-weight: 700;
}

.item--list .item__title {
    padding-right: 58px;
}

.item__text {
    color: #babcbc;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;

    br {
        @media only screen and (max-width: 575px) {
            display: none;
        }
    }
}

.item__list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.item__list-el {
    position: relative;
    padding-left: 12px;
}

.item__list-el::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: #1a9782;
}

.item__stage {
    position: relative;
    margin-bottom: 13px;
    pointer-events: none;
}

.item__stage .input {
    pointer-events: none;
}

.item__stage--su {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item__stage--su input {
    color: #64748b;
}

.item__stage--gp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.item__stage--gp .input-label__check {
    border-radius: 50%;
    border-color: var(--color-ink-dark);
}

.item__stage--gp .input:last-of-type {
    display: none !important;
}

.grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    display: grid;
    z-index: 1;
    pointer-events: none;
    background-color: transparent;
    opacity: 0.4;
}

.grid__cell {
    position: relative;
    z-index: 1;
    width: 100%;
    background-color: transparent;
    box-shadow: inset 0 0 0 0.5px #1a2225;
}

.grid::after {
    content: '';
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #060f11 0%, transparent 100%);
}

.grid--reverse {
    top: auto;
    bottom: 0;
}

.grid--reverse::after {
    background: linear-gradient(to top, transparent 0%, #060f11 100%);
}

.open-sidebar {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(2px);
    background-color: transparent;
    cursor: pointer;
}

@media only screen and (max-width: 767px) {
    .header__content {
        padding: 8px 16px 8px 10px;
    }

    .header__content-mobile {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

@media only screen and (max-width: 575px) {
    .section__blure-el--left {
        top: 47px;
        left: 4px;
        width: 131px;
        height: 275px;
    }

    .section__blure-el--right {
        bottom: -70px;
        right: 4px;
        width: 131px;
        height: 241px;
    }
    .section--features .section__wrap {
        padding: 80px 0 0;
    }

    .section--advantages .section__wrap {
        padding: 80px 0 0;
    }

    .section--workflow .section__wrap {
        padding: 80px 0;
    }

    .section__grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .section__grid--stacked {
        margin-bottom: 104px;
    }

    .section .btn {
        width: 100%;
    }

    .intro {
        padding: 92px 0 0;
    }

    .intro__wrap {
        margin-bottom: 32px;
    }

    .intro__wrap-row:first-of-type {
        gap: 16px;
    }

    .intro__charts {
        width: 100%;
        height: auto;
    }

    .intro__charts-el--big {
        border-radius: 8px 8px 0 0;
        padding-bottom: 164.03%;
    }

    .intro__charts-el--left {
        display: none;
    }

    .intro__charts-el--right {
        display: none;
    }

    .footer__content {
        padding: 40px 0;
    }

    .footer__terms {
        position: absolute;
        width: 100%;
        left: 0;
        bottom: 116px;
        padding: 0px 20px;
    }

    .item__icon {
        margin-bottom: 12px;
    }

    .item__title {
        font-size: 16px;
        line-height: 24px;
        letter-spacing: -0.096px;
        margin-bottom: 10px;
    }

    .item__stage--gp {
        grid-template-columns: 1fr;
    }

    .item__stage--gp .input:nth-child(2n) {
        display: none;
    }
}

@media only screen and (min-width: 576px) and (max-width: 991px) {
    .item__list {
        padding-right: 58px;
    }
}

@media only screen and (min-width: 576px) {
    .section--intro .btn,
    .section--workflow .btn {
        width: 260px;
    }

    .section__blure-el--left {
        top: 17px;
        left: -76px;
        width: 221px;
        height: 278px;
    }

    .section__blure-el--left::after {
        top: 36px;
        left: 2px;
    }

    .section__blure-el--right {
        bottom: 34px;
        right: -62px;
        width: 183px;
        height: 252px;
    }

    .section__blure-el--right::after {
        top: 42px;
        right: 17px;
    }
    .section--features .section__wrap {
        padding: 120px 0 0;
    }

    .section--advantages .section__wrap {
        padding: 120px 0 0;
    }

    .section--workflow .section__wrap {
        padding: 120px 0;
    }

    .section__grid {
        gap: 20px;
    }

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

    .section__grid--stacked {
        display: flex;
        flex-direction: column;
        margin-bottom: 120px;
        gap: 85px;
    }

    .intro {
        padding: 132px 0 0;
    }

    .intro__wrap {
        margin-bottom: 60px;
    }

    .intro__wrap .text {
        max-width: 612px;
        margin-left: auto;
        margin-right: auto;
    }

    .intro__wrap-row:first-of-type {
        gap: 20px;
    }

    .intro__charts {
        width: 840px;
        height: 360px;
    }

    .intro__charts-el--big {
        height: 100%;
        border-radius: 12px 12px 0 0;
    }

    .intro__charts-el--left {
        position: absolute;
        z-index: 3;
        left: -156px;
        bottom: 50px;
        width: 282px;
        height: 180px;
        border-radius: 5px;
        box-shadow: 0 8.854px 33.204px -5.534px rgba(26, 151, 130, 0.1);
    }

    .intro__charts-el--right {
        position: absolute;
        z-index: 3;
        right: -132px;
        bottom: 113px;
        width: 250px;
        height: 136px;
        border-radius: 4.5px;
        box-shadow: 0 7.874px 29.526px -4.921px rgba(26, 151, 130, 0.1);
    }

    .footer__content {
        padding: 60px 0;
    }

    .item--center {
        text-align: center;
        align-items: center;
    }

    .item--step {
        padding: 24px 24px 20px;
    }

    .item__icon {
        margin-bottom: 6px;
    }

    .item--list .item__icon {
        position: absolute;
        top: 20px;
        right: 20px;
        margin-bottom: 0;
    }

    .item__title {
        font-size: 20px;
        line-height: 36px;
        letter-spacing: -0.12px;
    }

    .item__list {
        margin-top: 13px;
    }
}

@media only screen and (min-width: 768px) {
    .header__content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 8px 8px 10px;
    }

    .header__content-mobile {
        display: none;
    }
}

@media only screen and (min-width: 992px) {
    .section__grid--three-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (hover: hover) {
    .footer__terms-el {
        cursor: pointer;
    }

    .footer__terms-el:hover {
        color: #e8e8e8;
    }
}

/* ===== Component Transactions ===== */
.transactions-cloud {
    position: relative;
    width: 100%;
    height: 138px;
}

.transaction {
    position: absolute;
    top: var(--y);
    left: var(--x);
    transform: scale(var(--scale));
    display: flex;
    align-items: center;
}

.transaction__icon {
    position: relative;
    margin-right: 6px;
    display: flex;
}

.transaction__amount {
    font-family: 'JetBrains Mono', 'monospace';
    color: #1a9782;
    font-size: 14px;
    font-weight: 800;
    line-height: 24px;
    white-space: nowrap;
}

@media only screen and (max-width: 480px) {
    .transactions-cloud {
        transform: translateX(-64px);
    }
}
