:root {
  --bg: #ffffff;
  --ink: #2c2826;
  --muted: #7a746f;
  --faint: #9b958f;
  --line: #e9e5e1;
  --cream: #f7f5f2;
  --accent: #f6821f;
  --accent-2: #ff9a3d;
  --btn: #2c2826;

  /* app mock (dark) */
  --app-bg: #0f1115;
  --panel: #161a21;
  --panel2: #1d222b;
  --aline: #272d38;
  --atext: #e6e9ef;
  --amuted: #8b93a3;
  --ok: #3fb950;
  --run: #e3b341;
  --err: #f85149;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
code { font-family: var(--mono); }
.accent { color: var(--accent); }

/* announce */
.announce {
  display: block;
  background: var(--btn);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 12.5px;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}
.announce:hover { background: #000; }

/* header */
.site-header {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; }
.brand-mark { color: var(--accent); font-size: 18px; }
.brand-name { font-size: 16px; letter-spacing: 0.01em; }
.nav { margin-left: auto; display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 13.5px; }
.nav a:hover { color: var(--ink); }
.header-cta { margin-left: 4px; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 9px;
  padding: 9px 15px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-dark { background: var(--btn); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-text { color: var(--ink); padding: 9px 4px; }
.btn-text:hover { color: var(--accent); }
.btn kbd {
  font-family: var(--mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  padding: 1px 5px;
}
.dl { opacity: 0.8; }

/* hero */
.hero {
  max-width: 760px;
  margin: 36px auto 0;
  padding: 0 24px;
  text-align: center;
}
.eyebrow { display: inline-block; color: var(--muted); text-decoration: none; font-size: 13px; margin-bottom: 18px; }
.eyebrow:hover { color: var(--accent); }
.wordmark {
  margin: 0;
  font-size: clamp(48px, 11vw, 116px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 0.9;
  color: var(--ink);
  text-shadow: 3px 3px 0 rgba(246, 130, 31, 0.16);
}
.tagline { font-size: clamp(18px, 3.4vw, 25px); font-weight: 700; margin: 22px 0 12px; }
.lede { color: var(--muted); max-width: 600px; margin: 0 auto; font-size: 14.5px; }
.lede strong { color: var(--ink); }
.hero-cta { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 26px; flex-wrap: wrap; }

/* product shot */
.shot-wrap { max-width: 1040px; margin: 46px auto 0; padding: 0 24px; }
.window {
  border: 1px solid var(--aline);
  border-radius: 14px;
  overflow: hidden;
  background: var(--app-bg);
  box-shadow: 0 40px 80px -40px rgba(20, 20, 30, 0.45), 0 8px 24px -12px rgba(20, 20, 30, 0.25);
  color: var(--atext);
  font-size: 12px;
}
.titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: #11141a;
  border-bottom: 1px solid var(--aline);
}
.lights { display: flex; gap: 6px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #3a4150; display: block; }
.lights i:nth-child(1) { background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.tb-crumbs { color: var(--amuted); }
.tb-crumbs code { color: var(--atext); }
.tb-right { margin-left: auto; }
.pill { font-size: 11px; padding: 4px 9px; border-radius: 7px; border: 1px solid var(--aline); }
.pill.ok { color: var(--accent); border-color: var(--accent); }

.app { display: grid; grid-template-columns: 196px 1fr 230px; min-height: 440px; }

/* sidebar */
.side { background: var(--panel); border-right: 1px solid var(--aline); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.side-brand { font-weight: 700; }
.side-brand::first-letter { color: var(--accent); }
.new { background: var(--accent); color: #1a1206; border: none; border-radius: 8px; padding: 8px; font-weight: 700; font-family: var(--mono); font-size: 12px; text-align: left; }
.sessions { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sess { display: grid; grid-template-columns: 9px 1fr; gap: 7px; align-items: center; background: transparent; border: 1px solid transparent; color: var(--atext); text-align: left; padding: 7px; border-radius: 8px; font-family: var(--mono); font-size: 12px; }
.sess.active { background: var(--panel2); border-color: var(--aline); }
.s-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-branch { grid-column: 2; color: var(--amuted); font-size: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amuted); }
.dot.run { background: var(--run); box-shadow: 0 0 6px var(--run); }
.dot.idle { background: var(--ok); }
.dot.done { background: var(--ok); }
.side-foot { display: flex; flex-direction: column; gap: 7px; }
.lens, .cf { background: var(--panel2); border: 1px solid var(--aline); border-radius: 8px; padding: 7px 8px; font-size: 11px; }
.lens .sp { float: right; }
.cf code { color: var(--accent); }
.cf.ok2 { color: var(--ok); }

/* main column */
.main-col { display: flex; flex-direction: column; min-width: 0; }
.thread-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid var(--aline); }
.th-title { font-weight: 700; }
.th-sub { color: var(--amuted); font-size: 11px; }
.th-sub code { color: var(--atext); }
.th-actions { display: flex; gap: 7px; align-items: center; }
.ghost { border: 1px solid var(--aline); border-radius: 7px; padding: 5px 9px; color: var(--atext); font-size: 11px; }
.cloudbtn { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1a1206; font-weight: 700; border-radius: 7px; padding: 5px 10px; font-size: 11px; }

.thread { flex: 1; overflow: hidden; padding: 14px; display: flex; flex-direction: column; gap: 11px; }
.bubble.user { align-self: flex-end; max-width: 76%; }
.bubble .role { font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--amuted); margin-bottom: 3px; text-align: right; }
.bubble.user .text { background: var(--accent); color: #1a1206; padding: 8px 11px; border-radius: 11px 11px 2px 11px; }
.assistant-text { line-height: 1.55; }
.assistant-text code { color: var(--accent); }
.tool { border: 1px solid var(--aline); border-left: 3px solid var(--ok); border-radius: 8px; background: var(--panel); padding: 7px 10px; display: flex; align-items: center; gap: 8px; }
.tool.wait { display: block; border-left-color: var(--accent); }
.tool .ti { color: var(--ok); width: 12px; }
.tool.wait .ti { color: var(--accent); }
.tn { font-weight: 700; }
.ta { color: var(--amuted); font-size: 11px; }
.tool-row { display: flex; align-items: center; gap: 8px; }
.approve { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--aline); }
.approve span { flex: 1; }
.approve .ok { background: var(--ok); color: #06210e; border-radius: 6px; padding: 3px 9px; }
.approve .deny { color: var(--err); border: 1px solid var(--err); border-radius: 6px; padding: 2px 9px; }
.done-chip { align-self: center; color: var(--ok); font-size: 11px; }

.composer { border-top: 1px solid var(--aline); padding: 11px 14px; display: flex; flex-direction: column; gap: 8px; }
.composer-top { display: flex; align-items: center; gap: 12px; }
.seg { display: inline-flex; border: 1px solid var(--aline); border-radius: 8px; overflow: hidden; }
.seg b { padding: 4px 12px; color: var(--amuted); font-weight: 600; font-size: 11px; }
.seg b.on { background: var(--accent); color: #1a1206; }
.chk { color: var(--amuted); font-size: 11px; display: flex; gap: 6px; align-items: center; }
.composer .ta { width: 100%; border: 1px solid var(--aline); border-radius: 10px; padding: 11px; color: var(--amuted); background: var(--panel); }
.composer-actions { display: flex; justify-content: flex-end; }
.send { background: var(--accent); color: #1a1206; font-weight: 700; border-radius: 8px; padding: 6px 16px; font-size: 12px; }

/* review rail */
.rail { background: var(--panel); border-left: 1px solid var(--aline); padding: 12px; overflow: hidden; }
.rail-head { font-weight: 700; margin-bottom: 9px; }
.rail-head .muted { color: var(--amuted); font-weight: 400; font-size: 11px; }
.rail-file { display: flex; align-items: center; gap: 7px; font-size: 11px; padding: 3px 0; }
.badge { font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--aline); }
.badge.add { color: var(--ok); }
.badge.mod { color: var(--run); }
.diff { margin: 10px 0 0; font-size: 10.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.dl.add { color: #7ee787; }
.dl.ctx { color: var(--amuted); }
.dl.hunk { color: #79c0ff; }
.dl.meta { color: var(--faint); }

/* sections */
.section-label { color: var(--faint); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.how, .features, .faq, .final { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.how { margin-top: 110px; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 26px; }
.steps h3 { margin: 0 0 4px; font-size: 16px; }
.steps .num { color: var(--accent); margin-right: 6px; }
.steps p { margin: 0; color: var(--muted); max-width: 560px; }
.steps strong, .steps em { color: var(--ink); }

.features { margin-top: 96px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 18px; }
.grid article { background: var(--bg); padding: 20px; }
.grid h4 { margin: 0 0 7px; font-size: 14px; }
.grid p { margin: 0; color: var(--muted); font-size: 13px; }
.built { margin-top: 22px; color: var(--faint); font-size: 12.5px; text-align: center; }

.faq { margin-top: 96px; }
.faq dl { margin: 18px 0 0; }
.faq dl > div { padding: 16px 0; border-top: 1px solid var(--line); }
.faq dt { font-weight: 700; }
.faq dd { margin: 6px 0 0; color: var(--muted); }

.final { margin-top: 110px; text-align: center; }
.final-line { font-size: clamp(20px, 4vw, 30px); font-weight: 800; margin: 0; }
.final-sub { color: var(--muted); margin: 8px 0 22px; }

/* footer */
.site-footer { margin-top: 96px; background: var(--cream); border-top: 1px solid var(--line); }
.cols { max-width: 1080px; margin: 0 auto; padding: 56px 24px 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cols div { display: flex; flex-direction: column; gap: 8px; }
.fcol { color: var(--faint); font-size: 12px; margin: 0 0 4px; }
.cols a { text-decoration: none; color: var(--muted); font-size: 13px; }
.cols a:hover { color: var(--ink); }
.copyright { max-width: 1080px; margin: 0 auto; padding: 0 24px 40px; color: var(--faint); font-size: 12px; }

/* responsive */
@media (max-width: 880px) {
  .app { grid-template-columns: 160px 1fr; }
  .rail { display: none; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .grid { grid-template-columns: 1fr; }
  .cols { grid-template-columns: repeat(2, 1fr); }
  .app { grid-template-columns: 1fr; min-height: auto; }
  .side { display: none; }
}
