/* =========================================================
   ZAK-LAB
   LIGHT PERFORMANCE EDITION
   ========================================================= */

:root {

    --bg: #f7f9fc;
    --white: #ffffff;

    --text: #111827;
    --heading: #080d18;

    --muted: #687386;
    --muted-light: #8a94a6;

    --blue: #1677ff;
    --blue-dark: #075dcc;
    --blue-soft: #eaf3ff;

    --purple: #6855e8;

    --border: #e5e9f0;
    --border-dark: #d9dfe9;

    --shadow-small:
        0 5px 20px rgba(20, 40, 80, .05);

    --shadow:
        0 20px 60px rgba(20, 40, 80, .08);

    --radius: 22px;

    --max-width: 1180px;

    --ease:
        cubic-bezier(.2,.8,.2,1);
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    background: var(--bg);

    color: var(--text);

    font-family:
        "Inter",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;

    overflow-x: hidden;
}

img {
    max-width: 100%;
}

button,
a {
    font: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

::selection {
    background: #cfe4ff;
    color: #07152c;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {

    width:
        min(
            calc(100% - 40px),
            var(--max-width)
        );

    margin-inline: auto;
}

section {
    scroll-margin-top: 90px;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {

    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    height: 76px;

    display: flex;
    align-items: center;

    background:
        rgba(247,249,252,.96);

    border-bottom:
        1px solid transparent;

    z-index: 1000;

    transition:
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.site-header.scrolled {

    border-color: var(--border);

    box-shadow:
        0 5px 25px rgba(20,40,80,.05);
}


.nav {

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {

    display: inline-flex;

    align-items: center;

    gap: 11px;

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 1.12rem;

    font-weight: 700;

    letter-spacing: -.04em;
}

.brand-mark {

    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #1479ff,
            #6259ed
        );

    box-shadow:
        0 7px 20px rgba(35,110,240,.2);
}

.brand-mark span {

    width: 11px;
    height: 11px;

    border-radius: 3px;

    background: #fff;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav-links {

    display: flex;

    align-items: center;

    gap: 29px;

    color: #697386;

    font-size: .88rem;
}

.nav-links a {

    position: relative;

    transition:
        color .2s ease;
}

.nav-links a:hover {
    color: var(--heading);
}

.nav-links a::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    border-radius: 5px;

    background: var(--blue);

    transition:
        width .25s var(--ease);
}

.nav-links a:hover::after {
    width: 100%;
}


/* =========================================================
   NAV BUTTON
   ========================================================= */

.nav-button {

    display: inline-flex;

    align-items: center;

    padding:
        10px 17px;

    border-radius: 10px;

    background:
        var(--heading);

    color: #fff;

    font-size: .84rem;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.nav-button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 20px rgba(10,20,40,.15);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {

    min-height: 720px;

    padding:
        170px 0 110px;

    position: relative;

    overflow: hidden;
}


/* Small decorative grid */

.hero::after {

    content: "";

    position: absolute;

    right: -100px;
    top: 110px;

    width: 500px;
    height: 500px;

    background-image:
        linear-gradient(
            #dce5f2 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            #dce5f2 1px,
            transparent 1px
        );

    background-size: 35px 35px;

    opacity: .55;

    mask-image:
        radial-gradient(
            circle,
            black 0%,
            transparent 68%
        );

    pointer-events: none;
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.hero-content {

    position: relative;

    z-index: 2;

    max-width: 760px;
}

.hero-label {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding:
        7px 12px;

    border:
        1px solid #dbe7f8;

    border-radius: 999px;

    background:
        #f0f6ff;

    color:
        #4c6b91;

    font-family:
        "DM Mono",
        monospace;

    font-size: .66rem;

    letter-spacing: .08em;

    text-transform: uppercase;
}

.status-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        #22a86b;

    box-shadow:
        0 0 0 4px #d9f5e8;
}


.hero h1 {

    margin-top: 28px;

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        clamp(
            4rem,
            9vw,
            8.5rem
        );

    line-height: .86;

    letter-spacing: -.075em;

    color: var(--heading);
}

.hero h1 span {

    background:
        linear-gradient(
            100deg,
            #1677ff,
            #6259ed
        );

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;
}


.hero-description {

    max-width: 650px;

    margin-top: 32px;

    color: var(--muted);

    font-size:
        clamp(
            1rem,
            2vw,
            1.1rem
        );

    line-height: 1.8;
}


/* =========================================================
   HERO ACTIONS
   ========================================================= */

.hero-actions {

    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;

    margin-top: 32px;
}

.button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    min-height: 46px;

    padding:
        0 18px;

    border-radius: 11px;

    border:
        1px solid var(--border-dark);

    transition:
        transform .2s var(--ease),
        box-shadow .2s ease,
        background .2s ease;
}

.button-primary {

    background:
        var(--heading);

    color: #fff;

    border-color:
        var(--heading);
}

.button-primary:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 25px rgba(10,20,40,.13);
}

.button-secondary {

    background:
        #fff;

    color:
        #303a4b;
}

.button-secondary:hover {

    transform:
        translateY(-2px);

    background:
        #f9fbff;

    box-shadow:
        var(--shadow-small);
}


/* =========================================================
   HERO STATS
   ========================================================= */

.hero-stats {

    display: flex;

    gap: 42px;

    margin-top: 55px;

    flex-wrap: wrap;
}

.hero-stat strong {

    display: block;

    color:
        var(--heading);

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 1rem;
}

.hero-stat span {

    display: block;

    margin-top: 2px;

    color:
        var(--muted-light);

    font-family:
        "DM Mono",
        monospace;

    font-size: .62rem;

    letter-spacing: .06em;

    text-transform: uppercase;
}


/* =========================================================
   SECTION
   ========================================================= */

.section {

    padding:
        115px 0;
}

.section-header {

    max-width: 750px;
}

.eyebrow {

    color:
        var(--blue-dark);

    font-family:
        "DM Mono",
        monospace;

    font-size: .68rem;

    letter-spacing: .12em;

    text-transform: uppercase;
}

.section-title {

    margin-top: 14px;

    color:
        var(--heading);

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        clamp(
            2.6rem,
            6vw,
            5.2rem
        );

    line-height: .98;

    letter-spacing:
        -.06em;
}

.section-description {

    margin-top: 20px;

    color:
        var(--muted);

    max-width: 620px;

    line-height: 1.8;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about {

    background:
        #fff;

    border-top:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);
}

.about-layout {

    display: grid;

    grid-template-columns:
        .9fr 1.1fr;

    gap: 80px;
}

.about-text {

    color:
        #657084;

    font-size:
        1.12rem;

    line-height: 1.85;
}

.about-text strong {

    color:
        var(--heading);

    font-weight: 600;
}


/* =========================================================
   VALUES
   ========================================================= */

.values {

    margin-top: 35px;

    border-top:
        1px solid var(--border);
}

.value {

    display: grid;

    grid-template-columns:
        50px 1fr;

    gap: 15px;

    padding:
        22px 0;

    border-bottom:
        1px solid var(--border);
}

.value-number {

    color:
        #9ba5b5;

    font-family:
        "DM Mono",
        monospace;

    font-size: .68rem;
}

.value h3 {

    color:
        var(--heading);

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        1.25rem;
}

.value p {

    margin-top: 5px;

    color:
        var(--muted);

    font-size: .92rem;
}


/* =========================================================
   SERVICES
   ========================================================= */

.services-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;

    margin-top: 60px;
}

.service-card {

    min-height:
        270px;

    padding:
        28px;

    background:
        #fff;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow-small);

    transition:
        transform .25s var(--ease),
        border-color .25s ease,
        box-shadow .25s ease;
}

.service-card:hover {

    transform:
        translateY(-5px);

    border-color:
        #cbdcf4;

    box-shadow:
        0 18px 45px rgba(20,40,80,.09);
}

.service-icon {

    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius:
        13px;

    background:
        var(--blue-soft);

    color:
        var(--blue);

    margin-bottom:
        58px;
}

.service-icon svg {

    width: 22px;
    height: 22px;

    stroke:
        currentColor;

    fill:
        none;

    stroke-width:
        1.7;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;
}

.service-card h3 {

    color:
        var(--heading);

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        1.35rem;
}

.service-card p {

    margin-top:
        9px;

    color:
        var(--muted);

    font-size:
        .9rem;

    line-height:
        1.65;
}


/* =========================================================
   FEATURE
   ========================================================= */

.feature {

    display:
        grid;

    grid-template-columns:
        1fr 1fr;

    gap:
        15px;

    margin-top:
        60px;
}

.feature-card {

    min-height:
        470px;

    border:
        1px solid var(--border);

    border-radius:
        28px;

    overflow:
        hidden;

    background:
        #fff;

    box-shadow:
        var(--shadow-small);
}

.feature-text {

    padding:
        45px;

    display:
        flex;

    flex-direction:
        column;

    justify-content:
        flex-end;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f2f7ff
        );
}

.feature-tag {

    color:
        var(--blue-dark);

    font-family:
        "DM Mono",
        monospace;

    font-size:
        .65rem;

    letter-spacing:
        .12em;

    text-transform:
        uppercase;
}

.feature-text h2 {

    margin-top:
        18px;

    color:
        var(--heading);

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        clamp(
            2.4rem,
            5vw,
            4.5rem
        );

    line-height:
        .95;

    letter-spacing:
        -.06em;
}

.feature-text p {

    margin-top:
        20px;

    max-width:
        500px;

    color:
        var(--muted);

    line-height:
        1.7;
}


/* =========================================================
   CODE CARD
   ========================================================= */

.code-card {

    background:
        #0b1220;

    position:
        relative;

    padding:
        35px;
}

.code-window {

    width:
        100%;

    height:
        100%;

    min-height:
        390px;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius:
        18px;

    background:
        #0e1728;

    overflow:
        hidden;

    box-shadow:
        0 25px 60px rgba(5,15,35,.2);
}

.code-top {

    height:
        45px;

    display:
        flex;

    align-items:
        center;

    gap:
        7px;

    padding:
        0 15px;

    border-bottom:
        1px solid rgba(255,255,255,.07);
}

.code-dot {

    width:
        7px;

    height:
        7px;

    border-radius:
        50%;

    background:
        #657085;
}

.code {

    padding:
        27px;

    color:
        #8290a6;

    font-family:
        "DM Mono",
        monospace;

    font-size:
        .74rem;

    line-height:
        2;
}

.code .keyword {
    color:
        #75b9ff;
}

.code .property {
    color:
        #b6a4ff;
}

.code .string {
    color:
        #8ee0bc;
}

.code .white {
    color:
        #edf4ff;
}


/* =========================================================
   PROCESS
   ========================================================= */

.process-grid {

    display:
        grid;

    grid-template-columns:
        repeat(4,1fr);

    margin-top:
        60px;

    border-top:
        1px solid var(--border);
}

.process-step {

    padding:
        28px 25px 28px 0;

    border-right:
        1px solid var(--border);

    margin-right:
        25px;
}

.process-step:last-child {

    border-right:
        none;

    margin-right:
        0;
}

.process-number {

    color:
        var(--blue-dark);

    font-family:
        "DM Mono",
        monospace;

    font-size:
        .64rem;

    letter-spacing:
        .08em;
}

.process-step h3 {

    margin-top:
        48px;

    color:
        var(--heading);

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        1.3rem;
}

.process-step p {

    margin-top:
        8px;

    color:
        var(--muted);

    font-size:
        .88rem;

    line-height:
        1.7;
}


/* =========================================================
   MANIFESTO
   ========================================================= */

.manifesto {

    padding:
        145px 0;

    text-align:
        center;

    background:
        #fff;

    border-top:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);
}

.manifesto-text {

    max-width:
        900px;

    margin:
        auto;

    color:
        #a0a8b6;

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        clamp(
            2.5rem,
            6vw,
            5.8rem
        );

    line-height:
        1;

    letter-spacing:
        -.065em;
}

.manifesto-text strong {
    color:
        var(--heading);
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact {

    padding:
        110px 0;
}

.contact-box {

    padding:
        75px 40px;

    text-align:
        center;

    border:
        1px solid #d9e5f6;

    border-radius:
        30px;

    background:
        linear-gradient(
            145deg,
            #f2f7ff,
            #ffffff
        );

    box-shadow:
        var(--shadow);
}

.contact-box h2 {

    margin-top:
        15px;

    color:
        var(--heading);

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        clamp(
            3rem,
            7vw,
            6.5rem
        );

    line-height:
        .9;

    letter-spacing:
        -.07em;
}

.contact-box p {

    max-width:
        600px;

    margin:
        23px auto 30px;

    color:
        var(--muted);

    line-height:
        1.8;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {

    padding:
        50px 0 25px;

    background:
        #fff;

    border-top:
        1px solid var(--border);
}

.footer-top {

    display:
        flex;

    justify-content:
        space-between;

    gap:
        30px;
}

.footer-logo {

    font-family:
        "Space Grotesk",
        sans-serif;

    font-weight:
        700;

    font-size:
        1.6rem;

    letter-spacing:
        -.05em;
}

.footer-tag {

    margin-top:
        4px;

    color:
        var(--muted);
}

.footer-links {

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        24px;

    color:
        var(--muted);

    font-size:
        .85rem;
}

.footer-links a:hover {
    color:
        var(--heading);
}

.footer-bottom {

    display:
        flex;

    justify-content:
        space-between;

    gap:
        20px;

    margin-top:
        50px;

    padding-top:
        20px;

    border-top:
        1px solid var(--border);

    color:
        #9aa3b1;

    font-family:
        "DM Mono",
        monospace;

    font-size:
        .62rem;

    text-transform:
        uppercase;

    letter-spacing:
        .07em;
}


/* =========================================================
   SCROLL REVEAL
   Lightweight.
   No continuous animation.
   ========================================================= */

.reveal {

    opacity:
        0;

    transform:
        translateY(18px);

    transition:
        opacity .6s ease,
        transform .6s var(--ease);
}

.reveal.visible {

    opacity:
        1;

    transform:
        translateY(0);
}


/* =========================================================
   MOBILE NAV BUTTON
   ========================================================= */

.mobile-menu {

    display:
        none;

    width:
        42px;

    height:
        42px;

    border:
        1px solid var(--border-dark);

    background:
        #fff;

    border-radius:
        10px;

    cursor:
        pointer;
}

.mobile-menu span {

    display:
        block;

    width:
        17px;

    height:
        2px;

    margin:
        4px auto;

    background:
        var(--heading);

    border-radius:
        3px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width: 950px) {

    .nav-links {
        display:
            none;
    }

    .nav-button {
        display:
            none;
    }

    .mobile-menu {
        display:
            block;
    }

    .about-layout {
        grid-template-columns:
            1fr;
        gap:
            45px;
    }

    .services-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

    .feature {
        grid-template-columns:
            1fr;
    }

    .process-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

    .process-step:nth-child(2) {
        border-right:
            none;
    }
}


@media(max-width: 650px) {

    .container {
        width:
            min(
                calc(100% - 28px),
                var(--max-width)
            );
    }

    .hero {

        min-height:
            auto;

        padding:
            140px 0 85px;
    }

    .hero::after {
        width:
            300px;

        height:
            300px;

        right:
            -120px;

        top:
            180px;
    }

    .hero h1 {

        font-size:
            clamp(
                3.8rem,
                19vw,
                6rem
            );
    }

    .hero-description {
        font-size:
            .96rem;
    }

    .hero-stats {
        gap:
            25px;
    }

    .section {
        padding:
            85px 0;
    }

    .services-grid {
        grid-template-columns:
            1fr;

        margin-top:
            45px;
    }

    .service-card {
        min-height:
            245px;
    }

    .feature-card {
        min-height:
            410px;
    }

    .feature-text {
        padding:
            30px;
    }

    .code-card {
        padding:
            20px;
    }

    .code {
        padding:
            20px;

        font-size:
            .64rem;
    }

    .process-grid {
        grid-template-columns:
            1fr;
    }

    .process-step {

        border-right:
            none;

        border-bottom:
            1px solid var(--border);

        margin-right:
            0;

        padding:
            25px 0;
    }

    .process-step h3 {
        margin-top:
            25px;
    }

    .manifesto {
        padding:
            100px 0;
    }

    .contact-box {
        padding:
            60px 22px;
    }

    .footer-top {
        flex-direction:
            column;
    }

    .footer-bottom {
        flex-direction:
            column;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media(prefers-reduced-motion: reduce) {

    html {
        scroll-behavior:
            auto;
    }

    *,
    *::before,
    *::after {

        animation:
            none !important;

        transition:
            none !important;
    }

    .reveal {

        opacity:
            1;

        transform:
            none;
    }
}