:root {
  --accent: #0066cc;
  --accent-hover: #004e9e;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --muted-surface: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #424245;
  --text-3: #6e6e73;
  --line: #e5e5ea;
  --line-strong: #d2d2d7;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
svg { flex-shrink: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.section { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.intro { display: flex; flex-direction: column; gap: 14px; max-width: 740px; }
.h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
.lede { font-size: 19px; color: var(--text-2); }
.nowrap { white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-size: 17px; font-weight: 600;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { border: 1px solid var(--line-strong); color: var(--text); font-weight: 500; }
.btn-secondary:hover { background: var(--muted-surface); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fineprint { font-size: 13px; color: var(--text-3); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.nav { min-height: 64px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.logo:hover { color: var(--text); text-decoration: none; }
.nav-spacer { flex-grow: 1; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text); font-size: 15px; }
.nav-cta { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; }
.nav-cta:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }

/* Hero */
.hero { padding-top: 88px; padding-bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--text-3); }
.hero h1 { max-width: 1040px; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.06; font-weight: 700; letter-spacing: -0.025em; }
.hero h1 span { display: block; }
.hero h1 .sub { margin-top: 10px; font-size: 0.62em; line-height: 1.15; color: var(--text-3); }
.hero .lede { max-width: 640px; font-size: clamp(18px, 2vw, 21px); line-height: 1.45; }
.hero .btn-row { margin-top: 6px; }

/* Agent strip */
.strip { padding-bottom: 8px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; }
.strip-label { font-size: 15px; font-weight: 600; }
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); font-size: 15px; font-weight: 600; }
.strip-tail { font-size: 15px; color: var(--text-3); }

/* Window figure */
.showcase { max-width: 1020px; margin: 0 auto; padding: 48px 20px 96px; }
.showcase figure { margin: 0; display: flex; flex-direction: column; }
.window { background: #1c1c1e; color: #f5f5f7; border-radius: 14px; border: 1px solid #3a3a3d; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.18); }
.titlebar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #2b2b2e; border-bottom: 1px solid #000; }
.lights { display: flex; gap: 8px; padding-right: 6px; }
.lights span { width: 12px; height: 12px; border-radius: 50%; }
.title-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.title-text b { font-size: 13px; font-weight: 600; }
.title-text small { font-size: 11px; color: #a1a1a6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #5e5ce6; color: #fff; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.tabs { display: flex; height: 30px; background: #232325; border-bottom: 1px solid #000; font-size: 12px; }
.tabs > span { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: #a1a1a6; }
.tabs > span + span { border-left: 1px solid #000; }
.tabs .active { background: #1c1c1e; color: #f5f5f7; font-weight: 500; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #30d158; }
.term { padding: 18px 20px 52px; font-family: var(--mono); font-size: clamp(11px, 1.3vw, 13px); line-height: 1.75; color: #e4e4e7; overflow-x: auto; }
.term div { white-space: pre; }
.t-dim { color: #8e8e93; }
.t-path, .t-ok { color: #7ee2a8; }
.t-fail { color: #ff8a80; }
.t-ask { color: #ffd60a; }

.chat {
  align-self: flex-end; width: min(100%, 360px); margin: -28px 20px 0 0; position: relative;
  display: flex; flex-direction: column; gap: 10px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}
.chat-head { display: flex; align-items: center; gap: 10px; }
.chat-head .avatar { width: 28px; height: 28px; font-size: 12px; }
.chat-who { display: flex; flex-direction: column; }
.chat-who b { font-size: 14px; font-weight: 600; }
.chat-who small { font-size: 12px; color: var(--text-3); }
.chat-msg { font-size: 15px; line-height: 1.4; }
.chat-actions { display: flex; gap: 8px; }
.chat-actions span { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 34px; border-radius: 10px; font-size: 14px; }
.chat-yes { background: var(--accent); color: #fff; font-weight: 600; }
.chat-no { background: #f2f2f7; color: var(--text); font-weight: 500; }

/* Anywhere */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.places { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px; }
.place { flex: 1 1 240px; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px 20px; border-radius: 20px; background: var(--muted-surface); text-align: center; }
.box-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 999px; background: #1c1c1e; color: #f5f5f7; font-size: 14px; font-weight: 600; }
.box-chip i { font-style: normal; color: #7ee2a8; }
.place-text { display: flex; flex-direction: column; gap: 4px; }
.place-text b { font-size: 19px; font-weight: 600; }
.place-text span { font-size: 15px; color: var(--text-3); }
.arrow { display: flex; align-items: center; color: #8e8e93; }

/* Agents */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.mode { display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.mode h3 { font-size: 23px; font-weight: 600; }
.mode p { font-size: 16px; color: var(--text-2); }
.features { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px 32px; }
.features li { display: flex; flex-direction: column; gap: 6px; }
.features b { font-size: 17px; font-weight: 600; }
.features span { font-size: 15px; color: var(--text-3); }

/* Keys */
.dark { background: #1d1d1f; color: #f5f5f7; }
.dark .lede { color: #c7c7cc; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 32px; }
.pillar { display: flex; flex-direction: column; gap: 10px; }
.pillar h3 { font-size: 19px; font-weight: 600; }
.pillar p { font-size: 15px; color: #a1a1a6; }

/* Download */
.download { background: var(--surface); }
.download-inner { max-width: 720px; margin: 0 auto; padding: 96px 20px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.download h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.download p.lede { font-size: 18px; }
.download .btn-row { margin-top: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-top: 32px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; font-size: 13px; color: var(--text-3); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer-row a { color: var(--text-3); }
.footer-note { font-size: 12px; }

/* Simple text pages */
.page { max-width: 720px; margin: 0 auto; padding: 72px 20px 96px; display: flex; flex-direction: column; gap: 18px; }
.page h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.page p, .page li { color: var(--text-2); }

@media (max-width: 720px) {
  .wide-only { display: none !important; }
  .nav { gap: 16px; }
  .hero { padding-top: 56px; }
  .section { padding-top: 64px; padding-bottom: 64px; gap: 36px; }
  .showcase { padding-bottom: 64px; }
  .chat { margin-right: 10px; }
  .mode { padding: 24px; }
  .download-inner { padding-top: 64px; padding-bottom: 64px; }
}

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