/* The hero demo (demo.js). Drawn at 1200x720, scaled by JS. The app's own
   dark chrome around a light page, like the real window. */
#demo { position: relative; width: 100%; transition: opacity 0.5s; }
#demo.vd-fade { opacity: 0; }
.vd-stage { position: relative; overflow: hidden; border-radius: 14px; }
.vd-win {
  position: absolute; left: 0; top: 0; width: 1200px; height: 720px; transform-origin: 0 0;
  display: grid; grid-template-columns: 52px 1fr 380px; background: #15161f; color: #edebe6;
  font: 14px/1.45 "Instrument Sans", system-ui, sans-serif; border-radius: 14px; overflow: hidden; text-align: left;
}
.vd-rail { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 16px; border-right: 1px solid #262733; }
.vd-rail svg { width: 24px; height: 24px; color: #edebe6; margin-bottom: 8px; }
.vd-rail i { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #4a4b57; }
.vd-rail i:first-of-type { border-color: #c79a68; }

.vd-main { display: flex; flex-direction: column; min-width: 0; }
.vd-tabs { display: flex; gap: 6px; padding: 10px 12px 0; }
.vd-tabs span { padding: 7px 14px; border-radius: 8px 8px 0 0; color: #8d8b86; font-size: 12.5px; }
.vd-tabs span.on { background: #1f2029; color: #edebe6; }
.vd-url { display: flex; align-items: center; gap: 14px; background: #1f2029; padding: 10px 14px; }
.vd-url b { color: #6f6d68; font-weight: 400; letter-spacing: 4px; }
.vd-addr { flex: 1; background: #15161f; border-radius: 8px; padding: 7px 12px; font: 12.5px "IBM Plex Mono", ui-monospace, monospace; color: #a9a69f; }
.vd-page { flex: 1; background: #f3f2ef; color: #1c1c1c; overflow: hidden; padding: 22px 26px; }
.vd-feed { display: flex; flex-direction: column; gap: 12px; max-width: 560px; margin: 0 auto; }
.vd-post {
  display: grid; grid-template-columns: 38px 1fr; gap: 12px; background: #fff; border-radius: 12px; padding: 14px 16px;
  border: 2px solid transparent; box-shadow: 0 1px 2px rgb(0 0 0 / 0.06); transition: border-color 0.3s, background 0.3s, opacity 0.3s;
}
.vd-post.scan { border-color: #9aa0ad; background: #fbfbfa; }
.vd-post.lead { border-color: #c79a68; }
.vd-av { width: 38px; height: 38px; border-radius: 50%; background: #dcd7cd; display: grid; place-items: center; font-weight: 600; color: #5a5650; }
.vd-meta { font-size: 12.5px; color: #6b6b6b; }
.vd-meta b { color: #1c1c1c; }
.vd-post p { margin: 4px 0 8px; font-size: 14.5px; }
.vd-acts { display: flex; gap: 18px; font-size: 12.5px; color: #6b6b6b; }
.vd-acts span { padding: 2px 6px; border-radius: 6px; transition: background 0.15s; }
.vd-acts span.pressed { background: #e7e3db; }
.vd-reply { display: flex; gap: 10px; align-items: flex-end; margin: 0 0 8px; padding: 10px 12px; border: 1px solid #d6d2ca; border-radius: 10px; background: #fafaf8; animation: vd-in 0.3s ease-out; }
.vd-rtext { flex: 1; font-size: 13.5px; min-height: 20px; }
.vd-reply button { font: 600 12.5px inherit; font-family: inherit; border: 0; border-radius: 8px; padding: 7px 14px; background: #2d5bd1; color: #fff; transition: background 0.2s; }
.vd-reply button.pressed { filter: brightness(0.9); }
.vd-reply button.sent { background: #3f7a4a; }

.vd-side { display: flex; flex-direction: column; border-left: 1px solid #262733; min-height: 0; }
.vd-head { display: flex; align-items: center; gap: 9px; padding: 16px 18px; border-bottom: 1px solid #262733; font-weight: 500; }
.vd-dot { width: 8px; height: 8px; border-radius: 50%; background: #4a4b57; transition: background 0.3s; }
.vd-dot.busy { background: #c79a68; animation: vd-pulse 1.2s ease-in-out infinite; }
.vd-chat { flex: 1; overflow: hidden; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.vd-me { align-self: flex-end; max-width: 88%; background: #262733; padding: 10px 13px; border-radius: 12px; font-size: 13.5px; animation: vd-in 0.35s ease-out; }
.vd-say { font-size: 13.5px; color: #d8d6d1; animation: vd-in 0.35s ease-out; }
.vd-say b { color: #fff; }
.vd-step { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #8d8b86; animation: vd-in 0.3s ease-out; }
.vd-spin { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #4a4b57; border-top-color: #c79a68; animation: vd-rot 0.8s linear infinite; flex: none; }
.vd-step.ok .vd-spin { animation: none; border-color: #3f7a4a; background: #3f7a4a; box-shadow: inset 0 0 0 2px #15161f; }
.vd-table { border: 1px solid #2c2d38; border-radius: 10px; overflow: hidden; font-size: 12.5px; }
.vd-row { display: grid; grid-template-columns: 78px 66px 1fr 30px; gap: 8px; padding: 8px 11px; border-top: 1px solid #2c2d38; opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s; }
.vd-row:first-child { border-top: 0; }
.vd-row.in { opacity: 1; transform: none; }
.vd-row span { color: #a9a69f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-row em { font-style: normal; color: #c79a68; text-decoration: underline; text-underline-offset: 2px; }
.vd-ask { border: 1px solid #c79a68; background: #1d1c22; border-radius: 12px; padding: 13px; opacity: 0; transform: translateY(8px) scale(0.98); transition: opacity 0.35s, transform 0.35s, border-color 0.3s; }
.vd-ask.in { opacity: 1; transform: none; }
.vd-ask.answered { border-color: #2c2d38; }
.vd-ask-q { font-size: 13.5px; margin-bottom: 11px; }
.vd-ask-q b { color: #fff; }
.vd-pulse { display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: 1px; border-radius: 50%; background: #c79a68; animation: vd-pulse 1.2s ease-in-out infinite; }
.vd-ask.answered .vd-pulse { animation: none; background: #3f7a4a; }
.vd-ask-b { display: flex; gap: 8px; }
.vd-ask-b button { flex: 1; font: 500 13px inherit; font-family: inherit; padding: 8px; border-radius: 8px; border: 1px solid #3a3b47; background: transparent; color: #edebe6; transition: filter 0.15s; }
.vd-ask-b button.yes { background: #edebe6; color: #15161f; border-color: #edebe6; }
.vd-ask-b button.pressed { filter: brightness(0.85); }
.vd-compose { margin: 12px 14px 14px; border: 1px solid #2c2d38; border-radius: 12px; padding: 12px 14px; min-height: 48px; font-size: 13.5px; color: #edebe6; }
.vd-typed:empty::before { content: "Ask anything, or tell it what to do"; color: #6f6d68; }
.vd-caret { display: inline-block; width: 1.5px; height: 15px; background: #c79a68; vertical-align: -2px; margin-left: 1px; animation: vd-blink 1s steps(1) infinite; }
.vd-cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 5; pointer-events: none; opacity: 0; transition: transform 0.65s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.3s; }
.vd-cursor svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.35)); transition: transform 0.12s; }
.vd-cursor.down svg { transform: scale(0.85); }

.vd-win.vd-compact { width: 420px; height: 640px; grid-template-columns: 1fr; }
.vd-win.vd-compact .vd-rail, .vd-win.vd-compact .vd-main { display: none; }
.vd-win.vd-compact .vd-side { border-left: 0; }

.vd-gone { opacity: 0 !important; transform: translateY(-8px); transition: opacity 0.3s, transform 0.3s; }
.vd-done { color: #a9a69f; }

@keyframes vd-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes vd-rot { to { transform: rotate(360deg); } }
@keyframes vd-pulse { 50% { opacity: 0.35; } }
@keyframes vd-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .vd-win * { animation: none !important; transition: none !important; } }
