.route-ubox-agent,
.ubox-agent-page {
  --agent-accent: #13ae67;
}

.ubox-agent-page .ubox-token-hero__media {
  background: #071218;
}

.ubox-agent-page .ubox-agent-hero__picture,
.ubox-agent-page .ubox-agent-hero__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ubox-agent-page .ubox-agent-hero__scene {
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.ubox-agent-page .ubox-token-hero__media::after {
  background: linear-gradient(90deg, rgba(7, 18, 24, 0.42) 0%, rgba(7, 18, 24, 0.16) 39%, transparent 61%);
}

.ubox-agent-page .ubox-token-hero__summary {
  max-width: min(33rem, 42vw);
  white-space: normal;
}

.ubox-agent-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.ubox-agent-video-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.78rem;
  min-height: 3.55rem;
  padding: 0.78rem 1.45rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: var(--ubox-token-dark);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.ubox-agent-video-button:hover {
  border-color: #dce8e2;
  background: #dce8e2;
  transform: translateY(-0.12rem);
}

.ubox-agent-video-button:focus-visible {
  outline: 3px solid var(--ubox-token-accent);
  outline-offset: 4px;
}

.ubox-agent-video-button__icon {
  width: 0;
  height: 0;
  border-top: 0.36rem solid transparent;
  border-bottom: 0.36rem solid transparent;
  border-left: 0.58rem solid currentColor;
}

body.route-ubox-agent.ubox-agent-video-open {
  overflow: hidden;
}

.ubox-agent-video-dialog {
  width: fit-content;
  max-width: none;
  max-height: 96dvh;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--ubox-token-ink);
}

.ubox-agent-video-dialog::backdrop {
  background: rgba(2, 8, 12, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.ubox-agent-video-dialog:focus {
  outline: 0;
}

.ubox-agent-video-dialog__panel {
  position: relative;
  width: fit-content;
  max-width: 94vw;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ubox-agent-video-dialog__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(238, 245, 242, 0.5);
  border-radius: 50%;
  background: transparent;
  color: var(--ubox-token-ink);
  cursor: pointer;
  appearance: none;
}

.ubox-agent-video-dialog__close::before,
.ubox-agent-video-dialog__close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.8rem;
  height: 2px;
  content: "";
  background: currentColor;
  transform-origin: center;
}

.ubox-agent-video-dialog__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.ubox-agent-video-dialog__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.ubox-agent-video-dialog__close:hover {
  border-color: var(--ubox-token-accent);
  color: var(--ubox-token-accent);
}

.ubox-agent-video-dialog__close:focus-visible {
  outline: 3px solid var(--ubox-token-accent);
  outline-offset: 3px;
}

.ubox-agent-video-dialog__player {
  display: block;
  width: min(94vw, calc(94dvh * 0.57143));
  max-width: 94vw;
  height: auto;
  max-height: 94dvh;
  margin: 0;
  aspect-ratio: 1080 / 1890;
  border-radius: 0.55rem;
  background: #000;
  object-fit: contain;
}

.ubox-agent-page .ubox-token-showcase {
  background: #071218;
}

.ubox-agent-page .ubox-token-showcase::before {
  background: url("/img/pages/products-ubox-agent/ubox-agent-v101-delivery-workflow.webp") center / cover no-repeat #071218;
}

.ubox-agent-page .ubox-token-showcase::after {
  background:
    linear-gradient(90deg, transparent 28%, rgba(7, 18, 24, 0.76) 50%, rgba(7, 18, 24, 0.92) 65%, #071218 100%),
    linear-gradient(180deg, rgba(7, 18, 24, 0.08), transparent 42%, rgba(7, 18, 24, 0.22));
}

.ubox-agent-showcase__summary {
  max-width: 33rem;
  margin-top: 1.65rem !important;
  color: #b5c7c5;
  font-size: clamp(1.05rem, 1.28vw, 1.26rem);
  line-height: 1.75;
}

.ubox-agent-page .ubox-token-functions__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ubox-agent-page .ubox-token-function-card > img {
  aspect-ratio: 16 / 9;
  object-position: center top;
}

.ubox-agent-page .ubox-token-function-card__body {
  grid-template-rows: auto 1fr auto;
}

.ubox-agent-page .ubox-token-use-cases__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.2rem, 2vw, 2.5rem);
}

.ubox-agent-page .ubox-token-use-case__body {
  grid-template-rows: auto 1fr auto;
}

.ubox-agent-page .ubox-token-use-case p {
  margin-bottom: 0;
}

.ubox-agent-page .ubox-token-slogan__mascot img {
  width: min(100%, 39rem);
}

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

@media (max-width: 900px) {
  .ubox-agent-page .ubox-token-showcase::before {
    background-position: 30% center;
  }

  .ubox-agent-page .ubox-token-showcase::after {
    background: linear-gradient(180deg, #071218 0%, rgba(7, 18, 24, 0.87) 28%, rgba(7, 18, 24, 0.12) 62%, rgba(7, 18, 24, 0.4));
  }

  .ubox-agent-page .ubox-token-use-cases__grid {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .ubox-agent-page .ubox-agent-hero__scene {
    object-position: center top;
  }

  .ubox-agent-page .ubox-token-hero__content {
    align-content: end;
    transform: none;
    padding-bottom: clamp(2.25rem, 6dvh, 4rem);
  }

  .ubox-agent-page .ubox-token-hero__media::after {
    background: linear-gradient(0deg, rgba(7, 18, 24, 0.62) 0%, rgba(7, 18, 24, 0.18) 40%, transparent 65%);
  }

  .ubox-agent-page .ubox-token-hero__summary {
    max-width: 20rem;
  }

  .ubox-agent-page .ubox-token-functions__grid,
  .ubox-agent-page .ubox-token-use-cases__grid {
    grid-template-columns: 1fr;
  }

  .ubox-agent-page .ubox-token-showcase::before {
    background-position: 28% center;
  }
}

@media (max-width: 360px) {
  .ubox-agent-page .ubox-token-hero__content {
    gap: 0.9rem;
    padding-bottom: 1.4rem;
  }

  .ubox-agent-hero__actions {
    flex-wrap: nowrap;
    gap: 0.45rem;
  }

  .ubox-agent-hero__actions .ubox-token-button,
  .ubox-agent-video-button {
    min-height: 3rem;
    padding: 0.6rem 0.8rem;
    gap: 0.45rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  html body.route-ubox-agent .site-shell .footer.footer--home-baseline[data-ui="app-footer"] .footer__social {
    width: 100%;
    min-width: 0;
  }

  html body.route-ubox-agent .site-shell .footer.footer--home-baseline[data-ui="app-footer"] .footer__social-list {
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ubox-agent-page .ubox-token-button,
  .ubox-agent-video-button,
  .ubox-agent-page .ubox-token-function-card a span {
    transition: none;
  }
}
