.content-section,
.architecture-section {
  padding: clamp(88px, 9vw, 128px) clamp(28px, 5.5vw, 80px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  scroll-margin-top: var(--header);
}

.section-heading {
  max-width: 900px;
  margin: 0 0 58px;
}

.section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(40px, 4.5vw, 62px);
  font-weight: 710;
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-wrap: balance;
}

.section-heading > p {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.why-section {
  background: #ffffff;
}

.capability-stories {
  display: grid;
  gap: 16px;
}

.capability-story {
  display: grid;
  width: calc(100% - 64px);
  min-height: 210px;
  padding: 30px;
  align-items: start;
  grid-template-columns: minmax(170px, 0.6fr) minmax(300px, 1.35fr) minmax(250px, 1fr);
  gap: clamp(26px, 4vw, 60px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(36, 76, 137, 0.07);
}

.capability-story:nth-child(even) {
  margin-left: auto;
  border-color: #cbdaf0;
  background: var(--paper-blue);
}

.story-scene span,
.story-action small,
.story-effect small,
.design-topic span,
.design-side small,
.capability-panel > div:first-child small,
.availability,
.config-notes small,
.map-source small,
.map-runtime small {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.story-scene h3 {
  margin: 13px 0 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.story-action h4 {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.story-action p,
.story-effect p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.story-effect {
  padding: 4px 0 4px 28px;
  border-left: 1px solid #c9d7e9;
}

.story-effect p {
  color: var(--text-soft);
}

.comparison-section {
  background: var(--paper);
}

.comparison-fit {
  display: grid;
  overflow: hidden;
  border: 1px solid #cbd9eb;
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comparison-fit > div {
  min-height: 220px;
  padding: 34px;
}

.comparison-fit > div + div {
  border-left: 1px solid #cbd9eb;
  background: var(--blue-soft);
}

.comparison-fit small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.comparison-fit > div + div small {
  color: var(--blue);
}

.comparison-fit h3 {
  margin: 18px 0 0;
  color: var(--text);
  font-size: 27px;
  font-weight: 690;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.comparison-fit p {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.design-shifts {
  margin-top: 28px;
  padding: 0 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #ffffff;
}

.design-shift {
  display: grid;
  min-height: 182px;
  padding: 28px 0;
  align-items: start;
  grid-template-columns: minmax(130px, 0.55fr) minmax(260px, 1fr) minmax(280px, 1fr);
  gap: clamp(24px, 3vw, 48px);
}

.design-shift + .design-shift {
  border-top: 1px solid var(--line);
}

.design-topic h3 {
  margin: 11px 0 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 680;
  line-height: 1.25;
}

.design-side {
  min-width: 0;
}

.design-side small {
  color: var(--faint);
}

.design-side p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.design-side-a3s {
  min-height: 124px;
  padding: 0 0 0 28px;
  border-left: 1px solid #b9cff0;
}

.design-side-a3s small {
  color: var(--blue);
}

.design-side-a3s p {
  color: var(--text-soft);
}

.comparison-scope {
  display: grid;
  margin-top: 24px;
  padding: 24px 28px;
  border: 1px solid #cbd9eb;
  border-radius: 14px;
  background: #eef4fc;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.comparison-scope p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.comparison-scope p strong {
  color: var(--text);
}

.comparison-scope div {
  color: var(--faint);
  font-size: 10px;
  line-height: 1.8;
  text-align: right;
}

.comparison-scope a {
  color: var(--blue-deep);
  text-decoration: underline;
  text-decoration-color: rgba(18, 100, 255, 0.3);
  text-underline-offset: 3px;
}

.features-section {
  background: #ffffff;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.capability-panel {
  position: relative;
  min-height: 310px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(36, 76, 137, 0.06);
}

.capability-panel > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.availability {
  color: var(--green);
  letter-spacing: 0.05em;
}

.capability-panel h3 {
  max-width: 620px;
  margin: 56px 0 0;
  color: var(--text);
  font-size: 29px;
  font-weight: 690;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.capability-panel > p {
  max-width: 630px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.capability-panel.is-protocol {
  grid-column: 1 / 8;
  background: var(--paper-blue);
}

.capability-panel.is-model {
  grid-column: 8 / -1;
}

.capability-panel.is-backend {
  grid-column: 1 / 6;
  background: #f9fbfe;
}

.capability-panel.is-state {
  grid-column: 6 / -1;
  border-color: #c9d9ef;
  background: linear-gradient(145deg, #ffffff, #eef5ff);
}

.capability-panel.is-policy {
  min-height: 380px;
  grid-column: 1 / 9;
  background: #f6f9ff;
}

.capability-panel.is-operations {
  grid-column: 9 / -1;
  border-color: #172a4b;
  background: var(--navy);
  box-shadow: 0 24px 60px rgba(14, 27, 53, 0.18);
}

.capability-panel.is-operations h3 {
  color: #ffffff;
}

.capability-panel.is-operations > p {
  color: #afbdd2;
}

.capability-panel.is-operations > div:first-child small {
  color: #80aaff;
}

.capability-panel.is-operations .availability {
  color: #9edbc8;
}

.protocol-rail {
  display: flex;
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 8px;
}

.protocol-rail span {
  display: inline-flex;
  min-height: 34px;
  padding: 0 11px;
  align-items: center;
  border: 1px solid #c7d8f3;
  border-radius: 8px;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.86);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.policy-groups {
  display: grid;
  margin: 28px 0 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.policy-groups div {
  min-height: 88px;
  padding: 15px;
  border: 1px solid #d3e0f2;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
}

.policy-groups dt {
  color: var(--text);
  font-size: 12px;
  font-weight: 720;
}

.policy-groups dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.delivery-link {
  display: flex;
  min-height: 136px;
  margin-top: 22px;
  padding: 28px 30px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid #c9daf4;
  border-radius: var(--radius-card);
  background: var(--blue-soft);
}

.delivery-link strong,
.delivery-link p {
  display: block;
}

.delivery-link strong {
  color: var(--text);
  font-size: 17px;
}

.delivery-link p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.performance-section {
  background: #ffffff;
}

.performance-intro {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.68fr);
  gap: clamp(46px, 6vw, 88px);
}

.performance-intro .section-heading {
  margin-bottom: 0;
}

.performance-method {
  padding: 4px 0 4px 30px;
  border-left: 1px solid var(--line-strong);
}

.performance-method-title {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 14px;
}

.performance-method-title .ui-icon {
  color: var(--blue);
}

.performance-method > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.performance-method dl {
  display: grid;
  margin: 22px 0 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}

.performance-method dl div {
  min-width: 0;
}

.performance-method dt,
.performance-method dd {
  margin: 0;
}

.performance-method dt {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.performance-method dd {
  margin-top: 4px;
  overflow: hidden;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-ledger {
  margin-top: 54px;
  overflow: hidden;
  border: 1px solid #c8d7ea;
  border-radius: 16px;
  background: #ffffff;
}

.performance-ledger > header,
.performance-ledger > article {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(390px, 1.1fr) minmax(230px, 0.75fr);
  gap: 0;
}

.performance-ledger > header {
  min-height: 48px;
  align-items: center;
  color: #afc3e1;
  background: var(--navy);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.performance-ledger > header span {
  padding: 0 30px;
}

.performance-ledger > header span + span {
  border-left: 1px solid #2b3c59;
}

.performance-ledger > article {
  min-height: 184px;
  align-items: stretch;
}

.performance-ledger > article + article {
  border-top: 1px solid var(--line);
}

.performance-context {
  display: grid;
  min-width: 0;
  padding: 30px;
  align-content: center;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
}

.performance-context > .ui-icon {
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 10px;
  color: var(--blue);
  background: var(--blue-soft);
}

.performance-context small,
.performance-outcome > small {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.performance-context h3 {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.performance-context p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.performance-products {
  display: grid;
  min-width: 0;
  margin: 0;
  border-left: 1px solid var(--line);
  background: #f8fafc;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.performance-products > div {
  display: flex;
  min-width: 0;
  padding: 28px 24px;
  flex-direction: column;
  justify-content: center;
}

.performance-products > div + div {
  border-left: 1px solid var(--line);
}

.performance-products dt,
.performance-products dd {
  margin: 0;
}

.performance-products dt {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.07em;
}

.performance-products .is-a3s dt {
  color: var(--blue);
}

.performance-products dd {
  margin-top: 12px;
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  line-height: 1.2;
  white-space: nowrap;
}

.performance-products small {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.performance-outcome {
  display: flex;
  min-width: 0;
  padding: 30px;
  border-left: 1px solid var(--line);
  flex-direction: column;
  justify-content: center;
}

.performance-ledger [data-profile-status="mixed"] .performance-outcome > small {
  color: var(--green);
}

.performance-ledger [data-profile-status="feature"] .performance-outcome > small {
  color: var(--faint);
}

.performance-outcome p {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 630;
  line-height: 1.55;
}

.performance-foot {
  display: flex;
  min-height: 82px;
  padding: 22px 2px 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.performance-foot > p {
  max-width: 690px;
  margin: 0;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.6;
}

.performance-foot nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.performance-foot a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 700;
}

.performance-foot a:hover {
  color: var(--blue);
}

.config-section {
  background: var(--paper);
}

.config-demo {
  display: grid;
  overflow: hidden;
  border: 1px solid #c4d5eb;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
}

.config-editor {
  min-width: 0;
  background: var(--navy);
}

.config-editor > header {
  display: flex;
  min-height: 54px;
  padding: 0 22px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #263753;
}

.config-editor > header code {
  color: #dce7f9;
  font-size: 11px;
}

.config-editor > header b {
  color: #9edbc8;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.config-editor pre {
  height: 620px;
  margin: 0;
  padding: 24px;
  overflow: auto;
  color: #b8c5d8;
  background: var(--navy);
  font-size: 11px;
  line-height: 1.62;
  tab-size: 2;
}

.config-code-block {
  display: block;
  margin: 0 -10px;
  padding: 4px 10px;
  border-radius: 7px;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.config-code-block.is-active {
  color: #ffffff;
  background: rgba(18, 100, 255, 0.24);
  box-shadow: inset 2px 0 #6fa0ff;
}

.config-code-block b {
  color: #80aaff;
  font-weight: 720;
}

.config-string {
  color: #91d8bf;
}

.config-code-block em {
  color: #f2c879;
  font-style: normal;
}

.config-guide {
  display: flex;
  min-width: 0;
  padding: 26px;
  flex-direction: column;
  background: #ffffff;
}

.config-steps {
  display: grid;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
}

.config-steps button {
  position: relative;
  min-width: 0;
  min-height: 38px;
  padding: 0 7px;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  color: var(--faint);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
}

.config-steps button[aria-selected="true"] {
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(36, 76, 137, 0.11);
}

.config-steps button.is-cycling::after {
  position: absolute;
  right: 6px;
  bottom: 3px;
  left: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  content: "";
  transform-origin: left;
  animation: config-progress 4.8s linear;
}

@keyframes config-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.config-notes {
  display: grid;
  min-height: 300px;
  align-items: center;
}

.config-notes article {
  padding: 28px 10px;
}

.config-notes h3 {
  margin: 16px 0 0;
  color: var(--text);
  font-size: 30px;
  font-weight: 690;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.config-notes p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}

.config-notes code {
  color: var(--blue-deep);
}

.config-doc-link {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  padding: 0 14px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--blue-deep);
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.architecture-section {
  background: var(--paper-blue);
}

.system-map {
  padding: 20px;
  overflow: hidden;
  border: 1px solid #c4d7f1;
  border-radius: 20px;
  background: #f8fbff;
  box-shadow: var(--shadow);
}

.map-source {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.map-source > div,
.map-runtime > div {
  display: flex;
  min-height: 136px;
  padding: 24px;
  border: 1px solid #d1dfee;
  border-radius: 14px;
  background: #ffffff;
  flex-direction: column;
  justify-content: center;
}

.map-source > b {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #c7d8f3;
  border-radius: 50%;
  color: var(--blue);
  background: #ffffff;
  font-family: var(--mono);
  font-size: 9px;
}

.map-source strong,
.map-runtime strong {
  margin-top: 10px;
  color: var(--text);
  font-size: 20px;
  letter-spacing: -0.025em;
}

.map-source span,
.map-runtime span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.map-runtime {
  position: relative;
  display: grid;
  margin-top: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.map-runtime > div {
  position: relative;
  border-color: #bcd2f3;
  background: var(--blue-soft);
}

.map-runtime > div + div::before {
  position: absolute;
  top: 50%;
  left: -17px;
  width: 16px;
  height: 1px;
  background: #8db0e4;
  content: "";
}

.system-map > footer {
  display: flex;
  min-height: 62px;
  margin-top: 16px;
  padding: 14px 18px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 12px;
  color: #c8d8f2;
  background: var(--navy);
  font-size: 10px;
  text-align: center;
}

.system-map > footer strong {
  color: #ffffff;
}

.system-map > footer span {
  font-family: var(--mono);
}

.deploy-section {
  display: grid;
  min-height: 420px;
  padding: clamp(64px, 7vw, 92px) clamp(28px, 5.5vw, 80px);
  align-items: center;
  border-right: 1px solid #1d3155;
  border-bottom: 1px solid #1d3155;
  border-left: 1px solid #1d3155;
  background: var(--navy);
  grid-template-columns: minmax(360px, 0.8fr) minmax(560px, 1.2fr);
  gap: clamp(46px, 6vw, 82px);
}

.deploy-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 690;
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-wrap: balance;
}

.deploy-copy > p {
  max-width: 600px;
  margin: 22px 0 0;
  color: #afbdd2;
  font-size: 14px;
  line-height: 1.7;
}

.deploy-links {
  display: flex;
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 18px;
}

.deploy-links a {
  color: #d9e7ff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #49658e;
  text-underline-offset: 5px;
}

.deploy-links a:hover {
  color: #ffffff;
}

.install-console {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #c5d4e8;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 30px 74px rgba(4, 12, 27, 0.26);
}

.install-tabs {
  display: flex;
  min-height: 52px;
  padding: 6px;
  border-bottom: 1px solid var(--line);
  background: #f4f7fb;
}

.install-tabs button {
  min-width: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: var(--faint);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 680;
  flex: 1;
}

.install-tabs button[aria-selected="true"] {
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(36, 76, 137, 0.11);
}

.install-command {
  display: grid;
  min-height: 126px;
  padding: 28px 24px;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
}

.install-command > span {
  color: var(--blue);
  font-family: var(--mono);
}

.install-command code {
  overflow: auto;
  color: var(--text-soft);
  font-size: 11px;
  white-space: nowrap;
}

.install-command button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #bcd0eb;
  border-radius: 7px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 760;
}

.install-proof {
  min-height: 46px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  background: #f8fafc;
  font-family: var(--mono);
  font-size: 9px;
  text-align: center;
}

.install-noscript {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 10px;
}

.site-footer {
  display: grid;
  min-height: 126px;
  padding: 28px 40px;
  align-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  color: var(--faint);
  background: #ffffff;
  grid-template-columns: auto minmax(240px, 1fr) auto auto;
  gap: 28px;
  font-size: 11px;
}

.site-footer .brand img {
  width: 30px;
  height: 30px;
}

.site-footer .brand span {
  font-size: 15px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer nav a:hover {
  color: var(--blue);
}

.site-footer small {
  white-space: nowrap;
}
