.route-ubox-token,
.ubox-token-page {
  --ubox-token-accent: #13ae67;
  --ubox-token-dark: #071218;
  --ubox-token-deep: #0b222a;
  --ubox-token-ink: #eef5f2;
  --ubox-token-muted: #a9bcc0;
  --ubox-token-light: #edf3f0;
  --ubox-token-light-ink: #102126;
  --ubox-token-light-muted: #52656a;
  --page-content-max: 96rem;
  --page-safe-gutter: clamp(1rem, 4vw, 4.5rem);
  --page-inline: max(var(--page-safe-gutter), calc((100% - var(--page-content-max)) / 2));
  --header-height: 68px;
  background: var(--ubox-token-dark);
  color: var(--ubox-token-ink);
}

.ubox-token-page {
  overflow-x: clip;
}

.ubox-token-page .container {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-inline: var(--page-inline);
}

.ubox-token-page :where(h1, h2, h3, p, figure) {
  margin: 0;
}

.ubox-token-page :where(img) {
  display: block;
  max-width: 100%;
}

.ubox-token-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ubox-token-hero {
  position: relative;
  display: grid;
  align-items: center;
  height: 100dvh;
  min-height: 44rem;
  isolation: isolate;
  overflow: hidden;
}

.ubox-token-hero__media,
.ubox-token-hero__media::after {
  position: absolute;
  inset: 0;
}

.ubox-token-hero__media {
  z-index: -2;
  background: var(--ubox-token-dark);
}

.ubox-token-hero__media::after {
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 18, 24, 0.9) 0%, rgba(7, 18, 24, 0.62) 34%, rgba(7, 18, 24, 0.08) 70%),
    linear-gradient(0deg, rgba(7, 18, 24, 0.5) 0%, rgba(7, 18, 24, 0) 46%);
}

.ubox-token-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ubox-token-hero__content {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.7rem;
  width: 100%;
  min-height: 100%;
  padding-top: calc(var(--header-height) + clamp(2rem, 5vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 6rem);
}

.ubox-token-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.2rem, 2.65vw, 3.3rem);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.08;
  text-wrap: pretty;
  color: #fff;
}

.ubox-token-hero__position {
  max-width: none !important;
  color: #fff !important;
  font-size: clamp(1.55rem, 2.1vw, 2.45rem) !important;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.16 !important;
  text-wrap: pretty;
  white-space: nowrap;
}

.ubox-token-hero__summary {
  max-width: none;
  color: var(--ubox-token-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  line-height: 1.6;
  white-space: nowrap;
}

.ubox-token-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.55rem;
  padding: 0.78rem 1.38rem;
  border: 2px solid var(--ubox-token-accent);
  border-radius: 999px;
  background: transparent;
  color: var(--ubox-token-ink) !important;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.ubox-token-button span {
  font-size: 1.42em;
  font-weight: 400;
  line-height: 0.65;
}

.ubox-token-button:hover {
  background: var(--ubox-token-accent);
  color: var(--ubox-token-dark) !important;
  transform: translateX(0.2rem);
}

.ubox-token-button:focus-visible,
.ubox-token-function-card a:focus-visible {
  outline: 3px solid var(--ubox-token-accent);
  outline-offset: 4px;
}

.ubox-token-capabilities {
  padding: clamp(6.5rem, 10vw, 10rem) 0 clamp(6.8rem, 10vw, 10.5rem);
  color: #2d3441;
  background: #fff;
}

.ubox-token-capabilities__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 7rem);
}

.ubox-token-capability {
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
}

.ubox-token-capability__icon {
  width: clamp(3.8rem, 5vw, 5.05rem);
  height: clamp(3.8rem, 5vw, 5.05rem);
  margin-bottom: clamp(2.25rem, 3.4vw, 3.25rem);
  opacity: 0.92;
}

.ubox-token-capability h3 {
  max-width: 18rem;
  color: #2d3441;
  font-size: clamp(1.32rem, 1.7vw, 1.72rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.28;
}

.ubox-token-capabilities__action {
  display: grid;
  justify-items: center;
  margin-top: clamp(3.5rem, 6vw, 5.75rem);
}

.ubox-token-button--light,
.ubox-token-button--dark {
  color: var(--ubox-token-light-ink) !important;
}

.ubox-token-showcase {
  position: relative;
  display: flex;
  box-sizing: border-box;
  height: calc(100dvh - var(--header-height));
  min-height: min(46rem, calc(100dvh - var(--header-height)));
  isolation: isolate;
  overflow: hidden;
  padding: clamp(5rem, 6vw, 6.5rem) 0 clamp(3rem, 4vw, 4.5rem);
  color: #f4f8f6;
  background: #010508;
}

.ubox-token-showcase::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: url("/img/pages/products-ubox-token/ubox-token-lightweight-deployment-b10-detail-brand-green-v2.png") center / cover no-repeat;
}

.ubox-token-showcase::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(1, 5, 8, 0.05) 0%, rgba(1, 5, 8, 0.16) 42%, rgba(1, 5, 8, 0.78) 66%, #010508 100%),
    linear-gradient(180deg, rgba(1, 5, 8, 0.16) 0%, rgba(1, 5, 8, 0) 40%, rgba(1, 5, 8, 0.38) 100%);
}

.ubox-token-showcase > .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(28rem, 0.92fr);
  align-items: center;
  width: 100%;
  min-height: 100%;
}

.ubox-token-showcase__heading {
  grid-column: 2;
  max-width: 38rem;
  margin-left: auto;
}

.ubox-token-showcase__heading h2,
.ubox-token-functions__heading h2,
.ubox-token-use-cases__heading h2 {
  margin: 0;
  font-size: clamp(1.95rem, 2.2vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.15;
  text-wrap: pretty;
}

.ubox-token-functions {
  padding: clamp(5rem, 7.5vw, 7.75rem) 0 clamp(5.25rem, 8vw, 8rem);
  color: #2d3441;
  background: #f6f9f7;
}

.ubox-token-functions__heading,
.ubox-token-use-cases__heading {
  display: grid;
  justify-items: center;
  text-align: center;
}

.ubox-token-functions__heading h2 {
  color: #2d3441;
}

.ubox-token-functions__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.1rem, 1.65vw, 1.75rem);
  margin-top: clamp(3rem, 4.2vw, 4rem);
}

.ubox-token-function-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  background: #28313e;
}

.ubox-token-function-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ubox-token-function-card__body {
  display: grid;
  align-content: start;
  gap: 0.82rem;
  padding: clamp(1.35rem, 1.7vw, 1.65rem);
}

.ubox-token-function-card h3 {
  color: #fff;
  font-size: calc(0.94rem + 2px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.ubox-token-function-card p {
  color: rgba(238, 245, 242, 0.78);
  font-size: 0.94rem;
  line-height: 1.64;
}

.ubox-token-function-card a {
  width: fit-content;
  margin-top: 0.4rem;
  color: var(--ubox-token-accent) !important;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
}

.ubox-token-function-card a:hover {
  color: var(--ubox-token-accent) !important;
}

.ubox-token-function-card a span {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 1.25em;
  transition: transform 180ms ease;
}

.ubox-token-function-card a:hover span {
  transform: translateX(0.18rem);
}

.ubox-token-use-cases {
  padding: clamp(5.75rem, 8vw, 8.5rem) 0 clamp(6rem, 9vw, 9rem);
  color: #f4f8f6;
  background: #010508;
}

.ubox-token-use-cases__heading h2 {
  color: #fff;
}

.ubox-token-use-cases__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.25vw, 3.5rem);
  margin-top: clamp(3.5rem, 6vw, 5.7rem);
}

.ubox-token-use-case {
  display: grid;
  min-width: 0;
  text-align: center;
}

.ubox-token-use-case > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ubox-token-use-case__body {
  display: grid;
  justify-items: center;
  align-content: start;
  padding: clamp(1.85rem, 3vw, 2.8rem) clamp(0.4rem, 1.6vw, 1.3rem) 0;
}

.ubox-token-use-case h3 {
  color: #fff;
  font-size: calc(clamp(0.97rem, 1.06vw, 1.06rem) + 2px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.ubox-token-use-case p {
  max-width: 22rem;
  margin-top: 1.15rem;
  color: rgba(238, 245, 242, 0.78);
  font-size: clamp(0.97rem, 1.06vw, 1.06rem);
  line-height: 1.72;
}

.ubox-token-use-case .ubox-token-button {
  min-height: 3.15rem;
  margin-top: 1.75rem;
  padding: 0.7rem 1.1rem;
  color: #f4f8f6 !important;
}

.ubox-token-slogan {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(24rem, 1.08fr);
  align-items: center;
  min-height: 100dvh;
  padding-block: clamp(7rem, 10vw, 10rem);
  padding-inline: var(--page-inline);
  overflow: hidden;
  color: var(--ubox-token-light-ink);
  background:
    linear-gradient(120deg, rgba(19, 174, 103, 0.055), transparent 42%),
    var(--ubox-token-light);
}

.ubox-token-slogan__copy {
  z-index: 2;
  max-width: 43rem;
}

.ubox-token-slogan h2 {
  max-width: none;
  color: var(--ubox-token-light-ink);
  font-size: clamp(2.25rem, 2.8vw, 3.3rem);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.1;
  text-wrap: pretty;
  white-space: nowrap;
}

.ubox-token-slogan__copy > p {
  max-width: 34rem;
  margin-top: 1.6rem;
  color: var(--ubox-token-light-muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.75;
}

.ubox-token-slogan__copy .ubox-token-button {
  margin-top: 2rem;
}

.ubox-token-slogan__mascot {
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 0;
}

.ubox-token-slogan__mascot img {
  width: min(100%, 44rem);
  max-height: 72dvh;
  object-fit: contain;
  filter: drop-shadow(0 2.2rem 2.5rem rgba(16, 27, 34, 0.14));
}

@media (min-width: 1181px) {
  .ubox-token-showcase__heading h2,
  .ubox-token-functions__heading h2,
  .ubox-token-use-cases__heading h2 {
    max-width: none;
    white-space: nowrap;
  }
}

@media (max-width: 1080px) {
  .ubox-token-functions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ubox-token-capabilities__grid,
  .ubox-token-use-cases__grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .ubox-token-showcase > .container {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ubox-token-showcase__heading {
    grid-column: 1;
    max-width: 38rem;
    margin-left: 0;
  }

  .ubox-token-showcase::after {
    background:
      linear-gradient(180deg, #010508 0%, rgba(1, 5, 8, 0.92) 27%, rgba(1, 5, 8, 0.28) 58%, rgba(1, 5, 8, 0.66) 100%),
      linear-gradient(90deg, rgba(1, 5, 8, 0.56) 0%, rgba(1, 5, 8, 0.2) 70%, rgba(1, 5, 8, 0.44) 100%);
  }

  .ubox-token-use-cases__grid {
    max-width: 36rem;
    margin-inline: auto;
  }

  .ubox-token-slogan {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .ubox-token-hero {
    height: auto;
    min-height: 100dvh;
  }

  .ubox-token-hero__media img {
    object-position: 64% center;
  }

  .ubox-token-hero__media::after {
    background:
      linear-gradient(90deg, rgba(7, 18, 24, 0.92) 0%, rgba(7, 18, 24, 0.64) 60%, rgba(7, 18, 24, 0.28) 100%),
      linear-gradient(0deg, rgba(7, 18, 24, 0.72) 0%, rgba(7, 18, 24, 0.08) 62%);
  }

  .ubox-token-hero__content {
    gap: 1.35rem;
    padding-top: calc(var(--header-height) + 2.5rem);
    padding-bottom: 2.5rem;
  }

  .ubox-token-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.05rem, 9vw, 3rem);
  }

  .ubox-token-hero__position {
    max-width: 20rem !important;
    font-size: clamp(1.55rem, 7.2vw, 1.82rem) !important;
    white-space: normal;
  }

  .ubox-token-hero__summary {
    max-width: 28rem;
    white-space: normal;
  }

  .ubox-token-capabilities,
  .ubox-token-functions,
  .ubox-token-use-cases {
    padding-top: 5rem;
    padding-bottom: 5.5rem;
  }

  .ubox-token-showcase {
    height: auto;
    min-height: 100dvh;
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .ubox-token-showcase::before {
    background-position: 10% center;
  }

  .ubox-token-functions__grid {
    grid-template-columns: 1fr;
  }

  .ubox-token-showcase__heading h2,
  .ubox-token-functions__heading h2,
  .ubox-token-use-cases__heading h2 {
    max-width: 15ch;
    white-space: normal;
  }

  .ubox-token-slogan {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: 100dvh;
    padding-block: calc(var(--header-height) + 3rem) 3rem;
  }

  .ubox-token-slogan h2 {
    max-width: 15ch;
    font-size: clamp(2.05rem, 9vw, 3rem);
    white-space: normal;
  }

  .ubox-token-slogan__mascot {
    justify-items: start;
  }

  .ubox-token-slogan__mascot img {
    width: min(100%, 25rem);
    max-height: 42dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ubox-token-page *,
  .ubox-token-page *::before,
  .ubox-token-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
