/* =========================================================
   BASE
   ========================================================= */

:root {
    --blue: #1499e8;
    --blue-dark: #0879c7;
    --navy: #102f4a;

    --text: #183b57;
    --text-light: #66839a;

    --ice: #f2f9fd;
    --ice-blue: #e7f5fc;

    --border: #dcecf5;
    --white: #ffffff;

    --container: 1180px;

    --radius: 14px;

    --shadow:
        0 15px 45px rgba(25, 100, 145, 0.08);
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}


body {
    margin: 0;

    background: var(--white);

    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;
}


a {
    color: inherit;
    text-decoration: none;
}


.container {
    width: min(
        calc(100% - 48px),
        var(--container)
    );

    margin-inline: auto;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.eyebrow {
    margin-bottom: 14px;

    color: var(--blue);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;
}


h1,
h2,
h3,
p {
    margin-top: 0;
}


h2 {
    margin-bottom: 20px;

    color: var(--navy);

    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.1;

    letter-spacing: -1.5px;
}


p {
    color: var(--text-light);
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 100;

    height: 76px;

    background: rgba(255, 255, 255, 0.9);

    backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(220, 236, 245, 0.7);
}


.header-inner {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    color: var(--navy);

    font-size: 21px;
    font-weight: 700;

    letter-spacing: -0.7px;
}


.logo > span:last-child > span {
    color: var(--blue);
}


/* Hexagon logo */

.logo-mark {
    width: 30px;
    height: 34px;

    display: grid;
    place-items: center;

    position: relative;

    clip-path: polygon(
        50% 0,
        92% 25%,
        92% 75%,
        50% 100%,
        8% 75%,
        8% 25%
    );

    background: linear-gradient(
        145deg,
        #0b83d5,
        #55c7ff
    );
}


.logo-mark span {
    width: 15px;
    height: 17px;

    clip-path: polygon(
        50% 0,
        92% 25%,
        92% 75%,
        50% 100%,
        8% 75%,
        8% 25%
    );

    background: white;
}


.navigation {
    display: flex;
    align-items: center;
    gap: 32px;
}


.navigation a {
    position: relative;

    color: #496b83;

    font-size: 13px;

    transition:
        color .2s ease;
}


.navigation a:hover,
.navigation a.active {
    color: var(--blue);
}


.navigation a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -10px;

    height: 2px;

    background: var(--blue);
}


.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    min-height: 44px;

    padding: 0 23px;

    border-radius: 100px;

    font-size: 13px;
    font-weight: 600;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.button:hover {
    transform: translateY(-2px);
}


.button-primary {
    color: white;

    background: linear-gradient(
        135deg,
        #0798e9,
        #29a9ee
    );

    box-shadow:
        0 10px 25px rgba(20, 153, 232, .22);
}


.button-primary:hover {
    box-shadow:
        0 14px 30px rgba(20, 153, 232, .30);
}


.button-outline {
    border: 1px solid var(--blue);

    color: var(--blue);
}


.button-large {
    min-height: 56px;

    padding-inline: 30px;
}


.menu-button {
    display: none;

    border: 0;
    background: transparent;

    cursor: pointer;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 650px;

    padding-top: 76px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 75% 30%,
            rgba(155, 220, 250, .24),
            transparent 35%
        ),
        linear-gradient(
            120deg,
            #ffffff 35%,
            #f0f9fd 100%
        );
}


.hero-inner {
    min-height: 574px;

    display: grid;

    grid-template-columns:
        minmax(0, .9fr)
        minmax(0, 1.1fr);

    align-items: center;
}


.hero-content {
    position: relative;

    z-index: 2;

    padding-block: 80px;
}


.hero h1 {
    margin-bottom: 16px;

    color: var(--navy);

    font-size: clamp(64px, 7vw, 92px);

    line-height: .9;

    letter-spacing: -5px;
}


.hero h1 span {
    color: var(--blue);
}


.hero h2 {
    max-width: 560px;

    margin-bottom: 20px;

    font-size: clamp(25px, 3vw, 36px);

    line-height: 1.18;

    letter-spacing: -1px;
}


.hero p {
    max-width: 520px;

    font-size: 15px;

    line-height: 1.8;
}


.hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;

    margin-top: 30px;
}


.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--blue);

    font-size: 13px;
    font-weight: 600;
}


.text-link span {
    transition: transform .2s ease;
}


.text-link:hover span {
    transform: translateX(4px);
}


/* Hero visual */

.hero-visual {
    height: 100%;

    position: relative;

    overflow: hidden;
}


.hex {
    position: absolute;

    clip-path: polygon(
        50% 0,
        93% 25%,
        93% 75%,
        50% 100%,
        7% 75%,
        7% 25%
    );

    background: rgba(87, 190, 239, .16);
}


.hex-large {
    width: 280px;
    height: 320px;

    top: 60px;
    right: 90px;
}


.hex-small {
    width: 48px;
    height: 54px;

    top: 150px;
    left: 40px;
}


.mountains {
    position: absolute;

    inset:
        auto -40px
        100px
        -40px;

    height: 270px;
}


.mountain {
    position: absolute;

    bottom: 0;

    clip-path: polygon(
        0 100%,
        18% 55%,
        30% 68%,
        52% 20%,
        64% 47%,
        80% 30%,
        100% 100%
    );
}


.mountain-back {
    inset: 45px 0 0 0;

    background: #d5edf8;

    opacity: .8;
}


.mountain-middle {
    inset:
        20px
        60px
        0
        130px;

    background: #b6dff1;
}


.mountain-front {
    inset:
        0
        140px
        0
        250px;

    background:
        linear-gradient(
            145deg,
            #9dd4ee,
            #d9f0fa
        );
}


.water {
    position: absolute;

    left: -10%;
    right: -10%;
    bottom: 0;

    height: 115px;

    background:
        repeating-linear-gradient(
            175deg,
            rgba(255,255,255,.8) 0,
            rgba(255,255,255,.8) 2px,
            transparent 2px,
            transparent 11px
        ),
        linear-gradient(
            to bottom,
            rgba(160, 220, 243, .5),
            rgba(225, 246, 253, .15)
        );

    transform: perspective(200px) rotateX(5deg);
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section {
    position: relative;

    padding-block: 105px;

    overflow: hidden;
}


.section-grid {
    display: grid;

    grid-template-columns:
        minmax(280px, .75fr)
        minmax(0, 1.25fr);

    gap: 80px;

    align-items: start;
}


.section-intro {
    max-width: 390px;
}


.section-intro p {
    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   SERVICES
   ========================================================= */

.services {
    background: #fbfdfe;
}


.service-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 48px 30px;
}


.service {
    position: relative;
}


.service-icon {
    width: 52px;
    height: 58px;

    display: grid;
    place-items: center;

    margin-bottom: 18px;

    clip-path: polygon(
        50% 0,
        93% 25%,
        93% 75%,
        50% 100%,
        7% 75%,
        7% 25%
    );

    border: 1px solid #b8e1f5;

    background: #f6fcff;
}


.service-icon svg {
    width: 24px;
    height: 24px;

    fill: none;
    stroke: var(--blue);

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.service h3,
.about-item h3,
.project-card h3,
.technology-item strong {
    margin-bottom: 7px;

    color: var(--navy);

    font-size: 14px;
}


.service p {
    margin: 0;

    font-size: 12px;

    line-height: 1.65;
}


.background-hex {
    position: absolute;

    clip-path: polygon(
        50% 0,
        93% 25%,
        93% 75%,
        50% 100%,
        7% 75%,
        7% 25%
    );

    background: rgba(108, 201, 241, .12);

    pointer-events: none;
}


.hex-bg-1 {
    width: 75px;
    height: 85px;

    left: 0;
    bottom: 60px;
}


.hex-bg-2 {
    width: 45px;
    height: 51px;

    left: 125px;
    bottom: 100px;
}


/* =========================================================
   TECHNOLOGY
   ========================================================= */

.technology {
    background: white;
}


.technology .text-link {
    margin-top: 24px;
}


.technology-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 38px 24px;
}


.technology-item {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}


.technology-icon {
    width: 70px;
    height: 76px;

    display: grid;
    place-items: center;

    margin-bottom: 12px;

    clip-path: polygon(
        50% 0,
        93% 25%,
        93% 75%,
        50% 100%,
        7% 75%,
        7% 25%
    );

    background: #f1f9fd;

    color: #187dc0;

    font-size: 25px;
    font-weight: 800;

    font-style: italic;
}


.technology-icon.go {
    font-style: normal;

    font-size: 29px;
}


.technology-icon.db,
.technology-icon.mongo {
    font-size: 20px;
}


.technology-item small {
    color: #7892a5;

    font-size: 10px;
}


/* =========================================================
   PROJECTS
   ========================================================= */

.projects {
    background: var(--ice);
}


.project-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}


.project-card {
    min-height: 270px;

    display: flex;
    flex-direction: column;

    padding: 28px;

    background: white;

    border: 1px solid #e3f0f6;

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.project-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 22px 55px rgba(25, 100, 145, .12);
}


.project-symbol {
    width: 45px;
    height: 50px;

    display: grid;
    place-items: center;

    margin-bottom: 20px;

    clip-path: polygon(
        50% 0,
        93% 25%,
        93% 75%,
        50% 100%,
        7% 75%,
        7% 25%
    );

    background: #eaf7fd;

    color: var(--blue);

    font-size: 24px;
}


.project-card p {
    font-size: 12px;

    line-height: 1.7;
}


.project-card .text-link {
    margin-top: auto;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about {
    background: white;
}


.about-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 35px;
}


.about-item {
    padding-top: 4px;
}


.about-icon {
    width: 45px;
    height: 50px;

    display: grid;
    place-items: center;

    margin-bottom: 18px;

    clip-path: polygon(
        50% 0,
        93% 25%,
        93% 75%,
        50% 100%,
        7% 75%,
        7% 25%
    );

    background: #f0f9fd;

    color: var(--blue);

    font-size: 18px;
}


.about-item p {
    margin: 0;

    font-size: 11px;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact {
    position: relative;

    padding-block: 90px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #eef9fe,
            #ffffff
        );
}


.contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;
}


.contact h2 {
    margin-bottom: 15px;
}


.contact p {
    max-width: 530px;

    margin: 0;

    font-size: 14px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    padding-block: 28px;

    border-top: 1px solid var(--border);

    background: white;
}


.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


.footer .logo {
    font-size: 17px;
}


.footer .logo-mark {
    width: 25px;
    height: 28px;
}


.footer-nav {
    display: flex;

    gap: 25px;
}


.footer-nav a {
    color: #69859a;

    font-size: 11px;
}


.footer-nav a:hover {
    color: var(--blue);
}


.footer-tagline {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #7892a5;

    font-size: 11px;
}


.mini-hex {
    width: 15px;
    height: 17px;

    display: inline-block;

    clip-path: polygon(
        50% 0,
        93% 25%,
        93% 75%,
        50% 100%,
        7% 75%,
        7% 25%
    );

    background: var(--blue);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .navigation {
        display: none;

        position: absolute;

        top: 76px;
        left: 0;
        right: 0;

        padding: 20px 24px;

        flex-direction: column;
        align-items: stretch;
        gap: 0;

        background: white;

        border-bottom: 1px solid var(--border);

        box-shadow: var(--shadow);
    }


    .navigation.open {
        display: flex;
    }


    .navigation a {
        padding: 14px 0;
    }


    .navigation a.active::after {
        display: none;
    }


    .header .button {
        display: none;
    }


    .menu-button {
        display: flex;

        flex-direction: column;
        gap: 5px;
    }


    .menu-button span {
        width: 24px;
        height: 2px;

        background: var(--navy);
    }


    .hero-inner {
        grid-template-columns: 1fr;
    }


    .hero-content {
        padding-block: 90px 40px;
    }


    .hero-visual {
        min-height: 260px;
    }


    .section-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    .service-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .contact-inner {
        flex-direction: column;
        align-items: flex-start;
    }

}


@media (max-width: 600px) {

    .container {
        width: min(
            calc(100% - 32px),
            var(--container)
        );
    }


    .hero h1 {
        font-size: 60px;

        letter-spacing: -4px;
    }


    .hero-actions {
        flex-direction: column;
        align-items: flex-start;

        gap: 20px;
    }


    .service-grid,
    .technology-grid,
    .project-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }


    .technology-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .section {
        padding-block: 75px;
    }


    .footer-inner {
        flex-direction: column;

        align-items: flex-start;
    }


    .footer-nav {
        flex-wrap: wrap;
    }


    .footer-tagline {
        margin-top: 5px;
    }

}