:root {
  --ink: #0b1d2a;
  --ink-soft: #294452;
  --paper: #f6f3eb;
  --paper-deep: #ece8dc;
  --white: #fffdf8;
  --mint: #7ce0bf;
  --mint-deep: #17a77b;
  --coral: #ff745c;
  --sky: #a9d8ef;
  --line: rgba(11, 29, 42, 0.14);
  --shadow: 0 24px 64px rgba(11, 29, 42, 0.13);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 4%, rgba(124, 224, 191, 0.22), transparent 26rem),
    linear-gradient(180deg, var(--paper) 0%, #fbfaf6 42%, var(--paper) 100%);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 16px auto 0;
  padding: 12px 14px;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(11, 29, 42, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.brand-mark,
.agent-avatar {
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--mint);
  font-weight: 900;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: inset 0 -4px 0 rgba(11, 29, 42, 0.12);
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10px;
}

.nav {
  display: flex;
  gap: 26px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.nav a {
  position: relative;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--mint-deep);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.display-badge {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
  padding: 8px 11px;
  color: var(--ink-soft);
  background: rgba(124, 224, 191, 0.16);
  border: 1px solid rgba(23, 167, 123, 0.2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--mint-deep);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(23, 167, 123, 0.12);
}

.section {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
  padding-block: 100px;
}

.hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 72px;
  min-height: calc(100vh - 86px);
  padding-top: 70px;
}

.hero > *,
.demo-heading > *,
.demo-console,
.demo-message-body {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--mint-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

h1 em {
  position: relative;
  color: var(--ink);
  font-style: normal;
  white-space: nowrap;
  z-index: 0;
}

h1 em::after {
  position: absolute;
  right: -4px;
  bottom: 4px;
  left: -4px;
  height: 18px;
  background: var(--mint);
  border-radius: 4px;
  content: "";
  opacity: 0.72;
  transform: rotate(-1.5deg);
  z-index: -1;
}

.hero-description {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 10px 24px rgba(11, 29, 42, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.35);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.trust-list li::before {
  margin-right: 7px;
  color: var(--mint-deep);
  content: "✓";
}

.agent-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background: var(--white);
  border: 1px solid rgba(11, 29, 42, 0.1);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.agent-card::before {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 180px;
  height: 180px;
  background: var(--sky);
  border-radius: 50%;
  content: "";
  filter: blur(12px);
  opacity: 0.4;
}

.agent-card-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 3px 16px;
  border-bottom: 1px solid var(--line);
}

.agent-identity {
  display: flex;
  align-items: center;
  gap: 11px;
}

.agent-avatar {
  width: 44px;
  height: 44px;
  border-radius: 15px;
}

.agent-identity > span:last-child {
  display: flex;
  flex-direction: column;
}

.agent-identity small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10px;
}

.agent-identity small .status-dot {
  width: 6px;
  height: 6px;
  border: 0;
  box-shadow: none;
}

.mode-label {
  padding: 6px 9px;
  color: var(--ink);
  background: var(--paper-deep);
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.chat-preview {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 420px;
  padding: 24px 4px;
}

.message {
  width: min(92%, 520px);
  padding: 15px 16px;
  border-radius: 18px;
  font-size: 13px;
}

.message p {
  margin-bottom: 0;
}

.message-label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
}

.message-user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--white);
  border-bottom-right-radius: 5px;
}

.message-user .message-label {
  color: rgba(255, 255, 255, 0.62);
}

.message-agent {
  align-self: flex-start;
  background: var(--paper-deep);
  border-bottom-left-radius: 5px;
}

.file-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.file-chip > span:last-child {
  display: flex;
  flex-direction: column;
}

.file-chip small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
}

.file-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 42px;
  color: var(--white);
  background: var(--coral);
  border-radius: 8px 8px 11px 8px;
  font-size: 8px;
  font-weight: 900;
}

.progress-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.progress-step {
  padding: 6px 8px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}

.progress-step.is-done {
  color: #117354;
  background: rgba(124, 224, 191, 0.35);
}

.progress-step.is-active {
  color: #9e422f;
  background: rgba(255, 116, 92, 0.2);
}

.demo-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 15px;
  color: rgba(41, 68, 82, 0.65);
  background: #f4f2ec;
  border: 1px solid var(--line);
  border-radius: 15px;
  font-size: 11px;
}

.demo-input span {
  flex: 1;
}

.demo-input button,
.demo-input a {
  padding: 9px 13px;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(11, 29, 42, 0.55);
  border: 0;
  border-radius: 10px;
  font-weight: 800;
}

.demo-input-ready a {
  color: var(--white);
  background: var(--ink);
}

.privacy-note {
  margin: 9px 4px 0;
  color: rgba(41, 68, 82, 0.62);
  font-size: 9px;
  text-align: center;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-lg);
}

.proof-strip div {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 22px 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

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

.proof-strip strong {
  color: var(--mint);
  font-size: 31px;
  line-height: 1;
}

.proof-strip span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

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

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child,
.standards-copy > p:last-child,
.demo-copy > p:last-child {
  color: var(--ink-soft);
  font-size: 16px;
}

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

.workflow-card {
  display: flex;
  gap: 18px;
  min-height: 180px;
  padding: 24px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.workflow-card.is-checkpoint {
  background: rgba(124, 224, 191, 0.14);
  border-color: rgba(23, 167, 123, 0.28);
}

.step-number {
  color: var(--mint-deep);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.workflow-card h3,
.feature h3,
.rule h3,
.human-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.workflow-card p,
.feature p,
.rule p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.capability-section {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100% - var(--max-width)) / 2));
  background: var(--ink);
  color: var(--white);
}

.capability-section .eyebrow {
  color: var(--mint);
}

.capability-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
}

.feature {
  min-height: 220px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}

.feature p {
  color: rgba(255, 255, 255, 0.67);
}

.feature-large {
  grid-row: span 2;
  min-height: 454px;
  background:
    radial-gradient(circle at 90% 12%, rgba(124, 224, 191, 0.25), transparent 180px),
    rgba(255, 255, 255, 0.06);
}

.feature-large h3 {
  max-width: 440px;
  margin-top: 84px;
  font-size: clamp(28px, 3vw, 43px);
  line-height: 1.16;
}

.feature-kicker,
.human-label {
  color: var(--mint);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 36px;
  color: var(--ink);
  background: var(--mint);
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
}

.logic-map {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 50px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  font-size: 10px;
  font-weight: 800;
}

.logic-map span:nth-child(even) {
  color: var(--mint);
}

.standards-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.standards-copy {
  position: sticky;
  top: 110px;
  align-self: start;
}

.rules-list {
  border-top: 1px solid var(--line);
}

.rule {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.rule > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 32px;
  color: var(--ink);
  background: var(--sky);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.boundary-section {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
}

.boundary-panel,
.human-card {
  padding: 38px;
  border-radius: var(--radius-xl);
}

.boundary-panel {
  color: var(--white);
  background: var(--ink);
}

.boundary-panel .eyebrow {
  color: var(--coral);
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.boundary-list li {
  padding: 15px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  font-size: 12px;
}

.boundary-list li::before {
  margin-right: 7px;
  color: var(--coral);
  content: "—";
}

.human-card {
  background: var(--coral);
}

.human-label {
  color: rgba(11, 29, 42, 0.68);
}

.human-card h3 {
  margin: 16px 0 28px;
  font-size: 28px;
  line-height: 1.2;
}

.human-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 17px 0;
  border-top: 1px solid rgba(11, 29, 42, 0.18);
  font-size: 12px;
  font-weight: 800;
}

.human-step strong {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.demo-section {
  display: block;
}

.demo-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 72px;
  margin-bottom: 38px;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.security-grid div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 20px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 800;
}

.security-grid strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--ink);
  background: var(--mint);
  border-radius: 50%;
}

.demo-console {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(11, 29, 42, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.demo-console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.demo-console-agent {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-console-agent > div {
  display: flex;
  flex-direction: column;
}

.demo-console-agent span:last-child {
  color: var(--ink-soft);
  font-size: 10px;
}

.demo-console-agent i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  background: var(--mint-deep);
  border-radius: 50%;
}

.demo-console-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-soft);
  font-size: 10px;
}

.demo-console-meta button {
  padding: 7px 11px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.demo-console-meta button:hover,
.demo-console-meta button:focus-visible {
  background: var(--paper-deep);
}

.demo-stage {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0 22px;
  color: rgba(41, 68, 82, 0.56);
  background: #f8f6f0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 800;
}

.demo-stage span {
  position: relative;
  padding: 14px 8px 13px;
  text-align: center;
}

.demo-stage span::after {
  position: absolute;
  right: 8px;
  bottom: -1px;
  left: 8px;
  height: 3px;
  background: transparent;
  border-radius: 999px 999px 0 0;
  content: "";
}

.demo-stage span.is-current {
  color: var(--ink);
}

.demo-stage span.is-current::after {
  background: var(--coral);
}

.demo-stage span.is-complete {
  color: var(--mint-deep);
}

.demo-stage span.is-complete::before {
  margin-right: 5px;
  content: "✓";
}

.demo-transcript {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 600px;
  overflow-y: auto;
  padding: 30px max(24px, calc((100% - 880px) / 2));
  background:
    radial-gradient(circle at 90% 4%, rgba(169, 216, 239, 0.18), transparent 17rem),
    #fffdfa;
  scroll-behavior: smooth;
}

.demo-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 82%;
  animation: message-in 260ms ease both;
}

.demo-message.is-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.demo-message-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--ink);
  background: var(--mint);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 900;
}

.demo-message.is-user .demo-message-avatar {
  color: var(--white);
  background: var(--ink);
}

.demo-message-body {
  min-width: 0;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--paper-deep);
  border-radius: 4px 16px 16px;
  font-size: 13px;
}

.demo-message.is-user .demo-message-body {
  color: var(--white);
  background: var(--ink);
  border-radius: 16px 4px 16px 16px;
}

.demo-message-name {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 900;
}

.demo-message.is-user .demo-message-name {
  color: rgba(255, 255, 255, 0.58);
  text-align: right;
}

.demo-message-body p {
  margin: 0;
  overflow-wrap: anywhere;
}

.demo-message-body p + p,
.demo-message-body p + ul,
.demo-message-body p + .demo-artifact,
.demo-message-body ul + p,
.demo-message-body .demo-artifact + p {
  margin-top: 10px;
}

.demo-message-body ul {
  margin-bottom: 0;
  padding-left: 19px;
}

.demo-message-body li + li {
  margin-top: 4px;
}

.demo-artifact {
  margin-top: 12px;
  padding: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(11, 29, 42, 0.12);
  border-radius: 12px;
}

.demo-message.is-user .demo-artifact {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.artifact-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
  font-weight: 900;
}

.artifact-title span {
  padding: 3px 7px;
  color: #117354;
  background: rgba(124, 224, 191, 0.35);
  border-radius: 999px;
  font-size: 8px;
  white-space: nowrap;
}

.artifact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 9px;
}

.artifact-meta span {
  padding: 4px 7px;
  background: rgba(11, 29, 42, 0.06);
  border-radius: 7px;
}

.outline-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
}

.outline-list li {
  margin: 0;
  padding: 7px 9px;
  background: rgba(11, 29, 42, 0.05);
  border-radius: 8px;
  font-size: 10px;
}

.delivery-card {
  background: rgba(124, 224, 191, 0.16);
  border-color: rgba(23, 167, 123, 0.28);
}

.delivery-checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.delivery-checks span {
  padding: 7px;
  color: #117354;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.demo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 14px 22px;
  background: #f8f6f0;
  border-top: 1px solid var(--line);
}

.demo-choice-hint {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 480px;
  color: var(--ink-soft);
  font-size: 10px;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.demo-action {
  min-height: 40px;
  padding: 0 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
}

.demo-action:hover,
.demo-action:focus-visible {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.demo-action.is-primary {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.demo-action:disabled {
  cursor: wait;
  opacity: 0.55;
}

.demo-complete {
  color: #117354;
  font-weight: 800;
}

.noscript-note {
  padding: 14px;
  color: #9e422f;
  background: rgba(255, 116, 92, 0.12);
  border-radius: 12px;
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 40px auto 22px;
  padding: 34px;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-xl);
}

.site-footer p {
  max-width: 580px;
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
}

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

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

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

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

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

  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    min-height: auto;
  }

  .agent-card {
    max-width: 720px;
    margin-inline: auto;
  }

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

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

  .feature-large {
    grid-row: auto;
    grid-column: span 2;
    min-height: 380px;
  }

  .standards-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .standards-copy {
    position: static;
  }

  .boundary-section,
  .demo-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .demo-transcript {
    padding-inline: 28px;
  }
}

@media (max-width: 700px) {
  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .brand small,
  .display-badge {
    display: none;
  }

  .section {
    width: min(calc(100% - 28px), var(--max-width));
    padding-block: 72px;
  }

  .hero {
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(36px, 10.5vw, 46px);
  }

  h1 em {
    white-space: normal;
  }

  .hero-description {
    font-size: 16px;
  }

  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
    width: calc(100% - 28px);
  }

  .proof-strip div:nth-child(2) {
    border-right: 0;
  }

  .proof-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .workflow-grid,
  .capability-layout,
  .boundary-list,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .feature-large {
    grid-column: auto;
  }

  .feature-large h3 {
    margin-top: 42px;
  }

  .boundary-panel,
  .human-card {
    padding: 28px;
  }

  .demo-console-bar,
  .demo-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-console-meta {
    width: 100%;
    justify-content: space-between;
  }

  .demo-stage {
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(92px, 1fr));
    padding-inline: 10px;
  }

  .demo-transcript {
    height: 560px;
    padding: 22px 14px;
  }

  .demo-message {
    max-width: 95%;
  }

  .message {
    max-width: 100%;
  }

  .file-chip strong,
  .artifact-title {
    overflow-wrap: anywhere;
  }

  .outline-list,
  .delivery-checks {
    grid-template-columns: 1fr;
  }

  .demo-controls {
    gap: 12px;
  }

  .demo-actions {
    justify-content: stretch;
    width: 100%;
  }

  .demo-action {
    flex: 1 1 140px;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
    width: calc(100% - 20px);
    padding: 28px;
  }

  .footer-meta {
    justify-content: flex-start;
  }
}
