:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #657184;
  --line: #dfe4eb;
  --line-dark: #c6ced9;
  --paper: #ffffff;
  --canvas: #f4f6f8;
  --blue: #2867f0;
  --blue-dark: #164bb9;
  --blue-soft: #eaf1ff;
  --cyan: #18a4b8;
  --danger: #c83737;
  --danger-soft: #fff0ee;
  --warning: #986218;
  --warning-soft: #fff6df;
  --success: #177a54;
  --success-soft: #e9f8f1;
  --pending: #7a8391;
  --pending-soft: #edf0f3;
  --shadow: 0 24px 60px rgba(28, 42, 66, 0.12);
  --shell: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

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

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 18px;
  top: -60px;
  padding: 10px 16px;
  color: #fff;
  background: var(--blue);
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 18px;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 76px;
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(198, 206, 217, 0.75);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.brand,
.brand > span:last-child,
.panel-title,
.panel-title > span:last-child {
  display: flex;
  align-items: center;
}

.brand {
  justify-self: start;
  gap: 12px;
}

.brand-mark,
.mini-mark {
  display: grid;
  place-items: center;
  color: #087f94;
  border: 1px solid #27a8bd;
  border-radius: 50%;
  font-weight: 750;
  letter-spacing: -0.08em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  font-size: 13px;
}

.brand > span:last-child,
.panel-title > span:last-child {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

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

.brand small,
.panel-title small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #3b4657;
  font-size: 14px;
}

.top-nav a {
  position: relative;
  padding-block: 26px;
}

.top-nav a::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

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

.demo-pill,
.simulated-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: end;
  padding: 8px 12px;
  color: #3e4b5c;
  border: 1px solid var(--line);
  background: #f8fafc;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.status-dot,
.board-topline i,
.proof-top i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #18aa71;
  box-shadow: 0 0 0 4px rgba(24, 170, 113, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: clamp(50px, 7vw, 100px);
  min-height: 720px;
  padding-block: 92px 100px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 690px;
  margin-bottom: 28px;
  font-size: clamp(48px, 6.2vw, 84px);
  font-weight: 820;
  letter-spacing: -0.07em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 32px;
  color: #4d596b;
  font-size: 17px;
  line-height: 1.85;
  text-wrap: pretty;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(40, 103, 240, 0.22);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-secondary {
  border-color: var(--line-dark);
  background: #fff;
}

.safety-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.safety-line span {
  color: var(--success);
}

.hero-board {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line-dark);
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-board::before,
.hero-board::after {
  position: absolute;
  z-index: -1;
  content: "";
}

.hero-board::before {
  top: -18px;
  right: 32px;
  width: 120px;
  height: 80px;
  background: var(--blue);
}

.hero-board::after {
  right: -22px;
  bottom: -22px;
  width: 80%;
  height: 62%;
  border: 1px solid #b9c9ef;
  background: var(--blue-soft);
}

.board-topline,
.proof-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.board-topline strong,
.proof-top strong {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--success);
  font-weight: 700;
}

.board-clock {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 20px;
  align-items: end;
  padding: 28px 2px 30px;
}

.board-clock span,
.board-clock small {
  color: var(--muted);
  font-size: 12px;
}

.board-clock strong {
  grid-row: span 2;
  font-size: 46px;
  letter-spacing: -0.06em;
  line-height: 1;
}

.board-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.board-grid article {
  display: flex;
  min-height: 126px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.board-grid article > span {
  margin-bottom: auto;
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.board-grid strong {
  margin-bottom: 5px;
  font-size: 15px;
}

.board-grid small {
  color: var(--muted);
  font-size: 11px;
}

.demo-section,
.workflow-section,
.proof-section {
  background: var(--canvas);
}

.demo-section {
  padding-block: 100px 112px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.4vw, 54px);
  letter-spacing: -0.05em;
  line-height: 1.08;
  text-wrap: balance;
}

.split-heading {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 60px;
}

.split-heading > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.demo-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 15px;
  color: #4e5b6d;
  border: 1px solid #cdd8ec;
  background: #eef4ff;
  font-size: 12px;
  line-height: 1.6;
}

.demo-notice strong {
  color: var(--blue-dark);
  white-space: nowrap;
}

.scenario-row {
  display: flex;
  gap: 8px;
  padding-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.scenario {
  min-height: 40px;
  padding: 0 15px;
  color: #4e5a6b;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.scenario:hover,
.scenario:focus-visible,
.scenario.is-active {
  color: var(--blue-dark);
  border-color: #9db8f3;
  background: var(--blue-soft);
}

.agent-console {
  display: grid;
  grid-template-columns: minmax(310px, 0.75fr) minmax(0, 1.55fr);
  min-height: 690px;
  border: 1px solid #c7cfd9;
  background: #fff;
  box-shadow: 0 28px 70px rgba(27, 40, 62, 0.13);
}

.chat-panel,
.schedule-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.chat-panel {
  border-right: 1px solid var(--line-dark);
  background: #f7f8fa;
}

.panel-header {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
}

.panel-title {
  gap: 10px;
}

.mini-mark {
  width: 38px;
  height: 38px;
  font-size: 11px;
}

.panel-title strong {
  font-size: 14px;
}

.simulated-tag {
  padding: 6px 8px;
  color: #6a7483;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  min-height: 470px;
  max-height: 520px;
  padding: 22px 18px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.message {
  display: flex;
  gap: 10px;
  max-width: 92%;
  animation: message-in 240ms ease both;
}

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

.avatar {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #6d7c92;
  font-size: 10px;
  font-weight: 750;
}

.message.agent .avatar {
  background: #168da1;
}

.bubble-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.message.user .bubble-wrap {
  align-items: flex-end;
}

.speaker {
  color: #7d8795;
  font-size: 10px;
}

.bubble {
  padding: 11px 13px;
  border: 1px solid #e1e5eb;
  background: #fff;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-line;
}

.message.user .bubble {
  border-color: #bed1fa;
  background: #dfeaff;
}

.bubble.is-conflict {
  border-color: #f0c2bd;
  background: var(--danger-soft);
}

.bubble.is-success {
  border-color: #b8dfce;
  background: var(--success-soft);
}

.bubble.is-reminder {
  border-color: #ead28e;
  background: #fffaf0;
}

.thinking {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  background: #fff;
}

.thinking i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8490a1;
  animation: pulse 850ms ease-in-out infinite;
}

.thinking i:nth-child(2) {
  animation-delay: 100ms;
}

.thinking i:nth-child(3) {
  animation-delay: 200ms;
}

.composer {
  display: flex;
  gap: 8px;
  padding: 14px 14px 8px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.composer input {
  min-width: 0;
  flex: 1;
  height: 42px;
  padding-inline: 12px;
  color: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: 0;
  outline: none;
  font-size: 12px;
}

.composer input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(40, 103, 240, 0.12);
}

.composer button {
  min-width: 62px;
  color: #fff;
  border: 0;
  border-radius: 0;
  background: var(--blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.composer button:hover {
  background: var(--blue-dark);
}

.composer-help {
  margin: 0;
  padding: 0 14px 13px;
  color: #8a93a1;
  background: #fff;
  font-size: 9px;
  line-height: 1.5;
}

.schedule-header {
  min-height: 88px;
}

.panel-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.schedule-header h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px 14px;
  color: #677386;
  font-size: 9px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-home {
  border: 1px solid #8792a3;
  background: #fff;
}

.legend-away {
  background: var(--blue);
}

.legend-pending {
  background: var(--pending);
}

.schedule-stage {
  flex: 1;
  min-width: 0;
  padding: 18px;
  overflow: auto;
  background: #fbfcfd;
}

.week-block + .week-block {
  margin-top: 18px;
}

.week-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  color: #768194;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.schedule-table {
  display: grid;
  min-width: 790px;
  grid-template-columns: 96px repeat(7, minmax(92px, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
  background: #fff;
}

.schedule-cell {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 7px 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.35;
}

.schedule-cell.header {
  min-height: 46px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  color: #445064;
  background: #f7f9fc;
  font-weight: 750;
}

.schedule-cell.header small {
  color: #8a95a6;
  font-size: 8px;
  font-weight: 500;
}

.schedule-cell.time {
  color: #697587;
  background: #f7f9fc;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.schedule-cell.empty {
  justify-content: center;
  color: #a2aab5;
  font-size: 15px;
}

.course-chip {
  display: flex;
  width: 100%;
  min-height: 31px;
  align-items: center;
  gap: 6px;
  padding: 6px 7px;
  color: #364154;
  border: 1px solid #dfe4ea;
  background: #fff;
  font-weight: 650;
}

.course-chip i {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.course-chip.home i {
  border: 1px solid #778399;
  background: #fff;
}

.course-chip.away {
  color: #1747a9;
  border-color: #b8cbf6;
  background: #e7efff;
}

.course-chip.away i {
  background: var(--blue);
}

.course-chip.pending {
  color: #606a78;
  border-color: #d4d8de;
  background: var(--pending-soft);
}

.course-chip.pending i {
  background: var(--pending);
}

.schedule-cell.flash-conflict {
  position: relative;
  background: var(--danger-soft);
  animation: conflict-flash 700ms ease 2;
}

.capability-section,
.boundary-section,
.architecture-section {
  padding-block: 108px;
}

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

.capability-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 180ms ease, background-color 180ms ease;
}

.capability-item:hover {
  padding-inline: 12px;
  background: #f8fafc;
}

.capability-item > span,
.capability-item > strong {
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.capability-item h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.capability-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.workflow-section {
  padding-block: 108px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 0 0 24px;
  padding: 0;
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
  list-style: none;
}

.workflow-track li {
  display: flex;
  min-height: 188px;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  padding: 18px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: #fff;
}

.workflow-track li > span {
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.workflow-track strong,
.workflow-track small {
  display: block;
}

.workflow-track strong {
  margin-bottom: 8px;
  font-size: 14px;
}

.workflow-track small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.rule-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid #182334;
  background: #344155;
}

.rule-strip article {
  padding: 22px;
  color: #fff;
  background: #182334;
}

.rule-strip strong {
  display: block;
  margin-bottom: 10px;
  color: #8fb2ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.13em;
}

.rule-strip p {
  margin: 0;
  color: #c9d1dc;
  font-size: 12px;
  line-height: 1.7;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.boundary-card {
  min-height: 430px;
  padding: 26px;
  border: 1px solid var(--line-dark);
}

.boundary-card.can-do {
  background: #f2faf6;
}

.boundary-card.ask-human {
  background: #fff8e8;
}

.boundary-card.never-do {
  background: #fff2f0;
}

.boundary-label {
  display: inline-block;
  margin-bottom: 70px;
  padding: 6px 9px;
  color: #fff;
  background: var(--ink);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.can-do .boundary-label {
  background: var(--success);
}

.ask-human .boundary-label {
  background: var(--warning);
}

.never-do .boundary-label {
  background: var(--danger);
}

.boundary-card h3 {
  min-height: 60px;
  margin-bottom: 24px;
  font-size: 22px;
  line-height: 1.35;
}

.boundary-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: #536072;
  list-style: none;
}

.boundary-card li {
  position: relative;
  padding-left: 17px;
  font-size: 13px;
  line-height: 1.6;
}

.boundary-card li::before {
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 6px;
  height: 1px;
  background: currentColor;
  content: "";
}

.proof-section {
  padding-block: 90px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(44px, 8vw, 110px);
}

.proof-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(34px, 4.2vw, 50px);
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.proof-copy > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.proof-card {
  padding: 26px;
  border: 1px solid var(--line-dark);
  background: #fff;
  box-shadow: 0 20px 50px rgba(29, 42, 64, 0.09);
}

.proof-card time {
  display: block;
  margin: 28px 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.proof-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.proof-checks span {
  padding: 10px;
  color: #27674f;
  background: var(--success-soft);
  font-size: 11px;
}

.proof-card > small {
  display: block;
  color: #8a93a1;
  font-size: 9px;
  line-height: 1.6;
}

.architecture-board {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  align-items: stretch;
  border: 1px solid var(--line-dark);
}

.runtime-side,
.showcase-side {
  padding: 30px;
}

.runtime-side > span,
.showcase-side > span {
  display: block;
  margin-bottom: 52px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.runtime-side {
  background: #f3f5f8;
}

.showcase-side {
  background: var(--blue-soft);
}

.tool-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.tool-row strong {
  font-size: 14px;
}

.tool-row i {
  color: #8893a4;
  font-style: normal;
}

.runtime-side p,
.showcase-side p {
  margin: 0;
  color: #687486;
  font-size: 12px;
  line-height: 1.7;
}

.isolation-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-direction: column;
  color: #fff;
  background: #182334;
}

.isolation-mark span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
}

.isolation-mark i {
  width: 1px;
  height: 54px;
  background: #71809a;
}

.site-footer {
  color: #d4dbe5;
  background: #111927;
}

.site-footer .shell {
  display: flex;
  min-height: 130px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-footer div > div {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.site-footer strong {
  color: #fff;
}

.site-footer span,
.site-footer p {
  color: #8f9caf;
  font-size: 11px;
}

.site-footer p {
  margin: 0;
  text-align: right;
}

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

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

@keyframes conflict-flash {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(200, 55, 55, 0); }
  50% { box-shadow: inset 0 0 0 2px rgba(200, 55, 55, 0.65); }
}

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

  .top-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 78px 100px;
  }

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

  .hero-board {
    max-width: 650px;
  }

  .agent-console {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .messages {
    min-height: 390px;
  }

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

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

  .boundary-card {
    min-height: 0;
  }

  .boundary-label {
    margin-bottom: 38px;
  }

  .architecture-board {
    grid-template-columns: 1fr;
  }

  .isolation-mark {
    min-height: 70px;
    flex-direction: row;
  }

  .isolation-mark span {
    writing-mode: horizontal-tb;
  }

  .isolation-mark i {
    width: 54px;
    height: 1px;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(100% - 28px, 1180px);
  }

  .site-header {
    height: 66px;
    padding-inline: 14px;
  }

  .brand small {
    display: none;
  }

  .demo-pill {
    padding: 7px 9px;
    font-size: 10px;
  }

  .hero {
    gap: 58px;
    padding-block: 60px 78px;
  }

  .hero h1 {
    font-size: clamp(45px, 15vw, 64px);
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-board {
    padding: 16px;
  }

  .hero-board::before {
    top: -10px;
    right: 18px;
    width: 80px;
    height: 46px;
  }

  .hero-board::after {
    right: -10px;
    bottom: -10px;
  }

  .board-clock strong {
    font-size: 38px;
  }

  .board-grid article {
    min-height: 112px;
    padding: 14px;
  }

  .demo-section,
  .capability-section,
  .workflow-section,
  .boundary-section,
  .architecture-section {
    padding-block: 76px;
  }

  .proof-section {
    padding-block: 72px;
  }

  .split-heading,
  .proof-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2,
  .proof-copy h2 {
    font-size: 36px;
  }

  .demo-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .panel-header {
    padding-inline: 14px;
  }

  .legend {
    display: none;
  }

  .schedule-stage {
    padding: 12px;
  }

  .capability-item {
    grid-template-columns: 38px 1fr;
    gap: 14px;
  }

  .capability-item > strong {
    display: none;
  }

  .capability-item h3 {
    font-size: 17px;
  }

  .workflow-track {
    grid-template-columns: 1fr 1fr;
  }

  .workflow-track li {
    min-height: 150px;
  }

  .rule-strip {
    grid-template-columns: 1fr;
  }

  .boundary-card {
    padding: 22px;
  }

  .proof-checks {
    grid-template-columns: 1fr;
  }

  .tool-row {
    flex-wrap: wrap;
  }

  .site-footer .shell {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
