/* RokBot Interactive Product Simulations & Live Capability Tiles */

/* ---------- Demo Stage Shell ---------- */
.demos-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}
.demo-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.demo-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.demo-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink-2);
  transition: all 0.18s var(--ease);
}
.demo-tab .tab-num {
  font: 600 11px var(--mono);
  color: var(--ink-3);
}
.demo-tab:hover { color: var(--ink); border-color: var(--line-strong); }
.demo-tab[aria-selected="true"] {
  background: var(--panel-bg);
  color: var(--panel-ink);
  border-color: var(--panel-bg);
  box-shadow: var(--shadow-sm);
}
.demo-tab[aria-selected="true"] .tab-num { color: var(--accent-bright); }

.demo-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.demo-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.demo-status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.demo-status-pill[aria-pressed="true"] i {
  background: var(--ink-3);
  box-shadow: none;
}
.demo-status-pill:hover { border-color: var(--line-strong); color: var(--ink); }

.demo-caption-bar {
  margin-bottom: 18px;
  font-size: 14.5px;
  color: var(--ink-2);
  min-height: 24px;
}

.demo-stage {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(900px 420px at 15% 0%, var(--accent-soft), transparent 65%),
    radial-gradient(700px 360px at 90% 100%, var(--green-soft), transparent 65%),
    var(--surface-2);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-height: 540px;
}
.demo-pane {
  display: none;
  animation: pane-in 0.35s var(--ease) both;
}
.demo-pane.is-active { display: block; }
@keyframes pane-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Animated Fake Cursor (BlankRun / Strata inspired) */
.demo-pointer {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 40;
  width: 20px;
  height: 24px;
  pointer-events: none;
  opacity: 0;
  transform: translate(60px, 60px);
  transition: transform 0.68s cubic-bezier(0.35, 0.1, 0.2, 1), opacity 0.25s;
}
.demo-pointer.is-on { opacity: 1; }
.demo-pointer svg {
  width: 18px;
  height: 22px;
  fill: #fff;
  stroke: #0F172A;
  stroke-width: 1.5;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}
.demo-pointer.is-click::after {
  content: "";
  position: absolute;
  left: -8px;
  top: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--accent-bright);
  animation: demo-ping 0.45s ease-out forwards;
}
@keyframes demo-ping {
  from { transform: scale(0.35); opacity: 1; }
  to { transform: scale(1.55); opacity: 0; }
}

/* Shared Interactive Action Buttons inside Demos */
.sim-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.15s;
}
.sim-btn:hover { border-color: var(--accent); color: var(--accent); }
.sim-btn.is-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.sim-btn.is-primary:hover { filter: brightness(1.08); color: #fff; }
.sim-btn.is-amber {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
}
.sim-btn.is-pressed { transform: scale(0.95); }

/* ==========================================================
   DEMO 1: Android Native 4-Group Bot List Simulation
   ========================================================== */
.sim-android-layout {
  display: grid;
  grid-template-columns: 344px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}
.sim-phone {
  background: var(--surface);
  border-radius: 34px;
  border: 8px solid #161B26;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  height: 520px;
  overflow: hidden;
  position: relative;
}
.sim-phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px 4px;
  font: 600 11px var(--mono);
  color: var(--ink-2);
}
.sim-phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 10px;
  border-bottom: 1px solid var(--line);
}
.sim-avatar-me {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4F46E5, #6366F1);
  color: #fff;
  font: 700 13px var(--sans);
  display: grid;
  place-items: center;
}
.sim-phone-actions {
  display: flex;
  gap: 8px;
}
.sim-circle-ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--ink-2);
  position: relative;
}
.sim-bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--amber);
  color: #fff;
  font: 700 9.5px var(--mono);
  display: grid;
  place-items: center;
}
.sim-bot-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bot-group {
  border-radius: 12px;
}
.bot-group-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  transition: background 0.15s, color 0.15s;
}
.bot-group-head:hover { background: var(--bg-2); color: var(--ink); }
.bot-group-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.bot-group.is-collapsed .bot-group-chev { transform: rotate(-90deg); }
.bot-group-cnt {
  margin-left: auto;
  font: 600 11px var(--mono);
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-2);
}
.bot-group-list {
  display: grid;
  gap: 2px;
  padding-top: 2px;
}
.bot-group.is-collapsed .bot-group-list { display: none; }

.bot-item {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 11px;
  text-align: left;
  transition: background 0.16s, transform 0.2s;
}
.bot-item:hover, .bot-item.is-selected { background: var(--bg-2); }
.bot-item.is-entering { animation: bot-pop 0.48s var(--ease) both; }
@keyframes bot-pop {
  from { opacity: 0; transform: translateY(-10px) scale(0.96); background: var(--accent-soft); }
  to { opacity: 1; transform: none; }
}
.bot-blob {
  width: 34px;
  height: 34px;
  border-radius: 13px 16px 14px 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: none;
}
.bot-blob::before, .bot-blob::after {
  content: "";
  width: 4px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  transform: rotate(-16deg);
}
.bot-blob::after { height: 8px; }
.bot-blob.c-blue { background: #1A8CFF; }
.bot-blob.c-green { background: #10B981; border-radius: 10px 18px 14px 14px; }
.bot-blob.c-amber { background: #F59E0B; border-radius: 16px 14px 16px 10px; }
.bot-blob.c-orange { background: #F97316; border-radius: 12px; }
.bot-blob.c-coral { background: #EF4444; border-radius: 14px 10px 15px 12px; }
.bot-blob.c-teal { background: #14B8A6; border-radius: 50%; }
.bot-blob.c-indigo { background: #6366F1; border-radius: 16px 12px 16px 14px; }

.bot-status-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--surface);
}
.bot-status-badge.is-working {
  background: var(--green);
  animation: pulse-ring 1.5s ease-in-out infinite;
}
.bot-status-badge.is-pending { background: var(--amber); }

.bot-meta { min-width: 0; }
.bot-name {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bot-msg {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bot-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.bot-time { font: 500 10.5px var(--mono); color: var(--ink-3); }
.bot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.bot-dot.is-unread { background: #2563EB; }
.bot-dot.is-pending { background: var(--amber); }

.sim-phone-search {
  padding: 8px 14px 12px;
  border-top: 1px solid var(--line);
}
.sim-search-pill {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-3);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Right Inspector for Demo 1 */
.sim-inspector {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sim-inspector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.sim-inspector-head h3 { font-size: 17px; font-weight: 700; }
.sim-preview-box {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: grid;
  gap: 8px;
}
.sim-preview-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sim-group-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
}
.sim-group-tag.g-pending { background: var(--amber-soft); color: var(--amber); }
.sim-group-tag.g-working { background: var(--green-soft); color: var(--green); }
.sim-group-tag.g-unread { background: var(--accent-soft); color: var(--accent); }
.sim-group-tag.g-read { background: var(--bg-2); color: var(--ink-3); }

.sim-event-feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
}
.sim-event-feed li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  animation: bot-pop 0.35s var(--ease) both;
}
.sim-event-feed .ev-t { font: 600 11px var(--mono); color: var(--ink-3); }
.sim-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================
   DEMO 2: Chat Streaming + Approval Card + Image Generation
   ========================================================== */
.sim-chat-window {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 490px;
}
.sim-chat-side {
  border-right: 1px solid var(--line);
  background: var(--surface-2);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sim-chat-side-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 0 6px;
}
.sim-chat-thread {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 11px;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-sm);
}
.sim-chat-steps {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.sim-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
  padding: 6px 8px;
  border-radius: 8px;
}
.sim-step-item i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: none;
}
.sim-step-item.is-now { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.sim-step-item.is-now i { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sim-step-item.is-done { color: var(--green); }
.sim-step-item.is-done i { background: var(--green); }

.sim-chat-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sim-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.sim-chat-bot-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 14px;
}
.sim-chat-body {
  flex: 1;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 410px;
}
.chat-bubble-user {
  align-self: flex-end;
  max-width: 78%;
  padding: 10px 15px;
  border-radius: 16px 16px 4px 16px;
  background: var(--panel-bg);
  color: var(--panel-ink);
  font-size: 13.5px;
  animation: bot-pop 0.3s var(--ease) both;
}
.chat-bubble-bot {
  align-self: flex-start;
  max-width: 86%;
  padding: 11px 15px;
  border-radius: 16px 16px 16px 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  animation: bot-pop 0.3s var(--ease) both;
}
.typing-caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--accent);
  animation: caret-blink 0.8s steps(2) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* Native RokBot Approval Card Recreation */
.approval-card {
  align-self: flex-start;
  width: min(100%, 390px);
  padding: 15px 16px;
  border-radius: 16px;
  border: 1.5px solid var(--amber);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 9px;
  animation: bot-pop 0.38s var(--ease) both;
}
.approval-card.is-approved { border-color: var(--green); }
.approval-card.is-denied { border-color: var(--red); }
.approval-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.approval-title { font-size: 15px; font-weight: 700; }
.approval-sub { font-size: 12.5px; color: var(--ink-3); }
.approval-cmd {
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font: 600 12.5px var(--mono);
  color: var(--green);
  overflow-x: auto;
}
.approval-btns {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}
.btn-deny {
  height: 32px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}
.btn-deny:hover { background: var(--red-soft); color: var(--red); }
.btn-allow {
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--panel-bg);
  color: var(--panel-ink);
  font-size: 12.5px;
  font-weight: 650;
}
.btn-allow:hover { opacity: 0.9; }
.approval-verdict {
  font-size: 12px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.approval-verdict.ok { color: var(--green); }
.approval-verdict.no { color: var(--red); }

/* Generated 16:9 Sunset Artwork Card inside Chat */
.gen-img-card {
  align-self: flex-start;
  width: min(100%, 360px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  animation: gen-reveal 0.85s var(--ease) both;
}
@keyframes gen-reveal {
  from { opacity: 0; filter: blur(14px); transform: scale(0.96); }
  to { opacity: 1; filter: blur(0); transform: scale(1); }
}
.gen-sunset-canvas {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(180deg, #1E1B4B 0%, #58355E 32%, #C96A5B 62%, #F6BD60 82%, #1E293B 82%, #0F172A 100%);
  overflow: hidden;
}
.gen-sun {
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: 68px;
  height: 68px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, #FFFBEB 15%, #FDE68A 55%, rgba(251, 191, 36, 0) 75%);
  box-shadow: 0 0 36px rgba(251, 191, 36, 0.75);
}
.gen-hills {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.gen-badge {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #F8FAFC;
  font: 600 10.5px var(--mono);
}
.gen-img-meta {
  display: flex;
  justify-content: space-between;
  padding: 7px 12px;
  background: var(--surface);
  font: 500 11px var(--mono);
  color: var(--ink-3);
}

/* ==========================================================
   DEMO 3: Cloud Computer (Live VNC Desktop + Take Over)
   ========================================================== */
.sim-vnc-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.sim-vnc-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vnc-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  background: var(--accent-soft);
  color: var(--accent);
  width: fit-content;
}
.vnc-status-badge.is-human {
  background: var(--amber-soft);
  color: var(--amber);
}
.vnc-status-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.vnc-log-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  overflow-y: auto;
  max-height: 260px;
}
.vnc-log-list li {
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.vnc-log-list li strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 2px; }

.sim-vnc-monitor {
  border-radius: 16px;
  border: 2px solid var(--accent);
  background: #0F172A;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.sim-vnc-monitor.is-human {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft), var(--shadow-lg);
}
.vnc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  background: #161E2E;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  color: #E2E8F0;
  font-size: 12px;
}
.vnc-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vnc-desktop {
  position: relative;
  flex: 1;
  min-height: 410px;
  background:
    radial-gradient(ellipse at 70% 25%, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(16, 185, 129, 0.18), transparent 55%),
    linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  padding: 16px;
  overflow: hidden;
  user-select: none;
}
.sim-vnc-monitor.is-human .vnc-desktop { cursor: crosshair; }

.vnc-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  padding: 0 12px;
  background: rgba(9, 13, 22, 0.78);
  color: #CBD5E1;
  font: 500 11px var(--mono);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vnc-win-term {
  position: absolute;
  left: 18px;
  top: 40px;
  width: min(56%, 390px);
  height: 256px;
  border-radius: 10px;
  background: rgba(11, 15, 24, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vnc-win-head {
  height: 26px;
  padding: 0 10px;
  background: rgba(30, 41, 59, 0.95);
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94A3B8;
  font: 500 11px var(--mono);
}
.vnc-win-head i { width: 8px; height: 8px; border-radius: 50%; background: #475569; }
.vnc-win-head i:nth-child(1) { background: #FF5F56; }
.vnc-win-head i:nth-child(2) { background: #FFBD2E; }
.vnc-win-head i:nth-child(3) { background: #27C93F; }
.vnc-term-body {
  flex: 1;
  padding: 10px 12px;
  font: 11.5px/1.6 var(--mono);
  color: #CBD5E1;
  overflow-y: auto;
}
.vnc-term-body .t-cmd { color: #38BDF8; }
.vnc-term-body .t-ok { color: #34D399; }
.vnc-term-body .t-ok-ico {
  display: flex;
  align-items: center;
  gap: 5px;
}
.vnc-term-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.9);
  font: 11.5px var(--mono);
  color: #34D399;
}
.vnc-term-input {
  flex: 1;
  background: transparent;
  border: 0;
  color: #F8FAFC;
  font: 11.5px var(--mono);
  outline: none;
}

.vnc-win-browser {
  position: absolute;
  right: 18px;
  top: 72px;
  width: min(44%, 310px);
  height: 248px;
  border-radius: 10px;
  background: #F8FAFC;
  color: #0F172A;
  border: 1px solid rgba(148, 163, 184, 0.30);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vnc-urlbar {
  padding: 5px 10px;
  background: #E2E8F0;
  font: 500 10.5px var(--mono);
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.vnc-url-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  flex: none;
}
.vnc-browser-body {
  flex: 1;
  padding: 12px;
  display: grid;
  gap: 8px;
  align-content: start;
  font-size: 11.5px;
}
.vnc-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 76px;
  padding-top: 6px;
}
.vnc-chart-bars span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #0EA5E9, #0284C7);
  transition: height 0.5s var(--ease);
}
.vnc-browser-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 7px;
  background: #0F172A;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  width: fit-content;
}
.vnc-browser-btn:hover { background: #0284C7; }

.vnc-dock {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.vnc-dock button {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.10);
  color: #E2E8F0;
  font: 700 11px var(--mono);
  display: grid;
  place-items: center;
}
.vnc-dock button:hover { background: rgba(56, 189, 248, 0.35); }

.vnc-bot-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20;
  pointer-events: none;
  transform: translate(110px, 140px);
  transition: transform 0.75s cubic-bezier(0.35, 0.1, 0.2, 1), opacity 0.25s;
}
.vnc-bot-cursor.is-hidden { opacity: 0; }
.vnc-cursor-tag {
  display: inline-block;
  margin-left: 14px;
  margin-top: -4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #0284C7;
  color: #fff;
  font: 700 10px var(--mono);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.45);
}

/* ==========================================================
   DEMO 4: Model Selector & 8-Tier Fallback Chain
   ========================================================== */
.sim-model-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}
.sim-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sim-card h3 { font-size: 16px; font-weight: 700; }
.sim-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.sim-select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
  font: 600 13px var(--mono);
}
.effort-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.effort-pill {
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font: 600 11.5px var(--mono);
  color: var(--ink-2);
}
.effort-pill.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.fallback-chain {
  display: grid;
  gap: 8px;
}
.chain-node {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  transition: border-color 0.25s, background 0.25s;
}
.chain-node .idx {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--bg-2);
  font: 700 11px var(--mono);
  display: grid;
  place-items: center;
  color: var(--ink-2);
}
.chain-node.is-err {
  border-color: var(--red);
  background: var(--red-soft);
}
.chain-node.is-ok {
  border-color: var(--green);
  background: var(--green-soft);
}
.chain-node.is-trying {
  border-color: var(--amber);
  background: var(--amber-soft);
}
.chain-status {
  font: 600 11px var(--mono);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
}
.chain-node.is-err .chain-status { color: var(--red); }
.chain-node.is-ok .chain-status { color: var(--green); }
.chain-node.is-trying .chain-status { color: var(--amber); }

.sim-stream-box {
  padding: 14px;
  border-radius: 12px;
  background: var(--code-bg);
  color: var(--code-ink);
  font: 12.5px/1.65 var(--mono);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stream-ok { color: #34D399; }
.stream-line {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.stream-line .ico { margin-top: 3px; }
.stream-err { color: #F87171; }
.stream-dim { color: #94A3B8; }

/* ==========================================================
   DEMO 5: Cron Routines Timeline & HMAC Webhook Trigger
   ========================================================== */
.sim-auto-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 22px;
}
.cron-clock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cron-clock {
  font: 700 28px var(--mono);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cron-bar-wrap {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--bg-2);
  overflow: hidden;
}
.cron-bar-fill {
  height: 100%;
  width: 34%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--green));
  transition: width 0.25s linear;
}
.cron-list {
  display: grid;
  gap: 8px;
}
.cron-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 13px;
  transition: border-color 0.25s, background 0.25s;
}
.cron-row.is-firing {
  border-color: var(--green);
  background: var(--green-soft);
}
.cron-row .c-time { font: 700 12.5px var(--mono); color: var(--accent); }
.cron-row .c-expr { display: block; font: 500 11px var(--mono); color: var(--ink-3); }
.cron-pill {
  font: 600 11px var(--mono);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-3);
}
.cron-row.is-firing .cron-pill { background: var(--green); color: #fff; }

.wh-checks {
  display: grid;
  gap: 6px;
}
.wh-checks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
}
.wh-checks li.is-pass { border-color: var(--green); color: var(--ink); }
.wh-checks li .wh-ok {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 700 11.5px var(--mono);
  color: var(--green);
}
.wh-deliveries {
  display: grid;
  gap: 6px;
  font: 11.5px var(--mono);
}
.wh-deliveries li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--code-ink);
  animation: bot-pop 0.35s var(--ease) both;
}

/* ==========================================================
   Strata-Inspired Live Capability Micro-Tiles
   ========================================================== */
.cap-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}
.cap-tile {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cap-tile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12.5px;
  font-weight: 650;
}
.cap-tile-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.cap-tile-ico {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  flex: none;
}
.cap-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 11px var(--mono);
  color: var(--green);
}
.cap-live-dot i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.cap-tile.is-playing .cap-live-dot i { animation: pulse-ring 1.6s ease-in-out infinite; }
.cap-tile-body {
  padding: 16px;
  display: grid;
  gap: 12px;
  flex: 1;
}
.cap-tile-desc { font-size: 13px; color: var(--ink-2); line-height: 1.55; }

/* Voice wave animation */
.voice-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 44px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.voice-bars i {
  width: 4px;
  height: 14px;
  border-radius: 99px;
  background: var(--accent);
}
.cap-tile.is-playing .voice-bars i { animation: wave-eq 1.1s ease-in-out infinite alternate; }
.voice-bars i:nth-child(2n) { animation-delay: 0.15s; height: 24px; }
.voice-bars i:nth-child(3n) { animation-delay: 0.3s; height: 32px; background: var(--green); }
.voice-bars i:nth-child(5n) { animation-delay: 0.45s; height: 18px; }
@keyframes wave-eq {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1.15); }
}

.media-ratios {
  display: flex;
  gap: 8px;
}
.ratio-chip {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  text-align: center;
  font: 600 11.5px var(--mono);
  color: var(--ink-2);
  transition: all 0.3s;
}
.ratio-chip.is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.sig-steps {
  display: grid;
  gap: 6px;
  font: 500 11.5px var(--mono);
}
.sig-steps li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-3);
  transition: all 0.35s;
}
.sig-steps li.is-on {
  color: var(--ink);
  border-color: var(--green);
  background: var(--green-soft);
}
.sig-steps li .sig-check {
  display: inline-flex;
  align-items: center;
  color: var(--ink-3);
}
.sig-steps li.is-on .sig-check {
  color: var(--green);
}

/* ---------- Responsive Demos ---------- */
@media (max-width: 1020px) {
  .sim-android-layout,
  .sim-vnc-layout,
  .sim-model-layout,
  .sim-auto-layout { grid-template-columns: 1fr; }
  .sim-phone { width: 100%; max-width: 360px; margin-inline: auto; }
  .sim-chat-window { grid-template-columns: 1fr; }
  .sim-chat-side { display: none; }
  .cap-tiles-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .demo-stage { padding: 14px; min-height: 460px; }
  .vnc-win-term { position: relative; left: 0; top: 24px; width: 100%; height: 210px; margin-bottom: 12px; }
  .vnc-win-browser { position: relative; right: 0; top: 24px; width: 100%; height: auto; margin-bottom: 44px; }
  .vnc-desktop { min-height: 490px; padding: 12px; }
  .demo-tab { height: 34px; padding: 0 11px; font-size: 12.5px; }
}
