@font-face {
    font-family: "Neue Haas Grotesk Bold";
    src: url( /assets/fonts/neue_haas_grotesk_bold.otf );
}

@font-face {
    font-family: "Inter Variable";
    src: url( /assets/fonts/inter_variable.ttf );
}

@font-face {
    font-family: "Neue Haas Grotesk Light";
    src: url( /assets/fonts/neue_haas_grotesk_light.otf );
}


:root {

    /**
     * Colors
     */

    --black: #08090a;
    --black-secondary: #34343a;
    --white: #f9fafb;
    --gray: #e5e5e6;
    --muted: rgba(249,250,251,0.45);

    --pink: #ff24D0;
    --blue: #2480ff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /*
     * Typography
     */

    --font-primary: "Inter Variable", sans-serif;
    --font-light: "Neue Haas Grotesk Light", sans-serif;
    --font-bold: "Neue Haas Grotesk Bold", sans-serif;
    --font-mono: "JetBrains Mono", monospace;

    --text-xs: 12px;
    --text-sm: 14px;
    --text-md: 16px;
    --text-lg: 20px;
    --text-xl: 32px;
    --text-2xl: 48px;

    --line-height: 1.6;

    /*
     * Spacing
     */

    --space-xs: 6px;
    --space-sm: 12px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 80px;

    /*
     * Radius
     */

    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 9px;

    /*
     * Shadows
     */

    --shadow-sm:
            0 4px 12px rgba(0,0,0,0.25);

    --shadow-md:
            0 12px 30px rgba(0,0,0,0.35);

    --shadow-lg:
            0 24px 60px rgba(0,0,0,0.45);

    /*
     * Transitions
     */

    --transition-fast: 0.18s ease;
    --transition-normal: 0.28s ease;
    --transition-slow: 0.45s ease;

    /*
     * Layout
     */

    --container-width: 1280px;
    --width-md: 780px;
}


/**
 * Basic
 */

* {
    margin: 0;
    padding: 0;

    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    width: 100%;

    font-family: var(--font-primary);
    font-size: var(--text-md);
    line-height: var(--line-height);
    color: var( --white );

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    overflow-x: hidden;
    background:
            radial-gradient(circle at 20% 0%, rgba(255,80,80,.08), transparent 30%),
            radial-gradient(circle at 100% 40%, rgba(120,170,255,.06), transparent 35%),
            radial-gradient(circle at 50% 100%, rgba(255,255,255,.02), transparent 40%),
            #09090b;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    font-family: var( --font-bold );
    line-height: 1.1;

    margin-bottom: var( --space-md );
}

h1,
h2,
h3 {
    font-size: var( --text-xl );
}

h2,
h3,
h4,
h5,
h6 {
    margin: var( --space-md ) 0;
}

a {
    text-decoration: none;
}

p {
    margin: 25px 0;
}

code {
    font-family: "JetBrains Mono", monospace;
    margin: 50px 0;
}


/**
 * Modifiers
 */

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

.tab {
    padding-left: 25px;
}

.red {
    color: var( --danger );
}

.yellow {
    color: var( --warning );
}

.mute {
    color: var( --muted );
}

.strikethrough {
    text-decoration: line-through;
}


/**
 * Layout
 */

[ data-page ] {
    padding-top: calc( var( --space-2xl ) + 75px );
    padding-bottom: var( --space-2xl );
}

section {
    margin-bottom: var( --space-2xl );
}

.section-description {
    font-size: var( --text-lg );
    font-family: var( --font-primary );
    font-weight: 300;
    color: var(--muted);

    max-width: 750px;

    margin-bottom: var( --space-md );
}

.container {
    width: 100%;
    max-width: var( --container-width );

    margin: 0 auto;
}

.grid {

    width: 100%;

    position: relative;

    display: grid;
    align-items: stretch;
    gap: 1px;

    padding: 1px;


    &.grid--bg {

        background: var( --black-secondary );


        .grid-item {
            background: var( --black );
        }

    } /* &.grid--bg */


    .grid-item {

        padding: var( --space-md );

        display: flex;
        flex-direction: column;


        &.--center {
            align-items: center;
        }


        &.api-component .grid-description {
            height: 77px;
        }


        .interaction {
            width: 4px;
            height: 25px;

            margin-top: 7px;

            border-radius: 2px;
            background: var( --white );
        }

    } /* .grid-item */

    .grid-title {
        font-weight: 600;

        margin: var( --space-md ) 0;
    }

    .grid-description {
        color: var( --muted );
    }

    .icon {
        width: 150px;
    }

    .screenshot {
        width: 100%;
        margin-top: var( --space-md );
    }

} /* .grid */

.grid--5 {

    grid-template-columns: repeat( 5, 1fr );

} /* .grid--3 */

.grid--3 {

    grid-template-columns: repeat( 3, 1fr );

} /* .grid--3 */

.screenshot {
    width: 100%;
    margin: var( --space-lg ) 0;
}


/**
 * UI
 */

table {
    width: 100%;

    font-size: var( --text-sm );

    overflow: hidden;

    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-collapse: separate;
    border-spacing: 0;
    background: var( --black );
}

thead tr {
    background: linear-gradient( 180deg, var( --black ) 0%, var( --black-secondary ) 100% );
}

thead td {
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: left;

    padding: 12px 16px;
}

tbody td {
    line-height: 1.5;
    vertical-align: top;

    padding: 12px 16px;
}

tbody tr:nth-child(even) {
    background: rgba(59, 130, 246, 0.06);
}

tbody td:first-child {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: var( --text-sm );
    white-space: nowrap;
}

@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

.button {
    color: var( --black );
    text-decoration: none;

    height: 32px;

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

    padding: 6px 12px;

    cursor: pointer;
    border-radius: var( --radius-sm );
    background: var( --white );
}

.tag {
    margin: 2px 0;
    padding: 7px 15px;

    display: inline-block;

    border-radius: var( --radius-md );
    background: var( --muted );
}

.tag--small {
    margin: 2px 0;
    padding: 2px 5px;

    display: inline-block;

    border-radius: var( --radius-md );
    background: var( --black-secondary );
}

pre code.hljs {
    padding: 0 1em 1em 1em !important;
}


/**
 * Header
 */

header {

    width: 100%;
    height: 75px;

    position: fixed;
    top: 0;
    z-index: 99999;

    background: var( --black );


    .container {
        width: 100%;
        height: 75px;

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


    nav {
        display: flex;
        align-items: center;
    }

    .link {
        color: var( --white );
        margin-right: var( --space-md );
    }


    .logo {

        text-decoration: none;

        display: flex;
        align-items: center;


        img {
            height: 65px;

            margin-right: 12px;
        }

    } /* .logo */

} /* header */


/**
 * Burger menu
 */

.burger-button {

    width: 45px;
    height: 45px;

    display: none;

    justify-content: center;
    align-items: center;
    flex-direction: column;

    gap: 6px;

    cursor: pointer;
    border-radius: 14px;
    transition: .35s;
    backdrop-filter: blur( 20px );
    border: 1px solid rgba( 255,255,255, .08 );
    background: rgba( 255,255,255, .04 );


    &:hover {

        background: rgba( 255,255,255, .08 );

    }

    span {

        width: 18px;
        height: 2px;

        border-radius: 2px;
        transition: .35s;
        background: var( --white );

    }


    /**
     * Close
     */

    &.active span:first-child {

        transform:
            translateY( 4px )
            rotate( 45deg );

    }

    &.active span:last-child {

        transform:
            translateY( -4px )
            rotate( -45deg );

    }

} /* .burger-button */

.mobile-menu {

    position: fixed;
    inset: 0;
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    transition: .4s;
    backdrop-filter: blur( 25px );
    background:
        radial-gradient( circle at top, #ffffff08, transparent 40% ),
        rgba( 8,9,10, .86 );


    &.active {
        opacity: 1;
        visibility: visible;
    }

    &.active nav a{
        opacity: 1;
        transform: none;
    }

    &.active nav a:nth-child( 1 ) { transition-delay: .05s; }
    &.active nav a:nth-child( 2 ) { transition-delay: .10s; }
    &.active nav a:nth-child( 3 ) { transition-delay: .15s; }
    &.active nav a:nth-child( 4 ) { transition-delay: .20s; }


    .mobile-menu-content {
        height: 100%;

        display: flex;
        flex-direction: column;
        justify-content: center;

        padding: 35px;
    }


    nav {
        display: flex;
        flex-direction: column;
    }

    nav a {

        font-size: var( --text-xl );
        letter-spacing: -.03em;
        color: var( --white );

        padding:16px 0;

        opacity: 0;
        transform: translateY( 20px );
        transition:
            opacity .4s,
            transform .4s;


        &:hover {
            transform: translateX( 12px );
            opacity: .7;
        }

    } /* nav a */


    .mobile-links {

        margin-top: 50px;

        display: flex;
        flex-direction: column;

        gap: 18px;


        a {
            color: var( --muted );
        }

    } /* .mobile-links */


    .mobile-menu-button {
        width: 100%;
        height: 58px;

        font-weight: 600;
        color: var( --black );

        margin-top: 50px;

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

        border-radius: var( --radius-lg );
        background: var( --white );
    }

} /* .mobile-menu */

body.menu-open {
    overflow:hidden;
}


/**
 * Footer
 */

footer {

    width: 100%;

    margin: 150px auto 50px auto;
    padding: 35px;

    border-radius: var( --radius-lg );
    border: 1px solid rgba( 255,255,255, .08 );

    background:
            radial-gradient( circle at top left, rgba( 255,255,255, .05 ), transparent 35% ),
            var( --black );

    box-shadow: 0 40px 80px rgba( 0,0,0, .35 );


    .footer-top {
        display: flex;
        justify-content: space-between;
        align-items: center;

        padding-bottom: 35px;
        margin-bottom: 35px;

        border-bottom: 1px solid rgba( 255,255,255, .08 );
    }

    .footer-logo {
        font-size: var( --text-xl );
        font-weight: 700;
        letter-spacing: -0.04em;
        text-decoration: none;
        color: var( --white );
    }

    .footer-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 25px;
    }

    .footer-nav a,
    .footer__links a {
        color: var( --muted );
        text-decoration: none;

        position: relative;

        transition: .3s;
    }

    .footer-nav a:hover,
    .footer__links a:hover {
        color: var( --white );
    }

    .footer-nav a::after,
    .footer__links a::after {
        content: "";

        width: 0;
        height: 1px;

        position: absolute;
        left: 0;
        bottom: -6px;

        transition: .35s;
        background: var( --white );
    }

    .footer-nav a:hover::after,
    .footer__links a:hover::after {
        width: 100%;
    }

    .footer__bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 35px;
    }

    .footer__copyright {
        color: var( --muted );
        font-size: var( --text-md );
    }

    .footer__links {
        display: flex;
        gap: 25px;
    }

} /* footer */


.page {
    margin-left: 50px;
}


/**
 * Features
 */

.features {
    width: 100%;
}

.feature {
    width: 100%;
    min-height: 350px;

    display: flex;

    padding: 50px 0;
}

.feature-image {
    height: 325px;
}

.feature-info {
    width: 100%;
    padding: var( --space-xl );
}

.feature-banners {
    max-width: 65%;

    display: flex;
}

.feature-banner {

    width: auto;

    display: flex;


    .banner-block {
        width: 400px;

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

        position: relative;
    }

    .banner-block--from:after {
        content: "→";

        position: absolute;
        top: 50%;
        right: 25px;
    }

    .banner-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .banner-icon svg {
        width: 125px;
    }

    .banner-icon--big svg {
        width: 275px;
    }

    .banner-description {
        text-align: center;
    }

    .banner-list {
        margin-top: 12px;

        text-align: left;
    }

} /* .feature-banner */


/**
 * Section "Hero"
 */
section[ data-block="hero" ] {

    margin-top: 200px;


    h1 {
        font-size: var( --text-2xl );

        max-width: 980px;

        margin-bottom: 25px;
    }


    .screenshot-container {
        width: 100%;

        margin-top: 75px;

        border-radius: var( --radius-md );
    }

    .screenshot {
        width: 100%;
    }

} /* section[ data-block="hero" ] */


/**
 * Section "How it works"
 */
section[ data-block="how-it-works" ] {

    .interaction {

        width: calc( 100% - ( 100% / 5 ) );
        height: 4px;

        margin: -29px auto 0 auto;

        border-radius: 2px;
        background: var( --white );


        &.--down {
            width: 4px;
            height: 25px;

            margin: 0 auto;
        }

    } /* .interaction */


    .api {
        width: 175px;
        height: 175px;

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

        margin: 0 auto;

        border-radius: var( --radius-md );
        border: 1px solid var( --black-secondary );
    }

} /* section[ data-block="hero" ] */


/**
 * Section "Examples"
 */
section[ data-block="examples" ] {

    width: 100%;

    display: flex;


    .examples-info {
        width: 50%;
        padding-right: 75px;
    }

    .examples-code {
        width: 50%;
    }


    .code-tabs {
        width: max-content;

        display: flex;
        gap: 15px;

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

        border-radius: 999px;
        border: 1px solid rgba( 255,255,255, .06 );
        backdrop-filter: blur( 25px );
        background:
            rgba( 255,255,255, .04 );
    }

    .code-tab {
        color: var( --white );

        padding: 12px 22px;

        cursor: pointer;
        transition: .25s;
        border: none;
        border-radius:999px;
        background: none;
    }

    .code-tab:hover {
        background: var( --muted );
    }

    .code-tab.active {
        color: var( --black );

        background: var( --white );
        box-shadow: 0 2px 12px rgba( 0,0,0, .22 );
    }


    .code-window {
        overflow: hidden;
        border: 1px solid rgba( 255,255,255, .08 );
        box-shadow:
            0 50px 120px rgba( 0,0,0, .45 ),
            inset 0 1px rgba( 255,255,255, .05 );
        border-radius: var( --radius-lg );
        background: #0d0d10;
    }


    .file-tabs {
        display: flex;
    }

    .file-tab {

        padding: 12px 24px;

        cursor: pointer;
        transition: .2s;
        border: none;
        background: none;

        color: var( --muted );


        &:hover {
            background: var( --black-secondary );
        }

        &.active {
            color: #fff;

            border-bottom: 2px solid var( --danger );
            background: var( --black-secondary );
        }

    } /* .file-tab */


    .code-group {

        display: none;


        &.active {
            display: block;
        }

    } /* .code-group */

    .code {

        display: none;


        &.active {
            display: block;
        }

        code {
            margin: 0;
            padding: 50px 25px !important;
        }

    } /* .code */

} /* section[ data-block="examples" ] */


/**
 * Text block
 */

section[ data-block="text" ] {

    h2 {
        margin-bottom: 50px;
    }

    h3 {
        font-size: var( --text-xl );

        margin-top: 50px;
    }

    .text-container {
        max-width: var( --width-md );
    }

} /* section[ data-block="text" ] */


/**
 * Doc hrefs
 */

.doc-hrefs {
    width: 100%;

    display: grid;
    flex-wrap: wrap;
    justify-content: space-between;
    grid-template-columns: auto auto auto;
    gap: 25px;
}

.doc-href {

    color: #fff;

    padding: 30px;

    border-radius: var( --radius-lg );
    border: 1px solid var( --black-secondary );

} /* .doc-href */


/**
 * Pricing
 */

.pricing {
    width: 360px;

    color: var( --white );

    padding: 42px;
    margin: 0 auto;

    border-radius: var( --radius-lg );
    box-shadow:
            0 40px 100px rgba( 0,0,0,.45 ),
            inset 0 1px 0 rgba( 255,255,255,.08 );
    backdrop-filter: blur( 20px );
    background:
            radial-gradient( circle at top left, #ffffff22, transparent 45% ),
            linear-gradient( 180deg, #1b1b1b, #101010 );
}

.pricing-label {
    font-size: var( --text-xs );
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var( --muted );

    display: inline-flex;

    padding: 8px 14px;

    border-radius: 999px;
    background: rgba( 255,255,255, .06 );
}

.pricing-price {
    display: flex;
    align-items: flex-start;

    margin: 34px 0 12px;
}

.pricing-currency {
    font-size: var( --text-xl );
    opacity: .55;

    margin-top: 10px;
}

.pricing-value {
    font-size: 5rem;
    line-height: 5rem;
    font-weight: 700;
    letter-spacing: -.05em;

    margin-left:6px;
}

.pricing-description {
    color: var( --muted );

    margin-bottom: 40px;
}

.pricing-button {
    width: 100%;
    height: 64px;

    font-size: var( --text-md );
    font-weight: 600;

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

    cursor: pointer;
    border: 1px solid rgba( 255,255,255, .25 );
    border-radius: var( --radius-lg );
    box-shadow: 0 10px 40px rgba( 255,255,255, .12 );
    transition:
        transform .35s cubic-bezier( .22,1, .36,1 ),
        box-shadow .35s,
        background .35s;
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #ececec
        );
}

.pricing-button svg {
    width: 20px;
    height: 20px;

    transition: transform .35s;
}

.pricing-button:hover {
    transform: translateY( -3px );
    box-shadow: 0 18px 40px rgba( 255,255,255, .18 );
}

.pricing-button:hover svg {
    transform: translateX( 2px );
}

.pricing-button:active {
    transform: translateY( 0 );
}


/**
 * FAQ
 */

.faq {
    max-width: var( --width-md );
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 12px;

    overflow: hidden;
    transition:
        border-color .35s,
        transform .35s,
        box-shadow .35s;
    border-radius: var( --radius-lg );
    border: 1px solid rgba( 255,255,255, .08 );
}

.faq-item:hover {
    transform: translateY( -2px );
    border-color: rgba( 255,255,255, .15 );
}

.faq-head {
    width: 100%;

    font-size: var( --text-lg );
    font-weight: 600;
    text-align: left;
    color: var( --white );

    padding: 25px;

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

    cursor: pointer;
    border: none;
    background: transparent;
}

.faq-icon {
    width: 15px;
    height: 15px;

    position: relative;
}

.faq-icon span {
    width: 15px;
    height: 2px;

    position: absolute;
    left: 50%;
    top: 50%;

    background: #fff;
    border-radius: var( --radius-lg );
    transform: translate( -50%,-50% );
    transition: .35s;
}

.faq-icon span:last-child {
    transform:
        translate( -50%,-50% )
        rotate( 90deg );
}

.faq-item.active .faq-icon span:last-child {
    transform:
        translate( -50%,-50% )
        rotate( 0deg );
}

.faq-body {
    display: grid;
    grid-template-rows: 0fr;

    transition: grid-template-rows .45s ease;
}

.faq-item.active .faq-body {
    grid-template-rows: 1fr;
}

.faq-content {
    font-size: var( --text-md );
    line-height: 1.8;
    color: var( --muted );

    overflow: hidden;
}

.faq-item.active .faq-content{
    padding: 0 25px 25px 25px;
}


@media ( max-width: 768px ) {

    :root {
        --space-xl: 24px;
        --space-2xl: 48px;
    }

    body {
        overflow-x: hidden;
    }


    .container {
        padding: 0 35px;
    }


    header {
        backdrop-filter: blur(18px);
        background: rgba(8,9,10,.65);
    }

    header nav {
        display: none;
    }


    .burger-button{

        display: flex;

    }


    section[ data-block="hero" ] h1 {
        max-width: 100%;
    }


    .grid,
    .grid--3,
    .grid--5 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .grid-item {
        padding: 25px;
    }


    .feature {
        flex-direction: column;
        padding: 25px 0;
    }

    .feature-info {
        padding: 0;
    }

    .feature-banners {
        max-width: 100%;
        flex-direction: column;
    }

    .feature-banner .banner-icon {
        margin-right: 15px;
    }

    .feature-banner .banner-icon svg {
        width: 75px;
    }

    .feature-banner .banner-icon--big svg {
        width: 125px;
    }


    section[ data-block="examples" ] {
        flex-direction: column;
    }

    section[ data-block="examples" ] .examples-info,
    section[ data-block="examples" ] .examples-code {
        width: 100%;
        padding-right: 0;
    }

    section[ data-block="examples" ] .examples-code {
        margin-top: 25px;
    }


    .code code {
        font-size: var( --text-xs );
    }


    table {
        font-size: var( --text-xs );

        margin: 35px 0;
    }


    .pricing {
        width: 100%;
    }


    .doc-hrefs {
        grid-template-columns: auto;
    }


    .faq-head {
        font-size: var( --text-md );
    }

    .faq-content {
        font-size: var( --text-md );
    }


    footer {
        margin-top: 50px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .footer-nav {
        justify-content: flex-start;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }


    .button,
    .pricing-button{
        font-size: var( --text-md );
    }

} /* max-width: 768px */


@media ( max-width: 480px ) {

    .container {
        padding: 0 25px;
    }


    header,
    header .container {
        height: 65px;
    }

    header .logo img {
        height: 55px;
    }


    footer {
        padding: 25px;
    }

    footer .footer-nav {
        justify-content: center;
        gap: 15px;
    }

    footer .footer__links {
        justify-content: center;
        gap: 15px;
    }


    section[ data-block="hero" ] {
        margin-top: 150px;
    }

} /* max-width: 480px */