@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/inter-latin-variable.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; letter-spacing: 0; }
:root {
  --bg: #fff; --surface: #f7f7f8; --ink: #202124; --ink-2: #53545c; --ink-3: #70717a;
  --line: #e8e8ec; --line-strong: #d9d9e0; --accent: #6650cc; --accent-light: #f0ecfc;
  --green: #347459; --red: #b24448; --yellow: #996316;
  --radius-card: 6px; --radius-pill: 6px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { color: var(--ink); background: var(--bg); font: 400 15px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
button, input, summary { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; appearance: none; -webkit-appearance: none; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 18px; height: 18px; color: inherit; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.github-icon { width: 20px; height: 20px; fill: currentColor; }
.page-shell { max-width: 1168px; padding: 0 32px; margin: 0 auto; }

/* One navigation bar, aligned with the page grid. */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
nav { max-width: 1168px; height: 72px; padding: 0 32px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 680; white-space: nowrap; }
.nav-mark { width: 29px; height: 29px; display: grid; place-items: center; background: var(--ink); color: #fff; border-radius: 7px; font-size: 16px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { font-size: 13px; color: var(--ink-2); transition: color .15s; }
.nav-link:hover { color: var(--accent); }
.nav-gh { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 6px; transition: background .15s; }
.nav-gh:hover { background: var(--surface); }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu-panel { position: absolute; right: -48px; top: calc(100% + 14px); width: 230px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 24px #2021240d; }
.nav-menu-panel a { display: block; padding: 12px; font-size: 14px; border-radius: 4px; }
.nav-menu-panel a:hover { background: var(--surface); }

/* Compact introduction with the actual interactive workspace directly beneath. */
.hero { text-align: center; padding: 52px 0 44px; }
.hero-copy h1 { font-size: 52px; font-weight: 600; line-height: 1.15; margin-bottom: 16px; }
.hero-copy > p { max-width: 510px; margin: auto; color: var(--ink-2); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 42px; padding: 10px 18px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; font-weight: 550; white-space: nowrap; transition: background .16s, border-color .16s, transform .16s; }
.btn:active { transform: translateY(1px); }
.btn-primary, .btn-inverse { color: #fff; background: var(--ink); }
.btn-primary:hover, .btn-inverse:hover { background: #383940; }
.btn-secondary, .btn-ghost-white { background: #fff; border-color: var(--line-strong); }
.btn-secondary:hover, .btn-ghost-white:hover { background: var(--surface); }
.btn-icon { width: 42px; padding: 0; }
.install-cmd { display: flex; align-items: center; gap: 16px; min-height: 42px; padding: 9px 12px 9px 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; font: 12px/1.5 var(--mono); color: var(--ink-2); }
.install-cmd:hover { border-color: var(--line-strong); }
.install-cmd .icon { width: 15px; height: 15px; }
.copy-icon { display: grid; place-items: center; min-width: 15px; font: 11px var(--font); }
.section { padding-top: 96px; min-width: 0; }
.section-title { font-size: 32px; line-height: 1.25; font-weight: 560; text-wrap: balance; margin-bottom: 12px; }
.section-sub { color: var(--ink-2); max-width: 560px; font-size: 15px; margin-bottom: 36px; text-wrap: pretty; }
.section-label { color: var(--ink-3); font-size: 12px; margin-bottom: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 13px; font-weight: 550; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
h2, h3, p, .pkg-name { overflow-wrap: anywhere; }
code, pre { font-family: var(--mono); }
code { color: var(--accent); font-size: .9em; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }

/* The demo is a single framed tool; its internal sections are not cards. */
#demo { padding-top: 0; }
.deck { border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; box-shadow: 0 8px 32px #20212405; }
.workspace-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.workspace-title { display: flex; align-items: center; gap: 10px; }
.workspace-title .icon { color: var(--ink-3); }
#demo .section-title { margin: 0; font-size: 14px; font-weight: 600; }
.workspace-meta { color: var(--ink-3); font-size: 12px; }
.demo-controls { border-bottom: 1px solid var(--line); }
.pattern-dock { position: relative; padding: 8px 12px; }
.pattern-dock-header, .pattern-copy-mini small, .pattern-payload, .tool-hint { display: none; }
.pattern-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.pattern-option { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 11px; height: 40px; min-height: 40px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--ink-2); transition: background .15s, color .15s; }
.pattern-option:hover { background: var(--surface); }
.pattern-option.active { color: var(--accent); background: var(--accent-light); border-color: #e1d9f8; }
.pattern-glyph { display: inline-flex; }
.pattern-copy-mini { display: flex; align-items: center; }
.pattern-copy-mini b { font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap; }
.pattern-status { position: absolute; right: 12px; top: -46px; }
.deck:has(.pattern-option.active:not([data-mode])) .workspace-meta { visibility: hidden; }
.tool-btn { min-height: 40px; padding: 8px 10px; border: 0; color: var(--ink-2); background: #fff; border-radius: 5px; font-size: 12px; }
.tool-btn:hover { background: var(--surface); }
.demo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.dashboard { position: relative; min-width: 0; padding: 24px; background: #fafafb; border-bottom-left-radius: 8px; }
.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 28px; gap: 1px; background: var(--line); }
.kpi-card { position: relative; min-width: 0; padding: 14px 16px; background: #fafafb; cursor: pointer; transition: background .16s, box-shadow .16s; }
.kpi-card:hover { background: #f3f2f7; }
.kpi-card.active { background: var(--accent-light); box-shadow: inset 3px 0 0 var(--accent); }
.kpi-label { color: var(--ink-2); font-size: 12px; margin-bottom: 7px; }
.kpi-value { font-size: 27px; font-weight: 580; font-variant-numeric: tabular-nums; line-height: 1.25; margin-bottom: 6px; }
.kpi-change { font-size: 11px; }
.up { color: var(--green); } .down { color: var(--red); }
.panel { min-width: 0; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 12px; font-weight: 600; }
.panel-header span { color: var(--ink-3); font-size: 11px; font-weight: 400; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 9px 8px; text-align: left; font-size: 10px; font-weight: 500; color: var(--ink-3); border-bottom: 1px solid var(--line-strong); }
td { padding: 13px 8px; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { padding-left: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr[data-askable] { cursor: pointer; transition: background .16s; }
tbody tr[data-askable]:hover { background: #f1f0f5; }
tbody tr[data-askable].active { background: var(--accent-light); }
.badge { font-size: 10px; white-space: nowrap; }
.badge-green { color: var(--green); } .badge-yellow { color: var(--yellow); } .badge-red { color: var(--red); }
.ask-btn, .ask-btn-row { display: none; align-items: center; gap: 4px; background: #fff; color: var(--accent); border: 1px solid var(--line-strong); border-radius: 4px; font-size: 10px; white-space: nowrap; padding: 5px 7px; }
.ask-btn .icon, .ask-btn-row .icon { width: 12px; height: 12px; }
.ask-btn { position: absolute; top: 9px; right: 9px; }
.button-mode .ask-btn, .button-mode .ask-btn-row { display: inline-flex; }
.button-mode .kpi-label { padding-top: 22px; }
.chat-sidebar { min-width: 0; display: flex; flex-direction: column; min-height: 470px; height: 100%; max-height: 600px; border-left: 1px solid var(--line); }
.chat-header { display: flex; align-items: center; gap: 8px; padding: 16px; border-bottom: 1px solid var(--line); }
.chat-header > .icon { color: var(--accent); width: 16px; height: 16px; }
.chat-title { font-size: 12px; font-weight: 600; }
.chat-sim-badge { margin-left: auto; font-size: 10px; color: var(--ink-3); }
.chat-sub, .chat-dot { display: none; }
.chat-messages { flex: 1 1 0; min-height: 44px; overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-empty { margin: auto; padding: 20px 0; text-align: center; color: var(--ink-3); font-size: 12px; }
.chat-empty > .icon { display: block; width: 24px; height: 24px; margin: 0 auto 12px; color: #b3abc8; }
.msg { display: flex; flex-direction: column; gap: 4px; animation: messageIn .18s ease-out; }
.msg-bubble { width: fit-content; max-width: 100%; padding: 9px 11px; font-size: 12px; line-height: 1.6; background: var(--surface); border-radius: 6px; overflow-wrap: anywhere; }
.msg.user .msg-bubble { background: var(--ink); color: #fff; align-self: flex-end; }
.msg.ctx .msg-bubble { background: none; font: 10px/1.6 var(--mono); color: var(--ink-3); padding: 0; }
.msg-label { color: var(--ink-3); font-size: 10px; }
.msg.user .msg-label { align-self: flex-end; }
.msg-context-kicker { display: block; font: 500 10px/1.5 var(--font); color: var(--accent); margin-bottom: 4px; }
.msg-context-quote { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font: 12px/1.6 var(--font); }
.typing { display: flex; gap: 4px; padding: 8px; }
.typing span { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); animation: typing 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
.chat-context-bar { display: flex; align-items: flex-start; gap: 8px; padding: 12px 16px; background: #f7f5fe; border-top: 1px solid #e9e3fa; font-size: 11px; flex-shrink: 0; }
.context-bar-label { display: none; }
.context-review { flex: 1; min-width: 0; }
.context-review summary { cursor: pointer; color: var(--accent); font-size: 11px; font-weight: 550; }
.context-review pre { max-height: 96px; overflow-y: auto; padding-top: 10px; font: 10px/1.7 var(--mono); color: var(--ink-2); }
.context-dismiss { flex: 0 0 24px; display: grid; place-items: center; width: 24px; height: 24px; margin-top: -3px; border: none; background: none; color: var(--ink-3); }
.context-dismiss .icon { width: 14px; height: 14px; }
.selected-text-card, .selected-region-card { margin: 12px 16px 0; padding-left: 10px; border-left: 2px solid var(--accent); }
.selected-text-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.selected-text-card-title { color: var(--accent); font-size: 10px; font-weight: 600; }
.selected-text-card-state { color: var(--ink-3); font-size: 10px; }
.selected-text-quote { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 11px; color: var(--ink-2); }
.selected-region-list { display: grid; gap: 2px; font-size: 11px; color: var(--ink-2); max-height: 64px; overflow: auto; }
.selected-region-list span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashboard ::selection { background: #ded5fa; color: var(--ink); }
.text-capture-mark { position: absolute; pointer-events: none; z-index: 6; background: #bda7f34d; border-bottom: 2px solid var(--accent); border-radius: 2px; }
.composer-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 0; }
.question-chip { background: #fff; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-2); font-size: 10px; padding: 5px 7px; text-align: left; }
.question-chip:hover { background: var(--surface); border-color: var(--line-strong); }
.chat-input-row { display: flex; gap: 8px; padding: 14px 16px; margin-top: auto; }
.chat-input { min-width: 0; flex: 1; padding: 10px 11px; min-height: 40px; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; color: var(--ink); font-size: 12px; }
.chat-input::placeholder { color: var(--ink-3); }
.chat-send { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border: 0; border-radius: 5px; background: var(--ink); color: #fff; }
.developer-panel { padding: 12px 20px; border-top: 1px solid var(--line); }
.developer-panel > summary { font: 12px var(--mono); color: var(--ink-2); cursor: pointer; width: fit-content; }
.demo-controls-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.output-controls { padding-top: 20px; }
.toggle-label { font-size: 11px; color: var(--ink-3); }
.toggle-group { display: inline-flex; border: 1px solid var(--line); padding: 2px; border-radius: 5px; }
.toggle-btn { border: 0; background: none; border-radius: 3px; font-size: 11px; color: var(--ink-2); padding: 5px 9px; }
.toggle-btn.active { background: var(--surface); color: var(--ink); }
.code-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 16px 0 4px; }
.code-block { min-width: 0; background: var(--surface); border-radius: 5px; padding: 16px; }
.code-block-header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; color: var(--ink-3); font-size: 10px; }
.code-block-header span:last-child { display: none; }
.code-block pre { font-size: 11px; line-height: 1.7; max-height: 260px; overflow: auto; }
.empty { color: var(--ink-3); }

/* Distinct reading rhythms rather than repeated card grids. */
.capability-list { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; padding-top: 8px; }
.capability-list article { min-width: 0; }
.capability-list .icon { color: var(--accent); margin-bottom: 16px; width: 22px; height: 22px; }
.capability-list h3 { font-size: 17px; font-weight: 550; margin-bottom: 10px; line-height: 1.4; }
.capability-list p { color: var(--ink-2); font-size: 13px; line-height: 1.75; margin-bottom: 16px; }
.capability-list .release-note { font-size: 11px; color: var(--ink-3); }
#how { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.implementation-intro { padding-top: 8px; }
.implementation-intro .text-link { margin-top: 24px; }
.implementation-code { min-width: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.example-tabs { display: flex; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.example-tab { border: 0; background: none; padding: 14px 12px; color: var(--ink-3); font-size: 12px; border-bottom: 2px solid transparent; }
.example-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.example-panel { padding: 22px; }
.example-panel p { margin-bottom: 18px; color: var(--ink-2); font-size: 13px; }
.example-panel pre { font-size: 12px; line-height: 1.8; min-height: 168px; color: var(--ink-2); }
.recording { margin-top: 24px; font-size: 13px; color: var(--ink-2); }
.recording summary { cursor: pointer; }
.recording video { margin-top: 20px; width: 100%; aspect-ratio: 16/9; background: var(--surface); border-radius: 6px; }
.pkg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 36px; }
.pkg-card { position: relative; min-width: 0; display: block; padding: 0 24px 0 0; }
.pkg-card > .icon { position: absolute; right: 0; top: 3px; width: 15px; height: 15px; color: #95959e; }
.pkg-card:hover .pkg-name, .pkg-card:hover > .icon { color: var(--accent); }
.pkg-badge { font-size: 11px; color: var(--ink-3); margin-bottom: 3px; }
.pkg-name { font: 550 13px/1.6 var(--mono); color: var(--ink); }
.pkg-desc { font-size: 12px; line-height: 1.65; color: var(--ink-2); margin-top: 6px; }
.pkg-tag { display: none; }
#mcp { margin-top: 88px; padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.integration-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.integration-list h3 { font-size: 15px; font-weight: 550; margin-bottom: 8px; }
.integration-list p { color: var(--ink-2); font-size: 13px; margin-bottom: 14px; }
.integration-note { max-width: 720px; color: var(--ink-3); font-size: 11px; margin-top: 28px; }
.cta-section { padding: 64px 0; text-align: center; }
.cta-card h2 { font-size: 28px; font-weight: 550; line-height: 1.3; margin-bottom: 12px; }
.cta-card p { color: var(--ink-2); font-size: 14px; max-width: 460px; margin: auto; }
.cta-actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; padding: 24px 0 32px; color: var(--ink-3); font-size: 11px; }
footer a:hover { color: var(--ink); }

    .selection-layer { position: absolute; inset: 0; z-index: 9; pointer-events: none; border-radius: 6px; overflow: visible; }
    .dashboard.selecting .selection-layer { pointer-events: auto; cursor: crosshair; }
    .dashboard.selecting.lasso-active .selection-layer { cursor: none; }
    .selection-layer::before {
      content: ''; position: absolute; inset: 0; border-radius: inherit;
      border: 1px solid rgba(79,70,229,0.18); background: rgba(79,70,229,0.03);
      opacity: 0; transition: opacity .12s;
    }
    .dashboard.selecting .selection-layer::before { opacity: 1; }
    .dashboard.selecting.lasso-active .selection-layer::before {
      opacity: 0;
    }
    .selection-drawing {
      position: absolute; border: 2px solid var(--accent); background: rgba(79,70,229,0.09);
      box-shadow: 0 10px 28px rgba(79,70,229,0.12); pointer-events: none; z-index: 11;
    }
    .selection-drawing.circle { border-radius: 999px; }
    .selection-drawing.lasso { background: transparent; border: none; box-shadow: none; inset: 0; filter: drop-shadow(0 0 10px rgba(79,70,229,0.32)); }
    .selection-drawing svg { position: absolute; inset: 0; overflow: visible; }
    .selection-drawing path { fill: rgba(79,70,229,0.08); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
    .selection-drawing.lasso path {
      fill: none;
      stroke: url(#lasso-gradient);
      stroke-width: 3.2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .selection-drawing.lasso .lasso-aura {
      fill: none;
      stroke: rgba(124,58,237,0.16);
      stroke-width: 8;
      stroke-linecap: round;
      stroke-linejoin: round;
      filter: blur(1px);
    }
    .selected-region {
      position: absolute; z-index: 12; pointer-events: none;
      border: 2px solid rgba(124,58,237,0.78);
      background: rgba(124,58,237,0.08);
      box-shadow: 0 0 0 3px rgba(124,58,237,0.04);
      animation: selectedRegionIn .18s ease-out;
    }
    .selected-region.circle { border-radius: 999px; }
    .selected-region.lasso { inset: 0; border: none; background: transparent; box-shadow: none; }
    .selected-region svg { position: absolute; inset: 0; overflow: visible; }
    .selected-region path {
      fill: none;
      stroke: rgba(124,58,237,0.9);
      stroke-width: 3;
      stroke-linecap: round;
      stroke-linejoin: round;
      filter: drop-shadow(0 0 7px rgba(124,58,237,0.24));
    }
    .selected-region-label {
      position: absolute; left: 0; bottom: calc(100% + 7px);
      display: inline-flex; align-items: center; gap: .35rem;
      padding: .28rem .52rem; border-radius: var(--radius-pill);
      border: 1px solid rgba(124,58,237,0.18); background: rgba(255,255,255,0.94);
      color: #5b21b6; font-size: .66rem; font-weight: 850;
      letter-spacing: 0; text-transform: uppercase;
      box-shadow: 0 10px 24px rgba(15,23,42,0.1); white-space: nowrap;
    }
    .selected-region-label::before {
      content: ''; width: .42rem; height: .42rem; border-radius: 999px;
      background: #7c3aed; box-shadow: 0 0 0 4px rgba(124,58,237,0.1);
    }
    .selection-inline-prompt {
      position: absolute; left: 0; top: calc(100% + 9px); z-index: 13;
      display: flex; align-items: center; gap: .42rem;
      width: min(310px, calc(100vw - 3rem)); padding: .38rem;
      border: 1px solid rgba(124,58,237,0.18); border-radius: var(--radius-pill);
      background: rgba(255,255,255,0.96); box-shadow: 0 16px 42px rgba(15,23,42,0.15);
      pointer-events: auto;
    }
    .selection-inline-prompt.above { top: auto; bottom: calc(100% + 9px); }
    .selection-inline-prompt input {
      min-width: 0; flex: 1; border: none; outline: none; background: transparent;
      color: var(--ink); font: 500 .78rem/1.2 var(--font); padding: .26rem .32rem;
    }
    .selection-inline-prompt button {
      flex: 0 0 auto; border: none; border-radius: var(--radius-pill);
      background: var(--ink); color: #fff; padding: .36rem .62rem;
      font-size: .7rem; font-weight: 800; cursor: pointer;
    }
    .text-selection-inline-prompt {
      z-index: 14;
      box-shadow: 0 16px 42px rgba(91,33,182,0.16);
    }
    @keyframes selectedRegionIn {
      from { opacity: 0; transform: scale(.985); }
      to { opacity: 1; transform: scale(1); }
    }
    .ai-cursor-canvas {
      position: absolute; inset: 0; z-index: 10;
      width: 100%; height: 100%;
      pointer-events: none; opacity: 0;
      transition: opacity .12s ease;
    }
    .dashboard.lasso-active .ai-cursor-canvas { opacity: 1; }
    .ai-cursor {
      position: absolute; left: 0; top: 0; z-index: 12;
      display: none; width: 1.95rem; height: 1.95rem;
      transform: translate3d(0,0,0); pointer-events: none;
      filter:
        drop-shadow(0 2px 4px rgba(15,23,42,0.18))
        drop-shadow(0 0 7px rgba(124,58,237,0.34));
    }
    .dashboard.lasso-active .ai-cursor { display: block; }
    .ai-cursor-icon {
      position: absolute; left: 50%; top: 50%;
      display: block; width: 1.95rem; height: 1.95rem;
      overflow: visible; transform: translate(-45%, -45%);
    }
    .ai-cursor-outline {
      fill: none;
      stroke: #a78bfa;
      stroke-linejoin: round;
      stroke-width: 4.6;
    }
    .ai-cursor-fill {
      fill: #fff;
      stroke: #7c3aed;
      stroke-linejoin: round;
      stroke-width: 1.2;
    }

@keyframes messageIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes typing { 50% { opacity: .3; } }
@media (max-width: 1040px) {
  .demo-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .dashboard { padding: 16px; }
  .pattern-option { padding-inline: 8px; gap: 5px; }
  .kpi-value { font-size: 24px; }
  .panel-header span { display: none; }
  .demo-layout th:nth-child(3), .demo-layout td:nth-child(3) { display: none; }
}
@media (max-width: 720px) {
  .page-shell { padding: 0 20px; }
  nav { height: 64px; padding: 0 20px; gap: 12px; }
  .nav-logo { font-size: 17px; }
  .nav-links { gap: 16px; }
  .nav-link { display: none; }
  .nav-menu { display: block; }
  .hero { padding: 40px 0 32px; }
  .hero-copy h1 { font-size: 36px; max-width: 340px; margin: 0 auto 14px; }
  .hero-copy > p { font-size: 15px; max-width: 320px; }
  .hero-actions { gap: 10px; margin-top: 22px; }
  .btn { padding-inline: 14px; }
  .install-cmd { max-width: 100%; font-size: 11px; min-height: 40px; }
  .workspace-header { padding: 13px 14px; }
  .workspace-title { gap: 7px; }
  .workspace-title .icon { width: 16px; height: 16px; }
  #demo .section-title { font-size: 12px; }
  .workspace-meta { font-size: 10px; }
  .pattern-dock { padding: 6px; }
  .pattern-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
  .pattern-option { height: 56px; min-height: 56px; padding: 6px 2px; gap: 4px; flex-direction: column; }
  .pattern-option .icon { width: 17px; height: 17px; }
  .pattern-copy-mini b { font-size: 10px; line-height: 14px; }
  .tool-btn { min-height: 36px; }
  .pattern-status { top: -40px; right: 8px; }
  .demo-layout { grid-template-columns: minmax(0, 1fr); }
  .dashboard { padding: 14px; }
  .kpi-grid { margin-bottom: 24px; }
  .kpi-card { padding: 12px; }
  .kpi-label { font-size: 10px; }
  .kpi-value { font-size: 22px; }
  .kpi-change { font-size: 9px; }
  .panel-header { margin-bottom: 8px; }
  table { font-size: 11px; }
  td { padding: 11px 5px; }
  th { padding-inline: 5px; font-size: 9px; }
  .ask-btn { right: 5px; }
  .ask-btn-row { font-size: 0; padding: 7px; }
  .ask-btn-row .icon { width: 13px; height: 13px; }
  .chat-sidebar { border-left: 0; border-top: 1px solid var(--line); height: 350px; min-height: 350px; max-height: none; }
  .chat-header { padding: 12px 14px; }
  .chat-messages { padding: 14px; }
  .developer-panel { padding: 14px; }
  .code-panel { grid-template-columns: minmax(0, 1fr); }
  .section { padding-top: 64px; }
  .section-title { font-size: 26px; }
  .section-sub { font-size: 14px; margin-bottom: 28px; }
  .capability-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .capability-list article { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 16px; }
  .capability-list article > .icon { grid-column: 1; grid-row: 1 / span 4; margin-top: 2px; }
  .capability-list article > :not(.icon) { grid-column: 2; }
  .capability-list h3 { font-size: 16px; margin-bottom: 6px; }
  .capability-list p { margin-bottom: 10px; }
  #how { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .implementation-intro .section-sub { margin-bottom: 0; }
  .implementation-intro .text-link { margin-top: 16px; }
  .example-panel { padding: 18px; }
  .example-panel pre { font-size: 11px; min-height: 180px; }
  .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .pkg-card { padding-right: 0; }
  .pkg-card > .icon { display: none; }
  .pkg-name { font-size: 11px; }
  .pkg-desc { font-size: 11px; }
  #mcp { margin-top: 56px; padding: 36px 0; }
  .integration-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cta-section { padding: 48px 0; }
  .cta-card h2 { font-size: 24px; }
  footer { flex-direction: column; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
