html {
    scroll-behavior: smooth;
}

/* COMMON */
body {
    background-color: #F6F6FF;
}

a.get-started {
    background: var(--gradient);
    color: #FFF;
    font-size: clamp(16px, 4vw, 24px);
    padding: 12px 30px;
    border-radius: 100px;
    display: flex;
    max-width: max-content;
    position: relative;
    transition: 0.3s !important;
    font-weight: 500;
}

a.get-started:hover {
    padding: 12px 40px;
}

a.get-started:before {
    content: "\ea32";
    font-family: 'icons';
    position: absolute;
    font-size: 10px;
    top: 10px;
    inset-inline-start: 15px;
    transform: scale(0);
    opacity: 0;
}

a.get-started:after {
    content: "\ea32";
    font-family: 'icons';
    position: absolute;
    font-size: 16px;
    top: -15px;
    inset-inline-end: -8px;
    color: var(--key-300);
    transform: scale(0);
    opacity: 0;
}

a.get-started:before,
a.get-started:after {
    animation: shining 0.7s linear alternate infinite;
}

a.get-started:before {
    animation-delay: 0.5s
}

.floaty,
.floaty2 {
    transform: translate(var(--x, 0px), var(--y, 0px));
}

@keyframes shining {
    from {
        opacity: 0;
        transform: scale(0) rotate(-45deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(45deg);
    }
}

@keyframes float {
    to {
        transform: rotate(var(--rotate, 30deg));
    }
}

/* INTRO */
section.intro {
    padding-top: 7vw;
}

.intro-back {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.intro-back:before {
    content: "";
    background: url(../../images/pages/intro-back.png?2) no-repeat center / cover;
    animation: float 30s linear infinite alternate;
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
}

.intro-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
}

.intro-head h1 {
    font-family: var(--font2);
    font-size: clamp(24px, 10vw, 90px);
    color: var(--dark);
    text-align: center;
    letter-spacing: -0.05em;
    line-height: 1.3;
    margin-bottom: 50px;
}

.intro-head p {
    font-size: clamp(16px, 5vw, 28px);
}

.intro-head p b {
    text-transform: uppercase;
    color: var(--key-200);
}

.intro-head>span {
    font-size: clamp(16px, 5vw, 30px);
}

.intro-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    margin-top: 30px;
}

.intro-cta p b {
    color: var(--key-300);
}

.users-faces {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
    justify-content: center;
    margin-top: 100px;
}

.faces {
    display: flex;
    align-items: center;
}

.faces img,
.faces span {
    width: 50px;
    height: 50px;
    margin-inline-end: -25px;
    border: 2px solid var(--light);
    border-radius: 100px;
}

.faces span {
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-700);
}

.users-faces p {
    max-width: 160px;
    color: var(--text-800);
}


/* CRM */
section.crm {
    padding: 10vw 0;
    position: relative;
    overflow: hidden;
}

section.crm:before {
    content: "";
    position: absolute;
    top: -10vw;
    inset-inline-end: -50%;
    background: url("../../images/pages/w-shadow.png") no-repeat center / contain;
    width: 70vw;
    height: 100vw;
    z-index: -1;
}

.crm-grid {
    display: grid;
    grid-template-columns: 20fr 60fr 20fr;
    gap: 50px;
}

.crm-item.centered {
    grid-column: 2/3;
    grid-row: 1/3;
    background: var(--gradient);
    border-radius: 20px;
    padding: 20px;
}

.crm-item.centered img {
    width: 100%;
    border-radius: inherit;
    height: 100%;
    object-fit: cover;
}

.crm-item b {
    background-color: var(--text-700);
    color: var(--text-100);
    padding: 8px 20px;
    max-width: max-content;
    border-radius: 100px;
    font-size: 12px;
}

.crm-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crm-item h3 {
    font-size: 20px;
    color: var(--text-700);
}

.crm-item p {
    font-size: 16px;
}

.crm-head {
    display: flex;
    flex-direction: column;
    /* gap: 10px; */
    align-items: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 80px;
}

.crm-head h2 {
    font-size: clamp(20px, 9vw, 50px);
    color: var(--text-800);
    font-family: var(--font2);
    letter-spacing: -0.05em;
    line-height: 1.2;
}

.crm-head p {
    font-size: clamp(16px, 5vw, 24px);
}

.crm-head a {
    margin-top: 20px;
}

/* COURSES */
section.courses {
    padding: 10vw 0;
    position: relative;
}

section.courses:before {
    content: "";
    position: absolute;
    top: -35vw;
    inset-inline-start: -100%;
    background: url("../../images/pages/w-shadow.png") no-repeat center / contain;
    width: 150vw;
    height: 100vw;
    z-index: -1;
    opacity: .7;
}

ul.courses-list {
    display: flex;
    align-items: center;
    gap: 10px 30px;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

ul.courses-list li:before {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--gradient);
    border-radius: 3px;
    transform: rotate(45deg);
    flex-shrink: 0;
}

ul.courses-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    color: var(--text);
    white-space: nowrap;
}

.courses-start h2 {
    font-size: clamp(24px, 12vw, 60px);
    color: var(--text-800);
    font-family: var(--font2);
    letter-spacing: -0.05em;
    line-height: 1.2;
}

.courses-start h2 span {
    color: var(--key-300);
}

.wrapper.courses-wrapper {
    display: flex;
    align-items: center;
    gap: 100px;
    justify-content: space-between;
}

.courses-start {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.courses-start>b {
    background-color: var(--light);
    color: var(--text-600);
    padding: 8px 15px;
    max-width: max-content;
    border-radius: 100px;
    font-size: 12px;
}

.courses-start p {
    font-size: 20px;
}

.courses-end {
    position: relative;
    display: flex;
    max-width: 630px;
}

.courses-end span:first-of-type {
    transform: rotate(-3deg);
}

.courses-end span:nth-of-type(2) {
    transform: translate(-60px, 70px) rotate(5deg);
    position: relative;
    z-index: 1;
}

.courses-end span:last-of-type {
    transform: translateX(-140px) rotate(-5deg);
}


.courses-end img {
    filter: drop-shadow(0px 10px 15px rgb(0 0 0 / 10%));
    border-radius: 10px;
}

.courses-start:before {
    content: "";
    background: url("../../images/pages/w-color-elemt.png") no-repeat center / contain;
    width: 100px;
    height: 100px;
    position: absolute;
    bottom: 110%;
    inset-inline-start: -30px;
    animation: float 5s linear infinite alternate;
    --rotate: 180deg
}

.courses-end:after {
    content: "";
    background: url("../../images/pages/w-tools-elemt.png") no-repeat center / contain;
    width: 100px;
    height: 100px;
    position: absolute;
    top: 110%;
    inset-inline-start: -30px;
    transform: rotate(30deg);
    animation: float 5s linear infinite alternate;
    --rotate: -30deg
}

/* INTEGRATION */
.integration-services {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 700px;
}

section.integration {
    /* background-color: var(--text-900); */
    padding: 100px 0;
    position: relative
}

.back-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.back-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.back-video:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-900);
    opacity: .8;
}

.integration-start h2 {
    color: var(--light);
    font-size: clamp(24px, 10vw, 50px);
    font-family: var(--font2);
    line-height: 1.2;
    letter-spacing: -0.05em;
}

.integration-start {
    max-width: 490px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wrapper.integration-wrapper {
    display: flex;
    align-items: center;
    gap: 100px;
    justify-content: space-between;
}

.integration-start p {
    font-size: 20px;
    color: var(--text-200);
}

.integration-start b {
    background-color: var(--text-700);
    color: var(--text-100);
    width: max-content;
    padding: 10px 20px;
    border-radius: 100px;
}

.integration-services li {
    background-color: var(--light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 215px;
    height: 110px;
}


/**/
.builder-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}

.builder-image span {
    position: absolute;
    animation: parallax linear;
    animation-duration: var(--animation-duration);
    animation-timeline: scroll();
    transition: var(--animation-duration);
    z-index: 1;
}

span.builder-props {
    inset-inline-end: -50px;
    top: 700px;
    transform: rotate(30deg);
    --animation-duration: 10s;
    --rotate: -135deg
}

span.builder-photo {
    inset-inline-end: 80px;
    top: 500px;
    transform: rotate(0);
    --animation-duration: 2s;
    --rotate: 180deg
}

span.builder-sections {
    inset-inline-start: -190px;
    top: 100%;
    transform: rotate(-45deg);
    --animation-duration: 3s;
    --rotate: 90deg
}

.builder-image>img {
    border-radius: 20px;
    border: 10px solid #FFF;
    box-shadow: 0 0 100px rgb(0 0 0 / 10%);
}

.builder-image picture {
    max-width: 100vw;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.builder-image picture img {
    border-radius: 20px;
    box-shadow: 0 0 50px #d8deee;
}

@keyframes parallax {
    to {
        transform: translateY(-1500px) rotate(var(--rotate));
    }
}

@media all and (max-width: 1280px) {

    .builder-image picture img {
        width: 100%;
    }

    .wrapper.courses-wrapper {
        flex-direction: column;
    }

    .courses-start {
        width: 100%;
    }


    .builder-image span {
        display: none;
    }
}

@media all and (max-width: 960px) {
    .crm-grid {
        grid-template-columns: 1fr 1fr;
    }

    .crm-item.centered {
        grid-column: 1/3;
    }

    .courses-end:after {
        top: -10px !important;
        bottom: auto;
    }

    .wrapper.integration-wrapper {
        flex-direction: column;
        gap: 50px;
    }

    ul.courses-list {
        flex-wrap: wrap;
    }

    .crm-item.centered img {
        height: auto;
    }
}

@media all and (max-width: 768px) {
    .courses-end {
        padding: 0 5vw 100px;
        width: 100%;
        overflow: hidden;
    }

    .courses-end img {
        width: 36vw;
    }

    .faces img,
    .faces span {
        width: 40px;
        height: 40px;
        margin-inline-end: -20px;
    }

    .courses-start:before {
        inset-inline-start: auto;
        inset-inline-end: 10%;
        bottom: 100%;
    }
}

@media all and (max-width: 480px) {
    .crm-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .crm-item.centered {
        grid-column: 1;
    }

    .integration-services li {
        width: 150px;
        height: 80px;
        border-radius: 10px;
    }

    .integration-services li img {
        height: 25px;
    }
}