:root {
  --paper: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #f0f3f7;
  --ink: #111827;
  --ink-soft: #435064;
  --muted: #6b7280;
  --line: #dde3eb;
  --line-strong: #c8d1dd;
  --brand: #3267e3;
  --brand-dark: #214db4;
  --brand-soft: #e9efff;
  --teal: #008a78;
  --teal-soft: #e3f6f2;
  --coral: #d94f42;
  --coral-soft: #fff0ed;
  --amber: #a96000;
  --amber-soft: #fff5d9;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow-lg: 0 28px 70px rgba(45, 65, 96, 0.14);
  --radius-sm: 6px;
  --radius: 8px;
  --header-height: 72px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
input {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid rgba(50, 103, 227, 0.28);
  outline-offset: 3px;
}

::selection {
  background: #cddcff;
  color: #0d2660;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: transform 160ms ease;
}

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

.container {
  width: min(1280px, calc(100% - 56px));
  margin-inline: auto;
}

.narrow-container {
  width: min(1180px, calc(100% - 56px));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(247, 248, 250, 0.9);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(200, 209, 221, 0.82);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--ink);
  font-size: 18px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
}

.brand-link img {
  width: 36px;
  height: 36px;
}

.brand-link small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  margin-left: auto;
}

.site-menu a {
  position: relative;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-menu a:not(.nav-action)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--brand);
  transition: right 180ms ease;
}

.site-menu a:hover,
.site-menu a[aria-current="page"] {
  color: var(--brand-dark);
}

.site-menu a:hover::after,
.site-menu a[aria-current="page"]::after {
  right: 0;
}

.nav-action,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 9px 17px;
  background: var(--brand);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  box-shadow: 0 7px 18px rgba(50, 103, 227, 0.18);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nav-action:hover,
.button:hover {
  transform: translateY(-2px);
  background: var(--brand-dark);
  box-shadow: 0 10px 24px rgba(50, 103, 227, 0.24);
}

.button--secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink) !important;
  box-shadow: none;
}

.button--secondary:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark) !important;
  box-shadow: none;
}

.button-arrow {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before {
  position: absolute;
  top: -6px;
}

.menu-toggle-lines::after {
  position: absolute;
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(80, 98, 125, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 98, 125, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(247, 248, 250, 0.98) 0%, rgba(247, 248, 250, 0.82) 36%, rgba(247, 248, 250, 0.16) 78%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  min-height: 670px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(530px, 1.12fr);
  align-items: center;
  gap: 64px;
  padding-block: 76px 88px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 760;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  background: var(--brand);
  content: "";
}

.hero h1 {
  margin: 0;
  color: #101827;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(52px, 6.4vw, 88px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  margin-top: 18px;
  color: var(--brand);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(25px, 3vw, 40px);
  font-weight: 740;
  line-height: 1.2;
}

.hero-summary {
  max-width: 570px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 27px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.hero-note li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-note li::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.workspace-demo {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.workspace-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.demo-titlebar {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
  background: #fbfcfd;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9d1dc;
}

.demo-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.demo-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a079;
  box-shadow: 0 0 0 4px rgba(22, 160, 121, 0.1);
  content: "";
}

.demo-main {
  height: 428px;
  display: grid;
  grid-template-columns: 56px 178px 1fr;
}

.demo-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  border-right: 1px solid #1b2941;
  padding: 16px 0;
  background: #121c2d;
}

.demo-avatar,
.demo-rail-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: #24334d;
  color: #abb8ca;
  font-size: 12px;
  font-weight: 700;
}

.demo-avatar {
  margin-bottom: 8px;
  background: var(--brand);
  color: #fff;
}

.demo-rail-button.is-active {
  background: #fff;
  color: var(--brand);
}

.demo-rail-spacer {
  flex: 1;
}

.demo-list {
  border-right: 1px solid var(--line);
  background: #f5f7fa;
}

.demo-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 14px 11px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.demo-search {
  margin: 0 10px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 9px;
  background: #fff;
  color: #8993a2;
  font-size: 10px;
}

.demo-thread {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  min-height: 60px;
  align-items: center;
  padding: 8px 10px;
}

.demo-thread.is-active {
  background: #e7edfa;
}

.thread-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.demo-thread:nth-child(5) .thread-avatar {
  background: var(--coral-soft);
  color: var(--coral);
}

.thread-copy {
  min-width: 0;
}

.thread-copy strong,
.thread-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-copy strong {
  color: #293548;
  font-size: 10px;
}

.thread-copy span {
  margin-top: 3px;
  color: #8993a2;
  font-size: 8px;
}

.demo-chat {
  min-width: 0;
  display: grid;
  grid-template-rows: 54px 1fr 62px;
  background: #fff;
}

.demo-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 17px;
}

.demo-chat-header strong {
  font-size: 12px;
}

.demo-chat-header span {
  color: var(--muted);
  font-size: 10px;
}

.demo-messages {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 16px;
  background-image: radial-gradient(#d9dfe8 0.65px, transparent 0.65px);
  background-size: 15px 15px;
}

.demo-message {
  max-width: 84%;
  align-self: flex-start;
  border: 1px solid var(--line);
  border-radius: 3px 8px 8px 8px;
  padding: 9px 11px;
  background: #fff;
  color: #4c596a;
  font-size: 9px;
  line-height: 1.55;
  box-shadow: var(--shadow-sm);
  animation: messageFloat 5s ease-in-out infinite;
}

.demo-message.is-own {
  align-self: flex-end;
  border-color: #b9cafa;
  border-radius: 8px 3px 8px 8px;
  background: #dce6ff;
  color: #173b91;
  animation-delay: -1.8s;
}

.demo-message.is-file {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
  animation-delay: -3.2s;
}

.demo-file-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 30px;
  border-radius: 4px;
  background: var(--coral-soft);
  color: var(--coral);
  font-size: 8px;
  font-weight: 800;
}

.demo-file-meta strong,
.demo-file-meta span {
  display: block;
}

.demo-file-meta strong {
  color: #354256;
  font-size: 9px;
}

.demo-file-meta span {
  color: var(--muted);
  font-size: 8px;
}

.demo-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 11px 14px;
  color: #8993a2;
  font-size: 9px;
}

.composer-tools {
  color: var(--brand);
  font-size: 13px;
  letter-spacing: 4px;
}

.composer-placeholder {
  flex: 1;
}

.composer-send {
  border-radius: 4px;
  padding: 5px 9px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.hero-signal {
  position: absolute;
  right: -20px;
  bottom: -24px;
  z-index: 6;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: center;
  width: 210px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 13px;
  background: var(--surface);
  box-shadow: 0 15px 34px rgba(45, 65, 96, 0.16);
}

.signal-pulse {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal-soft);
}

.signal-pulse::before,
.signal-pulse::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.signal-pulse::before {
  inset: 11px;
  background: var(--teal);
}

.signal-pulse::after {
  inset: 5px;
  border: 1px solid rgba(0, 138, 120, 0.32);
  animation: signalPulse 2.4s ease-out infinite;
}

.hero-signal strong,
.hero-signal span {
  display: block;
}

.hero-signal strong {
  color: var(--ink);
  font-size: 11px;
}

.hero-signal span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.section {
  padding-block: 104px;
}

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

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

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.55fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 54px;
}

.section-heading h2 {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.feature-item {
  min-height: 238px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 29px;
  background: rgba(255, 255, 255, 0.55);
  transition: background 180ms ease, transform 180ms ease;
}

.feature-item:hover {
  position: relative;
  z-index: 1;
  background: var(--surface);
  box-shadow: inset 4px 0 0 var(--brand);
}

.feature-index {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--brand);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.feature-index::after {
  width: 24px;
  height: 1px;
  background: currentColor;
  content: "";
}

.feature-item h3 {
  margin: 35px 0 11px;
  font-size: 19px;
  line-height: 1.35;
}

.feature-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.message-layout {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 84px;
  align-items: center;
}

.message-copy h2,
.platform-copy h2,
.architecture-copy h2,
.developer-copy h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.18;
  letter-spacing: 0;
}

.message-copy > p,
.platform-copy > p,
.architecture-copy > p,
.developer-copy > p {
  margin: 22px 0 0;
  color: var(--ink-soft);
  line-height: 1.9;
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: #344154;
  font-size: 14px;
}

.check-list li::before {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border: 1px solid #8eabea;
  border-radius: 50%;
  color: var(--brand);
  content: "\2713";
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

.message-board {
  margin-top: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 22px 54px rgba(45, 65, 96, 0.1);
  overflow: hidden;
}

.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
}

.board-header strong {
  font-size: 14px;
}

.board-header span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.message-stream {
  display: grid;
  gap: 13px;
  padding: 24px;
  background-color: #f7f9fc;
  background-image: linear-gradient(rgba(82, 104, 136, 0.045) 1px, transparent 1px);
  background-size: 100% 36px;
}

.stream-row {
  display: flex;
  gap: 11px;
  align-items: flex-end;
}

.stream-row.is-own {
  justify-content: flex-end;
}

.stream-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
}

.stream-bubble {
  max-width: 74%;
  border: 1px solid var(--line);
  border-radius: 4px 8px 8px 8px;
  padding: 10px 12px;
  background: #fff;
  color: #354256;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
}

.stream-row.is-own .stream-bubble {
  border-color: #bdcdf5;
  border-radius: 8px 4px 8px 8px;
  background: var(--brand-soft);
  color: #1c418f;
}

.quote-line {
  display: block;
  margin-bottom: 7px;
  border-left: 2px solid var(--brand);
  padding-left: 8px;
  color: var(--muted);
  font-size: 11px;
}

.file-line {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 11px;
  align-items: center;
  width: min(100%, 390px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.file-line-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 46px;
  border-radius: 4px;
  background: var(--coral-soft);
  color: var(--coral);
  font-size: 11px;
  font-weight: 800;
}

.file-line strong,
.file-line span {
  display: block;
}

.file-line strong {
  color: #344154;
  font-size: 12px;
}

.file-line span {
  color: var(--muted);
  font-size: 10px;
}

.file-status {
  color: var(--teal) !important;
  font-weight: 700;
}

.platform-layout {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: 90px;
  align-items: start;
}

.platform-table {
  border-top: 1px solid var(--line-strong);
}

.platform-row {
  display: grid;
  grid-template-columns: 52px 155px 1fr;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line-strong);
  padding: 22px 0;
}

.platform-number {
  color: var(--brand);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.platform-row h3,
.platform-row p {
  margin: 0;
}

.platform-row h3 {
  font-size: 16px;
}

.platform-row p {
  color: var(--ink-soft);
  font-size: 13px;
}

.architecture-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 80px;
}

.architecture-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.flow-node {
  position: relative;
  min-height: 172px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  padding: 20px 16px;
}

.flow-node:last-child {
  border-right: 0;
}

.flow-node::after {
  content: "\2192";
  position: absolute;
  right: -11px;
  top: 50%;
  z-index: 2;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  font-size: 12px;
  line-height: 19px;
  text-align: center;
}

.flow-node:last-child::after {
  display: none;
}

.flow-node small {
  color: var(--brand);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}

.flow-node strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.flow-node span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.developer-band {
  border-block: 1px solid #b9c9ed;
  background: #eaf0ff;
}

.developer-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 70px;
  align-items: center;
  padding-block: 76px;
}

.developer-copy {
  max-width: 720px;
}

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

.developer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 170px;
  border: 1px solid #a9bce8;
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.72);
  color: #1d3977;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.developer-link:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  background: #fff;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #101827;
  color: #d5dce7;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  padding-block: 48px 38px;
}

.footer-brand .brand-link {
  color: #fff;
}

.footer-brand p {
  max-width: 500px;
  margin: 17px 0 0;
  color: #9aa7ba;
  font-size: 13px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 10px 34px;
  align-content: start;
}

.footer-links a {
  color: #c6d0de;
  font-size: 13px;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid #283347;
  padding-block: 20px 24px;
  color: #8190a5;
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand);
  box-shadow: 0 10px 28px rgba(45, 65, 96, 0.17);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

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

/* Legal pages */
.legal-body {
  background: #f8f9fb;
}

.legal-hero {
  border-bottom: 1px solid var(--line);
  padding-block: 24px 20px;
  background-color: #fff;
  background-image: linear-gradient(rgba(73, 92, 120, 0.045) 1px, transparent 1px);
  background-size: 100% 36px;
}

.legal-hero .eyebrow {
  margin-bottom: 14px;
}

.legal-hero h1 {
  margin: 0;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.16;
  letter-spacing: 0;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  color: var(--muted);
  font-size: 13px;
}

.draft-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  max-width: 840px;
  margin-top: 28px;
  border-left: 3px solid var(--amber);
  padding: 12px 15px;
  background: var(--amber-soft);
  color: #704700;
  font-size: 13px;
  line-height: 1.7;
}

.draft-notice strong {
  white-space: nowrap;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
  padding-block: 58px 110px;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-height) + 26px);
}

.legal-toc h2 {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.legal-toc nav {
  display: grid;
  border-left: 1px solid var(--line-strong);
}

.legal-toc a {
  margin-left: -1px;
  border-left: 2px solid transparent;
  padding: 6px 0 6px 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease;
}

.legal-toc a:hover,
.legal-toc a.is-active {
  border-left-color: var(--brand);
  color: var(--brand-dark);
}

.legal-article {
  min-width: 0;
  color: #293548;
  font-size: 15px;
  line-height: 1.95;
}

.legal-intro {
  margin: 0 0 44px;
  color: #344154;
  font-size: 16px;
}

.legal-section {
  margin-top: 52px;
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.legal-section:first-of-type {
  margin-top: 0;
}

.legal-section h2 {
  margin: 0 0 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  color: var(--ink);
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: 0;
}

.legal-section h3 {
  margin: 27px 0 10px;
  color: #1d293b;
  font-size: 16px;
  line-height: 1.55;
}

.legal-section p {
  margin: 13px 0;
}

.legal-section ul,
.legal-section ol {
  margin: 13px 0;
  padding-left: 1.45em;
}

.legal-section li {
  margin: 8px 0;
  padding-left: 0.25em;
}

.legal-section strong {
  color: #172033;
}

.legal-section a {
  color: var(--brand-dark);
}

.legal-callout {
  margin: 20px 0;
  border: 1px solid #c7d5f6;
  border-radius: var(--radius-sm);
  padding: 15px 17px;
  background: #eef3ff;
  color: #2d477f;
}

.legal-warning {
  border-color: #ead49d;
  background: #fff8e5;
  color: #6d4c08;
}

.legal-table-wrap {
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
}

.legal-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.65;
}

.legal-table th,
.legal-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.legal-table th:last-child,
.legal-table td:last-child {
  border-right: 0;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table th {
  background: #f0f3f7;
  color: #273449;
  font-weight: 750;
}

.placeholder {
  border-radius: 3px;
  padding: 1px 5px;
  background: #fff0c9;
  color: #7c5100;
  font-weight: 700;
}

.contact-block {
  margin-top: 22px;
  border-left: 3px solid var(--brand);
  padding: 4px 0 4px 18px;
}

.contact-block p {
  margin: 4px 0;
}

.legal-endnote {
  margin-top: 58px;
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

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

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

.hero-copy > * {
  animation: heroEnter 650ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-copy > :nth-child(2) { animation-delay: 80ms; }
.hero-copy > :nth-child(3) { animation-delay: 160ms; }
.hero-copy > :nth-child(4) { animation-delay: 240ms; }
.hero-copy > :nth-child(5) { animation-delay: 320ms; }
.workspace-demo { animation: heroEnter 760ms 220ms both cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes heroEnter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes messageFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes signalPulse {
  0% { transform: scale(0.7); opacity: 1; }
  80%, 100% { transform: scale(1.7); opacity: 0; }
}

@media (max-width: 1050px) {
  .hero-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 56px;
    padding-block: 70px 92px;
  }

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

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

  .message-layout,
  .platform-layout,
  .architecture-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .message-copy,
  .platform-copy,
  .architecture-copy {
    max-width: 740px;
  }

  .developer-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .developer-links {
    width: min(600px, 100%);
  }

  .legal-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 45px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 64px;
  }

  .container,
  .narrow-container {
    width: min(100% - 32px, 720px);
  }

  .js .menu-toggle {
    display: inline-flex;
  }

  .site-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 8px;
    background: #fff;
    box-shadow: var(--shadow-lg);
  }

  .js .site-menu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

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

  .site-menu a {
    padding: 12px;
  }

  .site-menu a:not(.nav-action)::after {
    display: none;
  }

  .site-menu .nav-action {
    grid-column: 1 / -1;
    margin-top: 6px;
  }

  html:not(.js) .site-header {
    position: static;
    height: auto;
  }

  html:not(.js) .site-nav {
    flex-wrap: wrap;
    padding-block: 11px;
  }

  html:not(.js) .site-menu {
    position: static;
    flex: 1 0 100%;
    box-shadow: none;
  }

  .section {
    padding-block: 78px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 36px;
  }

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

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

  .flow-node {
    min-height: 116px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-node:last-child {
    border-bottom: 0;
  }

  .flow-node::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -11px;
    transform: translateX(-50%) rotate(90deg);
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 34px;
  }

  .legal-toc {
    position: static;
    overflow: hidden;
  }

  .legal-toc nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-left: 0;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }

  .legal-toc a {
    flex: none;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 7px 10px;
    background: #fff;
  }

  .legal-toc a:hover,
  .legal-toc a.is-active {
    border-color: var(--brand);
    background: var(--brand-soft);
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .brand-link small {
    display: none;
  }

  .hero-layout {
    gap: 43px;
    padding-block: 54px 72px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .hero h1 span {
    margin-top: 13px;
    font-size: 25px;
  }

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

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .demo-main {
    height: 340px;
    grid-template-columns: 42px 1fr;
  }

  .demo-rail {
    gap: 10px;
  }

  .demo-avatar,
  .demo-rail-button {
    width: 27px;
    height: 27px;
    font-size: 9px;
  }

  .demo-list {
    display: none;
  }

  .demo-chat {
    grid-template-rows: 46px 1fr 52px;
  }

  .hero-signal {
    right: 10px;
    bottom: -30px;
  }

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

  .feature-item {
    min-height: auto;
    padding: 24px;
  }

  .feature-item h3 {
    margin-top: 22px;
  }

  .message-stream {
    padding: 16px;
  }

  .stream-bubble {
    max-width: 82%;
  }

  .file-line {
    grid-template-columns: 38px 1fr;
  }

  .file-status {
    display: none !important;
  }

  .platform-row {
    grid-template-columns: 35px 1fr;
    gap: 8px 12px;
  }

  .platform-row p {
    grid-column: 2;
  }

  .developer-links {
    grid-template-columns: 1fr;
  }

  .developer-link {
    min-width: 0;
  }

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

  .footer-bottom {
    display: grid;
  }

  .legal-hero {
    padding-block: 24px 20px;
  }

  .legal-hero h1 {
    font-size: 39px;
  }

  .draft-notice {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .legal-layout {
    padding-bottom: 80px;
  }

  .legal-article {
    font-size: 14px;
    line-height: 1.9;
  }

  .legal-section {
    margin-top: 43px;
  }

  .legal-section h2 {
    font-size: 22px;
  }
}

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

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

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

@media print {
  :root {
    --paper: #fff;
  }

  .site-header,
  .legal-toc,
  .site-footer,
  .back-to-top,
  .skip-link {
    display: none !important;
  }

  body,
  .legal-body {
    background: #fff;
    color: #111;
    font-size: 11pt;
  }

  .legal-hero {
    border-bottom: 1px solid #aaa;
    padding: 0 0 24px;
    background: #fff;
  }

  .legal-layout {
    display: block;
    width: 100%;
    padding: 28px 0 0;
  }

  .narrow-container {
    width: 100%;
  }

  .draft-notice {
    display: none;
  }

  .legal-section {
    break-inside: avoid-page;
  }

  .legal-section h2 {
    color: #111;
  }

  .legal-table-wrap {
    overflow: visible;
  }

  .legal-table {
    min-width: 0;
  }

  a {
    color: #111 !important;
    text-decoration: none;
  }
}

/* Signal Board visual refresh */
:root {
  --paper: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #edf2f8;
  --ink: #0b1730;
  --ink-soft: #46566f;
  --muted: #718097;
  --line: #d9e1ec;
  --line-strong: #bdcadd;
  --brand: #2f64e8;
  --brand-dark: #1742b0;
  --brand-soft: #e5ecff;
  --teal: #008e83;
  --teal-soft: #def7f1;
  --coral: #e35a4c;
  --coral-soft: #ffebe7;
  --amber: #a96000;
  --amber-soft: #fff5d9;
  --signal: #dcff55;
  --night: #0b1730;
  --shadow-sm: 0 2px 4px rgba(28, 48, 82, 0.06);
  --shadow-lg: 0 32px 80px rgba(29, 58, 110, 0.16);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.site-header {
  height: 76px;
  background: rgba(244, 247, 251, 0.86);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
}

.brand-link {
  gap: 11px;
  font-size: 19px;
  letter-spacing: 0.01em;
}

.brand-link img {
  width: 38px;
  height: 38px;
}

.site-menu {
  gap: 28px;
}

.site-menu a {
  color: #3c4b63;
  font-size: 13px;
}

.nav-action,
.button {
  border-radius: 999px;
}

.nav-action {
  min-height: 40px;
  padding: 8px 16px;
  box-shadow: 0 8px 22px rgba(47, 100, 232, 0.2);
}

.hero {
  min-height: 690px;
  border-bottom-color: #ced8e7;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(57, 83, 119, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 83, 119, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 42%;
  background: #e3eaff;
  clip-path: polygon(17% 0, 100% 0, 100% 84%, 72% 100%, 0 100%, 9% 58%);
}

.hero::after {
  z-index: 0;
  background: linear-gradient(90deg, rgba(244, 247, 251, 0.98) 0%, rgba(244, 247, 251, 0.88) 34%, rgba(244, 247, 251, 0.18) 80%);
}

.hero-layout {
  min-height: 690px;
  grid-template-columns: minmax(0, 0.9fr) minmax(560px, 1.1fr);
  gap: 58px;
  padding-block: 82px 94px;
}

.hero-layout::after {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--brand-dark);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 3px;
  border-radius: 99px;
  background: var(--signal);
  box-shadow: 8px 0 0 var(--brand);
}

.hero h1 {
  max-width: 600px;
  color: var(--night);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: clamp(56px, 6vw, 82px);
  font-weight: 800;
  line-height: 0.98;
}

.hero h1 span {
  max-width: 470px;
  margin-top: 22px;
  color: var(--brand);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: clamp(26px, 3.1vw, 42px);
  font-weight: 750;
  line-height: 1.18;
}

.hero-summary {
  max-width: 530px;
  margin-top: 30px;
  color: #52627a;
  font-size: 16px;
  line-height: 1.9;
}

.hero-actions {
  gap: 13px;
  margin-top: 31px;
}

.button {
  min-height: 46px;
  padding: 10px 20px;
}

.button--secondary {
  border-color: #b8c5d8;
  background: rgba(255, 255, 255, 0.66);
}

.hero-note {
  gap: 9px 20px;
  margin-top: 25px;
  font-size: 12px;
}

.hero-note li::before {
  width: 7px;
  height: 7px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 142, 131, 0.1);
}

.hero-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 23px;
}

.hero-stack span {
  border: 1px solid #c6d2e3;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.58);
  color: #60718b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}

.workspace-demo {
  z-index: 2;
  border-color: #aebdd3;
  border-radius: 14px;
  box-shadow: 0 32px 72px rgba(31, 61, 115, 0.2), 0 0 0 10px rgba(255, 255, 255, 0.44);
  transform-origin: 52% 55%;
  animation: workspaceEnter 820ms 240ms both cubic-bezier(0.22, 1, 0.36, 1);
  transition: transform 320ms ease, box-shadow 320ms ease;
}

.workspace-demo:hover {
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg) rotateZ(-0.4deg) translateY(-5px);
  box-shadow: 0 40px 88px rgba(31, 61, 115, 0.24), 0 0 0 10px rgba(255, 255, 255, 0.6);
}

.demo-titlebar {
  height: 46px;
  padding: 0 17px;
  background: #f9fbfe;
}

.window-dots i:nth-child(1) { background: #ff8576; }
.window-dots i:nth-child(2) { background: #ffc657; }
.window-dots i:nth-child(3) { background: #54c79b; }

.demo-main {
  height: 442px;
}

.demo-rail {
  background: var(--night);
}

.demo-avatar {
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(220, 255, 85, 0.18);
}

.demo-thread.is-active {
  background: #e7edff;
  box-shadow: inset 3px 0 0 var(--brand);
}

.demo-chat {
  background: #fff;
}

.demo-chat-header {
  background: #fbfdff;
}

.demo-messages {
  background-color: #f5f8fc;
  background-image: radial-gradient(#cbd6e5 0.7px, transparent 0.7px);
}

.demo-message.is-own {
  border-color: #a9bffa;
  background: var(--brand-soft);
}

.hero-signal {
  right: -25px;
  bottom: -29px;
  border-radius: 12px;
  border-color: #acbdd5;
  box-shadow: 0 18px 38px rgba(29, 58, 110, 0.19);
}

.signal-pulse {
  background: #ecffd1;
}

.signal-pulse::before {
  background: var(--teal);
}

.signal-strip {
  overflow: hidden;
  border-bottom: 1px solid #152541;
  background: var(--night);
  color: #edf3ff;
}

.signal-strip-track {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 650;
}

.signal-strip-label {
  color: var(--signal);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.signal-strip-track i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(220, 255, 85, 0.12);
}

.section {
  padding-block: 112px;
}

.section--white {
  border-block-color: #d9e1ec;
}

.section-heading {
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.48fr);
  gap: 88px;
  margin-bottom: 46px;
}

.section-heading .eyebrow {
  margin-bottom: 15px;
}

.section-heading h2,
.message-copy h2,
.platform-copy h2,
.architecture-copy h2,
.developer-copy h2 {
  color: var(--night);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-weight: 800;
}

.section-heading h2 {
  font-size: clamp(34px, 4vw, 57px);
  line-height: 1.13;
}

.section-heading p:not(.eyebrow) {
  color: #5b6a80;
  font-size: 15px;
}

.feature-grid {
  border-top-color: #b9c7d9;
  border-left-color: #b9c7d9;
}

.feature-item {
  min-height: 220px;
  border-right-color: #b9c7d9;
  border-bottom-color: #b9c7d9;
  padding: 27px 28px 26px;
  background: rgba(255, 255, 255, 0.72);
  transition: background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.feature-item::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 20px;
  border-radius: 99px;
  background: var(--brand);
}

.feature-item:nth-child(2)::before { background: var(--teal); }
.feature-item:nth-child(3)::before { background: var(--coral); }
.feature-item:nth-child(4)::before { background: #e7ac26; }
.feature-item:nth-child(5)::before { background: #7a6bea; }
.feature-item:nth-child(6)::before { background: var(--night); }

.feature-item:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: 0 18px 34px rgba(38, 67, 116, 0.1), inset 4px 0 0 var(--brand);
}

.feature-item h3 {
  margin-top: 25px;
  color: var(--night);
  font-size: 18px;
}

.feature-item p {
  color: #5a6a80;
  font-size: 13px;
}

.message-board {
  border-color: #b9c7d9;
  border-radius: 14px;
  box-shadow: 0 26px 58px rgba(29, 58, 110, 0.13);
}

.board-header {
  padding: 18px 20px;
  background: var(--night);
  color: #fff;
}

.board-header span {
  color: var(--signal);
}

.message-stream {
  padding: 27px;
  background-color: #f4f7fb;
}

.stream-bubble {
  border-color: #cbd5e3;
}

.platform-row {
  grid-template-columns: 52px 178px 1fr;
  padding: 24px 14px 24px 0;
  transition: padding 180ms ease, background 180ms ease;
}

.platform-row:hover {
  padding-left: 12px;
  background: #edf2ff;
}

.platform-number {
  color: var(--brand);
  font-weight: 800;
}

.architecture-flow {
  border-color: #b9c7d9;
  border-radius: 14px;
  box-shadow: 0 20px 46px rgba(29, 58, 110, 0.09);
}

.flow-node small {
  color: var(--brand-dark);
}

.developer-band {
  border-block-color: #bedb43;
  background: var(--signal);
}

.developer-copy h2,
.developer-copy > p,
.developer-copy .eyebrow {
  color: var(--night);
}

.developer-copy .eyebrow::before {
  background: var(--night);
  box-shadow: 8px 0 0 var(--brand);
}

.developer-links {
  gap: 9px;
}

.developer-link {
  border-color: #a8bf31;
  background: rgba(255, 255, 255, 0.54);
  color: var(--night);
}

.developer-link:hover {
  border-color: var(--night);
  background: #fff;
}

.legal-hero h1,
.legal-section h2 {
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-weight: 800;
}

.js [data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity 420ms ease, transform 420ms ease;
}

@keyframes workspaceEnter {
  from { opacity: 0; transform: perspective(1200px) translateY(24px) rotateY(-12deg) rotateX(3deg) rotateZ(-1.5deg); }
  to { opacity: 1; transform: perspective(1200px) rotateY(-7deg) rotateX(2deg) rotateZ(-0.8deg); }
}

@media (max-width: 1050px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 55px;
    padding-block: 72px 96px;
  }

  .hero::before {
    inset: 36% 0 0 0;
    clip-path: polygon(13% 0, 100% 0, 100% 90%, 70% 100%, 0 100%, 6% 46%);
  }

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

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

  .section-heading {
    gap: 42px;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: 64px;
  }

  .site-nav {
    position: relative;
  }

  .menu-toggle {
    display: inline-flex !important;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 4;
    flex: none;
    border-color: #b8c5d8;
    background: rgba(255, 255, 255, 0.84);
  }

  .hero-layout {
    min-height: auto;
  }

  .signal-strip-track {
    width: max-content;
    min-width: 100%;
    gap: 21px;
    padding-inline: 16px;
  }

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

  .workspace-demo {
    transform: none;
  }

  .workspace-demo:hover {
    transform: translateY(-3px);
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: auto;
  }

  .hero-layout {
    gap: 43px;
    padding-block: 56px 78px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .hero h1 span {
    margin-top: 14px;
    font-size: 26px;
  }

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

  .hero-layout::after {
    display: none;
  }

  .hero-signal {
    right: 8px;
  }

  .section {
    padding-block: 82px;
  }

  .feature-item::before {
    margin-bottom: 15px;
  }

  .developer-layout {
    padding-block: 70px;
  }
}

@media print {
  :root {
    --paper: #fff;
  }

  body,
  .legal-body {
    background: #fff;
  }

  .signal-strip {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-demo {
    animation: none;
  }
}

/* Product homepage refresh */
.hero-proof { display:flex; align-items:center; gap:9px; margin:24px 0 0; color:#60718b; font-size:12px; }
.proof-dot { width:8px; height:8px; border-radius:50%; background:var(--signal); box-shadow:0 0 0 5px rgba(220,255,85,.18); }
.workspace-stage { position:relative; z-index:2; padding:24px 0 16px 18px; }
.workspace-stage::before { content:""; position:absolute; inset:0 -8% 7% 9%; border-radius:36px; background:linear-gradient(135deg,rgba(255,255,255,.62),rgba(210,222,255,.55)); transform:rotate(-6deg); }
.stage-orbit { position:absolute; display:block; border:1px solid rgba(47,100,232,.22); border-radius:50%; pointer-events:none; }
.stage-orbit--one { width:84px; height:84px; right:0; top:8%; animation:orbitDrift 9s ease-in-out infinite; }
.stage-orbit--two { width:34px; height:34px; left:2%; bottom:7%; border-color:rgba(0,142,131,.4); animation:orbitDrift 6s ease-in-out -2s infinite reverse; }
.workspace-stage .workspace-demo { position:relative; }
.hero-carousel-controls { position:absolute; left:28px; bottom:-4px; z-index:8; display:flex; align-items:center; gap:9px; border:1px solid rgba(174,189,211,.88); border-radius:999px; padding:5px 7px; background:rgba(255,255,255,.88); box-shadow:0 10px 24px rgba(29,58,110,.12); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }
.hero-carousel-arrow { display:grid; place-items:center; width:27px; height:27px; border:0; border-radius:50%; background:transparent; color:var(--night); font-size:14px; line-height:1; cursor:pointer; transition:background .18s ease,color .18s ease,transform .18s ease; }
.hero-carousel-arrow:hover { background:var(--brand-soft); color:var(--brand-dark); transform:translateY(-1px); }
.hero-carousel-count { min-width:47px; color:#5f718b; font:700 10px ui-monospace,SFMono-Regular,Menlo,monospace; text-align:center; }
.hero-carousel-dots { display:flex; align-items:center; gap:5px; }
.hero-carousel-dots button { width:6px; height:6px; border:0; border-radius:50%; padding:0; background:#c5d0df; cursor:pointer; transition:transform .18s ease,background .18s ease; }
.hero-carousel-dots button.is-active { transform:scale(1.45); background:var(--brand); }
.feature-grid--product { grid-template-columns:repeat(4,1fr); border:0; gap:14px; }
.feature-grid--product .feature-item { min-height:338px; border:1px solid #c3cfdf; border-radius:14px; padding:24px; background:#fff; box-shadow:0 10px 28px rgba(31,61,115,.05); overflow:hidden; }
.feature-grid--product .feature-item::after { content:""; position:absolute; width:160px; height:160px; right:-72px; bottom:-72px; border-radius:50%; background:var(--feature-tint,#e5ecff); transition:transform .35s ease; }
.feature-grid--product .feature-item:hover::after { transform:scale(1.35); }
.feature-grid--product .feature-item:hover { transform:translateY(-8px); border-color:var(--brand); box-shadow:0 22px 42px rgba(31,61,115,.14); }
.feature-item--blue { --feature-tint:#e5ecff; }
.feature-item--teal { --feature-tint:#def7f1; }
.feature-item--coral { --feature-tint:#ffebe7; }
.feature-item--lime { --feature-tint:#efffc1; }
.feature-icon { position:relative; z-index:1; display:grid; place-items:center; width:44px; height:44px; margin-bottom:44px; border-radius:12px; background:var(--feature-tint,#e5ecff); color:var(--night); font-size:22px; font-weight:800; }
.feature-grid--product .feature-index { position:relative; z-index:1; color:#718097; font-size:10px; letter-spacing:.08em; }
.feature-grid--product .feature-index::after { display:none; }
.feature-grid--product h3,.feature-grid--product p,.feature-grid--product .text-link { position:relative; z-index:1; }
.feature-grid--product h3 { margin:12px 0 10px; font-size:21px; }
.feature-grid--product p { min-height:82px; margin:0; color:#60718b; font-size:13px; line-height:1.75; }
.text-link { display:inline-flex; align-items:center; gap:8px; color:var(--brand-dark); font-size:13px; font-weight:750; text-decoration:none; }
.text-link span { transition:transform .2s ease; }
.text-link:hover span { transform:translateX(4px); }
.workflow-board { transform:rotate(1.6deg); transition:transform .35s ease,box-shadow .35s ease; }
.workflow-board:hover { transform:rotate(0) translateY(-7px); box-shadow:0 30px 64px rgba(29,58,110,.17); }
.section-heading--center { display:block; max-width:740px; margin:0 auto 48px; text-align:center; }
.section-heading--center .eyebrow { justify-content:center; }
.section-heading--center .eyebrow::before { display:none; }
.section-heading--center h2 { margin-top:0; }
.section-heading--center > p:last-child { max-width:590px; margin:20px auto 0; }
.platforms-section { background:#f4f7fb; }
.platform-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.platform-cards article { position:relative; min-height:235px; border:1px solid #c6d2e1; border-radius:14px; padding:23px; background:#fff; overflow:hidden; transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.platform-cards article::before { content:""; position:absolute; inset:auto -30px -55px auto; width:140px; height:140px; border-radius:50%; background:#edf2ff; }
.platform-cards article:nth-child(2)::before { background:#e5faf5; }.platform-cards article:nth-child(3)::before { background:#fff0ed; }.platform-cards article:nth-child(4)::before { background:#efffc1; }
.platform-cards article:hover { transform:translateY(-7px); border-color:var(--brand); box-shadow:0 20px 38px rgba(31,61,115,.12); }
.platform-card-number { color:var(--brand); font:700 11px ui-monospace,SFMono-Regular,Menlo,monospace; }
.platform-card-icon { position:relative; z-index:1; display:grid; place-items:center; width:50px; height:50px; margin:31px 0 17px; border-radius:14px; background:var(--night); color:var(--signal); font-size:23px; }
.platform-cards h3 { position:relative; z-index:1; margin:0 0 8px; font-size:18px; }.platform-cards p { position:relative; z-index:1; margin:0; color:#60718b; font-size:13px; line-height:1.7; }
.pricing-section { padding:112px 0 120px; background:#e8edff; }
.pricing-toggle { display:flex; justify-content:center; gap:4px; width:max-content; margin:0 auto 34px; padding:4px; border:1px solid #bbc9e1; border-radius:999px; background:rgba(255,255,255,.75); }
.pricing-toggle button { border:0; border-radius:999px; padding:9px 16px; background:transparent; color:#64748b; font:700 12px inherit; cursor:pointer; }.pricing-toggle button.is-active { background:var(--night); color:#fff; }.pricing-toggle button span { margin-left:4px; color:var(--teal); }.pricing-toggle button.is-active span { color:var(--signal); }
.pricing-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:15px; align-items:stretch; }
.price-card { position:relative; border:1px solid #bdcbe0; border-radius:16px; padding:31px 28px 27px; background:rgba(255,255,255,.82); box-shadow:0 10px 26px rgba(31,61,115,.06); transition:transform .3s ease,box-shadow .3s ease; }.price-card:hover { transform:translateY(-8px); box-shadow:0 24px 44px rgba(31,61,115,.14); }.price-card--featured { border:2px solid var(--brand); background:var(--night); color:#fff; box-shadow:0 22px 48px rgba(18,45,108,.22); transform:translateY(-12px); }.price-card--featured:hover { transform:translateY(-18px); }
.price-badge { position:absolute; top:18px; right:18px; border-radius:999px; padding:5px 9px; background:var(--signal); color:var(--night); font-size:10px; font-weight:800; }.price-kicker { margin:0; color:var(--brand-dark); font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }.price-card--featured .price-kicker { color:var(--signal); }.price-card h3 { margin:10px 0 10px; font-size:29px; letter-spacing:-.02em; }.price-description { min-height:50px; margin:0; color:#64748b; font-size:13px; line-height:1.65; }.price-card--featured .price-description { color:#c2cee5; }.price { display:flex; align-items:baseline; gap:6px; margin:27px 0 21px; }.price strong { font-size:38px; line-height:1; }.price span { color:#72819a; font-size:12px; }.price-card--featured .price span { color:#b3c0da; }.price-card .button { width:100%; }.price-card ul { display:grid; gap:10px; margin:25px 0 0; padding:21px 0 0; border-top:1px solid #d7dfeb; list-style:none; }.price-card--featured ul { border-color:#2d3d5d; }.price-card li { color:#506078; font-size:13px; }.price-card--featured li { color:#dce5f5; }.price-card li::before { content:"✓"; margin-right:9px; color:var(--teal); font-weight:800; }.price-card--featured li::before { color:var(--signal); }.pricing-note { margin:25px 0 0; text-align:center; color:#64748b; font-size:12px; }
.faq-section { padding-block:104px; }.faq-layout { display:grid; grid-template-columns:.75fr 1.25fr; gap:90px; align-items:start; }.faq-layout h2 { margin:0; color:var(--night); font:800 clamp(35px,3.2vw,44px)/1.14 "Avenir Next","PingFang SC",sans-serif; white-space:nowrap; }.faq-intro { max-width:340px; margin:22px 0 23px; color:#60718b; line-height:1.8; }.faq-list { border-top:1px solid #bdc9d9; }.faq-list details { border-bottom:1px solid #bdc9d9; }.faq-list summary { display:flex; justify-content:space-between; gap:20px; padding:22px 0; color:var(--night); font-size:16px; font-weight:750; cursor:pointer; list-style:none; }.faq-list summary::-webkit-details-marker { display:none; }.faq-list summary span { color:var(--brand); font-size:23px; font-weight:400; transition:transform .25s ease; }.faq-list details[open] summary span { transform:rotate(45deg); }.faq-list details p { max-width:660px; margin:-4px 35px 23px 0; color:#60718b; font-size:14px; line-height:1.8; animation:faqOpen .3s ease both; }
.final-cta { padding:0 0 104px; background:#fff; }.final-cta-inner { position:relative; display:flex; align-items:center; justify-content:space-between; gap:40px; overflow:hidden; border-radius:18px; padding:57px 62px; background:var(--night); color:#fff; }.final-cta-inner::after { content:""; position:absolute; width:330px; height:330px; right:-80px; top:-160px; border:1px solid rgba(220,255,85,.35); border-radius:50%; box-shadow:0 0 0 25px rgba(220,255,85,.05),0 0 0 58px rgba(220,255,85,.04); }.final-cta-inner h2 { position:relative; z-index:1; max-width:680px; margin:0; font:800 clamp(30px,3vw,42px)/1.14 "Avenir Next","PingFang SC",sans-serif; white-space:nowrap; }.final-cta-inner p:last-child { position:relative; z-index:1; margin:17px 0 0; color:#c0cce2; }.button--light { position:relative; z-index:1; flex:none; background:var(--signal); color:var(--night)!important; box-shadow:0 12px 26px rgba(220,255,85,.17); }.button--light:hover { background:#efffb1; }
@keyframes orbitDrift { 0%,100%{transform:translate(0,0) rotate(0)} 50%{transform:translate(-10px,12px) rotate(18deg)} }
@keyframes faqOpen { from{opacity:0;transform:translateY(-5px)} to{opacity:1;transform:translateY(0)} }

@media (max-width:1050px) { .feature-grid--product,.platform-cards { grid-template-columns:repeat(2,1fr); }.faq-layout { gap:50px; }.final-cta-inner { padding:48px; } }
@media (max-width:820px) { .workspace-stage { padding-left:0; }.feature-grid--product { gap:10px; }.pricing-grid { grid-template-columns:1fr; max-width:560px; margin:0 auto; }.price-card--featured { transform:none; order:-1; }.price-card--featured:hover { transform:translateY(-8px); }.faq-layout { grid-template-columns:1fr; gap:48px; }.faq-layout h2,.final-cta-inner h2 { white-space:normal; }.final-cta-inner { display:block; padding:44px 28px; }.final-cta-inner .button { margin-top:28px; } }
@media (max-width:620px) { .hero-proof { align-items:flex-start; }.feature-grid--product,.platform-cards { grid-template-columns:1fr; }.feature-grid--product .feature-item { min-height:280px; }.feature-icon { margin-bottom:28px; }.feature-grid--product p { min-height:0; margin-bottom:18px; }.signal-strip-track { width:100%; min-width:0; gap:6px; justify-content:space-between; padding-inline:16px; font-size:10px; }.signal-strip-track span { white-space:nowrap; }.hero-carousel-controls { top:12px; right:8px; bottom:auto; left:auto; transform:scale(.92); transform-origin:top right; }.pricing-section { padding-block:82px 88px; }.pricing-toggle { width:100%; }.pricing-toggle button { flex:1; }.final-cta { padding-bottom:80px; }.final-cta-inner h2 { font-size:34px; } }

@media (prefers-reduced-motion: reduce) { .stage-orbit,.workflow-board,.platform-cards article,.price-card,.feature-grid--product .feature-item { animation:none!important; transition:none!important; transform:none!important; } }

/* Final spacing pass: keep the page airy without decorative line noise. */
.hero {
  border-bottom: 0;
  background-image: none;
}

.signal-strip {
  border-bottom: 0;
}

.section {
  padding-block: 88px;
}

.section--white {
  border-block: 0;
}

.section-heading {
  gap: 56px;
  margin-bottom: 36px;
}

.section-heading--center {
  margin-bottom: 36px;
}

.feature-grid--product .feature-item {
  min-height: 300px;
}

.feature-grid--product .feature-item::before {
  display: none;
}

.feature-icon {
  margin-bottom: 30px;
}

.workflow-section,
.faq-section {
  padding-block: 88px;
}

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

.final-cta {
  padding-bottom: 82px;
}

.legal-hero {
  padding-block: 24px 20px;
}

.legal-layout {
  padding-block: 44px 84px;
}

.legal-toc {
  top: 26px;
}

/* Align the workflow showcase with the product card system above and below. */
.workflow-section {
  background: #f4f7fb;
}

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(390px, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: stretch;
}

.workflow-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  border: 1px solid #c6d2e1;
  border-radius: 14px;
  padding: 34px 34px 32px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 61, 115, 0.06);
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.workflow-copy:hover {
  transform: translateY(-6px);
  border-color: #aebfda;
  box-shadow: 0 22px 42px rgba(31, 61, 115, 0.12);
}

.workflow-copy h2 {
  max-width: 100%;
  margin: 0;
  color: var(--night);
  font: 800 clamp(34px, 2.8vw, 44px)/1.14 "Avenir Next", "PingFang SC", sans-serif;
  white-space: nowrap;
}

.workflow-copy > p {
  max-width: 580px;
  margin: 20px 0 0;
  color: #5b6a80;
  font-size: 15px;
  line-height: 1.85;
}

.workflow-copy .check-list {
  gap: 12px;
  margin-top: 26px;
}

.workflow-copy .check-list li {
  color: #43536b;
  font-size: 14px;
}

.message-board.workflow-board {
  align-self: stretch;
  min-width: 0;
  margin: 0;
  border-color: #c6d2e1;
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(31, 61, 115, 0.1);
  transform: none;
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.message-board.workflow-board:hover {
  transform: translateY(-6px);
  border-color: #aebfda;
  box-shadow: 0 26px 50px rgba(31, 61, 115, 0.15);
}

.message-board.workflow-board .message-stream {
  min-height: 320px;
}

@media (max-width: 1050px) {
  .workflow-layout {
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
    gap: 34px;
  }
}

@media (max-width: 820px) {
  .workflow-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .workflow-copy {
    padding: 28px 24px;
  }

  .workflow-copy h2 {
    max-width: 680px;
    white-space: normal;
  }

  .message-board.workflow-board .message-stream {
    min-height: 300px;
  }
}

@media (max-width: 620px) {
  .workflow-layout {
    gap: 22px;
  }

  .workflow-copy h2 {
    font-size: 34px;
  }

  .workflow-copy > p {
    font-size: 14px;
  }

  .workflow-copy {
    padding: 24px 20px;
  }
}

/* Wider reading measure and a clearer carousel transition on large screens. */
@media (min-width: 1060px) {
  .container {
    width: min(1360px, calc(100% - 48px));
  }

  .narrow-container {
    width: min(1280px, calc(100% - 48px));
  }

  .hero-layout {
    grid-template-columns: minmax(0, 0.94fr) minmax(600px, 1.06fr);
    gap: 62px;
  }

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

  .hero h1,
  .hero-summary {
    max-width: 640px;
  }

  .section-heading h2 {
    max-width: 840px;
  }

  .section-heading p {
    max-width: 700px;
  }

  .section-heading--center {
    max-width: 980px;
  }

  .section-heading--center > p:last-child {
    max-width: 760px;
  }

  .faq-intro {
    max-width: 440px;
  }

  .final-cta-inner h2 {
    max-width: 820px;
  }

  .legal-article {
    max-width: 980px;
  }
}

.workspace-demo {
  --scene-rest: perspective(1200px) rotateY(-7deg) rotateX(2deg) rotateZ(-0.8deg);
  transform: var(--scene-rest);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease;
  will-change: transform, opacity, filter;
}

.workspace-demo.is-carousel-ready {
  animation: none;
  opacity: 1;
  transform: var(--scene-rest);
  filter: none;
}

.workspace-demo::after {
  content: "";
  position: absolute;
  inset: -35% -55%;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-64%) rotate(10deg);
  background: linear-gradient(90deg, transparent 36%, rgba(220, 255, 85, 0.06) 43%, rgba(255, 255, 255, 0.82) 50%, rgba(47, 100, 232, 0.16) 57%, transparent 64%);
  mix-blend-mode: screen;
}

.workspace-demo.is-exiting.is-moving-next {
  animation: sceneExitNext 300ms cubic-bezier(0.55, 0, 1, 0.45) both;
}

.workspace-demo.is-exiting.is-moving-prev {
  animation: sceneExitPrev 300ms cubic-bezier(0.55, 0, 1, 0.45) both;
}

.workspace-demo.is-entering.is-moving-next {
  animation: sceneEnterNext 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.workspace-demo.is-entering.is-moving-prev {
  animation: sceneEnterPrev 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.workspace-demo.is-entering::after {
  animation: sceneLightSweep 620ms 40ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.workspace-demo.is-entering .demo-rail {
  animation: sceneLayerIn 460ms 40ms both cubic-bezier(0.16, 1, 0.3, 1);
}

.workspace-demo.is-entering .demo-list {
  animation: sceneLayerIn 520ms 100ms both cubic-bezier(0.16, 1, 0.3, 1);
}

.workspace-demo.is-entering .demo-chat-header {
  animation: sceneLayerIn 520ms 150ms both cubic-bezier(0.16, 1, 0.3, 1);
}

.workspace-demo.is-entering .demo-message:nth-child(1) {
  animation: sceneMessageIn 520ms 190ms both cubic-bezier(0.16, 1, 0.3, 1);
}

.workspace-demo.is-entering .demo-message:nth-child(2) {
  animation: sceneMessageIn 520ms 250ms both cubic-bezier(0.16, 1, 0.3, 1);
}

.workspace-demo.is-entering .demo-message:nth-child(3) {
  animation: sceneMessageIn 520ms 310ms both cubic-bezier(0.16, 1, 0.3, 1);
}

.workspace-demo.is-entering .demo-composer,
.workspace-demo.is-entering .hero-signal {
  animation: sceneLayerIn 500ms 340ms both cubic-bezier(0.16, 1, 0.3, 1);
}

.hero h1 span.is-exiting {
  animation: sceneLabelExit 260ms ease-in both;
}

.hero h1 span.is-entering {
  animation: sceneLabelEnter 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-carousel-arrow {
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.hero-carousel-arrow:focus-visible {
  box-shadow: 0 0 0 4px rgba(47, 100, 232, 0.18);
}

@keyframes sceneExitNext {
  from { opacity: 1; transform: var(--scene-rest); filter: blur(0) saturate(1); }
  to { opacity: 0; transform: perspective(1200px) translate3d(-78px, 8px, -90px) rotateY(12deg) rotateX(3deg) rotateZ(1.4deg) scale(0.9); filter: blur(9px) saturate(0.72); }
}

@keyframes sceneExitPrev {
  from { opacity: 1; transform: var(--scene-rest); filter: blur(0) saturate(1); }
  to { opacity: 0; transform: perspective(1200px) translate3d(78px, 8px, -90px) rotateY(-16deg) rotateX(3deg) rotateZ(-1.4deg) scale(0.9); filter: blur(9px) saturate(0.72); }
}

@keyframes sceneEnterNext {
  0% { opacity: 0; transform: perspective(1200px) translate3d(100px, 18px, -130px) rotateY(-19deg) rotateX(5deg) rotateZ(-2deg) scale(0.86); filter: blur(12px) saturate(1.35); }
  62% { opacity: 1; transform: perspective(1200px) translate3d(-8px, -3px, 18px) rotateY(-5deg) rotateX(1deg) rotateZ(-0.4deg) scale(1.015); filter: blur(0) saturate(1.06); }
  100% { opacity: 1; transform: var(--scene-rest); filter: blur(0) saturate(1); }
}

@keyframes sceneEnterPrev {
  0% { opacity: 0; transform: perspective(1200px) translate3d(-100px, 18px, -130px) rotateY(12deg) rotateX(5deg) rotateZ(2deg) scale(0.86); filter: blur(12px) saturate(1.35); }
  62% { opacity: 1; transform: perspective(1200px) translate3d(8px, -3px, 18px) rotateY(-5deg) rotateX(1deg) rotateZ(-0.4deg) scale(1.015); filter: blur(0) saturate(1.06); }
  100% { opacity: 1; transform: var(--scene-rest); filter: blur(0) saturate(1); }
}

@keyframes sceneLightSweep {
  0% { opacity: 0; transform: translateX(-64%) rotate(10deg); }
  24% { opacity: 0.86; }
  100% { opacity: 0; transform: translateX(64%) rotate(10deg); }
}

@keyframes sceneLayerIn {
  from { opacity: 0; transform: translate3d(18px, 0, 0); filter: blur(5px); }
  to { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
}

@keyframes sceneMessageIn {
  from { opacity: 0; transform: translate3d(24px, 12px, 0) scale(0.94); filter: blur(4px); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}

@keyframes sceneLabelExit {
  to { opacity: 0; transform: translate3d(-20px, 0, 0); filter: blur(6px); }
}

@keyframes sceneLabelEnter {
  from { opacity: 0; transform: translate3d(28px, 0, 0); filter: blur(8px); }
  to { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
}

@media (max-width: 1059px) and (min-width: 821px) {
  .hero-copy {
    max-width: 740px;
  }

  .hero h1,
  .hero-summary {
    max-width: 740px;
  }

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

  .section-heading p {
    max-width: 640px;
  }
}

@media (max-width: 820px) {
  .workspace-demo {
    --scene-rest: translate3d(0, 0, 0);
    transition: transform 340ms ease, box-shadow 300ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-demo,
  .workspace-demo::after,
  .workspace-demo.is-exiting,
  .workspace-demo.is-entering,
  .workspace-demo.is-entering .demo-rail,
  .workspace-demo.is-entering .demo-list,
  .workspace-demo.is-entering .demo-chat-header,
  .workspace-demo.is-entering .demo-message,
  .workspace-demo.is-entering .demo-composer,
  .workspace-demo.is-entering .hero-signal,
  .hero h1 span.is-exiting,
  .hero h1 span.is-entering {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Mobile density pass: keep sections compact while preserving readable rhythm. */
.legal-hero {
  text-align: center;
}

.legal-hero .narrow-container {
  align-items: center;
}

.legal-meta {
  justify-content: center;
  width: 100%;
  text-align: center;
}

@media (max-width: 820px) {
  .legal-toc {
    display: none;
  }

  .section,
  .workflow-section,
  .faq-section {
    padding-block: 58px;
  }

  .section-heading {
    gap: 14px;
    margin-bottom: 28px;
  }

  .legal-hero {
    padding-block: 28px 16px;
  }

  .legal-hero h1 {
    line-height: 1.2;
  }

  .legal-meta {
    margin-top: 7px;
    gap: 6px 18px;
    line-height: 1.5;
  }

  .legal-layout {
    display: block;
    padding-top: 28px;
  }
}

@media (max-width: 620px) {
  body {
    line-height: 1.6;
  }

  .hero-layout {
    gap: 24px;
    padding-block: 36px 46px;
  }

  .hero-summary {
    margin-top: 15px;
    line-height: 1.55;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 19px;
  }

  .section,
  .workflow-section,
  .faq-section {
    padding-block: 40px;
  }

  .section-heading {
    gap: 8px;
    margin-bottom: 18px;
  }

  .section-heading p:not(.eyebrow) {
    line-height: 1.65;
  }

  .section-heading--center {
    margin-bottom: 20px;
  }

  .section-heading--center > p:last-child {
    margin-top: 8px;
  }

  .feature-grid--product,
  .platform-cards,
  .pricing-grid {
    gap: 10px;
  }

  .feature-grid--product .feature-item {
    min-height: 0;
    padding: 17px;
  }

  .feature-icon {
    margin-bottom: 16px;
  }

  .feature-grid--product h3 {
    margin: 8px 0 7px;
  }

  .feature-grid--product p {
    line-height: 1.55;
    margin-bottom: 11px;
  }

  .platform-cards article {
    min-height: 0;
    padding: 17px;
  }

  .platform-card-icon {
    margin: 18px 0 11px;
  }

  .platform-cards p {
    line-height: 1.55;
  }

  .workflow-layout {
    gap: 10px;
  }

  .workflow-copy {
    padding: 17px 16px;
  }

  .workflow-copy > p {
    margin-top: 11px;
    line-height: 1.6;
  }

  .workflow-copy .check-list {
    gap: 7px;
    margin-top: 14px;
  }

  .message-board.workflow-board .message-stream {
    min-height: 220px;
    padding: 14px;
  }

  .pricing-section {
    padding-block: 42px 48px;
  }

  .pricing-toggle {
    margin-bottom: 16px;
  }

  .price-card {
    padding: 20px 17px 18px;
  }

  .price-description {
    min-height: 0;
    line-height: 1.55;
  }

  .price {
    margin: 17px 0 13px;
  }

  .price-card ul {
    gap: 7px;
    margin-top: 14px;
    padding-top: 13px;
  }

  .faq-layout {
    gap: 18px;
  }

  .faq-intro {
    margin: 11px 0 14px;
    line-height: 1.6;
  }

  .faq-list summary {
    padding: 13px 0;
    line-height: 1.4;
  }

  .faq-list details p {
    margin: -1px 24px 13px 0;
    line-height: 1.6;
  }

  .final-cta {
    padding-bottom: 40px;
  }

  .final-cta-inner {
    padding: 23px 17px;
  }

  .final-cta-inner p:last-child {
    margin-top: 9px;
    line-height: 1.6;
  }

  .final-cta-inner .button {
    margin-top: 16px;
  }

  .legal-layout {
    padding-top: 18px;
    padding-bottom: 38px;
  }

  .legal-article {
    font-size: 14px;
    line-height: 1.68;
  }

  .legal-intro {
    margin-bottom: 24px;
    line-height: 1.68;
  }

  .legal-section {
    margin-top: 28px;
  }

  .legal-section h2 {
    margin-bottom: 11px;
    padding-bottom: 7px;
    line-height: 1.28;
  }

  .legal-section h3 {
    margin: 16px 0 6px;
  }

  .legal-section p {
    margin: 8px 0;
  }

  .legal-section ul,
  .legal-section ol {
    margin: 8px 0;
  }

  .legal-section li {
    margin: 4px 0;
  }

  .legal-callout,
  .legal-table-wrap {
    margin: 14px 0;
  }
}
