
:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-alt: #eef6f5;
  --text: #162029;
  --muted: #5f6f7d;
  --line: #d9e1e6;
  --teal: #0f766e;
  --blue: #2563eb;
  --amber: #b45309;
  --green: #15803d;
  --red: #b91c1c;
  --code: #101827;
}

* { box-sizing: border-box; }

html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand:hover { text-decoration: none; }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 32px 28px 64px;
}

.shell.with-sidebar {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.side-section + .side-section { margin-top: 18px; }
.side-section h2 { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.side-section a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
}
.side-section a.active { background: var(--surface-alt); color: var(--teal); font-weight: 700; }

.content { min-width: 0; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: center;
  min-height: 420px;
  padding: 48px 0;
}

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

h1 {
  margin: 0;
  max-width: 840px;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: 0;
}

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

.lead {
  max-width: 760px;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}

.button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.signal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.signal-panel dl {
  display: grid;
  margin: 0;
}

.signal-panel div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.signal-panel div:last-child { border-bottom: 0; }
.signal-panel dt { font-size: 34px; font-weight: 800; }
.signal-panel dd { margin: 0; color: var(--muted); }

.section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}

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

.tile {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
}

.tile span { color: var(--muted); line-height: 1.55; }
.tile:hover { border-color: var(--teal); text-decoration: none; }

.doc-header {
  padding: 28px 0 8px;
}

.doc-header h1 { font-size: 42px; }
.doc-header p { max-width: 820px; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.badge.green { background: #dcfce7; color: var(--green); }
.badge.blue { background: #dbeafe; color: var(--blue); }
.badge.amber { background: #fef3c7; color: var(--amber); }

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--surface);
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.5;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

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

code {
  color: var(--code);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

pre {
  overflow: auto;
  margin: 0;
  padding: 18px;
  border-radius: 8px;
  background: #101827;
  color: #ecfdf5;
  line-height: 1.6;
}

pre code { color: inherit; }

.search-box {
  display: grid;
  gap: 6px;
  max-width: 420px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-box input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.rule-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 860px) {
  .topbar { align-items: flex-start; flex-direction: column; gap: 12px; padding: 14px 18px; }
  .nav-links { flex-wrap: wrap; gap: 12px; }
  .shell, .shell.with-sidebar { display: block; padding: 22px 18px 48px; }
  .sidebar { position: static; max-height: none; margin-bottom: 20px; }
  .hero, .split, .tile-grid { grid-template-columns: 1fr; }
  h1, .doc-header h1 { font-size: 34px; }
}

:root {
  color-scheme: dark;
  --bg: #0d1524;
  --surface: rgba(24, 36, 55, 0.76);
  --surface-alt: rgba(42, 63, 91, 0.72);
  --text: #f8fbff;
  --muted: #9fb0c5;
  --line: rgba(255, 255, 255, 0.1);
  --teal: #38d6b2;
  --blue: #2481cc;
  --amber: #ffb86b;
  --green: #4ade80;
  --red: #fb7185;
  --code: #d9edff;
  --deep: #09111f;
  --panel: rgba(16, 26, 43, 0.8);
  --panel-strong: rgba(25, 42, 67, 0.88);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(36, 129, 204, 0.16), transparent 32%),
    linear-gradient(220deg, rgba(56, 214, 178, 0.1), transparent 26%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

a { color: #8bd6ff; }
a:hover { color: white; text-decoration: none; }

.topbar {
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 17, 31, 0.78);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(24px);
}

.brand { color: var(--text); }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #69c8ff, var(--blue));
  box-shadow: 0 10px 28px rgba(36, 129, 204, 0.3);
}

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

.nav-links a {
  color: #c4d0df;
  font-weight: 700;
}

.nav-links a:hover { color: white; }

.shell {
  max-width: 1240px;
  padding-top: 30px;
}

.shell.with-sidebar { grid-template-columns: 250px minmax(0, 1fr); }

.content { position: relative; z-index: 1; }

.hero {
  min-height: calc(100vh - 150px);
  padding: 52px 0 56px;
}

.promo-hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: 48px;
  align-items: center;
}

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

.eyebrow {
  color: #8bd6ff;
  font-size: 12px;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  text-wrap: pretty;
}

h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  text-wrap: pretty;
}

h3 { color: var(--text); }

p { color: var(--muted); }

.lead {
  max-width: 650px;
  color: #c9d6e6;
  font-size: 20px;
  line-height: 1.65;
}

.hero-actions { margin-top: 28px; }

.button {
  min-height: 46px;
  padding: 0 18px;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.button:hover {
  border-color: rgba(139, 214, 255, 0.48);
  background: rgba(139, 214, 255, 0.1);
}

.button.primary {
  border-color: rgba(36, 129, 204, 0.88);
  background: linear-gradient(135deg, #3ba7ff, var(--blue));
  color: white;
  box-shadow: 0 18px 42px rgba(36, 129, 204, 0.25);
}

.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #c9d6e6;
  font-size: 13px;
  line-height: 1;
}

.hero-proof strong {
  color: white;
  font-size: 18px;
  line-height: 1;
}

.product-visual {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(28, 45, 70, 0.9), rgba(13, 24, 39, 0.86));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(105, 200, 255, 0.18), transparent 48%), linear-gradient(315deg, rgba(56, 214, 178, 0.14), transparent 48%);
}

.chat-card {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: 88%;
  padding: 14px 16px;
  border-radius: 8px;
  color: white;
  line-height: 1.55;
}

.chat-card.user {
  justify-self: end;
  background: linear-gradient(135deg, #3ba7ff, var(--blue));
  box-shadow: 0 14px 32px rgba(36, 129, 204, 0.24);
}

.chat-card.agent {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 17, 31, 0.72);
  backdrop-filter: blur(18px);
}

.agent-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-head span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(56, 214, 178, 0.16);
  color: #76f0d3;
  font-size: 11px;
  font-weight: 900;
}

.agent-head strong { font-size: 14px; }

.mini-screen {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #0b1322;
}

.mini-nav,
.mini-map,
.mini-button,
.mini-row span,
.mini-row b {
  display: block;
  border-radius: 6px;
}

.mini-nav {
  width: 42%;
  height: 12px;
  background: rgba(255, 255, 255, 0.18);
}

.mini-map {
  height: 92px;
  border: 1px solid rgba(139, 214, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(56, 214, 178, 0.22), transparent 42%),
    linear-gradient(45deg, rgba(36, 129, 204, 0.36), transparent 54%),
    #10233a;
}

.mini-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
}

.mini-row span {
  height: 28px;
  background: rgba(255, 184, 107, 0.18);
}

.mini-row b {
  height: 12px;
  background: rgba(255, 255, 255, 0.16);
}

.mini-row.short b { width: 68%; }

.mini-button {
  height: 34px;
  background: linear-gradient(135deg, #38d6b2, #2481cc);
}

.section {
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.platform-section {
  padding-bottom: 10px;
}

.feature-grid,
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tile {
  min-height: 150px;
  padding: 20px;
  border-color: var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tile strong {
  color: white;
  font-size: 17px;
}

.tile span {
  color: var(--muted);
}

.tile:hover {
  border-color: rgba(139, 214, 255, 0.46);
  background: var(--panel-strong);
}

.split {
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
  gap: 28px;
}

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

.doc-list a {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: white;
}

.doc-list a:hover {
  border-color: rgba(56, 214, 178, 0.45);
  background: rgba(56, 214, 178, 0.08);
}

.doc-list span {
  color: var(--muted);
  line-height: 1.55;
}

.doc-header {
  padding-top: 34px;
}

.doc-header h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.doc-header p {
  color: #c9d6e6;
}

.merged-docs-header {
  padding-bottom: 12px;
}

.doc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.doc-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d9edff;
  font-weight: 700;
  font-size: 13px;
}

.merged-doc {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  overflow-wrap: anywhere;
}

.merged-doc h2 {
  margin-top: 4px;
}

.merged-doc h3 {
  margin: 28px 0 8px;
  font-size: 22px;
}

.merged-doc h4 {
  margin: 22px 0 8px;
  font-size: 17px;
}

.merged-doc ul,
.rule-list {
  color: var(--muted);
  line-height: 1.8;
}

.merged-doc-meta {
  margin-bottom: 10px;
  color: #8bd6ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar,
.signal-panel,
.table-wrap {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.sidebar {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.side-section a { color: #d8e4f2; }
.side-section a.active {
  background: rgba(36, 129, 204, 0.16);
  color: #8bd6ff;
}

table {
  background: transparent;
}

th {
  color: #90a4bb;
}

th,
td {
  border-bottom-color: var(--line);
}

td {
  color: #dbe7f5;
}

code {
  color: var(--code);
  background: rgba(139, 214, 255, 0.08);
  border-radius: 5px;
  padding: 0.08em 0.3em;
}

pre {
  border: 1px solid rgba(139, 214, 255, 0.14);
  border-radius: 8px;
  background: #07101e;
}

pre code {
  background: transparent;
  padding: 0;
}

.badge { background: rgba(255, 255, 255, 0.08); }
.badge.green { background: rgba(74, 222, 128, 0.14); color: #86efac; }
.badge.blue { background: rgba(36, 129, 204, 0.18); color: #8bd6ff; }
.badge.amber { background: rgba(255, 184, 107, 0.16); color: #ffd7a8; }

.search-box input {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

@media (max-width: 980px) {
  .promo-hero,
  .feature-grid,
  .tile-grid,
  .split,
  .doc-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .product-visual {
    max-width: 560px;
  }
}

@media (max-width: 860px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 14px 18px;
  }

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

  .nav-links a {
    min-height: 34px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
  }

  .shell,
  .shell.with-sidebar {
    padding: 20px 16px 52px;
  }

  h1,
  .doc-header h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .merged-doc {
    padding: 18px;
  }

  .merged-doc pre,
  .merged-doc pre code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f6f8fb;
  --text: #111827;
  --muted: #5f6b7a;
  --line: #e5eaf0;
  --teal: #2481cc;
  --blue: #2481cc;
  --amber: #b45309;
  --green: #15803d;
  --red: #b91c1c;
  --code: #172033;
  --deep: #ffffff;
  --panel: #ffffff;
  --panel-strong: #f8fbff;
  --shadow: 0 16px 44px rgba(16, 24, 40, 0.08);
}

body {
  color: var(--text);
  background: #ffffff;
}

body::before {
  content: none;
}

a {
  color: var(--blue);
}

a:hover {
  color: #155d95;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.brand,
.nav-links a {
  color: var(--text);
}

.nav-links a.active {
  background: #e8f3fc;
  color: var(--blue);
}

.nav-links a.download-link {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
}

.nav-links a.download-link:hover {
  background: #155d95;
  border-color: #155d95;
  color: #ffffff;
}

.brand-mark {
  background: var(--blue);
  box-shadow: none;
}

.brand small,
p,
.lead,
.tile span,
.doc-list span,
.doc-header p,
.merged-doc ul,
.rule-list {
  color: var(--muted);
}

.nav-links a:hover,
.tile strong,
h3 {
  color: var(--blue);
}

.eyebrow {
  color: var(--blue);
}

.lead {
  color: #425163;
}

.button {
  border-color: var(--line);
  background: #ffffff;
  color: var(--text);
  box-shadow: none;
}

.button:hover {
  border-color: rgba(36, 129, 204, 0.42);
  background: #f5faff;
  color: var(--blue);
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(36, 129, 204, 0.18);
}

.hero-proof span {
  border-color: var(--line);
  background: #f8fbff;
  color: var(--muted);
}

.hero-proof strong {
  color: var(--blue);
}

.product-visual,
.chat-card.agent,
.tile,
.doc-list a,
.merged-doc,
.sidebar,
.signal-panel,
.table-wrap {
  border-color: var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.product-visual::before {
  content: none;
}

.chat-card {
  color: var(--text);
}

.chat-card.user {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(36, 129, 204, 0.16);
}

.chat-card.agent {
  color: var(--text);
  backdrop-filter: none;
}

.agent-head span {
  background: #e8f3fc;
  color: var(--blue);
}

.mini-screen {
  background: #f6f8fb;
}

.mini-nav {
  background: #dbe5ef;
}

.mini-map {
  border-color: #cfe6f7;
  background:
    linear-gradient(135deg, rgba(36, 129, 204, 0.12), transparent 42%),
    linear-gradient(45deg, rgba(36, 129, 204, 0.2), transparent 58%),
    #eef7fd;
}

.mini-row span {
  background: #e9eef5;
}

.mini-row b {
  background: #d8e1eb;
}

.mini-button {
  background: var(--blue);
}

.tile {
  box-shadow: none;
}

.tile:hover,
.doc-list a:hover {
  border-color: rgba(36, 129, 204, 0.38);
  background: #f8fbff;
}

.doc-list a {
  color: var(--text);
  box-shadow: none;
}

.doc-toc a {
  border-color: var(--line);
  background: #f8fbff;
  color: var(--blue);
}

.merged-doc {
  box-shadow: none;
}

.merged-doc-meta {
  color: var(--blue);
}

.side-section a {
  color: var(--text);
}

.side-section a.active {
  background: #e8f3fc;
  color: var(--blue);
}

table {
  background: #ffffff;
}

th {
  color: #6b7788;
}

td {
  color: #273244;
}

th,
td {
  border-bottom-color: var(--line);
}

code {
  color: var(--code);
  background: #f1f5f9;
}

pre {
  border-color: var(--line);
  background: #f8fafc;
  color: #172033;
}

pre code {
  background: transparent;
}

.badge {
  background: #f1f5f9;
  color: var(--muted);
}

.badge.green {
  background: #eaf7ee;
  color: var(--green);
}

.badge.blue {
  background: #e8f3fc;
  color: var(--blue);
}

.badge.amber {
  background: #fff4df;
  color: var(--amber);
}

.search-box input {
  border-color: var(--line);
  background: #ffffff;
  color: var(--text);
}

@media (max-width: 860px) {
  .nav-links a {
    border-color: var(--line);
    background: #f8fbff;
  }

  .nav-links a.active {
    border-color: #cfe6f7;
    background: #e8f3fc;
    color: var(--blue);
  }

  .nav-links a.download-link {
    border-color: var(--blue);
    background: var(--blue);
    color: #ffffff;
  }
}

/* AppsChat product homepage */
.home-page {
  background: #ffffff;
}

.landing-shell {
  max-width: none;
  padding: 0;
}

.landing-shell > .content {
  width: 100%;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.home-page .topbar {
  background: rgba(255, 255, 255, 0.94);
}

.landing-hero {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  padding: 54px max(24px, calc((100vw - 1180px) / 2)) 56px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.landing-hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-brand-logo {
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 12px;
}

.landing-hero h1 {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: none;
  color: var(--text);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: clamp(54px, 8vw, 104px);
  line-height: 0.92;
}

.landing-hero h1 small {
  color: #243142;
  font-size: clamp(24px, 3.5vw, 48px);
  font-weight: 650;
  line-height: 1.12;
}

.landing-hero .lead {
  max-width: 680px;
  margin: 18px auto 0;
  color: #536172;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.landing-hero .hero-actions,
.landing-closing .hero-actions {
  justify-content: center;
}

.landing-hero .button,
.landing-closing .button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
}

.landing-product {
  position: relative;
  display: grid;
  place-items: start center;
  width: min(100%, 980px);
  min-height: 0;
  margin: 42px auto 0;
}

.demo-device {
  position: relative;
  display: grid;
  grid-template-rows: 34px 58px minmax(0, 1fr) 64px;
  width: min(356px, 78vw);
  height: 520px;
  border: 9px solid #111827;
  border-radius: 38px;
  background: #f3f5f7;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.2);
  overflow: hidden;
}

.demo-device::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 7px;
  left: 50%;
  width: 54px;
  height: 5px;
  border-radius: 999px;
  background: #2d3748;
  transform: translateX(-50%);
}

.demo-status,
.demo-appbar,
.demo-composer {
  display: flex;
  align-items: center;
  background: #e7eef2;
}

.demo-status {
  justify-content: space-between;
  padding: 0 20px;
  color: var(--text);
  font-size: 11px;
}

.demo-appbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  padding: 0 12px;
  border-bottom: 1px solid #d6e0e8;
  text-align: center;
}

.demo-appbar strong { font-size: 17px; }
.demo-back { font-size: 34px; font-weight: 300; text-align: left; line-height: 1; }
.demo-more { font-size: 17px; letter-spacing: 2px; text-align: right; }

.demo-chat {
  padding: 20px 12px 16px;
  overflow: hidden;
  background: #f3f5f7;
}

.demo-assistant-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: end;
}

.demo-avatar,
.demo-component-icon {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  place-self: end center;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.demo-avatar i,
.demo-component-icon i {
  border-radius: 2px;
  background: #ffffff;
}

.demo-message > p {
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #ffffff;
  color: #273244;
  font-size: 12px;
  line-height: 1.55;
}

.demo-mini-card {
  overflow: hidden;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
}

.demo-mini-card header {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 12px;
  background: #f8fafc;
  color: #172033;
  font-size: 12px;
}

.demo-component-icon {
  place-self: auto;
  width: 27px;
  height: 27px;
  padding: 6px;
  border-radius: 7px;
  background: #dff2fc;
}

.demo-component-icon i { background: var(--blue); }

.demo-card-body { padding: 14px; }
.demo-card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.demo-card-title strong { max-width: 170px; color: #111827; font-size: 16px; line-height: 1.25; }
.demo-card-title span { padding: 4px 8px; border-radius: 999px; background: #d9f7ee; color: #18705e; font-size: 11px; font-weight: 800; }
.demo-card-body > p { margin: 8px 0 12px; color: #647184; font-size: 11px; line-height: 1.45; }
.demo-detail { display: inline; }

.demo-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-card-actions button {
  min-height: 38px;
  border: 1px solid #ccd7e1;
  border-radius: 6px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.demo-card-actions button:hover { border-color: var(--blue); color: var(--blue); }
.demo-card-actions button:disabled { border-color: #cde7d9; background: #edf8f2; color: #18705e; cursor: default; }

.demo-activity {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: fit-content;
  margin: 10px auto 0;
  padding: 9px 12px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.demo-activity > span { color: #68778a; }
.demo-activity p { display: grid; gap: 2px; margin: 0; }
.demo-activity strong { color: #68778a; font-size: 10px; }
.demo-activity small { color: #8a96a5; font-size: 9px; }

.demo-composer {
  gap: 10px;
  margin: 8px 12px 12px;
  padding: 0 8px 0 16px;
  border: 1px solid #d6e0e8;
  border-radius: 24px;
  background: #ffffff;
  color: #9aa5b3;
  font-size: 11px;
}

.demo-composer span { flex: 1; }
.demo-composer b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e3f3fb;
  color: var(--blue);
  font-size: 20px;
}

.landing-band {
  padding: 108px max(24px, calc((100vw - 1180px) / 2));
}

.band-heading {
  max-width: 760px;
}

.band-heading h2,
.runtime-copy h2,
.landing-closing h2 {
  margin: 0;
  color: var(--text);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
}

.band-heading > p:last-child,
.runtime-copy > p {
  max-width: 680px;
  font-size: 18px;
}

.conversation-band {
  background: #f3f5f7;
}

.conversation-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 64px;
  border-top: 1px solid #cfd8e2;
}

.conversation-flow article {
  min-height: 230px;
  padding: 28px 34px 0 0;
  border-right: 1px solid #cfd8e2;
}

.conversation-flow article + article {
  padding-left: 34px;
}

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

.conversation-flow span {
  display: block;
  margin-bottom: 44px;
  color: var(--blue);
  font-family: "Avenir Next", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.conversation-flow strong {
  display: block;
  color: var(--text);
  font-size: 24px;
}

.conversation-flow p {
  max-width: 260px;
}

.runtime-band {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: 76px;
  align-items: center;
  background: #111827;
}

.runtime-band .eyebrow { color: #70c8f1; }
.runtime-copy h2 { color: #ffffff; }
.runtime-copy > p { color: #aebdcd; }

.runtime-facts {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  color: #aebdcd;
}

.runtime-facts span {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.runtime-facts strong { color: #ffffff; }

.landing-code {
  min-height: 420px;
  padding: 28px;
  border-color: #314154;
  background: #07101e;
  color: #d9edff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.landing-code code { color: inherit; }

.docs-band {
  background: #ffffff;
}

.docs-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 62px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.docs-paths a {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 220px;
  padding: 28px 30px;
  border-right: 1px solid var(--line);
  color: var(--text);
  transition: background 180ms ease, color 180ms ease;
}

.docs-paths a:last-child { border-right: 0; }
.docs-paths a:hover { background: #f5faff; color: var(--blue); }
.docs-paths span { color: var(--blue); font-size: 13px; font-weight: 800; }
.docs-paths strong { font-size: 23px; }
.docs-paths small { color: var(--muted); font-size: 15px; line-height: 1.6; }

.landing-closing {
  display: grid;
  justify-items: center;
  padding: 90px 24px 110px;
  border-top: 1px solid var(--line);
  background: #f3f5f7;
  text-align: center;
}

.landing-closing > img {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 12px;
}

.landing-closing p { font-size: 18px; }

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

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

@media (max-width: 860px) {
  .home-page .topbar {
    position: relative;
    min-height: 64px;
    padding: 10px 16px;
  }

  .home-page .brand small { display: none; }
  .home-page .nav-links {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
  }

  .home-page .nav-links a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 11px;
  }

  .landing-hero {
    min-height: 0;
    padding: 30px 18px 34px;
  }

  .hero-brand-logo {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
  }

  .landing-hero h1 { font-size: clamp(48px, 16vw, 72px); }
  .landing-hero h1 small { font-size: clamp(22px, 7vw, 32px); }
  .landing-hero .lead { margin-top: 12px; font-size: 16px; }
  .landing-hero .hero-actions { margin-top: 16px; }
  .landing-hero .hero-actions .button { width: auto; }
  .landing-hero .hero-proof { display: none; }

  .landing-product {
    height: 434px;
    min-height: 0;
    margin-top: 18px;
    overflow: hidden;
  }

  .demo-device {
    width: min(300px, 82vw);
    height: 510px;
    transform: scale(0.82);
    transform-origin: top center;
  }

  .landing-band { padding: 76px 20px; }
  .conversation-flow,
  .runtime-band,
  .docs-paths {
    grid-template-columns: 1fr;
  }

  .conversation-flow article,
  .conversation-flow article + article {
    min-height: 0;
    padding: 24px 0 26px;
    border-right: 0;
    border-bottom: 1px solid #cfd8e2;
  }

  .conversation-flow article:last-child { border-bottom: 0; }
  .conversation-flow span { margin-bottom: 18px; }

  .runtime-band { gap: 40px; }
  .landing-code { min-height: 0; padding: 20px; font-size: 12px; }

  .docs-paths a {
    min-height: 0;
    padding: 26px 4px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .docs-paths a:last-child { border-bottom: 0; }
  .landing-closing { padding: 72px 20px 88px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
