/*
--- 01 TYPOGRAPHY SYSTEM

- Font sizes (px):
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

-  weights:
Default: 400

- Line heights:
Default: 1

--- 02 COLORS

- Primary (blue): #1C8EF6
- Primary (blue-light): #60b0f9
- Secondary (blue): #195b9e
- Secondary (blue-light): #5e8cbb

- Secondary (purple): #9E31B0
- Tertiary (yellow): #FFC91B
- Greys:
#161C32
#737784
#F6FBFF

--- 05 SHADOWS

--- 06 BORDER-RADIUS

--- 07 WHITESPACE

- Spacing system (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
*/

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

@media (max-width: 80em) {
    html {
        font-size: 56.25%;
    }
}

@media (max-width: 48em) {
    html {
        font-size: 49%;
    }
}


body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1;
    font-weight: 400;
    color: #161C32;
}

/* General Components */

.heading-primary,
.heading-secondary,
.subheading-tertiary {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.heading-primary {
    font-size: 4.4rem;
    line-height: 1.05;
    color: #F6FBFF;
    margin-bottom: 3.2rem;
}

.heading-secondary {
    font-size: 3.6rem;
    line-height: 1.2;
    color: #161C32;
    margin-bottom: 9.6rem;
}

.heading-tertiary {
    font-size: 2.4rem;
    line-height: 1.2;
    color: #161C32;
    margin-bottom: 3rem;
}

.subheading-tertiary {
    display: block;
    font-size: 1.6rem;
    font-weight: 500;
    color: #737784;
    text-transform: uppercase;
    margin-bottom: 1.6rem;
}

.text,
.text-link:link,
.text-link:visited {
    font-size: 1.8rem;
    line-height: 1.6;
}

.text-link:link,
.text-link:visited {
    display: inline-block;
    color: #1C8EF6;
    font-weight: 600;
    text-decoration: none;
    transition: color 300ms
}

.text-link:hover,
.text-link:active {
    color: #60b0f9;
}

.text-light {
    color: #F6FBFF;
}


.btn:link,
.btn:visited {
    display: inline-block;
    color: #F6FBFF;
    font-size: 2rem;
    font-weight: 500;
    text-decoration: none;
    padding: 1.6rem 3.2rem;
    border-radius: 9px;

    transition: background-color 300ms, box-shadow 300ms;
}

.btn--flat:link,
.btn--flat:visited {
    background-color: #1C8EF6;
}

.btn--flat:hover,
.btn--flat:active {
    background-color: #60b0f9;
}

.btn--outline:link,
.btn--outline:visited {
    box-shadow: inset 0 0 0 0.2rem #1C8EF6;
}

.btn--outline:hover,
.btn--outline:active {
    background-color: #60b0f9;
    box-shadow: inset 0 0 0 0.2rem #60b0f9;
}

.margin-right-sm {
    margin-right: 1.6rem !important;
}

.margin-bottom-sm {
    margin-bottom: 1.6rem !important;
}

.margin-bottom-m {
    margin-bottom: 4.8rem !important;
}

.container {
    position: relative;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 3.2rem;
}

.grid {
    display: grid;
    gap: 9.6rem;
}

.grid--2-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 9.6rem;
}

@media (max-width: 60em) {
    .grid--2-cols {
        grid-template-columns: repeat(1, 1fr);
    }
}

.grid--3-cols {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 80em) {
    .grid--3-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 48em) {
    .grid--3-cols {
        grid-template-columns: repeat(1, 1fr);
    }
}

.grid--4-cols {
    grid-template-columns: repeat(4, 1fr);
}

.grid--center-items {
    justify-items: center;
}

/* Header */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #161C32;
    height: 9.6rem;
    padding: 0 4.8rem;
}

.logo {
    height: 5.2rem;
    z-index: 1000;
}

/* Navigation */

.main-nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 3.2rem;
}

.main-nav-link:link,
.main-nav-link:visited {
    display: inline-block;
    text-decoration: none;
    color: #F6FBFF;
    font-weight: 500;
    font-size: 1.8rem;
    transition: color 300ms;
}

.main-nav-link:hover,
.main-nav-link:active {
    color: #60b0f9;
}

.main-nav-link.nav-cta:link,
.main-nav-link.nav-cta:visited {
    padding: 1.2rem 2.4rem;
    border-radius: 9px;
    color: #F6FBFF;
    background-color: #1C8EF6;

    transition: background-color 300ms;
}

.main-nav-link.nav-cta:hover,
.main-nav-link.nav-cta:active {
    background-color: #60b0f9;
}

@media (max-width: 54em) {
    .main-nav {
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        position: absolute;

        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(31, 34, 42, 0.95);
        opacity: 0;
        pointer-events: none;
        visibility: hidden;

        transition: all 0.4s ease-out;

        transform: translateY(-100%);
    }

    .nav-open .main-nav {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav-list {
        flex-direction: column;
        gap: 4.8rem;
    }

    .main-nav-list li a {
        font-size: 2.2rem !important;
    }
}

/* Mobile */

.btn-mobile-nav {
    z-index: 1000;
    border: none;
    background: none;
    cursor: pointer;
    display: none;
}

.icon-mobile-nav {
    height: 3.2rem;
    width: 3.2rem;
}

.nav-open .icon-mobile-nav[name="menu"] {
    display: none;
}

.icon-mobile-nav[name="close"] {
    display: none;
}

.nav-open .icon-mobile-nav[name="close"] {
    display: block;
}

@media (max-width: 54em) {
    .btn-mobile-nav {
        display: block;
    }
}

.sticky .header {
    z-index: 2000;
    position: fixed;
    height: 7.2rem;
    padding-top: 0;
    padding-bottom: 0;
    top: 0;
    bottom: 0;
    width: 100%;
}

.sticky .section-hero {
    margin-top: 9.6rem;
}

@media (max-width: 32em) {
    .sticky .header {
        height: 5.6rem;
    }

    .sticky .logo {
        max-height: 3.6rem;
    }
}

/* Hero Sections */

.section-hero {
    background-color: #161C32;
    padding: 8.4rem 0;
}

.hero {
    max-width: 130rem;
    display: grid;
    margin: 0 auto;
    padding: 0 3.2rem;
    grid-template-columns: 0.8fr 1fr;
    gap: 9.6rem;
}

.hero-description {
    font-size: 2rem;
    line-height: 1.6;
    color: #F6FBFF;
    margin-bottom: 4.8rem;
}

.hero-img {
    width: 100%;
}

@media (max-width: 80em) {
    .hero {
        display: flex;
    }

    .hero-img {
        height: 32rem;
    }

    .hero-text-box .heading-primary {
        max-width: 60rem;
    }

    .hero-description {
        max-width: 49rem;
    }
}

@media (max-width: 60em) {
    .hero {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .hero-img {
        height: 38rem;
    }

    .hero-text-box {
        display: grid;
        justify-content: center;
    }

    .hero-text-box .heading-primary {
        max-width: 60rem;
    }

    .hero-description {
        display: block;
        max-width: 49rem;
    }
}

@media (max-width: 32em) {
    .hero-buttons {
        display: flex;
    }

    .hero-buttons a {
        font-size: 1.8rem !important;
        padding: 1.4rem 2rem !important;
    }
}

/* Use case section */

.section-use-cases,
.section-testimonials,
.section-contact,
.section-projects {
    padding: 12rem 0;
}

.section-use-cases .heading-tertiary {
    min-height: 5.8rem;
}

.feature-list {
    padding-left: 1.6rem;
    list-style: none;
}

.feature-list li:not(:last-child) {
    margin-bottom: 1.6rem;
}

.feature-list li::before {
    content: "\2022";
    color: #737784;
    font-weight: bold;
    display: inline-block;
    width: 1.8rem;
    margin-left: -1.8rem;
}

/* Projects section */

.section-projects {
    background-color: #F6FBFF;
}

.company-logo {
    margin-top: 4.8rem;
    max-height: 8rem;

}

.company-logo img {
    width: 100%;
    height: 100%;
}

.company-image-grid {
    display: grid;
    justify-items: center;
}

.project-image {
    max-width: 100%;
}

@media (max-width: 60em) {
    .company-image-grid {
        height: 30rem;
        grid-template-columns: repeat(2, 1fr);
    }

    .project-image {
        height: 40rem;
    }
}

@media (max-width: 32em) {
    .project-image {
        height: 28rem;
    }

    .company-logo {
        max-height: 6rem;
    }
}

@media (max-width: 32em) {
    .company-image-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        margin-bottom: 8.4rem;
    }

    .company-logo {
        margin-top: 0rem;
        margin-bottom: 4rem;
    }
    
    .project-image {
        height: 32rem;
    }
}

@media (max-width: 60em) {
    .company-image-grid--desktop {
        display: none;
    }
}

@media (min-width: 60em) {
    .company-image-grid--smartphone {
        display: none;
    }
}

.feature-box {
    display: flex;
    gap: 3.2rem;
    flex-direction: column;
    background-color: white;
    padding: 3.2rem;
    border-radius: 9px;
    border: 1px solid #f8f8f8;
    -webkit-box-shadow: 0px 1px 10px -7px rgba(0, 0, 0, 0.5);
    box-shadow: 0px 1px 10px -7px rgba(0, 0, 0, 0.5);
}

.feature-box-heading {
    display: block;
    font-size: 1.8rem;
    font-weight: 500;
    color: #737784;
    text-transform: uppercase;
}

/* Testimonials section */

.testimonial-symbol {
    font-family: sans-serif;
    position: absolute;
    z-index: 100;
    left: 5rem;
    top: -6.4rem;
    font-size: 20rem;
    color: #b9bbc2;
}

.testimonial-author {
    font-style: italic;
    color: #737784;
}

/* Contact section */

.section-contact {
    background-color: #161C32;
}

.section-contact .heading-secondary {
    color: #F6FBFF;
}

.contact-element {
    display: flex;
}

.contact-element p {
    min-width: 8rem;
}