*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    /* 去掉默认的内外边距 */
    box-sizing: border-box;
    box-sizing: inherit;
    /*默认不是inherit*/
    border: 0;
    word-break: break-all;
    position: relative;
    text-decoration: none;
}

@font-face{
    font-family: JetBarinsMono;
    src: url('../fonts/JetBrainsMono-Medium.ttf')
}

body,
html {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    /*padding 和 border成为width的一部分*/
    font-size: 62.5%;
    /*1rem=10px*/
}


body {
    font-family: 'JetBarinsMono';
    font-weight: 400;
    color: white;
    font-size: 1.8rem;
    background-color: #100A5B;
    background-image: url(img/gradient-bg.svg);
    background-position: top -651px right -659px;
    background-repeat: no-repeat;
}

/*-----------------header-------------------------------*/

header {
    width: 100%;
    padding: 3rem 6rem 6rem 6rem;
    display: flex;
    justify-content: space-between;
}

.header__logo-box,
.header__user {
    cursor: pointer;
}

.header__nav {
    margin-left: 6rem;
    margin-right: auto;
}

.nav__checkbox {
    display: none;
}


.nav__button {
    height: 3rem;
    width: 3rem;
    z-index: 300;
}


.nav__background {
    height: 3rem;
    width: 3rem;
    border-radius: 50%;
    position: fixed;
    z-index: 200;
    background-color: #100A5B;
    opacity: 0;
    transition: all .6s cubic-bezier(.83, 0, .17, 1);
}



.nav__icon,
.nav__icon::before,
.nav__icon::after {
    width: 3rem;
    height: 3px;
    background-color: #fff;
    display: inline-block;

}

.nav__icon::before,
.nav__icon::after {
    content: "";
    position: absolute;
    left: 0;
    transition: all .2s;
    transform-origin: center;
}

.nav__icon::before {
    top: -.8rem;
}

.nav__icon::after {
    top: .8rem;
}

.nav__icon {
    display: none;
    z-index: 400;
    left: 0;
}

.nav__button:hover .nav__icon::before {
    transform: translateY(-2px);
}

.nav__button:hover .nav__icon::after {
    transform: translateY(2px);
}



.nav__menu {
    display: flex;
    z-index: 201;
}

.menu-item {

    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.menu-item__text {
    color: #fff;
    font-size: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    padding: 1.2rem 2rem;
    border-radius: 1rem;
    transition: transform .1s ease-in;
}


.menu-item:hover .menu-item__text {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}


/*-----------------main-------------------------------*/
.content__intro {
    padding: 2rem 0 2rem 18.4rem;
    width: 100%;

}


.heading-title {
    font-family: "JetBrainsMono";
    max-width: 70rem;
    font-style: normal;
    font-weight: bold;
    font-size: 6rem;
    line-height: 7.2rem;
    margin: 2.8rem 0;
}

.paragraph-subtitle {
    max-width: 550px;
    margin: 2.8rem 0;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: 0.05em;
    font-weight: 300;
}

button.btn-primary {
    display: inline-block;
    outline: none;
    border: none;
    background-color: transparent;
    padding: 0;
    transition: all .2s;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.1);

}

.btn-primary__text {
    display: inline-block;
    font-size: 1.7rem;
    line-height: 2rem;
    color: #fff;
    text-transform: uppercase;
    padding: 1.2rem 4.2rem;
    background: linear-gradient(261.97deg, #3BFFF2 9.08%, #1E8192 107.13%);
    border-radius: 1rem;
}

/*--------card--------*/
.content__cards {
    margin: 6rem 0;
    padding-left: 18.4rem;
    display: flex;
    flex-wrap: wrap;
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 109.91%);
    border-radius: 1rem;
    padding: 4rem;
    max-width: 38rem;
    margin-right: 3.2rem;
    margin-bottom: 3.2rem;

}

.card__number {
    width: 5rem;
    height: 5rem;
    background: rgba(59, 255, 242, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 2.4rem;
    margin-bottom: 2rem;
}

.card__title {
    font-weight: 600;
    font-size: 2.8rem;
    line-height: 3.3rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
}

.card__subtitle {
    font-size: 1.5rem;
    line-height: 1.8rem;
    letter-spacing: 0.05em;
    font-weight: 300;
    margin-bottom: 3rem;
}

.card__btn {
    display: inline-block;
    outline: none;
    background-color: transparent;
    padding: 0;
    transform: translateX(-10px);
    transition: all .1s ease-in;
}

.card__btn a {
    font-size: 14px;
    color: #3BFFF2;
    text-decoration: none;
    padding: .8rem 1rem;
}

.card__btn:hover {
    transform: translateX(0);
}

.card__btn:hover a {
    background: linear-gradient(95.83deg, rgba(255, 255, 255, 0.3) -2.4%, rgba(255, 255, 255, 0) 103.86%);
    border-radius: 5px;
}

/*-----------------------------footer------------------------------*/
.footer__copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 1rem;
}




/*----------------Media Queries------------------*/



@media screen and (max-width:800px) {


    body {
        background-position: top -663px right -894px;
    }

    .header__nav {
        order: -1;
        margin: 0;
    }

    .nav__icon {
        display: inline-block;
        transition: all .2s;
    }

    .nav__menu {
        flex-direction: column;
        justify-content: center;
        transition: all .6s ease-in-out;
        opacity: 0;
        width: 0;
        height: 0;
        position: fixed;
        top: 0;
        left: 0;
    }

    .menu-item {
        margin-bottom: 1rem;
    }

    .menu-item__text {
        font-size: 2.5rem;
    }

    .nav__checkbox:checked~.nav__button .nav__icon::before {
        transform: translateY(8px)rotate(45deg);
    }

    .nav__checkbox:checked~.nav__button .nav__icon {
        background-color: transparent;
    }

    .nav__checkbox:checked~.nav__button .nav__icon::after {
        transform: translateY(-8px)rotate(-45deg);
    }

    .nav__checkbox:checked~.nav__menu {
        opacity: 1;
        width: 100vw;
        height: 100vh;
    }

    .nav__checkbox:checked~.nav__background {
        display: inline-block;
        transform: scale(80);
        opacity: 1;

    }

    .content__intro,
    .content__cards {
        padding-left: 10rem;
        max-width: 95%;
    }



    .card,
    .card__title,
    .card__subtitle {
        max-width: 90%;
        margin-right: 0;
    }

}


@media screen and (max-width:500px) {

    body {
        background-position: top -738px right -1026px;
    }

    header {
        padding: 2.5rem;
    }

    .heading-title {
        font-size: 4.4rem;
        line-height: 53px;
    }

    .paragraph-subtitle {
        font-size: 1.4rem;
    }

    .content__intro,
    .content__cards {
        padding: 0 5vw;
        max-width: 100%;

    }


    .card,
    .card__title,
    .card__subtitle {
        max-width: 100%;

    }

    .card__title {
        font-size: 24px;
        line-height: 29px;
    }
}