html {
  font-size: 1rem;
}

@media screen and (max-width: 1440px) {
  html {
    font-size: calc(0.00007284079084285411rem + 1.1110301768990636vw);
  }
}

@media screen and (max-width: 479px) {
  html {
    font-size: calc(0.0012019230769234612rem + 4.26153846153846vw);
  }
}

/* Make text look crisper and more legible in all browsers */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Focus state style for keyboard navigation for the focusable elements */
*[tabindex]:focus-visible,
input[type="file"]:focus-visible {
  outline: 0.125rem solid #4d65ff;
  outline-offset: 0.125rem;
}

/* Set color style to inherit */
.inherit-color * {
  color: inherit;
}

/* Get rid of top margin on first element in any rich text element */
.w-richtext > :not(div):first-child,
.w-richtext > div:first-child > :first-child {
  margin-top: 0 !important;
}

/* Get rid of bottom margin on last element in any rich text element */
.w-richtext > :last-child,
.w-richtext ol li:last-child,
.w-richtext ul li:last-child {
  margin-bottom: 0 !important;
}

/* Make sure containers never lose their center alignment */
.container-medium,
.container-small,
.container-large {
  margin-right: auto !important;
  margin-left: auto !important;
}

/* Apply "..." after 3 lines of text */
.text-style-3lines {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Apply "..." after 2 lines of text */
.text-style-2lines {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* These classes are never overwritten */
.hide {
  display: none !important;
}

@media screen and (max-width: 991px) {
  .hide,
  .hide-tablet {
    display: none !important;
  }
}

@media screen and (max-width: 767px) {
  .hide-mobile-landscape {
    display: none !important;
  }
}

@media screen and (max-width: 479px) {
  .hide-mobile {
    display: none !important;
  }
}

.margin-0 {
  margin: 0rem !important;
}

.padding-0 {
  padding: 0rem !important;
}

.spacing-clean {
  padding: 0rem !important;
  margin: 0rem !important;
}

.margin-top {
  margin-right: 0rem !important;
  margin-bottom: 0rem !important;
  margin-left: 0rem !important;
}

.padding-top {
  padding-right: 0rem !important;
  padding-bottom: 0rem !important;
  padding-left: 0rem !important;
}

.margin-right {
  margin-top: 0rem !important;
  margin-bottom: 0rem !important;
  margin-left: 0rem !important;
}

.padding-right {
  padding-top: 0rem !important;
  padding-bottom: 0rem !important;
  padding-left: 0rem !important;
}

.margin-bottom {
  margin-top: 0rem !important;
  margin-right: 0rem !important;
  margin-left: 0rem !important;
}

.padding-bottom {
  padding-top: 0rem !important;
  padding-right: 0rem !important;
  padding-left: 0rem !important;
}

.margin-left {
  margin-top: 0rem !important;
  margin-right: 0rem !important;
  margin-bottom: 0rem !important;
}

.padding-left {
  padding-top: 0rem !important;
  padding-right: 0rem !important;
  padding-bottom: 0rem !important;
}

.margin-horizontal {
  margin-top: 0rem !important;
  margin-bottom: 0rem !important;
}

.padding-horizontal {
  padding-top: 0rem !important;
  padding-bottom: 0rem !important;
}

.margin-vertical {
  margin-right: 0rem !important;
  margin-left: 0rem !important;
}

.padding-vertical {
  padding-right: 0rem !important;
  padding-left: 0rem !important;
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

.swiper-ecosystem .swiper-slide:last-child {
  margin-right: 0 !important;
}

/* Use case tab accent colors */
[usecases-tab="defi"].w--current {
  background-color: var(--blue);
}

[usecases-tab="other-apps"].w--current {
  background-color: var(--green);
}

/* Swiper arrows disabled state */
.swiper-arrow.swiper-button-disabled {
  opacity: 0.2;
}

/* Contact form textarea */
.text-field {
  width: 100%;
  height: 100%;
  border: 0;
  resize: none;
  overflow-y: auto;
}

/* PDF viewer pages */
.pdf-wrap {
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile navigation */
@media screen and (max-width: 479px) {
  .w-nav[data-collapse="tiny"] .nav_menu.is-open {
    display: flex;
  }

  .nav_menu.is-open {
    pointer-events: auto;
  }
}

/* Scroll reveal initial state */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, var(--reveal-y, 3rem), 0);
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto;
  }

  .hero-animation[data-lottie],
  .footer-animation-top[data-lottie],
  .footer-animation-bot[data-lottie] {
    display: none;
  }

  .hero-animation.hide,
  .footer-animation-static.hide {
    display: block !important;
  }
}

/* 404 */
.notfound {
  min-height: 100svh;
  padding: 6rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
}

.notfound p {
  max-width: 28rem;
}
