.business-hero-visual {
  position: relative;
  container-type: inline-size;
}

.business-demo {
  position: relative;
  width: 100%;
  height: 440px;
  isolation: isolate;
  overflow: clip;
  overflow-clip-margin: 12px;
  font-size: 12px;
  letter-spacing: 0;
  --demo-success: #24816c;
  --demo-duration: 850ms;
  --demo-zoom: 1.1;
  --demo-selected-ink: var(--business-surface);
}

:root[data-theme="dark"] .business-demo {
  --demo-success: #77cdb4;
  --demo-selected-ink: var(--business-bg);
}

.business-demo .camera {
  position: absolute;
  inset: 0;
  transform-origin: 50% 48%;
  transition: transform 1000ms cubic-bezier(.22, 1, .36, 1), transform-origin 1000ms cubic-bezier(.22, 1, .36, 1);
}

.business-demo[data-focused="true"] .camera { transform: scale(var(--demo-zoom)); }
.business-demo[data-demo="tasks"][data-focused="true"] .camera { transform-origin: 62% 48%; }
.business-demo[data-demo="workitem"][data-focused="true"] .camera { transform-origin: 38% 48%; }
.business-demo[data-focused="true"][data-expanded="true"] .camera { transform-origin: 50% 52%; }
.business-demo .workspace {
  position: absolute;
  inset: 8% 4% 8%;
  overflow: hidden;
  border: 1px solid var(--business-border);
  border-radius: 8px;
  background: var(--business-surface);
  transform-origin: center 65%;
  transition: transform var(--demo-duration) cubic-bezier(.22, 1, .36, 1), opacity 600ms;
}

.business-demo .chrome { height: 10%; display: flex; align-items: center; gap: 5px; padding: 0 5%; border-bottom: 1px solid var(--business-border); }
.business-demo .chrome span { width: 6px; height: 6px; border-radius: 50%; background: var(--business-mock-chrome); }
.business-demo .workspace-header { position: absolute; top: 18%; left: 5%; right: 5%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.business-demo .workspace-header strong { font-size: 22px; line-height: 1.2; }
.business-demo .workspace-header p { font-size: 12px; line-height: 1.5; color: var(--business-muted); margin: 6px 0 0; }
.business-demo .badge { padding: 5px 10px; border-radius: 5px; background: var(--business-surface-soft); color: var(--business-primary); font-size: 11px; font-weight: 650; }
.business-demo .tabs { position: absolute; top: 40%; left: 5%; right: 5%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.business-demo .tab { display: grid; place-items: center; height: 40px; padding: 0 3px; background: var(--business-surface-soft); color: var(--business-muted); border-radius: 6px; text-align: center; font-size: 12px; line-height: 1.2; font-weight: 600; transition: color 500ms, background 500ms, box-shadow 500ms; }
.business-demo .task-panel {
  position: absolute;
  z-index: 2;
  top: 54%;
  bottom: 14%;
  left: 8.5%;
  right: 8.5%;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid var(--business-border);
  border-radius: 8px;
  background: var(--business-surface);
  transition: top var(--demo-duration) cubic-bezier(.22, 1, .36, 1), bottom var(--demo-duration), left var(--demo-duration), right var(--demo-duration), box-shadow var(--demo-duration);
}

.business-demo .panel-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 0; overflow: hidden; opacity: 0; transition: height 700ms, opacity 400ms, margin 700ms; }
.business-demo .panel-label { display: flex; align-items: center; gap: 6px; color: var(--business-primary); font-size: 11px; font-weight: 650; }
.business-demo .spark { width: 12px; height: 12px; background: currentColor; clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%); }
.business-demo .status { position: relative; width: 90px; height: 22px; font-size: 10px; }
.business-demo .status span { position: absolute; right: 0; top: 0; padding: 3px 7px; border-radius: 4px; background: var(--business-primary-soft); color: var(--business-primary); transition: opacity 300ms; }
.business-demo .status .done { opacity: 0; color: var(--demo-success); background: color-mix(in srgb, var(--demo-success) 10%, transparent); }
.business-demo .task-title { font-size: 15px; line-height: 1.45; font-weight: 650; margin: 0; }
.business-demo .skeleton { display: grid; gap: 7px; margin-top: 16px; transition: opacity 250ms; }
.business-demo .skeleton i { width: 95%; height: 6px; border-radius: 3px; background: var(--business-mock-line); }
.business-demo .skeleton i:nth-child(2) { width: 70%; }
.business-demo .skeleton i:nth-child(3) { width: 44%; }
.business-demo .execution { position: absolute; top: 100px; left: 20px; right: 20px; opacity: 0; transform: translateY(12px); transition: opacity 500ms 150ms, transform 650ms; }
.business-demo .step { display: grid; grid-template-columns: 17px minmax(0, 1fr) 20px; align-items: center; gap: 8px; height: 38px; color: var(--business-faint); font-size: 12px; line-height: 1.4; transition: color 500ms; }
.business-demo .step-marker { display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid var(--business-border); border-radius: 50%; }
.business-demo .step-marker::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--business-mock-chrome); }
.business-demo .step-meta { width: 14px; height: 3px; background: var(--business-border); border-radius: 2px; }
.business-demo .step[data-state="active"] { color: var(--business-ink); }
.business-demo .step[data-state="active"] .step-marker { border-color: var(--business-primary); }
.business-demo .step[data-state="active"] .step-marker::after { background: var(--business-primary); }
.business-demo .step[data-state="active"] .step-meta { width: 20px; background: var(--business-primary); }
.business-demo .step[data-state="done"] { color: var(--business-muted); }
.business-demo .step[data-state="done"] .step-marker { border-color: transparent; background: color-mix(in srgb, var(--demo-success) 12%, transparent); }
.business-demo .step[data-state="done"] .step-marker::after { width: 7px; height: 4px; border: solid var(--demo-success); border-width: 0 0 1.5px 1.5px; border-radius: 0; background: none; transform: rotate(-45deg) translateY(-1px); }
.business-demo .step[data-state="done"] .step-meta { background: var(--demo-success); opacity: .55; }
.business-demo .progress-track { height: 3px; margin-top: 12px; background: var(--business-mock-line); border-radius: 3px; overflow: hidden; }
.business-demo .progress-fill { width: 0; height: 100%; background: var(--business-primary); transition: width 1400ms ease-in-out, background 400ms; }
.business-demo .result { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--business-border); margin-top: 14px; padding-top: 14px; opacity: 0; transform: translateY(7px); transition: opacity 500ms, transform 500ms; }
.business-demo .document-symbol { width: 20px; height: 25px; border: 1.5px solid var(--demo-success); border-radius: 3px; position: relative; flex-shrink: 0; }
.business-demo .document-symbol::after { content: ""; position: absolute; left: 4px; right: 4px; top: 7px; height: 6px; border: solid var(--demo-success); border-width: 1px 0; }
.business-demo .result strong { display: block; font-size: 12px; font-weight: 600; }
.business-demo .result small { display: block; font-size: 10px; line-height: 1.4; color: var(--business-muted); margin-top: 3px; }
.business-demo .summary { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 7px; color: var(--demo-success); font-size: 11px; line-height: 1.5; opacity: 0; transition: opacity 500ms; }
.business-demo .summary-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.business-demo[data-phase="reset"] .skeleton { transition-delay: 350ms; }
.business-demo[data-focused="true"][data-demo="tasks"] .tab-tasks,
.business-demo[data-focused="true"][data-demo="workitem"] .tab-workitems { background: var(--business-primary); color: var(--demo-selected-ink); box-shadow: 0 4px 12px var(--business-primary-soft); }
.business-demo[data-expanded="true"] .workspace { transform: translateY(-5px) scale(.97); opacity: 0; }
.business-demo[data-expanded="true"] .task-panel { top: 11%; bottom: 11%; left: 6%; right: 6%; }
.business-demo[data-expanded="true"] .panel-top { height: 22px; margin-bottom: 10px; opacity: 1; }
.business-demo[data-expanded="true"] .skeleton, .business-demo[data-complete="true"] .skeleton { opacity: 0; }
.business-demo[data-expanded="true"][data-demo="tasks"] .execution { opacity: 1; transform: none; }
.business-demo[data-complete="true"] .status .running { opacity: 0; }
.business-demo[data-complete="true"] .status .done { opacity: 1; }
.business-demo[data-complete="true"] .progress-fill { background: var(--demo-success); }
.business-demo[data-complete="true"] .result { opacity: 1; transform: none; }
.business-demo[data-complete="true"][data-expanded="false"] .summary { opacity: 1; transition-delay: 400ms; }
.business-demo[data-complete="true"][data-expanded="false"] .tab-artifacts { color: var(--demo-success); }
.business-demo .workitem-detail { position: absolute; top: 98px; left: 20px; right: 20px; bottom: 18px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 350ms, transform 650ms, visibility 350ms; }
.business-demo[data-demo="workitem"][data-expanded="true"] .workitem-detail { opacity: 1; visibility: visible; transform: none; }
.business-demo[data-demo="workitem"] .status { display: none; }
.business-demo .item-identity { display: none; color: var(--business-faint); font-size: 10px; }
.business-demo[data-demo="workitem"] .item-identity { display: inline; }
.business-demo .item-tabs { display: flex; align-items: center; gap: 14px; height: 31px; border-bottom: 1px solid var(--business-border); color: var(--business-muted); font-size: 11px; }
.business-demo .item-tabs span { height: calc(100% - 4px); padding: 0 8px; display: flex; align-items: center; border-radius: 4px; transition: color 300ms, background 300ms; }
.business-demo[data-item-view="overview"] .item-tab-overview,
.business-demo[data-item-view="files"] .item-tab-files { color: var(--demo-selected-ink); background: var(--business-primary); }
.business-demo .item-layout { position: absolute; top: 43px; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) 115px; gap: 16px; }
.business-demo .item-main { min-width: 0; position: relative; }
.business-demo .item-overview, .business-demo .item-files { position: absolute; inset: 0; transition: opacity 250ms, transform 400ms, visibility 250ms; }
.business-demo .item-files { opacity: 0; visibility: hidden; transform: translateX(8px); }
.business-demo[data-item-view="files"] .item-overview { opacity: 0; visibility: hidden; transform: translateX(-8px); }
.business-demo[data-item-view="files"] .item-files { opacity: 1; visibility: visible; transform: none; }
.business-demo .item-section-title { color: var(--business-faint); font-size: 10px; font-weight: 500; line-height: 1.3; margin: 0 0 6px; }
.business-demo .item-task { display: flex; align-items: center; gap: 6px; min-height: 24px; font-size: 11px; }
.business-demo .item-task .step-marker { flex-shrink: 0; border-color: var(--business-primary); }
.business-demo .item-task .step-marker::after { background: var(--business-primary); }
.business-demo .item-state { margin-left: auto; color: var(--business-primary); font-size: 10px; white-space: nowrap; }
.business-demo .item-progress { height: 2px; background: var(--business-mock-line); margin: 10px 0 12px; overflow: hidden; }
.business-demo .item-progress span { display: block; width: 22%; height: 100%; background: var(--business-primary); transition: width 1800ms ease, background 500ms; }
.business-demo[data-item-step="working"] .item-progress span { width: 70%; }
.business-demo[data-item-done="true"] .item-progress span { width: 100%; background: var(--demo-success); }
.business-demo[data-item-done="true"] .item-task .step-marker { border-color: var(--demo-success); }
.business-demo[data-item-done="true"] .item-task .step-marker::after { background: var(--demo-success); }
.business-demo[data-item-done="true"] .item-state { color: var(--demo-success); }
.business-demo .item-output { position: relative; height: 45px; margin-bottom: 10px; border-bottom: 1px solid var(--business-border); }
.business-demo .item-output-placeholder { position: absolute; top: 4px; left: 0; width: 70%; height: 6px; border-radius: 3px; background: var(--business-mock-line); transition: opacity 300ms; }
.business-demo .item-deliverable { display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(7px); transition: opacity 450ms, transform 450ms; }
.business-demo .item-deliverable strong { font-size: 11px; font-weight: 550; display: block; }
.business-demo .item-deliverable small { font-size: 10px; line-height: 1.4; color: var(--business-muted); display: block; margin-top: 3px; }
.business-demo[data-item-done="true"] .item-deliverable { opacity: 1; transform: none; }
.business-demo[data-item-done="true"] .item-output-placeholder { opacity: 0; }
.business-demo .item-source { font-size: 10px; color: var(--business-muted); display: flex; align-items: center; gap: 7px; }
.business-demo .source-count { color: var(--business-primary); }
.business-demo .item-conversations { border-left: 1px solid var(--business-border); padding-left: 14px; min-width: 0; }
.business-demo .conversation { font-size: 10px; line-height: 1.5; padding: 7px 0; color: var(--business-muted); }
.business-demo .conversation:first-of-type { color: var(--business-primary); }
.business-demo .conversation small { display: block; font-size: 10px; margin-top: 3px; color: var(--business-faint); }
.business-demo .conversation-update { margin-top: 8px; padding-top: 9px; border-top: 1px solid var(--business-border); color: var(--demo-success); font-size: 10px; line-height: 1.5; opacity: 0; transform: translateY(6px); transition: opacity 450ms, transform 450ms; }
.business-demo[data-item-step="saved"] .conversation-update { opacity: 1; transform: none; }
.business-demo .file-row { display: flex; align-items: center; gap: 8px; height: 52px; border-bottom: 1px solid var(--business-border); }
.business-demo .file-row .document-symbol { border-color: var(--business-primary); width: 18px; height: 23px; }
.business-demo .file-row .document-symbol::after { border-color: var(--business-primary); }
.business-demo .file-row strong { display: block; font-size: 11px; font-weight: 500; }
.business-demo .file-row small { display: block; margin-top: 4px; color: var(--business-faint); font-size: 10px; }
.business-demo [data-copy] { display: none; }
.business-demo[data-demo="tasks"] [data-copy="tasks"], .business-demo[data-demo="workitem"] [data-copy="workitem"] { display: inline; }
.business-demo .item-state [data-state-copy="done"] { display: none; }
.business-demo[data-item-done="true"] .item-state [data-state-copy="running"] { display: none; }
.business-demo[data-item-done="true"] .item-state [data-state-copy="done"] { display: inline; }

.business-demo-toggle { position: absolute; right: 4%; bottom: 0; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--business-faint); cursor: pointer; }
.business-demo-toggle:hover { color: var(--business-primary); background: var(--business-primary-soft); }
.business-demo-toggle:focus-visible { outline: 2px solid var(--business-primary); outline-offset: 2px; }
.business-demo-toggle i { width: 10px; height: 11px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.business-demo-toggle[aria-pressed="true"] i { width: 0; height: 0; border: 6px solid transparent; border-right: 0; border-left: 9px solid currentColor; }
.business-demo-toggle[hidden] { display: none; }

@container (max-width: 520px) {
  .business-demo { height: 360px; --demo-zoom: 1.035; }
  .business-demo .workspace-header strong { font-size: 19px; }
  .business-demo .workspace-header p { font-size: 11px; max-width: 210px; }
  .business-demo .badge { font-size: 10px; padding: 4px 7px; }
  .business-demo .tabs { gap: 5px; }
  .business-demo .tab { height: 34px; font-size: 11px; }
  .business-demo .task-panel { padding: 14px; }
  .business-demo .task-title { font-size: 13px; }
  .business-demo .skeleton { gap: 6px; margin-top: 12px; }
  .business-demo .skeleton i { height: 5px; }
  .business-demo[data-expanded="true"] .task-panel { top: 8%; bottom: 8%; }
  .business-demo .execution { top: 96px; left: 14px; right: 14px; }
  .business-demo .step { height: 34px; font-size: 11px; gap: 6px; }
  .business-demo .progress-track { margin-top: 9px; }
  .business-demo .result { margin-top: 10px; padding-top: 10px; }
  .business-demo .result strong { font-size: 11px; }
  .business-demo .summary { left: 14px; right: 14px; bottom: 14px; font-size: 10px; }
  .business-demo .workitem-detail { top: 84px; left: 14px; right: 14px; bottom: 14px; }
  .business-demo .item-layout { grid-template-columns: minmax(0, 1fr); top: 41px; }
  .business-demo .item-conversations { display: none; }
  .business-demo .item-tabs { gap: 10px; }
  .business-demo .item-progress { margin: 8px 0 10px; }
  .business-demo .item-output { height: 42px; }
}

@media (max-width: 800px) {
  .business-demo { --demo-zoom: 1.035; }
  .business-demo .workspace { left: 2%; right: 2%; }
  .business-demo .task-panel { left: 7%; right: 7%; }
  .business-demo[data-expanded="true"] .task-panel { left: 2%; right: 2%; }
  .business-demo-toggle { right: 2%; }
}

@media (max-width: 640px) and (max-height: 740px) {
  .business-demo { height: 300px; }
  .business-demo .task-panel { bottom: 8%; }
  .business-demo[data-expanded="true"] .task-panel { top: 4%; bottom: 2%; }
}

@media (prefers-reduced-motion: reduce) {
  .business-demo *, .business-demo *::after { transition: none !important; }
  .business-demo[data-focused="true"] .camera { transform: none; }
}
