:root {
  --content-width: 1180px;
  --section-x: max(20px, calc((100vw - var(--content-width)) / 2));
  --color-onyx: #08090a;
  --color-charcoal: #0f1011;
  --color-obsidian: #161718;
  --color-graphite: #23252a;
  --color-iron: #323334;
  --color-steel: #383b3f;
  --color-slate: #62666d;
  --color-fog: #8a8f98;
  --color-mist: #d0d6e0;
  --color-snow: #f7f8f8;
  --color-acid-lime: #e4f222;
  --color-indigo: #5e6ad2;
  --color-emerald: #27a644;
  --bg: var(--color-onyx);
  --surface-section: var(--color-charcoal);
  --surface-card: var(--color-obsidian);
  --surface-node: var(--color-graphite);
  --surface-input: var(--color-steel);
  --line: var(--color-graphite);
  --line-strong: var(--color-steel);
  --text: var(--color-snow);
  --text-soft: var(--color-mist);
  --muted: var(--color-fog);
  --quiet: var(--color-slate);
  --accent: var(--color-indigo);
  --success: var(--color-emerald);
  --font-sans: "Noto Sans SC", "PingFang SC", "Inter", "SF Pro Display", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 0 0 1px var(--color-graphite);
  --shadow-panel: 0 4px 32px rgba(8, 9, 10, 0.6), inset 0 0 0 1px var(--color-graphite);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    linear-gradient(180deg, rgba(138, 143, 152, 0.18), transparent 420px),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "cv01" on, "ss03" on;
  line-height: 1.6;
  letter-spacing: 0;
}

a,
button {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 0 var(--section-x);
  border-bottom: 1px solid var(--line);
  background: rgba(15, 16, 17, 0.94);
}

.brand-mark,
.site-nav nav,
.nav-action {
  display: inline-flex;
  align-items: center;
}

.brand-mark {
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.brand-mark strong,
.site-nav a {
  font-size: 14px;
  font-weight: 510;
}

.site-nav nav {
  gap: 8px;
}

.site-nav nav a {
  color: var(--muted);
  padding: 8px 12px;
  text-decoration: none;
}

.site-nav nav a:hover,
.site-nav nav a:focus-visible {
  color: var(--text);
}

.nav-action {
  justify-self: end;
  min-height: 34px;
  border: 1px solid var(--text);
  border-radius: 999px;
  color: var(--text);
  padding: 0 14px;
  text-decoration: none;
}

.page-shell {
  width: 100%;
  margin: 0;
}

.intro-title,
.prototype-section,
.layer-architecture,
.section-pair {
  border-bottom: 0;
  padding: 88px var(--section-x);
}

.prototype-section,
.layer-architecture,
.problem-section,
.collaboration-flow {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--surface-section);
  box-shadow: none;
}

.prototype-section {
  margin-bottom: 0;
  border: 0;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.22), transparent 58%),
    linear-gradient(0deg, #7b8189 0%, #555b63 38%, #24272b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.problem-section {
  margin-top: 0;
}

.layer-architecture {
  border: 0;
  background: #000;
  box-shadow: none;
}

.intro-title {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: end;
  overflow: hidden;
  min-height: 620px;
  padding-top: 120px;
  background:
    radial-gradient(circle at 76% 46%, rgba(255, 255, 255, 0.13), transparent 18%),
    radial-gradient(circle at 78% 46%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #050505 0%, #030303 68%, #08090a 100%);
}

.intro-title::before,
.intro-title::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.intro-title::before {
  right: calc(var(--section-x) + 10px);
  top: 54px;
  width: min(560px, 48vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.65px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.22), transparent 64%);
  background-size: 7px 7px, 100% 100%;
  filter: drop-shadow(0 0 34px rgba(255, 255, 255, 0.18));
  mask-image: radial-gradient(circle at 50% 50%, #000 0, rgba(0, 0, 0, 0.96) 18%, rgba(0, 0, 0, 0.68) 42%, rgba(0, 0, 0, 0.24) 62%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0, rgba(0, 0, 0, 0.96) 18%, rgba(0, 0, 0, 0.68) 42%, rgba(0, 0, 0, 0.24) 62%, transparent 78%);
  opacity: 0.9;
}

.intro-title::after {
  right: calc(var(--section-x) + 122px);
  top: 170px;
  width: min(300px, 26vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 0.9px, transparent 1.8px);
  background-size: 5px 5px;
  mask-image: radial-gradient(ellipse at 54% 48%, #000 0 22%, rgba(0, 0, 0, 0.52) 48%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse at 54% 48%, #000 0 22%, rgba(0, 0, 0, 0.52) 48%, transparent 74%);
  opacity: 0.5;
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

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

.version-line,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
}

.version-line i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-card);
  padding: 7px 11px;
}

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

h1 {
  margin-bottom: 24px;
  font-size: 72px;
  font-weight: 100;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 24px;
  max-width: 780px;
  font-size: 48px;
  font-weight: 510;
  line-height: 1.1;
  letter-spacing: 0;
}

.split-title span,
.split-title strong {
  display: block;
}

.split-title span {
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 100;
}

.split-title strong {
  color: var(--text);
  font-size: 48px;
  line-height: 1.08;
  font-weight: 510;
}

.prototype-section h2 {
  font-size: 33px;
  line-height: 1.18;
}

h3 {
  margin: 0;
  color: var(--text-soft);
  font-size: 24px;
  font-weight: 510;
  letter-spacing: 0;
}

.intro-title p,
.section-head p,
.section-pair article p,
.implementation-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.intro-title p {
  max-width: 640px;
  font-size: 18px;
}

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

.primary-link,
.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 510;
  text-decoration: none;
}

.primary-link {
  border: 1px solid var(--color-acid-lime);
  background: var(--color-acid-lime);
  color: var(--color-onyx);
  padding: 0 18px;
}

.primary-link:hover,
.primary-link:focus-visible {
  background: var(--text);
  border-color: var(--text);
}

.text-link {
  border: 1px solid var(--line);
  background: transparent;
  padding: 0 16px;
}

.text-link:hover,
.text-link:focus-visible {
  border-color: var(--line-strong);
  color: var(--text);
}

.hero-panel,
.prototype-frame,
.demo-notes article,
.layer-content article,
.section-pair article,
.implementation-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
}

.prototype-section .prototype-frame,
.prototype-section .demo-notes article,
.layer-architecture .layer-content article,
.problem-section article,
.collaboration-flow article {
  background: var(--surface-card);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.hero-panel {
  background: rgba(17, 19, 21, 0.72);
  backdrop-filter: blur(16px);
  padding: 18px;
}

.panel-row {
  border-bottom: 1px solid var(--line);
  padding: 16px 4px;
}

.panel-row span,
.section-pair article span,
.layer-row h3 span {
  display: block;
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 12px;
}

.panel-row strong {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 510;
}

.spec-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 18px;
}

.spec-meta span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-node);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 12px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.prototype-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
}

.prototype-frame {
  overflow: hidden;
}

.terminal-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-node);
  padding: 0 12px;
}

.traffic {
  display: flex;
  gap: 7px;
}

.traffic span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.traffic span:nth-child(2) {
  background: var(--accent);
}

.terminal-bar code {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.terminal-bar button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-card);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
}

.prototype-frame iframe {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
  background: var(--surface-card);
}

.demo-notes {
  display: grid;
  gap: 12px;
}

.demo-notes article,
.section-pair article,
.implementation-card {
  padding: 20px;
}

.demo-notes strong,
.layer-content strong,
.section-pair article strong,
.section-pair article b,
.implementation-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 510;
}

.layer-architecture {
  display: grid;
  gap: 18px;
}

.architecture-heading {
  margin-bottom: 8px;
}

.architecture-heading h2 {
  margin-bottom: 8px;
}

.architecture-heading h2,
.collaboration-flow > h2,
#productFrame > h2,
.product-highlights > h2 {
  font-weight: 100;
}

.layer-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: stretch;
}

.layer-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.layer-content article {
  padding: 18px;
}

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

.node-grid span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-node);
  color: var(--text-soft);
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  padding: 8px;
}

.agent-layer .node-grid span {
  border-color: rgba(94, 106, 210, 0.7);
}

.knowledge-layer .node-grid span {
  border-color: rgba(39, 166, 68, 0.7);
}

.problem-grid,
.why-grid,
.workflow,
.frame-board,
.flowchart,
.frame-diagram,
.module-grid,
.boundary-grid,
.roadmap {
  display: grid;
  gap: 14px;
}

.problem-grid,
.why-grid,
.boundary-grid,
.roadmap,
.module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow,
.frame-board {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.section-pair article {
  min-height: 170px;
}

.why-grid article {
  min-height: 0;
}

.why-grid article b {
  margin-top: 18px;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 15px;
}

.why-grid article strong + b {
  margin-top: 0;
}

.section-pair article span {
  margin-bottom: 18px;
}

.problem-map {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}

.map-row {
  display: grid;
  grid-template-columns: 110px repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
}

.map-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.problem-map article {
  min-height: 0;
}

.problem-circles article {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: #050505;
  border: 1px solid var(--line-strong);
  text-align: center;
}

.problem-circles article:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -25px;
  color: var(--muted);
  font-size: 18px;
}

.problem-circles article p {
  max-width: 110px;
  margin: 6px auto 0;
  font-size: 12px;
  line-height: 1.5;
}

.pain-row article,
.action-row article {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-card);
  display: grid;
  align-content: center;
  text-align: center;
}

.action-row article {
  border-radius: 12px;
  text-align: left;
}

.flowchart {
  grid-template-columns: 0.85fr 1.4fr 0.85fr;
  gap: 18px;
  margin-top: 32px;
}

.flow-lane {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-card);
  padding: 18px;
}

.flow-lane span {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.flow-lane article {
  position: relative;
  min-height: 64px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-node);
  display: grid;
  place-items: center;
  text-align: center;
}

.flow-lane article + article {
  margin-top: 28px;
}

.flow-lane article:not(:last-child)::after {
  content: "↓";
  position: absolute;
  bottom: -27px;
  color: var(--muted);
}

.agent-lane {
  border-width: 5px;
  border-color: rgba(94, 106, 210, 0.7);
}

.memory-lane {
  border-width: 5px;
  border-color: rgba(39, 166, 68, 0.7);
}

.agent-flow-path {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #090a0b;
  padding: 18px;
}

.flow-label {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.agent-flow-scroll {
  overflow: hidden;
}

.agent-flow-svg {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
}

.agent-flow-svg text {
  fill: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 510;
}

.agent-flow-svg .flow-lane-title,
.agent-flow-svg .flow-labels text {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.agent-flow-svg .flow-edges path {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
  marker-end: url(#flowArrow);
}

.agent-flow-svg marker path {
  fill: var(--line-strong);
}

.agent-flow-svg .flow-lane-bg {
  fill: rgba(255, 255, 255, 0.018);
  stroke: var(--line);
  stroke-width: 1;
}

.agent-flow-svg .flow-node rect,
.agent-flow-svg .flow-decision polygon {
  fill: var(--surface-node);
  stroke: var(--line-strong);
  stroke-width: 1;
}

.agent-flow-svg .flow-decision polygon {
  fill: #15171b;
}

.agent-flow-svg .flow-muted rect {
  fill: var(--surface-card);
  stroke-dasharray: 5 5;
}

.agent-flow-svg .flow-memory rect {
  stroke: rgba(39, 166, 68, 0.8);
}

.frame-diagram {
  grid-template-columns: minmax(430px, 0.95fr) minmax(0, 1fr);
  gap: 46px;
  align-items: center;
  margin-top: 28px;
}

.frame-board-visual {
  width: 100%;
  margin: 0;
}

.frame-drawio {
  display: block;
  width: 100%;
  height: auto;
  color: var(--text-soft);
}

.drawio-canvas {
  fill: #0c1728;
  stroke: rgba(94, 106, 210, 0.72);
  stroke-width: 1.5;
}

.drawio-node rect,
.drawio-agent rect {
  fill: #152237;
  stroke: rgba(94, 106, 210, 0.72);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.node-memory rect {
  stroke: rgba(39, 166, 68, 0.85);
}

.drawio-agent rect {
  fill: rgba(94, 106, 210, 0.16);
  stroke-dasharray: 7 7;
}

.frame-drawio text {
  fill: currentColor;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 510;
}

.frame-drawio tspan:first-child {
  fill: var(--text);
  font-size: 20px;
  font-weight: 700;
}

.drawio-agent tspan:first-child {
  fill: var(--color-mist);
  font-size: 17px;
}

.drawio-agent tspan:last-child,
.drawio-edge text {
  fill: var(--muted);
  font-size: 12px;
}

.drawio-edge path {
  fill: none;
  stroke: rgba(208, 214, 224, 0.72);
  stroke-width: 1.6;
  marker-end: url("#frameArrow");
  vector-effect: non-scaling-stroke;
}

.drawio-edge-dashed path {
  stroke: rgba(39, 166, 68, 0.86);
  stroke-dasharray: 6 7;
}

#frameArrow path {
  fill: rgba(208, 214, 224, 0.9);
}

.frame-details {
  display: grid;
  gap: 0;
}

.frame-details article {
  min-height: 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 22px 0;
}

.product-highlights {
  background: #08090a;
}

.highlight-showcase {
  display: grid;
  gap: 56px;
  margin-top: 34px;
  border-top: 1px solid var(--line-strong);
}

.product-highlights article {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.highlight-hero,
.highlight-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.28fr);
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid rgba(208, 214, 224, 0.14);
}

.product-highlights .highlight-hero,
.product-highlights .highlight-row {
  min-height: 500px;
}

.highlight-hero {
  border-top: 0;
}

.highlight-copy {
  display: grid;
  gap: 14px;
}

.highlight-copy span {
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 13px;
}

.highlight-copy strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1.35;
}

.highlight-copy p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.annotation-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #050505;
}

.annotation-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.highlight-system {
  display: grid;
  gap: 56px;
}

.taxonomy-map,
.score-system,
.strategy-matrix,
.memory-flywheel,
.knowledge-graph {
  position: relative;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(94, 106, 210, 0.08), transparent 54%),
    #111315;
  padding: 22px;
}

.taxonomy-map {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 16px;
}

.taxonomy-column,
.taxonomy-flow {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.taxonomy-column b,
.taxonomy-flow b,
.strategy-output b {
  color: var(--text);
  font-size: 19px;
  line-height: 1.25;
}

.taxonomy-column span,
.taxonomy-flow strong,
.strategy-output p {
  border: 1px solid rgba(208, 214, 224, 0.34);
  border-radius: 8px;
  background: #262b32;
  color: var(--text);
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.45;
}

.risk-column span,
.taxonomy-flow strong {
  border-color: rgba(94, 106, 210, 0.72);
}

.taxonomy-flow p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.score-system {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 22px;
  align-content: stretch;
}

.score-case {
  display: grid;
  align-content: center;
  gap: 14px;
  border-right: 1px solid var(--line);
  padding-right: 22px;
}

.score-case b,
.score-rules b {
  color: var(--text);
  font-size: 18px;
  line-height: 1.3;
}

.score-case p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.8;
}

.score-case strong {
  width: fit-content;
  border: 1px solid rgba(228, 242, 34, 0.45);
  border-radius: 999px;
  color: var(--color-acid-lime);
  padding: 8px 12px;
  font-size: 15px;
}

.score-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.score-rules div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.score-rules span {
  border-bottom: 1px solid rgba(208, 214, 224, 0.12);
  color: var(--text-soft);
  padding-bottom: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.strategy-matrix {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
}

.strategy-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.strategy-inputs div {
  display: grid;
  gap: 10px;
  min-height: 88px;
  border-bottom: 1px solid rgba(208, 214, 224, 0.24);
  padding-bottom: 14px;
}

.strategy-inputs b {
  color: var(--text);
  font-size: 17px;
}

.strategy-inputs span {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.strategy-output {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 6px 0 0;
}

.strategy-output b {
  grid-column: 1 / -1;
}

.strategy-output p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(39, 166, 68, 0.36);
  border-radius: 0;
  background: transparent;
  padding: 12px 0;
  color: var(--text);
  font-size: 15px;
}

.strategy-output strong {
  color: var(--color-acid-lime);
  font-family: var(--font-mono);
}

.memory-flywheel {
  overflow: hidden;
}

.memory-flow-svg,
.kg-svg {
  display: block;
  width: 100%;
  height: auto;
}

.memory-flow-svg .flow-main,
.memory-flow-svg .flow-alt {
  fill: none;
  stroke: rgba(208, 214, 224, 0.42);
  stroke-width: 2;
  marker-end: url(#memoryArrow);
}

.memory-flow-svg .flow-alt {
  stroke: rgba(228, 242, 34, 0.48);
  stroke-dasharray: 6 6;
}

.memory-flow-svg marker path {
  fill: rgba(208, 214, 224, 0.52);
}

.memory-flow-svg rect,
.memory-flow-svg polygon {
  fill: #24282f;
  stroke: rgba(208, 214, 224, 0.34);
  stroke-width: 1.4;
}

.memory-flow-svg .decision polygon {
  fill: #16191e;
  stroke: rgba(228, 242, 34, 0.45);
}

.memory-flow-svg .good rect {
  stroke: rgba(39, 166, 68, 0.86);
}

.memory-flow-svg .bad rect {
  stroke: rgba(228, 242, 34, 0.54);
  stroke-dasharray: 5 5;
}

.memory-flow-svg text {
  fill: var(--text);
  font-size: 14px;
  font-weight: 510;
  text-anchor: middle;
}

.memory-flow-svg .memory-caption {
  fill: var(--text-soft);
  font-size: 13px;
  font-weight: 400;
}

.knowledge-graph {
  min-height: 280px;
  overflow: hidden;
}

.kg-svg path {
  fill: none;
  stroke: rgba(208, 214, 224, 0.32);
  stroke-width: 1.6;
}

.kg-svg rect {
  fill: #24282f;
  stroke: rgba(208, 214, 224, 0.36);
  stroke-width: 1.3;
  rx: 16;
}

.kg-svg .kg-center rect {
  stroke: rgba(94, 106, 210, 0.76);
}

.kg-svg .kg-risk rect {
  stroke: rgba(228, 242, 34, 0.68);
}

.kg-svg text {
  fill: var(--text);
  font-size: 15px;
  font-weight: 510;
  text-anchor: middle;
}

.knowledge-graph p {
  max-width: 660px;
  margin: 8px auto 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.implementation-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

pre {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--color-onyx);
  color: var(--text-soft);
  padding: 18px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

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

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

@media (max-width: 980px) {
  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 36px;
  }

  .intro-title,
  .prototype-grid,
  .layer-row,
  .layer-content,
  .highlight-hero,
  .highlight-row,
  .flowchart,
  .frame-diagram {
    grid-template-columns: 1fr;
  }

  .highlight-hero,
  .highlight-row {
    gap: 28px;
    padding: 40px 0;
  }

  .highlight-showcase,
  .highlight-system {
    gap: 36px;
  }

  .product-highlights .highlight-hero,
  .product-highlights .highlight-row {
    min-height: auto;
  }

  .taxonomy-map,
  .score-system,
  .score-rules {
    grid-template-columns: 1fr;
  }

  .score-case {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-top: 18px;
    padding-bottom: 22px;
  }

  .intro-title {
    min-height: auto;
  }

  .problem-grid,
  .why-grid,
  .map-row,
  .workflow,
  .frame-board,
  .module-grid,
  .boundary-grid,
  .roadmap {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-nav {
    grid-template-columns: 1fr auto;
    width: 100%;
  }

  .site-nav nav {
    display: none;
  }

  .page-shell {
    width: 100%;
  }

  .intro-title,
  .prototype-section,
  .layer-architecture,
  .section-pair {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .prototype-section,
  .layer-architecture,
  .problem-section,
  .collaboration-flow {
    margin: 0;
  }

  .prototype-section {
    margin-bottom: 0;
  }

  .problem-section {
    margin-top: 0;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  .section-head {
    display: grid;
  }

  .problem-grid,
  .why-grid,
  .map-row,
  .workflow,
  .frame-board,
  .flowchart,
  .frame-diagram,
  .strategy-inputs,
  .strategy-output,
  .module-grid,
  .boundary-grid,
  .roadmap,
  .spec-meta,
  .node-grid {
    grid-template-columns: 1fr;
  }

  .split-title span {
    font-size: 18px;
  }

  .split-title strong {
    font-size: 30px;
  }

  .problem-circles article {
    aspect-ratio: auto;
    border-radius: 14px;
  }

  .problem-circles article:not(:last-child)::after {
    content: "↓";
    right: auto;
    bottom: -25px;
  }

  .prototype-frame iframe {
    height: 620px;
  }

  .terminal-bar {
    grid-template-columns: 1fr;
    padding: 12px;
  }
}
