:root {
  --bg: #f6f7f9; --panel: #fff; --text: #1d2330; --muted: #5d6578; --border: #e2e5ea;
  --accent: #e95420; --accent-ink: #c2410c; --code-bg: #14171c; --code-text: #e6e8ec; --code-muted: #8b93a5;
  --glow: rgba(233, 84, 32, .14);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14171c; --panel: #1c2027; --text: #e6e8ec; --muted: #9aa2b3; --border: #2c323c;
    --accent-ink: #f07a4a; --code-bg: #0e1014; --glow: rgba(233, 84, 32, .18);
  }
}
:root[data-theme="dark"] {
  --bg: #14171c; --panel: #1c2027; --text: #e6e8ec; --muted: #9aa2b3; --border: #2c323c;
  --accent-ink: #f07a4a; --code-bg: #0e1014; --glow: rgba(233, 84, 32, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: .9em ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--border); padding: .1em .35em; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
section { padding: 72px 0; }
.sub { color: var(--muted); margin: -.25em 0 2em; max-width: 60ch; }

.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--text); font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--muted); font-size: .95rem; }
nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 720px) { nav a:not(.btn) { display: none; } }

.btn { display: inline-block; background: var(--accent); color: #fff; padding: .7em 1.3em; border-radius: 8px;
  font-weight: 600; border: 1px solid var(--accent); transition: transform .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 20px var(--glow); }
nav .btn, nav .btn:hover { color: #fff; }
.btn.small { padding: .4em .9em; font-size: .9rem; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }

.hero { padding: 80px 0 40px; text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 0, var(--glow), transparent 70%); }
.eyebrow { color: var(--accent-ink); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 1em; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 750; letter-spacing: -.03em; }
.lede { max-width: 680px; margin: 0 auto 2em; color: var(--muted); font-size: 1.15rem; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18); cursor: zoom-in; background: #1c2027; }

.facts { padding: 28px 0; border-block: 1px solid var(--border); background: var(--panel); }
.facts-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.facts b { display: block; }
.facts span { color: var(--muted); font-size: .9rem; }
@media (max-width: 800px) { .facts-in { grid-template-columns: 1fr 1fr; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.grid article { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 22px;
  transition: border-color .15s, transform .15s; }
.grid article:hover { border-color: var(--accent); transform: translateY(-2px); }
.grid h3 { display: flex; align-items: center; gap: 10px; }
.grid h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.grid p { margin: 0; color: var(--muted); font-size: .95rem; }

.tour { background: var(--panel); border-block: 1px solid var(--border); }
.row { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; margin: 56px 0 88px; }
.row.flip .txt { order: 2; }
.row .txt p { color: var(--muted); font-size: 1.05rem; }
.row.phones { grid-template-columns: 7fr 5fr; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 460px; justify-self: center; }
.note { color: var(--muted); font-size: .85rem; text-align: center; margin: 0; }
@media (max-width: 860px) {
  .row, .row.phones { grid-template-columns: 1fr; gap: 24px; margin: 40px 0 64px; }
  .row.flip .txt { order: 0; }
}

.mcp-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.mcp p { color: var(--muted); }
@media (max-width: 860px) { .mcp-in { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 1.5em 0 0; }
.ticks li { padding-left: 28px; position: relative; margin: .5em 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-ink); font-weight: 700; }

.code { background: var(--code-bg); color: var(--code-text); border-radius: 12px; padding: 22px 24px; overflow-x: auto;
  font: .9rem/1.7 ui-monospace, "SF Mono", Menlo, Consolas, monospace; border: 1px solid var(--border); margin: 0 0 1.5em; }
.code .c { color: var(--code-muted); }
.start p, .meta p { color: var(--muted); max-width: 70ch; }
.meta { border-top: 1px solid var(--border); }

footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot-in span { display: flex; align-items: center; gap: 8px; }

dialog#zoom { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog#zoom::backdrop { background: rgba(0, 0, 0, .8); }
dialog#zoom img { display: block; max-width: 96vw; max-height: 94vh; border-radius: 8px; cursor: zoom-out; }

/* the hero's animated tour (reel.js): a mock of the app at a fixed size, scaled to fit; always dark, like the screenshots */
.reel { max-width: 1000px; margin: 0 auto; text-align: left; }
.reel-stage { position: relative; width: 100%; overflow: hidden; border-radius: 14px; background: #14171c; aspect-ratio: 1000 / 620;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3), 0 0 0 1px var(--border); }
.reel-frame { position: absolute; left: 0; top: 0; width: 1000px; height: 620px; transform-origin: 0 0; display: flex;
  flex-direction: column; background: #14171c; color: #e6e8ec; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.reel-bar { height: 34px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #1c2027;
  border-bottom: 1px solid #2c323c; }
.reel-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a404b; }
.reel-bar span { margin-left: 10px; color: #8b93a5; font-size: 12px; }
.reel-body { flex: 1; display: flex; min-height: 0; }
.reel-side { width: 190px; flex: none; padding: 14px 10px; background: #181b21; border-right: 1px solid #2c323c; }
.reel.narrow .reel-side { display: none; }
.rs-brand { display: flex; align-items: center; gap: 8px; color: #e95420; font-weight: 600; margin: 0 6px 16px; }
.rs-item { padding: 8px 10px; margin-bottom: 4px; border-radius: 7px; color: #aab1c0; border: 1px solid transparent;
  transition: border-color .3s, background .3s, color .3s; }
.rs-item.on { color: #fff; border-color: #e95420; background: rgba(233, 84, 32, .12); }
.reel-main { flex: 1; position: relative; padding: 22px; overflow: hidden; }
.reel-caption { display: flex; align-items: center; gap: 14px; margin-top: 14px; color: var(--muted); }
.reel-caption b { flex: 1; color: var(--text); font-weight: 600; min-height: 1.6em; }
.reel-dots { display: flex; gap: 6px; }
.reel-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 5px; background: var(--border); cursor: pointer;
  transition: width .3s, background .3s; }
.reel-dots button.on { width: 22px; background: var(--accent); }
.reel-play { background: none; border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 3px 10px;
  font: inherit; font-size: .85rem; cursor: pointer; }
@media (max-width: 560px) { .reel-caption { flex-wrap: wrap; } .reel-caption b { flex-basis: 100%; } }

.reel.instant * { transition: none !important; animation: none !important; }
.reel .pop { opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .45s, transform .45s; transition-delay: var(--d, 0ms); }
.reel svg .pop { transform: scale(.4); transform-box: fill-box; transform-origin: center; }
.reel .go .pop, .reel .pop.go { opacity: 1; transform: none; }
.reel .draw { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .7s; transition-delay: var(--d, 0ms); }
.reel .go .draw { stroke-dashoffset: 0; }
.r-h { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.r-sub { color: #8b93a5; font-size: 13px; font-weight: 400; margin-left: 8px; }
.r-caret::after { content: "▍"; color: #e95420; animation: rblink 1s steps(1) infinite; }
@keyframes rblink { 50% { opacity: 0; } }
@keyframes rspin { to { transform: rotate(360deg); } }
@keyframes rglow { from { box-shadow: 0 0 0 5px rgba(233, 84, 32, .5); } to { box-shadow: 0 0 0 0 rgba(233, 84, 32, 0); } }

.r-topo svg { display: block; width: 100%; height: auto; }
.r-topo .hg { transition: opacity .4s; }
.r-topo svg.dim .hg:not(.hl) { opacity: .3; }
.r-topo .hg.hl .hb { stroke: #e95420; }
.r-stat, .r-tip, .r-panel { position: absolute; background: #1c2027; border: 1px solid #2c323c; border-radius: 10px; }
.r-stat { right: 22px; bottom: 22px; padding: 12px 18px; color: #9aa2b3; }
.r-stat b { color: #e6e8ec; font-size: 20px; font-weight: 600; }
.r-tip { width: 190px; padding: 10px 12px; font-size: 12.5px; color: #9aa2b3; border-color: #e95420; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.r-tip b { color: #e6e8ec; font-size: 14px; }

.r-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.r-host { min-height: 250px; padding: 12px; background: #1c2027; border: 1px solid #2c323c; border-radius: 10px;
  transition: border-color .3s, background .3s; }
.r-host.target { border-color: #e95420; background: rgba(233, 84, 32, .06); }
.r-host h4 { display: flex; justify-content: space-between; margin: 0 0 10px; font-size: 15px; }
.r-host h4 small { color: #3ddc84; font-size: 12px; font-weight: 400; }
.r-inst { display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 0 12px; margin-bottom: 8px;
  background: #181b21; border: 1px solid #2c323c; border-radius: 8px; transition: opacity .3s; }
.r-inst .st { font-size: 12px; padding: 2px 9px; border-radius: 10px; background: rgba(12, 163, 12, .15); color: #3ddc84; }
.r-inst .st.off { background: rgba(169, 168, 161, .12); color: #a9a8a1; }
.r-inst.lift { opacity: .3; }
.r-inst.ghost { position: absolute; z-index: 5; margin: 0; border-color: #e95420; box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
  transition: left .9s ease-in-out, top .9s ease-in-out; }
.r-inst.new { border-color: #e95420; animation: rglow 1.6s; }
.r-cursor { position: absolute; z-index: 6; left: 70%; top: 80%; transition: left .8s ease-in-out, top .8s ease-in-out; }
.r-panel { left: 22px; right: 22px; bottom: 22px; padding: 12px 16px; }
.r-step { display: flex; gap: 10px; align-items: center; margin: 4px 0; font-size: 13px; color: #c3c8d2; }
.r-step i { width: 14px; height: 14px; flex: none; border: 2px solid #e95420; border-right-color: transparent; border-radius: 50%;
  animation: rspin .8s linear infinite; }
.r-step.ok i { border: 0; animation: none; }
.r-step.ok i::before { content: "✓"; color: #3ddc84; font-style: normal; font-weight: 700; line-height: 14px; }
.r-bar { height: 6px; margin: 2px 0 6px 24px; background: #2c323c; border-radius: 3px; overflow: hidden; }
.r-bar b { display: block; width: 0; height: 100%; background: #3987e5; transition: width 1.6s linear; }
.r-done { margin-top: 6px; color: #f07a4a; font-weight: 600; }

.r-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; }
.r-code { margin: 0; height: 470px; padding: 14px; overflow: hidden; white-space: pre; color: #c3c8d2; background: #0e1014;
  border: 1px solid #2c323c; border-radius: 10px; font: 12.5px/1.65 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.r-btns { display: flex; gap: 8px; margin-bottom: 12px; }
.r-btn { padding: 6px 16px; font-size: 13px; color: #e6e8ec; background: #1c2027; border: 1px solid #2c323c; border-radius: 7px;
  transition: transform .15s, background .2s, opacity .3s; }
.r-btn.primary { color: #fff; background: #e95420; border-color: #e95420; opacity: .4; }
.r-btn.primary.ready { opacity: 1; }
.r-btn.press { transform: scale(.92); background: #2c323c; }
.r-btn.primary.press { background: #c2410c; }
.r-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.r-chip { padding: 3px 10px; font-size: 12px; color: #c3c8d2; background: #232833; border: 1px solid #2c323c; border-radius: 10px; }
.r-chip.okc { color: #3ddc84; border-color: rgba(61, 220, 132, .4); }
.r-log { height: 210px; padding: 10px 12px; overflow: hidden; color: #9aa2b3; background: #0e1014; border: 1px solid #2c323c;
  border-radius: 10px; font: 12px/1.65 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.r-log .fin { color: #f07a4a; font-weight: 600; }
.r-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px;
  background: #1c2027; border: 1px solid #e95420; border-radius: 10px; color: #9aa2b3; font-size: 13px; }
.r-card b { color: #e6e8ec; font-size: 15px; }
.r-card .st { color: #3ddc84; }

.r-chat { display: flex; flex-direction: column; gap: 12px; max-width: 620px; margin: 0 auto; }
.r-msg { max-width: 88%; padding: 10px 14px; border-radius: 12px; }
.r-msg p { margin: 0 0 8px; min-height: 1.45em; }
.r-msg p:last-child { margin: 8px 0 0; }
.r-msg.user { align-self: flex-end; color: #fff; background: #e95420; border-bottom-right-radius: 4px; }
.r-msg.bot { align-self: flex-start; width: 88%; background: #1c2027; border: 1px solid #2c323c; border-bottom-left-radius: 4px; }
.r-tool { align-self: flex-start; padding: 4px 10px; color: #9aa2b3; border: 1px dashed #3a404b; border-radius: 8px;
  font: 12px ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.r-tool::before { content: "⚙ "; }
.r-tool.ok::after { content: "  ✓"; color: #3ddc84; }
.r-pool { display: grid; grid-template-columns: 90px 1fr 40px; gap: 10px; align-items: center; margin: 6px 0; font-size: 13px; color: #c3c8d2; }
.r-pool .t { height: 8px; background: #1f3350; border-radius: 4px; overflow: hidden; }
.r-pool .t b { display: block; width: 0; height: 100%; background: #3987e5; transition: width 1s; }
.r-pool.hot .t b { background: #fab219; }
.r-input { position: absolute; left: 22px; right: 22px; bottom: 22px; min-height: 44px; padding: 11px 14px; color: #c3c8d2;
  background: #1c2027; border: 1px solid #2c323c; border-radius: 10px; }
