@font-face {
  font-family: "SpecPasa Sans";
  src: url("./assets/inter-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "SpecPasa Mono";
  src: url("./assets/ibm-plex-mono-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SpecPasa Mono";
  src: url("./assets/ibm-plex-mono-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #f3f5f7;
  --paper-deep: #e9eef0;
  --sheet: #ffffff;
  --ink: #17212d;
  --ink-soft: #536172;
  --line: #d2dbe2;
  --line-strong: #aebbc5;
  --mint: #1f7a6d;
  --mint-deep: #165c53;
  --mint-soft: #dff1eb;
  --mint-wash: #edf7f3;
  --on-mint: #ffffff;
  --warm-soft: #faf2dc;
  --focus: #0d5f53;
  --on-dark: #f4f8f8;
  --on-dark-soft: #b3c0c7;
  --mint-on-dark: #7ecfc0;
  --radius: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 72px;
}

html[data-theme="dark"] {
  --paper: #11181e;
  --paper-deep: #182229;
  --sheet: #1b252d;
  --ink: #edf3f4;
  --ink-soft: #aebdc5;
  --line: #34434c;
  --line-strong: #56666f;
  --mint: #7ecfc0;
  --mint-deep: #9adecf;
  --mint-soft: #1e3a36;
  --mint-wash: #172b29;
  --on-mint: #10201d;
  --warm-soft: #3b3423;
  --focus: #8fe0d1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "SpecPasa Sans", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body,
button,
a {
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

::selection {
  background: var(--mint);
  color: var(--sheet);
}

* {
  scrollbar-color: var(--line-strong) var(--paper);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border: 3px solid var(--paper);
  border-radius: 10px;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.shell {
  width: min(1440px, calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--sheet);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 97%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 44px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 1.34rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.wordmark::after {
  width: 7px;
  height: 7px;
  margin: 9px 0 0 5px;
  border-radius: 2px;
  background: var(--mint);
  content: "";
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav a,
.site-footer nav a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.primary-nav a:hover,
.site-footer nav a:hover {
  color: var(--mint);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--sheet);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.icon-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.moon-icon,
html[data-theme="dark"] .sun-icon {
  display: none;
}

html[data-theme="dark"] .moon-icon {
  display: block;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
}

.button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button-primary {
  background: var(--mint);
  color: #ffffff;
}

html[data-theme="dark"] .button-primary {
  color: #10201d;
}

.button-primary:hover {
  background: var(--mint-deep);
  transform: translateY(-1px);
}

.button-secondary,
.button-ghost {
  border-color: var(--line-strong);
  background: var(--sheet);
  color: var(--ink);
}

.button-secondary:hover,
.button-ghost:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.button-small {
  min-height: 40px;
  padding-inline: 14px;
  font-size: 0.88rem;
}

.button-small svg {
  width: 18px;
  fill: currentColor;
  stroke: none;
}

.hero {
  padding-top: clamp(48px, 5.4vw, 78px);
  padding-bottom: 112px;
}

.hero-copy {
  max-width: 900px;
  text-align: left;
}

.hero h1,
.section-heading h2,
.provenance-copy h2,
.self-host-layout h2,
.closing h2 {
  margin: 0;
  font-weight: 760;
  letter-spacing: -0.038em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero h1 {
  max-width: 1100px;
  font-size: clamp(3rem, 4vw, 3.9rem);
  white-space: normal;
}

.hero h1 span {
  color: var(--ink);
}

.hero-copy > p:not(.hero-note) {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 24px;
}

.team-note {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 650;
}

.team-glyphs {
  display: flex;
  padding-left: 2px;
}

.team-glyphs i {
  display: grid;
  width: 25px;
  height: 25px;
  margin-left: -3px;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--mint-soft);
  color: var(--mint-deep);
  font-family: "SpecPasa Mono", monospace;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 500;
}

.hero-note {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-family: "SpecPasa Mono", monospace;
  font-size: 0.76rem;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mint);
}

.control-room {
  margin-top: clamp(32px, 3.6vw, 48px);
}

.gate-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gate {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 96px;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sheet);
  text-align: left;
}

.gate:not(:last-child)::after {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 100%;
  width: 17px;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.gate.is-active {
  border-color: var(--mint);
  background: var(--mint-soft);
  color: var(--mint-deep);
}

.gate-complete {
  background: color-mix(in srgb, var(--mint-soft) 46%, var(--sheet));
}

.gate-number {
  align-self: start;
  color: var(--ink-soft);
  font-family: "SpecPasa Mono", monospace;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.gate-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-soft);
}

.gate.is-active .gate-icon,
.gate-complete .gate-icon {
  background: color-mix(in srgb, var(--mint) 16%, var(--sheet));
  color: var(--mint);
}

.gate-icon svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.gate-copy {
  display: grid;
  gap: 2px;
}

.gate-copy strong {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.gate-copy small {
  color: var(--ink-soft);
  font-size: 0.77rem;
}

.gate.is-active .gate-copy small {
  color: var(--mint-deep);
}

.gate-node {
  position: absolute;
  top: calc(50% - 5px);
  right: -6px;
  z-index: 2;
  width: 11px;
  height: 11px;
  border: 2px solid var(--mint);
  border-radius: 50%;
  background: var(--paper);
  opacity: 0;
}

.gate.is-active .gate-node,
.gate-complete .gate-node {
  opacity: 1;
}

.workspace-frame {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sheet);
}

.workspace-meta {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(380px, 1.6fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 82px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}

.workspace-meta > div {
  display: grid;
  gap: 3px;
}

.workspace-meta strong {
  font-size: 0.96rem;
}

.mono-label {
  color: var(--ink-soft);
  font-family: "SpecPasa Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workspace-meta p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.workspace-meta a {
  color: var(--mint);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.workspace-image-wrap {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background: var(--paper-deep);
}

.product-surface {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}

.mock-illustrative-badge {
  position: absolute;
  z-index: 8;
  top: 72px;
  right: 12px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #17212d;
  color: #f4f8f8;
  font-family: "SpecPasa Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.mock-topbar {
  display: grid;
  min-height: 62px;
  grid-template-columns: minmax(180px, 1.2fr) minmax(92px, 0.45fr) minmax(84px, 0.38fr) auto auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--sheet);
}

.mock-topbar-item {
  display: grid;
  min-height: 62px;
  align-content: center;
  gap: 1px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
}

.mock-topbar-item span,
.mock-label {
  color: var(--ink-soft);
  font-family: "SpecPasa Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mock-topbar-item strong {
  overflow: hidden;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-mint {
  color: var(--mint);
}

.mock-state {
  margin-inline: 16px;
  padding: 6px 9px;
  border: 1px solid color-mix(in srgb, var(--mint) 44%, var(--line));
  border-radius: 7px;
  color: var(--mint-deep);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.mock-button,
.mock-topbar > .mock-button,
.mock-dock .mock-button,
.ai-composer .mock-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: var(--mint);
  color: var(--on-mint);
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}

.mock-body {
  display: grid;
  min-height: 400px;
  grid-template-columns: minmax(150px, 0.56fr) minmax(380px, 1.8fr) minmax(210px, 0.78fr);
}

.mock-sidebar,
.mock-review {
  min-width: 0;
  padding: 20px 18px;
  background: color-mix(in srgb, var(--sheet) 88%, var(--paper));
}

.mock-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid var(--line);
}

.mock-sidebar > strong {
  overflow: hidden;
  margin: 6px 0 2px;
  font-size: 0.81rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-sidebar > span:not(.mock-label) {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.mock-reference {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.mock-reference i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}

.mock-document {
  min-width: 0;
  padding: 34px clamp(26px, 4vw, 58px) 42px;
  background: var(--sheet);
}

.mock-document h3 {
  margin: 14px 0 18px;
  font-size: clamp(1.5rem, 2.3vw, 2.25rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.mock-document h4 {
  margin: 28px 0 12px;
  font-size: 1rem;
}

.mock-rule {
  height: 1px;
  background: var(--line);
}

.mock-copy-lines {
  display: grid;
  gap: 8px;
}

.mock-copy-lines i {
  display: block;
  width: 95%;
  height: 8px;
  border-radius: 3px;
  background: var(--paper-deep);
}

.mock-copy-lines i:nth-child(2) { width: 86%; }
.mock-copy-lines i:nth-child(3) { width: 64%; }

.mock-requirement {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
}

.mock-requirement b,
.mock-requirement em {
  color: var(--mint-deep);
  font-style: normal;
}

.mock-requirement span {
  overflow: hidden;
  color: var(--ink-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-review {
  border-left: 1px solid var(--line);
}

.mock-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
}

.mock-review-head b {
  color: var(--mint-deep);
  font-size: 0.7rem;
}

.mock-thread {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.mock-thread strong {
  font-size: 0.76rem;
}

.mock-thread p {
  margin: 7px 0 10px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.45;
}

.mock-thread span {
  color: var(--mint-deep);
  font-size: 0.68rem;
  font-weight: 700;
}

.mock-dock {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--line);
  background: var(--sheet);
}

.mock-dock > span,
.mock-dock > strong {
  display: grid;
  min-width: 46px;
  min-height: 46px;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: "SpecPasa Mono", monospace;
  font-size: 0.7rem;
}

.mock-dock > strong {
  color: var(--mint-deep);
}

.mock-dock .mock-button {
  margin: 0 0 0 14px;
}

.workflow-section {
  padding: 120px 0 128px;
  background: #17212d;
  color: var(--on-dark);
}

html[data-theme="dark"] .workflow-section,
html[data-theme="dark"] .self-host-section {
  background: #080d11;
}

.section-heading h2,
.provenance-copy h2,
.self-host-layout h2,
.closing h2 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.split-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: end;
  gap: 96px;
}

.split-heading h2 {
  max-width: 660px;
}

.split-heading p {
  max-width: 58ch;
  margin: 0;
  color: var(--on-dark-soft);
  font-size: 1.05rem;
}

.workflow-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 88px 0 0;
  padding: 0;
  list-style: none;
}

.workflow-line li {
  position: relative;
  padding: 38px 34px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--on-dark) 24%, transparent);
}

.workflow-line li::before {
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid #17212d;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 1px var(--mint);
  content: "";
}

.workflow-marker {
  color: var(--mint-on-dark);
  font-family: "SpecPasa Mono", monospace;
  font-size: 0.74rem;
}

.workflow-line h3 {
  margin: 18px 0 9px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.workflow-line p {
  max-width: 30ch;
  margin: 0;
  color: var(--on-dark-soft);
  font-size: 0.92rem;
}

.product-tour {
  padding-top: 128px;
  padding-bottom: 128px;
}

.tour-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
}

.tour-heading > div:first-child {
  max-width: 820px;
}

.tour-heading p,
.provenance-copy > p,
.self-host-layout > div > p,
.closing p {
  max-width: 66ch;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.tour-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sheet);
}

.tour-tabs button {
  padding: 9px 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.tour-tabs button[aria-selected="true"] {
  background: var(--mint-soft);
  color: var(--mint-deep);
}

.tour-tabs button:hover {
  color: var(--mint);
}

.tour-figure {
  overflow: hidden;
  margin: 56px 0 0;
  border-radius: var(--radius);
  background: var(--sheet);
  box-shadow: 0 28px 72px -44px color-mix(in srgb, var(--ink) 60%, transparent);
}

.tour-canvas {
  padding: clamp(16px, 2.4vw, 30px);
  background: var(--paper-deep);
}

.product-surface-tour {
  min-height: 510px;
  transition: box-shadow 260ms var(--ease-out);
}

.mock-overlay {
  position: absolute;
  z-index: 5;
  inset: 62px 0 46px;
  display: grid;
  padding: clamp(24px, 4vw, 58px);
  place-items: center;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}

.product-surface-tour[data-mock-mode="versions"] .mock-versions,
.product-surface-tour[data-mock-mode="askai"] .mock-askai,
.product-surface-tour[data-mock-mode="providers"] .mock-providers {
  opacity: 1;
  transform: translateY(0);
}

.mock-versions {
  grid-template-columns: minmax(190px, 0.62fr) minmax(320px, 1.38fr);
  grid-template-rows: auto 1fr;
  align-items: stretch;
  gap: 0;
}

.overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: var(--sheet);
  font-size: 0.8rem;
}

.mock-versions > .overlay-head {
  grid-column: 1 / -1;
}

.overlay-head span {
  color: var(--ink-soft);
  font-family: "SpecPasa Mono", monospace;
  font-size: 0.68rem;
}

.version-rail {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-content: start;
  gap: 0 12px;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--sheet);
}

.version-rail b,
.version-rail span {
  min-height: 52px;
  padding-top: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
}

.version-rail b {
  color: var(--mint-deep);
  font-family: "SpecPasa Mono", monospace;
}

.version-rail span {
  color: var(--ink-soft);
}

.diff-sheet {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--sheet);
}

.diff-sheet span {
  margin-bottom: 12px;
  font-family: "SpecPasa Mono", monospace;
  font-size: 0.7rem;
}

.diff-sheet i {
  height: 18px;
  border-radius: 3px;
  background: var(--mint-soft);
}

.diff-sheet i:nth-child(3),
.diff-sheet i:nth-child(5) {
  width: 78%;
  background: var(--paper-deep);
}

.ai-composer {
  width: min(720px, 94%);
  padding: 24px;
  border: 1px solid var(--mint);
  border-radius: 12px;
  background: var(--sheet);
  box-shadow: 0 24px 64px -42px color-mix(in srgb, var(--ink) 72%, transparent);
}

.ai-composer p {
  min-height: 86px;
  margin: 15px 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.ai-composer > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-composer > div span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: "SpecPasa Mono", monospace;
  font-size: 0.68rem;
}

.ai-composer .mock-button {
  margin: 0 0 0 auto;
}

.provider-sheet {
  width: min(760px, 96%);
  border-radius: 10px;
  background: var(--sheet);
  box-shadow: 0 24px 64px -42px color-mix(in srgb, var(--ink) 72%, transparent);
}

.provider-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.provider-row i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

.provider-row > span {
  display: grid;
  gap: 2px;
}

.provider-row b {
  font-size: 0.8rem;
}

.provider-row small,
.provider-row em {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-style: normal;
}

.tour-figure figcaption {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}

.tour-figure figcaption strong {
  font-size: 0.94rem;
  white-space: nowrap;
}

.tour-figure figcaption span {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.provenance-section {
  padding: 128px 0;
  background: var(--mint-soft);
}

.provenance-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: clamp(64px, 9vw, 140px);
}

.provider-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.provider-list span,
.deployment-notes span {
  padding: 8px 11px;
  border: 1px solid color-mix(in srgb, var(--mint) 42%, var(--line));
  border-radius: 999px;
  color: var(--mint-deep);
  font-family: "SpecPasa Mono", monospace;
  font-size: 0.72rem;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 34px;
  color: var(--mint-deep);
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover {
  gap: 12px;
}

.ledger {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--mint) 30%, var(--line));
  border-radius: var(--radius);
  background: var(--sheet);
}

.ledger-head {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: "SpecPasa Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ledger-row {
  display: grid;
  width: 100%;
  grid-template-columns: 50px 1fr 160px;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.ledger-row.is-current {
  background: var(--mint-wash);
}

.ledger-version {
  display: grid;
  width: 38px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: "SpecPasa Mono", monospace;
  font-size: 0.8rem;
}

.ledger-row.is-current .ledger-version {
  border-color: var(--mint);
  background: var(--mint);
  color: var(--on-mint);
}

.ledger-row > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.ledger-row strong {
  font-size: 0.9rem;
}

.ledger-row small,
.ledger-model {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.ledger-model {
  display: grid;
  font-family: "SpecPasa Mono", monospace;
}

.ledger-model b {
  overflow: hidden;
  color: var(--ink);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.self-host-section {
  padding: 128px 0;
  background: #17212d;
  color: var(--on-dark);
}

.self-host-layout {
  display: grid;
  grid-template-columns: 1fr minmax(420px, 0.8fr);
  align-items: center;
  gap: clamp(64px, 10vw, 160px);
}

.self-host-layout > div > p {
  color: var(--on-dark-soft);
}

.deployment-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.deployment-notes span {
  border-color: color-mix(in srgb, var(--mint-on-dark) 46%, transparent);
  color: var(--mint-on-dark);
}

.terminal {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--on-dark) 18%, transparent);
  border-radius: var(--radius);
  background: #0a1014;
  box-shadow: 0 28px 72px -46px #000000;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--on-dark) 14%, transparent);
  color: #a9b7bf;
  font-family: "SpecPasa Mono", monospace;
  font-size: 0.7rem;
}

.terminal-bar button {
  padding: 6px 9px;
  border: 1px solid #394850;
  border-radius: 7px;
  background: transparent;
  color: #e5eeee;
  font-size: 0.75rem;
  cursor: pointer;
}

.terminal-bar button:hover {
  border-color: var(--mint-on-dark);
  color: var(--mint-on-dark);
}

.terminal pre {
  overflow-x: auto;
  margin: 0;
  padding: 38px 28px 28px;
}

.terminal code {
  color: var(--mint-on-dark);
  font-family: "SpecPasa Mono", monospace;
  font-size: clamp(1rem, 2vw, 1.28rem);
}

.terminal code::before {
  margin-right: 12px;
  color: #73838c;
  content: "$";
}

.terminal > p {
  margin: 0;
  padding: 0 28px 28px;
  color: #82929b;
  font-family: "SpecPasa Mono", monospace;
  font-size: 0.72rem;
}

.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  padding-top: 120px;
  padding-bottom: 120px;
}

.closing > div:first-child {
  max-width: 830px;
}

.closing-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--sheet);
}

.footer-inner {
  display: grid;
  min-height: 112px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.footer-inner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.site-footer nav {
  display: flex;
  gap: 22px;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

@media (max-width: 1050px) {
  .shell {
    width: min(100% - 40px, 1440px);
  }

  .primary-nav {
    display: none;
  }

  .gate-rail {
    gap: 10px;
  }

  .gate {
    grid-template-columns: auto 1fr;
    min-height: 88px;
    padding: 16px;
  }

  .gate-number {
    display: none;
  }

  .workspace-meta {
    grid-template-columns: 1fr auto;
  }

  .workspace-meta p {
    display: none;
  }

  .mock-body {
    grid-template-columns: minmax(140px, 0.48fr) minmax(340px, 1.52fr);
  }

  .mock-review {
    display: none;
  }

  .split-heading,
  .provenance-layout,
  .self-host-layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .workflow-line {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 56px;
  }

  .tour-heading,
  .closing {
    align-items: flex-start;
    flex-direction: column;
  }

  .tour-tabs {
    align-self: stretch;
    justify-content: space-between;
  }

  .self-host-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
  }

  .shell {
    width: min(100% - 28px, 1440px);
  }

  .header-inner {
    gap: 16px;
  }

  .header-actions .button {
    width: 40px;
    padding: 0;
    font-size: 0;
  }

  .header-actions .button svg {
    width: 19px;
  }

  .hero {
    padding-top: 52px;
    padding-bottom: 82px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.3rem);
    white-space: normal;
  }

  .hero-copy > p:not(.hero-note) {
    margin-top: 24px;
    font-size: 1.04rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .team-note {
    align-items: flex-start;
  }

  .hero-note {
    line-height: 1.5;
  }

  .control-room {
    margin-top: 54px;
  }

  .gate-rail {
    grid-template-columns: repeat(4, minmax(118px, 1fr));
    overflow-x: auto;
    margin-inline: -14px;
    padding: 0 14px 10px;
    scroll-snap-type: x mandatory;
  }

  .gate {
    min-height: 80px;
    scroll-snap-align: start;
  }

  .gate-icon {
    width: 36px;
    height: 36px;
  }

  .gate-copy strong {
    font-size: 0.85rem;
  }

  .workspace-frame {
    margin-top: 8px;
  }

  .workspace-meta {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .workspace-meta a {
    display: none;
  }

  .workspace-image-wrap {
    padding: 8px;
  }

  .mock-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mock-topbar-item:nth-child(2),
  .mock-topbar-item:nth-child(3),
  .mock-state {
    display: none;
  }

  .mock-topbar-item:first-child {
    border-right: 0;
  }

  .mock-topbar > .mock-button {
    margin-right: 10px;
  }

  .mock-body {
    min-height: 330px;
    grid-template-columns: 1fr;
  }

  .mock-sidebar,
  .mock-review {
    display: none;
  }

  .mock-document {
    padding: 24px 20px 30px;
  }

  .mock-document h3 {
    font-size: 1.55rem;
  }

  .mock-requirement {
    grid-template-columns: 1fr auto;
  }

  .mock-requirement span {
    display: none;
  }

  .mock-dock {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .workflow-section,
  .product-tour,
  .provenance-section,
  .self-host-section {
    padding-top: 88px;
    padding-bottom: 92px;
  }

  .section-heading h2,
  .provenance-copy h2,
  .self-host-layout h2,
  .closing h2 {
    font-size: clamp(2.45rem, 12vw, 3.5rem);
  }

  .split-heading {
    gap: 30px;
  }

  .workflow-line {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 60px;
  }

  .workflow-line li {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 8px;
    padding: 24px 0 0;
  }

  .workflow-line h3 {
    margin-top: 0;
  }

  .tour-heading {
    gap: 34px;
  }

  .tour-tabs {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .tour-figure {
    margin-top: 36px;
  }

  .tour-canvas {
    padding: 8px;
  }

  .product-surface-tour {
    min-height: 440px;
  }

  .mock-overlay {
    padding: 14px;
  }

  .mock-versions {
    grid-template-columns: 1fr;
  }

  .version-rail {
    display: none;
  }

  .diff-sheet {
    border-left: 1px solid var(--line);
  }

  .ai-composer {
    width: 100%;
    padding: 16px;
  }

  .ai-composer > div {
    align-items: stretch;
    flex-direction: column;
  }

  .ai-composer .mock-button {
    margin-left: 0;
  }

  .provider-sheet {
    width: 100%;
  }

  .provider-row {
    grid-template-columns: 8px 1fr;
  }

  .provider-row em {
    display: none;
  }

  .tour-figure figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .tour-figure figcaption strong {
    white-space: normal;
  }

  .provider-list,
  .deployment-notes {
    gap: 7px;
  }

  .ledger-head {
    grid-template-columns: 1fr;
  }

  .ledger-head span:last-child {
    display: none;
  }

  .ledger-row {
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 16px;
  }

  .ledger-model {
    grid-column: 2;
  }

  .self-host-layout {
    grid-template-columns: 1fr;
  }

  .terminal pre {
    padding: 30px 20px 22px;
  }

  .terminal > p {
    padding: 0 20px 24px;
  }

  .closing {
    gap: 34px;
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .closing-actions {
    width: 100%;
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
