:root {
  --bg: #000;
  --s1: #060708;
  --s2: #0b0c0e;
  --s3: #121316;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .13);
  --line-3: rgba(255, 255, 255, .22);
  --text: #f3f4f6;
  --mute: #8b9099;
  --dim: #5a5f67;
  --sky: #7dd3fc;
  --sky-2: #38bdf8;
  --sky-ink: #001018;
  --sky-soft: rgba(125, 211, 252, .1);
  --sky-line: rgba(125, 211, 252, .35);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --top: 56px;
  --sb: 264px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 24px); }
html, body { overflow-x: clip; }
body { background: var(--bg); color: var(--text); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
img, svg { display: block; }
::selection { background: var(--sky); color: #000; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--sky); letter-spacing: -0.01em; }
code, kbd, pre { font-family: var(--mono); }
kbd { font-size: 11px; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 5px; color: var(--mute); line-height: 18px; }
.mute { color: var(--mute); }
.dim { color: var(--dim); }
.sky { color: var(--sky); }
.ul { color: var(--text); text-decoration: underline; text-decoration-color: var(--sky-line); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.ul:hover { text-decoration-color: var(--sky); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--sky); color: #000; padding: 6px 12px; border-radius: 8px; }

/* ── top bar ─────────────────────────────────────────────── */
.top { position: fixed; inset: 0 0 auto; height: var(--top); z-index: 50; display: flex; align-items: center; gap: 16px; padding: 0 20px; background: rgba(0,0,0,.78); backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 16px; letter-spacing: -0.02em; width: calc(var(--sb) - 36px); flex-shrink: 0; }
.mark { width: 24px; height: 24px; color: #fff; flex-shrink: 0; }
.top-menu { display: none; width: 34px; height: 34px; place-items: center; border-radius: 8px; color: var(--mute); }
.top-search { display: flex; align-items: center; gap: 10px; height: 36px; width: 100%; max-width: 360px; padding: 0 8px 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--s1); color: var(--dim); font-size: 13.5px; transition: border-color .2s, color .2s; }
.top-search span { flex: 1; text-align: left; }
.top-search:hover { border-color: var(--line-3); color: var(--mute); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.top-link { padding: 6px 10px; font-size: 13.5px; color: var(--mute); border-radius: 8px; transition: color .2s; }
.top-link:hover { color: var(--text); }
.top-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--mute); transition: color .2s, background .2s; }
.top-icon:hover { color: var(--text); background: rgba(255,255,255,.05); }

/* ── shell + sidebar ─────────────────────────────────────── */
.shell { padding-top: var(--top); }
.sb { position: fixed; top: var(--top); bottom: 0; left: 0; width: var(--sb); overflow-y: auto; border-right: 1px solid var(--line); padding: 20px 12px 48px; scrollbar-width: thin; scrollbar-color: #1d1f23 transparent; }
.sb-group { margin-bottom: 26px; }
.sb-label { display: flex; justify-content: space-between; padding: 0 10px 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.sb-label span { letter-spacing: 0; }
.sb-item { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5.5px 10px; border-radius: 8px; font-size: 13.5px; color: var(--mute); transition: color .15s, background .15s; }
a.sb-item:hover { color: var(--text); background: rgba(255,255,255,.035); }
.sb-item.on { color: var(--text); background: rgba(255,255,255,.05); }
.sb-item.on::before { content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 2px; border-radius: 2px; background: var(--sky); box-shadow: 0 0 10px var(--sky); }
.sb-item.soon { color: #44484f; cursor: default; }
.sb-item em, .tag-ai { font-family: var(--mono); font-style: normal; font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px; border-radius: 99px; border: 1px solid var(--line); color: var(--dim); }
.tag-ai { border-color: var(--sky-line); color: var(--sky); }
.sb-item.hide { display: none; }
.sb-scrim { display: none; }

.main { margin-left: var(--sb); min-width: 0; padding: 0 56px; }
.main > * { max-width: 1040px; margin-left: auto; margin-right: auto; }

/* ── buttons ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .2s, box-shadow .3s, border-color .2s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn-sky { background: var(--sky); color: var(--sky-ink); box-shadow: 0 0 0 1px rgba(125,211,252,.4), 0 8px 32px -8px rgba(56,189,248,.6); }
.btn-sky:hover { background: #a5e1fd; box-shadow: 0 0 0 1px rgba(125,211,252,.6), 0 10px 44px -6px rgba(56,189,248,.75); }
.btn-sky svg { transition: transform .2s; }
.btn-sky:hover svg { transform: translateX(3px); }
.btn-cmd { border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12.5px; font-weight: 400; color: #d3d6db; max-width: 100%; overflow: hidden; }
.btn-cmd svg { color: var(--dim); flex-shrink: 0; }
.btn-cmd:hover { border-color: var(--sky-line); }

/* ── intro ───────────────────────────────────────────────── */
.intro { position: relative; padding: 88px 0 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; max-width: 100%; font-family: var(--mono); font-size: 12px; color: var(--mute); padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.015); }
.kicker .sep { color: #33363b; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 12px var(--sky); }
.intro h1 { margin-top: 28px; font-weight: 500; font-size: clamp(46px, 7.2vw, 92px); line-height: .98; letter-spacing: -0.055em; }
.intro h1 em { font-size: 1.07em; letter-spacing: -0.03em; }
.lede { margin-top: 22px; max-width: 540px; color: var(--mute); font-size: 16.5px; line-height: 1.65; }
.cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.horizon { position: relative; height: 150px; margin-top: 56px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.arc { position: absolute; left: 50%; top: 70px; width: 2400px; height: 2400px; transform: translateX(-50%); border-radius: 50%; background: #000; border-top: 1px solid rgba(186,230,253,.85); box-shadow: 0 -1px 36px rgba(125,211,252,.5), inset 0 30px 60px -30px rgba(125,211,252,.22); }
.arc-glow { position: absolute; left: 50%; top: 0; width: 70%; height: 150px; transform: translateX(-50%); background: radial-gradient(50% 55% at 50% 75%, rgba(56,189,248,.3), transparent 70%); filter: blur(18px); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; } }
.nf { padding-bottom: 120px; }

/* ── library ─────────────────────────────────────────────── */
.lib { padding-top: 8px; }
.lib-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.lib-head h2 { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.chips { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.chip { padding: 5px 14px; border-radius: 999px; font-size: 12.5px; color: var(--mute); transition: color .2s, background .2s; }
.chip:hover { color: var(--text); }
.chip.on { background: rgba(255,255,255,.07); color: var(--text); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 14px; }
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--s1); overflow: hidden; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.card.wide { grid-column: span 2; }
.card.hide { display: none; }
.card::before, .card::after { content: ""; position: absolute; z-index: 2; width: 10px; height: 10px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.card::before { top: 8px; left: 8px; border-top: 1px solid var(--sky); border-left: 1px solid var(--sky); }
.card::after { bottom: 52px; right: 8px; border-bottom: 1px solid var(--sky); border-right: 1px solid var(--sky); }
.card:hover { border-color: var(--line-3); transform: translateY(-2px); box-shadow: 0 24px 60px -30px rgba(56,189,248,.25); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card-stage { position: relative; height: 216px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 16px 16px, radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.03), transparent 60%); }
.card-scale { position: absolute; left: 50%; top: 50%; width: max-content; transform: translate(-50%, -50%) scale(var(--s)); display: grid; place-items: center; pointer-events: none; }
.card.wide .card-scale { width: calc(100% / var(--s)); }
.card-scale .x-marquee { width: 300px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 16px; border-top: 1px solid var(--line); background: var(--bg); }
.card-name { font-size: 13.5px; font-weight: 500; }
.card-cat { font-size: 12px; color: var(--dim); }

.sec-title { margin-bottom: 26px; }
.sec-title h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.08; }
.sec-title p { margin-top: 8px; font-size: 14.5px; }
.roadmap { padding-top: 104px; }
.soon-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.soon-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13.5px; color: #c4c8ce; transition: background .2s; }
.soon-card:hover { background: var(--s1); }
.soon-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--dim); }
.soon-meta em { font-family: var(--mono); font-style: normal; font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); padding: 1px 6px; border: 1px solid var(--line); border-radius: 99px; }

.faq { padding-top: 104px; padding-bottom: 40px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 2px; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font-size: 16.5px; font-weight: 500; letter-spacing: -0.02em; transition: color .2s; }
.faq-item summary:hover h3 { color: var(--sky); }
.faq-x { position: relative; width: 12px; height: 12px; flex-shrink: 0; }
.faq-x::before, .faq-x::after { content: ""; position: absolute; left: 0; top: 5.5px; width: 12px; height: 1px; background: var(--mute); transition: transform .3s var(--ease); }
.faq-x::after { transform: rotate(90deg); }
.faq-item[open] .faq-x::after { transform: rotate(0); }
.faq-item p { padding: 0 40px 22px 2px; color: var(--mute); max-width: 720px; }

/* ── full-library showcase ── */
.top-tab { display: inline-flex; align-items: center; gap: 5px; color: var(--sky); border: 1px solid var(--sky-line); border-radius: 999px; padding: 5px 12px; margin-right: 4px; background: var(--sky-soft); }
.top-tab:hover { color: #bae6fd; }
.showcase { padding-top: 104px; }
.show-card { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 44px; border: 1px solid var(--sky-line); border-radius: 24px; overflow: hidden; background: radial-gradient(80% 120% at 0% 0%, rgba(56,189,248,.14), transparent 60%), var(--s1); transition: border-color .3s, box-shadow .4s; }
.show-card:hover { border-color: rgba(125,211,252,.6); box-shadow: 0 30px 90px -40px rgba(56,189,248,.5); }
.show-copy h2 { margin: 18px 0 12px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.08; }
.show-copy .btn { margin-top: 24px; }
.show-list { list-style: none; border-top: 1px solid var(--line); }
.show-list li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.show-list b { font-weight: 500; font-size: 15px; }
.show-list span { font-size: 13px; color: var(--dim); }


/* ── MCP onboarding ── */
.tag-new { font-family: var(--mono); font-style: normal; font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px; border-radius: 99px; border: 1px solid var(--sky-line); color: var(--sky); }
.top-tab svg { width: 13px; height: 13px; }
.mcp { position: relative; margin-top: 8px; margin-bottom: 72px; padding: 44px; border: 1px solid var(--sky-line); border-radius: 24px; background: radial-gradient(70% 90% at 100% 0%, rgba(56,189,248,.13), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(56,189,248,.06), transparent 60%), var(--s1); overflow: hidden; }
.mcp::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--sky), transparent); opacity: .7; }
.mcp-head h2 { margin: 18px 0 10px; font-size: clamp(32px, 4vw, 48px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.05; }
.mcp-head > p.mute { max-width: 620px; font-size: 15.5px; }
.mcp-steps { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 16px; margin-top: 32px; }
.mcp-step { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(0,0,0,.45); }
.mcp-step h3 { font-size: 16px; font-weight: 500; letter-spacing: -0.02em; }
.mcp-step .step-n { padding: 0; }
.mcp-step .code { padding: 14px 44px 14px 14px; font-size: 12px; max-height: none; white-space: pre-wrap; overflow-wrap: anywhere; }
.mcp-step .code-wrap { border-radius: 12px; }
.mcp-tabs { flex-wrap: wrap; }
.mcp-tabs .tab { padding: 5px 10px; font-size: 12.5px; }
.mcp-file { font-family: var(--mono); font-size: 11.5px; margin-bottom: 8px; }
.mcp-prompts { display: flex; flex-direction: column; gap: 8px; }
.mcp-prompt { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 13px; color: #d3d6db; transition: border-color .2s, background .2s; }
.mcp-prompt:hover { border-color: var(--sky-line); background: var(--sky-soft); }
.mcp-prompt svg { color: var(--dim); flex-shrink: 0; }
.small-note { font-size: 13px; margin-top: auto; padding-top: 6px; }

/* ── explore tiles ── */
.explore { padding-top: 104px; }
.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ex-tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--s1); transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.ex-tile:hover { border-color: var(--sky-line); transform: translateY(-2px); box-shadow: 0 24px 60px -30px rgba(56,189,248,.3); }
.ex-top { display: flex; justify-content: space-between; align-items: baseline; }
.ex-top b { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.ex-top span { font-family: var(--mono); font-size: 22px; color: var(--sky); letter-spacing: -0.04em; }
.ex-tile p { font-size: 13px; color: var(--dim); line-height: 1.6; flex: 1; }
.ex-go { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); transition: color .2s; }
.ex-tile:hover .ex-go { color: var(--sky); }


/* ── sidebar categories ── */
.sb-cat { margin: 2px 0; }
.sb-cat summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; user-select: none; color: #d3d6db; transition: background .15s, color .15s; }
.sb-cat summary::-webkit-details-marker { display: none; }
.sb-cat summary:hover { background: rgba(255,255,255,.04); color: var(--text); }
.sb-cat-ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--mute); flex-shrink: 0; transition: color .2s, border-color .2s, background .2s; }
.sb-cat[open] .sb-cat-ico, .sb-cat summary:hover .sb-cat-ico { color: var(--sky); border-color: var(--sky-line); background: var(--sky-soft); }
.sb-cat-t { flex: 1; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.sb-cat-n { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.sb-cat-chev { color: var(--dim); transition: transform .25s var(--ease); }
.sb-cat[open] .sb-cat-chev { transform: rotate(90deg); }
.sb-cat-list { position: relative; margin: 2px 0 10px 22px; padding-left: 12px; border-left: 1px solid var(--line); }
.sb-cat-list .sb-item.on::before { left: -13px; }


/* ── category links + pages ── */
.sb-cats .sb-label { margin-top: 2px; }
.sb-cat-link { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin: 1px 0; border-radius: 10px; color: #c9cdd3; transition: background .15s, color .15s; }
.sb-cat-link:hover { background: rgba(255,255,255,.04); color: var(--text); }
.sb-cat-link.on { background: rgba(255,255,255,.055); color: var(--text); }
.sb-cat-link.on::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--sky); box-shadow: 0 0 10px var(--sky); }
.sb-cat-link.on .sb-cat-ico, .sb-cat-link:hover .sb-cat-ico { color: var(--sky); border-color: var(--sky-line); background: var(--sky-soft); }
.sb-cat-ico.big { width: 44px; height: 44px; border-radius: 12px; color: var(--sky); border-color: var(--sky-line); background: var(--sky-soft); }
.sb-cat-ico.big svg { width: 22px; height: 22px; }
.cat-title { display: flex; align-items: center; gap: 14px; }
.cat-count { font-family: var(--mono); font-size: 14px; color: var(--sky); padding: 3px 10px; border: 1px solid var(--sky-line); border-radius: 99px; margin-left: 4px; }
.cat-page .cards { grid-auto-flow: row; }
.cat-soon { margin-top: 72px; }
.card-thumb { background: #000; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: transform .6s var(--ease), opacity .3s; }
.card:hover .card-thumb img { transform: scale(1.035); opacity: 1; }
.card-name .tag-new { margin-left: 6px; vertical-align: 1px; }
.tag-new.big { font-size: 11px; padding: 2px 8px; vertical-align: middle; margin-left: 8px; }
.embed-frame { position: relative; overflow: hidden; min-height: 420px; }
.embed-page { border: 1px solid var(--line-2); background: #000; }
.embed-frame iframe { position: relative; z-index: 1; display: block; width: 100%; height: 420px; border: 0; background: transparent; opacity: 0; transition: opacity .4s; }
.embed-frame.ready iframe { opacity: 1; }
.embed-loading { position: absolute; inset: 0; display: grid; place-items: center; padding: 32px; }
.embed-loading img { max-width: 100%; max-height: 100%; border-radius: 12px; opacity: .35; filter: blur(1px); animation: breathe 2.4s ease-in-out infinite; }
.embed-frame.ready .embed-loading { display: none; }
.embed-page { border-radius: 16px; }


/* ── preview controls ── */
.pv-ctrls { display: flex; align-items: center; gap: 6px; margin-right: 4px; }
.pv-ctrl { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 9px; }
.pv-ctrl button { width: 28px; height: 26px; display: grid; place-items: center; border-radius: 7px; color: var(--dim); transition: color .2s, background .2s; }
.pv-ctrl button:hover { color: var(--text); }
.pv-ctrl button.on { color: var(--text); background: rgba(255,255,255,.08); }
.pv-ctrl button.on[data-pv-theme="light"] { color: #fde68a; }
.pv-vp { width: 100%; max-width: var(--pv-w, 100%); margin: 0 auto; display: grid; place-items: center; min-height: inherit; transition: max-width .45s var(--ease); }
.stage-block .pv-vp { display: block; }
.pv:not([data-vp="desktop"])[data-vp] .pv-vp { padding: 28px 12px; border-left: 1px dashed var(--line-2); border-right: 1px dashed var(--line-2); }
.pv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pv-bar-t { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.pv-lib .embed-frame iframe { max-width: var(--pv-w, 100%); margin: 0 auto; transition: max-width .45s var(--ease), opacity .4s; }
.pv-lib[data-vp]:not([data-vp="desktop"]) .embed-frame { background: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 18px 18px; border: 1px solid var(--line); border-radius: 16px; padding: 18px 0; }
.pv-lib.pv-light .embed-frame { background-color: #f4f5f7; border-radius: 16px; }

/* light preview for site components */
.pv-light .stage { background: radial-gradient(rgba(0,0,0,.08) 1px, transparent 1px) 0 0 / 18px 18px, #f6f7f9; color: #0b0c0e; }
.pv-light .stage-block { background: #fff; }
.pv-light .x-btn-outline { border-color: rgba(0,0,0,.15); color: #0b0c0e; }
.pv-light .x-btn-outline:hover { background: rgba(0,0,0,.04); }
.pv-light .x-btn-ghost { color: #52525b; }
.pv-light .x-btn-ghost:hover { color: #0b0c0e; background: rgba(0,0,0,.05); }
.pv-light .x-btn-primary { background: #0ea5e9; color: #fff; box-shadow: 0 8px 24px -10px rgba(14,165,233,.7); }
.pv-light .x-shimmer { background: #fff; color: #0369a1; border-color: rgba(14,165,233,.35); }
.pv-light .x-badge-sky { color: #0369a1; background: rgba(14,165,233,.1); border-color: rgba(14,165,233,.3); }
.pv-light .x-badge-neutral { background: rgba(0,0,0,.06); color: #3f3f46; }
.pv-light .x-badge-outline { border-color: rgba(0,0,0,.15); color: #52525b; }
.pv-light .x-field input { background: #fff; border-color: rgba(0,0,0,.15); color: #0b0c0e; }
.pv-light .x-field input:focus + label, .pv-light .x-field input:not(:placeholder-shown) + label { color: #0284c7; }
.pv-light .x-opts label { border-color: rgba(0,0,0,.08); }
.pv-light .x-sw { background: #e4e4e7; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.pv-light .x-sw::after { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.pv-light .x-sw:checked { background: #0ea5e9; }
.pv-light .x-sw:checked::after { background: #fff; }
.pv-light .x-seg { border-color: rgba(0,0,0,.12); }
.pv-light .x-seg button { color: #71717a; }
.pv-light .x-seg button.on { color: #fff; }
.pv-light .x-seg-ind { background: #0ea5e9; }
.pv-light .x-range-top, .pv-light .x-range-top .x-mono { color: #3f3f46; }
.pv-light .x-range input { background: linear-gradient(90deg, #0ea5e9 var(--p, 64%), #e4e4e7 var(--p, 64%)); }
.pv-light .x-range input::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(14,165,233,.2), 0 1px 3px rgba(0,0,0,.3); }
.pv-light .x-stat { background: #fff; border-color: rgba(0,0,0,.08); box-shadow: 0 10px 30px -18px rgba(0,0,0,.3); }
.pv-light .x-stat-top { color: #71717a; }
.pv-light .x-stat-top em { color: #0284c7; }
.pv-light .x-pal { background: #fff; border-color: rgba(0,0,0,.1); box-shadow: 0 30px 60px -30px rgba(0,0,0,.3); }
.pv-light .x-pal-in { border-color: rgba(0,0,0,.08); }
.pv-light .x-pal-in input { color: #0b0c0e; }
.pv-light .x-pal li { color: #52525b; }
.pv-light .x-pal li.on { background: rgba(14,165,233,.1); color: #0b0c0e; }
.pv-light .x-pal li.on em { color: #0284c7; }
.pv-light .x-pal kbd { border-color: rgba(0,0,0,.15); color: #71717a; }
.pv-light .x-avs i { background: #f4f4f5; border-color: #fff; color: #52525b; }
.pv-light .x-avs i:first-child { background: #0ea5e9; color: #fff; }
.pv-light .x-avs .more { color: #0284c7; }
.pv-light .x-marquee-track span { background: #fff; border-color: rgba(0,0,0,.1); color: #27272a; }
.pv-light .x-hero, .pv-light .x-pricing { background: #fff; color: #0b0c0e; }
.pv-light .x-hero-k { border-color: rgba(0,0,0,.1); color: #52525b; }
.pv-light .x-hero-l, .pv-light .x-pr-card p { color: #52525b; }
.pv-light .x-hero-arc { background: #fff; border-top-color: #38bdf8; box-shadow: 0 -1px 40px rgba(14,165,233,.35); }
.pv-light .x-hero em, .pv-light .x-pricing em { color: #0284c7; }
.pv-light .x-pr-toggle { border-color: rgba(0,0,0,.12); }
.pv-light .x-pr-toggle button { color: #71717a; }
.pv-light .x-pr-toggle button.on { background: #0ea5e9; color: #fff; }
.pv-light .x-pr-card { border-color: rgba(0,0,0,.1); }
.pv-light .x-pr-card.feat { background: #f0f9ff; border-color: rgba(14,165,233,.45); }
.pv-light .x-pr-card ul { border-color: rgba(0,0,0,.08); color: #3f3f46; }

/* ── footer ──────────────────────────────────────────────── */
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 96px; padding: 28px 0 36px; border-top: 1px solid var(--line); font-size: 13px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.foot-brand .mark { width: 20px; height: 20px; }
.foot-brand .dim { font-weight: 400; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; color: var(--mute); }
.foot nav a:hover { color: var(--text); }

/* ── docs pages ──────────────────────────────────────────── */
.doc { padding-top: 40px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--dim); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--mute); }
.doc-head { padding: 22px 0 30px; }
.doc-head h1 { font-size: clamp(34px, 4.4vw, 48px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.05; }
.doc-head .lede { margin-top: 12px; }
.doc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.doc-tags span { font-size: 12px; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--mute); }
.doc-tags .t-sky { border-color: var(--sky-line); color: var(--sky); background: var(--sky-soft); }

.frame { border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: var(--s1); }
.frame-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 10px; border-bottom: 1px solid var(--line); background: var(--bg); }
.tabs { display: inline-flex; gap: 2px; }
.tab { padding: 6px 12px; border-radius: 8px; font-size: 13px; color: var(--mute); transition: color .2s, background .2s; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); background: rgba(255,255,255,.06); }
.frame-actions { display: flex; gap: 4px; }
.act { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: 8px; font-size: 12.5px; color: var(--mute); border: 1px solid transparent; transition: color .2s, border-color .2s, background .2s; }
.act:hover { color: var(--text); border-color: var(--line-2); }
.act[data-copy-key="prompt"] { color: var(--sky); }
.act[data-copy-key="prompt"]:hover { border-color: var(--sky-line); background: var(--sky-soft); }
.stage { min-height: 400px; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 48px 32px; background: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px) 0 0 / 18px 18px, radial-gradient(90% 70% at 50% 0%, rgba(56,189,248,.06), transparent 60%); }
.stage-block { padding: 0; display: block; background: var(--bg); }
.panel[hidden] { display: none; }
.code-file { padding: 10px 16px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); border-bottom: 1px solid var(--line); }
.code { margin: 0; padding: 20px 22px; max-height: 560px; overflow: auto; font-size: 13px; line-height: 1.75; color: #c9cdd3; background: var(--bg); tab-size: 2; scrollbar-width: thin; scrollbar-color: #1d1f23 transparent; }
.frame .code { background: var(--s1); }
.tk-k { color: var(--sky); }
.tk-t { color: #38bdf8; }
.tk-s { color: #b4dbee; }
.tk-n { color: #e0f2fe; }
.tk-f { color: #e5e7eb; }
.tk-c { color: #4b5058; font-style: italic; }

.doc-sec { margin-top: 56px; }
.doc-sec h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; margin-bottom: 16px; }
.doc-sec > p { max-width: 680px; }
.steps { display: flex; flex-direction: column; gap: 22px; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px; }
.step-n { font-family: var(--mono); font-size: 12px; color: var(--sky); padding-top: 2px; }
.step p { font-size: 14.5px; }
.steps.big .step { padding: 22px 0; border-top: 1px solid var(--line); }
.steps.big { gap: 0; }
.step-t { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 4px; }
.cmdline { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 4px 4px 4px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--s1); max-width: 720px; }
.cmdline code { flex: 1; font-size: 12.5px; overflow-x: auto; white-space: nowrap; color: #d3d6db; scrollbar-width: none; padding: 9px 0; }
.icon-btn { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; color: var(--mute); transition: color .2s, background .2s; }
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.06); }
.icon-btn.ok, .act.ok { color: var(--sky); }
.code-wrap { position: relative; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.code-copy { position: absolute; top: 8px; right: 8px; background: var(--bg); }
code.inline { font-size: 12.5px; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.06); color: #dfe2e6; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 64px; }
.pg { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; font-size: 13px; transition: border-color .2s; }
.pg b { font-weight: 500; font-size: 15px; }
.pg:hover { border-color: var(--sky-line); }
.pg-next { text-align: right; }

/* ── search modal ────────────────────────────────────────── */
.search { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 0; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); animation: fade .18s ease; }
.search[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.search-box { width: 100%; max-width: 560px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--s2); overflow: hidden; box-shadow: 0 40px 120px -30px rgba(56,189,248,.3), 0 0 0 1px rgba(0,0,0,.5); animation: pop .22s var(--ease); }
@keyframes pop { from { transform: translateY(-8px) scale(.98); opacity: 0; } }
.search-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--dim); }
.search-in input { flex: 1; outline: 0; font-size: 15px; color: var(--text); min-width: 0; }
.search-in input::placeholder { color: var(--dim); }
.search-list { list-style: none; max-height: 52vh; overflow-y: auto; padding: 6px; }
.search-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; font-size: 14px; color: var(--mute); cursor: pointer; }
.search-list li small { font-size: 12px; color: var(--dim); }
.search-list li.on { background: var(--sky-soft); color: var(--text); }
.search-list li.on small { color: var(--sky); }
.search-list li.soon { cursor: default; color: #4a4e55; }
.search-list li.empty { justify-content: center; padding: 28px; color: var(--dim); cursor: default; }
.search-list .s-tag { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; padding: 1px 6px; border: 1px solid var(--line); border-radius: 99px; margin-left: 8px; }

.toast { position: fixed; bottom: 24px; left: 50%; z-index: 90; transform: translate(-50%, 12px); opacity: 0; padding: 8px 16px; border-radius: 999px; background: var(--sky); color: var(--sky-ink); font-size: 13px; font-weight: 500; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ══ previews (x-*) ═════════════════════════════════════════ */
.x-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.x-mono { font-family: var(--mono); }
.x-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .2s, box-shadow .3s, border-color .2s, color .2s, transform .15s; }
.x-btn:active { transform: scale(.98); }
.x-btn-primary { background: var(--sky); color: var(--sky-ink); box-shadow: 0 0 0 1px rgba(125,211,252,.4), 0 8px 32px -8px rgba(56,189,248,.6); }
.x-btn-primary:hover { background: #bae6fd; }
.x-btn-outline { border: 1px solid var(--line-2); color: var(--text); }
.x-btn-outline:hover { border-color: var(--line-3); background: rgba(255,255,255,.03); }
.x-btn-ghost { color: var(--mute); }
.x-btn-ghost:hover { color: var(--text); background: rgba(255,255,255,.05); }

.x-shimmer { position: relative; display: inline-flex; align-items: center; height: 44px; padding: 0 24px; overflow: hidden; border-radius: 999px; border: 1px solid rgba(125,211,252,.3); background: #000; color: #e0f2fe; font-size: 14px; font-weight: 500; transition: border-color .3s; }
.x-shimmer:hover { border-color: rgba(125,211,252,.6); }
.x-shimmer-sweep { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(125,211,252,.25), transparent); animation: x-shimmer 2.6s ease-in-out infinite; }
@keyframes x-shimmer { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.x-shimmer-edge { position: absolute; left: 24px; right: 24px; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--sky), transparent); }
.x-shimmer-label { position: relative; display: inline-flex; align-items: center; gap: 8px; }

.x-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.x-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.x-badge-sky { border: 1px solid var(--sky-line); background: var(--sky-soft); color: var(--sky); }
.x-badge-neutral { background: rgba(255,255,255,.06); color: #d4d4d8; }
.x-badge-outline { border: 1px solid var(--line-2); color: var(--mute); }

.x-field { position: relative; width: 260px; max-width: 100%; }
.x-field input { width: 100%; height: 52px; padding: 20px 14px 4px; border: 1px solid var(--line-2); border-radius: 12px; outline: 0; background: #09090b; font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.x-field input:focus { border-color: var(--sky); box-shadow: 0 0 0 4px var(--sky-soft); }
.x-field label { position: absolute; left: 14px; top: 15px; font-size: 14px; color: #71717a; pointer-events: none; transition: all .18s; }
.x-field input:focus + label, .x-field input:not(:placeholder-shown) + label { top: 6px; font-size: 11px; color: var(--sky); }

.x-opts { width: 240px; display: flex; flex-direction: column; }
.x-opts label { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; font-size: 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.x-opts label:last-child { border-bottom: 0; }
.x-sw { appearance: none; width: 34px; height: 20px; border-radius: 999px; background: #27272a; position: relative; cursor: pointer; transition: background .25s; box-shadow: inset 0 0 0 1px var(--line-2); flex-shrink: 0; }
.x-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #a1a1aa; transition: transform .3s cubic-bezier(.2,1.4,.4,1), background .25s; }
.x-sw:checked { background: var(--sky); box-shadow: none; }
.x-sw:checked::after { transform: translateX(14px); background: #082f49; }

.x-seg { position: relative; display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.x-seg button { position: relative; z-index: 1; padding: 6px 18px; font-size: 13px; color: var(--mute); transition: color .3s; }
.x-seg button.on { color: var(--sky-ink); font-weight: 500; }
.x-seg-ind { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 999px; background: var(--sky); transition: transform .5s cubic-bezier(.2,1.2,.4,1), width .5s cubic-bezier(.2,1.2,.4,1); }

.x-range { width: 240px; }
.x-range-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); margin-bottom: 14px; }
.x-range-top .x-mono { color: var(--text); }
.x-range input { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--sky) var(--p, 64%), #1c1e22 var(--p, 64%)); outline: 0; cursor: pointer; }
.x-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(125,211,252,.25); }
.x-range input::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(125,211,252,.25); }

.x-stat { width: 240px; padding: 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #09090b; display: flex; flex-direction: column; }
.x-stat-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--mute); }
.x-stat-top em { font-family: var(--mono); font-style: normal; font-size: 11px; color: var(--sky); }
.x-stat-v { font-size: 30px; font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin: 2px 0 10px; }
.x-stat svg { width: 100%; height: 32px; }
.x-stat path { stroke-dasharray: 200; stroke-dashoffset: 200; animation: x-draw 2.4s var(--ease) forwards .3s; }
@keyframes x-draw { to { stroke-dashoffset: 0; } }

.x-pal { width: 420px; max-width: 100%; border: 1px solid var(--line-2); border-radius: 16px; background: #09090b; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(56,189,248,.25); text-align: left; }
.x-pal-in { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: #71717a; }
.x-pal-in input { flex: 1; outline: 0; font-size: 14px; color: var(--text); min-width: 0; }
.x-pal-in input::placeholder { color: #71717a; }
.x-pal ul { list-style: none; padding: 6px; }
.x-pal li { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--mute); cursor: pointer; transition: background .15s, color .15s; }
.x-pal li em { font-family: var(--mono); font-style: normal; font-size: 11px; color: #71717a; }
.x-pal li.on { background: var(--sky-soft); color: var(--text); }
.x-pal li.on em { color: var(--sky); }
.x-pal li.hide { display: none; }

.x-avs { display: flex; }
.x-avs i { width: 38px; height: 38px; margin-left: -8px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 500; background: #18181b; border: 2px solid #000; color: var(--mute); transition: transform .2s; }
.x-avs i:first-child { margin-left: 0; background: var(--sky); color: var(--sky-ink); }
.x-avs i:hover { transform: translateY(-4px); }
.x-avs .more { color: var(--sky); }

.x-marquee { width: 100%; max-width: 520px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.x-marquee-track { display: flex; gap: 12px; width: max-content; animation: x-marquee 24s linear infinite; }
.x-marquee:hover .x-marquee-track { animation-play-state: paused; }
.x-marquee-track span { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #09090b; font-size: 13.5px; white-space: nowrap; }
@keyframes x-marquee { to { transform: translateX(calc(-50% - 6px)); } }

.x-hero { position: relative; width: 100%; padding: 72px 24px 0; text-align: center; overflow: hidden; background: #000; }
.x-hero-k { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--mute); padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; }
.x-hero-k span { width: 6px; height: 6px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 12px var(--sky); }
.x-hero h3 { margin-top: 26px; font-size: clamp(40px, 6vw, 68px); font-weight: 500; line-height: .98; letter-spacing: -0.055em; }
.x-hero-l { margin: 18px auto 30px; max-width: 380px; color: var(--mute); font-size: 15.5px; }
.x-hero-h { position: relative; height: 170px; margin-top: 20px; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.x-hero-arc { position: absolute; left: 50%; top: 70px; width: 1400px; height: 1400px; transform: translateX(-50%); border-radius: 50%; background: #000; border-top: 1px solid rgba(186,230,253,.9); box-shadow: 0 -1px 40px rgba(125,211,252,.55), inset 0 30px 60px -30px rgba(125,211,252,.25); }
.x-hero-glow { position: absolute; left: 50%; top: 0; width: 760px; max-width: 100%; height: 170px; transform: translateX(-50%); background: radial-gradient(50% 60% at 50% 70%, rgba(56,189,248,.35), transparent 70%); filter: blur(18px); }

.x-pricing { width: 100%; padding: 56px 28px; background: #000; text-align: center; }
.x-pricing h3 { font-size: clamp(30px, 4vw, 42px); font-weight: 500; letter-spacing: -0.045em; }
.x-pr-toggle { display: inline-flex; margin-top: 22px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; }
.x-pr-toggle button { padding: 6px 16px; border-radius: 999px; color: var(--mute); transition: background .25s, color .25s; }
.x-pr-toggle button.on { background: var(--sky); color: var(--sky-ink); font-weight: 500; }
.x-pr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 880px; margin: 36px auto 0; text-align: left; }
.x-pr-card { display: flex; flex-direction: column; padding: 22px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; }
.x-pr-card.feat { border-color: rgba(125,211,252,.4); background: #09090b; box-shadow: 0 30px 80px -30px rgba(56,189,248,.35); }
.x-pr-card b { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 500; }
.x-pr-card b i { font-style: normal; font-size: 11px; font-weight: 400; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--sky-line); background: var(--sky-soft); color: var(--sky); }
.x-pr-price { display: flex; align-items: baseline; gap: 4px; margin-top: 16px; }
.x-pr-price span { font-size: 36px; font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.x-pr-price small { font-size: 13px; color: var(--dim); }
.x-pr-card p { margin-top: 4px; font-size: 13.5px; color: var(--mute); }
.x-pr-card ul { list-style: none; flex: 1; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: #d4d4d8; }
.x-pr-card li { display: flex; align-items: center; gap: 10px; }
.x-pr-card li::before { content: ""; width: 12px; height: 7px; margin-top: -4px; border-left: 2px solid var(--sky); border-bottom: 2px solid var(--sky); transform: rotate(-45deg); flex-shrink: 0; }
.x-pr-card .x-btn { margin-top: 24px; height: 38px; font-size: 13px; }

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 1180px) {
  .main { padding: 0 36px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .soon-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .brand { width: auto; }
  .top-menu { display: grid; margin-left: -8px; }
  .top-search { margin-left: auto; max-width: 240px; }
  .top-r { margin-left: 0; }
  .hide-sm { display: none; }
  .sb { z-index: 60; background: var(--bg); transform: translateX(-100%); transition: transform .35s var(--ease); }
  .sb-open .sb { transform: none; }
  .sb-open .sb-scrim { display: block; position: fixed; inset: var(--top) 0 0; z-index: 55; background: rgba(0,0,0,.6); }
  .main { margin-left: 0; padding: 0 24px; }
  .x-pr-grid { grid-template-columns: 1fr; max-width: 360px; }
  .show-card { grid-template-columns: 1fr; padding: 28px; }
  .mcp-steps { grid-template-columns: minmax(0, 1fr); }
  .mcp { padding: 28px; }
  .ex-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .top { padding: 0 14px; gap: 10px; }
  .top-search { width: 36px; padding: 0; justify-content: center; }
  .top-tab { padding: 5px 10px; font-size: 12.5px; }
  .top-search span, .top-search kbd { display: none; }
  .main { padding: 0 18px; }
  .intro { padding-top: 56px; }
  .btn-cmd { font-size: 11.5px; }
  .kicker { font-size: 10.5px; gap: 7px; padding: 5px 11px; }
  .cards { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .soon-grid { grid-template-columns: 1fr 1fr; }
  .frame-actions .act span { display: none; }
  .frame-bar { flex-wrap: wrap; }
  .pv-ctrl button { width: 26px; }
  .stage { min-height: 320px; padding: 36px 16px; }
  .pager { grid-template-columns: 1fr; }
  .ex-grid { grid-template-columns: 1fr; }
  .mcp { padding: 22px 16px; border-radius: 18px; }
  .faq-item p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .x-stat path { stroke-dashoffset: 0; }
}

/* AI Agents: grouped category + home kit */
.ai-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.ai-nav-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--mute); background: var(--s1); transition: color .2s, border-color .2s, background .2s; }
.ai-nav-chip span { font-family: var(--mono); font-size: 11px; color: var(--sky); }
.ai-nav-chip:hover { color: var(--text); border-color: var(--sky-line); }
.ai-sub { margin-top: 44px; scroll-margin-top: 80px; }
.ai-sub-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 18px; }
.ai-sub-head h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; letter-spacing: -0.035em; }
.ai-sub-n { font-family: var(--mono); font-size: 12px; color: var(--sky); }
.ai-sub-head p { flex-basis: 100%; font-size: 14px; }
.ai-kit { margin-top: 8px; }
.ai-kit .kicker { margin-bottom: 14px; }
.ai-kit-cta { margin-top: 18px; display: flex; justify-content: center; }

/* CRM: featured template */
.crm-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: center; margin: 10px 0 8px; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--s1); transition: border-color .3s, box-shadow .4s, transform .4s var(--ease); }
.crm-feature:hover { border-color: var(--sky-line); box-shadow: 0 30px 70px -36px rgba(56,189,248,.35); transform: translateY(-2px); }
.crm-feature img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); display: block; }
.crm-feature-copy { padding: 6px 14px 6px 0; }
.crm-feature-copy h2 { margin: 10px 0 8px; font-size: clamp(26px, 3vw, 36px); font-weight: 500; letter-spacing: -0.045em; }
.crm-feature-copy p.mute { font-size: 14.5px; line-height: 1.6; }
.crm-feature-copy .ex-go { margin-top: 16px; display: inline-flex; }
.crm-feature:hover .ex-go { color: var(--sky); }
@media (max-width: 760px) { .crm-feature { grid-template-columns: minmax(0, 1fr); gap: 14px; } .crm-feature-copy { padding: 0 6px 6px; } }

/* ─── Light theme ──────────────────────────────────────────────
   Toggled from the header (html[data-theme="light"], saved in localStorage).
   Dark-designed library previews and thumbnails get the same automatic
   light rendering as the library app; light-native items opt out. */
:root { color-scheme: dark; }
html[data-theme="light"] {
  color-scheme: light;
  --bg: #fff;
  --s1: #fafafa;
  --s2: #f4f4f5;
  --s3: #ececee;
  --line: rgba(0, 0, 0, .08);
  --line-2: rgba(0, 0, 0, .13);
  --line-3: rgba(0, 0, 0, .22);
  --text: #0b0c0e;
  --mute: #5c616a;
  --dim: #8d929a;
  --sky: #0284c7;
  --sky-2: #0ea5e9;
  --sky-ink: #fff;
  --sky-soft: rgba(2, 132, 199, .08);
  --sky-line: rgba(2, 132, 199, .32);
}
html[data-theme="light"] ::selection { color: #fff; }
html[data-theme="light"] .top { background: rgba(255, 255, 255, .84); }
html[data-theme="light"] .mark { color: #0b0c0e; }
html[data-theme="light"] .top-icon:hover,
html[data-theme="light"] .icon-btn:hover { background: rgba(0, 0, 0, .05); }
html[data-theme="light"] a.sb-item:hover,
html[data-theme="light"] .sb-cat summary:hover,
html[data-theme="light"] .sb-cat-link:hover { background: rgba(0, 0, 0, .04); }
html[data-theme="light"] .sb-item.on,
html[data-theme="light"] .sb-cat-link.on { background: rgba(0, 0, 0, .055); }
html[data-theme="light"] .sb-cat-ico { background: #fff; }
html[data-theme="light"] .kicker { background: rgba(0, 0, 0, .02); }
html[data-theme="light"] .chip.on,
html[data-theme="light"] .tab.on,
html[data-theme="light"] .pv-ctrl button.on { background: rgba(0, 0, 0, .06); }
html[data-theme="light"] .btn-sky { box-shadow: 0 0 0 1px rgba(2, 132, 199, .35), 0 8px 28px -10px rgba(14, 165, 233, .55); }
html[data-theme="light"] .btn-sky:hover { background: #0369a1; box-shadow: 0 0 0 1px rgba(2, 132, 199, .5), 0 10px 36px -8px rgba(14, 165, 233, .6); }
html[data-theme="light"] .btn-cmd { color: #3f3f46; }
html[data-theme="light"] .arc { background: #fff; border-top-color: rgba(2, 132, 199, .5); box-shadow: 0 -1px 36px rgba(14, 165, 233, .28), inset 0 30px 60px -30px rgba(14, 165, 233, .12); }
html[data-theme="light"] .card-stage { background: radial-gradient(rgba(0, 0, 0, .06) 1px, transparent 1px) 0 0 / 16px 16px, radial-gradient(120% 90% at 50% 0%, rgba(0, 0, 0, .02), transparent 60%); }
html[data-theme="light"] .card-thumb,
html[data-theme="light"] .embed-page { background: #fff; }
html[data-theme="light"] .mcp-step { background: #fff; }
html[data-theme="light"] .stage { background: radial-gradient(rgba(0, 0, 0, .07) 1px, transparent 1px) 0 0 / 18px 18px, radial-gradient(90% 70% at 50% 0%, rgba(14, 165, 233, .06), transparent 60%); }
html[data-theme="light"] .pv-lib[data-vp]:not([data-vp="desktop"]) .embed-frame { background: radial-gradient(rgba(0, 0, 0, .07) 1px, transparent 1px) 0 0 / 18px 18px; }
html[data-theme="light"] .pv-lib.pv-light .embed-frame { background-color: #fff; }
html[data-theme="light"] .code { color: #27272a; scrollbar-color: #d4d4d8 transparent; }
html[data-theme="light"] .tk-t { color: #0369a1; }
html[data-theme="light"] .tk-s { color: #0e7490; }
html[data-theme="light"] .tk-n { color: #075985; }
html[data-theme="light"] .tk-f { color: #18181b; }
html[data-theme="light"] .tk-c { color: #9ca3af; }
html[data-theme="light"] code.inline { background: rgba(0, 0, 0, .05); color: #27272a; }
html[data-theme="light"] .search { background: rgba(0, 0, 0, .22); }
html[data-theme="light"] .search-box { box-shadow: 0 40px 120px -30px rgba(2, 132, 199, .22), 0 0 0 1px rgba(0, 0, 0, .05); }
html[data-theme="light"] .sb-open .sb-scrim { background: rgba(0, 0, 0, .22); }
html[data-theme="light"] .card:not([data-native="light"]) .card-thumb img,
html[data-theme="light"] .embed-frame:not([data-native="light"]) .embed-loading img { filter: invert(1) hue-rotate(180deg); }
.theme-toggle .i-moon { display: none; }
html[data-theme="light"] .theme-toggle .i-sun { display: none; }
html[data-theme="light"] .theme-toggle .i-moon { display: block; }
html[data-theme="light"] .sb,
html[data-theme="light"] .code { scrollbar-color: #d4d4d8 transparent; }
html[data-theme="light"] .sb-cat-link,
html[data-theme="light"] .sb-cat summary,
html[data-theme="light"] .soon-card,
html[data-theme="light"] .mcp-prompt,
html[data-theme="light"] .cmdline code { color: #3f3f46; }
html[data-theme="light"] .sb-cat-link:hover,
html[data-theme="light"] .sb-cat-link.on { color: var(--text); }
html[data-theme="light"] .sb-item.soon,
html[data-theme="light"] .search-list li.soon { color: #a1a1aa; }
html[data-theme="light"] .kicker .sep { color: #c4c6ca; }
html[data-theme="light"] .top-tab:hover { color: #0369a1; }
html[data-theme="light"] .pv-ctrl button.on[data-pv-theme="light"] { color: #d97706; }

/* Full-page template preview (/preview/…) */
.fp-body { height: 100vh; height: 100dvh; overflow: hidden; }
.fp { display: flex; flex-direction: column; height: 100%; }
.fp-bar { flex-shrink: 0; height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 10px 0 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.fp-back { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px 0 6px; border-radius: 8px; font-size: 13px; color: var(--mute); transition: color .2s, background .2s; }
.fp-back:hover { color: var(--text); background: var(--s2); }
.fp-sep { width: 1px; height: 18px; background: var(--line-2); }
.fp-name { min-width: 0; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-cat { font-family: var(--mono); font-size: 11px; color: var(--dim); white-space: nowrap; }
.fp-bar .pv-ctrls { margin-left: auto; }
.fp-stage { position: relative; flex: 1; min-height: 0; display: flex; justify-content: center; background: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 18px 18px; }
.fp-stage iframe { display: block; width: 100%; max-width: var(--pv-w, 100%); height: 100%; border: 0; background: #000; transition: max-width .45s var(--ease); }
.fp[data-vp]:not([data-vp="desktop"]) .fp-stage { padding: 16px 0; }
.fp[data-vp]:not([data-vp="desktop"]) .fp-stage iframe { border-radius: 14px; border: 1px solid var(--line-2); }
.fp-stage[data-native="light"] iframe { background: #fff; }
.pv-open { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 10px; padding: 6px 12px; border: 1px solid var(--sky-line); border-radius: 999px; font-size: 12.5px; color: var(--sky); background: var(--sky-soft); white-space: nowrap; transition: background .2s; }
.pv-open:hover { background: rgba(125,211,252,.18); }
html[data-theme="light"] .fp-stage { background: radial-gradient(rgba(0,0,0,.07) 1px, transparent 1px) 0 0 / 18px 18px; }
html[data-theme="light"] .fp-stage iframe { background: #fff; }
@media (max-width: 640px) { .fp-cat, .fp-sep, .fp-back span, .fp-bar .pv-ctrl[aria-label="Preview size"] { display: none; } .fp-bar { gap: 8px; } .pv-open { padding: 5px 10px; } }

/* Library item source + install */
.src-files { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 10px; scrollbar-width: none; }
.src-files .tab { white-space: nowrap; font-family: var(--mono); font-size: 12px; }
.src-prompt { margin-top: 12px; }

/* Save button, saved list, changelog */
.save-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12.5px; color: var(--mute); transition: color .2s, border-color .2s, background .2s; }
.save-btn:hover { color: var(--text); border-color: var(--line-3); }
.save-btn.on { color: var(--sky); border-color: var(--sky-line); background: var(--sky-soft); }
.save-btn.on svg { fill: currentColor; }
.saved-list { list-style: none; margin-top: 24px; border-top: 1px solid var(--line); }
.saved-list li { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.saved-list a { flex: 1; display: flex; align-items: baseline; gap: 12px; padding: 14px 4px; }
.saved-list a:hover b { color: var(--sky); }
.saved-list small { color: var(--dim); font-size: 12.5px; }
.saved-list button { font-size: 12.5px; color: var(--dim); padding: 6px 10px; border-radius: 8px; }
.saved-list button:hover { color: var(--text); background: var(--s2); }
.saved-empty { margin-top: 20px; }
.changes { list-style: none; margin-top: 28px; border-left: 1px solid var(--line-2); padding-left: 24px; display: flex; flex-direction: column; gap: 28px; }
.changes li { position: relative; display: grid; gap: 4px; }
.changes li::before { content: ""; position: absolute; left: -29px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px var(--bg); }
.changes time { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.changes h2 { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.changes p { font-size: 14.5px; }
