*{margin:0;padding:0;box-sizing:border-box}
:root{
  --bg:#15161b;--panel:#1e2027;--panel2:#1a1b21;--border:#2d303a;
  --text:#d8dae0;--muted:#8a8f9c;--accent:#5b8cff;--accent-soft:#7fa7ff;
  --mono:"SF Mono",Menlo,Monaco,Consolas,monospace;
}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--text);font:15px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",sans-serif}
a{color:var(--accent-soft);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1080px;margin:0 auto;padding:0 24px}

header{position:sticky;top:0;background:rgba(21,22,27,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--border);z-index:10}
.nav{display:flex;align-items:center;gap:22px;height:58px}
.brand{display:flex;align-items:center;gap:9px;font-weight:700;font-size:16px;color:var(--text)}
.brand .dot{width:10px;height:10px;border-radius:50%;background:var(--accent);box-shadow:0 0 10px var(--accent)}
.nav .links{display:flex;gap:18px;align-items:center;margin-left:18px}
.nav .links a{color:var(--text);font-size:14px}
.nav .links a:hover{color:var(--accent-soft);text-decoration:none}
.nav .tools{margin-left:auto;gap:14px}
.nav .tools a{color:var(--muted)}
.nav .links a.nav-ico{display:flex;align-items:center;color:var(--muted)}
.nav .links a.nav-ico svg{width:18px;height:18px;fill:currentColor}
.nav .links a.nav-ico:hover{color:var(--text)}
.langs{position:relative}
.langs-btn{background:none;border:1px solid var(--border);color:var(--muted);border-radius:6px;padding:5px 10px;font:inherit;font-size:12px;cursor:pointer}
.langs-btn::after{content:'▾';margin-left:6px;font-size:10px;opacity:.7}
.langs-btn:hover,.langs-btn[aria-expanded="true"]{color:var(--text);border-color:var(--accent)}
.langs-pop{position:absolute;top:calc(100% + 10px);right:0;min-width:160px;background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:6px;box-shadow:0 12px 32px rgba(0,0,0,.45);z-index:20}
.nav .langs-pop a{display:flex;align-items:center;padding:8px 10px;border-radius:7px;color:var(--text);font-size:13.5px;white-space:nowrap}
.nav .langs-pop a:hover{background:var(--panel2);color:var(--text);text-decoration:none}
.langs-pop a.on::after{content:'✓';margin-left:auto;padding-left:14px;color:var(--accent-soft);font-size:12px}
.fb{position:relative}
.fb-btn{background:none;border:1px solid var(--border);color:var(--muted);border-radius:6px;padding:5px 12px;font:inherit;font-size:13px;cursor:pointer}
.fb-btn:hover,.fb-btn[aria-expanded="true"]{color:var(--text);border-color:var(--accent)}
.fb-pop{position:absolute;top:calc(100% + 10px);right:0;width:270px;background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:6px;box-shadow:0 12px 32px rgba(0,0,0,.45);z-index:20}
.nav .fb-pop a{display:flex;gap:10px;align-items:flex-start;padding:9px 10px;border-radius:7px;color:var(--text);font-size:13.5px}
.nav .fb-pop a:hover{background:var(--panel2);color:var(--text);text-decoration:none}
.fb-pop svg{width:17px;height:17px;fill:var(--muted);flex:none;margin-top:2px}
.fb-pop a:hover svg{fill:var(--accent-soft)}
.fb-pop b{display:block;font-weight:600;line-height:1.35}
.fb-pop small{display:block;color:var(--muted);font-size:12px;line-height:1.45;margin-top:1px}

.hero{padding:46px 0 34px;text-align:center}
.hero h1{font-size:44px;line-height:1.15;letter-spacing:-.5px}
.hero h1 em{font-style:normal;color:var(--accent-soft)}
.hero p.tag{max-width:680px;margin:18px auto 0;color:var(--muted);font-size:17px}
.hero .cta{margin-top:30px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.btn{display:inline-block;padding:10px 22px;border-radius:8px;font-size:14px;font-weight:600}
.btn.primary{background:var(--accent);color:#fff}
.btn.primary:hover{background:var(--accent-soft);text-decoration:none}
.btn.ghost{border:1px solid var(--border);color:var(--text)}
.btn.ghost:hover{border-color:var(--accent);text-decoration:none}
.install{margin:26px auto 0;max-width:460px;background:#10131b;border:1px solid var(--border);border-radius:8px;padding:11px 16px;font-family:var(--mono);font-size:14px;color:#cfd6e4;display:flex;justify-content:space-between;gap:10px;align-items:center}
.install span::before{content:'$ ';color:var(--muted)}
.install button{background:none;border:1px solid var(--border);color:var(--muted);border-radius:5px;padding:2px 9px;cursor:pointer;font-size:12px}
.install button:hover{color:var(--text);border-color:var(--accent)}

section{padding:48px 0}
h2.sec{font-size:26px;margin-bottom:8px}
p.sub{color:var(--muted);margin-bottom:28px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:16px}
.card{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:20px}
.card .ico{font-size:22px}
.card h3{font-size:15px;margin:10px 0 6px}
.card p{color:var(--muted);font-size:13.5px}

pre{background:var(--panel2);border:1px solid var(--border);border-radius:10px;padding:18px;overflow-x:auto;font-family:var(--mono);font-size:13px;line-height:1.6}
code{font-family:var(--mono);font-size:.92em;color:var(--accent-soft)}
pre code{color:var(--text)}
pre .c{color:#6a9955}pre .k{color:#6fa8ff}pre .s{color:#ce9178}pre .m{color:#9cdcfe}

.docs{display:block;padding-top:36px}
.docs h1{font-size:32px;margin-bottom:6px}
.docs h2{font-size:22px;margin:40px 0 10px;padding-top:10px;border-top:1px solid var(--border)}
.docs h3{font-size:16px;margin:22px 0 6px}
.docs p,.docs li{color:#b9bcc6;font-size:14.5px}
.docs ul{padding-left:22px;margin:8px 0}
.docs table{border-collapse:collapse;margin:12px 0;width:100%}
.docs th,.docs td{border:1px solid var(--border);padding:7px 12px;font-size:13.5px;text-align:left}
.docs th{background:var(--panel2)}
.docs td code{white-space:nowrap}
.kbd{display:inline-block;border:1px solid var(--border);border-bottom-width:2px;border-radius:5px;background:var(--panel2);padding:1px 7px;font-family:var(--mono);font-size:12px}

/* --- docs: step-by-step layout --- */
.docs .shot{margin:14px 0 18px}
.docs .shot img{display:block;max-width:100%;width:auto;max-height:520px;border:1px solid var(--border);border-radius:10px;box-shadow:0 12px 40px rgba(0,0,0,.45);background:#000}
.docs .shot .cap{display:block;margin-top:7px;color:var(--muted);font-size:12.5px}
.docs ol.steps{padding-left:24px;margin:8px 0}
.docs ol.steps li{margin:5px 0}
.docs .tip{display:block;border-left:3px solid #7c5cff;background:var(--panel2);border-radius:0 8px 8px 0;padding:9px 13px;margin:12px 0;font-size:13.5px}
.docs .tip b:first-child{color:#c9bcff}

footer{border-top:1px solid var(--border);padding:28px 0;margin-top:40px;color:var(--muted);font-size:13px;display:block}
footer .wrap{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}

/* --- demo video + feature tour (whatsnew-style) --- */
.demo video,.demo img{width:100%;border:1px solid var(--border);border-radius:12px;box-shadow:0 24px 80px rgba(0,0,0,.55);display:block;background:#000}
.tour-block{display:grid;grid-template-columns:1.22fr 1fr;gap:42px;align-items:center;padding:38px 0;border-top:1px solid var(--border)}
.tour-block.first{border-top:0}
.tour-block .shot img{width:100%;border:1px solid var(--border);border-radius:12px;box-shadow:0 18px 60px rgba(0,0,0,.5)}
.tour-block.rev .shot{order:2}
.tour-block h3{font-size:21px;margin-bottom:8px}
.tour-block>div p{color:var(--muted);font-size:14.5px}
.tour-block ul{margin:12px 0 0 18px;color:var(--muted);font-size:13.5px;line-height:1.8}
@media(max-width:820px){.tour-block{grid-template-columns:1fr;gap:18px}.tour-block.rev .shot{order:0}}

/* telegram footer link */
.tg svg{width:15px;height:15px;vertical-align:-2.5px;margin-right:5px;fill:currentColor}
.tg{white-space:nowrap}

/* --- responsive / mobile ----------------------------------------------- */
@media(max-width:860px){
  .wrap{padding:0 16px}
  section{padding:34px 0}
  .hero{padding:52px 0 38px}
  .hero h1{font-size:34px}
  .hero p.tag{font-size:15px}
  .docs h1{font-size:26px}
  .docs h2{font-size:19px}
  .docs table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
  pre{padding:14px;font-size:12.5px}
}
@media(max-width:720px){
  .nav{flex-wrap:wrap;height:auto;padding:10px 0;row-gap:8px}
  .nav .links{width:100%;margin-left:0;gap:16px;flex-wrap:wrap;row-gap:8px}
  .nav .tools{justify-content:space-between;gap:10px}
  .nav .links a{font-size:13px}
  .fb{position:static}
  .fb-pop{top:calc(100% + 6px);left:12px;right:12px;width:auto}
  .langs{position:static}
  .langs-pop{top:calc(100% + 6px);left:12px;right:12px;min-width:0}
  .tour-block{padding:26px 0;gap:16px}
  .tour-block h3{font-size:18px}
}
@media(max-width:560px){
  .hero h1{font-size:27px}
  .hero .cta{flex-direction:column;align-items:stretch}
  .hero .cta .btn{text-align:center}
  .install{font-size:12.5px;padding:9px 12px;max-width:100%}
  .grid{grid-template-columns:1fr}
  h2.sec{font-size:21px}
  .demo video,.demo img{border-radius:8px}
  footer .wrap{flex-direction:column;align-items:flex-start;gap:8px}
}

/* rendered release notes */
.relbody h3.relh{margin:18px 0 8px;font-size:16px;color:#e9ebf0}
.relbody h4{margin:16px 0 6px;font-size:15px;color:#e9ebf0}
.relbody ul{margin:6px 0 12px 20px;padding:0}
.relbody li{margin:4px 0;color:#bfc5d0}
.relbody li b{color:#e9ebf0}
.relbody p{margin:6px 0 10px;color:#bfc5d0}
.relbody p b{color:#e9ebf0}
/* A release whose whole story is one feature lists that feature's parts under it.
   Indentation alone was not enough to say so: ten bullets at one weight read as ten
   features however far the inner ones are pushed across. The sub-level is a size down,
   a shade back and wears a hollow mark, so the eye takes the hierarchy before it starts
   reading. */
.relbody ul ul{margin:4px 0 12px 22px}
.relbody ul ul li{margin:2px 0;font-size:13.5px;color:#a3aab8;list-style-type:circle}
.relbody ul ul li b{color:#ccd2dd;font-weight:600}
.relbody hr{border:none;border-top:1px solid var(--border);margin:12px 0}

/* scrollytelling stories */
.story-track{position:relative}
.story-sticky{position:sticky;top:0;height:100vh;display:flex;align-items:center;overflow:hidden}
.story-grid{display:grid;grid-template-columns:minmax(320px,40%) 1fr;gap:56px;width:100%;max-width:1240px;margin:0 auto;padding:0 32px;align-items:center}
.story-text{position:relative;min-height:380px}
.story-step{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;opacity:0;transform:translateY(30px);transition:opacity .45s ease,transform .45s ease;pointer-events:none}
.story-step.on{opacity:1;transform:none;pointer-events:auto}
.story-step h3{font-size:30px;line-height:1.2;margin:0 0 12px}
.story-step p{color:var(--muted);font-size:16px;margin:0 0 14px}
.story-step ul{margin:0;padding-left:20px}
.story-step li{color:var(--muted);font-size:14px;margin:7px 0}
.story-shot{position:relative;height:100vh}
.story-shot img{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(.965);max-width:100%;max-height:86vh;border:1px solid var(--border);border-radius:12px;box-shadow:0 24px 70px rgba(0,0,0,.5);opacity:0;transition:opacity .5s ease,transform .5s ease}
.story-shot img.on{opacity:1;transform:translate(-50%,-50%) scale(1)}
.story-bar{position:absolute;left:14px;top:14vh;bottom:14vh;width:2px;background:var(--border);border-radius:1px}
.story-bar span{display:block;width:100%;height:0;background:var(--accent);border-radius:1px;transition:height .15s linear}

/* What's-New: the release caption and its doc links are pinned inside the
   sticky panel, so both ride with the slides for the whole story. Content is
   top-anchored so caption, step text and slide read as one block. */
#whats-new{padding:0}
.story-sticky.with-head{top:59px;height:calc(100vh - 59px);flex-direction:column;align-items:stretch;justify-content:flex-start;gap:10px}
/* Caption at the top, the slide filling everything under it. The stage is the panel rather
   than a box floating in it: a short slide — a card, a transcript — centres inside a stage that
   is already the right size, instead of pushing a hole between the caption and the text. */
.story-sticky.with-head .story-grid{flex:1 1 auto;min-height:0;align-content:stretch;align-items:stretch}
.story-sticky.with-head .story-text{min-height:0}
.story-sticky.with-head .story-step{justify-content:flex-start}
.story-sticky.with-head .story-shot{height:100%;min-height:0}
.story-sticky.with-head .story-shot img{max-height:100%}
/* The slide starts where the text starts. Centred in a full-height stage, a short slide — the
   release card, a transcript — hung half a screen below the paragraph it belongs to, and the
   two read as different sections of the page rather than as one thing said twice. */
.story-sticky.with-head .story-shot > *{top:0;transform:translate(-50%,0) scale(.965)}
.story-sticky.with-head .story-shot > .on{transform:translate(-50%,0) scale(1)}
.story-track-head{padding:14px 0 0}
.story-track-head .sec{margin-bottom:0}
.story-track-foot{padding:10px 0 14px;font-size:14px}
.story-track.flat .story-track-head{padding:26px 0 0}
.story-track.flat .story-track-foot{padding:14px 0 0}

/* what's-added card: the slide that opens a release story */
.story-news{width:min(620px,96%);background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:10px 26px;box-shadow:0 24px 70px rgba(0,0,0,.5)}
.story-news-h{padding:14px 2px 12px;border-bottom:1px solid var(--border);font-size:12px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:var(--muted)}
.story-new{display:flex;align-items:flex-start;gap:14px;padding:14px 2px;border-bottom:1px solid var(--border)}
.story-new:last-child{border-bottom:0}
.story-new span{flex:none;color:#5fc98c;font-size:17px;font-weight:700;line-height:1.45}
.story-new p{margin:0;color:var(--muted);font-size:15px;line-height:1.6}
.story-new p b{color:var(--text);font-weight:600}
.story-shot .story-news{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(.965);opacity:0;transition:opacity .5s ease,transform .5s ease}
.story-shot .story-news.on{opacity:1;transform:translate(-50%,-50%) scale(1)}
.story-flat-step .story-news{margin:0 auto}

/* transcript slide: what a headless step actually looks like — an MCP session,
   the calls the agent made and what came back */
.story-code{width:min(760px,96%);margin:0;background:var(--panel2);border:1px solid var(--border);border-radius:14px;padding:20px 22px;box-shadow:0 24px 70px rgba(0,0,0,.5);font-family:var(--mono);font-size:12.5px;line-height:1.75;color:var(--muted)}
/* a transcript line is quoted verbatim, so a long one wraps rather than being cut off
   or hidden behind a horizontal scrollbar nobody uses mid-slide; the hanging indent
   keeps a wrapped tail from reading as a line of its own */
.story-code div{white-space:pre-wrap;padding-left:1.8em;text-indent:-1.8em}
.story-code .cmd{color:#6fa8ff}
.story-shot .story-code{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(.965);opacity:0;transition:opacity .5s ease,transform .5s ease}
.story-shot .story-code.on{opacity:1;transform:translate(-50%,-50%) scale(1)}
.story-flat-step .story-code{margin:0 auto}
@media(max-width:860px){.story-code{font-size:11.5px;padding:14px 12px}}

/* stories section: a chapter (heading + track) per story */
.stories-head{padding:8px 0 0}
.stories-head p{color:var(--muted);max-width:720px}
.story-chapter{padding:34px 0 0;border-top:1px solid var(--border);margin-top:34px}
.story-chapter:first-child{border-top:0;margin-top:8px}
.story-chapter .sub{margin-bottom:6px;max-width:720px}
.story-ver{display:inline-block;margin-left:12px;padding:2px 9px;border:1px solid var(--border);border-radius:999px;background:var(--panel2);color:var(--muted);font-size:13px;font-weight:600;vertical-align:middle}

/* flat story fallback: stacked step blocks on narrow screens / reduced motion */
.story-track.flat{padding:4px 0 28px}
.story-flat-step{max-width:1080px;margin:0 auto;padding:22px 24px 2px}
.story-flat-step img{max-width:100%;max-height:80vh;border:1px solid var(--border);border-radius:10px;box-shadow:0 14px 44px rgba(0,0,0,.45);display:block;background:#000;margin:0 auto}
.story-flat-step h3{font-size:17px;margin:12px 0 4px}
.story-flat-step p{color:var(--muted);font-size:14px}
@media(max-width:860px){.story-flat-step{padding:18px 16px 0}}

/* --- docs: grouped left-sidebar navigation ------------------------------ */
.docs-cols{display:grid;grid-template-columns:250px minmax(0,1fr);gap:46px;align-items:start;margin-top:26px}
.docs-side{position:sticky;top:76px;max-height:calc(100vh - 96px);overflow-y:auto;padding:4px 16px 24px 0;border-right:1px solid var(--border)}
.docs-nav{font-size:13.5px}
.dn-cap{display:flex;align-items:center;justify-content:space-between;color:var(--text);font-weight:600;font-size:13px;margin:20px 0 6px;cursor:pointer;user-select:none}
.dn-group:first-child .dn-cap{margin-top:0}
.dn-cap svg{width:13px;height:13px;color:var(--muted);transition:transform .15s;transform:rotate(90deg)}
.dn-group.closed .dn-cap svg{transform:none}
.dn-group.closed .dn-item{display:none}
.dn-item{position:relative}
.dn-link{display:block;padding:5px 28px 5px 10px;border-radius:6px;color:var(--muted)}
.dn-link:hover{color:var(--text);background:var(--panel);text-decoration:none}
.dn-item.on>.dn-link{color:var(--accent-soft);background:rgba(91,140,255,.09)}
.dn-tw{position:absolute;top:3px;right:2px;width:24px;height:24px;background:none;border:0;color:var(--muted);cursor:pointer;border-radius:6px;display:flex;align-items:center;justify-content:center;padding:0}
.dn-tw:hover{color:var(--text);background:var(--panel)}
.dn-tw svg{width:12px;height:12px;transition:transform .15s}
.dn-item.open .dn-tw svg{transform:rotate(90deg)}
.dn-subs{display:none;margin:1px 0 5px}
.dn-item.open .dn-subs{display:block}
.dn-subs a{display:block;padding:4px 8px 4px 26px;border-radius:6px;color:var(--muted);font-size:12.8px}
.dn-subs a:hover{color:var(--text);text-decoration:none}
.dn-subs a.on{color:var(--accent-soft)}
.docs-main{min-width:0}
.docs-main h2:first-child{margin-top:0;border-top:0;padding-top:0}
.docs h2,.docs h3{scroll-margin-top:76px}
.docs-nav-toggle{display:none}
@media(max-width:960px){
  .docs-cols{display:block;margin-top:4px}
  .docs-nav-toggle{display:inline-flex;align-items:center;gap:8px;background:var(--panel);border:1px solid var(--border);color:var(--text);border-radius:8px;padding:8px 14px;font:inherit;font-size:13.5px;cursor:pointer;margin:14px 0 4px}
  .docs-side{display:none;position:static;max-height:none;overflow:visible;border-right:0;background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:12px 14px;margin:10px 0 16px}
  .docs-side.open{display:block}
  .docs-main h2:first-child{margin-top:26px;border-top:1px solid var(--border);padding-top:10px}
}

/* release cards: CLI-styled command box, code chips */
.rel-install{margin:12px 0 0;max-width:none}
.relbody code{background:#10131b;border:1px solid var(--border);padding:1px 6px;border-radius:5px;color:#cfd6e4;font-family:var(--mono);font-size:12.5px}

.rel-links{margin-top:12px;font-size:13px}
.rel-links a{display:inline-flex;align-items:center}
