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(32px, 6vw, 64px);
    color: var(--dark);
    text-align: center;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 30px;
}

.intro-head p {
    font-size: clamp(15px, 2vw, 20px);
}

.intro-head p b {
    text-transform: uppercase;
    color: var(--key-200);
}

.intro-head>span {
    font-size: clamp(14px, 1.5vw, 18px);
    color: var(--text-600);
    letter-spacing: 0.02em;
}

.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;
    }
}


/* ═══════════════════════════════
   PRICING SECTION
═══════════════════════════════ */
section.pricing2 {
    padding: 10vw 0 8vw;
    position: relative;
    overflow: hidden;
}

section.pricing2:before {
    content: "";
    position: absolute;
    bottom: -20vw;
    inset-inline-start: -80%;
    background: url("../../images/pages/w-shadow.png") no-repeat center / contain;
    width: 150vw;
    height: 100vw;
    z-index: -1;
    opacity: .5;
}

.pricing2-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 50px;
}

.pricing2-head > b {
    background-color: var(--shade-100);
    color: var(--key-300);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pricing2-head h2 {
    font-size: clamp(28px, 7vw, 56px);
    color: var(--text-900);
    font-family: var(--font2);
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin: 0;
}

.pricing2-head p {
    font-size: clamp(15px, 2.5vw, 20px);
    max-width: 540px;
    color: var(--text-500);
}

/* Toggle — NEW pill-slider design */
.pricing2-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 50px;
}

.p2-toggle-track {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--shade-100);
    border: 1.5px solid var(--shade-200);
    border-radius: 100px;
    padding: 4px;
    gap: 0;
    width: max-content;
}

.p2-toggle-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(50% - 4px);
    background: var(--gradient);
    border-radius: 100px;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), right 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s;
    box-shadow: 0 4px 12px rgb(33 55 255 / 30%);
    pointer-events: none;
    z-index: 0;
}

.p2-toggle-btn {
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
    border-radius: 100px;
    padding: 11px 28px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-500);
    transition: color 0.25s;
    font-family: inherit;
    white-space: nowrap;
}

.p2-toggle-btn.active {
    color: #fff;
    pointer-events: none;
}

.p2-annual-group {
    position: relative;
    display: flex;
    align-items: center;
}

.p2-annual-group .save-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #16a34a, #22c55e);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 8px rgb(34 197 94 / 40%);
}

/* Card Grid */
.pricing2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Card */
.pricing2-card {
    background-color: #fff;
    border-radius: 24px;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1.5px solid var(--shade-200);
    transition: 0.3s;
    position: relative;
}

.pricing2-card:hover {
    border-color: var(--shade-400);
    box-shadow: 0 20px 40px -10px rgb(0 0 0 / 8%);
    transform: translateY(-4px);
}

.pricing2-card.featured {
    background: linear-gradient(160deg, #0017e3 0%, #475aff 100%);
    border-color: transparent;
    color: #fff;
}

.pricing2-card.featured:hover {
    box-shadow: 0 25px 50px -10px rgb(0 23 227 / 40%);
}

.p2-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 16px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgb(245 158 11 / 40%);
}

.p2-name {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-500);
}

.pricing2-card.featured .p2-name {
    color: rgb(255 255 255 / 70%);
}

.p2-desc {
    font-size: 15px;
    color: var(--text-400);
    line-height: 1.5;
    margin: -8px 0;
}

.pricing2-card.featured .p2-desc {
    color: rgb(255 255 255 / 65%);
}

/* Price display */
.p2-price-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.p2-price-block {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.p2-price-block .p2-currency {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-700);
    margin-bottom: 6px;
}

.p2-price-block .p2-amount {
    font-size: clamp(38px, 5vw, 52px);
    font-weight: 800;
    color: var(--text-900);
    letter-spacing: -0.04em;
    line-height: 1;
}

.p2-price-block .p2-period {
    font-size: 15px;
    color: var(--text-400);
    align-self: flex-end;
    margin-bottom: 6px;
}

.pricing2-card.featured .p2-price-block .p2-currency,
.pricing2-card.featured .p2-price-block .p2-amount {
    color: #fff;
}

.pricing2-card.featured .p2-price-block .p2-period {
    color: rgb(255 255 255 / 60%);
}

.p2-annual-note {
    font-size: 12px;
    color: var(--text-300);
    font-weight: 500;
}

.pricing2-card.featured .p2-annual-note {
    color: rgb(255 255 255 / 50%);
}

/* Divider */
.p2-divider {
    border: none;
    border-top: 1px solid var(--shade-200);
    margin: 0;
}

.pricing2-card.featured .p2-divider {
    border-top-color: rgb(255 255 255 / 15%);
}

/* CTA Button */
a.p2-cta {
    display: block;
    text-align: center;
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    background-color: var(--shade-100);
    color: var(--text-800);
    transition: 0.2s;
}

a.p2-cta:hover {
    background-color: var(--shade-300);
}

.pricing2-card.featured a.p2-cta {
    background-color: #fff;
    color: var(--key-300);
}

.pricing2-card.featured a.p2-cta:hover {
    background-color: rgb(255 255 255 / 90%);
}

/* Features list */
ul.p2-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

ul.p2-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-700);
    line-height: 1.4;
}

.pricing2-card.featured ul.p2-features li {
    color: rgb(255 255 255 / 85%);
}

ul.p2-features li::before {
    content: "\ea36";
    font-family: 'icons';
    color: var(--key-300);
    flex-shrink: 0;
    font-size: 13px;
    margin-top: 1px;
}

.pricing2-card.featured ul.p2-features li::before {
    color: #93c5fd;
}

/* Responsive */
@media all and (max-width: 960px) {
    .pricing2-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
    }
}
