/* Reference dimensions and CTA variants, scoped to the homepage. */
.inference-home {
  --home-content-width: 1080px;
  --home-parchment: var(--theme-paper, #f3f0ee);
  --light-mint: var(--lime);
  --home-gutter: max(16px, 2vw);
  --home-button-green: oklch(.4529 .139 163.3);
  --home-button-hover: #00533a;
}
.inference-home :is(.homepage-main-shell, .final-cta-content) {
  width: min(calc(100% - 2 * var(--home-gutter)), var(--home-content-width));
  padding-inline: 0;
}
.inference-home .homepage-footer-shell,
.inference-home .mm-header .mm-wrap {
  max-width: var(--home-content-width);
  padding-inline: 16px;
}

.inference-home .home-button,
.inference-home .mm-header .mm-actions :is(.mm-link, .mm-cta) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #fff;
  background: var(--home-button-green);
  font: 600 15px/1.2 Inter, Arial, sans-serif;
  text-decoration: none;
  transition: background-color .16s, border-color .16s, color .16s;
}
.inference-home .home-button:hover,
.inference-home .mm-header .mm-actions .mm-cta:hover {
  background: var(--home-button-hover);
  color: #fff;
  box-shadow: none;
}
.inference-home .home-button-secondary,
.inference-home .mm-header .mm-actions .mm-link {
  border-color: var(--home-button-green);
  background: transparent;
  color: var(--home-button-green);
}
.inference-home .home-button-secondary:hover,
.inference-home .mm-header .mm-actions .mm-link:hover {
  border-color: var(--home-button-hover);
  background: var(--lime);
  color: var(--home-button-hover);
}
.inference-home .mm-header .mm-actions :is(.mm-link, .mm-cta) {
  min-height: 36px;
  padding: 8px 16px;
  font-size: 14px;
  white-space: nowrap;
}
.inference-home .home-button svg { flex: none; }
.inference-home .home-button::after { content: none; }
/* Keep the closing actions legible over the existing dark section. */
.inference-home .final-cta .home-button { min-width: 0; }
.inference-home .final-cta .home-button:not(.home-button-secondary) {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--on-action);
}
.inference-home .final-cta .home-button:not(.home-button-secondary):hover {
  border-color: var(--light-electric);
  background: var(--light-electric);
}
.inference-home .final-cta .home-button-secondary,
.inference-home .final-cta .home-button-secondary:hover {
  border-color: #fff;
  color: #fff;
}
.inference-home .final-cta .home-button-secondary:hover { background: rgb(255 255 255 / 12%); }
@media (max-width: 700px) {
  .inference-home .mm-header .mm-actions :is(.mm-link, .mm-cta) { padding-inline: 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .inference-home .home-button,
  .inference-home .mm-header .mm-actions :is(.mm-link, .mm-cta) { transition: none; }
}
.inference-home #main {
  --overview-forest: #25392b;
  --overview-dark-forest: #0e2515;
  font-family: Inter, Arial, sans-serif;
}
.inference-home #main :is(h1, h2, h3) {
  font-family: Manrope, Inter, Arial, sans-serif;
  font-weight: 800;
}
.inference-home #main :is(.inference-hero, .homepage-trust, .homepage-models) {
  background: var(--home-parchment);
  box-shadow: 0 0 0 100vmax var(--home-parchment);
  clip-path: inset(0 -100vmax);
}
.inference-home #main .inference-hero { grid-template-columns: minmax(0, 1fr); }
.inference-home #main .inference-hero::before { content: none; }
.inference-home #hero-heading { max-width: 11ch; }
.inference-home #hero-heading em { color: var(--accent); font-style: normal; }
.homepage-section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
}
.homepage-trust { padding: 8px 0 clamp(40px, 6vw, 78px); }
.homepage-trust h2 { font-size: 22px; }
.homepage-logos {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
}
.homepage-logos li {
  display: grid;
  place-items: center;
  min-height: 75px;
  padding: 8px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--panel);
}
.homepage-logos img {
  display: block;
  width: 100%;
  max-width: 124px;
  height: 44px;
  object-fit: contain;
}
.homepage-platform,
.homepage-feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4.5vw, 64px);
}
.homepage-platform {
  --platform-ground: oklch(31% .042 151);
  --platform-ink: oklch(95.86% .00257 151);
  --platform-copy: oklch(93.1% .042 151);
  --platform-rule: #405849;
  align-items: start;
  max-width: 1080px;
  margin-inline: auto;
  padding-block: clamp(44px, 6.7vw, 96px);
  color: var(--platform-ink);
  background: var(--platform-ground);
  box-shadow: 0 0 0 100vmax var(--platform-ground);
  clip-path: inset(0 -100vmax);
}
.homepage-platform-intro { display: grid; justify-items: start; gap: clamp(20px, 2.3vw, 32px); }
.inference-home #main .homepage-platform-intro h2 {
  max-width: 390px;
  color: inherit;
  font: 600 clamp(32px, 4vw, 48px)/1.05 Manrope, Inter, sans-serif;
  letter-spacing: -.02em;
  text-wrap: initial;
}
.homepage-platform-intro p, .homepage-pillar-list p { color: var(--platform-copy); font-size: 15.2px; line-height: 1.55; }
.homepage-platform-intro p { margin: 0; font-weight: 300; }
.homepage-platform a, .homepage-platform a:hover { color: var(--lime); font-weight: 400; gap: 6px; }
.homepage-pillar-list { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--platform-rule); }
.homepage-pillar-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding-block: 24px;
  border-top: 1px solid var(--platform-rule);
}
.homepage-pillar-list svg { width: 32px; height: 32px; color: inherit; }
.homepage-pillar-list h3 { font-size: 15.2px; line-height: 1.15; }
.homepage-pillar-list p { margin: 8px 0 0; }

.homepage-features, .homepage-models, .homepage-stories { max-width: 1080px; margin-inline: auto; }
.homepage-features {
  display: grid;
  gap: clamp(44px, 7vw, 88px);
  padding-block: clamp(44px, 7vw, 88px);
}
.homepage-feature { align-items: center; }
.inference-home #main .homepage-feature-copy h2 {
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 650;
  letter-spacing: -.02em;
  text-wrap: initial;
}
.homepage-feature-copy h2 span { color: var(--accent); }
.homepage-feature-copy p { color: var(--muted); max-width: 58ch; margin-block: 22px 12px; }
.homepage-feature-copy ul { margin: 0 0 28px; padding-inline-start: 24px; }
.homepage-feature-copy li + li { margin-top: 5px; }
.homepage-feature-copy li strong::after { content: ":"; }
.homepage-feature-reverse .homepage-proof { grid-column: 1; grid-row: 1; }
.homepage-proof {
  min-width: 0;
  margin: 0;
  border-radius: 8px;
  padding: clamp(20px, 3vw, 25px);
  color: var(--overview-dark-forest);
}
.homepage-proof figcaption { font-family: Manrope, Inter, sans-serif; font-size: clamp(16px, 2vw, 21px); }
.inference-benchmark {
  border: 1px solid #b0ddcc;
  background: #d4f2e8;
}
.inference-benchmark figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #006b50; }
.benchmark-model {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 5px;
  border-radius: 4px;
  color: #fff;
  background: #006b50;
  font: 600 12px Inter, sans-serif;
}
.benchmark-provider { margin: 28px 0 3px 28px; font-size: 14px; font-weight: 700; }
.benchmark-bars { display: grid; gap: 6px; margin: 0 0 29px; padding: 0; list-style: none; }
.benchmark-bars li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 66px;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.benchmark-bars img { border-radius: 4px; object-fit: contain; }
.benchmark-track { height: 11px; overflow: hidden; border-radius: 3px; background: rgb(255 255 255 / 68%); }
.benchmark-track > span { display: block; width: var(--bar-width); height: 100%; background: #5e7752; }
.benchmark-hero { font-weight: 800; }
.benchmark-hero .benchmark-track > span { background: #006b50; }
.inference-benchmark a { color: #006b50; font-weight: 400; }

.model-proof { --chart-background: #f1eeeb; background: var(--chart-background); border: 1px solid #e1d9d5; }
.homepage-proof-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; }
.model-cost-chart {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  grid-template-rows: minmax(174px, 1fr) auto auto;
  gap: 6px;
  margin-block: 22px 14px;
  padding-inline-end: 6px;
  color: #456153;
  font-size: 11px;
  line-height: 1.2;
}
.model-cost-chart__y-label {
  align-self: center;
  justify-self: start;
  grid-row: 1;
  transform: rotate(180deg);
  writing-mode: vertical-rl;
}
.model-cost-chart__plot,
.model-cost-chart__x-ticks,
.model-cost-chart__x-label { grid-column: 2; }
.model-cost-chart__plot {
  --highlight-label-size: clamp(9px, 4cqw, 11px);
  container-type: inline-size;
  grid-row: 1;
  position: relative;
  border-block-end: 1px solid #cfc6c1;
  border-inline-start: 1px solid #cfc6c1;
}
.model-cost-chart__gridline { position: absolute; inset: var(--y) 0 auto; border-top: 1px solid #ddd4cf; }
.model-cost-chart__y-tick { position: absolute; inset-inline-end: calc(100% + 6px); transform: translateY(-50%); }
.model-cost-chart__guide {
  position: absolute;
  top: var(--y);
  bottom: 0;
  left: var(--x);
  border-inline-start: 1px dotted currentColor;
  transform: translateX(-50%);
}
.model-cost-chart__savings {
  position: absolute;
  inset-inline: calc(var(--kimi-x) + 3px) calc(100% - var(--opus-x) + 3px);
  top: var(--y);
  border-top: 1px solid currentColor;
  color: #006b50;
}
.model-cost-chart__savings::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: -1px;
  border-block: 3px solid transparent;
  border-inline-end: 6px solid currentColor;
  transform: translateY(-50%);
}
.model-cost-chart__savings-label {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--chart-background);
  font-size: var(--highlight-label-size);
  font-weight: 700;
  white-space: nowrap;
}
.model-cost-chart__point {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--chart-background);
  border-radius: 50%;
  background: currentColor;
}
.model-cost-chart__point--highlight { width: 9px; height: 9px; background: var(--lime); border-color: #006b50; }
.model-cost-chart__point--comparison { background: var(--overview-dark-forest); }
.model-cost-chart__model {
  position: absolute;
  background: var(--chart-background);
  font-size: min(5cqw, 10px);
  white-space: nowrap;
}
:is(.model-cost-chart__point--highlight, .model-cost-chart__point--comparison) .model-cost-chart__model {
  color: var(--overview-dark-forest);
  font-size: var(--highlight-label-size);
  font-weight: 700;
}
:is(.model-cost-chart__model--above, .model-cost-chart__model--above-right) { bottom: calc(100% + 3px); left: 50%; }
.model-cost-chart__model--above { transform: translateX(-50%); }
.model-cost-chart__model--below-left { top: calc(100% + 2px); right: 50%; }
.model-cost-chart__model--below-left-inset { top: calc(100% + 4px); right: calc(50% + min(1cqw, 4px)); }
.model-cost-chart__model--below-right { top: calc(100% + 4px); left: calc(100% + 3px); transform: translateX(-50%); }
.model-cost-chart__model--below-left-edge {
  top: calc(50% + 3px);
  left: calc(50% - 13cqw + 4px);
  max-width: 24cqw;
  width: max-content;
  white-space: normal;
}
.model-cost-chart__model--below-right-edge {
  top: calc(100% + 6px);
  right: calc(50% - 10cqw);
  max-width: 24cqw;
  width: max-content;
  text-align: right;
  white-space: normal;
}
.model-cost-chart__x-ticks { position: relative; height: 1.2em; }
.model-cost-chart__x-tick { position: absolute; left: var(--x); transform: translateX(-50%); }
.model-cost-chart__x-label { text-align: center; }

.homepage-proof-photo { padding: 0; overflow: hidden; background: var(--overview-dark-forest); color: #fff; }
.homepage-proof-photo > img { display: block; width: 100%; aspect-ratio: 2.25; object-fit: cover; object-position: center top; }
.homepage-proof-photo > div { padding: clamp(18px, 3vw, 28px); }
.homepage-proof-photo h3 { color: inherit; font-size: clamp(22px, 3vw, 32px); margin-bottom: 14px; }
.homepage-proof-photo dl { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 0 0 18px; }
.homepage-proof-photo dl > div { display: flex; flex-direction: column-reverse; }
.homepage-proof-photo dt { font-size: 12px; }
.homepage-proof-photo dd { margin: 0; font-size: 24px; font-weight: 800; color: var(--lime); }
.homepage-proof-photo a { color: var(--lime); }

.homepage-models { padding-block: clamp(42px, 7vw, 85px); border-block: 1px solid var(--hairline); }
.homepage-models-heading {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  align-items: start;
}
.inference-home #main .homepage-models-heading h2 {
  max-width: 15ch;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: initial;
}
.homepage-models-heading p { margin: 0 0 16px; color: var(--muted); }
.homepage-models-action { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.homepage-models-action > span { color: var(--muted); font-size: 12px; }
.home-model-carousel { container-type: inline-size; min-width: 0; margin-top: 26px; }
.home-model-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
}
.home-model-card { display: flex; min-width: 0; }
.home-model-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-height: calc(184px * var(--model-scale, 1));
  padding: calc(24px * var(--model-scale, 1));
  border-radius: 6px;
  background: #e1d9d5;
  color: var(--ink);
}
.home-model-link:hover { background: #d8cfc9; color: var(--ink); text-decoration: none; }
.home-model-link:focus-visible { outline-offset: -3px; border-radius: 6px; }
.home-model-rail:focus-visible { outline-offset: 2px; }
.home-model-card img { width: calc(32px * var(--model-scale, 1)); height: auto; object-fit: contain; border-radius: 4px; }
.home-model-card img[src$="/z-ai.svg"] { background: #000; padding: 6px; }
.home-model-card h3 { font-size: calc(16px * var(--model-scale, 1)); }
.home-model-card p { margin: 3px 0 0; color: var(--muted); font-size: calc(13px * var(--model-scale, 1)); }
[data-model-carousel][data-ready] .home-model-rail {
  --model-width: clamp(172px, 23cqw, 238px);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: clip;
  touch-action: pan-y pinch-zoom;
}
[data-model-carousel][data-ready] .home-model-card {
  flex: 0 0 calc(var(--model-width) * var(--model-scale, 1));
  order: var(--model-offset);
}
.home-model-card[data-distance="1"] { --model-scale: .86; }
.home-model-card[data-distance="2"] { --model-scale: .72; }
.home-model-card[data-distance="3"] { display: none; }
.home-model-controls:not([hidden]), .home-model-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.home-model-controls { margin-top: 6px; }
.home-model-controls button {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
}
.home-model-arrow { width: 44px; font-size: 20px; background: transparent; border: 0; border-radius: 7px; }
.home-model-arrow:hover { background: var(--lime); }
.home-model-steps button { width: 25px; background: transparent; border: 0; }
.home-model-steps button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #81988b; }
.home-model-steps button[aria-current]::before { width: 10px; height: 10px; background: #007d5c; }
@container (width < 835px) { .home-model-card[data-distance="2"] { display: none; } }

.homepage-stories { padding-block: clamp(44px, 7vw, 86px); }
.home-story-carousel { margin-top: 24px; }
.home-story-carousel[data-ready] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4.5vw, 64px); }
.home-story-tabs:not([hidden]) { display: flex; flex-direction: column; gap: 7px; min-height: clamp(270px, 32vw, 400px); }
.home-story-tabs button {
  display: grid;
  flex: 1;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: radial-gradient(ellipse at 75% 15%, var(--story-light), var(--story-dark));
  cursor: pointer;
}
.home-story-tabs [data-story="fox"] { --story-light: #487f9b; --story-dark: #121f35; }
.home-story-tabs [data-story="paramount"] { --story-light: #666caa; --story-dark: #1c1935; }
.home-story-tabs [data-story="wyze"] { --story-light: #588879; --story-dark: #122d2a; }
.home-story-tabs button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("./homepage/story-grain.png") repeat;
  mix-blend-mode: soft-light;
  opacity: .45;
}
.home-story-tabs button[aria-selected="true"] { flex-grow: 2; }
.home-story-tabs button[aria-selected="false"] { filter: grayscale(.8) brightness(1.35); }
.home-story-tabs button:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
.home-story-tabs img { display: block; width: min(100%, 164px); height: 35px; object-fit: contain; filter: brightness(0) invert(1); }
.home-story-tabs [aria-selected="false"] img { transform: scale(.8); }
.home-story-panel:not([hidden]) { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.home-story-panel + .home-story-panel { margin-top: 24px; }
.home-story-carousel[data-ready] .home-story-panel { justify-content: space-between; min-height: 100%; margin: 0; padding-block: 12px; }
.home-story-panel :is(blockquote, p) { margin: 0; }
.home-story-panel blockquote { font: 650 clamp(23px, 2.5vw, 32px)/1.32 Manrope, Inter, sans-serif; }
.home-quote-accent { color: #007d5c; }
.home-story-person { display: flex; align-items: center; gap: 12px; }
.home-story-person img { flex: none; border-radius: 6px; object-fit: cover; }
.home-story-person p { color: var(--muted); font-size: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .home-story-tabs button { transition: flex-grow .25s ease, filter .25s ease; }
}
@media (max-width: 900px) {
  .homepage-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .homepage-platform, .homepage-feature, .homepage-models-heading,
  .home-story-carousel[data-ready] { grid-template-columns: minmax(0, 1fr); }
  .homepage-feature-reverse .homepage-proof { grid-area: auto; }
  .home-story-tabs:not([hidden]) { flex-direction: row; min-height: 72px; }
  .home-story-tabs button[aria-selected="true"] { flex-grow: 1.6; }
  .home-story-carousel[data-ready] .home-story-panel { padding-block: 0; }
  .homepage-logos { gap: 8px; }
  .homepage-logos li { min-height: 64px; padding: 5px; }
  .homepage-logos img { height: 32px; }
}
