.solution-footer-left {
  display:
    flex;

  align-items:
    center;

  font-weight:
    500;
}


.solution-footer-left::before {
  content:
    "✦";

  margin-right:
    8px;

  font-size:
    16px;

  color:
    var(--blue);
}


.solution-footer-right {
  display:
    flex;

  align-items:
    center;

  color:
    #111827;

  font-weight:
    600;
}


.solution-footer-right::after {
  content:
    " →";

  margin-left:
    6px;
}


/* =====================================================
   NAV RIGHT
===================================================== */

.nav-right {
  justify-self: end;

  display: flex;

  align-items: center;

  gap: 16px;
}


/* =====================================================
   ERP FEATURE PREVIEW
===================================================== */

/*
const erpFeatures =
  document.querySelectorAll(
    ".erp-feature"
  );


const erpPreview =
  document.querySelector(
    ".erp-window"
  );


const erpWindowTitle =
  document.querySelector(
    ".erp-window-title"
  );


const erpScreenTitle =
  document.querySelector(
    ".erp-screen-title"
  );


const erpScreenCopy =
  document.querySelector(
    ".erp-screen-copy"
  );


const erpScreenChip =
  document.querySelector(
    ".erp-screen-chip"
  );


erpFeatures.forEach(
  feature => {

    feature.addEventListener(
      "click",
      () => {

        erpFeatures.forEach(
          item => {

            item.classList.remove(
              "is-active"
            );

            item.setAttribute(
              "aria-pressed",
              "false"
            );

          }
        );


        feature.classList.add(
          "is-active"
        );

        feature.setAttribute(
          "aria-pressed",
          "true"
        );


        erpWindowTitle.textContent =
          feature.dataset.windowTitle;

        erpScreenTitle.textContent =
          feature.dataset.screenTitle;

        erpScreenCopy.textContent =
          feature.dataset.screenCopy;

        erpScreenChip.textContent =
          feature.dataset.screenChip;


        erpPreview.classList.remove(
          "is-switching"
        );

        void erpPreview.offsetWidth;

        erpPreview.classList.add(
          "is-switching"
        );

      }
    );

  }
);


*/
/* =====================================================
   CUSTOMER STORIES CAROUSEL
===================================================== */

/*
const customerStoriesCarousel =
  document.querySelector(
    ".customer-stories-carousel"
  );


if (
  customerStoriesCarousel
) {

  const customerStoryCards =
    Array.from(
      customerStoriesCarousel.querySelectorAll(
        ".customer-story"
      )
    );


  const customerStoryDots =
    Array.from(
      document.querySelectorAll(
        ".customer-story-dot"
      )
    );


  const customerStoryPrevious =
    document.querySelector(
      ".customer-story-prev"
    );


  const customerStoryNext =
    document.querySelector(
      ".customer-story-next"
    );


  let customerStoryActiveIndex =
    0;


  let customerStoryScrollFrame =
    null;


  let customerStoryPointerId =
    null;


  let customerStoryPointerStartX =
    0;


  let customerStoryPointerStartScroll =
    0;


  function setCustomerStoryActive(
    index
  ) {

    customerStoryActiveIndex =
      Math.max(
        0,
        Math.min(
          index,
          customerStoryCards.length - 1
        )
      );


    customerStoryDots.forEach(
      (
        dot,
        dotIndex
      ) => {

        const isActive =
          dotIndex === customerStoryActiveIndex;


        dot.classList.toggle(
          "is-active",
          isActive
        );


        if (
          isActive
        ) {

          dot.setAttribute(
            "aria-current",
            "true"
          );

        } else {

          dot.removeAttribute(
            "aria-current"
          );

        }

      }
    );

  }


  function getNearestCustomerStory() {

    let nearestIndex =
      0;


    let nearestDistance =
      Infinity;


    customerStoryCards.forEach(
      (
        card,
        index
      ) => {

        const distance =
          Math.abs(
            card.offsetLeft
            -
            customerStoriesCarousel.scrollLeft
          );


        if (
          distance < nearestDistance
        ) {

          nearestDistance =
            distance;


          nearestIndex =
            index;

        }

      }
    );


    return nearestIndex;

  }


  function scrollToCustomerStory(
    index
  ) {

    const totalStories =
      customerStoryCards.length;


    const nextIndex =
      (
        index
        +
        totalStories
      )
      %
      totalStories;


    const targetStory =
      customerStoryCards[nextIndex];


    customerStoriesCarousel.scrollTo({
      left:
        targetStory.offsetLeft,

      behavior:
        "smooth"
    });


    setCustomerStoryActive(
      nextIndex
    );

  }


  customerStoryPrevious.addEventListener(
    "click",
    () => {

      scrollToCustomerStory(
        customerStoryActiveIndex - 1
      );

    }
  );


  customerStoryNext.addEventListener(
    "click",
    () => {

      scrollToCustomerStory(
        customerStoryActiveIndex + 1
      );

    }
  );


  customerStoryDots.forEach(
    (
      dot,
      index
    ) => {

      dot.addEventListener(
        "click",
        () => {

          scrollToCustomerStory(
            index
          );

        }
      );

    }
  );


  customerStoriesCarousel.addEventListener(
    "scroll",
    () => {

      if (
        customerStoryScrollFrame
      ) {
        return;
      }


      customerStoryScrollFrame =
        requestAnimationFrame(
          () => {

            setCustomerStoryActive(
              getNearestCustomerStory()
            );


            customerStoryScrollFrame =
              null;

          }
        );

    },
    {
      passive:
        true
    }
  );


  customerStoriesCarousel.addEventListener(
    "keydown",
    event => {

      if (
        event.key === "ArrowRight"
      ) {

        event.preventDefault();

        scrollToCustomerStory(
          customerStoryActiveIndex + 1
        );

      }


      if (
        event.key === "ArrowLeft"
      ) {

        event.preventDefault();

        scrollToCustomerStory(
          customerStoryActiveIndex - 1
        );

      }

    }
  );


  customerStoriesCarousel.addEventListener(
    "pointerdown",
    event => {

      if (
        event.pointerType !== "mouse"
      ) {
        return;
      }


      customerStoryPointerId =
        event.pointerId;


      customerStoryPointerStartX =
        event.clientX;


      customerStoryPointerStartScroll =
        customerStoriesCarousel.scrollLeft;


      customerStoriesCarousel.classList.add(
        "is-dragging"
      );


      customerStoriesCarousel.setPointerCapture(
        event.pointerId
      );

    }
  );


  customerStoriesCarousel.addEventListener(
    "pointermove",
    event => {

      if (
        event.pointerId !== customerStoryPointerId
      ) {
        return;
      }


      customerStoriesCarousel.scrollLeft =
        customerStoryPointerStartScroll
        -
        (
          event.clientX
          -
          customerStoryPointerStartX
        );

    }
  );


  function endCustomerStoryDrag(
    event
  ) {

    if (
      event.pointerId !== customerStoryPointerId
    ) {
      return;
    }


    customerStoryPointerId =
      null;


    customerStoriesCarousel.classList.remove(
      "is-dragging"
    );


    scrollToCustomerStory(
      getNearestCustomerStory()
    );

  }


  customerStoriesCarousel.addEventListener(
    "pointerup",
    endCustomerStoryDrag
  );


  customerStoriesCarousel.addEventListener(
    "pointercancel",
    endCustomerStoryDrag
  );

}
*/


/* =====================================================
   LANGUAGE
===================================================== */

.language {
  display: flex;

  align-items: center;

  gap: 3px;

  padding: 4px;

  border:
    1px solid #ccd8eb;

  border-radius:
    100px;

  background:
    rgba(255,255,255,.5);

  backdrop-filter:
    blur(10px);
}


.language button {
  border: 0;

  background:
    transparent;

  cursor: pointer;

  padding:
    6px 9px;

  border-radius:
    100px;

  color:
    #8792a5;

  font-size:
    11px;

  font-weight:
    600;

  transition:
    background .3s ease,
    color .3s ease,
    transform .3s ease;
}


.language button.active {
  background:
    var(--black);

  color:
    #fff;
}


.language button:hover {
  color:
    var(--black);
}


.language button.active:hover {
  color:
    #fff;

  transform:
    scale(1.03);
}


/* =====================================================
   NAV CONTACT
===================================================== */

.nav-contact {
  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    10px 17px;

  border-radius:
    100px;

  background:
    var(--black);

  color:
    #fff;

  font-size:
    12px;

  font-weight:
    600;

  white-space:
    nowrap;

  transition:
    transform .35s
    cubic-bezier(.2,.8,.2,1),

    background .3s ease,

    box-shadow .3s ease;
}


.nav-contact:hover {
  transform:
    translateY(-3px);

  background:
    #293044;

  box-shadow:
    0 10px 25px
    rgba(30,50,90,.15);
}


/* =====================================================
   HERO
===================================================== */

.hero {
  /* Keep outer gutters proportional as the desktop composition scales. */
  --hero-inline-gutter: 7vw;

  position:
    relative;

  min-height:
    100vh;

  display:
    flex;

  justify-content:
    center;

  align-items:
    center;

  padding:
    160px var(--hero-inline-gutter) clamp(48px, 6.5vh, 70px);

  overflow:
    hidden;

  isolation:
    isolate;

  color:
    #fff;
}


.hero-background-video {
  position:
    absolute;

  inset:
    0;

  width:
    100%;

  height:
    100%;

  object-fit:
    cover;

  z-index:
    0;

  pointer-events:
    none;
}


.hero::after {
  content:
    "";

  position:
    absolute;

  inset:
    0;

  z-index:
    1;

  background:
    linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 50%);

  pointer-events:
    none;
}


.hero-content {
  position:
    relative;

  z-index:
    3;

  width:
    100%;

  max-width:
    1080px;

  text-align:
    center;

  text-shadow:
    0 2px 16px rgba(0, 0, 0, .55);
}


.hero-small {
  display:
    flex;

  justify-content:
    center;

  align-items:
    center;

  gap:
    10px;

  margin-bottom:
    30px;

  font-size:
    13px;

  font-weight:
    600;

  line-height:
    var(--line-body);

  color:
    #fff;
}


.hero-small::before {
  content:
    "";

  width:
    7px;

  height:
    7px;

  flex-shrink:
    0;

  border-radius:
    50%;

  background:
    var(--blue);
}


.hero h1 {
  max-width:
    1100px;

  font-size:
    clamp(62px, 9.5vw, 120px);

  font-weight:
    800;

  line-height:
    var(--line-title);

  letter-spacing:
    -2.2px;
}


.hero h1 span {
  display:
    block;
}

.hero h1 .hero-title-cycle {
  display: inline;
}

.hero h1 .hero-cycle-slot {
  display: inline-grid;
  vertical-align: baseline;
  clip-path: inset(0);
}

.hero h1 .hero-cycle-verb {
  color: #81c3fd;
}

.hero h1 .hero-cycle-current,
.hero h1 .hero-cycle-next {
  display: block;
  grid-area: 1 / 1;
}

.hero h1 .hero-cycle-next {
  opacity: 0;
  transform: translateY(100%);
}

.hero h1 .hero-cycle-tail {
  display: inline-block;
  white-space: nowrap;
}

.hero h1 .hero-cycle-suffix {
  display: inline;
}

.hero h1.hero-message-heading {
  font-size: clamp(18px, 6.8vw, 88px);
  line-height: 1.18;
  letter-spacing: -.04em;
}

.hero h1.hero-message-heading .hero-title-cycle {
  display: block;
}

.hero h1.hero-message-heading .hero-cycle-slot {
  display: grid;
  width: 100%;
}

.hero h1.hero-message-heading .hero-cycle-line {
  white-space: nowrap;
}

.hero h1.hero-message-heading .hero-cycle-accent {
  color: #81c3fd;
}


.hero-description {
  max-width:
    860px;

  margin-top:
    131.04px;

  margin-inline:
    auto;

  font-size:
    20px;

  font-weight:
    400;

  line-height:
    var(--line-body);

  letter-spacing:
    -.15px;

  color:
    #fff;
}

.hero-description-cycle {
  display: grid;
  clip-path: inset(0);
}

/* All messages reserve the same space, including when their lines wrap. */
.hero-description-message {
  display: block;
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

.hero-description-message.is-current {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-description-message > span {
  display: block;
}


.hero-description strong {
  color:
    #fff;

  font-weight:
    700;
}


.hero-actions {
  display:
    flex;

  justify-content:
    center;

  gap:
    10px;

  margin-top:
    42px;

  flex-wrap:
    wrap;
}


.hero-button {
  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  min-height:
    48px;

  padding:
    13px 22px;

  border-radius:
    100px;

  font-size:
    13px;

  font-weight:
    600;

  transition:
    transform .4s
    cubic-bezier(.2,.8,.2,1),

    background .3s ease,

    color .3s ease,

    border-color .3s ease,

    box-shadow .3s ease;
}


.hero-button.primary {
  background:
    #fff;

  color:
    #111;

  text-shadow:
    none;
}


.hero-button-arrow {
  margin-left: 6px;
}


.hero-button.secondary {
  border:
    1px solid #fff;

  background:
    transparent;

  color:
    #fff;

  text-shadow:
    none;

  backdrop-filter:
    none;
}


.hero-button:hover {
  transform:
    translateY(-5px);
}


.hero-button.primary:hover {
  background:
    #fff;

  box-shadow:
    0 12px 25px
    rgba(20,30,60,.15);
}


.hero-button.secondary:hover {
  background:
    transparent;

  border-color:
    #fff;
}

@media (min-width: 901px) {
  .hero-button {
    min-height: 57.6px;
    padding: 15.6px 26.4px;
    font-size: 15.6px;
  }
}


/* Scale the headline and outer spacing from the 1512px reference layout.
   Supporting copy and CTAs retain their base desktop sizes. */
@media (min-width: 1512px) {
  .hero {
    --hero-unit: max(1px, min(calc(100vw / 1512), calc(100vh / 780)));
    padding-top: calc(160 * var(--hero-unit));
    padding-bottom: clamp(calc(48 * var(--hero-unit)), 6.5vh, calc(70 * var(--hero-unit)));
  }

  .hero-content {
    max-width: calc(1080 * var(--hero-unit));
  }

  .hero h1 {
    max-width: calc(1100 * var(--hero-unit));
    font-size: calc(120 * var(--hero-unit));
    line-height: calc(130 * var(--hero-unit));
    letter-spacing: calc(-2.2 * var(--hero-unit));
  }

  .hero h1.hero-message-heading {
    font-size: calc(88 * var(--hero-unit));
  }

  .hero-description {
    margin-top: calc(131.04 * var(--hero-unit));
  }
}


@media (min-width: 1513px) {
  .hero-support {
    transform: translateY(-14px);
  }
}


.hero-partners {
  margin-top:
    28px;

  font-size:
    15px;

  line-height:
    var(--line-body);

  color:
    #fff;
}


.hero-partners strong {
  color:
    #fff;

  font-weight:
    600;
}


/* =====================================================
   PROBLEM
===================================================== */

.problem-section {
  max-width:
    none;

  padding:
    150px 7vw;

  background:
    #2358fa;

  color:
    #f5f8ff;
}
