:root {
  color-scheme: light;
  --brand-purple: #b99af3;
  --brand-lilac: #d8c0ff;
  --brand-gradient: linear-gradient(100deg, #d8c0ff, #9776db);
  --brand-text-gradient: linear-gradient(100deg, #9776db, #8159bd);
  --on-brand: #21132f;
  --canvas: #faf9fc;
  --canvas-strong: #f0edf6;
  --paper: #ffffff;
  --paper-soft: #f6f4fa;
  --ink: #101014;
  --ink-soft: #605b6b;
  --ink-faint: #716b7d;
  --primary: #b99af3;
  --secondary: #d8c0ff;
  --primary-bright: #c7b0ff;
  --primary-soft: #f1e8fc;
  --primary-wash: rgba(185, 154, 243, 0.10);
  --line: rgba(77, 55, 103, 0.13);
  --line-strong: rgba(77, 55, 103, 0.24);
  --success: #287a3d;
  --shadow-sm: 0 8px 28px rgba(16, 16, 20, 0.08);
  --shadow-lg: 0 28px 80px rgba(16, 16, 20, 0.16);
  --header: rgba(250, 249, 252, 0.92);
  --codex-accent: #29252f;
  --shell: 1280px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --brand-text-gradient: var(--brand-gradient);
  --canvas: #101014;
  --canvas-strong: #0c0c10;
  --paper: #1b1921;
  --paper-soft: #24212c;
  --ink: #eef1f7;
  --ink-soft: #c4becf;
  --ink-faint: #a49bb3;
  --primary: #b99af3;
  --secondary: #d8c0ff;
  --primary-bright: #c7b0ff;
  --primary-soft: #30203f;
  --primary-wash: rgba(185, 154, 243, 0.12);
  --line: rgba(205, 189, 226, 0.14);
  --line-strong: rgba(205, 189, 226, 0.26);
  --success: #74c986;
  --shadow-sm: 0 8px 30px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.38);
  --header: rgba(16, 16, 20, 0.9);
  --codex-accent: #f0ecf8;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: var(--canvas);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 86% 7%, color-mix(in srgb, var(--brand-purple) 8%, transparent), transparent 25rem),
    radial-gradient(circle at 6% 22%, color-mix(in srgb, var(--brand-lilac) 5%, transparent), transparent 24rem),
    var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="zh-CN"] body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC",
    "Microsoft YaHei", var(--sans);
}

html[lang="zh-CN"] .hero h1 {
  font-size: clamp(2.85rem, 3.4vw, 3.1rem);
  letter-spacing: -0.045em;
  line-height: 1.06;
}

body::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: min(100%, 1540px);
  height: 820px;
  transform: translateX(-50%);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent 82%);
  content: "";
  opacity: 0.24;
  pointer-events: none;
}

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

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

code,
pre,
kbd {
  font-family: var(--mono);
}

::selection {
  background: color-mix(in srgb, var(--brand-purple) 28%, transparent);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--secondary) 72%, white);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  transform: translateY(-180%);
  border-radius: 8px;
  background: var(--ink);
  color: var(--canvas);
  font-weight: 700;
  transition: transform 160ms ease;
}

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

.section-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.section-block {
  padding-block: 132px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  background: var(--header);
  backdrop-filter: blur(20px) saturate(150%);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(34, 24, 52, 0.04);
}

.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 48px), var(--shell));
  min-height: 70px;
  margin-inline: auto;
}

.wordmark {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  width: max-content;
  font-size: 1.08rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.brand-icon-stage {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 34px;
}

.brand-icon {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.site-footer .brand-icon-stage {
  width: 36px;
  height: 30px;
}

.site-navigation {
  display: flex;
  gap: 30px;
  align-items: center;
}

.site-navigation a {
  position: relative;
  padding-block: 8px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 610;
}

.site-navigation a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  background: var(--primary);
  content: "";
  transition: transform 160ms ease;
}

.site-navigation a:hover {
  color: var(--ink);
}

.site-navigation a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  position: relative;
  display: flex;
  gap: 0;
  align-items: center;
  justify-self: end;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 15px;
  background: color-mix(in srgb, var(--paper) 58%, transparent);
}

.preferences-toggle,
.github-link,
.nav-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.github-link::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 1px;
  background: var(--line);
  content: "";
}

@media (hover: hover) {
  .preferences-toggle:hover,
  .github-link:hover,
  .nav-toggle:hover {
    background: var(--primary-wash);
    color: var(--ink);
  }
}

.preferences-toggle:active,
.github-link:active,
.nav-toggle:active {
  transform: scale(0.94);
  background: var(--primary-wash);
}

.menu-icon,
.preferences-icon,
.github-link svg {
  width: 17px;
  height: 17px;
}

.menu-icon {
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.menu-icon > g {
  transform-box: view-box;
  transform-origin: center;
  transition: opacity 140ms ease, transform 160ms ease;
}

.menu-icon-bars {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.menu-icon-close {
  opacity: 0;
  stroke-width: 2;
  transform: rotate(-36deg) scale(0.72);
}

.preferences-icon {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.preferences-icon circle {
  fill: var(--paper);
}

.github-link svg {
  fill: currentColor;
}

.nav-toggle {
  display: none;
}

.site-navigation-github {
  display: none;
}

.preferences-control {
  position: relative;
  display: grid;
}

.preferences-popover {
  position: absolute;
  z-index: 120;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  gap: 12px;
  width: min(296px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 78%, transparent);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(16, 16, 20, 0.16), 0 2px 6px rgba(16, 16, 20, 0.06);
  transform-origin: calc(100% - 18px) top;
  animation: preferences-pop-in 160ms ease-out;
}

.preferences-popover[hidden] {
  display: none;
}

.preferences-heading {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding: 1px 2px 10px;
  border-bottom: 1px solid var(--line);
}

.preferences-heading strong {
  font-size: 0.82rem;
  letter-spacing: -0.015em;
}

.preferences-heading small {
  color: var(--ink-faint);
  font-size: 0.55rem;
  white-space: nowrap;
}

.preference-group {
  display: grid;
  gap: 7px;
}

.preference-group > span {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.53rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preference-options {
  display: grid;
  gap: 3px;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--canvas) 74%, var(--paper));
}

.preference-themes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.preference-options button {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 38px;
  padding: 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  font-size: 0.59rem;
  font-weight: 680;
  transition: background-color 150ms ease, box-shadow 150ms ease, color 150ms ease, transform 150ms ease;
}

.preference-options button[aria-pressed="true"] {
  background: var(--brand-gradient);
  color: var(--on-brand);
  box-shadow:
    0 1px 2px rgba(50, 39, 79, 0.08),
    0 6px 16px color-mix(in srgb, var(--primary) 9%, transparent);
}

@media (hover: hover) {
  .preference-options button:hover {
    background: color-mix(in srgb, var(--paper) 76%, transparent);
    color: var(--ink);
  }
}

.preference-options button:active {
  transform: scale(0.97);
}

.theme-choice-icon {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

@keyframes preferences-pop-in {
  from {
    transform: translateY(-5px) scale(0.97);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(510px, 0.95fr) minmax(0, 1.25fr);
  gap: 42px;
  align-items: start;
  padding-top: 96px;
  padding-bottom: 62px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background: #211b34;
  margin: 0 0 20px;
  color: var(--brand-lilac);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow > span {
  flex: 0 0 18px;
  width: 18px;
  height: 1px;
  background: var(--brand-purple);
}

.eyebrow b,
.hero-signals b {
  font: inherit;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3.75rem, 4.2vw, 4.45rem);
  font-weight: 670;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.hero h1 em,
.section-heading h2 em {
  background: var(--brand-text-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-style: normal;
}

.hero-lede {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.72;
}

.hero-ownership {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.035em;
  line-height: 1.45;
}

.hero-ownership > span {
  position: relative;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 68%, transparent);
  border-radius: 3px;
  transform: rotate(45deg);
}

.hero-ownership > span::after {
  position: absolute;
  inset: 3px;
  border-radius: 1px;
  background: var(--primary);
  content: "";
}

.hero-ownership strong {
  font: inherit;
  font-weight: 650;
}

.hero-actions,
.start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.button svg,
.text-link svg,
.plugin-controls > a svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

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

.button-primary {
  background: var(--brand-purple);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--brand-purple) 22%, transparent);
  color: var(--on-brand);
}

.button-primary:hover {
  background: color-mix(in srgb, var(--brand-purple) 85%, white);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--brand-purple) 28%, transparent);
}

.button-secondary {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--paper) 76%, transparent);
}

.button-secondary:hover {
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  list-style: none;
  text-transform: uppercase;
}

.hero-signals li {
  display: flex;
  gap: 7px;
  align-items: center;
}

.hero-signals li span,
.window-status i,
.window-statusline i,
.control-plane-summary i,
.control-machine-name i,
.topology-machine-name > i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #3a964f;
  box-shadow: 0 0 0 3px rgba(58, 150, 79, 0.1);
}

.hero-product {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-top: 16px;
}

.hero-product::before {
  position: absolute;
  z-index: -2;
  top: 4%;
  right: 0;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 121, 224, 0.2), rgba(142, 121, 224, 0) 68%);
  content: "";
  filter: blur(6px);
}

.product-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.hero-product-window {
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
}

.terminal-titlebar > span i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
}

.theme-art-picture {
  display: block;
  height: 100%;
}

.workspace-art {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero-control-plane {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 96%;
  margin: -30px auto 0;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: color-mix(in srgb, var(--paper) 93%, transparent);
  box-shadow: 0 18px 48px rgba(46, 34, 75, 0.15);
  backdrop-filter: blur(20px) saturate(145%);
}

.hero-client-wiring {
  position: absolute;
  z-index: 0;
  top: -108px;
  left: 2%;
  width: 96%;
  height: 124px;
  overflow: visible;
  pointer-events: none;
}

.hero-client-wiring path {
  fill: none;
  stroke: color-mix(in srgb, var(--primary) 62%, var(--line-strong));
  stroke-dasharray: 4 8;
  stroke-linecap: round;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  animation: topology-flow 7s linear infinite;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--primary) 25%, transparent));
}

.control-plane-summary,
.control-plane-map {
  position: relative;
  z-index: 1;
}

.control-plane-summary {
  order: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  margin-top: 8px;
  padding: 10px 8px 4px;
  border-top: 1px solid var(--line);
}

.control-plane-summary > span:first-child,
.control-machine-name {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.control-plane-summary > span:first-child b {
  font: inherit;
}

.control-plane-summary > span i,
.control-machine-name i {
  flex: 0 0 auto;
}

.control-machine-name > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-plane-summary strong {
  justify-self: center;
  overflow: hidden;
  font-size: 0.72rem;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-plane-summary strong span {
  margin-inline: 3px;
  color: var(--ink);
}

.control-plane-summary strong > i,
.control-fleet-count i {
  display: inline;
  width: auto;
  height: auto;
  flex: 0 0 auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink-faint);
  font-style: normal;
}

.control-fleet-count {
  display: inline-flex;
  gap: 5px;
  align-items: baseline;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.51rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.control-fleet-count b {
  color: var(--ink);
  font-size: 0.68rem;
}

.control-plane-map {
  order: 1;
  position: relative;
  padding: 2px 4px 4px;
}

.control-hub-node {
  position: relative;
  z-index: 2;
  display: flex;
  width: max-content;
  gap: 16px;
  align-items: center;
  min-height: 34px;
  margin-inline: auto;
  padding: 7px 13px;
  border: 1px solid color-mix(in srgb, var(--primary) 34%, var(--line));
  border-radius: 9px;
  background: color-mix(in srgb, var(--primary-wash) 56%, var(--paper));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 10%, transparent);
}

.control-hub-node > span {
  display: flex;
  gap: 7px;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.control-hub-node > span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3a964f;
  box-shadow: 0 0 0 3px rgba(58, 150, 79, 0.1);
}

.control-hub-node > span b {
  font: inherit;
  font-weight: 720;
}

.control-hub-node code {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.49rem;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.control-machine-field {
  position: relative;
  padding-top: 34px;
}

.control-fleet-wiring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.control-fleet-wiring path {
  fill: none;
  stroke: color-mix(in srgb, var(--primary) 47%, var(--line));
  stroke-dasharray: 3 7;
  stroke-linecap: round;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  animation: topology-flow 8s linear infinite;
}

.control-machines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.control-machine {
  --node-accent: var(--primary);
  position: relative;
  min-width: 0;
  min-height: 116px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--node-accent) 24%, var(--line));
  border-radius: 12px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--paper) 98%, white), color-mix(in srgb, var(--primary-wash) 54%, var(--paper))),
    var(--paper);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.7),
    0 9px 22px color-mix(in srgb, var(--node-accent) 8%, transparent);
}

.control-machine::after {
  position: absolute;
  top: 0;
  right: 9px;
  left: 9px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--node-accent), transparent);
  content: "";
}

.control-machine-heading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.control-machine-identity {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.control-machine-identity > small {
  overflow: hidden;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.41rem;
  letter-spacing: 0.035em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.machine-chassis {
  position: relative;
  display: block;
  width: 44px;
  height: 32px;
  flex: 0 0 auto;
  color: var(--node-accent, var(--primary));
  filter: drop-shadow(0 5px 7px color-mix(in srgb, currentColor 18%, transparent));
}

.machine-display {
  position: absolute;
  display: block;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, currentColor 42%, var(--line-strong));
  background:
    radial-gradient(circle at 74% 24%, color-mix(in srgb, currentColor 19%, transparent), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--paper) 84%, white), color-mix(in srgb, var(--canvas-strong) 82%, var(--paper)));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.72),
    inset 0 -4px 9px color-mix(in srgb, currentColor 8%, transparent);
}

.machine-display::after {
  position: absolute;
  right: 4px;
  bottom: 4px;
  left: 4px;
  height: 1px;
  background: linear-gradient(90deg, currentColor 62%, transparent 62%);
  box-shadow: 0 -4px color-mix(in srgb, currentColor 33%, transparent);
  content: "";
  opacity: 0.75;
}

.machine-display > i {
  position: absolute;
  z-index: 2;
  top: 4px;
  left: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #49ad63;
  box-shadow: 5px 0 color-mix(in srgb, currentColor 45%, transparent);
}

.machine-display > b {
  position: absolute;
  z-index: 2;
  top: 3px;
  right: 4px;
  color: currentColor;
  font-family: var(--mono);
  font-size: 0.34rem;
  font-weight: 720;
  line-height: 1;
}

.machine-chassis-mac .machine-display {
  top: 1px;
  left: 5px;
  width: 34px;
  height: 23px;
  border-radius: 4px 4px 3px 3px;
}

.machine-base {
  position: absolute;
  right: 1px;
  bottom: 4px;
  left: 1px;
  height: 5px;
  transform: perspective(18px) rotateX(55deg);
  border: 1px solid color-mix(in srgb, currentColor 30%, var(--line-strong));
  border-radius: 2px 2px 6px 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), color-mix(in srgb, currentColor 13%, var(--canvas-strong)));
}

.machine-chassis-workstation .machine-display {
  top: 0;
  left: 5px;
  width: 34px;
  height: 23px;
  border-radius: 4px;
}

.machine-stand {
  position: absolute;
  bottom: 3px;
  left: 20px;
  width: 5px;
  height: 6px;
  border-radius: 1px;
  background: color-mix(in srgb, currentColor 32%, var(--line-strong));
}

.machine-stand::after {
  position: absolute;
  bottom: -2px;
  left: -6px;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 38%, var(--line-strong));
  content: "";
}

.machine-chassis-server {
  display: grid;
  width: 36px;
  height: 31px;
  gap: 2px;
  align-content: center;
  padding: 2px 3px;
  border: 1px solid color-mix(in srgb, currentColor 36%, var(--line-strong));
  border-radius: 5px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--paper) 94%, white), color-mix(in srgb, currentColor 9%, var(--canvas-strong)));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.76),
    inset 0 -5px 9px color-mix(in srgb, currentColor 8%, transparent);
}

.machine-chassis-server > span {
  position: relative;
  display: flex;
  height: 7px;
  gap: 3px;
  align-items: center;
  padding: 2px 3px;
  border: 1px solid color-mix(in srgb, currentColor 22%, var(--line));
  border-radius: 2px;
  background: color-mix(in srgb, var(--ink) 7%, var(--paper));
}

.machine-chassis-server > span > i {
  width: 3px;
  height: 3px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #49ad63;
  box-shadow: 0 0 0 1px rgba(73, 173, 99, 0.18);
}

.machine-chassis-server > span > b {
  width: 6px;
  height: 1px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 32%, var(--ink-faint));
}

.control-machine-codex {
  --node-accent: var(--codex-accent);
}

.control-machine-claude {
  --node-accent: #b85f43;
}

.control-machine-deepseek {
  --node-accent: #4d6bfe;
}

.control-machine-grok {
  --node-accent: #44403c;
}

.control-machine-multi {
  border-color: color-mix(in srgb, var(--node-accent) 32%, var(--line));
}

.control-agents {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}

.control-agent {
  display: flex;
  width: auto;
  min-width: 0;
  gap: 5px;
  align-items: center;
  margin-top: 0;
  padding: 3px 6px 3px 4px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, currentColor 14%, var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  font-size: 0.57rem;
  font-weight: 680;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-agent b {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: color-mix(in srgb, currentColor 11%, transparent);
  font-family: var(--mono);
  font-size: 0.48rem;
}

.control-agent > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.control-agent-codex {
  color: var(--codex-accent);
}

.control-agent-claude {
  color: #b85f43;
}

.control-agent-deepseek {
  color: #4d6bfe;
}

.control-agent-grok {
  color: #44403c;
}

.control-agent-custom {
  color: var(--ink);
}

html[data-theme="dark"] .control-machine-grok {
  --node-accent: #e8e4dc;
}

html[data-theme="dark"] .control-agent-grok {
  color: #e8e4dc;
}

html[data-theme="dark"] .control-machine {
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.2);
}

.hero-facts {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
  border-block: 1px solid var(--line);
}

.hero-facts > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 18px 24px;
  border-right: 1px solid var(--line);
}

.hero-facts > div:last-child {
  border-right: 0;
}

.hero-facts strong {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 560;
}

.hero-facts span {
  color: var(--ink-faint);
  font-size: 0.74rem;
}

.safety-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.72fr);
  gap: 38px;
  align-items: center;
  overflow: hidden;
  padding: 34px 38px;
  border: 1px solid rgba(201, 188, 255, 0.15);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 0, rgba(158, 140, 252, 0.16), transparent 38%),
    #1d1828;
  box-shadow: var(--shadow-sm);
  color: #ede9fe;
}

.safety-copy .eyebrow {
  margin-bottom: 10px;
  color: var(--brand-purple);
}

.safety-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.8vw, 2.7rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.safety-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.safety-points article {
  min-width: 0;
  padding: 8px 22px;
  border-left: 1px solid rgba(231, 224, 255, 0.13);
}

.safety-points strong {
  display: block;
  color: #d8c0ff;
  font-size: 0.78rem;
}

.safety-points p {
  margin: 8px 0 0;
  color: #a99fbb;
  font-size: 0.7rem;
  line-height: 1.55;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.55rem, 4.6vw, 4.8rem);
  font-weight: 650;
  letter-spacing: -0.058em;
  line-height: 1.02;
}

.section-heading > p:last-child {
  max-width: 660px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}

.surface-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 62px;
}

.desktop-surface,
.mobile-surface {
  position: relative;
  min-width: 0;
  min-height: 650px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.desktop-surface {
  padding: 34px;
}

.mobile-surface {
  padding: 34px 34px 0;
  background:
    radial-gradient(circle at 50% 92%, rgba(132, 104, 224, 0.15), transparent 55%),
    var(--paper);
}

.surface-label {
  display: grid;
  gap: 8px;
}

.surface-label > span,
.contract-points article > span {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 720;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.surface-label strong {
  font-size: 1.32rem;
  letter-spacing: -0.025em;
}

.desktop-surface > p,
.mobile-surface > p {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 0.91rem;
}

.keyboard-promise {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 13px;
  align-items: center;
  margin-top: 26px;
  padding-block: 13px;
  border-block: 1px solid var(--line);
}

.keyboard-mode {
  grid-row: 1 / 3;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.57rem;
  font-weight: 720;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.keyboard-promise strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.76rem;
  letter-spacing: -0.01em;
}

.keyboard-promise strong > span {
  margin-right: 5px;
  color: var(--ink);
  font-family: var(--mono);
}

.keyboard-promise strong i {
  display: inline-block;
  width: 0.42em;
  height: 1em;
  margin-left: 4px;
  transform: translateY(0.15em);
  background: var(--primary);
  animation: keyboard-cursor 1.1s steps(1, end) infinite;
}

.keyboard-promise small {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

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

.desktop-illustration {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  height: 330px;
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--canvas);
  box-shadow: 0 18px 50px rgba(65, 48, 99, 0.1);
}

.desktop-illustration img,
.mobile-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.markdown-composer {
  position: absolute;
  z-index: 2;
  top: 9.5%;
  bottom: 16.5%;
  left: 22.3%;
  display: grid;
  width: 34.8%;
  grid-template-rows: auto repeat(6, auto) 1fr auto;
  gap: 2.1cqw;
  padding: 2.6cqw 2.8cqw 2.1cqw;
  overflow: hidden;
  border-inline: 1px solid color-mix(in srgb, var(--primary) 10%, var(--line));
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--paper) 98%, white), color-mix(in srgb, var(--primary-wash) 22%, var(--paper))),
    var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(5px, 1.35cqw, 8px);
  line-height: 1.35;
}

.markdown-composer::before {
  position: absolute;
  inset: 0;
  transform: translateX(-115%);
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 70%);
  content: "";
  pointer-events: none;
  animation: markdown-light-pass 8s ease-in-out 2.8s infinite;
}

.markdown-composer-bar,
.markdown-composer-status {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: 0.84em;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
}

.markdown-composer-bar {
  margin: -0.7cqw -0.8cqw 1.3cqw;
  padding-bottom: 1.8cqw;
  border-bottom: 1px solid var(--line);
}

.markdown-composer-bar b {
  padding: 0.7cqw 1.1cqw;
  border-radius: 999px;
  background: var(--primary-wash);
  color: var(--ink);
  font: inherit;
  font-weight: 760;
}

.markdown-line {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  gap: 1.2cqw;
  align-items: baseline;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}

.desktop-surface.is-visible .markdown-line {
  animation: markdown-compose 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(460ms + var(--line-delay, 0ms));
}

.markdown-line > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.markdown-line > i {
  flex: 0 0 auto;
  color: var(--ink);
  font-style: normal;
  font-weight: 760;
}

.markdown-heading {
  color: var(--ink);
  font-size: 1.25em;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.markdown-copy {
  max-width: 96%;
  color: var(--ink-soft);
}

.markdown-check {
  color: var(--ink-soft);
}

.markdown-check > i {
  color: #399854;
}

.markdown-code code {
  padding: 1.2cqw 1.5cqw;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--line));
  border-radius: 1.4cqw;
  background: color-mix(in srgb, var(--primary-wash) 72%, var(--paper));
  color: var(--ink);
  font-size: 0.92em;
}

.markdown-quote {
  margin-top: 0.5cqw;
  padding: 1.2cqw 1.5cqw;
  border-left: 2px solid color-mix(in srgb, var(--primary) 64%, transparent);
  border-radius: 0 1.2cqw 1.2cqw 0;
  background: color-mix(in srgb, var(--primary-wash) 52%, transparent);
  color: var(--ink-soft);
}

.markdown-caret {
  position: absolute;
  z-index: 2;
  top: 74%;
  left: 3.1cqw;
  width: 1px;
  height: 1.35em;
  background: var(--primary);
  box-shadow: 0 0 7px color-mix(in srgb, var(--primary) 38%, transparent);
  animation: markdown-caret-blink 1.05s steps(1, end) 2.1s infinite;
}

.markdown-composer-status {
  align-self: end;
  margin-inline: -0.8cqw;
  padding-top: 1.8cqw;
  border-top: 1px solid var(--line);
}

.markdown-composer-status span:first-child {
  color: var(--ink);
  font-weight: 760;
}

@keyframes markdown-compose {
  from {
    transform: translateY(3px);
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }

  to {
    transform: translateY(0);
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes markdown-light-pass {
  0%, 62% {
    transform: translateX(-115%);
  }

  82%, 100% {
    transform: translateX(115%);
  }
}

@keyframes markdown-caret-blink {
  50% {
    opacity: 0;
  }
}

.mobile-illustration {
  position: absolute;
  right: -4%;
  bottom: -20px;
  left: -4%;
  height: 440px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: var(--canvas);
  box-shadow: 0 24px 56px rgba(40, 27, 70, 0.18);
}

.capability-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.capability-strip > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.capability-strip > div:last-child {
  border-right: 0;
}

.capability-strip span {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capability-strip strong {
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecosystem-section {
  position: relative;
  overflow: hidden;
  background: var(--canvas-strong);
  color: var(--ink);
}

.ecosystem-section::before,
.ecosystem-section::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  filter: blur(12px);
  pointer-events: none;
}

.ecosystem-section::before {
  top: -280px;
  left: 48%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, var(--primary-wash), transparent 68%);
}

.ecosystem-section::after {
  right: -220px;
  bottom: -300px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand-lilac) 8%, transparent), transparent 70%);
}

.ecosystem-section .section-shell {
  position: relative;
  z-index: 1;
}

.ecosystem-section .eyebrow {
  color: var(--brand-lilac);
}

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

.ecosystem-intro {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.75;
}

.plugin-controls {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 60px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-group button {
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.67rem;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.filter-group button:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.filter-group button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--brand-gradient);
  color: var(--on-brand);
}

.filter-group button small {
  margin-left: 2px;
  font-size: inherit;
  opacity: 0.62;
}

.plugin-controls > a,
.text-link {
  text-decoration: underline;
  text-decoration-color: var(--brand-lilac);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 680;
}

.plugin-controls > a:hover,
.text-link:hover {
  color: var(--ink);
  text-decoration-thickness: 3px;
}

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.auth-guide,
.telemetry-guide {
  margin-top: 28px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  scroll-margin-top: 100px;
}

.auth-guide h3,
.telemetry-guide h3 {
  color: var(--ink);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}

.auth-guide p,
.auth-methods dd,
.telemetry-guide p,
.telemetry-signals dd {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.7;
}

.auth-guide p,
.telemetry-guide p {
  margin: 16px 0;
  max-width: 92ch;
}

.auth-methods,
.telemetry-signals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 18px;
  margin: 24px 0;
}

.auth-methods dt,
.telemetry-signals dt {
  color: var(--ink-soft);
  font-weight: 650;
}

.auth-methods dd,
.telemetry-signals dd {
  margin: 4px 0 0;
}

.guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.plugin-card {
  --plugin-accent: var(--plugin-accent-light);
  display: flex;
  flex-direction: column;
  min-height: 268px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--plugin-accent) 7%, transparent), transparent 42%),
    var(--paper);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.plugin-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--plugin-accent) 43%, transparent);
  background-color: var(--paper-soft);
}

.plugin-card[hidden] {
  display: none;
}

.plugin-card-topline,
.plugin-card-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.05em;
}

.plugin-card-topline {
  text-transform: uppercase;
}

.plugin-version {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.plugin-identity {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
}

.plugin-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid color-mix(in srgb, var(--plugin-accent) 22%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--plugin-accent) 9%, var(--paper));
}

.plugin-mark svg {
  width: 24px;
  height: 24px;
}

.plugin-identity > span:last-child {
  display: grid;
  min-width: 0;
}

.plugin-identity strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 680;
  letter-spacing: -0.018em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plugin-identity small {
  margin-top: 2px;
  color: var(--plugin-accent);
  font-size: 0.69rem;
}

.plugin-card > p {
  margin: 17px 0 24px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.62;
}

.plugin-card-footer {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.plugin-card-footer code {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plugin-card-footer > span {
  flex: 0 0 auto;
}

html[data-theme="dark"] .plugin-card {
  --plugin-accent: var(--plugin-accent-dark);
}

.lifecycle-section .section-heading {
  max-width: 830px;
}

.lifecycle {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 68px 0 0;
  padding: 0;
  border-block: 1px solid var(--line);
  list-style: none;
}

.lifecycle > li {
  position: relative;
  min-width: 0;
  padding: 22px 18px 26px;
  border-right: 1px solid var(--line);
}

.lifecycle > li:last-child {
  border-right: 0;
}

.lifecycle > li > span {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.lifecycle > li > strong {
  display: block;
  margin-top: 16px;
  font-size: 0.9rem;
}

.lifecycle > li > p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.58;
}

.lifecycle > li > p code {
  color: var(--ink);
  font-size: 0.68rem;
}

.lifecycle-icon {
  position: relative;
  width: 50px;
  height: 42px;
  margin-top: 28px;
}

.lifecycle-icon > svg {
  width: 48px;
  height: 42px;
  overflow: visible;
  fill: none;
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.lifecycle-icon .lifecycle-icon-surface {
  fill: var(--primary-wash);
}

.lifecycle-icon > i {
  position: absolute;
  width: 34px;
  height: 22px;
  border: 1px solid var(--primary);
  border-radius: 5px;
  background: var(--paper);
}

.lifecycle-icon > i:nth-child(1) {
  top: 0;
  left: 0;
}

.lifecycle-icon > i:nth-child(2) {
  top: 7px;
  left: 6px;
  opacity: 0.65;
}

.lifecycle-icon > i:nth-child(3) {
  top: 14px;
  left: 12px;
  opacity: 0.3;
}

.lifecycle-catalog > i {
  width: 38px;
  height: 9px;
  border-radius: 3px;
}

.lifecycle-catalog > i:nth-child(1) {
  top: 2px;
}

.lifecycle-catalog > i:nth-child(2) {
  top: 16px;
  left: 0;
}

.lifecycle-catalog > i:nth-child(3) {
  top: 30px;
  left: 0;
}

.lifecycle-machine > i {
  width: 42px;
  height: 30px;
}

.lifecycle-machine > i:nth-child(1) {
  top: 0;
  left: 0;
}

.lifecycle-machine > i:nth-child(2) {
  top: 6px;
  left: 7px;
  width: 5px;
  height: 5px;
  border: 0;
  border-radius: 50%;
  background: var(--success);
  opacity: 1;
}

.contract-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: center;
  margin-top: 88px;
}

.manifest-panel {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #1f1a2c;
  box-shadow: var(--shadow-lg);
  color: #d8d1e8;
}

.code-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding-inline: 15px;
  border-bottom: 1px solid rgba(231, 224, 255, 0.1);
  color: #8f83a8;
  font-family: var(--mono);
  font-size: 0.62rem;
}

.code-titlebar > span:first-child {
  display: flex;
  gap: 8px;
  align-items: center;
}

.code-titlebar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #74c986;
}

.manifest-panel pre {
  margin: 0;
  padding: 28px;
  overflow-x: auto;
  font-size: clamp(0.67rem, 1.1vw, 0.8rem);
  line-height: 1.85;
}

.manifest-panel b {
  color: var(--brand-lilac);
  font-weight: 500;
}

.manifest-panel em {
  color: #c9bcff;
  font-style: normal;
}

.manifest-panel code > span {
  color: #a7c8c2;
}

.manifest-panel code > i {
  color: #8f83a8;
  font-style: normal;
}

.contract-points {
  display: grid;
}

.contract-points article {
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.contract-points article:first-child {
  padding-top: 0;
}

.contract-points article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contract-points h3 {
  margin: 9px 0 0;
  font-size: 1.18rem;
  letter-spacing: -0.025em;
}

.contract-points p {
  max-width: 590px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.87rem;
  line-height: 1.7;
}

.topology-section {
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.topology-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(620px, 1.25fr);
  gap: 90px;
  align-items: center;
}

.topology-section .section-heading h2 {
  font-size: clamp(2.5rem, 4.2vw, 4.4rem);
}

.topology-section .text-link {
  margin-top: 30px;
  color: var(--ink-soft);
}

.topology-diagram {
  position: relative;
  display: grid;
  grid-template-rows: 64px minmax(220px, 1fr) 152px;
  min-height: 470px;
  justify-items: center;
  min-width: 0;
  isolation: isolate;
  background: radial-gradient(circle at 50% 48%, var(--primary-wash), transparent 47%);
}

.topology-diagram::before {
  position: absolute;
  z-index: -2;
  inset: 12% 7%;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--primary) 25%, transparent) 0.7px, transparent 0.8px);
  background-size: 17px 17px;
  content: "";
  mask-image: radial-gradient(circle, black, transparent 72%);
  opacity: 0.5;
}

.topology-wiring {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.topology-wiring path {
  fill: none;
  stroke: color-mix(in srgb, var(--primary) 42%, var(--line));
  stroke-dasharray: 2 9;
  stroke-linecap: round;
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
  animation: topology-flow 8s linear infinite;
}

.topology-clients {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  width: 66.666%;
  align-self: start;
}

.topology-clients > span {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding-top: 4px;
}

.topology-clients > span > i {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-wash);
  color: var(--ink);
}

.topology-clients svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.topology-clients > span > span {
  display: grid;
  gap: 1px;
}

.topology-clients strong {
  font-size: 0.73rem;
  font-weight: 680;
}

.topology-clients small {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.46rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topology-hub {
  position: relative;
  z-index: 2;
  display: grid;
  align-self: center;
  justify-items: center;
  gap: 7px;
}

.topology-protocol {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.44rem;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.topology-hub-core {
  position: relative;
  display: grid;
  width: 226px;
  gap: 6px;
  padding: 16px 19px;
  overflow: hidden;
  border: 1px solid rgba(172, 154, 239, 0.26);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(139, 117, 230, 0.2), transparent 52%),
    #1b1625;
  box-shadow: 0 18px 42px rgba(52, 39, 82, 0.2);
  color: #f6f2ff;
}

.topology-hub-core::after {
  position: absolute;
  top: 0;
  right: 14px;
  left: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-purple), transparent);
  content: "";
}

.topology-hub-core > span {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--brand-purple);
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topology-hub-core > span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4db565;
  box-shadow: 0 0 0 3px rgba(77, 181, 101, 0.12);
}

.topology-hub-core > span b {
  font: inherit;
  font-weight: 720;
}

.topology-hub-core > strong {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 560;
  letter-spacing: 0.015em;
}

.topology-hub-core > small {
  color: rgba(231, 224, 246, 0.62);
  font-family: var(--mono);
  font-size: 0.46rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.topology-machines {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  align-self: end;
}

.topology-machines article {
  --node-accent: var(--primary);
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  column-gap: 10px;
  align-items: start;
  min-width: 0;
  min-height: 138px;
  padding: 13px 12px 11px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--node-accent) 31%, var(--line));
  border-radius: 15px;
  background:
    radial-gradient(circle at 13% 6%, color-mix(in srgb, var(--node-accent) 13%, transparent), transparent 42%),
    linear-gradient(145deg, color-mix(in srgb, var(--paper) 98%, white), color-mix(in srgb, var(--primary-wash) 48%, var(--paper)));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.68),
    0 12px 28px color-mix(in srgb, var(--node-accent) 8%, transparent);
  text-align: left;
}

.topology-machines article:nth-child(1) {
  --node-accent: var(--codex-accent);
}

.topology-machines article:nth-child(2) {
  --node-accent: #4285f4;
}

.topology-machines article:nth-child(3) {
  --node-accent: #7661d8;
}

.topology-machines article::before {
  position: absolute;
  top: 0;
  right: 14px;
  left: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--node-accent), transparent);
  content: "";
}

.topology-machines .machine-chassis {
  grid-row: 1 / 5;
  width: 56px;
  height: 42px;
  margin-top: 3px;
}

.topology-machines .machine-chassis-mac .machine-display,
.topology-machines .machine-chassis-workstation .machine-display {
  left: 6px;
  width: 44px;
  height: 30px;
}

.topology-machines .machine-base {
  bottom: 2px;
}

.topology-machines .machine-stand {
  bottom: 1px;
  left: 26px;
  height: 8px;
}

.topology-machines .machine-stand::after {
  left: -8px;
  width: 21px;
}

.topology-machines .machine-chassis-server {
  width: 45px;
  height: 40px;
  padding: 3px 4px;
}

.topology-machines .machine-chassis-server > span {
  height: 9px;
}

.topology-machine-name {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.025em;
  line-height: 1.2;
  text-transform: uppercase;
}

.topology-machine-name > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topology-machines strong {
  align-self: end;
  margin-top: 10px;
  font-size: 0.69rem;
}

.topology-machine-platform,
.topology-machine-agents {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topology-machine-platform {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.44rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.topology-machine-agents {
  align-self: end;
  margin-top: 3px;
  color: var(--node-accent);
  font-size: 0.57rem;
  font-weight: 650;
}

html[data-theme="dark"] .topology-machines article {
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.06),
    0 12px 30px rgba(0, 0, 0, 0.2);
}

@keyframes topology-flow {
  to {
    stroke-dashoffset: -44;
  }
}

.start-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
  overflow: hidden;
  padding: 68px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 0%, var(--primary-wash), transparent 36%),
    var(--paper);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}

.start-card::after {
  position: absolute;
  right: -150px;
  bottom: -240px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-wash), transparent 68%);
  content: "";
  pointer-events: none;
}

.start-copy {
  position: relative;
  z-index: 1;
}

.start-copy .eyebrow {
  color: var(--brand-lilac);
}

.start-copy h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4.1vw, 4rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.start-copy > p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.72;
}

.start-steps {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.start-steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
}

.start-steps li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--paper-soft);
  color: var(--brand-purple);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.start-steps strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.35;
}

.start-steps small {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.start-steps a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--brand-lilac);
  text-underline-offset: 3px;
}

.start-card .button-primary {
  background: var(--brand-gradient);
  color: var(--on-brand);
}

.start-card .button-secondary {
  border-color: var(--line-strong);
  background: var(--paper-soft);
  color: var(--ink);
}

.start-card .button-secondary:hover {
  background: var(--canvas-strong);
}

.terminal-card {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(231, 224, 255, 0.14);
  border-radius: 15px;
  background: #141019;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.26);
}

.terminal-titlebar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 43px;
  padding-inline: 13px;
  border-bottom: 1px solid rgba(231, 224, 255, 0.1);
}

.terminal-titlebar > span {
  display: flex;
  gap: 5px;
}

.terminal-titlebar > span i {
  border-color: rgba(231, 224, 255, 0.2);
  background: transparent;
}

.terminal-titlebar small {
  color: #8f83a8;
  font-family: var(--mono);
  font-size: 0.58rem;
}

.copy-command {
  justify-self: end;
  padding: 5px 8px;
  border: 1px solid rgba(231, 224, 255, 0.14);
  border-radius: 6px;
  background: transparent;
  color: #a899c4;
  font-family: var(--mono);
  font-size: 0.58rem;
  cursor: pointer;
}

.copy-command:hover {
  border-color: rgba(201, 188, 255, 0.36);
  color: #ede9fe;
}

.terminal-card pre {
  margin: 0;
  padding: 27px;
  overflow-x: auto;
  color: #cfc7df;
  font-size: clamp(0.63rem, 1vw, 0.76rem);
  line-height: 1.85;
}

.terminal-card .prompt {
  color: var(--brand-purple);
  user-select: none;
}

.terminal-card .comment {
  color: #8f83a8;
}

.terminal-card .success {
  color: #74c986;
}

.terminal-card .url {
  color: var(--brand-lilac);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(360px, 1.2fr);
  gap: 72px;
  align-items: end;
  padding-bottom: 54px;
}

.footer-grid > div:first-child > p {
  max-width: 310px;
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.footer-links > div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-links strong {
  margin-bottom: 7px;
  font-size: 0.72rem;
}

.footer-links a {
  width: max-content;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.footer-links a:hover {
  color: var(--ink);
}

.back-to-top {
  position: fixed;
  z-index: 110;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line));
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 88%, var(--primary-wash));
  color: var(--ink);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--primary) 17%, transparent);
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease, color 160ms ease;
  backdrop-filter: blur(18px) saturate(145%);
}

.js .back-to-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.9);
}

.js .back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.back-to-top.is-visible:hover {
  border-color: color-mix(in srgb, var(--primary) 64%, var(--line));
  color: var(--ink);
  transform: translateY(-3px);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.js .reveal {
  transform: translateY(18px);
  opacity: 0;
  transition:
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    opacity 480ms ease var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 84px;
  }

  .hero-copy {
    max-width: 830px;
  }

  .hero h1 {
    font-size: clamp(4rem, 9vw, 6.3rem);
  }

  html[lang="zh-CN"] .hero h1 {
    font-size: clamp(3.2rem, 7.4vw, 4.8rem);
  }

  .hero-product {
    width: 94%;
    margin-inline: auto;
  }

  .ecosystem-heading,
  .contract-grid,
  .topology-grid,
  .start-card {
    grid-template-columns: 1fr;
  }

  .ecosystem-intro {
    max-width: 700px;
  }

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

  .contract-grid {
    gap: 56px;
  }

  .manifest-panel {
    max-width: 720px;
  }

  .topology-grid {
    gap: 60px;
  }

  .topology-diagram {
    width: min(100%, 760px);
    margin-inline: auto;
  }

  .start-card {
    gap: 50px;
  }
}

@media (max-width: 820px) {
  .section-shell,
  .nav-shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .section-block {
    padding-block: 96px;
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .nav-toggle {
    display: grid;
  }

  .preferences-toggle,
  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .site-header {
    background: var(--canvas);
    backdrop-filter: none;
  }

  .github-link {
    display: none;
  }

  .preferences-control::before {
    position: absolute;
    top: 11px;
    bottom: 11px;
    left: 0;
    width: 1px;
    background: var(--line);
    content: "";
  }

  .preferences-popover {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 70px);
    right: 12px;
    left: auto;
    width: min(304px, calc(100vw - 24px));
  }

  .preference-options button {
    min-height: 44px;
  }

  .back-to-top {
    right: 12px;
    bottom: max(116px, calc(env(safe-area-inset-bottom, 0px) + 88px));
    width: 44px;
    height: 44px;
    box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 14%, transparent);
  }

  .back-to-top svg {
    width: 18px;
    height: 18px;
  }

  .nav-toggle[aria-expanded="true"] {
    background: var(--primary-wash);
    color: var(--ink);
  }

  .nav-toggle[aria-expanded="true"] .menu-icon-bars {
    opacity: 0;
    transform: rotate(36deg) scale(0.72);
  }

  .nav-toggle[aria-expanded="true"] .menu-icon-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }

  .site-navigation {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 2px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    box-shadow: var(--shadow-lg);
  }

  .js .site-navigation {
    transform: translateY(-8px) scale(0.98);
    transform-origin: top;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform 150ms ease, opacity 150ms ease, visibility 150ms ease;
  }

  .js .site-navigation.is-open {
    transform: translateY(0) scale(1);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .site-navigation a {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 8px;
  }

  .site-navigation a:hover {
    background: var(--primary-wash);
  }

  .site-navigation a::after {
    display: none;
  }

  .site-navigation-github {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
  }

  .hero {
    padding-top: 68px;
  }

  .hero-facts,
  .capability-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-facts > div:nth-child(2),
  .capability-strip > div:nth-child(2) {
    border-right: 0;
  }

  .hero-facts > div:nth-child(-n + 2),
  .capability-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .safety-band {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .surface-grid {
    grid-template-columns: 1fr;
  }

  .desktop-surface,
  .mobile-surface {
    min-height: 610px;
  }

  .lifecycle {
    grid-template-columns: repeat(2, 1fr);
    border-bottom: 0;
  }

  .lifecycle > li {
    border-bottom: 1px solid var(--line);
  }

  .lifecycle > li:nth-child(2n) {
    border-right: 0;
  }

  .lifecycle > li:last-child {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .start-card {
    padding: 44px;
  }
}

@media (max-width: 620px) {
  .section-shell,
  .nav-shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .section-block {
    padding-block: 78px;
  }

  .nav-shell {
    min-height: 62px;
  }

  .site-header .brand-icon-stage {
    width: 40px;
  }

  .nav-actions {
    padding: 2px;
    border-radius: 15px;
  }

  .hero {
    gap: 18px;
    padding-top: 54px;
    padding-bottom: 38px;
  }

  .hero h1 {
    font-size: clamp(2rem, 11vw, 3.3rem);
    line-height: 0.96;
  }

  .hero h1 em {
    font-size: 0.9em;
    letter-spacing: -0.058em;
  }

  html[lang="zh-CN"] .hero h1 {
    font-size: clamp(2rem, 10.8vw, 2.8rem);
    line-height: 1.08;
  }

  html[lang="zh-CN"] .hero h1 > span,
  html[lang="zh-CN"] .hero h1 > em {
    white-space: nowrap;
  }

  .hero-lede {
    margin-top: 24px;
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .hero-ownership {
    align-items: flex-start;
    margin-top: 14px;
    font-size: 0.59rem;
  }

  .hero-ownership > span {
    margin-top: 1px;
  }

  .hero-actions .button {
    flex: 1 1 auto;
  }

  .hero-signals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }

  .hero-signals li {
    min-width: 0;
  }

  .hero-product {
    width: 100%;
    margin-left: 0;
    padding-top: 34px;
  }

  .product-window {
    border-radius: 13px;
  }

  .hero-control-plane {
    width: calc(100% - 16px);
    margin-top: -14px;
    padding: 7px;
    border-radius: 14px;
  }

  .hero-client-wiring {
    top: -84px;
    height: 100px;
  }

  .control-plane-summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 6px 7px 8px;
  }

  .control-plane-summary strong {
    justify-self: start;
    font-size: 0.62rem;
  }

  .control-plane-summary strong > span:first-child,
  .control-plane-summary strong > i:first-of-type {
    display: none;
  }

  .control-hub-node {
    gap: 11px;
    min-height: 32px;
    padding: 6px 10px;
  }

  .control-hub-node > span {
    font-size: 0.5rem;
  }

  .control-hub-node code {
    font-size: 0.44rem;
  }

  .control-machines {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .control-machine {
    min-height: 132px;
    padding: 7px 6px;
  }

  .control-machine-heading {
    grid-template-columns: 1fr;
    gap: 4px;
    justify-items: center;
  }

  .control-machine .machine-chassis {
    width: 34px;
    height: 27px;
  }

  .control-machine .machine-chassis-mac .machine-display,
  .control-machine .machine-chassis-workstation .machine-display {
    left: 4px;
    width: 27px;
    height: 18px;
  }

  .control-machine .machine-base {
    bottom: 3px;
  }

  .control-machine .machine-stand {
    bottom: 2px;
    left: 15px;
    height: 5px;
  }

  .control-machine .machine-stand::after {
    left: -4px;
    width: 13px;
  }

  .control-machine .machine-chassis-server {
    width: 29px;
    height: 27px;
    padding: 2px;
  }

  .control-machine .machine-chassis-server > span {
    height: 6px;
  }

  .control-machine-identity > small {
    font-size: 0.34rem;
  }

  .control-machine-identity {
    justify-items: center;
  }

  .control-machine-name {
    gap: 4px;
    font-size: 0.43rem;
  }

  .control-machine-name > span {
    overflow: visible;
  }

  .control-machine .control-agents {
    justify-content: center;
    margin-top: 7px;
  }

  .control-agent {
    gap: 4px;
    padding: 2px 4px 2px 3px;
    font-size: 0.47rem;
  }

  .control-agent b {
    width: 15px;
    height: 15px;
    font-size: 0.43rem;
  }

  .control-machine-multi .control-agents {
    gap: 3px;
  }

  .hero-facts > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 15px 10px;
  }

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

  .hero-facts span {
    font-size: 0.64rem;
  }

  .safety-band {
    gap: 24px;
    padding: 28px 20px;
    border-radius: 20px;
  }

  .safety-copy h2 {
    font-size: 2.05rem;
  }

  .safety-points {
    grid-template-columns: 1fr;
  }

  .safety-points article {
    padding: 14px 0;
    border-top: 1px solid rgba(231, 224, 255, 0.13);
    border-left: 0;
  }

  .safety-points article:last-child {
    padding-bottom: 0;
  }

  .section-heading h2 {
    font-size: clamp(2.4rem, 12.5vw, 3.5rem);
  }

  .section-heading > p:last-child {
    margin-top: 20px;
    font-size: 0.94rem;
  }

  .surface-grid {
    margin-top: 42px;
  }

  .desktop-surface,
  .mobile-surface {
    min-height: 570px;
    border-radius: 19px;
  }

  .desktop-surface,
  .mobile-surface {
    padding: 24px;
  }

  .desktop-illustration {
    right: 14px;
    bottom: 14px;
    left: 14px;
    height: 230px;
  }

  .desktop-illustration img,
  .mobile-illustration img {
    object-fit: contain;
  }

  .mobile-illustration {
    right: 0;
    bottom: -12px;
    left: 0;
    height: 310px;
  }

  .capability-strip > div {
    padding: 15px 13px;
  }

  .capability-strip strong {
    white-space: normal;
  }

  .ecosystem-heading {
    gap: 26px;
  }

  .plugin-controls {
    display: grid;
    margin-top: 42px;
  }

  .filter-group {
    flex-wrap: nowrap;
    margin-inline: -12px;
    padding: 2px 12px 6px;
    overflow-x: auto;
    scroll-padding-inline: 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .filter-group::-webkit-scrollbar {
    display: none;
  }

  .filter-group button {
    flex: none;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .plugin-grid {
    grid-template-columns: 1fr;
  }

  .plugin-card {
    min-height: 0;
    padding: 16px;
  }

  /* Thirteen full cards make a long phone scroll: keep identity and summary,
     and let the filter row carry the kind. */
  .plugin-card > p {
    margin: 12px 0 14px;
  }

  .lifecycle {
    margin-top: 46px;
  }

  .lifecycle > li {
    padding: 18px 13px 22px;
  }

  .lifecycle > li > p {
    font-size: 0.7rem;
  }

  .contract-grid {
    margin-top: 62px;
  }

  .manifest-panel pre {
    padding: 20px;
    font-size: 0.62rem;
  }

  .topology-grid {
    gap: 42px;
  }

  .topology-diagram {
    grid-template-rows: 58px minmax(210px, 1fr) 142px;
    min-height: 430px;
  }

  .topology-clients {
    width: 72%;
  }

  .topology-clients > span > i {
    width: 34px;
    height: 34px;
  }

  .topology-clients strong {
    font-size: 0.68rem;
  }

  .topology-hub-core {
    width: 208px;
    padding: 14px 16px;
  }

  .topology-hub-core > strong {
    font-size: 0.68rem;
  }

  .topology-protocol {
    font-size: 0.4rem;
  }

  .topology-machines {
    gap: 6px;
  }

  .topology-machines article {
    grid-template-columns: 1fr;
    grid-template-rows: 38px auto auto 1fr auto;
    justify-items: center;
    min-height: 132px;
    padding: 8px 5px;
    border-radius: 11px;
    text-align: center;
  }

  .topology-machines .machine-chassis {
    grid-row: auto;
    width: 42px;
    height: 33px;
    margin-top: 0;
  }

  .topology-machines .machine-chassis-mac .machine-display,
  .topology-machines .machine-chassis-workstation .machine-display {
    left: 5px;
    width: 32px;
    height: 22px;
  }

  .topology-machines .machine-base {
    bottom: 3px;
  }

  .topology-machines .machine-stand {
    bottom: 2px;
    left: 19px;
    height: 6px;
  }

  .topology-machines .machine-stand::after {
    left: -5px;
    width: 16px;
  }

  .topology-machines .machine-chassis-server {
    width: 35px;
    height: 32px;
  }

  .topology-machines .machine-chassis-server > span {
    height: 7px;
  }

  .topology-machine-name {
    gap: 4px;
    font-size: 0.43rem;
  }

  .topology-machine-name > i {
    width: 5px;
    height: 5px;
  }

  .topology-machines strong {
    margin-top: 5px;
    font-size: 0.58rem;
  }

  .topology-machine-platform {
    font-size: 0.34rem;
  }

  .topology-machine-agents {
    max-width: 100%;
    font-size: 0.45rem;
  }

  .start-card {
    gap: 38px;
    padding: 28px 20px;
    border-radius: 20px;
  }

  .start-copy h2 {
    font-size: clamp(2.45rem, 12vw, 3.3rem);
  }

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

  .terminal-titlebar {
    grid-template-columns: auto 1fr auto;
  }

  .terminal-titlebar small {
    padding-inline: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .terminal-card pre {
    padding: 20px 16px;
    font-size: 0.58rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    gap: 20px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
  }
}

@media (display-mode: standalone) and (max-width: 820px) {
  .back-to-top {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  }
}

@media (max-width: 360px) {
  .control-plane-summary {
    gap: 6px;
  }

  .control-plane-summary strong {
    font-size: 0.56rem;
  }

  .control-fleet-count {
    font-size: 0.46rem;
  }

  .control-machines {
    gap: 5px;
  }

  .control-machine {
    padding: 6px;
  }
}

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

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

  .js .reveal {
    transform: none;
    opacity: 1;
  }

  .site-header .brand-icon,
  .site-header .brand-icon-stage::before,
  .site-header .brand-icon-stage::after {
    animation: none !important;
  }
}

/* Brand colorways remain secondary to the product story. */
.appearance-band {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 32px;
  padding: 28px;
  margin-block: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}
.appearance-band h2 { margin: 0 0 8px; font-size: 1.3rem; letter-spacing: -0.025em; }
.appearance-band p { margin: 0; max-width: 760px; color: var(--ink-soft); font-size: .94rem; }
.appearance-band img { width: 100%; height: auto; }
@media (max-width: 820px) {
  .appearance-band { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .appearance-band { padding: 20px; gap: 20px; }
  .appearance-band h2 { font-size: 1.1rem; }
}
