/* Copyright (c) 2026 Rayforce Technologies Inc. All rights reserved. */
/* Homepage — seven blocks, kx- namespace. */

.kx-home {
  width: 100vw;
  margin-top: -2.7rem;
  margin-left: calc(50% - 50vw);
  color: var(--kt-text);
  background: var(--kt-bg);
}

.kx-home :where(h1, h2, p, pre, figure) {
  margin: 0;
}

.kx-home a {
  text-decoration: none;
}

.kx-home code {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
}

.kx-home pre {
  margin: 0;
  background: transparent;
}

.kx-home pre > code {
  border: 0;
}

.kx-home a:focus-visible,
.kx-home button:focus-visible {
  outline: 2px solid var(--kt-lime);
  outline-offset: 3px;
}

.kx-shell {
  width: min(100%, 76rem);
  margin: 0 auto;
  padding-right: var(--kt-page-gutter);
  padding-left: var(--kt-page-gutter);
}

/* ---- blocks: section chrome ---------------------------------------------- */

.kx-block {
  padding: clamp(3rem, 6vh, 4.5rem) 0 clamp(5rem, 10vh, 7.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.kx-block--tint {
  background: #191b23;
}

.kx-block:not(.kx-hero) {
  position: relative;
  overflow: hidden;
  background-color: #15171e;
  isolation: isolate;
}

.kx-block--tint:not(.kx-hero) {
  background-color: #1a1c24;
}

.kx-block:not(.kx-hero)::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(146, 151, 169, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 151, 169, 0.075) 1px, transparent 1px);
  background-size: 3.8rem 3.8rem;
  content: "";
  mask-image: linear-gradient(90deg, transparent 12%, rgba(0, 0, 0, 0.38) 58%, #000 100%);
  opacity: 0.55;
  pointer-events: none;
}

.kx-block--tint:not(.kx-hero)::before {
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.38) 42%, transparent 88%);
}

.kx-block:not(.kx-hero)::after {
  position: absolute;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(181, 231, 43, 0.04), transparent 68%);
  content: "";
  pointer-events: none;
  top: -10rem;
  right: -7rem;
}

.kx-block--tint:not(.kx-hero)::after {
  right: auto;
  left: -8rem;
}

.kx-block > .kx-shell {
  position: relative;
  z-index: 1;
}

.kx-block h2 {
  max-width: 14ch;
  margin-top: 0;
  margin-bottom: 1.7rem;
  color: #fff;
  font-size: clamp(2.45rem, 4.5vw, 4rem);
  font-weight: 690;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.kx-block h2 em {
  color: #fff;
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--kt-lime);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.09em;
}

.kx-block h2 code {
  font-size: 0.92em;
}

.kx-copy {
  max-width: 47rem;
}

.kx-copy p {
  margin-bottom: 1.2rem;
  color: #bfc3cb;
  font-size: clamp(0.8rem, 1.12vw, 0.9rem);
  line-height: 1.72;
}

.kx-copy code {
  color: var(--kt-technical);
  font-size: 0.92em;
}

.kx-home .kx-link {
  display: inline-flex;
  margin-top: 0.7rem;
  padding-bottom: 0.18rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(181, 231, 43, 0.65);
}

.kx-home .kx-link:hover {
  color: var(--kt-lime-soft);
}

.kx-footnote {
  max-width: 52rem;
  margin-top: 2rem;
  color: #969ca7;
  font-size: 0.72rem;
  line-height: 1.72;
}

.kx-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

/* ---- panels -------------------------------------------------------------- */

.kx-panel {
  padding: 1.55rem 1.65rem;
  background: rgba(19, 21, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.35rem;
  box-shadow: 0 1.8rem 5rem rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.kx-block--tint .kx-panel {
  background: rgba(18, 20, 27, 0.88);
}

.kx-panel-cap {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  color: #8b919c;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kx-panel-cap code {
  text-transform: none;
  color: var(--kt-text);
}

.kx-panel-note {
  margin-top: 0.9rem;
  color: #969ca6;
  font-size: 0.68rem;
  line-height: 1.65;
}

.kx-panel-note em {
  color: #c8cdd4;
  font-style: normal;
  font-weight: 650;
}

/* ---- hero ---------------------------------------------------------------- */

.kx-hero {
  position: relative;
  display: flex;
  min-height: calc(100vh - 5.5rem);
  min-height: calc(100svh - 5.5rem);
  padding: clamp(3.25rem, 7vh, 5rem) 0 1.4rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(115, 167, 184, 0.08), transparent 24rem),
    radial-gradient(circle at 52% 115%, rgba(181, 231, 43, 0.055), transparent 28rem),
    #1d1f28;
  isolation: isolate;
}

.kx-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(146, 151, 169, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 151, 169, 0.11) 1px, transparent 1px);
  background-position: right top;
  background-size: 3.8rem 3.8rem;
  content: "";
  mask-image: linear-gradient(90deg, transparent 20%, rgba(0, 0, 0, 0.15) 42%, #000 72%);
  pointer-events: none;
}

.kx-hero::after {
  position: absolute;
  z-index: -1;
  top: 3.8rem;
  right: 11.4rem;
  width: 3.8rem;
  height: 3.8rem;
  background: rgba(181, 231, 43, 0.1);
  box-shadow:
    -22.8rem 7.6rem 0 rgba(115, 167, 184, 0.12),
    -7.6rem 15.2rem 0 rgba(181, 231, 43, 0.08),
    3.8rem 22.8rem 0 rgba(115, 167, 184, 0.12),
    -15.2rem 30.4rem 0 rgba(181, 231, 43, 0.07);
  content: "";
  pointer-events: none;
}

.kx-hero > .kx-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
}

.kx-hero-content {
  max-width: 62rem;
}

.kx-kicker {
  display: inline-flex;
  gap: 0.48rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.34rem 0.62rem;
  color: #d1d4db;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.kx-kicker-icon {
  width: 0.68rem;
  height: 0.68rem;
  flex: 0 0 auto;
  fill: var(--kt-lime);
  filter: drop-shadow(0 0 0.25rem rgba(181, 231, 43, 0.2));
}

.kx-kicker--section {
  display: inline-flex;
  margin-bottom: 1.25rem;
  padding: 0.32rem 0.58rem;
  color: #cfd2d9;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.kx-kicker--section .kx-kicker-icon {
  width: 0.62rem;
  height: 0.62rem;
}

.kx-block--tint .kx-kicker--section .kx-kicker-icon {
  fill: var(--kt-cyan);
  filter: drop-shadow(0 0 0.25rem rgba(99, 199, 214, 0.22));
}

.kx-hero h1 {
  max-width: 20ch;
  margin-bottom: 1.8rem;
  color: #fff;
  font-size: clamp(3.15rem, 5.35vw, 4.85rem);
  font-weight: 690;
  line-height: 0.96;
  letter-spacing: -0.062em;
}

.kx-hero h1 em {
  color: #fff;
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--kt-lime);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.08em;
}

.kx-hero h1 .kx-hero-brand {
  color: var(--kt-lime);
}

.kx-lead {
  max-width: 48rem;
  margin-bottom: 1.9rem;
  color: #c0c3ca;
  font-size: clamp(0.86rem, 1.45vw, 1.02rem);
  line-height: 1.62;
}

.kx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: stretch;
}

.kx-actions--end {
  margin-top: 2.2rem;
}

.kx-install-field {
  display: flex;
  gap: 0.58rem;
  align-items: center;
  min-width: 16rem;
  min-height: 3rem;
  padding-left: 0.9rem;
  color: #dfe2e7;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.64rem;
  background: rgba(7, 9, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.3rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.kx-install-field > em {
  color: var(--kt-lime);
  font-style: normal;
}

.kx-install-field > code {
  white-space: nowrap;
}

.kx-install-field > button {
  display: inline-flex;
  gap: 0.4rem;
  align-self: stretch;
  align-items: center;
  margin-left: auto;
  padding: 0 0.75rem;
  color: #9ca2ac;
  font-size: 0.56rem;
  background: rgba(255, 255, 255, 0.035);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease;
}

.kx-install-field > button:hover,
.kx-install-field > button.is-copied {
  color: var(--kt-lime);
  background: rgba(181, 231, 43, 0.06);
}

.kx-install-field .kt-icon {
  width: 0.68rem;
  height: 0.68rem;
}

.kx-home .kx-hero-link {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  min-height: 3rem;
  padding: 0.7rem 0.2rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 720;
}

.kx-home .kx-hero-link span {
  color: var(--kt-lime);
  font-size: 1rem;
  transition: transform 140ms ease;
}

.kx-home .kx-hero-link:hover span {
  transform: translateX(0.2rem);
}

.kx-home .kx-benchmark-btn {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.72rem;
  align-items: center;
  min-width: 13.5rem;
  min-height: 3rem;
  padding: 0.5rem 0.85rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.3rem;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.kx-home .kx-benchmark-btn:hover {
  color: #fff;
  background: rgba(181, 231, 43, 0.075);
  border-color: rgba(181, 231, 43, 0.55);
  transform: translateY(-2px);
}

.kx-benchmark-btn > svg {
  width: 1rem;
  height: 1rem;
  fill: var(--kt-lime);
}

.kx-benchmark-btn > svg:first-child {
  fill: var(--kt-cyan);
}

.kx-benchmark-btn > span {
  display: grid;
  gap: 0.1rem;
  font-size: 0.69rem;
  font-weight: 720;
  line-height: 1.15;
}

.kx-benchmark-btn small {
  color: #858b96;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.45rem;
  font-weight: 500;
  letter-spacing: 0.035em;
}

.kx-benchmark-btn > svg.kx-benchmark-arrow {
  width: 0.65rem;
  height: 0.65rem;
  transition: transform 140ms ease;
}

.kx-benchmark-btn:hover > svg.kx-benchmark-arrow {
  transform: translateX(0.18rem);
}

.kx-lead-live {
  display: block;
  min-height: 1.62em;
  color: var(--kt-cyan);
  white-space: nowrap;
}

.kx-lead-cursor {
  display: inline-block;
  width: 0.12em;
  height: 0.95em;
  margin-left: 0.16em;
  vertical-align: -0.12em;
  background: var(--kt-cyan);
  animation: kx-lead-cursor 780ms steps(1) infinite;
}

.kx-lead-live.is-static .kx-lead-cursor {
  opacity: 0.45;
  animation: none;
}

@keyframes kx-lead-cursor {
  50% {
    opacity: 0;
  }
}

.kx-hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: 0.9rem;
  border-top: 1px solid rgba(181, 231, 43, 0.45);
}

.kx-hero-facts p {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.25rem 1.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.kx-hero-facts p:first-child {
  padding-left: 0;
  border-left: 0;
}

.kx-hero-facts strong {
  color: #f4f5f7;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  font-weight: 650;
}

.kx-hero-facts p > span {
  display: grid;
  gap: 0.18rem;
}

.kx-hero-facts small {
  color: #838994;
  font-size: 0.58rem;
}

.kx-fact-icon {
  width: 1rem;
  height: 1rem;
  fill: var(--kt-lime);
  opacity: 0.85;
}

.kx-hero-facts p:nth-child(even) .kx-fact-icon {
  fill: var(--kt-cyan);
}

.kx-home .kx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.7rem 1.15rem;
  color: #0b0d10;
  font-size: 0.68rem;
  font-weight: 720;
  background: var(--kt-lime);
  border-radius: 0.45rem;
  transition: background 140ms ease;
}

.kx-home .kx-btn:hover {
  color: #0b0d10;
  background: var(--kt-lime-soft);
}

.kx-home .kx-btn--ghost {
  color: var(--kt-text);
  background: transparent;
  border: 1px solid var(--kt-line);
}

.kx-home .kx-btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.kx-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 2.2rem;
  color: #6d747d;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.53rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ---- the memory-wall chart ----------------------------------------------- */

.kx-home .kx-chart {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: left;
}

.kx-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.kx-chart-grid line {
  stroke: rgba(255, 255, 255, 0.05);
}

.kx-chart-axis line {
  stroke: rgba(255, 255, 255, 0.22);
}

.kx-chart-ticks text {
  fill: #6d747d;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
}

.kx-chart-ideal {
  stroke: #59606a;
  stroke-dasharray: 4 4;
}

.kx-chart-ideal-label {
  fill: #767d86;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9.5px;
}

.kx-chart-wall {
  stroke: #c94f6d;
  stroke-dasharray: 2 4;
}

.kx-chart-wall-label {
  fill: #c94f6d;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9.5px;
}

.kx-chart-measured {
  fill: none;
  stroke: var(--kt-lime);
  stroke-width: 2;
  stroke-linejoin: round;
}

.kx-chart-dots circle {
  fill: var(--kt-bg);
  stroke: var(--kt-lime);
  stroke-width: 1.6;
}

.kx-chart-measured-label {
  fill: var(--kt-lime);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9.5px;
}

/* ---- block 01: byte grid + four jobs ------------------------------------- */

.kx-bytegrid {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 2px;
}

.kx-bytegrid i {
  aspect-ratio: 1;
  border-radius: 2px;
}

i.kx-b-id {
  background: rgba(181, 231, 43, 0.32);
}

i.kx-b-pay {
  background: rgba(115, 167, 184, 0.34);
}

i.kx-b-meta {
  background: rgba(255, 255, 255, 0.09);
}

.kx-bytelegend {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.kx-bytelegend li {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.3rem;
  color: #9aa0a8;
  font-size: 0.6rem;
}

.kx-bytelegend li i {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  transform: translateY(1px);
}

.kx-bytelegend code {
  color: var(--kt-technical);
}

.kx-fourjobs {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0.3rem;
  align-items: center;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.09);
}

.kx-fourjobs > b {
  color: var(--kt-lime);
  font-size: 0.75rem;
}

.kx-job {
  display: grid;
  gap: 0.3rem;
  justify-items: center;
  text-align: center;
}

.kx-job small {
  color: #767d86;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kx-job small:last-child {
  color: #596068;
  text-transform: none;
  letter-spacing: 0.02em;
}

.kx-chip {
  padding: 0.22rem 0.6rem;
  color: var(--kt-lime);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.56rem;
  background: rgba(181, 231, 43, 0.06);
  border: 1px solid rgba(181, 231, 43, 0.35);
  border-radius: 0.3rem;
}

/* ---- block 02: encoder widget -------------------------------------------- */

.kx-encoder {
  margin-top: 1.1rem;
}

.kx-enc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.kx-enc-presets button {
  padding: 0.42rem 0.7rem;
  color: #9aa0a8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.58rem;
  background: transparent;
  border: 1px solid var(--kt-line);
  border-radius: 0.4rem;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.kx-enc-presets button:hover {
  color: var(--kt-text);
}

.kx-enc-presets button.is-on {
  color: var(--kt-text);
  background: rgba(181, 231, 43, 0.06);
  border-color: rgba(181, 231, 43, 0.45);
}

.kx-enc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.4rem;
}

.kx-enc-in pre {
  overflow-x: auto;
  padding: 0.7rem 0.8rem;
  color: #c8cdd4;
  font-size: 0.62rem;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--kt-line);
  border-radius: 0.4rem;
}

.kx-enc-decision {
  margin-top: 0.7rem;
  font-size: 0.58rem;
}

.kx-enc-decision code {
  color: var(--kt-technical);
}

.kx-enc-out .kx-panel-cap strong {
  color: var(--kt-lime);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.kx-enc-why {
  min-height: 2.4rem;
  margin-bottom: 0.9rem;
  color: #aeb3bc;
  font-size: 0.64rem;
  line-height: 1.65;
}

.kx-enc-bar {
  display: grid;
  grid-template-columns: 3.2rem 1fr 3.4rem;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.kx-enc-bar small,
.kx-enc-bar span {
  color: #858c95;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.54rem;
}

.kx-enc-bar span {
  text-align: right;
  color: var(--kt-text);
}

.kx-bar {
  height: 0.5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.kx-bar i {
  display: block;
  height: 100%;
  background: var(--kt-lime);
  border-radius: 999px;
  transition: width 420ms ease;
}

.kx-enc-bar:first-of-type .kx-bar i {
  background: #59606a;
}

/* ---- block 03: zone map -------------------------------------------------- */

.kx-zones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.kx-zone {
  display: grid;
  gap: 0.18rem;
  padding: 0.55rem 0.3rem;
  text-align: center;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  border: 1px solid var(--kt-line);
  border-radius: 0.4rem;
}

.kx-zone small {
  color: #596068;
  font-size: 0.46rem;
  letter-spacing: 0.1em;
}

.kx-zone strong {
  color: var(--kt-text);
  font-size: 0.58rem;
  font-weight: 500;
}

.kx-zone span {
  font-size: 0.46rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #767d86;
}

.kx-zone.is-skip {
  opacity: 0.38;
}

.kx-zone.is-scan {
  border-color: rgba(115, 167, 184, 0.55);
}

.kx-zone.is-scan span {
  color: var(--kt-technical);
}

.kx-zone.is-const {
  background: rgba(181, 231, 43, 0.05);
  border-color: rgba(181, 231, 43, 0.45);
}

.kx-zone.is-const span {
  color: var(--kt-lime);
}

/* ---- block 04: pipeline -------------------------------------------------- */

.kx-pipe {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.1rem;
  align-items: center;
}

.kx-pipe-src,
.kx-pipe-sinks {
  display: grid;
  gap: 0.28rem;
  justify-items: center;
}

.kx-pipe-src small,
.kx-pipe-sinks small {
  color: #596068;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kx-pipe-src i {
  width: 2.1rem;
  height: 0.5rem;
  background: rgba(181, 231, 43, 0.28);
  border-radius: 2px;
}

.kx-pipe-sinks span {
  min-width: 3.4rem;
  padding: 0.2rem 0.5rem;
  color: #c8cdd4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.53rem;
  text-align: center;
  border: 1px solid var(--kt-line);
  border-radius: 0.3rem;
}

.kx-pipe-lanes {
  display: grid;
  gap: 0.45rem;
}

.kx-lane {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
}

.kx-lane span {
  color: #596068;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.5rem;
}

.kx-lane em {
  color: var(--kt-lime);
  font-style: normal;
  font-size: 0.6rem;
}

.kx-lane b {
  padding: 0.28rem 0.6rem;
  color: #aeb3bc;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.54rem;
  font-weight: 500;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 0.3rem;
}

.kx-progress {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.09);
}

.kx-progress .kx-bar i {
  transition: none;
}

.kx-progress p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  justify-content: space-between;
  margin-top: 0.5rem;
  color: #767d86;
  font-size: 0.55rem;
}

.kx-progress code {
  color: var(--kt-text);
  font-size: 0.55rem;
}

/* ---- block 05: scale map ------------------------------------------------- */

.kx-tag {
  display: inline-block;
  margin-left: 0.2rem;
  padding: 0.14rem 0.5rem;
  color: #d9a13b;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.52rem;
  letter-spacing: 0.05em;
  border: 1px solid rgba(217, 161, 59, 0.4);
  border-radius: 999px;
  white-space: nowrap;
}

.kx-scalemap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.2rem;
  margin-top: 1.8rem;
  align-items: stretch;
}

.kx-plan-card pre {
  overflow-x: auto;
  color: #c8cdd4;
  font-size: 0.6rem;
  line-height: 1.65;
}

.kx-plan-card pre > code {
  color: inherit;
}

.kx-syntax-name {
  color: #f1f3f5;
  font-weight: 650;
}

.kx-syntax-module,
.kx-syntax-string {
  color: var(--kt-cyan);
}

.kx-syntax-call {
  color: var(--kt-lime-soft);
}

.kx-syntax-number,
.kx-syntax-op {
  color: var(--kt-cyan-soft);
}

.kx-syntax-punct {
  color: #7f8690;
}

.kx-wire-label {
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.09);
  color: var(--kt-technical);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.53rem;
  letter-spacing: 0.04em;
}

.kx-targets {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.2rem;
}

.kx-target > code {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--kt-text);
  font-size: 0.58rem;
}

.kx-cores {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.3rem;
}

.kx-cores i {
  aspect-ratio: 1;
  background: rgba(181, 231, 43, 0.3);
  border-radius: 2px;
}

.kx-fleet {
  display: grid;
  gap: 0.4rem;
}

.kx-fleet > span {
  display: grid;
  grid-template-columns: auto repeat(4, 1fr);
  gap: 0.3rem;
  align-items: center;
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--kt-line);
  border-radius: 0.35rem;
}

.kx-fleet b {
  color: #767d86;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.5rem;
  font-weight: 500;
}

.kx-fleet i {
  height: 0.42rem;
  background: rgba(181, 231, 43, 0.3);
  border-radius: 2px;
}

/* ---- block 06: proof ----------------------------------------------------- */

.kx-proof-eq {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  align-items: baseline;
  justify-content: center;
  margin-top: 1.8rem;
  padding: 1.15rem 1.4rem;
  background: rgba(181, 231, 43, 0.035);
  border: 1px solid rgba(181, 231, 43, 0.18);
  border-radius: 0.6rem;
}

.kx-proof-eq code {
  color: var(--kt-text);
  font-size: clamp(0.62rem, 1.1vw, 0.76rem);
}

.kx-proof-eq b {
  color: var(--kt-lime);
  font-size: 0.95rem;
}

.kx-proof-eq small {
  flex-basis: 100%;
  color: #767d86;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.kx-proof-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.kx-proof-links a {
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--kt-line);
  border-radius: 0.3rem;
  background: rgba(17, 19, 26, 0.72);
  transition: border-color 140ms ease, transform 140ms ease;
}

.kx-proof-links a:hover {
  border-color: rgba(181, 231, 43, 0.4);
  transform: translateY(-2px);
}

.kx-proof-links b {
  display: block;
  color: var(--kt-text);
  font-size: 0.64rem;
}

.kx-proof-links small {
  display: block;
  margin-top: 0.3rem;
  color: #858c95;
  font-size: 0.55rem;
  line-height: 1.55;
}

/* ---- footer -------------------------------------------------------------- */

.kx-footer {
  padding: 1.7rem 0 1.9rem;
  background: #11131a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.kx-footer .kx-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  align-items: center;
}

.kx-footer p {
  color: #767d86;
  font-size: 0.62rem;
}

.kx-footer nav {
  display: flex;
  gap: 1.2rem;
  margin-left: auto;
}

.kx-home .kx-footer nav a {
  color: #9aa0a8;
  font-size: 0.62rem;
  font-weight: 600;
}

.kx-home .kx-footer nav a:hover {
  color: var(--kt-text);
}

.kx-footer small {
  flex-basis: 100%;
  color: #596068;
  font-size: 0.52rem;
}

/* ---- responsive ---------------------------------------------------------- */

@media (min-width: 701px) {
  .kx-hero > .kx-shell {
    padding-right: clamp(3rem, 5vw, 4.5rem);
    padding-left: clamp(3rem, 5vw, 4.5rem);
  }
}

@media (max-width: 1100px) {
  .kx-split,
  .kx-split--hero,
  .kx-scalemap {
    grid-template-columns: minmax(0, 1fr);
  }

  .kx-split {
    gap: 2.75rem;
  }

  .kx-split > .kx-panel {
    width: 100%;
    max-width: 48rem;
  }
}

@media (min-width: 701px) and (max-height: 850px) {
  .kx-hero {
    padding-top: 2.2rem;
    padding-bottom: 0.75rem;
  }

  .kx-kicker {
    margin-bottom: 1rem;
  }

  .kx-hero h1 {
    margin-bottom: 1.2rem;
    font-size: clamp(3rem, 5vw, 4.4rem);
  }

  .kx-lead {
    margin-bottom: 1.25rem;
    font-size: clamp(0.82rem, 1.35vw, 0.94rem);
    line-height: 1.52;
  }

  .kx-install-field,
  .kx-home .kx-benchmark-btn {
    min-height: 2.8rem;
  }

  .kx-hero-facts {
    margin-top: 1.6rem;
    padding-top: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kx-lead-cursor {
    animation: none;
  }
}

@media (min-width: 701px) and (max-height: 700px) {
  .kx-hero {
    padding-top: 1rem;
    padding-bottom: 0.9rem;
  }

  .kx-kicker {
    margin-bottom: 0.7rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.5rem;
  }

  .kx-hero h1 {
    margin-bottom: 0.7rem;
    font-size: clamp(2.35rem, 4vw, 3.2rem);
    line-height: 0.94;
  }

  .kx-lead {
    max-width: 58rem;
    margin-bottom: 0.7rem;
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .kx-install-field,
  .kx-home .kx-benchmark-btn {
    min-height: 2.4rem;
  }

  .kx-hero-facts {
    margin-top: 0.5rem;
    padding-top: 0.4rem;
  }

  .kx-hero-facts p {
    gap: 0.55rem;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
  }

  .kx-hero-facts strong {
    font-size: 0.68rem;
  }

  .kx-hero-facts small {
    font-size: 0.52rem;
  }
}

@media (min-width: 701px) and (max-height: 480px) {
  .kx-lead {
    margin-bottom: 0.5rem;
  }

  .kx-hero-facts {
    margin-top: 0.35rem;
  }
}

@media (max-width: 700px) {
  .kx-shell {
    padding-right: var(--kt-page-gutter-mobile);
    padding-left: var(--kt-page-gutter-mobile);
  }

  .kx-block {
    padding-top: 3.2rem;
    padding-bottom: 4.8rem;
  }

  .kx-hero {
    min-height: 0;
    padding-top: 4rem;
    padding-bottom: 1.6rem;
  }

  .kx-hero::before {
    background-size: 2.8rem 2.8rem;
    mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.8));
  }

  .kx-hero::after {
    display: none;
  }

  .kx-hero > .kx-shell {
    min-height: 0;
  }

  .kx-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.5rem, 11vw, 3.35rem);
  }

  .kx-lead-live {
    min-height: 3.24em;
    white-space: normal;
  }

  .kx-hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0;
    margin-top: 4.5rem;
  }

  .kx-hero-facts p:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .kx-hero-facts p {
    gap: 0.5rem;
    padding-right: 0.65rem;
    padding-left: 0.65rem;
  }

  .kx-hero-facts p:nth-child(odd) {
    padding-left: 0;
  }

  .kx-hero-facts strong {
    font-size: 0.68rem;
  }

  .kx-fact-icon {
    width: 0.9rem;
    height: 0.9rem;
  }

  .kx-panel {
    padding: 1rem;
  }

  .kx-actions:not(.kx-actions--end) .kx-install-field {
    flex: 1 0 100%;
  }

  .kx-install-field {
    min-width: 0;
    width: 100%;
  }

  .kx-actions:not(.kx-actions--end) .kx-btn {
    flex: 1 1 0;
    padding-right: 0.8rem;
    padding-left: 0.8rem;
  }

  .kx-actions:not(.kx-actions--end) .kx-btn:not(.kx-btn--ghost) {
    flex-grow: 1.15;
  }

  .kx-home .kx-benchmark-btn {
    flex: 1 0 100%;
  }

  .kx-enc-grid,
  .kx-targets,
  .kx-proof-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .kx-fourjobs {
    grid-template-columns: 1fr 1fr;
  }

  .kx-fourjobs > b {
    display: none;
  }

  .kx-pipe {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .kx-pipe-src {
    grid-auto-flow: column;
    justify-items: start;
  }

  .kx-pipe-src i {
    width: 1.4rem;
  }

  .kx-footer .kx-shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .kx-footer nav {
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin-left: 0;
  }

  .kx-footer small {
    flex-basis: auto;
  }
}

@media (max-width: 360px) {
  .kx-actions:not(.kx-actions--end) .kx-btn {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kx-bar i,
  .kx-proof-links a,
  .kx-rail a {
    transition: none;
  }
}
