/* Scrollytelling workload section — matched to the supplied SkyPilot reference. */
.bw-showcase-sticky-scope {
  overflow-x: clip !important;
  overflow-y: visible !important;
}
/* Keep the site's overflow-hidden section from clipping sticky card stacking. */
section:has(.bw-showcase) {
  overflow-x: clip !important;
  overflow-y: visible !important;
}
.bw-showcase {
  --bw-ink: #111316;
  --bw-muted: #71757b;
  --bw-hairline: rgba(18, 22, 28, .10);
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 996px);
  column-gap: 20px;
  align-items: start;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0;
  color: var(--bw-ink);
  font-family: inherit;
}
.bw-showcase,
.bw-showcase * { box-sizing: border-box; }

.bw-showcase__tabs {
  position: sticky;
  top: 128px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 180px;
  max-height: calc(100vh - 150px);
  overflow: auto;
  scrollbar-width: none;
}
.bw-showcase__tabs::-webkit-scrollbar { display: none; }
.bw-showcase__tab {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 17px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bw-muted);
  opacity: .5;
  text-align: left;
  text-decoration: none;
  text-transform: none;
  font-family: var(--font-neue-alte-grotesk, inherit);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.125rem;
  letter-spacing: -.02em;
  cursor: pointer;
  transition: opacity .22s ease, color .22s ease;
}
.bw-showcase__tab::before {
  content: "";
  flex: 0 0 0;
  width: 0;
  height: 0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 4px solid transparent;
  transform: translateX(-1px);
}
.bw-showcase__tab:hover,
.bw-showcase__tab[aria-current="location"] {
  color: #111316;
  opacity: 1;
}
.bw-showcase__tab[aria-current="location"]::before { border-left-color: #111316; }
.bw-showcase__tab:focus-visible { outline: 2px solid #8b98a8; outline-offset: 5px; }

.bw-showcase__panels {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 996px;
  min-width: 0;
}
.bw-showcase__panel {
  position: relative;
  z-index: var(--bw-stack-order, 1);
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  height: 370px;
  min-width: 0;
  scroll-margin-top: 128px;
  background: #fff;
}
.bw-showcase__panel:not(:last-child) {
  position: sticky;
  top: var(--bw-stack-top, 128px);
}
.bw-showcase__visual {
  position: relative;
  flex: 0 1 640px;
  width: 640px;
  max-width: 640px;
  min-width: 0;
  height: 370px;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: 4px;
  background-color: #eaf0ff;
}
.bw-showcase__backdrop,
.bw-showcase__visual-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.bw-showcase__backdrop { z-index: -1; object-fit: cover; object-position: center; }
.bw-showcase__visual-art { z-index: 1; object-fit: contain; object-position: center; }
.bw-showcase__detail {
  display: flex;
  flex: 1 1 332px;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  max-width: 332px;
  height: 100%;
  padding: 32px 0 28px 48px;
  border-top: 1px solid var(--bw-hairline);
}
.bw-showcase__detail-icon {
  display: block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  object-fit: contain;
  object-position: left top;
}
.bw-showcase__detail-copy { margin-top: auto; }
.bw-showcase__title {
  margin: 0;
  color: #111316;
  font-size: clamp(21px, 1.75vw, 24px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.bw-showcase__description {
  max-width: 34ch;
  margin: 13px 0 0;
  color: #191b20;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 400;
  line-height: 1.48;
}

/* Development IDE visual seen in the supplied reference. */
.bw-demo-development {
  position: absolute;
  inset: 7% 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.bw-demo-tools {
  display: flex;
  flex: 0 0 42px;
  gap: 6px;
  height: 42px;
  margin-bottom: 18px;
}
.bw-demo-tool {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  background: #08090d;
  color: #e7edf4;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  font-weight: 600;
}
.bw-demo-tool--vscode { color: #45a9ff; font-size: 22px; }
.bw-demo-tool--jupyter { color: #f49837; font-size: 12px; }
.bw-demo-tool--wandb { font-style: italic; }
.bw-demo-window {
  flex: 0 0 290px;
  width: 88%;
  height: 290px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px 7px 0 0;
  background: #0b0d13;
  color: #cbd1da;
  box-shadow: 0 18px 50px rgba(34,41,57,.18);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.bw-demo-window__chrome {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 48px;
  padding: 0 15px;
  background: #121620;
}
.bw-demo-dot { width: 9px; height: 9px; border-radius: 50%; background: #232b39; }
.bw-demo-search {
  position: absolute;
  left: 22%;
  right: 22%;
  top: 9px;
  overflow: hidden;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 3px;
  color: #8b93a0;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}
.bw-demo-editor {
  display: grid;
  grid-template-columns: 31% minmax(0, 1fr);
  height: 226px;
  margin: 0 12px;
  overflow: hidden;
  border-radius: 5px 5px 0 0;
  background: #05070b;
}
.bw-demo-explorer {
  padding: 16px 12px;
  border-right: 1px solid rgba(255,255,255,.08);
  color: #9ca4b1;
  font-size: 9px;
  line-height: 2.1;
  white-space: nowrap;
}
.bw-demo-explorer strong { display: block; margin-bottom: 10px; color: #d5d9e0; font-size: 9px; font-weight: 400; }
.bw-demo-code { padding: 17px 14px; overflow: hidden; color: #c4ccd7; font-size: 9px; line-height: 2.1; white-space: nowrap; }
.bw-demo-code span { display: block; }
.bw-demo-code i { display: inline-block; width: 19px; color: #586170; font-style: normal; }
.bw-demo-code em { color: #8fbcff; font-style: normal; }
.bw-demo-code b { color: #c792ea; font-weight: 400; }
.bw-demo-status {
  display: flex;
  justify-content: space-between;
  padding: 5px 13px;
  background: #172336;
  color: #aab7c9;
  font-size: 8px;
}

@media (max-width: 1279px) {
  .bw-showcase {
    display: block;
    width: min(996px, calc(100% - 48px));
  }
  .bw-showcase__tabs { display: none; }
  .bw-showcase__panels { margin: 0 auto; }
  .bw-showcase__visual { flex-basis: 64.3%; width: 64.3%; }
  .bw-showcase__detail { flex-basis: 0; padding-left: clamp(24px, 4vw, 48px); }
}
@media (max-width: 767px) {
  .bw-showcase { width: calc(100% - 32px); }
  .bw-showcase__panels { gap: 34px; }
  .bw-showcase__panel,
  .bw-showcase__panel:not(:last-child) {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: auto;
    background: transparent;
  }
  .bw-showcase__visual {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 600 / 420;
  }
  .bw-showcase__detail {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    min-height: 178px;
    padding: 19px 0 20px;
    border-bottom: 1px solid var(--bw-hairline);
  }
  .bw-showcase__detail-copy { margin-top: 24px; }
  .bw-showcase__title { font-size: 23px; }
  .bw-showcase__description { max-width: 42ch; margin-top: 10px; font-size: 16px; }
  .bw-demo-development { top: 7%; }
  .bw-demo-tools { transform: scale(.82); transform-origin: top center; margin-bottom: 10px; }
  .bw-demo-window { flex-basis: 230px; width: 90%; height: 230px; }
  .bw-demo-editor { grid-template-columns: 34% minmax(0,1fr); height: 188px; margin: 0 8px; }
  .bw-demo-explorer { padding: 11px 7px; font-size: 7px; }
  .bw-demo-code { padding: 11px 7px; font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .bw-showcase__tab { transition-duration: .01ms !important; }
}

/* Compact navigation and card rhythm for tablet and mobile screens. */
@media (max-width: 1279px) {
  .bw-showcase__tabs {
    display: flex;
    position: sticky;
    top: 63px;
    z-index: 50;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-height: none;
    margin: 0 auto 16px;
    padding: 10px 0 12px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid var(--bw-hairline);
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    scroll-snap-type: x proximity;
  }
  .bw-showcase__tabs::-webkit-scrollbar { display: none; }
  .bw-showcase__tab {
    flex: 0 0 auto;
    width: auto;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #f3f4f6;
    color: #555b64;
    opacity: 1;
    text-align: center;
    text-transform: none;
    font-family: var(--font-neue-alte-grotesk, inherit);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.125rem;
    letter-spacing: -.02em;
    scroll-snap-align: start;
  }
  .bw-showcase__tab::before { display: none; }
  .bw-showcase__tab:hover,
  .bw-showcase__tab[aria-current="location"] {
    border-color: #17191d;
    background: #17191d;
    color: #fff;
    opacity: 1;
  }
  .bw-showcase__tab:focus-visible { outline-offset: -3px; }
  .bw-showcase__panel { scroll-margin-top: 128px; }
}

@media (max-width: 767px) {
  main > section:first-child h1 {
    font-size: clamp(42px, 11.2vw, 48px) !important;
    line-height: 1.1 !important;
    letter-spacing: -.035em;
    text-wrap: balance;
  }
  .bw-showcase__tabs {
    gap: 7px;
    margin-bottom: 12px;
    padding: 8px 0 10px;
  }
  .bw-showcase__tab {
    min-height: 40px;
    padding: 0 11px;
    font-family: var(--font-neue-alte-grotesk, inherit);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.125rem;
    letter-spacing: -.02em;
  }
  .bw-showcase__panels { gap: 22px; }
  .bw-showcase__panel,
  .bw-showcase__panel:not(:last-child) {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: auto;
    background: transparent;
  }
  .bw-showcase__visual {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .bw-showcase__detail {
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    max-width: none;
    min-height: 0;
    height: auto;
    padding: 18px 0 20px;
    border-bottom: 1px solid var(--bw-hairline);
  }
  .bw-showcase__detail-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 3px;
  }
  .bw-showcase__detail-copy { flex: 1 1 auto; min-width: 0; margin-top: 0; }
  .bw-showcase__title { font-size: clamp(19px, 5.3vw, 22px); line-height: 1.28; }
  .bw-showcase__description { max-width: none; margin-top: 8px; font-size: 14px; line-height: 1.55; }
}

@media (max-width: 767px) {
  nav[class*="justify-between"][class*="col-span-12"] > div[class*="xl:hidden"] > div[class*="xl:hidden"] > button {
    display: none !important;
  }
  .tokenx-mobile-menu-trigger {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    z-index: 10000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid rgba(17, 19, 22, .16);
    border-radius: 50%;
    background: #fff;
    color: #17191d;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .tokenx-mobile-menu-trigger:focus-visible {
    outline: 2px solid #17191d;
    outline-offset: 3px;
  }
  .tokenx-mobile-menu-trigger__icon {
    display: grid;
    gap: 4px;
    width: 14px;
  }
  .tokenx-mobile-menu-trigger__icon i {
    display: block;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
  }
  #tokenx-mobile-menu:not([hidden]) {
    display: grid;
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    z-index: 10001;
    width: min(340px, calc(100vw - 32px));
    max-height: min(72vh, 620px);
    padding: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(17, 19, 22, .12);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(17, 19, 22, .18);
  }
  #tokenx-mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 9px;
    color: #1c2026;
    font-family: var(--font-neue-alte-grotesk, inherit);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.125rem;
    letter-spacing: -.02em;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  #tokenx-mobile-menu a[href="#routing"],
  #tokenx-mobile-menu a[href="#inference"],
  #tokenx-mobile-menu a[href="#models"],
  #tokenx-mobile-menu a[href="#billing"],
  #tokenx-mobile-menu a[href="#reliability"],
  #tokenx-mobile-menu a[href="#verification"] {
    font-weight: 500;
  }
  #tokenx-mobile-menu a:hover,
  #tokenx-mobile-menu a:focus-visible { background: #f3f4f6; outline: none; }
  #tokenx-mobile-menu a.tokenx-mobile-menu__cta {
    margin-top: 7px;
    background: #17191d;
    color: #fff;
    font-weight: 600;
  }
  #tokenx-mobile-menu a.tokenx-mobile-menu__resources {
    margin-top: 7px;
    border-top: 1px solid rgba(17, 19, 22, .1);
    border-radius: 0;
  }
}
@media (min-width: 768px) {
  .tokenx-mobile-menu-trigger,
  #tokenx-mobile-menu { display: none !important; }
}


/* Distinct explanatory callout under the homepage distributed-inference headline. */
.tokenx-home-method-callout {
  display: flex;
  align-items: stretch;
  width: calc(100% + 24px);
  margin: 24px -12px 0;
  overflow: hidden;
  border-top: 1px dashed rgba(18, 22, 28, .24);
  border-bottom: 1px dashed rgba(18, 22, 28, .24);
  background: transparent;
  color: #17191d;
}
.tokenx-home-method-callout__accent {
  flex: 0 0 4px;
  width: 4px;
  display: none;
}
.tokenx-home-method-callout__text {
  flex: 1;
  width: 100%;
  margin: 0;
  padding: 17px 20px;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -.01em;
  text-align: center;
}
@media (max-width: 767px) {
  .tokenx-home-method-callout {
    width: calc(100% + 24px);
    margin: 18px -12px 0;
  }
  .tokenx-home-method-callout__text {
    padding: 14px 15px;
    font-size: 15px;
  }
}

/* Keep the explanatory line directly below its headline on desktop too. */
div:has(> h2 + .tokenx-home-method-callout) {
  flex-direction: column !important;
  align-items: center !important;
}

/* Show the homepage hero's topology artwork at first paint instead of waiting for client reveal animations. */
main > section:first-child .color-block {
  opacity: 1 !important;
  visibility: visible !important;
  transform: scaleX(1) !important;
  transition: none !important;
  animation: none !important;
}
main > section:first-child [class*="lines_grid-line--revealed"] {
  opacity: 1 !important;
  animation: none !important;
}
main > section:first-child [class*="lines_grid-line--revealed"]::before {
  display: none !important;
  animation: none !important;
}

/* Static three-step distributed-inference explainer in the single-node feature card. */
.tokenx-inference-steps-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 420px;
}
.tokenx-inference-steps {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  margin: 0;
  padding: 0 clamp(16px, 2vw, 34px);
  list-style: none;
}
.tokenx-inference-step {
  padding: 17px 0 19px;
  border-top: 1px dashed rgba(18, 22, 28, .28);
}
.tokenx-inference-step:last-child {
  border-bottom: 1px dashed rgba(18, 22, 28, .28);
}
.tokenx-inference-step__heading {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 0 0 8px;
}
.tokenx-inference-step__number {
  flex: 0 0 auto;
  padding: 2px 6px;
  background: #ff4945;
  color: #111316;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
}
.tokenx-inference-step__separator {
  color: rgba(18, 22, 28, .48);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
}
.tokenx-inference-step__title {
  margin: 0;
  color: #111316;
  font-size: clamp(18px, 1.45vw, 22px);
  font-weight: 600;
  line-height: 1.25;
}
.tokenx-inference-step__description {
  max-width: 48ch;
  margin: 0;
  color: #292c31;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}
@media (max-width: 767px) {
  .tokenx-inference-steps-panel {
    min-height: 0;
    justify-content: flex-start;
    margin-top: 18px;
  }
  .tokenx-inference-steps {
    max-width: none;
    padding: 0;
  }
  .tokenx-inference-step {
    padding: 15px 0 16px;
  }
  .tokenx-inference-step__title {
    font-size: 19px;
  }
  .tokenx-inference-step__description {
    font-size: 14px;
  }
}
