:root {
  --bg: #f5f6f2;
  --surface: #ffffff;
  --surface-soft: #f9faf7;
  --ink: #18201c;
  --muted: #647067;
  --line: #d9dfd6;
  --teal: #267064;
  --green: #3e7d42;
  --blue: #315f8f;
  --amber: #a96f2d;
  --red: #b94a3f;
  --charcoal: #16201d;
  --shadow: 0 18px 42px rgba(24, 32, 28, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(217, 223, 214, 0.86);
  background: rgba(245, 246, 242, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #f7fbf7;
  background: var(--charcoal);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.site-nav a,
.header-action,
.primary-action,
.secondary-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 13px;
  white-space: nowrap;
}

.site-nav a {
  color: #3f4a44;
  font-size: 14px;
}

.site-nav a:hover {
  background: #ebeee8;
}

.header-action,
.secondary-action {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}

.primary-action {
  border: 1px solid var(--charcoal);
  color: #ffffff;
  background: var(--charcoal);
}

.secondary-action {
  cursor: pointer;
}

.header-action:hover,
.secondary-action:hover {
  border-color: #aeb8ad;
}

main {
  overflow: hidden;
}

.section-block,
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: clamp(18px, 4vw, 52px);
  padding-right: clamp(18px, 4vw, 52px);
}

.section-block {
  scroll-margin-top: 78px;
}

.hero-section {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  color: #f5fbf7;
  background: #111916;
}

.ai-field,
.hero-scanlines {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.ai-field {
  width: 100%;
  height: 100%;
}

.hero-scanlines {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(143, 209, 189, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(143, 209, 189, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 25, 22, 0.06), rgba(17, 25, 22, 0.82));
  background-size: 54px 54px, 54px 54px, 100% 100%;
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}

.hero-inner {
  max-width: 1180px;
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 42px clamp(18px, 4vw, 52px) 34px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.hero-copy {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  max-width: 100%;
  font-size: clamp(48px, 4.8vw, 68px);
  line-height: 1.02;
  white-space: nowrap;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-lede {
  color: #f4faf5;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.24;
}

.hero-platform-line {
  margin-bottom: 16px;
  color: var(--teal);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.35;
}

.hero-summary {
  max-width: 640px;
  margin-bottom: 24px;
  color: #c5d3cb;
  font-size: 16px;
}

.hero-actions,
.principles,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.principles {
  margin-top: 22px;
}

.principles span,
.tag-row span,
.status-badge,
.console-flow span,
.report-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 9px;
  color: #39453e;
  background: #e9eee7;
  font-size: 12px;
}

.hero-section .principles span {
  border: 1px solid rgba(143, 209, 189, 0.22);
  color: #dff7ec;
  background: rgba(255, 255, 255, 0.08);
}

.hero-section .primary-action {
  border-color: #9ce8cf;
  color: #07120e;
  background: #9ce8cf;
}

.hero-section .secondary-action {
  border-color: rgba(255, 255, 255, 0.24);
  color: #f5fbf7;
  background: rgba(255, 255, 255, 0.08);
}

.ai-theater {
  position: relative;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(143, 209, 189, 0.22);
  border-radius: 8px;
  padding: clamp(16px, 2.4vw, 24px);
  background: rgba(10, 18, 15, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.ai-theater::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(143, 209, 189, 0.14) 48%, transparent 100%);
  transform: translateX(-120%);
  animation: panel-scan 5.8s ease-in-out infinite;
}

.ai-theater-header,
.thinking-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.ai-theater-header span,
.thinking-head span,
.thinking-head small {
  color: #8fd1bd;
  font-size: 12px;
}

.ai-theater-header strong {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  font-size: 17px;
}

.ai-theater-header em {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  color: #dff7ec;
  background: rgba(143, 209, 189, 0.12);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.ai-theater-header em::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ce8cf;
  box-shadow: 0 0 0 0 rgba(156, 232, 207, 0.7);
  animation: pulse-dot 1.5s ease-out infinite;
}

.agent-stage {
  position: relative;
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    rgba(255, 255, 255, 0.04);
  background-size: 34px 34px;
}

.agent-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(156, 232, 207, 0.48);
  border-radius: 50%;
  color: #effff8;
  background: rgba(11, 30, 24, 0.9);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 44px rgba(143, 209, 189, 0.2);
}

.agent-core::before,
.agent-core::after {
  content: "";
  position: absolute;
  inset: -20px;
  border: 1px solid rgba(143, 209, 189, 0.22);
  border-radius: 50%;
  animation: rotate-ring 9s linear infinite;
}

.agent-core::after {
  inset: -40px;
  border-color: rgba(83, 121, 181, 0.2);
  animation-duration: 13s;
  animation-direction: reverse;
}

.agent-core span,
.agent-core strong {
  position: relative;
  z-index: 1;
}

.agent-core span {
  align-self: end;
  color: #b9cec4;
  font-size: 12px;
}

.agent-core strong {
  align-self: start;
  font-size: 28px;
}

.agent-map {
  position: absolute;
  inset: 0;
}

.agent-node {
  position: absolute;
  min-width: 118px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 9px 10px;
  color: #f6fff9;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 rgba(143, 209, 189, 0);
  transform: translate(-50%, -50%);
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.agent-node small {
  display: block;
  margin-bottom: 4px;
  color: #91a59a;
  font-size: 11px;
}

.agent-node strong {
  font-size: 13px;
}

.agent-node.active {
  border-color: rgba(156, 232, 207, 0.72);
  background: rgba(143, 209, 189, 0.18);
  box-shadow: 0 0 30px rgba(143, 209, 189, 0.22);
}

.agent-node::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ce8cf;
  opacity: 0;
  transform: translate(-50%, -50%);
}

.agent-node.active::after {
  animation: agent-pulse 1.6s ease-out infinite;
}

.thinking-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.thinking-lines {
  display: grid;
  gap: 8px;
  min-height: 132px;
  margin-top: 10px;
}

.thinking-line {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #d8e8df;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  animation: line-in 460ms ease forwards;
}

.thinking-line span {
  color: #8fd1bd;
  font-size: 12px;
}

.thinking-line strong {
  color: #ffffff;
  font-weight: 700;
}

.signal-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.signal-chip {
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.signal-chip small {
  display: block;
  margin-bottom: 5px;
  color: #91a59a;
}

.signal-chip strong {
  color: #f5fff9;
  font-size: 13px;
}

.signal-chip.active {
  border-color: rgba(250, 189, 101, 0.58);
  background: rgba(250, 189, 101, 0.12);
}

@keyframes panel-scan {
  0%,
  42% {
    transform: translateX(-120%);
  }
  72%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(156, 232, 207, 0.62);
  }
  100% {
    box-shadow: 0 0 0 11px rgba(156, 232, 207, 0);
  }
}

@keyframes rotate-ring {
  to {
    transform: rotate(360deg);
  }
}

@keyframes agent-pulse {
  0% {
    opacity: 0.65;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(6);
  }
}

@keyframes line-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.case-console,
.workspace-panel,
.demo-output {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.case-console {
  padding: clamp(18px, 3vw, 28px);
}

.console-header,
.candidate-head,
.panel-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.console-kicker,
.field-label,
.module-label,
.panel-topline span:first-child {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.status-badge.high {
  color: var(--red);
  background: #fff1ee;
}

.status-badge.safe {
  color: var(--green);
  background: #eef8ee;
}

.console-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.console-metrics div {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.console-metrics small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.console-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.console-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.console-flow span {
  justify-content: center;
  border-radius: 7px;
  background: #f0f4f2;
}

.console-result {
  border-left: 4px solid var(--teal);
  padding: 14px 0 0 14px;
}

.console-result small {
  color: var(--muted);
}

.console-result strong {
  display: block;
  margin: 5px 0 6px;
}

.section-block {
  padding-top: 76px;
  padding-bottom: 22px;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 26px;
}

.section-heading.compact {
  max-width: 720px;
}

.knowledge-loop-section,
.workspace-section,
#capabilities,
.demo-section {
  position: relative;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-top: 84px;
  padding-bottom: 78px;
  border-top: 1px solid rgba(217, 223, 214, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.knowledge-loop-section {
  background: #eef2ee;
}

.workspace-section {
  background: #fbfcf8;
}

#capabilities {
  background: #eef3f5;
}

.demo-section {
  background: #faf8f1;
}

.knowledge-loop-section > .section-heading,
.knowledge-loop-section > .knowledge-loop-layout,
.workspace-section > .section-heading,
.workspace-section > .workspace-layout,
#capabilities > .section-heading,
#capabilities > .scope-grid,
.demo-section > .section-heading,
.demo-section > .demo-layout {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.knowledge-loop-section > .section-heading,
.workspace-section > .section-heading,
#capabilities > .section-heading,
.demo-section > .section-heading {
  margin-bottom: 30px;
}

.module-grid,
.knowledge-loop-layout,
.scope-grid,
.demo-layout {
  display: grid;
  gap: 16px;
}

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

.module-card,
.scope-column {
  min-height: 224px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
}

.module-card h3 {
  font-size: 20px;
}

.module-card.module-base {
  grid-column: 1 / -1;
  min-height: 160px;
  display: grid;
  grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1fr) auto;
  grid-template-areas:
    "label copy tags"
    "title copy tags";
  align-items: center;
  column-gap: 28px;
  row-gap: 6px;
  border-color: rgba(38, 112, 100, 0.28);
  background:
    linear-gradient(90deg, rgba(38, 112, 100, 0.1), transparent 52%),
    var(--surface);
}

.module-card.module-base .module-label {
  grid-area: label;
  margin: 0;
}

.module-card.module-base h3 {
  grid-area: title;
  margin: 0;
}

.module-card.module-base p {
  grid-area: copy;
  margin: 0;
}

.module-card.module-base .tag-row {
  grid-area: tags;
  justify-content: flex-end;
}

.workflow-block {
  position: relative;
  max-width: none;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(143, 209, 189, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(143, 209, 189, 0.04) 1px, transparent 1px),
    #101815;
  background-size: 46px 46px;
  color: #f4f7f1;
}

.workflow-block::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(143, 209, 189, 0.12) 48%, transparent 100%);
  transform: translateX(-120%);
  animation: workflow-scan 8s ease-in-out infinite;
}

.workflow-block .section-heading,
.workflow-block .diagnostic-canvas,
.workflow-block .workflow-rail,
.workflow-block .domain-lens {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.workflow-block p {
  color: #c2cbc3;
}

.workflow-block .eyebrow {
  color: #8fd1bd;
}

.diagnostic-canvas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.orchestration-core {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 260px);
  grid-template-areas:
    "eyebrow metrics"
    "brand metrics"
    "copy metrics";
  gap: 8px 28px;
  align-items: center;
  border: 1px solid rgba(143, 209, 189, 0.22);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(143, 209, 189, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    rgba(255, 255, 255, 0.06);
}

.orchestration-core::before,
.orchestration-core::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(143, 209, 189, 0.24);
  border-radius: 8px;
  animation: rotate-ring 12s linear infinite;
}

.orchestration-core::after {
  inset: 36px;
  border-color: rgba(250, 189, 101, 0.24);
  animation-duration: 18s;
  animation-direction: reverse;
}

.orchestration-core > span,
.orchestration-core > strong,
.orchestration-core > p,
.core-metrics {
  position: relative;
  z-index: 1;
}

.orchestration-core > span {
  grid-area: eyebrow;
  color: #8fd1bd;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.orchestration-core > strong {
  grid-area: brand;
  display: block;
  margin: 0;
  color: #ffffff;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1;
}

.orchestration-core > p {
  grid-area: copy;
  max-width: 760px;
  margin-bottom: 0;
  color: #c2cbc3;
  font-size: 15px;
  line-height: 1.75;
}

.core-metrics {
  grid-area: metrics;
  display: grid;
  gap: 8px;
}

.core-metrics span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 8px 10px;
  color: #dcebe3;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.core-metrics b {
  color: #9ce8cf;
  font-size: 20px;
}

.workflow-rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  overflow: visible;
}

.workflow-phase {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(340px, 0.44fr) minmax(0, 1fr);
  column-gap: clamp(30px, 4vw, 48px);
  row-gap: 6px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(14px);
}

.workflow-phase::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(156, 232, 207, 0.86), rgba(250, 189, 101, 0.48));
}

.workflow-phase::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(156, 232, 207, 0.82));
  box-shadow: 0 0 16px rgba(156, 232, 207, 0.42);
}

.workflow-phase:last-child::after {
  display: none;
}

.phase-head {
  grid-column: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
}

.phase-head > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(156, 232, 207, 0.28);
  border-radius: 50%;
  color: #0d1713;
  background: #9ce8cf;
  font-weight: 900;
}

.phase-head em {
  display: block;
  margin-bottom: 4px;
  color: #8fd1bd;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.phase-head strong {
  color: #ffffff;
  font-size: 18px;
}

.workflow-phase > p {
  grid-column: 1;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 0;
  color: #c2cbc3;
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.phase-nodes {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  align-content: center;
  padding-right: 42px;
}

.workflow-step {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0 7px 2px;
}

.workflow-step + .workflow-step {
  border-top: none;
}

.workflow-step span {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9ce8cf;
  box-shadow: 0 0 0 0 rgba(156, 232, 207, 0.72);
  animation: pulse-dot 2.4s ease-out infinite;
  animation-delay: calc(var(--phase-index) * 160ms);
}

.workflow-step strong {
  min-width: 0;
  color: #f4fff8;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.domain-lens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.domain-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.domain-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(143, 209, 189, 0.12) 46%, transparent 100%);
  transform: translateX(-120%);
  animation: panel-scan 7.6s ease-in-out infinite;
}

.domain-card strong {
  position: relative;
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 16px;
}

.domain-card p {
  position: relative;
  min-height: 88px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.6;
}

.domain-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.domain-tags span {
  border-radius: 999px;
  padding: 3px 8px;
  color: #0e1714;
  background: #9ce8cf;
  font-size: 11px;
  font-weight: 800;
}

@keyframes workflow-scan {
  0%,
  42% {
    transform: translateX(-120%);
  }
  76%,
  100% {
    transform: translateX(120%);
  }
}

.knowledge-loop-layout {
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  gap: 18px;
}

.knowledge-core-card,
.evolution-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.knowledge-core-card {
  display: grid;
  align-content: start;
  padding: clamp(18px, 2.6vw, 28px);
  background:
    linear-gradient(135deg, rgba(38, 112, 100, 0.09), transparent 48%),
    var(--surface);
}

.knowledge-core-card::after,
.evolution-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(143, 209, 189, 0.16) 48%, transparent 100%);
  transform: translateX(-120%);
  animation: knowledge-scan 7.2s ease-in-out infinite;
}

.knowledge-core-card h3 {
  font-size: clamp(24px, 3vw, 34px);
}

.knowledge-stream {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.knowledge-stream-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border-top: 1px solid rgba(217, 223, 214, 0.9);
  padding-top: 12px;
}

.knowledge-stream-row span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.knowledge-stream-row p {
  margin-bottom: 0;
}

.evolution-list {
  display: grid;
  gap: 12px;
}

.evolution-card {
  min-height: 116px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
}

.evolution-card > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(38, 112, 100, 0.28);
  border-radius: 8px;
  color: var(--teal);
  background: #edf6f3;
  font-weight: 800;
}

.evolution-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.evolution-card p {
  margin-bottom: 10px;
}

.evolution-card em {
  color: var(--amber);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.evolution-card:nth-child(2n) > span {
  border-color: rgba(49, 95, 143, 0.28);
  color: var(--blue);
  background: #eef4fb;
}

@keyframes knowledge-scan {
  0%,
  54% {
    transform: translateX(-120%);
  }
  82%,
  100% {
    transform: translateX(120%);
  }
}

.workspace-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.workspace-nav {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 7px;
}

.tab-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  color: #334039;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.tab-button:hover {
  border-color: #aeb8ad;
}

.tab-button.active {
  border-color: rgba(38, 112, 100, 0.4);
  color: var(--teal);
  background: #edf6f3;
  font-weight: 700;
}

.workspace-panel {
  height: clamp(640px, 68vh, 720px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 22px;
}

.panel-topline {
  flex: 0 0 auto;
}

.tab-content {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.tab-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.ticket-summary,
.candidate-list,
.evidence-list,
.plan-list,
.knowledge-list,
.environment-grid {
  display: grid;
  gap: 12px;
}

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

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

.ticket-summary > div,
.environment-card,
.insight-banner,
.candidate-card,
.evidence-item,
.timeline-item,
.plan-row,
.knowledge-list p {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.ticket-summary > div,
.environment-card,
.candidate-card,
.evidence-item,
.timeline-item,
.plan-row,
.knowledge-list p {
  padding: 14px;
}

.environment-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.insight-banner {
  margin-top: 14px;
  padding: 16px;
  border-left: 4px solid var(--blue);
}

.topology-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  margin-top: 14px;
}

.topology-node {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-soft);
}

.topology-node strong,
.topology-node em {
  display: block;
}

.topology-node em {
  margin: 5px 0 8px;
  color: var(--teal);
  font-style: normal;
  font-weight: 800;
}

.topology-node p {
  margin-bottom: 0;
}

.topology-arrow {
  display: grid;
  place-items: center;
  color: var(--teal);
  font-weight: 900;
}

.ai-reasoning-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
  border: 1px solid rgba(49, 95, 143, 0.28);
  border-radius: 8px;
  padding: 16px;
  background: #f4f8fb;
}

.ai-reasoning-card p {
  margin-bottom: 0;
}

.ai-reasoning-card ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.ai-reasoning-card .secondary-action {
  grid-column: 1 / -1;
  width: fit-content;
}

.timeline-list {
  display: grid;
  gap: 10px;
}

.timeline-item,
.evidence-item,
.plan-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
}

.timeline-item > span,
.evidence-item > span,
.plan-row > span {
  color: var(--teal);
  font-weight: 800;
}

.score-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ebe4;
}

.score-track span {
  display: block;
  height: 100%;
  background: var(--teal);
}

.plan-warning {
  margin-bottom: 14px;
  border: 1px solid rgba(169, 111, 45, 0.32);
  border-radius: 8px;
  padding: 13px;
  color: #7c4c12;
  background: #fff7e8;
}

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

.report-grid span {
  min-height: 44px;
  justify-content: center;
  border-radius: 7px;
}

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

.scope-column ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.scope-column li {
  position: relative;
  padding-left: 20px;
  color: #38443d;
  line-height: 1.55;
}

.scope-column li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.scope-column:nth-child(2) li::before {
  background: var(--amber);
}

.demo-form {
  display: grid;
  gap: 14px;
}

.demo-form label {
  display: grid;
  gap: 7px;
  color: #38443d;
  font-weight: 700;
}

.demo-form input,
.demo-form select {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.demo-form button:disabled {
  cursor: progress;
  opacity: 0.68;
}

.demo-output {
  padding: 18px;
}

.demo-output p {
  min-height: 78px;
  margin-bottom: 14px;
}

.copy-status {
  display: inline-block;
  margin-left: 10px;
  color: var(--teal);
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 46px;
  padding-bottom: 34px;
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero-inner,
  .module-grid,
  .diagnostic-canvas,
  .domain-lens,
  .knowledge-loop-layout,
  .scope-grid,
  .demo-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .ai-theater {
    max-width: 720px;
  }

  .module-card {
    min-height: auto;
  }

  .module-card.module-base {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "title"
      "copy"
      "tags";
    align-items: start;
  }

  .module-card.module-base .tag-row {
    justify-content: flex-start;
  }

  .orchestration-core,
  .workflow-phase {
    min-height: auto;
  }

  .orchestration-core,
  .workflow-phase,
  .phase-nodes {
    grid-template-columns: 1fr;
  }

  .orchestration-core {
    grid-template-areas:
      "eyebrow"
      "brand"
      "copy"
      "metrics";
  }

  .orchestration-core > span,
  .orchestration-core > strong,
  .orchestration-core > p,
  .core-metrics,
  .phase-head,
  .workflow-phase > p,
  .phase-nodes {
    grid-column: auto;
    grid-row: auto;
  }

  .orchestration-core > strong {
    margin-top: 6px;
  }

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

  .phase-nodes {
    padding-right: 0;
  }

  .workflow-phase::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    gap: 12px;
  }

  .brand small {
    display: none;
  }

  .header-action {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero-inner,
  .section-block {
    padding-top: 46px;
  }

  h1 {
    font-size: 46px;
  }

  .console-metrics,
  .ticket-summary,
  .environment-grid,
  .topology-preview,
  .ai-reasoning-card,
  .workspace-layout,
  .workflow-rail,
  .core-metrics,
  .phase-nodes,
  .domain-lens,
  .knowledge-stream-row,
  .signal-stack,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .agent-stage {
    min-height: 228px;
  }

  .agent-core {
    width: 116px;
    height: 116px;
  }

  .agent-node {
    min-width: 104px;
    padding: 8px;
  }

  .thinking-line {
    grid-template-columns: 1fr;
  }

  .workspace-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tab-button {
    text-align: center;
  }

  .topology-arrow {
    transform: rotate(90deg);
  }

  .ai-reasoning-card .secondary-action {
    width: 100%;
  }

  .timeline-item,
  .evidence-item,
  .plan-row {
    grid-template-columns: 1fr;
  }

  .workflow-phase::after {
    display: none;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 40px;
  }

  .hero-actions,
  .principles,
  .tag-row {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

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

  .agent-stage {
    min-height: 300px;
  }

  .agent-core {
    position: relative;
    left: auto;
    top: auto;
    margin: 22px auto 0;
    transform: none;
  }

  .agent-map {
    position: relative;
    inset: auto;
    display: grid;
    gap: 8px;
    padding: 18px 12px 12px;
  }

  .agent-node {
    position: static;
    min-width: 0;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-theater::before,
  .workflow-block::before,
  .domain-card::before,
  .knowledge-core-card::after,
  .evolution-card::after,
  .ai-theater-header em::before,
  .agent-core::before,
  .agent-core::after,
  .agent-node.active::after,
  .thinking-line {
    animation: none;
  }
}
