/* Copyright (c) 2026 Rayforce Technologies Inc. All rights reserved. */
:root {
  --kt-lime: #b5e72b;
  --kt-lime-soft: #c7f45a;
  --kt-cyan: #63c7d6;
  --kt-cyan-soft: #8ad9e4;
  --kt-bg: #0b0d10;
  --kt-panel: #11151a;
  --kt-panel-2: #171b21;
  --kt-text: #f2f4ef;
  --kt-muted: #9aa0a8;
  --kt-technical: #73a7b8;
  --kt-line: #292e35;
  --kt-page-gutter: 2rem;
  --kt-page-gutter-mobile: 1.1rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input {
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

code,
kbd,
pre,
.kt-console {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

[data-md-color-scheme="slate"] {
  --md-default-bg-color: var(--kt-bg);
  --md-default-fg-color: var(--kt-text);
  --md-primary-fg-color: var(--kt-bg);
  --md-accent-fg-color: var(--kt-lime);
  --md-code-bg-color: #14161c;
}

.md-grid {
  max-width: 76rem;
}

.md-header__inner,
.md-tabs__inner,
.md-banner__inner {
  padding-right: var(--kt-page-gutter);
  padding-left: var(--kt-page-gutter);
}

.md-header__inner {
  min-height: min(4.1rem, 82px);
  padding-top: min(0.55rem, 11px);
  padding-bottom: min(0.55rem, 11px);
}

html .md-header {
  color: var(--kt-text);
  background: #20212a !important;
  border-bottom: 1px solid #30323c;
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.md-header__button.md-logo {
  display: block !important;
  flex: 0 0 auto;
  width: min(8rem, 160px);
  height: min(2.1rem, 42px);
  padding: 0;
}

.md-header__button.md-logo img {
  width: min(8rem, 160px) !important;
  height: min(2.1rem, 42px) !important;
  object-fit: contain;
  object-position: center;
}

.md-header__button,
.md-header__source {
  color: var(--kt-text);
}

.md-header__title {
  display: none;
}

.kt-header-nav {
  display: flex;
  gap: 0;
  align-self: stretch;
  align-items: center;
  margin-left: 1.8rem;
}

.kt-header-nav a {
  display: inline-flex;
  gap: 0.34rem;
  align-items: center;
  padding: 0.75rem 0.72rem;
  color: #c7c9d0;
  font-size: min(0.7rem, 14px);
  font-weight: 670;
  transition: color 140ms ease, background 140ms ease;
}

.kt-nav-icon {
  display: inline-flex;
  width: 0.62rem;
  height: 0.62rem;
  color: #858a95;
  transition: color 140ms ease;
}

.kt-nav-icon svg {
  width: 100%;
  height: 100%;
  fill: currentcolor;
}

.kt-header-nav a:hover,
.kt-header-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
}

.kt-header-nav a:hover .kt-nav-icon,
.kt-header-nav a.is-active .kt-nav-icon {
  color: var(--kt-lime);
}

.md-header .md-search {
  margin-left: auto;
}

.kt-gh {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.42rem;
  align-items: center;
  width: auto;
  height: min(1.9rem, 38px);
  margin-left: 0.8rem;
  padding: 0 0.55rem;
  color: var(--kt-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--kt-line);
  border-radius: 0.25rem;
  transition: color 140ms ease, border-color 140ms ease;
}

.kt-header-cta {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.42rem;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  margin-left: 0.75rem;
  padding: 0.55rem 0.9rem;
  color: #0b0d10;
  font-size: min(0.68rem, 13.6px);
  font-weight: 760;
  background: var(--kt-lime);
  border-radius: 0.25rem;
}

.kt-header-cta > span {
  display: inline-flex;
  width: 0.66rem;
  height: 0.66rem;
}

.kt-header-cta svg {
  width: 100%;
  height: 100%;
  fill: currentcolor;
}

.kt-header-cta:hover {
  color: #0b0d10;
  background: var(--kt-lime-soft);
}

.kt-gh:hover {
  color: #fff;
  border-color: var(--kt-lime);
}

.kt-gh svg {
  width: min(0.92rem, 18px);
  height: min(0.92rem, 18px);
  fill: currentcolor;
}

.kt-gh span {
  padding-left: 0.42rem;
  color: #c8cbd2;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: min(0.56rem, 11.2px);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

html .md-tabs {
  color: var(--kt-text);
  background: var(--kt-bg) !important;
  border-bottom: 1px solid var(--kt-line);
}

.md-tabs__link {
  color: #c3c6cd;
  font-weight: 650;
}

.md-tabs__link--active,
.md-tabs__link:focus,
.md-tabs__link:hover {
  color: #fff;
}

.md-search__form {
  background: #181a21;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.md-search__input,
.md-search__input::placeholder {
  color: #d9dbe0;
}

.md-banner {
  color: #11150a;
  background: #9dc72d;
  border-bottom: 1px solid #b5e72b;
}

.md-banner__inner {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: min(0.28rem, 5.6px);
  padding-bottom: min(0.28rem, 5.6px);
}

.md-banner__button {
  color: #11150a;
}

.kt-announce {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  min-height: 1rem;
  padding-right: 2.2rem;
  font-size: min(0.68rem, 14px);
  line-height: 1.25;
}

.kt-announce__icon {
  display: inline-flex;
  color: #11150a;
}

.kt-announce__icon svg,
.kt-announce a svg {
  width: 0.8rem;
  height: 0.8rem;
  fill: currentcolor;
}

.kt-announce a {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  margin-left: auto;
  color: #11150a;
  font-weight: 750;
  white-space: nowrap;
  border-bottom: 1px solid rgba(17, 21, 10, 0.45);
}

.kt-announce strong {
  color: #11150a;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  font-weight: 730;
  letter-spacing: -0.035em;
}

.md-typeset h1 {
  font-size: clamp(2.15rem, 5vw, 3.2rem);
}

.md-typeset h2 {
  margin-top: 2.4em;
}

.md-typeset a {
  text-underline-offset: 0.18em;
}

.md-typeset pre > code {
  border: 1px solid var(--kt-line);
  border-radius: 0.7rem;
}

.md-typeset .admonition,
.md-typeset details {
  border-radius: 0.7rem;
  box-shadow: none;
}

.md-typeset table:not([class]) {
  border-radius: 0.6rem;
  overflow: hidden;
}

.kt-doc-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2rem 0 2.5rem;
}

.kt-doc-cards > p {
  margin: 0;
}

.kt-doc-cards a {
  display: block;
  min-height: 7rem;
  padding: 1.2rem;
  color: inherit;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--kt-line);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.kt-doc-cards a:hover {
  border-color: var(--md-accent-fg-color);
  transform: translateY(-2px);
}

/* Landing page */

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

.kt-home h1,
.kt-home h2,
.kt-home h3,
.kt-home p {
  margin-top: 0;
}

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

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

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

.kt-hero {
  position: relative;
  display: flex;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
  background: #0b0d11;
  border-bottom: 1px solid var(--kt-line);
  isolation: isolate;
}

.kt-hero::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: calc(50% + 1.26rem);
  background: var(--kt-panel);
  content: "";
  pointer-events: none;
}

.kt-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(23rem, 0.96fr);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.kt-eyebrow {
  margin-bottom: 1.2rem;
  color: var(--kt-lime);
  font-size: min(0.67rem, 14px);
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.kt-hero h1 {
  max-width: 14ch;
  margin-bottom: 1.5rem;
  color: #fff;
  font-size: clamp(2.8rem, 4.8vw, 84px);
  font-weight: 770;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.kt-hero h1 span {
  color: var(--kt-lime);
  white-space: nowrap;
}

.kt-lead {
  max-width: 36rem;
  margin-bottom: 2rem;
  color: #b0b4bd;
  font-size: min(1rem, 20px);
  line-height: 1.7;
}

.kt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.kt-quick-run {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  max-width: 32rem;
  margin-top: 1.4rem;
  padding: 0.8rem 0.9rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--kt-line);
  border-radius: 0.35rem;
}

.kt-quick-run__icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  color: var(--kt-lime);
  background: rgba(181, 231, 43, 0.08);
  border: 1px solid rgba(181, 231, 43, 0.2);
  border-radius: 0.35rem;
  place-items: center;
}

.kt-quick-run > div {
  min-width: 0;
}

.kt-quick-run small {
  display: block;
  margin-bottom: 0.2rem;
  color: #747b85;
  font-size: 0.56rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kt-quick-run code {
  display: block;
  overflow: hidden;
  color: #d7dae0;
  font-size: min(0.62rem, 12.4px);
  text-overflow: ellipsis;
  white-space: nowrap;
  background: none;
}

.kt-quick-run button {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.5rem 0.55rem;
  color: #aeb3bb;
  font-size: 0.58rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #363c45;
  border-radius: 0.25rem;
  transition: color 140ms ease, border-color 140ms ease;
}

.kt-quick-run button:hover,
.kt-quick-run button.is-copied {
  color: var(--kt-lime);
  border-color: rgba(181, 231, 43, 0.45);
}

.kt-quick-run button .kt-icon {
  width: 0.65rem;
  height: 0.65rem;
}

.kt-button {
  display: inline-flex;
  gap: 1.4rem;
  align-items: center;
  justify-content: space-between;
  min-width: 9.5rem;
  padding: 0.78rem 1rem;
  font-size: min(0.73rem, 14.6px);
  font-weight: 750;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.kt-button:hover {
  transform: translateY(-2px);
}

.kt-button-primary {
  color: #0d1008 !important;
  background: var(--kt-lime);
}

.kt-button-primary:hover {
  background: var(--kt-lime-soft);
}

.kt-button-secondary {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.2);
}

.kt-console {
  overflow: hidden;
  background: #0a0c0f;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.6rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.3);
}

.kt-console-head {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  height: min(2.6rem, 52px);
  padding: 0 0.9rem;
  border-bottom: 1px solid var(--kt-line);
}

.kt-console-head span {
  width: 0.42rem;
  height: 0.42rem;
  background: #42454d;
  border-radius: 50%;
}

.kt-console-head span:first-child {
  background: var(--kt-lime);
}

.kt-console-head small {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin-left: auto;
  color: #7b8d95;
  font-size: 0.58rem;
}

.kt-console-head small i {
  width: 0.35rem;
  height: 0.35rem;
  background: #ff4d5f;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 77, 95, 0.12);
}

.kt-console-body {
  position: relative;
  height: min(19rem, 370px);
  padding: 0;
  overflow: hidden;
  color: #e9eadf;
  font-size: min(0.74rem, 14.8px);
  line-height: 2;
}

.kt-recording-stage {
  display: none;
  height: 100%;
  padding: 1rem 1.35rem;
  overflow: hidden;
}

.kt-recording-stage.is-active {
  display: block;
  animation: kt-stage-in 180ms ease-out both;
}

.kt-command {
  white-space: nowrap;
}

.kt-command b {
  color: var(--kt-lime);
}

.kt-command code {
  padding: 0;
  color: #e9eadf;
  background: none;
}

.kt-recording-stage pre {
  /* Box-drawing needs a mono that actually covers it; webfont code
     faces often do not, and mixed fallbacks render dashed borders. */
  font-family: "DejaVu Sans Mono", "Cascadia Mono", "Menlo", "Consolas",
    ui-monospace, monospace;
  margin: 0.7rem 0 0;
  color: #d5d8de;
  font-size: min(0.62rem, 12.5px);
  line-height: 1.16;
  background: none;
  border: 0;
}

.kt-recording-stage[data-stage="query-result"] pre {
  min-width: 45ch;
  margin-right: auto;
  margin-left: auto;
  font-size: min(0.58rem, 11.6px);
}

.kt-progress-line {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-top: 8rem;
  color: #9a9ea7;
  white-space: nowrap;
}

.kt-progress-line span {
  color: #ffd84d;
  font-size: 1rem;
}

.kt-progress-line strong {
  color: #fff;
  font-weight: 650;
}

.kt-progress-line i {
  color: #777b84;
  font-style: normal;
}

.kt-progress-line em {
  margin-left: auto;
  color: var(--kt-technical);
  font-size: 0.58rem;
  font-style: normal;
}

.kt-progress-track {
  height: 2px;
  margin-top: 0.75rem;
  overflow: hidden;
  background: #242730;
}

.kt-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--kt-lime);
  box-shadow: 0 0 12px rgba(181, 231, 43, 0.38);
}

.kt-console-foot {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  min-height: min(2.7rem, 54px);
  padding: 0.75rem 1.35rem;
  color: #9298a2;
  font: 0.61rem/1.55 Inter, ui-sans-serif, sans-serif;
  border-top: 1px solid var(--kt-line);
}

.kt-console-foot > i {
  width: 3rem;
  height: 2px;
  overflow: hidden;
  background: #282b33;
}

.kt-console-foot > i b {
  display: block;
  width: 35%;
  height: 100%;
  background: var(--kt-lime);
  animation: kt-recording-scan 1.2s ease-in-out infinite;
}

.kt-console-foot small {
  margin-left: auto;
  color: #70858d;
  font-size: 0.54rem;
}

.kt-section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  border-bottom: 1px solid var(--kt-line);
}

.kt-section-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  column-gap: 5rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.kt-section-heading .kt-eyebrow {
  grid-column: 1 / -1;
}

.kt-section h2,
.kt-contact h2 {
  margin-bottom: 0;
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.kt-section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--kt-muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.kt-contract {
  background: var(--kt-bg);
}

.kt-contract-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--kt-line);
  border-left: 1px solid var(--kt-line);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.16);
}

.kt-contract-card {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  background: rgba(11, 13, 16, 0.94);
  border-right: 1px solid var(--kt-line);
  border-bottom: 1px solid var(--kt-line);
}

.kt-contract-card--engine {
  background: rgba(18, 22, 26, 0.96);
}

.kt-contract-label {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1.5rem;
  color: #aeb4bd;
  font-size: min(0.63rem, 12.6px);
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kt-contract-label span {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  color: #0a0d07;
  font-size: 0.52rem;
  background: var(--kt-lime);
  border-radius: 50%;
  place-items: center;
}

.kt-contract-card > code {
  display: flex;
  align-items: center;
  min-height: 4.6rem;
  padding: 1rem 1.1rem;
  overflow: hidden;
  color: #eef0e9;
  font-size: min(0.7rem, 14px);
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #090b0e;
  border: 1px solid #30363e;
  border-radius: 0.35rem;
}

.kt-contract-card > code::before {
  margin-right: 0.65rem;
  color: var(--kt-lime);
  content: "‣";
}

.kt-contract-card ul {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.kt-contract-card li {
  position: relative;
  margin: 0;
  padding: 0.58rem 0 0.58rem 1.25rem;
  color: #9ba1aa;
  font-size: min(0.7rem, 14px);
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.kt-contract-card li::before {
  position: absolute;
  left: 0;
  color: var(--kt-lime);
  font-family: "SFMono-Regular", Consolas, monospace;
  content: "+";
}

.kt-contract-card > a {
  color: var(--kt-lime) !important;
  font-size: min(0.66rem, 13.2px);
  font-weight: 700;
}

.kt-mini-blocks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  min-height: 4.6rem;
  padding: 0.55rem;
  background: #090b0e;
  border: 1px solid #30363e;
  border-radius: 0.35rem;
}

.kt-mini-blocks i {
  display: grid;
  min-width: 0;
  color: #dfe3d7;
  font: 650 min(0.54rem, 10.8px)/1 "SFMono-Regular", Consolas, monospace;
  background: rgba(181, 231, 43, 0.07);
  border: 1px solid rgba(181, 231, 43, 0.2);
  border-radius: 0.2rem;
  place-items: center;
}

.kt-mini-blocks i:nth-child(2) {
  background: rgba(181, 231, 43, 0.13);
}

.kt-mini-blocks i:nth-child(3) {
  background: rgba(115, 167, 184, 0.12);
  border-color: rgba(115, 167, 184, 0.28);
}

.kt-mini-blocks i:nth-child(4) {
  background: rgba(181, 231, 43, 0.035);
}

.kt-memory-section {
  background: var(--kt-panel);
}

.kt-memory-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(30rem, 1.18fr);
  gap: clamp(3rem, 7vw, 6.5rem);
  align-items: center;
}

.kt-memory-copy h2 span {
  color: var(--kt-lime);
}

.kt-memory-copy > p:not(.kt-eyebrow) {
  max-width: 35rem;
  color: #9a9fa8;
  font-size: min(0.79rem, 15.8px);
  line-height: 1.75;
}

.kt-memory-copy > p:nth-of-type(2) {
  margin-top: 1.5rem;
}

.kt-memory-copy > a {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--kt-lime) !important;
  font-size: min(0.68rem, 13.6px);
  font-weight: 700;
}

.kt-memory-model {
  padding: clamp(1.2rem, 2.5vw, 2rem);
  background: rgba(8, 10, 13, 0.8);
  border: 1px solid #333941;
  border-radius: 0.55rem;
  box-shadow: 0 1.7rem 4rem rgba(0, 0, 0, 0.2);
}

.kt-memory-model__head,
.kt-memory-model__foot {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: #d9dce1;
  font: 650 min(0.62rem, 12.4px)/1.4 "SFMono-Regular", Consolas, monospace;
}

.kt-memory-model__head small {
  color: #727983;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kt-memory-vector {
  height: 2.8rem;
  margin-top: 1rem;
  padding: 0.35rem;
  background: rgba(181, 231, 43, 0.05);
  border: 1px solid rgba(181, 231, 43, 0.3);
  border-radius: 0.25rem;
}

.kt-memory-vector span {
  display: block;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(90deg, transparent 0 1.5rem, rgba(10, 13, 7, 0.13) 1.5rem 1.56rem),
    linear-gradient(90deg, #9ac626, var(--kt-lime-soft));
  border-radius: 0.12rem;
}

.kt-memory-branch {
  position: relative;
  height: 3.2rem;
}

.kt-memory-branch::before,
.kt-memory-branch::after,
.kt-memory-branch i {
  position: absolute;
  display: block;
  background: #3b424b;
  content: "";
}

.kt-memory-branch::before {
  top: 0;
  left: 50%;
  width: 1px;
  height: 50%;
}

.kt-memory-branch::after {
  top: 50%;
  left: 12.5%;
  width: 75%;
  height: 1px;
}

.kt-memory-branch i {
  top: 50%;
  bottom: 0;
  width: 1px;
}

.kt-memory-branch i:nth-child(1) { left: 12.5%; }
.kt-memory-branch i:nth-child(2) { left: 37.5%; }
.kt-memory-branch i:nth-child(3) { left: 62.5%; }
.kt-memory-branch i:nth-child(4) { left: 87.5%; }

.kt-memory-blocks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.kt-memory-blocks article {
  min-width: 0;
  min-height: 7rem;
  padding: 0.75rem;
  background: #12161b;
  border: 1px solid #30363e;
  border-top: 2px solid var(--kt-lime);
  border-radius: 0.25rem;
}

.kt-memory-blocks article:nth-child(3) {
  border-top-color: var(--kt-technical);
}

.kt-memory-blocks small,
.kt-memory-blocks strong,
.kt-memory-blocks span {
  display: block;
}

.kt-memory-blocks small {
  overflow: hidden;
  color: #69717b;
  font: 0.46rem/1.3 "SFMono-Regular", Consolas, monospace;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.kt-memory-blocks strong {
  margin: 1.1rem 0 0.4rem;
  color: #f0f2eb;
  font: 700 min(0.72rem, 14.4px)/1 "SFMono-Regular", Consolas, monospace;
}

.kt-memory-blocks span {
  color: #818892;
  font-size: min(0.52rem, 10.4px);
  line-height: 1.4;
}

.kt-memory-model__foot {
  margin-top: 1rem;
  padding-top: 0.85rem;
  color: #747b85;
  font-size: min(0.5rem, 10px);
  border-top: 1px solid var(--kt-line);
}

.kt-capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--kt-line);
  border-left: 1px solid var(--kt-line);
}

.kt-capability-grid article {
  min-height: 18rem;
  padding: clamp(1.2rem, 2.2vw, 1.75rem);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.025), transparent 65%);
  border-right: 1px solid var(--kt-line);
  border-bottom: 1px solid var(--kt-line);
}

.kt-capability-grid article > span {
  display: block;
  margin-bottom: 4rem;
  color: var(--kt-lime);
  font: 650 min(0.5rem, 10px)/1.4 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kt-capability-grid h3 {
  min-height: 2.8rem;
  margin-bottom: 0.8rem;
  color: #f0f2ec;
  font-size: min(0.92rem, 18.4px);
  line-height: 1.25;
}

.kt-capability-grid p {
  margin-bottom: 0;
  color: #8f959e;
  font-size: min(0.65rem, 13px);
  line-height: 1.7;
}

.kt-capability-links {
  display: flex;
  gap: 0.7rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.kt-capability-links a {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.8rem;
  color: #d9dce1 !important;
  font-size: min(0.62rem, 12.4px);
  font-weight: 700;
  border: 1px solid #343a43;
  border-radius: 0.25rem;
}

.kt-capability-links a:hover {
  color: var(--kt-lime) !important;
  border-color: rgba(181, 231, 43, 0.45);
}

.kt-capability-links .kt-icon {
  width: 0.58rem;
  height: 0.58rem;
}

.kt-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--kt-line);
  border-left: 1px solid var(--kt-line);
}

.kt-feature-grid article {
  min-height: 17rem;
  padding: 1.8rem;
  border-right: 1px solid var(--kt-line);
  border-bottom: 1px solid var(--kt-line);
}

.kt-feature-icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 2.5rem;
  color: var(--kt-lime);
  background: rgba(181, 231, 43, 0.08);
  border: 1px solid rgba(181, 231, 43, 0.25);
  border-radius: 0.45rem;
  place-items: center;
}

.kt-icon {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
  background: currentcolor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.kt-icon-layers {
  -webkit-mask-image: url("../icons/layer-group.svg");
  mask-image: url("../icons/layer-group.svg");
}

.kt-icon-bolt {
  -webkit-mask-image: url("../icons/bolt.svg");
  mask-image: url("../icons/bolt.svg");
}

.kt-icon-terminal {
  -webkit-mask-image: url("../icons/terminal.svg");
  mask-image: url("../icons/terminal.svg");
}

.kt-icon-arrow {
  width: 0.7rem;
  height: 0.7rem;
  -webkit-mask-image: url("../icons/arrow-right.svg");
  mask-image: url("../icons/arrow-right.svg");
}

.kt-icon-github {
  -webkit-mask-image: url("../icons/github.svg");
  mask-image: url("../icons/github.svg");
}

.kt-icon-envelope {
  -webkit-mask-image: url("../icons/envelope.svg");
  mask-image: url("../icons/envelope.svg");
}

.kt-icon-book {
  -webkit-mask-image: url("../icons/book-open.svg");
  mask-image: url("../icons/book-open.svg");
}

.kt-icon-copy {
  -webkit-mask-image: url("../icons/copy.svg");
  mask-image: url("../icons/copy.svg");
}

.kt-icon-check {
  -webkit-mask-image: url("../icons/check.svg");
  mask-image: url("../icons/check.svg");
}

.kt-feature-grid h3 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.kt-feature-grid p {
  min-height: 6.7rem;
  margin-bottom: 1.5rem;
  color: var(--kt-muted);
  font-size: 0.7rem;
  line-height: 1.65;
}

.kt-feature-grid a,
.kt-runtime-copy a {
  color: var(--kt-lime) !important;
  font-size: 0.68rem;
  font-weight: 700;
}

.kt-section-muted {
  background: var(--kt-panel);
}

.kt-runtime-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.kt-runtime-copy {
  padding-top: 1.9rem;
}

.kt-runtime-copy p {
  color: #9a9ea7;
  font-size: 0.82rem;
  line-height: 1.75;
}

.kt-runtime-copy a {
  display: inline-block;
  margin-top: 0.75rem;
}

.kt-contact {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  overflow: hidden;
  background: var(--kt-panel);
  border-bottom: 1px solid var(--kt-line);
  isolation: isolate;
}

.kt-contact::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: calc(50% - 4.67rem);
  background: var(--kt-bg);
  content: "";
  pointer-events: none;
}

.kt-contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(28rem, 1.15fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.kt-contact h2 {
  max-width: 12ch;
  margin-bottom: 1.4rem;
}

.kt-contact-copy > p:last-of-type {
  max-width: 31rem;
  margin-bottom: 0;
  color: var(--kt-muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.kt-contact-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 2rem;
}

.kt-contact-links a {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  min-width: 0;
  padding: 0.8rem;
  color: #e9ebee !important;
  font-size: 0.66rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--kt-line);
  border-radius: 0.35rem;
  transition: color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.kt-contact-links a:hover {
  color: var(--kt-lime) !important;
  border-color: rgba(181, 231, 43, 0.4);
  transform: translateY(-2px);
}

.kt-contact-links .kt-icon {
  flex: 0 0 auto;
  width: 0.85rem;
  height: 0.85rem;
  color: var(--kt-lime);
}

.kt-contact-links span {
  min-width: 0;
}

.kt-contact-links small {
  display: block;
  margin-bottom: 0.1rem;
  overflow: hidden;
  color: #737a84;
  font-size: 0.5rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.kt-contact-pitch {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background:
    linear-gradient(145deg, rgba(181, 231, 43, 0.055), transparent 50%),
    rgba(9, 11, 14, 0.76);
  border: 1px solid #363d45;
  border-top: 2px solid var(--kt-lime);
  border-radius: 0.55rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.18);
}

.kt-contact-pitch > span {
  display: block;
  margin-bottom: 3.2rem;
  color: var(--kt-lime);
  font: 650 min(0.52rem, 10.4px)/1.4 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kt-contact-pitch h3 {
  margin-bottom: 1rem;
  color: #f2f4ef;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.kt-contact-pitch p {
  max-width: 36rem;
  margin-bottom: 1.8rem;
  color: #90969f;
  font-size: min(0.7rem, 14px);
  line-height: 1.7;
}

.kt-contact-pitch__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.kt-home-footer {
  padding: 1.4rem 0;
  background: var(--kt-bg);
}

.kt-home-footer .kt-shell {
  display: flex;
  align-items: center;
}

.kt-source-logo {
  width: min(8rem, 160px);
  height: min(2.1rem, 42px);
}

.kt-source-logo img {
  width: min(8rem, 160px);
  height: min(2.1rem, 42px);
  object-fit: contain;
  object-position: center;
}

.kt-home-footer nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
}

.kt-home-footer a {
  color: var(--kt-muted) !important;
  font-size: 0.62rem;
}

@media (max-width: 1100px) {
  .kt-memory-grid,
  .kt-contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .kt-memory-copy,
  .kt-contact-copy {
    max-width: 40rem;
  }

  .kt-contact::before {
    display: none;
  }

  .kt-hero::before {
    display: none;
  }
}

@media (max-width: 1000px) {
  .kt-hero-grid {
    grid-template-columns: 1fr;
  }

  .kt-hero-copy {
    max-width: 38rem;
  }

  .kt-console {
    max-width: 38rem;
  }

  .kt-section-heading,
  .kt-runtime-grid,
  .kt-contract-grid,
  .kt-memory-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .kt-memory-grid {
    gap: 3rem;
  }

  .kt-memory-copy {
    max-width: 40rem;
  }

  .kt-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kt-section-heading > p:last-child {
    max-width: 38rem;
  }

  .kt-contact-copy {
    max-width: 38rem;
  }
}

@media (max-width: 76.234375em) {
  .kt-header-nav {
    display: none;
  }

  .md-header .md-search {
    margin-left: auto;
  }
}

@media (max-width: 650px) {
  .md-header__inner,
  .md-tabs__inner,
  .md-banner__inner {
    padding-right: var(--kt-page-gutter-mobile);
    padding-left: var(--kt-page-gutter-mobile);
  }

  .md-header__button.md-logo {
    width: 7rem;
    margin-left: 0;
  }

  .md-header__button.md-logo img {
    width: 7rem !important;
  }

  .kt-header-cta {
    display: none;
  }

  .md-content__inner {
    margin-right: var(--kt-page-gutter-mobile);
    margin-left: var(--kt-page-gutter-mobile);
  }

  .kt-doc-cards,
  .kt-feature-grid,
  .kt-capability-grid {
    grid-template-columns: 1fr;
  }

  .kt-announce {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 0.5rem;
    padding-right: 1.8rem;
    font-size: 0.6rem;
  }

  .kt-announce a {
    grid-column: 2;
    justify-self: start;
    margin-left: 0;
  }

  .kt-shell {
    padding-right: var(--kt-page-gutter-mobile);
    padding-left: var(--kt-page-gutter-mobile);
  }

  .kt-hero {
    min-height: auto;
  }

  .kt-hero-grid {
    gap: 3rem;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .kt-hero h1 {
    font-size: 2.45rem;
  }

  .kt-hero h1 span {
    font-size: 0.82em;
  }

  .kt-lead {
    font-size: 0.92rem;
  }

  .kt-recording-stage pre {
    font-size: 0.48rem;
  }

  .kt-recording-stage[data-stage="query-result"] pre {
    font-size: 0.52rem;
  }

  .kt-recording-stage {
    overflow: auto;
  }

  .kt-section {
    padding: 4rem 0;
  }

  .kt-section h2 {
    font-size: 1.9rem;
  }

  .kt-feature-grid article {
    min-height: auto;
  }

  .kt-feature-grid p {
    min-height: auto;
  }

  .kt-contract-card > code {
    font-size: 0.58rem;
  }

  .kt-mini-blocks,
  .kt-memory-blocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kt-mini-blocks {
    gap: 0.4rem;
  }

  .kt-memory-branch {
    display: none;
  }

  .kt-memory-blocks {
    margin-top: 1rem;
  }

  .kt-memory-blocks article {
    min-height: 6rem;
  }

  .kt-memory-model__foot,
  .kt-capability-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .kt-capability-grid article {
    min-height: auto;
  }

  .kt-capability-grid article > span {
    margin-bottom: 2.5rem;
  }

  .kt-capability-grid h3 {
    min-height: auto;
  }

  .kt-capability-links a {
    width: 100%;
    justify-content: space-between;
  }

  .kt-quick-run {
    gap: 0.6rem;
    padding: 0.7rem;
  }

  .kt-quick-run button span {
    display: none;
  }

  .kt-contact {
    padding: 4rem 0;
  }

  .kt-contact-links {
    grid-template-columns: 1fr;
  }

  .kt-home-footer .kt-shell {
    align-items: flex-start;
  }

  .kt-home-footer nav {
    flex-direction: column;
    gap: 0.45rem;
  }
}

@keyframes kt-stage-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes kt-recording-scan {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(280%); }
  100% { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.kt-c-s { color: var(--kt-lime-soft); }
.kt-c-m { color: var(--kt-lime); }

/* Narrow screens: the demo shows its COMPLETED state statically (the
   is-static class, set from JS by media query) -- no cells fading in
   over a void, no layout shift -- and code wraps instead of growing
   scrollbars. */
@media (max-width: 900px) {
  .kt-nbdemo-body {
    font-size: 0.66rem;
    min-height: 0;
  }
  .kt-nbwatch-head small {
    display: none;
  }
  .kt-nbsrc > code {
    white-space: pre-wrap;
    word-break: break-word;
  }
  .kt-nbtable pre {
    font-size: 0.62rem;
  }
}

@media (max-width: 430px) {
  .kt-nbtable pre {
    font-size: 0.56rem;
    padding: 0.45rem 0.4rem;
  }
}

.kt-nbdemo.is-static .kt-nbcell,
.kt-nbdemo.is-static .kt-nbout,
.kt-nbdemo.is-static .kt-nbwatch,
.kt-nbdemo.is-static .kt-nbtable {
  opacity: 1;
  transform: none;
  transition: none;
}

.kt-nbdemo.is-static [data-nb-bar] {
  width: 100%;
  background: var(--kt-lime);
}

.kt-shell-body {
  padding: 1.05rem 1.35rem 1.2rem;
}

.kt-shell-body pre {
  margin: 0;
  color: #d5d8de;
  font-family: "DejaVu Sans Mono", "Cascadia Mono", "Menlo", "Consolas",
    ui-monospace, monospace;
  font-size: min(0.66rem, 13px);
  line-height: 1.45;
  background: none;
  border: 0;
  overflow-x: auto;
}

.kt-p { color: var(--kt-lime); font-weight: 700; }
.kt-k { color: var(--kt-lime); }
.kt-f { color: var(--kt-technical); }
.kt-s { color: var(--kt-lime-soft); }
.kt-c { color: var(--kt-muted); }
