:root {
  --paper: #eef0f3;
  --well: #dfe3e9;
  --ink: #12151b;
  --text: #2a303b;
  --muted: #555d6b;
  --line: #cfd4dc;
  --blue: #2c63de;
  --blue-deep: #1f3f9a;
  --orange: #c26b00;
  --code-bg: #171a21;
  --code-ink: #e6e9ef;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1080px;
  --gutter: 24px;
  --section: 96px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; font-weight: 700; }
h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 24px; }
h3 { font-size: 17px; line-height: 1.35; }
p { margin: 0 0 12px; }

code { font-family: var(--mono); font-size: 0.88em; background: var(--well); padding: 1px 5px; border-radius: 5px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */

.top {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; }
.brand img { width: 28px; height: 28px; }
.top nav { display: flex; gap: 24px; font-size: 15px; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--blue); }

/* Sections */

main > section { max-width: var(--wrap); margin: 0 auto; padding: var(--section) var(--gutter) 0; }

/* Hero */

main > .hero { padding-top: 48px; }
.hero-copy { max-width: 640px; }
.hero h1 {
  font-size: clamp(34px, 4.8vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--text); margin: 18px 0 26px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 18px;
  border-radius: 10px;
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.button:hover { color: var(--ink); box-shadow: inset 0 0 0 1px #9aa3b2; }
.button.primary { background: var(--blue); color: #fff; box-shadow: none; }
.button.primary:hover { background: var(--blue-deep); color: #fff; }
.fine { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* Display arrangement */

.arrangement { margin: 44px 0 0; }
.stage {
  position: relative;
  aspect-ratio: 1200 / 560;
  background: var(--well);
  border-radius: 18px;
  box-shadow: inset 0 1px 3px rgba(20, 30, 50, 0.12);
  container-type: inline-size;
}
.display {
  position: absolute;
  border-radius: 1.1cqw;
  background: #0f1116;
  padding: 0.45cqw;
  box-shadow: 0 1.4cqw 3cqw rgba(20, 30, 50, 0.22);
}
.display video, .display .screen { display: block; width: 100%; aspect-ratio: 11 / 7; object-fit: cover; border-radius: 0.6cqw; background: #222; }
.display .label {
  position: absolute; left: 0; right: 0; top: 100%;
  margin-top: 0.9cqw;
  text-align: center;
  font-size: max(11px, 1.15cqw);
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.agent { width: 25.5%; }
.a1 { left: 3%;    top: 21%; }
.a2 { left: 71.5%; top: 6%; }
.a3 { left: 71.5%; top: 51%; }

.mine {
  left: 30%; top: 12%; width: 40%;
  aspect-ratio: 16 / 10;
  padding: 0;
  background: linear-gradient(160deg, #6f93e6 0%, #3b67d4 45%, #24419b 100%);
  border: 0.45cqw solid #0f1116;
  z-index: 2;
}
.menubar {
  display: flex; align-items: center; gap: 1.4cqw;
  height: 2.3cqw; padding: 0 1.2cqw;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  font-size: 1.05cqw; color: #1a1d24;
  border-radius: 0.6cqw 0.6cqw 0 0;
}
.menubar .status { margin-left: auto; display: flex; align-items: center; gap: 1cqw; }
.menubar svg { width: 1.6cqw; height: 1.45cqw; fill: #1a1d24; }
.note {
  position: absolute; left: 7%; top: 18%; width: 72%;
  background: #fbfbfc;
  border-radius: 0.9cqw;
  box-shadow: 0 1cqw 2.4cqw rgba(10, 20, 50, 0.35);
  padding: 1.2cqw 1.5cqw 2.4cqw;
}
.note-title { font-size: 0.95cqw; color: #6b717c; text-align: center; margin-bottom: 1cqw; }
.typing {
  margin: 0;
  font-size: 1.3cqw; line-height: 1.4; color: #1a1d24;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
  animation: type 4.5s steps(40, end) 1.4s forwards;
}
@keyframes type { to { clip-path: inset(0 0 0 0); } }
.mac-pointer {
  position: absolute; left: 58%; top: 62%;
  width: 2.4cqw; height: 2.4cqw;
  fill: #111; stroke: #fff; stroke-width: 1.4;
  filter: drop-shadow(0 0.15cqw 0.2cqw rgba(0, 0, 0, 0.35));
}

.arrangement figcaption { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 46em; }

/* One load moment: agent displays slide out from behind yours. */
@media (prefers-reduced-motion: no-preference) {
  .agent { animation: connect 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .a1 { --from: translate(45%, -8%) scale(0.86); animation-delay: 0.15s; }
  .a2 { --from: translate(-45%, 18%) scale(0.86); animation-delay: 0.3s; }
  .a3 { --from: translate(-45%, -22%) scale(0.86); animation-delay: 0.45s; }
  @keyframes connect { from { transform: var(--from); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .typing { animation: none; clip-path: none; }
}

/* Demo */

.demo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
}
.demo-copy p { color: var(--text); }
.demo-video { margin: 0; }
.demo-video video { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 14px 40px rgba(20, 30, 50, 0.2); background: #111; }
.demo-video figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* Features */

.features ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 40px;
}
.features li > svg { width: 22px; height: 22px; color: var(--blue); margin-bottom: 10px; display: block; }
.features li.help > svg { color: var(--orange); }
.features h3 { margin-bottom: 6px; }
.features p { color: var(--text); font-size: 15px; }

/* Comparison */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 600px; font-size: 15px; }
th, td { text-align: left; padding: 13px 16px; vertical-align: top; }
thead th { font-size: 14px; font-weight: 600; color: var(--muted); }
tbody th { font-weight: 500; width: 32%; }
tbody tr { border-top: 1px solid var(--line); }
.ours { background: #fff; color: var(--ink); font-weight: 600; }
thead .ours { color: var(--blue); border-radius: 10px 10px 0 0; }
tbody tr:last-child .ours { border-radius: 0 0 10px 10px; }

/* Install */

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; max-width: 720px; }
.steps > li { counter-increment: step; position: relative; padding-left: 48px; margin-bottom: 36px; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -1px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font-weight: 600; font-size: 14px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--text); }

.code { position: relative; margin: 14px 0 16px; }
.code pre {
  margin: 0;
  background: var(--code-bg); color: var(--code-ink);
  border-radius: 10px;
  padding: 46px 18px 16px;
  font-family: var(--mono); font-size: 14px; line-height: 1.7;
  overflow-x: auto;
}
.code pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.copy {
  position: absolute; top: 10px; right: 10px;
  font: 600 13px var(--sans);
  color: var(--code-ink);
  background: rgba(255, 255, 255, 0.12);
  border: 0; border-radius: 7px;
  padding: 6px 11px; cursor: pointer;
}
.copy:hover { background: rgba(255, 255, 255, 0.2); }

.first-task { max-width: 720px; padding-left: 48px; }
.first-task blockquote {
  margin: 8px 0 0;
  font-size: 19px; line-height: 1.45; font-weight: 600;
}

/* Limits */

main > .limits { padding-bottom: 88px; }
.limits-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.limits-grid > p { font-size: 17px; color: var(--text); }
.limits ul { margin: 0; padding-left: 20px; color: var(--text); font-size: 15px; }
.limits li { margin-bottom: 10px; }

/* Footer */

footer {
  max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 0 auto;
  padding: 24px 0 44px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-size: 14px; color: var(--muted);
}
.foot-brand { display: flex; align-items: center; gap: 10px; }
footer nav { display: flex; gap: 20px; }

/* Narrow */

@media (max-width: 1080px) {
  footer { margin: 0 var(--gutter); }
}

@media (max-width: 860px) {
  .demo, .limits-grid { grid-template-columns: 1fr; gap: 24px; }
  .features ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; --section: 64px; }
  main > .hero { padding-top: 20px; }
  .button { flex: 1 1 auto; }
  .arrangement { margin: 32px calc(-1 * var(--gutter)) 0; }
  .stage { border-radius: 0; }
  .display .label { display: none; }
  .arrangement figcaption { padding: 0 var(--gutter); }
  .features ul { grid-template-columns: 1fr; gap: 28px; }
  .steps > li { padding-left: 42px; }
  .first-task { padding-left: 0; }
  .code pre { font-size: 12.5px; padding: 44px 16px 14px; }
  p code { overflow-wrap: anywhere; }
  footer { flex-direction: column; align-items: flex-start; }
}
