Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

feat(web): replace CRT animations with live multi-agent demos (Cursor-style) (#302)

Generee22cd0bdfe9
diff --git a/codecov.yml b/codecov.yml
index a16d29079..de15e5274 100644
--- a/codecov.yml
+++ b/codecov.yml
@@ -25,6 +25,9 @@ coverage:
default:
target: 60%
+ignore:
+ - "src/web/src/components/home/**"
+
comment:
layout: "reach,diff,flags,files"
behavior: default
diff --git a/src/web/src/components/home/architecture-overview.tsx b/src/web/src/components/home/architecture-overview.tsx
index 27b8a1d2b..3c55b9571 100644
--- a/src/web/src/components/home/architecture-overview.tsx
+++ b/src/web/src/components/home/architecture-overview.tsx
@@ -1,250 +1,243 @@
"use client";
-import { useRef } from "react";
+import { useMemo, useRef } from "react";
import gsap from "gsap";
import { useGSAP } from "@gsap/react";
import { ScrollTrigger } from "gsap/ScrollTrigger";
+import { DemoWindow } from "./demo-window";
+import { DemoDashboard, type DashboardStep, type DashboardState, type DashboardConfig, type AgentInfo } from "./demo-pad/demo-dashboard";
+import { DemoTerminal, type TerminalLine } from "./demo-pad/demo-terminal";
+import { DemoMobile } from "./demo-pad/demo-mobile";
+import { useScriptedTimeline, type TimelineStep } from "./demo-pad/use-scripted-timeline";
gsap.registerPlugin(ScrollTrigger);
-interface ZoneItem {
- label: string;
- detail: string;
-}
-
-const localZone: ZoneItem[] = [
- { label: "AI Agent", detail: "Runs tasks on your machine" },
- { label: "Your Codebase", detail: "Full access, nothing leaves" },
- { label: "Local Tools", detail: "Git, shell, editors — all yours" },
+const ARCH_AGENTS: AgentInfo[] = [
+ { name: "Planner", email: "[email protected]", config: { shape: "hexagon", eye: "dots", nose: "dash", bg: 5 } },
+ { name: "Coder", email: "[email protected]", config: { shape: "task", eye: "happy", nose: "dot", bg: 0 } },
];
+const ARCH_CONFIG: DashboardConfig = { agents: ARCH_AGENTS };
-const cloudZone: ZoneItem[] = [
- { label: "Email Inbox", detail: "Receives emails for your agent" },
- { label: "Dashboard", detail: "Monitor and review in real-time" },
- { label: "Sync Layer", detail: "Keeps everything connected" },
+/* ─── Planner's chat steps ─── */
+const PLANNER_STEPS: DashboardStep[] = [
+ { type: "user-message", text: "A user reported Safari crashes on login — can you fix it?" },
+ { type: "message", text: "On it. Let me investigate and delegate to Coder." },
+ { type: "email-out", subject: "Fix Safari flex gap in login page", address: "[email protected]" },
+ // After Coder finishes:
+ { type: "email-in", subject: "Re: Fix Safari flex gap — Done, PR #142", address: "[email protected]" },
+ { type: "message", markdown: "Coder fixed it — <strong>PR #142</strong> opened. Both <code>login-page.tsx</code> and <code>signup.tsx</code> patched, 42 tests passing." },
+ { type: "user-message", text: "Nice, ship it" },
+ { type: "message", text: "Done. Merged and replied to the reporter." },
+ { type: "email-out", subject: "Re: Login crashes on Safari — Fixed", address: "[email protected]" },
];
-function ZoneCard({
- title,
- subtitle,
- items,
- className,
-}: {
- title: string;
- subtitle: string;
- items: ZoneItem[];
- className?: string;
-}) {
- return (
- <div
- className={`arch-zone rounded-2xl p-6 ${className ?? ""}`}
- style={{
- backgroundColor: "var(--landing-surface)",
- border: "1px solid var(--landing-border)",
- }}
- >
- <div className="mb-5">
- <h3
- className="text-lg"
- style={{
- fontFamily: "var(--font-crt)",
- color: "var(--landing-text)",
- }}
- >
- {title}
- </h3>
- <div
- className="mt-1 text-xs"
- style={{
- fontFamily: "var(--font-mono)",
- color: "var(--landing-text-muted)",
- }}
- >
- {subtitle}
- </div>
- </div>
+/* ─── Coder's chat steps ─── */
+const CODER_STEPS: DashboardStep[] = [
+ { type: "email-in", subject: "Fix Safari flex gap in login page", address: "[email protected]" },
+ { type: "message", text: "Got it. Searching for flex gap usage..." },
+ { type: "message", markdown: `Found 2 affected files:<br/><code>login-page.tsx:42</code> and <code>signup.tsx:18</code>. Fixing both.` },
+ { type: "message", markdown: "Done — replaced flex gap → margin spacing. <strong>42 tests passing ✓</strong>" },
+ { type: "email-out", subject: "Re: Fix Safari flex gap — Done, PR #142", address: "[email protected]" },
+];
- <div className="space-y-2.5">
- {items.map((item) => (
- <div key={item.label} className="crt-panel-outer">
- <div className="crt-panel-inner px-4 py-3">
- <div
- className="text-xs font-medium"
- style={{
- fontFamily: "var(--font-crt)",
- color: "var(--landing-phosphor)",
- textShadow: "0 0 6px oklch(0.75 0.18 80 / 30%)",
- }}
- >
- {item.label}
- </div>
- <div
- className="mt-0.5 text-[11px] leading-relaxed"
- style={{
- fontFamily: "var(--font-crt)",
- color: "var(--landing-phosphor)",
- textShadow: "0 0 6px oklch(0.75 0.18 80 / 30%)",
- opacity: 0.55,
- }}
- >
- {item.detail}
- </div>
- </div>
- </div>
- ))}
- </div>
- </div>
- );
-}
+/* ─── Terminal lines ─── */
+const TERMINAL_LINES: TerminalLine[] = [
+ { spans: [
+ { text: "INFO ", color: "keyword" },
+ { text: "[daemon] ", color: "muted" },
+ { text: "Task ", color: "info" },
+ { text: "PhGFC9l ", color: "string" },
+ { text: "claimed agent=", color: "info" },
+ { text: "Planner", color: "string" },
+ ] },
+ { spans: [
+ { text: "INFO ", color: "keyword" },
+ { text: "[session-runner] ", color: "muted" },
+ { text: "send-dm", color: "highlight" },
+ { text: ": ", color: "muted" },
+ { text: "\"Let me investigate and delegate...\"", color: "string" },
+ ] },
+ { spans: [
+ { text: "INFO ", color: "keyword" },
+ { text: "[session-runner] ", color: "muted" },
+ { text: "email-send", color: "highlight" },
+ { text: ": → ", color: "muted" },
+ { text: "[email protected]", color: "string" },
+ ] },
+ { spans: [
+ { text: "INFO ", color: "keyword" },
+ { text: "[daemon] ", color: "muted" },
+ { text: "Task ", color: "info" },
+ { text: "xK9mT2r ", color: "string" },
+ { text: "claimed agent=", color: "info" },
+ { text: "Coder", color: "string" },
+ ] },
+ { spans: [
+ { text: "INFO ", color: "keyword" },
+ { text: "[session-runner] ", color: "muted" },
+ { text: "starting ", color: "info" },
+ { text: "(provider=", color: "muted" },
+ { text: "claude", color: "string" },
+ { text: ")", color: "muted" },
+ ] },
+ { spans: [
+ { text: "INFO ", color: "keyword" },
+ { text: "[session-runner] ", color: "muted" },
+ { text: "Bash", color: "highlight" },
+ { text: ": grep -rn ", color: "info" },
+ { text: "flex-gap", color: "string" },
+ { text: " src/", color: "muted" },
+ ] },
+ { spans: [
+ { text: "INFO ", color: "keyword" },
+ { text: "[session-runner] ", color: "muted" },
+ { text: "→ found in ", color: "info" },
+ { text: "login-page.tsx:42", color: "highlight" },
+ { text: ", ", color: "muted" },
+ { text: "signup.tsx:18", color: "highlight" },
+ ] },
+ { spans: [
+ { text: "INFO ", color: "keyword" },
+ { text: "[session-runner] ", color: "muted" },
+ { text: "Edit", color: "highlight" },
+ { text: ": ", color: "muted" },
+ { text: "login-page.tsx", color: "string" },
+ { text: ", ", color: "muted" },
+ { text: "signup.tsx", color: "string" },
+ ] },
+ { spans: [
+ { text: "INFO ", color: "keyword" },
+ { text: "[session-runner] ", color: "muted" },
+ { text: "Bash", color: "highlight" },
+ { text: ": pnpm test ", color: "info" },
+ { text: "→ ", color: "muted" },
+ { text: "42 passed ✓", color: "success" },
+ ] },
+ { spans: [
+ { text: "INFO ", color: "keyword" },
+ { text: "[session-runner] ", color: "muted" },
+ { text: "email-send", color: "highlight" },
+ { text: ": → ", color: "muted" },
+ { text: "[email protected]", color: "string" },
+ ] },
+ { spans: [
+ { text: "INFO ", color: "keyword" },
+ { text: "[session-runner] ", color: "muted" },
+ { text: "completed ", color: "success" },
+ { text: "(duration=18s, tools=4)", color: "muted" },
+ ] },
+ { spans: [
+ { text: "INFO ", color: "keyword" },
+ { text: "[session-runner] ", color: "muted" },
+ { text: "send-dm", color: "highlight" },
+ { text: ": ", color: "muted" },
+ { text: "\"Coder fixed it — PR #142 opened.\"", color: "string" },
+ ] },
+ { spans: [
+ { text: "INFO ", color: "keyword" },
+ { text: "[session-runner] ", color: "muted" },
+ { text: "email-send", color: "highlight" },
+ { text: ": → ", color: "muted" },
+ { text: "[email protected]", color: "string" },
+ { text: " — ", color: "muted" },
+ { text: "completed", color: "success" },
+ ] },
+];
-function ConnectionArrows() {
- return (
- <div className="arch-arrows flex flex-col items-center justify-center py-4 lg:py-0">
- {/* Desktop: horizontal bidirectional arrow */}
- <div className="hidden lg:flex flex-col items-center gap-3">
- <span
- className="text-[10px]"
- style={{
- fontFamily: "var(--font-mono)",
- color: "var(--landing-text-muted)",
- opacity: 0.6,
- }}
- >
- tasks & results
- </span>
- <svg
- width="120"
- height="20"
- viewBox="0 0 120 20"
- style={{ overflow: "visible" }}
- >
- <polygon
- points="4,6 0,10 4,14"
- fill="var(--landing-text-muted)"
- opacity="0.4"
- />
- <line
- x1="6"
- y1="10"
- x2="114"
- y2="10"
- stroke="var(--landing-text-muted)"
- strokeWidth="1"
- strokeDasharray="4 3"
- opacity="0.35"
- />
- <polygon
- points="116,6 120,10 116,14"
- fill="var(--landing-text-muted)"
- opacity="0.4"
- />
- </svg>
- <span
- className="text-[10px]"
- style={{
- fontFamily: "var(--font-mono)",
- color: "var(--landing-text-muted)",
- opacity: 0.6,
- }}
- >
- email in · updates out
- </span>
- </div>
+/* ─── Timeline ─── */
+const TIMELINE: TimelineStep[] = [
+ // Planner phase 1: user asks, planner responds + delegates
+ { id: "user-asks", duration: 2000 },
+ { id: "planner-typing", duration: 1500 },
+ { id: "planner-msg1", duration: 1500 },
+ { id: "planner-email-out", duration: 2000 },
+ // Switch to Coder
+ { id: "switch-to-coder", duration: 1200 },
+ { id: "coder-email-in", duration: 1800 },
+ { id: "coder-typing", duration: 1200 },
+ { id: "coder-msg1", duration: 1500 },
+ { id: "coder-msg2", duration: 1800 },
+ { id: "coder-msg3", duration: 1800 },
+ { id: "coder-email-out", duration: 2000 },
+ // Switch back to Planner
+ { id: "switch-to-planner", duration: 1200 },
+ { id: "planner-email-in", duration: 1800 },
+ { id: "planner-msg2", duration: 2000 },
+ { id: "user-confirms", duration: 1800 },
+ { id: "planner-msg3", duration: 1500 },
+ { id: "planner-final-email", duration: 3000 },
+];
- {/* Mobile: vertical bidirectional arrow */}
- <div className="flex lg:hidden flex-row items-center gap-3">
- <span
- className="text-[10px] text-right"
- style={{
- fontFamily: "var(--font-mono)",
- color: "var(--landing-text-muted)",
- opacity: 0.6,
- }}
- >
- tasks &<br />results
- </span>
- <svg
- width="20"
- height="60"
- viewBox="0 0 20 60"
- style={{ overflow: "visible" }}
- >
- <polygon
- points="6,4 10,0 14,4"
- fill="var(--landing-text-muted)"
- opacity="0.4"
- />
- <line
- x1="10"
- y1="6"
- x2="10"
- y2="54"
- stroke="var(--landing-text-muted)"
- strokeWidth="1"
- strokeDasharray="4 3"
- opacity="0.35"
- />
- <polygon
- points="6,56 10,60 14,56"
- fill="var(--landing-text-muted)"
- opacity="0.4"
- />
- </svg>
- <span
- className="text-[10px]"
- style={{
- fontFamily: "var(--font-mono)",
- color: "var(--landing-text-muted)",
- opacity: 0.6,
- }}
- >
- email in ·<br />updates out
- </span>
- </div>
- </div>
- );
-}
+/* ─── Main component ─── */
export function ArchitectureOverview() {
const sectionRef = useRef<HTMLDivElement>(null);
+ const { visibleCount, isResetting, containerRef, isStepVisible } =
+ useScriptedTimeline({ steps: TIMELINE, holdAfterComplete: 3500 });
+
+ // Derive dashboard state from timeline
+ const dashboardState: DashboardState = useMemo(() => {
+ // Which agent is active?
+ const showCoder = isStepVisible(4) && !isStepVisible(11);
+ const activeAgent = showCoder ? "coder" as const : "planner" as const;
+
+ let steps: DashboardStep[];
+ let vis: number;
+ let isTyping: boolean;
+ let isWorking: boolean;
+
+ if (showCoder) {
+ steps = CODER_STEPS;
+ vis = 0;
+ if (isStepVisible(5)) vis = 1; // email-in
+ if (isStepVisible(7)) vis = 2; // msg1 "Got it"
+ if (isStepVisible(8)) vis = 3; // msg2 "Found 2 files"
+ if (isStepVisible(9)) vis = 4; // msg3 "Done"
+ if (isStepVisible(10)) vis = 5; // email-out
+ isTyping = isStepVisible(6) && !isStepVisible(7);
+ isWorking = isStepVisible(5) && !isStepVisible(10);
+ } else {
+ steps = PLANNER_STEPS;
+ vis = 0;
+ if (isStepVisible(0)) vis = 1; // user msg
+ if (isStepVisible(2)) vis = 2; // planner msg1
+ if (isStepVisible(3)) vis = 3; // email-out to coder
+ if (isStepVisible(12)) vis = 4; // email-in from coder
+ if (isStepVisible(13)) vis = 5; // planner msg2 "Coder fixed it"
+ if (isStepVisible(14)) vis = 6; // user "Nice, ship it"
+ if (isStepVisible(15)) vis = 7; // planner msg3 "Done"
+ if (isStepVisible(16)) vis = 8; // email-out to user
+ isTyping = isStepVisible(1) && !isStepVisible(2);
+ isWorking = isStepVisible(0) && !isStepVisible(16);
+ }
+
+ return { activeAgent, steps, visibleCount: vis, isTyping, isWorking };
+ }, [visibleCount]); // eslint-disable-line react-hooks/exhaustive-deps
+
+ // Terminal: each timeline step from 0 onward maps to a line
+ const terminalVisible = useMemo(() => {
+ // Map timeline steps to terminal lines
+ const mapping = [0, 1, 2, 3, 4, 4, 5, 6, 7, 8, 9, 10, 10, 11, 11, 12, 12];
+ let count = 0;
+ for (let i = 0; i < mapping.length; i++) {
+ if (isStepVisible(i)) count = mapping[i] + 1;
+ }
+ return Math.min(count, TERMINAL_LINES.length);
+ }, [visibleCount]); // eslint-disable-line react-hooks/exhaustive-deps
+
useGSAP(
() => {
gsap.from(".arch-title", {
- y: 30,
- opacity: 0,
- duration: 0.6,
- scrollTrigger: {
- trigger: sectionRef.current,
- start: "top 75%",
- toggleActions: "play none none none",
- },
+ y: 30, opacity: 0, duration: 0.6,
+ scrollTrigger: { trigger: sectionRef.current, start: "top 75%", toggleActions: "play none none none" },
});
-
- gsap.from(".arch-zone", {
- y: 40,
- opacity: 0,
- duration: 0.7,
- stagger: 0.2,
- scrollTrigger: {
- trigger: ".arch-diagram",
- start: "top 70%",
- toggleActions: "play none none none",
- },
- });
-
- gsap.from(".arch-arrows", {
- opacity: 0,
- duration: 0.5,
- delay: 0.3,
- scrollTrigger: {
- trigger: ".arch-diagram",
- start: "top 65%",
- toggleActions: "play none none none",
- },
+ gsap.from(".arch-demo-container", {
+ y: 40, opacity: 0, duration: 0.7,
+ scrollTrigger: { trigger: ".arch-demo-container", start: "top 70%", toggleActions: "play none none none" },
});
},
- { scope: sectionRef }
+ { scope: sectionRef },
);
return (
@@ -253,57 +246,83 @@ export function ArchitectureOverview() {
className="relative flex flex-col items-center justify-center px-6 py-24 lg:py-32"
style={{ backgroundColor: "var(--landing-bg)" }}
>
- {/* Section title */}
+ {/* Title */}
<div className="arch-title mb-16 text-center">
<div
className="mb-3 text-xs uppercase tracking-[0.3em]"
- style={{
- fontFamily: "var(--font-mono)",
- color: "var(--landing-text-muted)",
- }}
+ style={{ fontFamily: "var(--font-mono)", color: "var(--landing-text-muted)" }}
>
How It Works
</div>
- <h2
- style={{
- fontFamily: "var(--font-crt)",
- color: "var(--landing-text)",
- fontSize: "clamp(1.75rem, 4vw, 3rem)",
- }}
- >
+ <h2 style={{ fontFamily: "var(--font-crt)", color: "var(--landing-text)", fontSize: "clamp(1.75rem, 4vw, 3rem)" }}>
Local Agent, Global Reach
</h2>
<p
- className="mt-2 max-w-lg mx-auto"
- style={{
- fontFamily: "var(--font-mono)",
- color: "var(--landing-text-muted)",
- fontSize: "0.85rem",
- }}
+ className="mt-2 max-w-2xl mx-auto"
+ style={{ fontFamily: "var(--font-mono)", color: "var(--landing-text-muted)", fontSize: "0.85rem" }}
>
Your agent runs on your machine with full access to your tools.
Alook connects it to email, dashboards, and the outside world.
</p>
</div>
- {/* Two-zone diagram */}
- <div className="arch-diagram mx-auto flex w-full max-w-4xl flex-col items-center gap-6 lg:flex-row lg:items-stretch lg:gap-8">
- <div className="w-full lg:flex-1">
- <ZoneCard
- title="Your Machine"
- subtitle="Private · Local files · full control"
- items={localZone}
- />
+ {/* Triple-window demo */}
+ <div
+ ref={containerRef}
+ className={`arch-demo-container relative w-full max-w-5xl mx-auto h-130 lg:h-120 transition-opacity duration-300 ${
+ isResetting ? "opacity-0" : "opacity-100"
+ }`}
+ >
+ {/* Desktop — top-left, behind */}
+ <div className="absolute top-0 left-0 w-[60%] h-[88%] z-10 hidden md:block">
+ <DemoWindow title="Alook Desktop" className="h-full shadow-[0_28px_70px_rgba(0,0,0,0.14),0_14px_32px_rgba(0,0,0,0.1)]">
+ <DemoDashboard state={dashboardState} config={ARCH_CONFIG} />
+ </DemoWindow>
</div>
- <ConnectionArrows />
+ {/* Mobile + Terminal — side by side, overlapping desktop from left */}
+ <div className="absolute top-[25%] left-[40%] right-0 h-[75%] z-20 hidden md:flex gap-3">
+ {/* Mobile — phone frame */}
+ <div className="w-45 shrink-0 h-full hidden lg:block">
+ <div className="h-full rounded-[1.5rem] border-[3px] border-neutral-700 bg-background shadow-[0_28px_70px_rgba(0,0,0,0.18),0_14px_32px_rgba(0,0,0,0.12)] overflow-hidden flex flex-col dark">
+ {/* Dynamic Island */}
+ <div className="flex justify-center pt-1 shrink-0">
+ <div className="px-2 py-px bg-neutral-800 rounded-full flex items-center justify-center">
+ <span className="text-[8px] text-neutral-400">Alook Mobile</span>
+ </div>
+ </div>
+ <div className="flex-1 min-h-0">
+ <DemoMobile state={dashboardState} config={ARCH_CONFIG} />
+ </div>
+ {/* Home indicator */}
+ <div className="flex justify-center py-1 shrink-0">
+ <div className="w-12 h-1 bg-muted-foreground/30 rounded-full" />
+ </div>
+ </div>
+ </div>
+ {/* Terminal */}
+ <div className="flex-1 min-w-0 h-full">
+ <DemoWindow title="Your Machine" className="h-full shadow-[0_28px_70px_rgba(0,0,0,0.18),0_14px_32px_rgba(0,0,0,0.12)]">
+ <DemoTerminal lines={TERMINAL_LINES} visibleCount={terminalVisible} />
+ </DemoWindow>
+ </div>
+ </div>
- <div className="w-full lg:flex-1">
- <ZoneCard
- title="Alook Cloud"
- subtitle="Always on · globally reachable"
- items={cloudZone}
- />
+ {/* Responsive (< md): mobile phone only */}
+ <div className="md:hidden flex justify-center h-full">
+ <div className="w-65 h-full rounded-[2rem] border-[3px] border-neutral-700 bg-background shadow-lg overflow-hidden flex flex-col dark">
+ <div className="flex justify-center pt-2 shrink-0">
+ <div className="px-4 py-1 bg-neutral-800 rounded-full flex items-center justify-center">
+ <span className="text-[11px] text-neutral-400 leading-none">Alook Mobile</span>
+ </div>
+ </div>
+ <div className="flex-1 min-h-0">
+ <DemoMobile state={dashboardState} config={ARCH_CONFIG} />
+ </div>
+ <div className="flex justify-center py-1 shrink-0">
+ <div className="w-16 h-1 bg-muted-foreground/30 rounded-full" />
+ </div>
+ </div>
</div>
</div>
</section>
diff --git a/src/web/src/components/home/demo-pad/demo-dashboard.tsx b/src/web/src/components/home/demo-pad/demo-dashboard.tsx
new file mode 100644
index 000000000..0dd098942
--- /dev/null
+++ b/src/web/src/components/home/demo-pad/demo-dashboard.tsx
@@ -0,0 +1,199 @@
+"use client";
+
+import { ArrowUp, FileText, Home, Mail, MessageSquare } from "lucide-react";
+import { MessageBubble } from "@/components/chat-primitives/message-bubble";
+import { MessageCluster } from "@/components/chat-primitives/message-cluster";
+import { PresenceLine } from "@/components/agent-chat/presence-line";
+import { EmailCard } from "@/components/agent-chat/event-cards/email-card";
+import { AnimatedAvatar } from "@/components/avatar/animated-avatar";
+import { AvatarRenderer, type AvatarConfig } from "@/components/avatar/avatar-parts";
+import { Logo } from "@/components/logo";
+import { cn } from "@/lib/utils";
+
+export interface AgentInfo {
+ name: string;
+ email: string;
+ config: AvatarConfig;
+}
+
+export interface DashboardStep {
+ type: "email-in" | "email-out" | "message" | "user-message";
+ subject?: string;
+ address?: string;
+ text?: string;
+ markdown?: string;
+ attachment?: string;
+}
+
+export interface DashboardState {
+ activeAgent: string;
+ steps: DashboardStep[];
+ visibleCount: number;
+ isTyping: boolean;
+ isWorking: boolean;
+}
+
+export interface DashboardConfig {
+ agents: AgentInfo[];
+}
+
+export function DemoDashboard({ state, config, className }: { state: DashboardState; config: DashboardConfig; className?: string }) {
+ const agent = config.agents.find(a => a.name.toLowerCase() === state.activeAgent) ?? config.agents[0];
+ const visibleSteps = state.steps.slice(0, state.visibleCount);
+
+ return (
+ <div className={cn("flex h-full overflow-hidden dark", className)}>
+ {/* Sidebar */}
+ <div className="flex h-full w-11 flex-col items-center py-2 gap-1 border-r border-border/40 shrink-0">
+ <div className="mb-1.5">
+ <Logo size="sm" iconOnly />
+ </div>
+ <div className="flex flex-col items-center gap-1 mb-1 pb-1.5 border-b border-border/30">
+ <div className="flex items-center justify-center size-7 rounded-lg text-muted-foreground/50">
+ <Home className="size-3" />
+ </div>
+ <div className="flex items-center justify-center size-7 rounded-lg text-muted-foreground/50">
+ <Mail className="size-3" />
+ </div>
+ </div>
+ <div className="flex flex-col items-center gap-1.5 flex-1">
+ {config.agents.map((a) => {
+ const isActive = state.activeAgent === a.name.toLowerCase();
+ return (
+ <div
+ key={a.name}
+ className={cn(
+ "size-8 rounded-xl overflow-hidden ring-2 transition-all duration-300",
+ isActive
+ ? "ring-primary shadow-md shadow-primary/20 scale-105"
+ : "ring-transparent hover:ring-border/60",
+ )}
+ >
+ <AvatarRenderer config={a.config} size={32} />
+ </div>
+ );
+ })}
+ </div>
+ </div>
+
+ {/* Main */}
+ <div className="flex-1 min-w-0 flex flex-col">
+ {/* Navbar — matches real product agent layout */}
+ <div className="flex items-center justify-between border-b border-border/50 px-3 py-2">
+ <div className="flex items-center gap-2 min-w-0">
+ <span className="size-2 rounded-full bg-green-500" />
+ <span className="text-sm font-medium text-foreground">{agent.name}</span>
+ <span className="text-xs text-muted-foreground">/ Chat</span>
+ </div>
+ <div className="flex items-center gap-0.5">
+ <span className="inline-flex items-center rounded-lg text-xs h-6 px-2 text-foreground bg-muted">
+ <MessageSquare className="size-3 mr-1" />
+ Chat
+ </span>
+ <span className="inline-flex items-center rounded-lg text-xs h-6 px-2 text-muted-foreground hover:bg-muted">
+ <Mail className="size-3 mr-1" />
+ Email
+ </span>
+ </div>
+ </div>
+
+ {/* Chat area */}
+ <div className="flex-1 min-h-0 overflow-hidden px-3 py-3">
+ <div className="flex flex-col h-full justify-end">
+ {visibleSteps.map((step, i) => {
+ const isAgent = step.type === "message";
+ const prevIsAgent = i > 0 && visibleSteps[i - 1].type === "message";
+ const nextIsAgent = i < visibleSteps.length - 1 && visibleSteps[i + 1]?.type === "message";
+
+ let groupPosition: "solo" | "first" | "middle" | "last" = "solo";
+ if (isAgent) {
+ if (!prevIsAgent && nextIsAgent) groupPosition = "first";
+ else if (prevIsAgent && nextIsAgent) groupPosition = "middle";
+ else if (prevIsAgent && !nextIsAgent) groupPosition = "last";
+ }
+
+ const isGroupStart = !prevIsAgent || !isAgent;
+ const spacing = i === 0 ? "" : isGroupStart ? "mt-4" : "mt-0.5";
+
+ return (
+ <div key={i} className={`animate-[fade-up_300ms_ease-out_both] ${spacing}`}>
+ {step.type === "email-in" && (
+ <MessageCluster
+ avatar={
+ <div className="size-6.5 rounded-lg overflow-hidden">
+ <AnimatedAvatar config={agent.config} size={26} isHovered={false} isWorking={state.isWorking} />
+ </div>
+ }
+ name={agent.name}
+ position="solo"
+ >
+ <EmailCard subject={step.subject!} address={step.address!} direction="inbound" />
+ </MessageCluster>
+ )}
+ {step.type === "email-out" && (
+ <MessageCluster
+ avatar={
+ <div className="size-6.5 rounded-lg overflow-hidden">
+ <AnimatedAvatar config={agent.config} size={26} isHovered={false} isWorking={false} />
+ </div>
+ }
+ name={agent.name}
+ position="solo"
+ >
+ <EmailCard subject={step.subject!} address={step.address!} direction="outbound" />
+ </MessageCluster>
+ )}
+ {step.type === "user-message" && (
+ <div className="flex justify-end">
+ <MessageBubble variant="user" position="single">
+ <span className="text-sm">{step.text}</span>
+ {step.attachment && (
+ <div className="flex items-center gap-1 mt-1.5 rounded-md bg-primary-foreground/10 border border-primary-foreground/20 px-2 py-1">
+ <FileText className="size-3 shrink-0" />
+ <span className="text-xs opacity-80">{step.attachment}</span>
+ </div>
+ )}
+ </MessageBubble>
+ </div>
+ )}
+ {step.type === "message" && (
+ <MessageCluster
+ avatar={
+ <div className="size-6.5 rounded-lg overflow-hidden">
+ <AnimatedAvatar config={agent.config} size={26} isHovered={false} isWorking={state.isWorking} />
+ </div>
+ }
+ name={agent.name}
+ position={groupPosition}
+ >
+ <MessageBubble variant="agent" position={groupPosition === "solo" ? "single" : groupPosition}>
+ {step.markdown ? (
+ <div className="text-sm space-y-1" dangerouslySetInnerHTML={{ __html: step.markdown }} />
+ ) : (
+ <span className="text-sm">{step.text}</span>
+ )}
+ </MessageBubble>
+ </MessageCluster>
+ )}
+ </div>
+ );
+ })}
+ </div>
+ </div>
+
+ {/* Composer — matches real product pill shape */}
+ <div className="px-3 py-3 border-t border-border/40">
+ {state.isTyping && (
+ <PresenceLine agentFirstName={agent.name} taskStatus="running" />
+ )}
+ <div className="flex items-center gap-2 rounded-3xl border border-border/60 bg-muted/20 px-4 py-2.5">
+ <span className="flex-1 text-sm text-muted-foreground/50">Message {agent.name}...</span>
+ <div className="size-6 rounded-full bg-primary flex items-center justify-center">
+ <ArrowUp className="size-3.5 text-primary-foreground" />
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+}
diff --git a/src/web/src/components/home/demo-pad/demo-mobile.tsx b/src/web/src/components/home/demo-pad/demo-mobile.tsx
new file mode 100644
index 000000000..71032befc
--- /dev/null
+++ b/src/web/src/components/home/demo-pad/demo-mobile.tsx
@@ -0,0 +1,146 @@
+"use client";
+
+import { ArrowUp, Home, CalendarDays, CircleDot } from "lucide-react";
+import { MessageBubble } from "@/components/chat-primitives/message-bubble";
+import { AnimatedAvatar } from "@/components/avatar/animated-avatar";
+import { AvatarRenderer } from "@/components/avatar/avatar-parts";
+import { Logo } from "@/components/logo";
+import { cn } from "@/lib/utils";
+import type { DashboardState, DashboardConfig } from "./demo-dashboard";
+
+export function DemoMobile({ state, config, className }: { state: DashboardState; config: DashboardConfig; className?: string }) {
+ const agent = config.agents.find(a => a.name.toLowerCase() === state.activeAgent) ?? config.agents[0];
+ const visibleSteps = state.steps.slice(0, state.visibleCount);
+
+ return (
+ <div className={cn("flex flex-col h-full overflow-hidden dark", className)}>
+ {/* Mobile top bar */}
+ <div className="h-6 flex items-center px-1.5 shrink-0">
+ <div className="flex items-center gap-0.5">
+ <div className="shrink-0 [&>button]:pointer-events-none scale-[0.6] origin-center">
+ <Logo size="sm" iconOnly />
+ </div>
+ <Home className="size-2.5 text-muted-foreground shrink-0" />
+ <CalendarDays className="size-2.5 text-muted-foreground shrink-0" />
+ <CircleDot className="size-2.5 text-muted-foreground shrink-0" />
+ </div>
+ <div className="flex-1 flex items-center gap-1 ml-1 overflow-hidden">
+ {config.agents.map((a) => {
+ const isActive = state.activeAgent === a.name.toLowerCase();
+ return (
+ <div
+ key={a.name}
+ className={cn(
+ "shrink-0 size-4 rounded-full overflow-hidden transition-all",
+ isActive && "shadow-[inset_0_0_0_1.5px_hsl(var(--primary))]",
+ )}
+ >
+ <AvatarRenderer config={a.config} size={16} />
+ </div>
+ );
+ })}
+ </div>
+ </div>
+
+ {/* Main card — matches real mobile shell */}
+ <div className="flex-1 min-h-0 mx-1.5 mb-1.5 rounded-xl bg-card/80 backdrop-blur-xl shadow-lg ring-1 ring-border/40 overflow-hidden flex flex-col">
+ {/* Agent nav inside card */}
+ <div className="flex items-center gap-1 px-2 py-1 border-b border-border/40">
+ <span className="size-1 rounded-full bg-green-500" />
+ <span className="text-[9px] font-medium text-foreground">{agent.name}</span>
+ <span className="text-[8px] text-muted-foreground">/ Chat</span>
+ </div>
+
+ {/* Chat */}
+ <div className="flex-1 min-h-0 overflow-hidden px-2.5 py-2">
+ <div className="flex flex-col h-full justify-end gap-2">
+ {visibleSteps.map((step, i) => {
+ const isAgent = step.type === "message";
+ const prevIsAgent = i > 0 && visibleSteps[i - 1].type === "message";
+ const nextIsAgent = i < visibleSteps.length - 1 && visibleSteps[i + 1]?.type === "message";
+
+ let groupPosition: "solo" | "first" | "middle" | "last" = "solo";
+ if (isAgent) {
+ if (!prevIsAgent && nextIsAgent) groupPosition = "first";
+ else if (prevIsAgent && nextIsAgent) groupPosition = "middle";
+ else if (prevIsAgent && !nextIsAgent) groupPosition = "last";
+ }
+
+ const isGroupStart = !prevIsAgent || !isAgent;
+ const spacing = i === 0 ? "" : isGroupStart ? "mt-2.5" : "mt-0.5";
+
+ return (
+ <div key={i} className={`animate-[fade-up_300ms_ease-out_both] ${spacing}`}>
+ {(step.type === "email-in" || step.type === "email-out") && (
+ <div className="rounded border border-border/60 bg-card/80 px-2 py-1.5">
+ <div className="flex items-center gap-1">
+ <span className="text-[8px] text-muted-foreground truncate flex-1">
+ {step.type === "email-in" ? "from " : "to "}
+ {step.address}
+ </span>
+ <span className="text-[7px] font-bold uppercase tracking-wider text-muted-foreground/60 px-0.5 border border-muted-foreground/30 rounded-sm">
+ {step.type === "email-in" ? "In" : "Sent"}
+ </span>
+ </div>
+ <div className="text-[9px] font-medium leading-tight mt-0.5 line-clamp-1">{step.subject}</div>
+ </div>
+ )}
+ {step.type === "user-message" && (
+ <div className="flex justify-end">
+ <MessageBubble variant="user" position="single" className="text-[9px]! leading-tight!">
+ {step.text}
+ </MessageBubble>
+ </div>
+ )}
+ {step.type === "message" && (
+ <div className="flex items-start gap-1">
+ {(groupPosition === "solo" || groupPosition === "first") ? (
+ <div className="size-4 rounded overflow-hidden shrink-0 mt-0.5">
+ <AnimatedAvatar config={agent.config} size={16} isHovered={false} isWorking={state.isWorking} />
+ </div>
+ ) : (
+ <div className="w-4 shrink-0" />
+ )}
+ <div className="min-w-0 flex flex-col">
+ {(groupPosition === "solo" || groupPosition === "first") && (
+ <span className="text-[8px] font-semibold text-foreground leading-none mb-0.5">{agent.name}</span>
+ )}
+ <MessageBubble variant="agent" position={groupPosition === "solo" ? "single" : groupPosition} className="text-[9px]! leading-tight!">
+ {step.markdown ? (
+ <div className="space-y-0.5" dangerouslySetInnerHTML={{ __html: step.markdown }} />
+ ) : (
+ step.text
+ )}
+ </MessageBubble>
+ </div>
+ </div>
+ )}
+ </div>
+ );
+ })}
+ </div>
+ </div>
+
+ {/* Composer */}
+ <div className="px-2 py-1.5 border-t border-border/40">
+ {state.isTyping && (
+ <div className="h-3 flex items-center mb-0.5">
+ <span className="text-[8px] text-muted-foreground">{agent.name} is typing</span>
+ <span className="inline-flex items-center gap-px ml-1">
+ <span className="size-0.5 rounded-full bg-muted-foreground/60 animate-[typing-dot_1.2s_ease-in-out_infinite]" />
+ <span className="size-0.5 rounded-full bg-muted-foreground/60 animate-[typing-dot_1.2s_ease-in-out_0.2s_infinite]" />
+ <span className="size-0.5 rounded-full bg-muted-foreground/60 animate-[typing-dot_1.2s_ease-in-out_0.4s_infinite]" />
+ </span>
+ </div>
+ )}
+ <div className="flex items-center gap-1.5 rounded-full border border-border/60 bg-muted/20 px-2.5 py-1">
+ <span className="flex-1 text-[8px] text-muted-foreground/50">Message...</span>
+ <div className="size-3.5 rounded-full bg-primary flex items-center justify-center">
+ <ArrowUp className="size-2 text-primary-foreground" />
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+}
diff --git a/src/web/src/components/home/demo-pad/demo-terminal.tsx b/src/web/src/components/home/demo-pad/demo-terminal.tsx
new file mode 100644
index 000000000..c6a357165
--- /dev/null
+++ b/src/web/src/components/home/demo-pad/demo-terminal.tsx
@@ -0,0 +1,82 @@
+"use client";
+
+import { cn } from "@/lib/utils";
+
+interface TerminalSpan {
+ text: string;
+ color?: "dim" | "info" | "highlight" | "success" | "keyword" | "string" | "muted";
+}
+
+export interface TerminalLine {
+ text?: string;
+ spans?: TerminalSpan[];
+ level?: "info" | "success" | "dim" | "highlight";
+}
+
+export function DemoTerminal({
+ lines,
+ visibleCount,
+ className,
+}: {
+ lines: TerminalLine[];
+ visibleCount: number;
+ className?: string;
+}) {
+ return (
+ <div
+ className={cn(
+ "flex flex-col h-full bg-neutral-950 text-[11.5px] leading-relaxed font-mono overflow-hidden",
+ className,
+ )}
+ >
+ {/* Terminal output */}
+ <div className="flex-1 px-4 py-3 space-y-1 overflow-hidden flex flex-col justify-end">
+ {lines.slice(0, visibleCount).map((line, i) => {
+ const level = line.level ?? "info";
+ return (
+ <div
+ key={i}
+ className={cn(
+ "animate-[fade-up_200ms_ease-out_both] whitespace-nowrap",
+ !line.spans && level === "info" && "text-neutral-400",
+ !line.spans && level === "dim" && "text-neutral-600",
+ !line.spans && level === "success" && "text-green-400",
+ !line.spans && level === "highlight" && "text-white",
+ )}
+ >
+ {line.spans ? (
+ line.spans.map((span, j) => (
+ <span
+ key={j}
+ className={cn(
+ span.color === "dim" && "text-neutral-600",
+ span.color === "info" && "text-neutral-400",
+ span.color === "highlight" && "text-white",
+ span.color === "success" && "text-green-400",
+ span.color === "keyword" && "text-blue-400",
+ span.color === "string" && "text-amber-300",
+ span.color === "muted" && "text-neutral-500",
+ !span.color && "text-neutral-400",
+ )}
+ >
+ {span.text}
+ </span>
+ ))
+ ) : (
+ line.text
+ )}
+ </div>
+ );
+ })}
+ </div>
+
+ {/* Bottom status */}
+ <div className="px-4 py-2 border-t border-neutral-800 flex items-center gap-2 text-[10px] text-neutral-500">
+ <span className="text-green-400">●</span>
+ <span className="text-neutral-400">alook daemon</span>
+ <span className="text-neutral-700">·</span>
+ <span>1 workspace · 3 runtimes</span>
+ </div>
+ </div>
+ );
+}
diff --git a/src/web/src/components/home/demo-pad/use-case-demo.tsx b/src/web/src/components/home/demo-pad/use-case-demo.tsx
new file mode 100644
index 000000000..63043d60f
--- /dev/null
+++ b/src/web/src/components/home/demo-pad/use-case-demo.tsx
@@ -0,0 +1,32 @@
+"use client";
+
+import { useMemo } from "react";
+import { DemoDashboard, type DashboardState, type DashboardConfig, type AgentInfo } from "./demo-dashboard";
+import { useScriptedTimeline, type TimelineStep } from "./use-scripted-timeline";
+
+export interface UseCaseScript {
+ agents: AgentInfo[];
+ timeline: TimelineStep[];
+ derive: (isStepVisible: (i: number) => boolean) => DashboardState;
+}
+
+export function UseCaseDemo({ script }: { script: UseCaseScript }) {
+ const { visibleCount, isResetting, containerRef, isStepVisible } =
+ useScriptedTimeline({ steps: script.timeline, holdAfterComplete: 3000 });
+
+ const state = useMemo(
+ () => script.derive(isStepVisible),
+ [visibleCount], // eslint-disable-line react-hooks/exhaustive-deps
+ );
+
+ const config: DashboardConfig = useMemo(() => ({ agents: script.agents }), [script.agents]);
+
+ return (
+ <div
+ ref={containerRef}
+ className={`h-full transition-opacity duration-300 ${isResetting ? "opacity-0" : "opacity-100"}`}
+ >
+ <DemoDashboard state={state} config={config} />
+ </div>
+ );
+}
diff --git a/src/web/src/components/home/demo-pad/use-case-scripts.ts b/src/web/src/components/home/demo-pad/use-case-scripts.ts
new file mode 100644
index 000000000..343073c49
--- /dev/null
+++ b/src/web/src/components/home/demo-pad/use-case-scripts.ts
@@ -0,0 +1,377 @@
+import type { DashboardStep, AgentInfo } from "./demo-dashboard";
+import type { UseCaseScript } from "./use-case-demo";
+
+/* ─── Agent Configs ─── */
+const SALES: AgentInfo = { name: "Sales", email: "[email protected]", config: { shape: "hexagon", eye: "dots", nose: "dash", bg: 5 } };
+const PLANNER: AgentInfo = { name: "Planner", email: "[email protected]", config: { shape: "hexagon", eye: "dots", nose: "dash", bg: 5 } };
+const CODER: AgentInfo = { name: "Coder", email: "[email protected]", config: { shape: "task", eye: "happy", nose: "dot", bg: 0 } };
+const REVIEWER: AgentInfo = { name: "Reviewer", email: "[email protected]", config: { shape: "circle", eye: "arches", nose: "smile", bg: 8 } };
+const MARKETER: AgentInfo = { name: "Marketer", email: "[email protected]", config: { shape: "mail", eye: "dots", nose: "smile", bg: 3 } };
+const OPS: AgentInfo = { name: "Ops", email: "[email protected]", config: { shape: "folder", eye: "lines", nose: "dash", bg: 7 } };
+const ASSISTANT: AgentInfo = { name: "Assistant", email: "[email protected]", config: { shape: "bulb", eye: "rings", nose: "oh", bg: 11 } };
+
+/* ═══════════════════════════════════════════
+ 1. Lead Auto Follow-up
+ Sales recalls memory → asks Coder about feature → sends personalized reply
+ ═══════════════════════════════════════════ */
+
+const LEAD_SALES_STEPS: DashboardStep[] = [
+ { type: "email-in", subject: "What's your pricing for a 50-person team?", address: "[email protected]" },
+ { type: "message", text: "I remember this person. AcmeCorp, Series A — asked about API access on Discord 2 weeks ago." },
+ { type: "email-out", subject: "Does our API support bulk user import? Sarah needs this for 50 seats.", address: "[email protected]" },
+ { type: "email-in", subject: "Re: Yes, /api/users/bulk supports CSV import up to 500 users.", address: "[email protected]" },
+ { type: "message", text: "Got confirmation. Sending personalized reply with accurate info." },
+ { type: "email-out", subject: "Re: Pricing — Team plan $29/seat with API access", address: "[email protected]" },
+];
+
+const LEAD_CODER_STEPS: DashboardStep[] = [
+ { type: "email-in", subject: "Does our API support bulk user import? Sarah needs this for 50 seats.", address: "[email protected]" },
+ { type: "message", markdown: "Yes, <code>/api/users/bulk</code> supports CSV import up to 500 users. Shipped last week." },
+ { type: "email-out", subject: "Re: Yes, /api/users/bulk supports CSV import up to 500 users.", address: "[email protected]" },
+];
+
+export const leadFollowupScript: UseCaseScript = {
+ agents: [SALES, CODER],
+ timeline: [
+ { id: "email-in", duration: 2000 },
+ { id: "sales-typing", duration: 1500 },
+ { id: "sales-msg", duration: 1800 },
+ { id: "sales-email-out", duration: 1800 },
+ { id: "switch-coder", duration: 1000 },
+ { id: "coder-email-in", duration: 1500 },
+ { id: "coder-typing", duration: 1200 },
+ { id: "coder-msg", duration: 1500 },
+ { id: "coder-email-out", duration: 1800 },
+ { id: "switch-sales", duration: 1000 },
+ { id: "sales-email-in-2", duration: 1500 },
+ { id: "sales-msg-2", duration: 1800 },
+ { id: "sales-email-out-2", duration: 3000 },
+ ],
+ derive(isStepVisible) {
+ const showCoder = isStepVisible(4) && !isStepVisible(9);
+ if (showCoder) {
+ let vis = 0;
+ if (isStepVisible(5)) vis = 1;
+ if (isStepVisible(7)) vis = 2;
+ if (isStepVisible(8)) vis = 3;
+ return { activeAgent: "coder", steps: LEAD_CODER_STEPS, visibleCount: vis, isTyping: isStepVisible(6) && !isStepVisible(7), isWorking: isStepVisible(5) && !isStepVisible(8) };
+ }
+ let vis = 0;
+ if (isStepVisible(0)) vis = 1;
+ if (isStepVisible(2)) vis = 2;
+ if (isStepVisible(3)) vis = 3;
+ if (isStepVisible(10)) vis = 4;
+ if (isStepVisible(11)) vis = 5;
+ if (isStepVisible(12)) vis = 6;
+ return { activeAgent: "sales", steps: LEAD_SALES_STEPS, visibleCount: vis, isTyping: isStepVisible(1) && !isStepVisible(2), isWorking: isStepVisible(0) && !isStepVisible(12) };
+ },
+};
+
+/* ═══════════════════════════════════════════
+ 2. Monday 8am Briefing
+ Calendar triggers Planner → asks CTO + Marketer → compiles weekly report
+ ═══════════════════════════════════════════ */
+
+const BRIEF_PLANNER_STEPS: DashboardStep[] = [
+ { type: "email-in", subject: "Weekly Briefing — Mon 8:00 AM", address: "[email protected]" },
+ { type: "message", text: "Collecting updates from the team..." },
+ { type: "email-out", subject: "What shipped this week? Any blockers?", address: "[email protected]" },
+ { type: "email-in", subject: "Shipped calendar v2, 3 bug fixes. Blocker: OAuth refresh in staging.", address: "[email protected]" },
+ { type: "email-out", subject: "Marketing status update?", address: "[email protected]" },
+ { type: "email-in", subject: "Blog post live, 2 social campaigns running. Launch copy 80% done.", address: "[email protected]" },
+ { type: "message", markdown: `<strong>Weekly Briefing — May 19</strong><br/><span style="display:inline-block;margin:4px 0"><span style="font-size:18px;font-weight:600">12</span> <span style="font-size:11px;opacity:0.6">Completed</span> · <span style="font-size:18px;font-weight:600;color:#ca8a04">1</span> <span style="font-size:11px;opacity:0.6">Blocker</span> · <span style="font-size:18px;font-weight:600">5</span> <span style="font-size:11px;opacity:0.6">This Week</span></span><br/>🔴 OAuth token refresh failing in staging` },
+ { type: "email-out", subject: "Your Monday Briefing — May 19", address: "[email protected]" },
+];
+
+const BRIEF_CODER_STEPS: DashboardStep[] = [
+ { type: "email-in", subject: "What shipped this week? Any blockers?", address: "[email protected]" },
+ { type: "message", text: "Shipped calendar v2, 3 bug fixes. Blocker: OAuth refresh failing in staging." },
+ { type: "email-out", subject: "Shipped calendar v2, 3 bug fixes. Blocker: OAuth refresh in staging.", address: "[email protected]" },
+];
+
+const BRIEF_MARKETER_STEPS: DashboardStep[] = [
+ { type: "email-in", subject: "Marketing status update?", address: "[email protected]" },
+ { type: "message", text: "Blog post live, 2 social campaigns running. Launch copy 80% done." },
+ { type: "email-out", subject: "Blog post live, 2 social campaigns running. Launch copy 80% done.", address: "[email protected]" },
+];
+
+export const weeklyBriefScript: UseCaseScript = {
+ agents: [PLANNER, CODER, MARKETER],
+ timeline: [
+ { id: "trigger", duration: 2000 },
+ { id: "planner-typing", duration: 1500 },
+ { id: "planner-msg", duration: 1500 },
+ { id: "planner-email-out-coder", duration: 1800 },
+ // Switch to Coder
+ { id: "switch-coder", duration: 1000 },
+ { id: "coder-email-in", duration: 1500 },
+ { id: "coder-typing", duration: 1200 },
+ { id: "coder-msg", duration: 1500 },
+ { id: "coder-email-out", duration: 1800 },
+ // Switch back to Planner briefly
+ { id: "switch-planner-1", duration: 1000 },
+ { id: "planner-email-in-coder", duration: 1200 },
+ { id: "planner-email-out-marketer", duration: 1500 },
+ // Switch to Marketer
+ { id: "switch-marketer", duration: 1000 },
+ { id: "marketer-email-in", duration: 1500 },
+ { id: "marketer-typing", duration: 1200 },
+ { id: "marketer-msg", duration: 1500 },
+ { id: "marketer-email-out", duration: 1800 },
+ // Switch back to Planner for final
+ { id: "switch-planner-2", duration: 1000 },
+ { id: "planner-email-in-marketer", duration: 1200 },
+ { id: "planner-msg-2", duration: 2500 },
+ { id: "planner-email-out-final", duration: 3000 },
+ ],
+ derive(isStepVisible) {
+ const showCoder = isStepVisible(4) && !isStepVisible(9);
+ const showMarketer = isStepVisible(12) && !isStepVisible(17);
+ if (showMarketer) {
+ let vis = 0;
+ if (isStepVisible(13)) vis = 1;
+ if (isStepVisible(15)) vis = 2;
+ if (isStepVisible(16)) vis = 3;
+ return { activeAgent: "marketer", steps: BRIEF_MARKETER_STEPS, visibleCount: vis, isTyping: isStepVisible(14) && !isStepVisible(15), isWorking: isStepVisible(13) && !isStepVisible(16) };
+ }
+ if (showCoder) {
+ let vis = 0;
+ if (isStepVisible(5)) vis = 1;
+ if (isStepVisible(7)) vis = 2;
+ if (isStepVisible(8)) vis = 3;
+ return { activeAgent: "coder", steps: BRIEF_CODER_STEPS, visibleCount: vis, isTyping: isStepVisible(6) && !isStepVisible(7), isWorking: isStepVisible(5) && !isStepVisible(8) };
+ }
+ // Planner view
+ let vis = 0;
+ if (isStepVisible(0)) vis = 1; // calendar trigger
+ if (isStepVisible(2)) vis = 2; // msg "collecting..."
+ if (isStepVisible(3)) vis = 3; // email-out to coder
+ if (isStepVisible(10)) vis = 4; // email-in from coder
+ if (isStepVisible(11)) vis = 5; // email-out to marketer
+ if (isStepVisible(18)) vis = 6; // email-in from marketer
+ if (isStepVisible(19)) vis = 7; // briefing summary
+ if (isStepVisible(20)) vis = 8; // email-out to owner
+ return { activeAgent: "planner", steps: BRIEF_PLANNER_STEPS, visibleCount: vis, isTyping: isStepVisible(1) && !isStepVisible(2), isWorking: isStepVisible(0) && !isStepVisible(20) };
+ },
+};
+
+/* ═══════════════════════════════════════════
+ 3. Daily Store Operations
+ Ops checks inventory → finds low stock → emails Marketer to pause ads
+ ═══════════════════════════════════════════ */
+
+const STORE_OPS_STEPS: DashboardStep[] = [
+ { type: "email-in", subject: "Daily Store Check — 7:00 AM", address: "[email protected]" },
+ { type: "message", markdown: "Checking inventory, traffic, sales...<br/>✓ Check Inventory Levels<br/>✓ Pull Yesterday's Traffic &amp; Sales<br/>✓ Spot Anomalies" },
+ { type: "message", text: "\"Classic Tee\" almost out of stock (3 left). Emailing Marketer to pause that ad." },
+ { type: "email-out", subject: "Pause \"Classic Tee\" Instagram ad — only 3 left in stock", address: "[email protected]" },
+ { type: "email-in", subject: "Re: Paused. Switching budget to Hoodie campaign.", address: "[email protected]" },
+ { type: "email-out", subject: "Daily Store Report — May 23", address: "[email protected]" },
+];
+
+const STORE_MARKETER_STEPS: DashboardStep[] = [
+ { type: "email-in", subject: "Pause \"Classic Tee\" Instagram ad — only 3 left in stock", address: "[email protected]" },
+ { type: "message", text: "Paused. Switching budget to the Hoodie campaign instead." },
+ { type: "email-out", subject: "Re: Paused. Switching budget to Hoodie campaign.", address: "[email protected]" },
+];
+
+export const storeOpsScript: UseCaseScript = {
+ agents: [OPS, MARKETER],
+ timeline: [
+ { id: "trigger", duration: 2000 },
+ { id: "ops-typing", duration: 1500 },
+ { id: "ops-msg", duration: 2200 },
+ { id: "ops-msg-2", duration: 1500 },
+ { id: "ops-email-out", duration: 1800 },
+ { id: "switch-marketer", duration: 1000 },
+ { id: "marketer-email-in", duration: 1500 },
+ { id: "marketer-typing", duration: 1200 },
+ { id: "marketer-msg", duration: 1500 },
+ { id: "marketer-email-out", duration: 1800 },
+ { id: "switch-ops", duration: 1000 },
+ { id: "ops-email-in", duration: 1500 },
+ { id: "ops-final-email", duration: 3000 },
+ ],
+ derive(isStepVisible) {
+ const showMarketer = isStepVisible(5) && !isStepVisible(10);
+ if (showMarketer) {
+ let vis = 0;
+ if (isStepVisible(6)) vis = 1;
+ if (isStepVisible(8)) vis = 2;
+ if (isStepVisible(9)) vis = 3;
+ return { activeAgent: "marketer", steps: STORE_MARKETER_STEPS, visibleCount: vis, isTyping: isStepVisible(7) && !isStepVisible(8), isWorking: isStepVisible(6) && !isStepVisible(9) };
+ }
+ let vis = 0;
+ if (isStepVisible(0)) vis = 1;
+ if (isStepVisible(2)) vis = 2;
+ if (isStepVisible(3)) vis = 3;
+ if (isStepVisible(4)) vis = 4;
+ if (isStepVisible(11)) vis = 5;
+ if (isStepVisible(12)) vis = 6;
+ return { activeAgent: "ops", steps: STORE_OPS_STEPS, visibleCount: vis, isTyping: isStepVisible(1) && !isStepVisible(2), isWorking: isStepVisible(0) && !isStepVisible(12) };
+ },
+};
+
+/* ═══════════════════════════════════════════
+ 4. Bug Report → PR Ready
+ Email → Planner → Coder → Reviewer → PR merged
+ ═══════════════════════════════════════════ */
+
+const BUG_PLANNER_STEPS: DashboardStep[] = [
+ { type: "email-in", subject: "Login page crashes on Safari", address: "[email protected]" },
+ { type: "message", text: "Reproduced it — WebKit flex gap bug in Safari 14. Writing fix plan and emailing Coder." },
+ { type: "email-out", subject: "Replace flex gap with margin-based spacing in login page.", address: "[email protected]" },
+ { type: "email-in", subject: "Re: Fixed. PR #142 ready for review.", address: "[email protected]" },
+ { type: "email-in", subject: "Re: All tests pass. Approved.", address: "[email protected]" },
+ { type: "email-out", subject: "Re: Login page crashes on Safari — Fixed in PR #142", address: "[email protected]" },
+];
+
+const BUG_CODER_STEPS: DashboardStep[] = [
+ { type: "email-in", subject: "Replace flex gap with margin-based spacing in login page.", address: "[email protected]" },
+ { type: "message", text: "Fixed. PR opened. Emailing Reviewer." },
+ { type: "email-out", subject: "PR #142 ready. Safari flex gap fix.", address: "[email protected]" },
+ { type: "email-out", subject: "Re: Fixed. PR #142 ready for review.", address: "[email protected]" },
+];
+
+const BUG_REVIEWER_STEPS: DashboardStep[] = [
+ { type: "email-in", subject: "PR #142 ready. Safari flex gap fix.", address: "[email protected]" },
+ { type: "message", text: "All tests pass. Approved." },
+ { type: "email-out", subject: "Re: All tests pass. Approved.", address: "[email protected]" },
+];
+
+export const bugToPrScript: UseCaseScript = {
+ agents: [PLANNER, CODER, REVIEWER],
+ timeline: [
+ { id: "email-in", duration: 2000 },
+ { id: "planner-typing", duration: 1500 },
+ { id: "planner-msg", duration: 1800 },
+ { id: "planner-email-out", duration: 1800 },
+ { id: "switch-coder", duration: 1000 },
+ { id: "coder-email-in", duration: 1500 },
+ { id: "coder-typing", duration: 1200 },
+ { id: "coder-msg", duration: 1500 },
+ { id: "coder-email-out-1", duration: 1200 },
+ { id: "coder-email-out-2", duration: 1500 },
+ { id: "switch-reviewer", duration: 1000 },
+ { id: "reviewer-email-in", duration: 1500 },
+ { id: "reviewer-typing", duration: 1200 },
+ { id: "reviewer-msg", duration: 1500 },
+ { id: "reviewer-email-out", duration: 1800 },
+ { id: "switch-planner", duration: 1000 },
+ { id: "planner-email-in-1", duration: 1200 },
+ { id: "planner-email-in-2", duration: 1200 },
+ { id: "planner-email-out-2", duration: 3000 },
+ ],
+ derive(isStepVisible) {
+ const showCoder = isStepVisible(4) && !isStepVisible(10);
+ const showReviewer = isStepVisible(10) && !isStepVisible(15);
+ if (showReviewer) {
+ let vis = 0;
+ if (isStepVisible(11)) vis = 1;
+ if (isStepVisible(13)) vis = 2;
+ if (isStepVisible(14)) vis = 3;
+ return { activeAgent: "reviewer", steps: BUG_REVIEWER_STEPS, visibleCount: vis, isTyping: isStepVisible(12) && !isStepVisible(13), isWorking: isStepVisible(11) && !isStepVisible(14) };
+ }
+ if (showCoder) {
+ let vis = 0;
+ if (isStepVisible(5)) vis = 1;
+ if (isStepVisible(7)) vis = 2;
+ if (isStepVisible(8)) vis = 3;
+ if (isStepVisible(9)) vis = 4;
+ return { activeAgent: "coder", steps: BUG_CODER_STEPS, visibleCount: vis, isTyping: isStepVisible(6) && !isStepVisible(7), isWorking: isStepVisible(5) && !isStepVisible(9) };
+ }
+ let vis = 0;
+ if (isStepVisible(0)) vis = 1;
+ if (isStepVisible(2)) vis = 2;
+ if (isStepVisible(3)) vis = 3;
+ if (isStepVisible(16)) vis = 4;
+ if (isStepVisible(17)) vis = 5;
+ if (isStepVisible(18)) vis = 6;
+ return { activeAgent: "planner", steps: BUG_PLANNER_STEPS, visibleCount: vis, isTyping: isStepVisible(1) && !isStepVisible(2), isWorking: isStepVisible(0) && !isStepVisible(18) };
+ },
+};
+
+/* ═══════════════════════════════════════════
+ 5. "Post an update"
+ User → Marketer asks Coder what shipped → drafts + publishes
+ ═══════════════════════════════════════════ */
+
+const POST_MARKETER_STEPS: DashboardStep[] = [
+ { type: "user-message", text: "Post something about today's release" },
+ { type: "message", text: "I need to know what shipped today. Emailing Coder." },
+ { type: "email-out", subject: "What did we ship today? I need to write a post.", address: "[email protected]" },
+ { type: "email-in", subject: "Re: Shipped calendar recurring events, email forwarding, and 3 bug fixes.", address: "[email protected]" },
+ { type: "message", markdown: "Got it. Drafting and publishing now.<br/><br/>✓ Posted to X: <em>\"Just shipped: recurring calendar events, email forwarding, and squashed 3 bugs. Your AI team never sleeps.\"</em>" },
+];
+
+const POST_CODER_STEPS: DashboardStep[] = [
+ { type: "email-in", subject: "What did we ship today? I need to write a post.", address: "[email protected]" },
+ { type: "message", text: "Shipped calendar recurring events, email forwarding, and 3 bug fixes." },
+ { type: "email-out", subject: "Re: Shipped calendar recurring events, email forwarding, and 3 bug fixes.", address: "[email protected]" },
+];
+
+export const postUpdateScript: UseCaseScript = {
+ agents: [MARKETER, CODER],
+ timeline: [
+ { id: "user-asks", duration: 2000 },
+ { id: "marketer-typing", duration: 1500 },
+ { id: "marketer-msg", duration: 1500 },
+ { id: "marketer-email-out", duration: 1800 },
+ { id: "switch-coder", duration: 1000 },
+ { id: "coder-email-in", duration: 1500 },
+ { id: "coder-typing", duration: 1200 },
+ { id: "coder-msg", duration: 1500 },
+ { id: "coder-email-out", duration: 1800 },
+ { id: "switch-marketer", duration: 1000 },
+ { id: "marketer-email-in", duration: 1500 },
+ { id: "marketer-msg-2", duration: 3000 },
+ ],
+ derive(isStepVisible) {
+ const showCoder = isStepVisible(4) && !isStepVisible(9);
+ if (showCoder) {
+ let vis = 0;
+ if (isStepVisible(5)) vis = 1;
+ if (isStepVisible(7)) vis = 2;
+ if (isStepVisible(8)) vis = 3;
+ return { activeAgent: "coder", steps: POST_CODER_STEPS, visibleCount: vis, isTyping: isStepVisible(6) && !isStepVisible(7), isWorking: isStepVisible(5) && !isStepVisible(8) };
+ }
+ let vis = 0;
+ if (isStepVisible(0)) vis = 1;
+ if (isStepVisible(2)) vis = 2;
+ if (isStepVisible(3)) vis = 3;
+ if (isStepVisible(10)) vis = 4;
+ if (isStepVisible(11)) vis = 5;
+ return { activeAgent: "marketer", steps: POST_MARKETER_STEPS, visibleCount: vis, isTyping: isStepVisible(1) && !isStepVisible(2), isWorking: isStepVisible(0) && !isStepVisible(11) };
+ },
+};
+
+/* ═══════════════════════════════════════════
+ 6. "Fill this form"
+ User drops PDF → Assistant recalls from memory → fills all fields
+ ═══════════════════════════════════════════ */
+
+const FILL_STEPS: DashboardStep[] = [
+ { type: "user-message", text: "Fill this for me", attachment: "YC_Application_W27.pdf" },
+ { type: "message", text: "I have most of this from memory. Let me check what I know..." },
+ { type: "message", markdown: `<span style="font-size:10px;text-transform:uppercase;letter-spacing:0.05em;opacity:0.6">Recalled from memory</span><br/><span style="color:#10b981">✓</span> Company name, address, EIN<br/><span style="color:#10b981">✓</span> Founder name, email, background<br/><span style="color:#10b981">✓</span> Product description, tech stack<br/><span style="color:#10b981">✓</span> Revenue, team size, launch date` },
+ { type: "message", markdown: `All <strong>31 fields</strong> filled from memory. No questions needed.<br/><br/><span style="display:inline-flex;align-items:center;gap:4px;background:var(--muted);border:1px solid var(--border);border-radius:6px;padding:4px 10px"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14,2 14,8 20,8"/></svg><span style="font-size:13px;font-weight:500">YC_Application_W27_filled.pdf</span></span>` },
+];
+
+export const fillFormScript: UseCaseScript = {
+ agents: [ASSISTANT],
+ timeline: [
+ { id: "user-drops", duration: 2000 },
+ { id: "agent-typing", duration: 1800 },
+ { id: "agent-msg-1", duration: 2000 },
+ { id: "agent-msg-2", duration: 2500 },
+ { id: "agent-msg-3", duration: 3000 },
+ ],
+ derive(isStepVisible) {
+ let vis = 0;
+ if (isStepVisible(0)) vis = 1;
+ if (isStepVisible(2)) vis = 2;
+ if (isStepVisible(3)) vis = 3;
+ if (isStepVisible(4)) vis = 4;
+ return { activeAgent: "assistant", steps: FILL_STEPS, visibleCount: vis, isTyping: isStepVisible(1) && !isStepVisible(2), isWorking: isStepVisible(0) && !isStepVisible(4) };
+ },
+};
diff --git a/src/web/src/components/home/demo-pad/use-scripted-timeline.ts b/src/web/src/components/home/demo-pad/use-scripted-timeline.ts
new file mode 100644
index 000000000..d8b0c8334
--- /dev/null
+++ b/src/web/src/components/home/demo-pad/use-scripted-timeline.ts
@@ -0,0 +1,109 @@
+"use client";
+
+import { useCallback, useEffect, useRef, useState } from "react";
+
+export interface TimelineStep {
+ id: string;
+ duration: number; // ms to hold this step visible before advancing
+}
+
+interface UseScriptedTimelineOptions {
+ steps: TimelineStep[];
+ holdAfterComplete?: number; // ms to hold after all steps shown (default 4000)
+ resetDuration?: number; // ms for fade-out before restart (default 300)
+}
+
+export function useScriptedTimeline({
+ steps,
+ holdAfterComplete = 4000,
+ resetDuration = 300,
+}: UseScriptedTimelineOptions) {
+ const [visibleCount, setVisibleCount] = useState(0);
+ const [isResetting, setIsResetting] = useState(false);
+ const [isActive, setIsActive] = useState(false);
+ const timerRef = useRef<ReturnType<typeof setTimeout> | null>(null);
+ const reducedMotionRef = useRef(false);
+
+ useEffect(() => {
+ const mq = window.matchMedia("(prefers-reduced-motion: reduce)");
+ reducedMotionRef.current = mq.matches;
+ if (mq.matches) {
+ setVisibleCount(steps.length);
+ }
+ const handler = (e: MediaQueryListEvent) => {
+ reducedMotionRef.current = e.matches;
+ if (e.matches) {
+ setVisibleCount(steps.length);
+ setIsResetting(false);
+ }
+ };
+ mq.addEventListener("change", handler);
+ return () => mq.removeEventListener("change", handler);
+ }, [steps.length]);
+
+ const clearTimer = useCallback(() => {
+ if (timerRef.current !== null) {
+ clearTimeout(timerRef.current);
+ timerRef.current = null;
+ }
+ }, []);
+
+ useEffect(() => {
+ if (!isActive || reducedMotionRef.current) {
+ clearTimer();
+ return;
+ }
+
+ setVisibleCount(0);
+ setIsResetting(false);
+
+ function showNext(index: number) {
+ if (index >= steps.length) {
+ // All steps shown — hold then reset
+ timerRef.current = setTimeout(() => {
+ setIsResetting(true);
+ timerRef.current = setTimeout(() => {
+ setIsResetting(false);
+ setVisibleCount(0);
+ // Restart after a brief pause
+ timerRef.current = setTimeout(() => showNext(0), 200);
+ }, resetDuration);
+ }, holdAfterComplete);
+ return;
+ }
+
+ setVisibleCount(index + 1);
+ timerRef.current = setTimeout(
+ () => showNext(index + 1),
+ steps[index].duration,
+ );
+ }
+
+ // Initial delay before starting
+ timerRef.current = setTimeout(() => showNext(0), 500);
+
+ return clearTimer;
+ }, [isActive, steps, holdAfterComplete, resetDuration, clearTimer]);
+
+ const containerRef = useRef<HTMLDivElement>(null);
+
+ useEffect(() => {
+ const el = containerRef.current;
+ if (!el) return;
+ const observer = new IntersectionObserver(
+ ([entry]) => {
+ setIsActive(entry.isIntersecting);
+ },
+ { threshold: 0.3 },
+ );
+ observer.observe(el);
+ return () => observer.disconnect();
+ }, []);
+
+ return {
+ visibleCount,
+ isResetting,
+ containerRef,
+ isStepVisible: (index: number) => index < visibleCount,
+ };
+}
diff --git a/src/web/src/components/home/demo-window.tsx b/src/web/src/components/home/demo-window.tsx
new file mode 100644
index 000000000..54927ac91
--- /dev/null
+++ b/src/web/src/components/home/demo-window.tsx
@@ -0,0 +1,33 @@
+import type { ReactNode } from "react";
+import { cn } from "@/lib/utils";
+
+export function DemoWindow({
+ title,
+ children,
+ className,
+}: {
+ title?: string;
+ children: ReactNode;
+ className?: string;
+}) {
+ return (
+ <div
+ className={cn(
+ "rounded-xl border border-border/60 bg-background shadow-lg overflow-hidden flex flex-col dark",
+ className,
+ )}
+ >
+ <div className="flex items-center gap-1.5 px-3 py-2 border-b border-border/40 bg-muted/30 shrink-0">
+ <span className="size-2.5 rounded-full bg-red-400/80" />
+ <span className="size-2.5 rounded-full bg-yellow-400/80" />
+ <span className="size-2.5 rounded-full bg-green-400/80" />
+ {title && (
+ <span className="ml-2 text-[11px] text-muted-foreground font-medium">
+ {title}
+ </span>
+ )}
+ </div>
+ <div className="relative flex-1 min-h-0">{children}</div>
+ </div>
+ );
+}
diff --git a/src/web/src/components/home/use-cases-section.tsx b/src/web/src/components/home/use-cases-section.tsx
index b6bbe68f0..f044cb8e3 100644
--- a/src/web/src/components/home/use-cases-section.tsx
+++ b/src/web/src/components/home/use-cases-section.tsx
@@ -1,610 +1,24 @@
"use client";
-import { useId, useRef, useState } from "react";
+import { useRef, useState } from "react";
import gsap from "gsap";
import { useGSAP } from "@gsap/react";
import { ScrollTrigger } from "gsap/ScrollTrigger";
-import { Mail, Calendar, FileText, MessageSquare, Check, DollarSign, BarChart3, Bug, Brain } from "lucide-react";
+import { Calendar, DollarSign, BarChart3, Bug, MessageSquare, Brain } from "lucide-react";
+import { DemoWindow } from "./demo-window";
+import { UseCaseDemo } from "./demo-pad/use-case-demo";
+import {
+ leadFollowupScript,
+ weeklyBriefScript,
+ storeOpsScript,
+ bugToPrScript,
+ postUpdateScript,
+ fillFormScript,
+} from "./demo-pad/use-case-scripts";
+import type { UseCaseScript } from "./demo-pad/use-case-demo";
gsap.registerPlugin(ScrollTrigger);
-/* ─────────────────────────────────────────────
- Sequential animation wrapper
- ───────────────────────────────────────────── */
-
-function AnimatedItem({ delay, children }: { delay: number; children: React.ReactNode }) {
- return (
- <div
- className="usecase-anim-item"
- style={{ animationDelay: `${delay}ms` }}
- >
- {children}
- </div>
- );
-}
-
-/* ─────────────────────────────────────────────
- Demo UI Primitives (matching real product)
- ───────────────────────────────────────────── */
-
-interface AvatarConfig {
- gradient: [string, string, string];
- faceColor: string;
- shape: "circle" | "rounded" | "hexagon" | "mail" | "book";
-}
-
-const AGENT_AVATARS: Record<string, AvatarConfig> = {
- A: { gradient: ["#5eead4", "#14b8a6", "#0d9488"], faceColor: "#134e4a", shape: "circle" },
- P: { gradient: ["#a5b4fc", "#6366f1", "#3730a3"], faceColor: "#312e81", shape: "hexagon" },
- C: { gradient: ["#93c5fd", "#3b82f6", "#1d4ed8"], faceColor: "#1e3a5f", shape: "rounded" },
- R: { gradient: ["#fdba74", "#f97316", "#c2410c"], faceColor: "#7c2d12", shape: "book" },
- M: { gradient: ["#fda4af", "#f472b6", "#be185d"], faceColor: "#831843", shape: "mail" },
-};
-
-function DemoAvatar({ letter }: { letter: string }) {
- const config = AGENT_AVATARS[letter] || AGENT_AVATARS.A;
- const gradId = useId();
-
- return (
- <svg viewBox="0 0 200 200" className="size-6 shrink-0 rounded-xl">
- <defs>
- <linearGradient id={gradId} x1="0%" y1="0%" x2="100%" y2="100%">
- <stop offset="0%" stopColor={config.gradient[0]} />
- <stop offset="50%" stopColor={config.gradient[1]} />
- <stop offset="100%" stopColor={config.gradient[2]} />
- </linearGradient>
- </defs>
- <rect width="200" height="200" fill={`url(#${gradId})`} />
- {config.shape === "circle" && <circle cx="100" cy="100" r="66" fill="white" stroke="rgba(255,255,255,0.95)" strokeWidth="3.5" />}
- {config.shape === "rounded" && <rect x="30" y="30" width="140" height="140" rx="32" fill="white" stroke="rgba(255,255,255,0.95)" strokeWidth="3.5" />}
- {config.shape === "hexagon" && <path d="M100 32 C108 32 114 35 120 39 L155 60 C161 64 165 70 165 78 L165 122 C165 130 161 136 155 140 L120 161 C114 165 108 168 100 168 C92 168 86 165 80 161 L45 140 C39 136 35 130 35 122 L35 78 C35 70 39 64 45 60 L80 39 C86 35 92 32 100 32 Z" fill="white" stroke="rgba(255,255,255,0.95)" strokeWidth="3.5" />}
- {config.shape === "mail" && <rect x="28" y="54" width="144" height="92" rx="46" fill="white" stroke="rgba(255,255,255,0.95)" strokeWidth="3.5" />}
- {config.shape === "book" && <path d="M42 162 L42 88 C42 54 68 34 100 34 C132 34 158 54 158 88 L158 162 C158 166 154 170 150 170 L50 170 C46 170 42 166 42 162 Z" fill="white" stroke="rgba(255,255,255,0.95)" strokeWidth="3.5" />}
- {/* Simple face: two dots for eyes */}
- <circle cx="82" cy="95" r="6" fill={config.faceColor} />
- <circle cx="118" cy="95" r="6" fill={config.faceColor} />
- <path d="M88 115 Q100 125 112 115" fill="none" stroke={config.faceColor} strokeWidth="3" strokeLinecap="round" />
- </svg>
- );
-}
-
-function DemoStatusDot({ status }: { status: "online" | "working" }) {
- return (
- <span className={`size-1.5 rounded-full shrink-0 ${status === "working" ? "bg-green-500 animate-pulse" : "bg-green-500"}`} />
- );
-}
-
-/* ─────────────────────────────────────────────
- Demo Scene 1: Bug Report → PR Ready
- Email arrives → Agent chat → Issue created → PR reviewed
- ───────────────────────────────────────────── */
-
-function GitHubIcon({ className }: { className?: string }) {
- return (
- <svg viewBox="0 0 24 24" fill="currentColor" className={className}>
- <path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" />
- </svg>
- );
-}
-
-function DemoScene1() {
- return (
- <div className="flex flex-col gap-3 p-4 h-full">
- {/* 1. Bug report email arrives */}
- <AnimatedItem delay={0}>
- <div className="w-full rounded-md border border-border/60 bg-muted/50 text-sm px-3 py-2 flex items-center gap-2">
- <Mail className="h-4 w-4 shrink-0 text-muted-foreground" />
- <span className="text-xs text-muted-foreground">New email from <span className="font-medium text-foreground">[email protected]</span>: &ldquo;Login page crashes on Safari&rdquo;</span>
- </div>
- </AnimatedItem>
-
- {/* 2. Planner analyzes and writes plan */}
- <AnimatedItem delay={400}>
- <div className="flex items-start gap-2">
- <DemoAvatar letter="P" />
- <div className="flex-1 min-w-0">
- <div className="flex items-center gap-1.5 mb-1">
- <span className="text-xs font-medium">Planner</span>
- <DemoStatusDot status="working" />
- </div>
- <div className="text-sm text-foreground">Reproduced it — WebKit flex gap bug in Safari 14. Writing fix plan and emailing Coder.</div>
- </div>
- </div>
- </AnimatedItem>
-
- {/* 3. Planner → Coder email */}
- <AnimatedItem delay={800}>
- <div className="w-full rounded-md border border-border/60 bg-muted/50 text-sm px-3 py-2 flex items-center gap-2">
- <Mail className="h-4 w-4 shrink-0 text-muted-foreground" />
- <span className="text-xs text-muted-foreground"><span className="font-medium text-foreground">Planner → Coder:</span> Replace flex gap with margin-based spacing in login page. See repro + plan attached.</span>
- </div>
- </AnimatedItem>
-
- {/* 4. Coder implements and emails Reviewer */}
- <AnimatedItem delay={1200}>
- <div className="flex items-start gap-2">
- <DemoAvatar letter="C" />
- <div className="flex-1 min-w-0">
- <div className="flex items-center gap-1.5 mb-1">
- <span className="text-xs font-medium">Coder</span>
- <DemoStatusDot status="working" />
- </div>
- <div className="text-sm text-foreground">Fixed. PR opened. Emailing Reviewer.</div>
- </div>
- </div>
- </AnimatedItem>
-
- {/* 5. Coder → Reviewer email */}
- <AnimatedItem delay={1600}>
- <div className="w-full rounded-md border border-border/60 bg-muted/50 text-sm px-3 py-2 flex items-center gap-2">
- <Mail className="h-4 w-4 shrink-0 text-muted-foreground" />
- <span className="text-xs text-muted-foreground"><span className="font-medium text-foreground">Coder → Reviewer:</span> PR #142 ready. Safari flex gap fix.</span>
- </div>
- </AnimatedItem>
-
- {/* 6. Reviewer approves */}
- <AnimatedItem delay={2000}>
- <div className="flex items-start gap-2">
- <DemoAvatar letter="R" />
- <div className="flex-1 min-w-0">
- <div className="flex items-center gap-1.5 mb-1">
- <span className="text-xs font-medium">Reviewer</span>
- </div>
- <div className="text-sm text-foreground">All tests pass. Approved.</div>
- </div>
- </div>
- </AnimatedItem>
-
- {/* 7. GitHub PR result */}
- <AnimatedItem delay={2400}>
- <div className="rounded-lg border border-border/60 bg-background/75 p-3">
- <div className="flex items-center gap-1.5">
- <GitHubIcon className="size-3.5 shrink-0" />
- <span className="text-xs font-medium">#142 Fix Safari flex gap</span>
- <span className="ml-auto rounded bg-green-500/10 px-1.5 py-0.5 text-[10px] font-medium text-green-600">Approved</span>
- </div>
- </div>
- </AnimatedItem>
- </div>
- );
-}
-
-/* ─────────────────────────────────────────────
- Demo Scene 2: "Post an update" → Published
- ───────────────────────────────────────────── */
-
-function XIcon({ className }: { className?: string }) {
- return (
- <svg viewBox="0 0 24 24" fill="currentColor" className={className}>
- <path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" />
- </svg>
- );
-}
-
-function DemoScene2() {
- return (
- <div className="flex flex-col gap-3 p-4 h-full">
- {/* User request */}
- <AnimatedItem delay={0}>
- <div className="flex justify-end">
- <div className="max-w-[80%] rounded-lg px-4 py-2 bg-primary text-primary-foreground text-sm">
- Post something about today&apos;s release
- </div>
- </div>
- </AnimatedItem>
-
- {/* Marketer thinking */}
- <AnimatedItem delay={400}>
- <div className="flex items-start gap-2">
- <DemoAvatar letter="M" />
- <div className="flex-1 min-w-0">
- <div className="flex items-center gap-1.5 mb-1">
- <span className="text-xs font-medium">Marketer</span>
- <DemoStatusDot status="working" />
- </div>
- <div className="text-sm text-foreground">I need to know what shipped today. Emailing Coder.</div>
- </div>
- </div>
- </AnimatedItem>
-
- {/* Marketer → Coder email */}
- <AnimatedItem delay={800}>
- <div className="w-full rounded-md border border-border/60 bg-muted/50 px-3 py-2 flex items-center gap-2">
- <Mail className="h-4 w-4 shrink-0 text-muted-foreground" />
- <span className="text-xs text-muted-foreground"><span className="font-medium text-foreground">Marketer → Coder:</span> What did we ship today? I need to write a post.</span>
- </div>
- </AnimatedItem>
-
- {/* Coder → Marketer reply */}
- <AnimatedItem delay={1200}>
- <div className="w-full rounded-md border border-border/60 bg-muted/50 px-3 py-2 flex items-center gap-2">
- <Mail className="h-4 w-4 shrink-0 text-muted-foreground" />
- <span className="text-xs text-muted-foreground"><span className="font-medium text-foreground">Coder → Marketer:</span> Shipped calendar recurring events, email forwarding, and 3 bug fixes.</span>
- </div>
- </AnimatedItem>
-
- {/* Marketer drafts and publishes */}
- <AnimatedItem delay={1600}>
- <div className="flex items-start gap-2">
- <DemoAvatar letter="M" />
- <div className="flex-1 min-w-0">
- <span className="text-xs font-medium">Marketer</span>
- <div className="text-sm text-foreground mt-1">Got it. Drafting and publishing now.</div>
- </div>
- </div>
- </AnimatedItem>
-
- {/* Result: X post card */}
- <AnimatedItem delay={2000}>
- <div className="rounded-lg border border-border/60 bg-background/75 p-3">
- <div className="flex items-center gap-1.5 mb-2">
- <XIcon className="size-3.5 shrink-0" />
- <span className="text-xs font-medium">Posted to X</span>
- <span className="ml-auto text-[10px] text-muted-foreground">Just now</span>
- </div>
- <p className="text-sm text-foreground">&ldquo;Just shipped: recurring calendar events, email forwarding, and squashed 3 bugs. Your AI team never sleeps.&rdquo;</p>
- </div>
- </AnimatedItem>
- </div>
- );
-}
-
-/* ─────────────────────────────────────────────
- Demo Scene 3: Monday 8am Briefing
- ───────────────────────────────────────────── */
-
-function DemoScene3() {
- return (
- <div className="flex flex-col gap-3 p-4 h-full">
- {/* Calendar trigger */}
- <AnimatedItem delay={0}>
- <div className="w-full rounded-md border border-border/60 bg-muted/50 text-muted-foreground text-sm px-3 py-2 flex items-center gap-2">
- <Calendar className="h-4 w-4 shrink-0" />
- <span className="text-xs">Calendar event triggered: <span className="font-medium text-foreground">Weekly Briefing</span> · Mon 8:00 AM</span>
- </div>
- </AnimatedItem>
-
- {/* Planner emails CTO and Marketer */}
- <AnimatedItem delay={400}>
- <div className="flex items-start gap-2">
- <DemoAvatar letter="P" />
- <div className="flex-1 min-w-0">
- <div className="flex items-center gap-1.5 mb-1">
- <span className="text-xs font-medium">Planner</span>
- <DemoStatusDot status="working" />
- </div>
- <div className="text-sm text-foreground">Collecting updates from the team...</div>
- </div>
- </div>
- </AnimatedItem>
-
- {/* CTO replies */}
- <AnimatedItem delay={800}>
- <div className="w-full rounded-md border border-border/60 bg-muted/50 text-sm px-3 py-2 flex items-center gap-2">
- <Mail className="h-4 w-4 shrink-0 text-muted-foreground" />
- <span className="text-xs text-muted-foreground"><span className="font-medium text-foreground">CTO → Planner:</span> Shipped calendar v2, 3 bug fixes. Blocker: OAuth refresh in staging.</span>
- </div>
- </AnimatedItem>
-
- {/* Marketer → Planner */}
- <AnimatedItem delay={1100}>
- <div className="w-full rounded-md border border-border/60 bg-muted/50 text-sm px-3 py-2 flex items-center gap-2">
- <Mail className="h-4 w-4 shrink-0 text-muted-foreground" />
- <span className="text-xs text-muted-foreground"><span className="font-medium text-foreground">Marketer → Planner:</span> Blog post live, 2 social campaigns running. Launch copy 80% done.</span>
- </div>
- </AnimatedItem>
-
- {/* Mock dashboard output */}
- <AnimatedItem delay={1000}>
- <div className="rounded-lg border border-border/60 bg-background/75 overflow-hidden">
- {/* Dashboard header */}
- <div className="px-3 py-2 border-b border-border/40 flex items-center gap-2">
- <span className="text-[11px] font-medium">Weekly Briefing — May 19</span>
- </div>
- {/* Stats row */}
- <div className="grid grid-cols-3 gap-px bg-border/40">
- <div className="bg-background/75 px-3 py-2 text-center">
- <div className="text-lg font-semibold text-foreground">12</div>
- <div className="text-[10px] text-muted-foreground">Completed</div>
- </div>
- <div className="bg-background/75 px-3 py-2 text-center">
- <div className="text-lg font-semibold text-yellow-600">1</div>
- <div className="text-[10px] text-muted-foreground">Blockers</div>
- </div>
- <div className="bg-background/75 px-3 py-2 text-center">
- <div className="text-lg font-semibold text-foreground">5</div>
- <div className="text-[10px] text-muted-foreground">This Week</div>
- </div>
- </div>
- {/* Priority list */}
- <div className="px-3 py-2 space-y-1.5">
- <div className="flex items-center gap-2">
- <span className="size-1.5 rounded-full bg-red-500 shrink-0" />
- <span className="text-xs text-foreground">OAuth token refresh failing in staging</span>
- </div>
- <div className="flex items-center gap-2">
- <span className="size-1.5 rounded-full bg-foreground/30 shrink-0" />
- <span className="text-xs text-foreground">Ship calendar v2</span>
- </div>
- <div className="flex items-center gap-2">
- <span className="size-1.5 rounded-full bg-foreground/30 shrink-0" />
- <span className="text-xs text-foreground">Finalize launch copy</span>
- </div>
- </div>
- </div>
- </AnimatedItem>
- </div>
- );
-}
-
-/* ─────────────────────────────────────────────
- Demo Scene 4: Fill Form (Memory-powered)
- ───────────────────────────────────────────── */
-
-function DemoScene4() {
- return (
- <div className="flex flex-col gap-3 p-4 h-full">
- {/* User drops form */}
- <AnimatedItem delay={0}>
- <div className="flex justify-end">
- <div className="max-w-[80%] rounded-lg px-4 py-2 bg-primary text-primary-foreground text-sm">
- Fill this for me
- <div className="flex items-center gap-1 mt-1.5 rounded-md bg-primary-foreground/10 border border-primary-foreground/20 px-2 py-0.5">
- <FileText className="size-3 shrink-0" />
- <span className="text-xs opacity-80">YC_Application_W27.pdf</span>
- </div>
- </div>
- </div>
- </AnimatedItem>
-
- {/* Assistant recalls from memory */}
- <AnimatedItem delay={400}>
- <div className="flex items-start gap-2">
- <DemoAvatar letter="A" />
- <div className="flex-1 min-w-0">
- <div className="flex items-center gap-1.5 mb-1">
- <span className="text-xs font-medium">Assistant</span>
- <DemoStatusDot status="working" />
- </div>
- <div className="text-sm text-foreground">I have most of this from memory. Let me check what I know...</div>
- </div>
- </div>
- </AnimatedItem>
-
- {/* Memory recall visualization */}
- <AnimatedItem delay={800}>
- <div className="rounded-lg border border-border/60 bg-background/75 p-3">
- <div className="flex items-center gap-1.5 mb-2">
- <span className="text-[10px] font-medium text-muted-foreground uppercase tracking-wider">Recalled from memory</span>
- </div>
- <div className="space-y-1 text-xs text-foreground">
- <div className="flex items-center gap-2">
- <Check className="size-3 text-emerald-500 shrink-0" />
- <span>Company name, address, EIN</span>
- </div>
- <div className="flex items-center gap-2">
- <Check className="size-3 text-emerald-500 shrink-0" />
- <span>Founder name, email, background</span>
- </div>
- <div className="flex items-center gap-2">
- <Check className="size-3 text-emerald-500 shrink-0" />
- <span>Product description, tech stack</span>
- </div>
- <div className="flex items-center gap-2">
- <Check className="size-3 text-emerald-500 shrink-0" />
- <span>Revenue, team size, launch date</span>
- </div>
- </div>
- </div>
- </AnimatedItem>
-
- {/* Result */}
- <AnimatedItem delay={1300}>
- <div className="flex items-start gap-2">
- <DemoAvatar letter="A" />
- <div className="flex-1 min-w-0">
- <div className="text-sm text-foreground mb-1.5">All 31 fields filled from memory. No questions needed.</div>
- <div className="inline-flex items-center gap-1 rounded-md bg-muted border border-border/60 px-2.5 py-1.5">
- <FileText className="size-3.5 text-muted-foreground" />
- <span className="text-xs font-medium">YC_Application_W27_filled.pdf</span>
- </div>
- </div>
- </div>
- </AnimatedItem>
- </div>
- );
-}
-
-
-/* ─────────────────────────────────────────────
- Demo Scene 6: Daily Store Operations
- ───────────────────────────────────────────── */
-
-function DemoScene6() {
- return (
- <div className="flex flex-col gap-3 p-4 h-full">
- {/* Calendar trigger */}
- <AnimatedItem delay={0}>
- <div className="w-full rounded-md border border-border/60 bg-muted/50 text-sm px-3 py-2 flex items-center gap-2">
- <Calendar className="h-4 w-4 shrink-0 text-muted-foreground" />
- <span className="text-xs text-muted-foreground">Scheduled task triggered: <span className="font-medium text-foreground">Daily Store Check</span> · 7:00 AM</span>
- </div>
- </AnimatedItem>
-
- {/* Ops agent working */}
- <AnimatedItem delay={400}>
- <div className="flex items-start gap-2">
- <DemoAvatar letter="P" />
- <div className="flex-1 min-w-0">
- <div className="flex items-center gap-1.5 mb-1">
- <span className="text-xs font-medium">Ops</span>
- <DemoStatusDot status="working" />
- </div>
- <div className="flex flex-col gap-0.5 text-sm text-muted-foreground">
- <div className="flex items-center gap-2 py-0.5">
- <Check className="size-3 text-emerald-500" />
- <span className="text-foreground">Check Inventory Levels</span>
- </div>
- <div className="flex items-center gap-2 py-0.5">
- <Check className="size-3 text-emerald-500" />
- <span className="text-foreground">Pull Yesterday&apos;s Traffic &amp; Sales</span>
- </div>
- <div className="flex items-center gap-2 py-0.5">
- <Check className="size-3 text-emerald-500" />
- <span className="text-foreground">Spot Anomalies</span>
- </div>
- </div>
- </div>
- </div>
- </AnimatedItem>
-
- {/* Ops finds low stock, emails Marketer to pause ads */}
- <AnimatedItem delay={1000}>
- <div className="flex items-start gap-2">
- <DemoAvatar letter="P" />
- <div className="flex-1 min-w-0">
- <span className="text-xs font-medium">Ops</span>
- <div className="text-sm text-foreground mt-1">&ldquo;Classic Tee&rdquo; almost out of stock. Emailing Marketer to pause that ad.</div>
- </div>
- </div>
- </AnimatedItem>
-
- {/* Ops → Marketer email */}
- <AnimatedItem delay={1400}>
- <div className="w-full rounded-md border border-border/60 bg-muted/50 text-sm px-3 py-2 flex items-center gap-2">
- <Mail className="h-4 w-4 shrink-0 text-muted-foreground" />
- <span className="text-xs text-muted-foreground"><span className="font-medium text-foreground">Ops → Marketer:</span> Pause &ldquo;Classic Tee&rdquo; Instagram ad — only 3 left in stock. Reorder sent to supplier.</span>
- </div>
- </AnimatedItem>
-
- {/* Daily ops dashboard */}
- <AnimatedItem delay={1800}>
- <div className="rounded-lg border border-border/60 bg-background/75 overflow-hidden">
- <div className="px-3 py-2 border-b border-border/40 flex items-center gap-2">
- <Mail className="size-3.5 text-muted-foreground" />
- <span className="text-[11px] font-medium">Daily Store Report — May 23</span>
- </div>
- <div className="grid grid-cols-3 gap-px bg-border/40">
- <div className="bg-background/75 px-3 py-2 text-center">
- <div className="text-lg font-semibold text-foreground">$4,230</div>
- <div className="text-[10px] text-muted-foreground">Revenue</div>
- </div>
- <div className="bg-background/75 px-3 py-2 text-center">
- <div className="text-lg font-semibold text-green-600">+12%</div>
- <div className="text-[10px] text-muted-foreground">vs Last Week</div>
- </div>
- <div className="bg-background/75 px-3 py-2 text-center">
- <div className="text-lg font-semibold text-foreground">1,420</div>
- <div className="text-[10px] text-muted-foreground">Visitors</div>
- </div>
- </div>
- <div className="px-3 py-2 space-y-1.5">
- <div className="flex items-center gap-2">
- <span className="size-1.5 rounded-full bg-red-500 shrink-0" />
- <span className="text-xs text-foreground">&ldquo;Classic Tee&rdquo; low stock (3 left) — reorder email sent to supplier</span>
- </div>
- <div className="flex items-center gap-2">
- <span className="size-1.5 rounded-full bg-yellow-500 shrink-0" />
- <span className="text-xs text-foreground">/pricing bounce rate 68% — needs your attention</span>
- </div>
- <div className="flex items-center gap-2">
- <span className="size-1.5 rounded-full bg-green-500 shrink-0" />
- <span className="text-xs text-foreground">Instagram ad converting at 4.8% — keep running</span>
- </div>
- </div>
- </div>
- </AnimatedItem>
- </div>
- );
-}
-
-/* ─────────────────────────────────────────────
- Demo Scene 7: Lead Auto Follow-up
- ───────────────────────────────────────────── */
-
-function DemoScene7() {
- return (
- <div className="flex flex-col gap-3 p-4 h-full">
- {/* Lead email arrives */}
- <AnimatedItem delay={0}>
- <div className="w-full rounded-md border border-border/60 bg-muted/50 text-sm px-3 py-2 flex items-center gap-2">
- <Mail className="h-4 w-4 shrink-0 text-muted-foreground" />
- <span className="text-xs text-muted-foreground">New email from <span className="font-medium text-foreground">[email protected]</span>: &ldquo;What&apos;s your pricing for a 50-person team?&rdquo;</span>
- </div>
- </AnimatedItem>
-
- {/* Sales agent recalls from memory */}
- <AnimatedItem delay={400}>
- <div className="flex items-start gap-2">
- <DemoAvatar letter="A" />
- <div className="flex-1 min-w-0">
- <div className="flex items-center gap-1.5 mb-1">
- <span className="text-xs font-medium">Sales</span>
- <DemoStatusDot status="working" />
- </div>
- <div className="text-sm text-foreground">I remember this person. Let me check...</div>
- </div>
- </div>
- </AnimatedItem>
-
- {/* Memory recall */}
- <AnimatedItem delay={800}>
- <div className="rounded-lg border border-border/60 bg-background/75 p-3">
- <div className="flex items-center gap-1.5 mb-2">
- <span className="text-[10px] font-medium text-muted-foreground uppercase tracking-wider">Recalled from memory</span>
- </div>
- <div className="text-xs text-foreground flex items-center gap-2">
- <Check className="size-3 text-emerald-500 shrink-0" />
- <span>AcmeCorp, Series A, 50 ppl — asked about API access on Discord 2 weeks ago</span>
- </div>
- </div>
- </AnimatedItem>
-
- {/* Sales emails Coder to confirm feature */}
- <AnimatedItem delay={1200}>
- <div className="w-full rounded-md border border-border/60 bg-muted/50 text-sm px-3 py-2 flex items-center gap-2">
- <Mail className="h-4 w-4 shrink-0 text-muted-foreground" />
- <span className="text-xs text-muted-foreground"><span className="font-medium text-foreground">Sales → Coder:</span> Does our API support bulk user import? Sarah needs this for 50 seats.</span>
- </div>
- </AnimatedItem>
-
- {/* Coder replies */}
- <AnimatedItem delay={1600}>
- <div className="w-full rounded-md border border-border/60 bg-muted/50 text-sm px-3 py-2 flex items-center gap-2">
- <Mail className="h-4 w-4 shrink-0 text-muted-foreground" />
- <span className="text-xs text-muted-foreground"><span className="font-medium text-foreground">Coder → Sales:</span> Yes, /api/users/bulk supports CSV import up to 500 users. Shipped last week.</span>
- </div>
- </AnimatedItem>
-
- {/* Sales sends personalized reply */}
- <AnimatedItem delay={2000}>
- <div className="flex items-start gap-2">
- <DemoAvatar letter="A" />
- <div className="flex-1 min-w-0">
- <span className="text-xs font-medium">Sales</span>
- <div className="text-sm text-foreground mt-1">Got confirmation. Sending personalized reply with accurate info.</div>
- </div>
- </div>
- </AnimatedItem>
-
- {/* Sent email card */}
- <AnimatedItem delay={2400}>
- <div className="rounded-lg border border-border/60 bg-background/75 p-3">
- <div className="flex items-center gap-1.5 mb-2">
- <Mail className="size-3.5 text-muted-foreground" />
- <span className="text-[11px] font-medium">Reply sent to [email protected]</span>
- </div>
- <p className="text-xs text-muted-foreground truncate">&ldquo;Hi Sarah! For 50 seats with API access, our Team plan at $29/seat is the best fit...&rdquo;</p>
- <div className="flex items-center gap-2 mt-2">
- <span className="rounded bg-orange-500/10 px-1.5 py-0.5 text-[10px] font-medium text-orange-600">Hot Lead</span>
- <span className="text-[10px] text-muted-foreground">Flagged for your follow-up</span>
- </div>
- </div>
- </AnimatedItem>
- </div>
- );
-}
-
/* ─────────────────────────────────────────────
Scenario Data
───────────────────────────────────────────── */
@@ -614,7 +28,7 @@ interface Scenario {
title: string;
subtitle: string;
icon: React.ReactNode;
- Demo: () => React.JSX.Element;
+ script: UseCaseScript;
}
const scenarios: Scenario[] = [
@@ -623,42 +37,42 @@ const scenarios: Scenario[] = [
title: "Lead auto follow-up",
subtitle: "Personalized reply in minutes. Not hours.",
icon: <DollarSign className="size-4" />,
- Demo: DemoScene7,
+ script: leadFollowupScript,
},
{
id: "weekly-brief",
title: "Monday 8am briefing",
subtitle: "Your week is planned before coffee.",
icon: <Calendar className="size-4" />,
- Demo: DemoScene3,
+ script: weeklyBriefScript,
},
{
id: "store-ops",
title: "Daily store operations",
subtitle: "Your AI ops manager checks in every morning.",
icon: <BarChart3 className="size-4" />,
- Demo: DemoScene6,
+ script: storeOpsScript,
},
{
id: "bug-to-pr",
title: "Bug report → PR ready",
subtitle: "Three agents turn a bug email into a merged fix.",
icon: <Bug className="size-4" />,
- Demo: DemoScene1,
+ script: bugToPrScript,
},
{
id: "post-update",
title: "\"Post an update\"",
subtitle: "One sentence. Five minutes. Published.",
icon: <MessageSquare className="size-4" />,
- Demo: DemoScene2,
+ script: postUpdateScript,
},
{
id: "fill-form",
title: "\"Fill this form\"",
subtitle: "It remembers everything. You just sign.",
icon: <Brain className="size-4" />,
- Demo: DemoScene4,
+ script: fillFormScript,
},
];
@@ -699,8 +113,6 @@ export function UseCasesSection() {
{ scope: sectionRef }
);
- const ActiveDemo = scenarios[activeIndex].Demo;
-
return (
<section
ref={sectionRef}
@@ -755,9 +167,7 @@ export function UseCasesSection() {
}`}
style={
i === activeIndex
- ? {
- backgroundColor: "var(--landing-surface)",
- }
+ ? { backgroundColor: "var(--landing-surface)" }
: undefined
}
>
@@ -794,40 +204,22 @@ export function UseCasesSection() {
</div>
{/* Right: Demo panel */}
- <div className="flex-1 min-w-0 overflow-hidden rounded-2xl" style={{ backgroundColor: "var(--landing-bg)", perspective: "1200px" }}>
+ <div className="flex-1 min-w-0 overflow-hidden rounded-2xl" style={{ perspective: "1200px" }}>
<div
key={activeIndex}
- className={`rounded-2xl overflow-hidden ${slideDir === "left" ? "usecase-demo-slide-left" : "usecase-demo-slide-right"}`}
- style={{
- backgroundColor: "var(--landing-surface)",
- border: "1px solid var(--landing-border)",
- boxShadow: "0 4px 24px oklch(0.15 0.01 55 / 10%)",
- }}
+ className={`overflow-hidden ${slideDir === "left" ? "usecase-demo-slide-left" : "usecase-demo-slide-right"}`}
>
- {/* Window chrome */}
- <div
- className="flex items-center gap-1.5 px-4 py-2.5 border-b"
- style={{ borderColor: "var(--landing-border)" }}
+ <DemoWindow
+ title={`alook — ${scenarios[activeIndex].title}`}
+ className="shadow-[0_4px_24px_oklch(0.15_0.01_55/10%)]"
>
- <span className="size-2.5 rounded-full bg-[oklch(0.65_0.2_25)]" />
- <span className="size-2.5 rounded-full bg-[oklch(0.75_0.15_85)]" />
- <span className="size-2.5 rounded-full bg-[oklch(0.65_0.15_145)]" />
- <span
- className="ml-3 text-[11px]"
- style={{ fontFamily: "var(--font-mono)", color: "var(--landing-text-muted)" }}
- >
- alook — {scenarios[activeIndex].title}
- </span>
- </div>
-
- {/* Demo content area */}
- <div className="usecase-demo-panel h-120 overflow-y-auto thin-scrollbar">
- <ActiveDemo />
- </div>
+ <div className="h-120 overflow-hidden">
+ <UseCaseDemo script={scenarios[activeIndex].script} />
+ </div>
+ </DemoWindow>
</div>
</div>
</div>
-
</section>
);
}