@font-face {
    font-family: 'Canela Deck';
    src: url(../assets/fonts/canela-deck/canela-deck-medium.woff2) format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Canela Text';
    src: url(../assets/fonts/canela-text/canela-text-light.woff2) format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Canela Text';
    src: url(../assets/fonts/canela-text/canela-text-regular.woff2) format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito Sans';
    src: url(../assets/fonts/nunito-sans/nunito-sans-bold.woff2) format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@keyframes floating-icon {
    0%,
    100% {
        transform: translate(-5px, 12px);
    }
    50% {
        transform: translate(5px, -12px);
    }
}

:root {
    --height-header: 58px;
    --height-header-offset: 8px;

    --font-canela-deck: 'Canela Deck', serif;
    --font-canela-text: 'Canela Text', serif;
    --font-nunito-sans: 'Nunito Sans', sans-serif;

    --color-black: #000;
    --color-white: #fff;
    --color-gray: #d5d0d9;
    --color-blue-300: #c2f1ff;
    --color-blue-400: #7de2f2;
    --color-blue-700: #1a606c;
    --color-blue-800: #103f47;
    --color-orange-300: #ffe3c5;
    --color-orange-900: #321900;
    --color-purple-100: #fcf8ff;
    --color-purple-200: #f6eaff;
    --color-purple-900: #2c1642;
}

html,
body {
    overflow-x: clip;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding-top: calc(var(--height-header) + var(--height-header-offset));
    background: var(--color-white);
    color: var(--color-blue-700);
    font-family: var(--font-canela-text);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--font-canela-deck);
    font-weight: 500;
    color: var(--color-purple-900);
}

a {
    background-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
    border-style: none;
}

mark {
    border-radius: 0.8em 0.3em 0.8em 0.4em;
    padding: 0.1em 0;
    background: var(--color-orange-300) 30%;
    color: var(--color-orange-900);
    box-shadow: 0.2em 0 0 var(--color-orange-300), -0.2em 0 0 var(--color-orange-300), 0.2em 0.1em 0 var(--color-orange-300), -0.2em 0.1em 0 var(--color-orange-300);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.image-container {
    display: inline-block;
    position: relative;
    z-index: 0;
    border: 20px solid var(--color-white);
    border-radius: 20px;
    box-shadow: 0 6px 8px 0 color-mix(in srgb, var(--color-black) 5%, transparent), 0 9px 23px 0 rgba(0, 30, 50, 0.15);

    @media screen and (max-width: 767px) {
        border-width: 15px;
        border-radius: 15px;
    }
}

.image-container__image {
    display: block;
}

.image-container__icon {
    position: absolute;
    top: -37px;
    left: -37px;
    z-index: 1;
    pointer-events: none;

    @media screen and (max-width: 991px) {
        width: 50px;
        height: 50px;
        top: -34px;
        left: -34px;
    }

    @media screen and (max-width: 767px) {
        width: 45px;
        height: 45px;
        top: -31px;
        left: -31px;
    }

    @media screen and (max-width: 575px) {
        width: 40px;
        height: 40px;
        top: -28px;
        left: -28px;
    }
}

.image-container--small {
    border-width: 10px;
    border-radius: 10px;

    @media screen and (max-width: 767px) {
        border-width: 8px;
        border-radius: 8px;
    }
}

.cta-container {
    display: inline-block;
    position: relative;
    z-index: 0;
}

.cta {
    display: inline-grid;
    grid-template-columns: repeat(2, auto);
    place-items: center;
    gap: 0 8px;
    height: 82px;
    border: 1px solid transparent;
    padding: 0 29px;
    border-radius: 42px;
    background: var(--color-blue-300);
    color: var(--color-blue-800);
    font-family: var(--font-nunito-sans);
    font-size: 27px;
    line-height: 1;
    text-decoration: none;
    transition-property: border-color, box-shadow, transform;
    transition-duration: 0.2s;
    transition-timing-function: ease-out;

    @media screen and (max-width: 991px) {
        height: 76px;
        padding-right: 27px;
        padding-left: 27px;
        border-radius: 40px;
        font-size: 26px;
    }

    @media screen and (max-width: 767px) {
        height: 74px;
        padding-right: 25px;
        padding-left: 25px;
        border-radius: 38px;
        font-size: 24px;
    }

    @media screen and (max-width: 575px) {
        height: 70px;
        padding-right: 23px;
        padding-left: 23px;
        border-radius: 36px;
        font-size: 22px;
    }

    &:hover,
    &:focus {
        border-color: color-mix(in srgb, var(--color-black) 20%, transparent);
        box-shadow: 0 0.836px 4.178px 0 rgba(53, 64, 92, 0.12), 0 0.447px 2.234px 0 rgba(53, 64, 92, 0.10), 0 0.25px 1.252px 0 rgba(53, 64, 92, 0.08), 0 0.133px 0.665px 0 rgba(53, 64, 92, 0.06), 0 0.055px 0.277px 0 rgba(53, 64, 92, 0.05);
    }

    &:active {
        transform: scale(0.98);
        box-shadow: none;
    }
}

.cta__icon {
    width: 57px;
    height: 57px;
    pointer-events: none;

    @media screen and (max-width: 991px) {
        width: 55px;
        height: 55px;
    }

    @media screen and (max-width: 767px) {
        width: 53px;
        height: 53px;
    }

    @media screen and (max-width: 575px) {
        width: 51px;
        height: 51px;
    }
}

.cta--small {
    gap: 0 4px;
    height: 42px;
    padding-right: 15px;
    padding-left: 15px;
    border-radius: 22px;
    font-size: 14px;

    @media screen and (max-width: 575px) {
        padding-right: 12px;
        padding-left: 12px;
    }

    .cta__icon {
        width: 30px;
        height: 30px;
    }
}

.ellipses,
.blur {
    position: fixed;
    inset: 0 0 auto;
    pointer-events: none;
}

.ellipses {
    z-index: 20;
    height: calc(var(--height-header) + var(--height-header-offset) + 350px);

    @media screen and (max-width: 1199px) {
        height: calc(var(--height-header) + var(--height-header-offset) + 250px);
    }

    @media screen and (max-width: 991px) {
        height: calc(var(--height-header) + var(--height-header-offset) + 200px);
    }

    @media screen and (max-width: 767px) {
        height: calc(var(--height-header) + var(--height-header-offset) + 120px);
    }

    @media screen and (max-height: 999px) {
        height: calc(var(--height-header) + var(--height-header-offset) + 250px);
    }

    @media screen and (max-height: 799px) {
        height: calc(var(--height-header) + var(--height-header-offset) + 200px);
    }

    @media screen and (max-height: 699px) {
        height: calc(var(--height-header) + var(--height-header-offset) + 150px);
    }

    &::before {
        content: '';
        position: absolute;
        inset: 0 0 auto;
        height: var(--height-header-offset);
        background: var(--color-white);
    }
}

.ellipses__image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.blur {
    z-index: 10;
    height: calc(var(--height-header) + var(--height-header-offset) + 150px);
    border-radius: 100%;
    backdrop-filter: blur(2px);
    mask: linear-gradient(to top, transparent, var(--color-black) 35%);

    @media screen and (max-width: 1199px) {
        height: calc(var(--height-header) + var(--height-header-offset) + 100px);
    }

    @media screen and (max-width: 991px) {
        height: calc(var(--height-header) + var(--height-header-offset) + 50px);
    }

    @media screen and (max-width: 767px) {
        height: calc(var(--height-header) + var(--height-header-offset) + 30px);
    }

    @media screen and (max-height: 999px) {
        height: calc(var(--height-header) + var(--height-header-offset) + 100px);
    }

    @media screen and (max-height: 799px) {
        height: calc(var(--height-header) + var(--height-header-offset) + 50px);
    }

    @media screen and (max-height: 699px) {
        height: calc(var(--height-header) + var(--height-header-offset) + 30px);
    }
}

.header {
    position: fixed;
    top: var(--height-header-offset);
    right: var(--height-header-offset);
    left: var(--height-header-offset);
    z-index: 30;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0 7px;
    height: var(--height-header);
    padding: 0 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--color-white) 85%, transparent) 70%, color-mix(in srgb, var(--color-purple-100) 85%, transparent) 100%);
    box-shadow: 0 5px 7px 0 color-mix(in srgb, var(--color-black) 5%, transparent), 0 8px 20px 0 rgba(0, 30, 50, 0.15);
    backdrop-filter: blur(2.5px);

    @media screen and (max-width: 767px) {
        grid-template-columns: 1fr auto
    }
}

.header__text {
    position: relative;
    margin: 0;
    padding-top: 2px;
    padding-left: 20px;
    font-family: var(--font-canela-text);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;

    @media screen and (max-width: 991px) {
        padding-top: 0;
        padding-left: 18px;
        font-size: 16px;
    }

    @media screen and (max-width: 767px) {
        display: none;
    }

    &::before {
        content: '—';
        position: absolute;
        top: 1px;
        left: 0;

        @media screen and (max-width: 991px) {
            top: -1px;
        }
    }

    br {
        @media screen and (min-width: 992px) {
            display: none;
        }
    }
}

.main {
    display: block;
    padding-right: 20px;
    padding-left: 20px;
}

.section {
    position: relative;
    z-index: 0;
    margin: 90px auto;
    background: var(--color-white);
    text-align: center;

    @media screen and (max-width: 1199px) {
        margin-top: 80px;
        margin-bottom: 80px;
    }

    @media screen and (max-width: 991px) {
        margin-top: 70px;
        margin-bottom: 70px;
    }

    @media screen and (max-width: 767px) {
        margin-top: 60px;
        margin-bottom: 60px;
    }

    @media screen and (max-width: 575px) {
        margin-top: 50px;
        margin-bottom: 50px;
    }

    &:first-child {
        margin-top: 0;
    }
}

.section__headline {
    margin: 0 auto 40px;
    font-size: 48px;
    text-transform: capitalize;

    @media screen and (max-width: 1199px) {
        font-size: 44px;
    }

    @media screen and (max-width: 991px) {
        font-size: 40px;
    }

    @media screen and (max-width: 767px) {
        margin-bottom: 30px;
        font-size: 36px;
    }

    @media screen and (max-width: 575px) {
        font-size: 32px;
    }
}

.section__headline--large {
    font-size: 115px;
    text-transform: none;

    @media screen and (max-width: 1199px) {
        font-size: 100px;
    }

    @media screen and (max-width: 991px) {
        font-size: 90px;
    }

    @media screen and (max-width: 767px) {
        font-size: 75px;
    }

    @media screen and (max-width: 575px) {
        font-size: 60px;
    }
}

.section__text {
    margin: 0 auto;
    font-size: 24px;
    line-height: 1.4;

    @media screen and (max-width: 991px) {
        font-size: 22px;
    }

    @media screen and (max-width: 767px) {
        font-size: 20px;
    }

    @media screen and (max-width: 575px) {
        font-size: 18px;
    }
}

.section__text--small {
    font-size: 16px;
}

.section__text--large {
    font-size: 32px;

    @media screen and (max-width: 991px) {
        font-size: 30px;
    }

    @media screen and (max-width: 767px) {
        font-size: 28px;
    }

    @media screen and (max-width: 575px) {
        font-size: 26px;
    }
}

.section--intro {
    max-width: 1000px;
    margin-bottom: 0;
    padding-top: 195px;
    padding-bottom: 140px;

    @media screen and (max-width: 1199px) {
        padding-top: 180px;
        padding-bottom: 130px;
    }

    @media screen and (max-width: 991px) {
        padding-top: 160px;
        padding-bottom: 120px;
    }

    @media screen and (max-width: 767px) {
        padding-top: 140px;
        padding-bottom: 140px;
    }

    @media screen and (max-width: 575px) {
        padding-top: 120px;
    }

    .section__text {
        max-width: 575px;
    }

    .section__icon {
        position: absolute;
        z-index: -1;
        animation: floating-icon 5s ease-in-out infinite;
        pointer-events: none;
    }

    .section__icon--brackets1 {
        top: 100px;
        left: 270px;
        opacity: 0.7;
        filter: blur(1.975000023841858px);
        mix-blend-mode: hard-light;

        @media screen and (max-width: 1199px) {
            top: 80px;
            left: 240px;
        }

        @media screen and (max-width: 991px) {
            top: 60px;
            left: 210px;
        }

        @media screen and (max-width: 767px) {
            top: 50px;
            left: 120px;
        }

        @media screen and (max-width: 575px) {
            top: 40px;
            left: 20px;
        }
    }

    .section__icon--brackets2 {
        top: 160px;
        right: 30px;
        mix-blend-mode: hard-light;
        animation-delay: -3.5s;

        @media screen and (max-width: 1199px) {
            top: 140px;
        }

        @media screen and (max-width: 991px) {
            top: 100px;
        }

        @media screen and (max-width: 767px) {
            top: 75px;
        }

        @media screen and (max-width: 575px) {
            top: 50px;
        }
    }

    .section__icon--brackets3 {
        bottom: -70px;
        left: 70px;
        opacity: 0.1;
        filter: blur(7.5px);
        mix-blend-mode: difference;
        animation-delay: -1.5s;
    }

    .section__icon--brackets4 {
        bottom: 30px;
        right: 200px;
        opacity: 0.1;
        filter: blur(7.5px);
        animation-delay: -2.5s;
    }

    .section__icon--arrow {
        bottom: 30px;
        right: 50px;
        opacity: 0.3;
        animation: none;

        @media screen and (max-width: 767px) {
            bottom: 20px;
            right: 30px;
        }
    }

    & + .section {
        margin-top: 0;
    }
}

.section--text {
    .section__text {
        max-width: 730px;
    }

    &::before,
    &::after {
        content: '';
        display: block;
        width: 150px;
        height: 4px;
        margin: 0 auto;
        background: var(--color-purple-200);
    }

    &::before {
        margin-bottom: 90px;

        @media screen and (max-width: 1199px) {
            margin-bottom: 80px;
        }

        @media screen and (max-width: 991px) {
            margin-bottom: 70px;
        }

        @media screen and (max-width: 767px) {
            margin-bottom: 60px;
        }

        @media screen and (max-width: 575px) {
            margin-bottom: 50px;
        }
    }

    &::after {
        margin-top: 90px;

        @media screen and (max-width: 1199px) {
            margin-top: 80px;
        }

        @media screen and (max-width: 991px) {
            margin-top: 70px;
        }

        @media screen and (max-width: 767px) {
            margin-top: 60px;
        }

        @media screen and (max-width: 575px) {
            margin-top: 50px;
        }
    }

    & + .section--text {
        &::before {
            display: none;
        }
    }
}

.section--cta {
    .section__text {
        max-width: 530px;
    }

    .cta-container {
        &:has(.cta:hover) {
            .cta-container__icon--1 {
                top: calc(25px / 0.9);
                left: calc(-15px * 0.5);
            }

            .cta-container__icon--2 {
                top: calc(-35px * 0.9);
                right: calc(-15px * 0.5);
            }

            .cta-container__icon--3 {
                bottom: calc(20px / 0.9);
                left: calc(-15px * 0.5);
            }

            .cta-container__icon--4 {
                bottom: calc(-10px * 0.9);
                right: calc(-15px * 0.5);
            }
        }
    }

    .cta-container__icon {
        position: absolute;
        opacity: 0.3;
        transition-property: top, right, bottom, left;
        transition-duration: 0.2s;
        transition-timing-function: ease-out;
        pointer-events: none;
    }

    .cta-container__icon--1,
    .cta-container__icon--3 {
        transform: translateX(-100%);

        @media screen and (max-width: 767px) {
            transform: translateX(-40%);
        }
    }

    .cta-container__icon--2,
    .cta-container__icon--4 {
        transform: translateX(100%);

        @media screen and (max-width: 767px) {
            transform: translateX(40%);
        }
    }

    .cta-container__icon--1 {
        top: 25px;
        left: -15px;
    }

    .cta-container__icon--2 {
        top: -35px;
        right: -15px;
    }

    .cta-container__icon--3 {
        bottom: 20px;
        left: -15px;
    }

    .cta-container__icon--4 {
        bottom: -10px;
        right: -15px;
    }

    .cta {
        margin-top: 40px;
        margin-bottom: 40px;

        @media screen and (max-width: 767px) {
            margin-top: 80px;
            margin-bottom: 80px;
        }
    }
}

.footer {
    position: relative;
    z-index: 0;
    background: var(--color-purple-900);
    color: var(--color-white);

    .image-container {
        transform: rotate(3.902deg);
    }

    .image-container__icon {
        transform: rotate(-3.902deg);
        pointer-events: none;
    }
}

.footer__inner {
    position: relative;
    z-index: 0;
    display: grid;
    grid-template-columns: repeat(2, auto);
    align-items: start;
    gap: 0 100px;
    max-width: 1190px;
    margin: 0 auto;
    padding: 90px 125px;
    background: var(--color-purple-900);

    @media screen and (max-width: 1199px) {
        gap: 0 70px;
        padding-right: 80px;
        padding-left: 80px;
    }

    @media screen and (max-width: 991px) {
        gap: 0 50px;
        padding-right: 50px;
        padding-left: 50px;
    }

    @media screen and (max-width: 767px) {
        grid-template-columns: unset;
        grid-template-rows: repeat(2, auto);
        gap: 80px 0;
        justify-items: start;
    }

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

.footer__content,
.footer__image-container {
    position: relative;
    z-index: 2;
}

.footer__headline {
    margin-bottom: 15px;
    font-size: 26px;
    color: var(--color-white);
    text-transform: capitalize;

    @media screen and (max-width: 991px) {
        font-size: 24px;
    }

    @media screen and (max-width: 767px) {
        font-size: 22px;
    }
}

.footer__text {
    font-size: 18px;
    line-height: 1.4;
    color: var(--color-gray);

    @media screen and (max-width: 991px) {
        font-size: 16px;
    }

    strong,
    a {
        color: var(--color-white);
        font-weight: 400;
    }

    a {
        transition: color 0.2s ease-out;

        &:hover {
            color: var(--color-blue-400);
        }
    }
}

.footer__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    pointer-events: none;
}

.footer__icon {
    position: absolute;
    z-index: 0;
    animation: floating-icon 6s ease-in-out infinite;
    pointer-events: none;
}

.footer__icon--1 {
    top: 55px;
    left: 60px;
    opacity: 0.34;
    filter: blur(1.975000023841858px);
    mix-blend-mode: plus-lighter;

    @media screen and (max-width: 1199px) {
        left: 20px;
    }

    @media screen and (max-width: 991px) {
        top: 30px;
        left: 10px;
    }
}

.footer__icon--2 {
    bottom: 60px;
    left: 125px;
    opacity: 0.3;
    filter: blur(7.5px);
    mix-blend-mode: plus-lighter;
    animation-delay: -3.5s;

    @media screen and (max-width: 991px) {
        left: 80px;
    }

    @media screen and (max-width: 767px) {
        bottom: 350px;
        left: 30px;
    }
}

.footer__icon--3 {
    bottom: 40px;
    left: 50%;
    opacity: 0.3;
    filter: blur(7.5px);
    mix-blend-mode: plus-lighter;
    animation-delay: -1.5s;

    @media screen and (max-width: 1199px) {
        right: 30px;
        left: auto;
    }

    @media screen and (max-width: 575px) {
        right: 20px;
        bottom: 20px;
    }
}
