@font-face {
  font-family: Geist;
  src: url("./assets/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #101019;
  --panel: #181822;
  --raised: #20202d;
  --edge: #323241;
  --edge-light: #46465a;
  --text: #f5f3fa;
  --subtle: #c0bfd1;
  --muted: #aba9be;
  --ktserve-accent: #ff8e64;
  --kotlin-accent: #b99bff;
  --chart-grid: #333344;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  background: var(--bg);
  color: var(--text);
  font-family: Geist, system-ui, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.55; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 650; line-height: 1.04; }
p { color: var(--subtle); }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible, pre:focus-visible, .table-scroll:focus-visible {
  outline: 2px solid var(--ktserve-accent);
  outline-offset: 4px;
}
.shell { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  transform: translateY(-200%);
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 5px;
}
.skip-link:focus { transform: none; }
section[id], h3[id] { scroll-margin-top: 22px; }
.site-header { border-bottom: 1px solid #ffffff12; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 74px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-size: 1.48rem; font-weight: 730; letter-spacing: -.065em; line-height: 1; }
.mark {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  background: linear-gradient(137deg, #f2a8ff 5%, #9c74fa 48%, #ff986d 85%);
  clip-path: polygon(0 0, 85% 0, 47% 43%, 100% 100%, 52% 100%, 0 45%);
}
.header-inner nav, .footer-inner nav { display: flex; align-items: center; gap: clamp(16px, 3.1vw, 43px); }
.header-inner nav a, .footer-inner nav a { font-size: .88rem; font-weight: 530; color: var(--subtle); }
.header-inner nav a:hover, .footer-inner nav a:hover, .text-link:hover { color: var(--text); }
.header-inner nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--kotlin-accent); text-underline-offset: 6px; }
.header-inner nav .repository-link { display: inline-flex; gap: 9px; align-items: center; padding: 7px 13px; border: 1px solid var(--edge-light); border-radius: 6px; color: var(--text); }
.repository-link:hover { border-color: var(--kotlin-accent); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--edge);
  background: radial-gradient(ellipse at 87% 27%, #302342 0%, #1b172b 37%, transparent 67%);
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 42%;
  background-image: linear-gradient(#9e7ee913 1px, transparent 1px), linear-gradient(90deg, #9e7ee913 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 62% 48%, #000 15%, transparent 79%);
  content: "";
  pointer-events: none;
}
.hero-inner { min-height: 560px; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(32px, 5vw, 78px); padding-block: 82px 96px; }
.eyebrow, .integration-runtime {
  color: var(--kotlin-accent);
  font: 600 .72rem/1.4 var(--mono);
  letter-spacing: .095em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 21px; }
.eyebrow i { width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.hero h1 { font-size: clamp(3.45rem, 6.05vw, 6rem); letter-spacing: -.077em; white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--kotlin-accent); background-image: linear-gradient(98deg, #e5caff 3%, #bc91ff 48%, #ffa786 93%); background-clip: text; -webkit-text-fill-color: transparent; }
.hero-description { max-width: 47ch; margin-top: 27px; font-size: clamp(1rem, 1.7vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 33px; }
.button { display: inline-flex; align-items: center; gap: 14px; min-height: 45px; padding: 10px 15px; border-radius: 7px; border: 1px solid transparent; font-size: .875rem; font-weight: 650; transition: color .18s, background .18s, border-color .18s, transform .18s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: #ceafff; color: #1e102b; }
.button-primary:hover { background: #e0c9ff; }
.button-secondary { background: #1a1924; border-color: var(--edge-light); color: var(--text); }
.button-secondary:hover { border-color: var(--kotlin-accent); }

.hero-visual { position: relative; min-width: 0; }
.hero-example-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 12px;
  border: 1px solid var(--edge-light);
  border-radius: 9px;
  background: var(--panel);
}
.hero-example-tabs button {
  min-height: 36px;
  padding: 4px 14px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--subtle);
  font-size: .875rem;
  font-weight: 650;
}
.hero-example-tabs button:hover { color: var(--text); }
.hero-example-tabs button[aria-selected="true"] { background: #382b50; color: #eadbff; }
.hero-terminal pre { padding-inline: clamp(10px, 1.6vw, 22px); white-space: pre; }
.hero-terminal .code-window-footer { flex-wrap: wrap; gap: 8px 12px; }
.hero-visual::before {
  position: absolute;
  z-index: -1;
  inset: -15% -8%;
  background: radial-gradient(ellipse at center, #c69bfa23 0%, #a46af915 40%, transparent 72%);
  content: "";
}
.code-window {
  overflow: hidden;
  border: 1px solid #5a4d71;
  border-radius: 15px;
  background: #14131e;
  box-shadow: 0 25px 70px #09060c85, 0 0 35px #c09ce917;
  animation: arrive .7s ease-out both;
}
@keyframes arrive { from { opacity: 0; transform: translateY(17px); } to { opacity: 1; transform: translateY(0); } }
.code-window-title, .code-window-footer { display: flex; align-items: center; gap: 13px; padding: 12px 17px; font-size: .76rem; }
.code-window-title { background: #201c2e; border-bottom: 1px solid #302940; color: #ddcee9; }
.window-dots { display: inline-flex; gap: 5px; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #847397; }
.window-dots i:first-child { background: #e38c87; }
.window-dots i:last-child { background: #bb9adf; }
.code-language { margin-left: auto; color: #bcaad6; }
pre { margin: 0; overflow: auto; padding: clamp(22px, 3.1vw, 41px) clamp(15px, 3.1vw, 38px); }
code, pre { font-family: var(--mono); }
pre code { font-size: clamp(.70rem, 1.18vw, .94rem); line-height: 1.75; color: #f1edf7; }
.code-keyword { color: #cda6ff; }
.code-function { color: #b3d2fd; }
.code-string { color: #ffd3aa; }
.code-value { color: #ff9eac; }
.code-window-footer { justify-content: space-between; border-top: 1px solid #302940; color: var(--subtle); font-family: var(--mono); }
.code-window-footer i { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #8ce0b1; vertical-align: 1px; }
.code-response { color: #a8e8bb; }

.product-section { padding-block: clamp(57px, 6.2vw, 94px); border-bottom: 1px solid var(--edge); }
.architecture-grid { display: grid; align-items: center; grid-template-columns: .85fr 1.15fr; gap: clamp(35px, 9vw, 135px); }
.section-copy :is(h1, h2), .section-heading :is(h1, h2) { font-size: clamp(2.28rem, 4.1vw, 4.3rem); letter-spacing: -.064em; }
.section-copy p, .section-heading p { max-width: 57ch; margin-top: 18px; font-size: 1.03rem; }
.text-link { display: inline-flex; gap: 8px; align-items: center; color: var(--kotlin-accent); font-size: .87rem; font-weight: 620; text-underline-offset: 4px; }
.text-link:hover { text-decoration: underline; }
.section-copy .text-link { margin-top: 24px; }
.architecture-diagram {
  min-width: 0;
  display: grid;
  justify-items: stretch;
  padding: 26px clamp(13px, 3vw, 38px);
  border: 1px solid var(--edge);
  border-radius: 13px;
  background: radial-gradient(ellipse at center, #221d31, transparent 62%), #171722;
}
.diagram-entry { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--subtle); font: 500 .76rem var(--mono); }
.request-pulse { width: 7px; height: 7px; border-radius: 50%; background: #cda4fb; box-shadow: 0 0 12px #cda4fb91; animation: pulse 1.2s .6s ease-in-out 2; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px #cda4fb21, 0 0 12px #cda4fb91; } }
.diagram-arrow { justify-self: center; position: relative; height: 21px; width: 1px; background: #9a7dba; }
.diagram-arrow::after { content: ""; position: absolute; bottom: 2px; left: -2px; width: 5px; height: 5px; border: solid #9a7dba; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.diagram-transports, .diagram-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; text-align: center; }
.diagram-transports > div, .diagram-apps > span { display: grid; gap: 1px; align-content: center; padding: 8px 4px; border: 1px solid #464053; border-radius: 5px; background: #211e2d; }
.diagram-transports span { color: var(--subtle); font-size: .72rem; }
.diagram-transports strong { font: 600 .88rem var(--mono); }
.diagram-core { display: grid; justify-items: center; padding: 10px 4px; border: 1px solid #9173ad; border-radius: 6px; background: #322343; }
.diagram-core strong { color: #efdbff; font-size: .98rem; }
.diagram-core span, .diagram-apps > span { color: var(--subtle); font-size: .75rem; }
.architecture-diagram figcaption { margin-top: 13px; font-size: .72rem; color: var(--muted); text-align: center; }
.integrations-section { background: #14141e; }
.integration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 30px; border-block: 1px solid var(--edge); }
.integration-card { padding: 27px 34px 27px 0; }
.integration-card + .integration-card { padding-left: 34px; border-left: 1px solid var(--edge); }
.integration-card h3 { margin-top: 10px; font-size: clamp(1.45rem, 2.7vw, 2.15rem); letter-spacing: -.05em; }
.integration-card p { max-width: 54ch; margin-top: 12px; }
.integration-card code { color: #ddc7fa; font-size: .92em; }
.integration-links { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 17px; }
.integration-note { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.integration-note p { font-size: .87rem; color: var(--muted); }

.traffic-section {
  padding-block: clamp(54px, 6.5vw, 92px);
  border-bottom: 1px solid var(--edge);
  background: radial-gradient(ellipse at 16% 18%, #30234260, transparent 68%);
}
.traffic-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 14px 32px; margin-bottom: 24px; }
.traffic-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 12px; }
.traffic-controls label { display: grid; gap: 4px; color: var(--muted); font-size: .76rem; }
.traffic-range { margin-left: auto; color: #a8dbca; font-weight: 560; font-size: .9rem; }
.traffic-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.traffic-level {
  display: grid;
  gap: 4px;
  padding: clamp(10px, 2vw, 18px);
  min-width: 0;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  transition: background .18s, border-color .18s;
}
.traffic-level:hover { border-color: var(--kotlin-accent); }
.traffic-level[aria-pressed="true"] { border-color: #a486cb; background: #2b213a; }
.traffic-level strong { font-size: clamp(.88rem, 1.5vw, 1.06rem); line-height: 1.2; }
.traffic-rate { color: var(--subtle); font: .72rem/1.35 var(--mono); }
.traffic-badge { color: var(--muted); font-size: .72rem; }
.traffic-badge::before { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; content: ""; vertical-align: 1px; }
.traffic-level[data-outcome="met"] .traffic-badge { color: #a8dbca; }
.traffic-level:is([data-outcome="limited"], [data-outcome="invalid"], [data-outcome="missed"]) .traffic-badge { color: #ffc38f; }
.traffic-panel { margin-top: 8px; padding: clamp(14px, 2.6vw, 30px); border: 1px solid var(--edge); border-radius: 11px; background: var(--panel); }
.traffic-panel h3 { font-size: clamp(1.2rem, 2.4vw, 1.75rem); letter-spacing: -.036em; }
.traffic-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-block: 14px 10px; }
.traffic-comparison:empty { display: none; }
.traffic-server { min-width: 0; padding: 12px 15px; border: 1px solid var(--edge); border-radius: 8px; background: var(--raised); }
.traffic-server.ktserve { border-color: #ff8e6461; background: #30242b; }
.traffic-server.ktserve h4 { color: var(--ktserve-accent); }
.traffic-server h4 { margin: 0; font-size: .97rem; }
.traffic-server p { margin-top: 1px; font-size: .73rem; }
.traffic-metrics { display: grid; grid-template-rows: auto auto; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px 9px; margin: 11px 0 0; padding-top: 8px; border-top: 1px solid var(--edge-light); }
.traffic-metrics dt { color: var(--muted); font-size: .69rem; line-height: 1.25; }
.traffic-metrics dd { margin: 0; font: 600 clamp(.75rem, 1.25vw, 1rem)/1.25 var(--mono); font-variant-numeric: tabular-nums; }
.traffic-panel details { margin-block: 10px; }
.traffic-panel table { min-width: 0; table-layout: fixed; }
.traffic-panel table th:first-child { width: 43%; }
.traffic-panel table :is(th, td) { white-space: normal; overflow-wrap: anywhere; }
.traffic-panel .source-links { margin-top: 7px; }

.benchmark-section { padding-block: clamp(58px, 7.6vw, 108px); }
.benchmark-heading { display: grid; align-items: end; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 6vw, 90px); }
.benchmark-objective { border-left: 1px solid var(--edge-light); padding-left: 22px; }
.benchmark-objective > span { font-size: .85rem; font-weight: 650; color: var(--text); }
.benchmark-objective p { margin-block: 5px 8px; font-size: .87rem; }
.benchmark-nav { display: flex; flex-wrap: wrap; column-gap: 23px; row-gap: 8px; margin-block: 32px 21px; padding-block: 12px; border-block: 1px solid var(--edge); }
.benchmark-nav a { color: var(--subtle); font-size: .86rem; font-weight: 580; }
.benchmark-nav a:hover { color: var(--kotlin-accent); }
.notice { padding: 14px 16px; border: 1px solid var(--edge); border-radius: 8px; margin-top: 14px; background: #171722; font-size: .9rem; }
.run-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px 24px; margin-bottom: 14px; }
.run-picker { min-width: 0; max-width: 670px; }
.run-status { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; padding: 6px 0; color: var(--muted); font-size: .74rem; }
.tag { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 5px; background: #302443; color: #e8d6ff; font-weight: 650; }
.trial-count { color: #b8cfbd; }
.trial-count.incomplete { color: #ffc492; }
label { display: grid; gap: 5px; min-width: 0; font-size: .75rem; font-weight: 580; color: var(--subtle); }
select {
  width: 100%;
  min-height: 37px;
  padding: 7px 9px;
  border: 1px solid var(--edge-light);
  border-radius: 6px;
  background: #1e1e2a;
  color: var(--text);
  font-size: .815rem;
  text-overflow: ellipsis;
}
select:disabled { opacity: .7; }
select:hover:not(:disabled) { border-color: #838099; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(215px, 280px); align-items: start; gap: 15px; }
.card { min-width: 0; padding: clamp(15px, 2.6vw, 29px); border: 1px solid var(--edge); border-radius: 11px; background: var(--panel); }
.card + .card:is(.integration-results, .history-card, .details), #dashboard + .card { margin-top: 18px; }
.card h3 { font-size: clamp(1.28rem, 2.3vw, 1.69rem); letter-spacing: -.045em; }
.card-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 11px 18px; margin-bottom: 17px; }
.route-picker { min-width: 105px; }
.metric-picker { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 15px; }
.metric-picker button, .framework-button {
  min-height: 31px;
  padding: 3px 10px;
  border: 1px solid var(--edge);
  border-radius: 5px;
  background: #1c1c27;
  color: var(--subtle);
  font-size: .77rem;
  font-weight: 560;
  transition: background .16s, border-color .16s;
}
.metric-picker button[aria-pressed="true"] { border-color: #775f9b; background: #382849; color: #f0deff; }
.metric-picker button:hover, .framework-button:hover { border-color: #85778f; }
.chart-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--edge); padding-bottom: 8px; color: var(--muted); font-size: .72rem; }
.chart-caption strong { color: var(--subtle); font-size: .85rem; }
.chart { display: grid; gap: 3px; margin-top: 7px; }
.chart-row { position: relative; padding: 8px 9px 9px; border: 1px solid transparent; border-radius: 5px; }
.chart-row:hover { background: #ffffff07; }
.chart-row-heading, .variant-name, .chart-value { display: flex; align-items: baseline; gap: 7px; }
.chart-row-heading { justify-content: space-between; }
.variant-name { flex-wrap: wrap; align-items: center; min-width: 0; }
.variant-name strong { font-size: .88rem; font-weight: 640; }
.variant-name span, .chart-value span, .run-range { color: var(--muted); font-size: .72rem; }
.chart-value { flex: 0 0 auto; white-space: nowrap; }
.chart-value strong { font-size: .93rem; font-weight: 670; font-variant-numeric: tabular-nums; }
.swatch, .median-key, .range-key { display: inline-block; width: 9px; height: 9px; flex: 0 0 auto; border-radius: 2px; background: var(--series, #9da0b4); }
.ktserve { --series: var(--ktserve-accent); }
.kotlin { --series: var(--kotlin-accent); }
.rust { --series: #d2b17a; }
.go { --series: #6bc9dd; }
.hono { --series: #8fc99f; }
.elysia { --series: #e7a1bc; }
.python { --series: #87aded; }
.dotnet { --series: #9ebcc6; }
.chart-row.ktserve, tr.ktserve { background: #ff8e6412; }
.chart-row.ktserve { border-color: #ff8e6448; }
.chart-row.ktserve strong, tr.ktserve th { color: var(--ktserve-accent); }
.chart-row.kotlin { background: #b99bff09; }
.track { height: 6px; margin-top: 5px; position: relative; background: #272738; border-radius: 2px; }
.median { height: 100%; background: var(--series, #9da0b4); border-radius: 2px; transition: width .25s ease; }
.range { position: absolute; top: -2px; height: 10px; min-width: 2px; border: 1px solid #f8f3ff; border-radius: 1px; pointer-events: none; }
.run-range { margin-top: 4px; color: var(--muted); line-height: 1.35; text-align: right; font-variant-numeric: tabular-nums; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 5px 14px; padding-top: 11px; color: var(--muted); font-size: .72rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.median-key { width: 13px; height: 5px; }
.range-key { width: 13px; height: 8px; border: 1px solid #f8f3ff; background: transparent; }
.history-key { --series: var(--ktserve-accent); }
.method h3 { font-size: 1.16rem; }
.host { margin-top: 11px; font-size: .85rem; }
.method dl { margin-block: 15px; display: grid; grid-template-columns: 1fr auto; column-gap: 10px; color: var(--muted); font-size: .78rem; }
.method dt, .method dd { margin: 0; padding-block: 6px; border-top: 1px solid var(--edge); }
.method dd { color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.caveat { border-left: 2px solid #b58b6c; padding-left: 9px; margin-block: 13px; color: #edc4a5; font-size: .78rem; }
.source-links, .history-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; }
.source-links a, .history-sources a { color: var(--kotlin-accent); font-size: .78rem; text-underline-offset: 3px; }
.source-links a:hover, .history-sources a:hover { text-decoration: underline; }
.history-context { margin-top: 7px; color: var(--muted); font-size: .8rem; }
.history-controls { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, .65fr) minmax(0, .65fr); gap: 9px; margin-block: 13px 17px; }
.integration-controls { grid-template-columns: minmax(0, .95fr) minmax(0, 1.45fr) minmax(0, .55fr) minmax(0, .7fr); }
.integration-results .source-links { margin-top: 8px; }
.history-latest { display: flex; justify-content: space-between; align-items: end; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--edge); color: var(--muted); font-size: .76rem; }
.history-latest span { display: block; }
.history-latest > div:last-child { text-align: right; }
#history-value { display: block; margin-top: 2px; color: var(--ktserve-accent); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 620; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
#history-delta[data-change="better"] { color: #a5e4b9; }
#history-delta[data-change="worse"] { color: #ffa98e; }
.timeline { position: relative; height: clamp(220px, 34vw, 355px); width: 100%; margin-block: 11px 4px; }
.ktserve-history .timeline { height: clamp(205px, 29vw, 300px); }
.framework-legend, #framework-series { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.framework-legend { margin-top: 9px; }
.framework-button { display: inline-flex; align-items: center; gap: 5px; }
.framework-button[aria-pressed="false"] { color: var(--muted); background: var(--panel); text-decoration: line-through; }
.framework-button[aria-pressed="false"] i { opacity: .45; }
.framework-button.ktserve[aria-pressed="true"] { color: var(--ktserve-accent); border-color: #ff8e6463; }
.framework-button.kotlin[aria-pressed="true"] { color: #ded0ff; }
#framework-visibility { border-color: #775f9b; }
.framework-readings { margin-top: 13px; border-top: 1px solid var(--edge); }
.framework-readings summary { padding-block: 8px; color: var(--subtle); cursor: pointer; font-size: .85rem; }
.framework-run { display: flex; align-items: end; flex-wrap: wrap; gap: 6px 12px; padding-bottom: 6px; }
.framework-run a { padding-block: 8px; }
.table-scroll { max-width: 100%; overflow: auto; margin-top: 10px; border: 1px solid var(--edge); border-radius: 7px; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: .79rem; font-variant-numeric: tabular-nums; text-align: right; }
.worker-details { text-align: left; }
table caption { padding: 7px 10px; text-align: left; color: var(--muted); }
th, td { padding: 8px 11px; border-top: 1px solid var(--edge); }
th:first-child, td:first-child { text-align: left; }
thead { background: #20202d; color: var(--muted); }
thead span { font-weight: 450; }
tbody th { font-weight: 600; }
tbody th .swatch { margin-right: 7px; }
tbody tr:hover { background-color: #ffffff0c; }
.ktserve-history th:nth-child(2), .ktserve-history td:nth-child(2) { text-align: left; }
.details code { color: var(--kotlin-accent); font-size: .83rem; }
.site-footer { border-top: 1px solid var(--edge); background: #15151e; }

.product-home .hero h1 { white-space: normal; }
.quickstart { padding-block: 22px; border-bottom: 1px solid var(--edge); background: var(--panel); }
.quickstart summary { cursor: pointer; font-weight: 650; }
.quickstart details + details { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--edge); }
.quickstart .docs-grid { margin-top: 20px; scroll-margin-top: 24px; }
.quickstart .docs-stack h2 { font-size: 1.2rem; letter-spacing: -.025em; }
.quickstart .cli-terminal-controls select { width: auto; }
.product-home .use-cases { padding-block: clamp(46px, 5vw, 70px); }
.product-home .use-cases h2 { font-size: clamp(2rem, 3.2vw, 3.2rem); }
.use-case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 25px; }
.use-case { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; padding: 24px 28px 4px; border-top: 1px solid var(--edge); }
.use-case:first-child { padding-left: 0; }
.use-case:last-child { padding-right: 0; }
.use-case + .use-case { border-left: 1px solid var(--edge); }
.use-case-kind { color: var(--kotlin-accent); font: 580 .76rem var(--mono); }
.use-case h3 { font-size: clamp(1.35rem, 2.2vw, 1.78rem); letter-spacing: -.04em; }
.use-case p { flex: 1; font-size: .94rem; }
.use-case code, .docs-page p code { color: var(--text); overflow-wrap: anywhere; }
.use-case .text-link { margin-top: 4px; }

.snapshot-section { background: #15151f; }
.snapshot-grid { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: clamp(30px, 6vw, 88px); }
.snapshot { min-width: 0; padding: clamp(15px, 3vw, 30px); border: 1px solid var(--edge); border-radius: 12px; background: var(--panel); }
.snapshot h3 { font-size: 1.3rem; letter-spacing: -.035em; }
.snapshot-summary { margin-top: 7px; font-size: .88rem; }
.snapshot-table { margin-top: 14px; table-layout: fixed; color: var(--text); text-align: left; }
.snapshot-table .snapshot-server { width: 28%; }
.snapshot-table .snapshot-memory { width: 23%; }
.snapshot-table th, .snapshot-table td { padding: 9px 10px; }
.snapshot-table th:last-child, .snapshot-table td:last-child { text-align: right; }
.snapshot-table thead { background: transparent; color: var(--subtle); }
.snapshot-table thead th { border-top: 0; font-weight: 500; }
.snapshot-table thead button { display: inline-flex; align-items: center; gap: .3em; padding: 0; border: 0; background: none; color: inherit; text-align: inherit; white-space: normal; }
.snapshot-table thead button:hover { text-decoration: underline; text-underline-offset: 3px; }
.snapshot-table thead button span { visibility: hidden; }
.snapshot-table th[aria-sort] button { color: var(--ktserve-accent); font-weight: 650; }
.snapshot-table th[aria-sort] button span { visibility: visible; }
.snapshot-table tbody th { text-align: left; white-space: normal; }
.snapshot-table tbody small { display: block; font-weight: 450; color: var(--muted); }
.snapshot-highlight { background: #423038; }
.snapshot-highlight th, .snapshot-highlight td { color: #ffe1d5; }
.snapshot-throughput { display: grid; grid-template-columns: minmax(0, 1fr) 4ch; align-items: center; gap: 8px; font-weight: 650; text-align: right; }
.snapshot-throughput i { display: block; width: var(--bar-width); height: 8px; border-radius: 0 6px 6px 0; background: #88819f; }
.snapshot-highlight .snapshot-throughput i { background: var(--ktserve-accent); }
.snapshot figcaption { margin-top: 15px; color: var(--subtle); font-size: .8rem; }
.snapshot figcaption a { color: var(--kotlin-accent); text-decoration: underline; text-underline-offset: 3px; }
.further-reading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.further-reading h2 { font-size: clamp(2rem, 3.2vw, 3.2rem); }
.further-reading .text-link { flex-shrink: 0; }

.docs-intro { background: radial-gradient(ellipse at 12% 15%, #29203c, transparent 68%); }
.docs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 30px; margin-top: 30px; }
.docs-stack { display: grid; min-width: 0; gap: 12px; }
.docs-stack h3 { font-size: 1.2rem; letter-spacing: -.025em; }
.docs-stack .code-window { animation: none; box-shadow: none; }
.docs-stack pre { padding: clamp(14px, 2vw, 22px); }
.docs-note { border-left: 2px solid var(--kotlin-accent); padding-left: 12px; }
.docs-page .integration-links { flex-wrap: wrap; }
.cli-guide { display: grid; gap: 32px; margin-top: 30px; }
.cli-guide :is(.docs-grid, .integration-links) { margin-top: 0; }
.cli-guide h4 { margin: 0; color: var(--subtle); font-size: .95rem; }
.cli-downloads, .cli-terminal-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cli-terminal-controls label, .cli-terminal-controls [role="status"] { color: var(--subtle); font-size: .875rem; }
.cli-terminal-controls select {
  max-width: 100%;
  min-height: 45px;
  padding: 8px 10px;
  border: 1px solid var(--edge-light);
  border-radius: 7px;
  background: var(--panel);
  color: var(--text);
}
.cli-terminal-command pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.docs-disclosure { min-width: 0; }
.docs-disclosure summary { width: fit-content; cursor: pointer; font-weight: 650; }
.docs-disclosure[open] > :not(summary) { margin-top: 12px; }

.home-extensions {
  background: radial-gradient(ellipse at 90% 10%, #28203a, transparent 59%);
}
.home-extensions-inner { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(24px, 6vw, 84px); }
.home-extensions .section-copy .button { margin-top: 24px; }
.home-extension-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--edge-light);
  border-radius: 14px;
  background: var(--edge-light);
}
.home-extension-list a, .extension-catalog-grid a {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 3px;
  padding: 17px clamp(12px, 2vw, 23px);
  background: #1a1826;
}
.home-extension-list a:hover, .extension-catalog-grid a:hover { background: #282039; }
.home-extension-list a:focus-visible, .extension-catalog-grid a:focus-visible { outline-offset: -3px; }
.home-extension-list a strong, .extension-catalog-grid a strong { color: #e5d8fb; font-weight: 650; }
.home-extension-list a span, .extension-catalog-grid a span { color: var(--subtle); font-size: .9rem; }
.extension-hero .hero-inner {
  min-height: 0;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  padding-block: clamp(60px, 8vw, 112px);
}
.extension-hero h1 { font-size: clamp(2.5rem, 5.2vw, 5.2rem); white-space: normal; }
.extension-stack {
  padding: clamp(15px, 3vw, 28px);
  border: 1px solid #67547e;
  border-radius: 18px;
  background: #181523e8;
  box-shadow: 0 24px 60px #08060f80;
}
.extension-stack figcaption { margin-bottom: 14px; color: #e3d4f5; font-weight: 650; }
.extension-stack-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.extension-stack-modules li, .extension-stack-core {
  min-width: 0;
  padding: 13px;
  border: 1px solid #594468;
  border-radius: 9px;
  background: #241b32;
}
.extension-stack-modules strong, .extension-stack-core strong { display: block; }
.extension-stack-modules code { color: #cdb5ee; font-size: clamp(.71rem, 1.15vw, .86rem); overflow-wrap: anywhere; }
.extension-stack-core { display: flex; align-items: center; gap: 12px; margin-top: 10px; background: #211b30; }
.extension-stack-core div span, .extension-stack p { color: var(--subtle); font-size: .9rem; }
.extension-stack p { margin-top: 15px; }
.extension-catalog { padding-block: clamp(34px, 4vw, 57px); }
.extension-catalog .section-heading h2, .extension-last .section-heading h2 { font-size: clamp(1.9rem, 3vw, 3rem); }
.extension-catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.extension-catalog-grid a { border: 1px solid var(--edge); border-radius: 9px; }
.extension-catalog-grid a:hover { border-color: #71598e; }
.extension-layout { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); align-items: start; gap: clamp(20px, 6vw, 82px); }
.extension-setup { background: #181622; }
.extension-setup pre, .extension-guide pre { padding: clamp(13px, 2vw, 22px); }
.extension-guide {
  padding-block: clamp(40px, 7vw, 84px);
  border-bottom: 1px solid var(--edge);
  scroll-margin-top: 22px;
}
.extension-guide-info { display: grid; align-content: start; justify-items: start; gap: 15px; }
.extension-guide-info h2 { font-size: clamp(2rem, 3.5vw, 3.25rem); letter-spacing: -.052em; }
.extension-guide-info p { max-width: 42ch; }
.extension-guide-info code { overflow-wrap: anywhere; }
.extension-platform {
  border: 1px solid #614d79;
  border-radius: 6px;
  padding: 2px 8px;
  background: #241b32;
  color: #e0c8fa;
  font-family: var(--mono);
  font-size: .84rem;
}
.extension-last { border-bottom: 0; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 66px); }
  .run-toolbar { grid-template-columns: 1fr; }
  .run-status { padding-block: 0; }
}
@media (max-width: 780px) {
  .shell { width: calc(100% - 42px); }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding-block: 54px; gap: 36px; }
  .hero h1 { font-size: clamp(3.2rem, 9.35vw, 5.5rem); }
  .extension-hero .hero-inner, .home-extensions-inner, .extension-layout { grid-template-columns: minmax(0, 1fr); }
  .extension-hero .hero-inner { padding-block: 49px; }
  .extension-hero .extension-stack { width: min(100%, 520px); }
  .extension-guide { gap: 22px; }
  .hero-visual { width: min(100%, 515px); }
  .hero::before { inset: 8% 0 0 15%; }
  .architecture-grid, .benchmark-heading { grid-template-columns: 1fr; gap: 25px; }
  .snapshot-grid, .docs-grid { grid-template-columns: 1fr; gap: 26px; }
  .further-reading { flex-direction: column; align-items: flex-start; }
  .traffic-range { width: 100%; margin-left: 0; }
  .traffic-comparison { grid-template-columns: 1fr; }
  .architecture-diagram { max-width: 560px; }
  .grid { grid-template-columns: 1fr; }
  .method { grid-row: 1; }
  .method dl { grid-template-columns: 1fr auto 1fr auto; gap: 0 10px; }
  .method dt:nth-of-type(even) { margin-left: 10px; }
}
@media (max-width: 540px) {
  .shell { width: calc(100% - 30px); }
  .header-inner, .footer-inner { gap: 12px; min-height: 61px; }
  .header-inner nav, .footer-inner nav { flex-wrap: wrap; justify-content: flex-end; gap: 4px 13px; }
  .header-inner nav a, .footer-inner nav a { font-size: .72rem; }
  .header-inner nav .repository-link { padding: 0; border: 0; gap: 3px; }
  .wordmark { gap: 6px; font-size: 1.24rem; }
  .mark { width: 18px; height: 18px; flex-basis: 18px; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 4rem); }
  .extension-hero h1 { font-size: clamp(2.38rem, 8.6vw, 3.3rem); }
  .extension-stack-modules { grid-template-columns: minmax(0, 1fr); }
  .extension-stack-modules li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; }
  .extension-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .use-case-grid { grid-template-columns: 1fr; }
  .use-case, .use-case:first-child, .use-case:last-child { padding: 20px 0; }
  .use-case + .use-case { border-left: 0; }
  .snapshot-table { font-size: .72rem; }
  .snapshot-table th, .snapshot-table td { padding-inline: 4px; }
  .snapshot-throughput { gap: 4px; }
  .hero-description { margin-top: 16px; }
  .hero-actions { margin-top: 21px; }
  .button { min-height: 40px; font-size: .78rem; padding-inline: 10px; gap: 8px; }
  .traffic-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .integration-grid { grid-template-columns: 1fr; }
  .integration-card, .integration-card + .integration-card { padding: 18px 0; border: 0; }
  .integration-card + .integration-card { border-top: 1px solid var(--edge); }
  .chart-row-heading { align-items: center; }
  .variant-name { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 5px; }
  .variant-name span { grid-column: 2; font-size: .66rem; line-height: 1.25; }
  .chart-value { display: grid; gap: 0; text-align: right; line-height: 1.2; }
  .history-controls, .integration-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-controls:not(.integration-controls) > :first-child { grid-column: 1 / -1; }
  .integration-controls > :nth-child(2) { grid-area: 2 / 1 / 3 / -1; }
  table caption { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
