Repository navigation
Expand file tree
/
Copy pathexplain.html
More file actions
674 lines (610 loc) · 34 KB
/
Copy pathexplain.html
File metadata and controls
674 lines (610 loc) · 34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
<!DOCTYPE html>
<html lang="en" class="scroll-smooth">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ARC — Motion Explainer (Reflex + Cortex)</title>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
void: '#0A0A0F',
surface: '#13131F',
card: '#13131F',
panel: '#1A1A2E',
primary: '#2563EB',
primaryGlow: '#60A5FA',
secondary: '#FF6B6B',
accent: '#2563EB',
muted: '#8B94A7',
},
fontFamily: {
sans: ['Inter', 'system-ui', 'sans-serif'],
mono: ['JetBrains Mono', 'monospace'],
display: ['Outfit', 'Inter', 'sans-serif'],
}
}
}
};
</script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800;900&family=JetBrains+Mono:wght@400;700&family=Outfit:wght@700;800;900&display=swap" rel="stylesheet">
<style>
body {
background: #0A0A0F;
color: #E6EAF2;
font-family: 'Inter', system-ui, sans-serif;
overflow-x: hidden;
}
.bg-grid {
background-image: linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
background-size: 40px 40px;
}
.bang-pop {
animation: bangPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes bangPop {
0% { transform: scale(0.65); opacity: 0; }
70% { transform: scale(1.08); opacity: 1; }
100% { transform: scale(1); opacity: 1; }
}
.zap-shake {
animation: zapShake 0.3s ease-in-out;
}
@keyframes zapShake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-6px) rotate(-1deg); }
75% { transform: translateX(6px) rotate(1deg); }
}
.pulse-glow {
box-shadow: 0 0 40px rgba(37, 99, 235, 0.35);
}
.coral-glow {
box-shadow: 0 0 40px rgba(255, 107, 107, 0.35);
}
.stage-container {
perspective: 1000px;
}
.camera-rig {
transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
</style>
</head>
<body class="antialiased selection:bg-blue-500/30 selection:text-white">
<!-- Background Ambient Glow -->
<div class="fixed inset-0 pointer-events-none z-0">
<div class="absolute inset-0 bg-grid opacity-60"></div>
<div class="absolute -top-40 left-1/2 -translate-x-1/2 w-[900px] h-[500px] rounded-full opacity-20 blur-[130px] bg-blue-500"></div>
<div class="absolute bottom-10 right-10 w-[500px] h-[500px] rounded-full opacity-15 blur-[120px] bg-blue-500"></div>
</div>
<!-- Top Bar -->
<header class="relative z-30 max-w-6xl mx-auto px-4 sm:px-6 pt-6 pb-4 flex items-center justify-between">
<div class="flex items-center gap-3">
<a href="index.html" class="relative w-11 h-11 shrink-0 block hover:scale-105 transition-transform" aria-label="Back to showcase">
<svg viewBox="0 0 44 44" class="w-11 h-11" role="img" aria-label="ARC logo">
<defs>
<linearGradient id="arc-logo-primary-x" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#60A5FA"/>
<stop offset="100%" stop-color="#2563EB"/>
</linearGradient>
<linearGradient id="arc-logo-secondary-x" x1="0%" y1="100%" x2="100%" y2="0%">
<stop offset="0%" stop-color="#60A5FA"/>
<stop offset="100%" stop-color="#2563EB"/>
</linearGradient>
</defs>
<rect x="1" y="1" width="42" height="42" rx="11" fill="#0A0A0F" stroke="rgba(37,99,235,.45)" stroke-width="1.5"/>
<path d="M22 8 L32 17 L26 17 L30 27 L22 27 L22 35 L12 20 L19 20 Z" fill="url(#arc-logo-primary-x)"/>
<circle cx="31.5" cy="30.5" r="5.2" fill="#0A0A0F" stroke="url(#arc-logo-secondary-x)" stroke-width="1.8"/>
<circle cx="31.5" cy="30.5" r="1.7" fill="#60A5FA"/>
</svg>
<span class="absolute -bottom-0.5 -right-0.5 w-3 h-3 rounded-full bg-blue-400 border-2 border-void"></span>
</a>
<div>
<div class="font-extrabold text-base sm:text-lg tracking-tight leading-none flex items-center gap-1.5">
ARC <span class="text-[10px] font-mono font-bold px-1.5 py-0.5 rounded bg-blue-500/20 text-blue-300 border border-blue-500/30 tracking-normal">ON SOLARI</span>
</div>
<div class="text-[10px] font-mono text-muted tracking-[.22em] uppercase mt-1">Motion Explainer · Reflex + Cortex</div>
</div>
</div>
<div class="flex items-center gap-3">
<button id="sound-toggle-btn" onclick="toggleSound()" class="px-3 py-1.5 rounded-lg border border-white/10 bg-white/5 hover:bg-white/10 text-slate-300 hover:text-white text-xs font-mono flex items-center gap-1.5 transition" aria-label="Toggle interface sounds">
<span class="w-1.5 h-1.5 rounded-full bg-blue-400" id="sound-dot"></span>
<span id="sound-label">Sound: On</span>
</button>
<a href="index.html" class="px-3.5 py-1.5 rounded-lg border border-blue-500/30 bg-blue-500/10 hover:bg-blue-500/20 text-blue-300 font-mono text-xs font-bold transition">
Technical Report
</a>
</div>
</header>
<!-- Hero Intro: Kinetic Headline -->
<main class="relative z-10 max-w-5xl mx-auto px-4 sm:px-6 pt-8 pb-16">
<div class="text-center mb-8">
<div class="inline-flex items-center gap-2 px-3 py-1 rounded-full bg-blue-500/10 border border-blue-500/30 text-blue-300 text-xs font-mono font-bold mb-4">
<span>BANG-MOTION EXPLAINER</span>
<span>•</span>
<span>ONE CONTINUOUS WORLD</span>
</div>
<h1 class="text-3xl sm:text-5xl lg:text-6xl font-black tracking-tight text-white font-display">
Why call a professor in Switzerland<br>
<span class="text-transparent bg-clip-text bg-gradient-to-r from-blue-300 via-blue-400 to-blue-600">
just to tie your shoelaces?
</span>
</h1>
<p class="mt-4 text-slate-300 text-sm sm:text-base max-w-2xl mx-auto">
Understanding the <strong>ARC</strong> through the classic <em>Hot Stove Reflex</em> analogy. Watch the interactive scenes below or scrub through the timeline!
</p>
<div class="mt-4 inline-flex items-start gap-2 px-3 py-2 rounded-lg bg-blue-500/5 border border-blue-500/25 text-blue-300 text-[11px] font-mono max-w-2xl text-left">
<svg class="w-4 h-4 text-blue-400 shrink-0 mt-0.5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/></svg>
<span>
<strong>EVIDENCE STATUS: PROJECTED_BASED_ON_MOCK_EXECUTION.</strong>
Numbers shown (2.31 ms reflex, 99.69% cost reduction) are the mock-scorecard parameters recorded in
<a class="underline decoration-blue-500/50 hover:text-blue-200" href="https://github.com/itw-code/arc-cua/blob/master/artifacts/production/final_scorecard.json" target="_blank" rel="noopener">final_scorecard.json</a>.
This animation visualizes those published aggregates; it is not a live re-measurement, and the race below is a timed simulation of that ratio.
</span>
</div>
</div>
<!-- Motion Theater Stage -->
<div class="stage-container relative rounded-3xl bg-panel border border-white/10 p-6 sm:p-10 shadow-2xl overflow-hidden min-h-[460px] flex flex-col justify-between">
<!-- Top Stage HUD -->
<div class="flex items-center justify-between pb-4 border-b border-white/10 text-xs font-mono text-slate-400">
<div class="flex items-center gap-2">
<span class="w-2.5 h-2.5 rounded-full bg-blue-400 animate-ping"></span>
<span class="text-white font-bold" id="current-scene-title">SCENE 1: THE COST OF PHONING HOME</span>
</div>
<div class="flex items-center gap-3">
<span id="timecode-display" class="text-blue-300 font-bold">00:00 / 00:30</span>
<span class="px-2 py-0.5 rounded bg-white/5 border border-white/10 text-[10px]" id="speed-badge">1.0× SPEED</span>
</div>
</div>
<!-- Animated Camera Rig / Dynamic Scenes -->
<div id="camera-rig" class="camera-rig my-auto py-6">
<!-- SCENE 1: The Silly Robot -->
<div id="scene-1" class="scene-item text-center max-w-xl mx-auto">
<div class="w-20 h-20 mx-auto mb-4 rounded-2xl bg-red-500/10 border border-red-500/30 grid place-items-center text-red-400 bang-pop">
<svg class="w-10 h-10" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 00-9.78 2.096A4.001 4.001 0 003 15z"/></svg>
</div>
<div class="text-xs font-mono text-red-400 uppercase tracking-widest font-bold mb-2">The Monolithic Agent Problem</div>
<h2 class="text-2xl sm:text-4xl font-black text-white font-display mb-3">
Every Single Click Phones Home
</h2>
<p class="text-sm sm:text-base text-slate-300 leading-relaxed">
Old AI agents take a huge 4K photo, send it across the ocean to a giant cloud brain, wait <strong>3 whole seconds</strong>, and pay <strong>$0.48</strong>... just to click a button that says <em>"Next"</em>.
</p>
<div class="mt-4 inline-flex items-center gap-2 px-3 py-1.5 rounded-xl bg-red-950/40 border border-red-500/30 text-red-300 font-mono text-xs">
[COST AUDIT] $4,820 for 10,000 routine clicks
</div>
</div>
<!-- SCENE 2: The Hot Stove Superpower (Hidden by default, driven by JS) -->
<div id="scene-2" class="scene-item text-center max-w-xl mx-auto hidden">
<div class="w-20 h-20 mx-auto mb-4 rounded-2xl bg-blue-500/10 border border-blue-500/30 grid place-items-center text-blue-400 bang-pop">
<svg class="w-10 h-10" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 18.657A8 8 0 016.343 7.343S7 9 9 10c0-2 .5-5 2.986-7C14 5 16.09 5.777 17.656 7.343a7.975 7.975 0 012.344 5.657 7.975 7.975 0 01-2.343 5.657z"/></svg>
</div>
<div class="text-xs font-mono text-blue-400 uppercase tracking-widest font-bold mb-2">Human Biology Moat</div>
<h2 class="text-2xl sm:text-4xl font-black text-white font-display mb-3">
You Touch a Hot Stove. What Happens?
</h2>
<p class="text-sm sm:text-base text-slate-300 leading-relaxed">
Do you stop and do calculus? Do you call a doctor? <strong>NO.</strong> Your spine pulls your hand back in <strong class="text-blue-400">2 milliseconds</strong> before your thinking brain even realizes it was hot.
</p>
<div class="mt-4 inline-flex items-center gap-2 px-3 py-1.5 rounded-xl bg-blue-950/40 border border-blue-500/30 text-blue-300 font-mono text-xs">
[BIOLOGICAL INVARIANT] Instant Spinal Reflex · $0.00 Cost
</div>
</div>
<!-- SCENE 3: The ARC Secret -->
<div id="scene-3" class="scene-item text-center max-w-xl mx-auto hidden">
<div class="w-20 h-20 mx-auto mb-4 rounded-2xl bg-blue-500/10 border border-blue-500/30 grid place-items-center text-blue-400 bang-pop">
<svg class="w-10 h-10" fill="none" stroke="currentColor" viewBox="0 0 24 24"><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2" stroke-width="2"/></svg>
</div>
<div class="text-xs font-mono text-blue-400 uppercase tracking-widest font-bold mb-2">The ARC Leap</div>
<h2 class="text-2xl sm:text-4xl font-black text-white font-display mb-3">
We Gave Software Human Reflexes
</h2>
<p class="text-sm sm:text-base text-slate-300 leading-relaxed">
ARC uses a <strong>Local Reflex Engine</strong> running on the host machine. <strong class="text-blue-400">98 out of 100 actions</strong> complete in <strong>2.31 ms avg</strong> with zero network calls and zero marginal cost.
</p>
<div class="mt-4 inline-flex items-center gap-2 px-3 py-1.5 rounded-xl bg-blue-950/40 border border-blue-500/30 text-blue-300 font-mono text-xs">
[MOCK MODEL] 99.69% cheaper · measured on Solari: 8.4× per appeal
</div>
</div>
<!-- SCENE 4: When Do We Think? -->
<div id="scene-4" class="scene-item text-center max-w-xl mx-auto hidden">
<div class="w-20 h-20 mx-auto mb-4 rounded-2xl bg-teal-500/10 border border-teal-500/30 grid place-items-center text-teal-400 bang-pop">
<svg class="w-10 h-10" fill="none" stroke="currentColor" viewBox="0 0 24 24"><rect x="3" y="11" width="18" height="11" rx="2" stroke-width="2"/><path d="M7 11V7a5 5 0 0110 0v4" stroke-width="2"/></svg>
</div>
<div class="text-xs font-mono text-blue-400 uppercase tracking-widest font-bold mb-2">Targeted Anomaly Escalation</div>
<h2 class="text-2xl sm:text-4xl font-black text-white font-display mb-3">
What If We Hit a Locked Door?
</h2>
<p class="text-sm sm:text-base text-slate-300 leading-relaxed">
When an action fails or an unexpected state appears, the <strong>Stuck Monitor</strong> flags the anomaly. The Cortex reasoning tier then synthesizes a targeted recovery plan, and local execution resumes.
</p>
<div class="mt-4 inline-flex items-center gap-2 px-3 py-1.5 rounded-xl bg-teal-950/40 border border-blue-500/30 text-blue-300 font-mono text-xs">
[DUAL-TIER CASCADE] 98% Local Reflex / 2% Cloud Escalation
</div>
</div>
<!-- SCENE 5: The Piggy Bank Test -->
<div id="scene-5" class="scene-item text-center max-w-xl mx-auto hidden">
<div class="w-20 h-20 mx-auto mb-4 rounded-2xl bg-blue-500/10 border border-blue-500/30 grid place-items-center text-blue-400 bang-pop">
<svg class="w-10 h-10" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/></svg>
</div>
<div class="text-xs font-mono text-blue-400 uppercase tracking-widest font-bold mb-2">The Bottom Line</div>
<h2 class="text-2xl sm:text-4xl font-black text-white font-display mb-3">
The Price of 10,000 Tasks
</h2>
<p class="text-sm sm:text-base text-slate-300 leading-relaxed">
Frontier Baseline: <span class="text-red-400 font-bold">$4,820.00</span>.<br>
ARC Hybrid: <span class="text-blue-400 font-black text-lg">$15.00</span> (99.7% margin preserved).
</p>
<div class="mt-4 inline-flex items-center gap-2 px-3 py-1.5 rounded-xl bg-gradient-to-r from-blue-950/60 to-blue-950/60 border border-blue-500/40 text-white font-mono text-xs font-bold">
[VERIFIED HARNESS] 267 Tests Passing · PROJECTED_BASED_ON_MOCK_EXECUTION
</div>
</div>
<!-- SCENE 6: Plug It Into Your Agent -->
<div id="scene-6" class="scene-item text-center max-w-xl mx-auto hidden">
<div class="w-20 h-20 mx-auto mb-4 rounded-2xl bg-blue-500/10 border border-blue-500/30 grid place-items-center text-blue-400 bang-pop">
<svg class="w-10 h-10" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"/></svg>
</div>
<div class="text-xs font-mono text-blue-400 uppercase tracking-widest font-bold mb-2">Plug It Into Your Agent</div>
<h2 class="text-2xl sm:text-4xl font-black text-white font-display mb-3">
A Menu, Not a Photo Album
</h2>
<p class="text-sm sm:text-base text-slate-300 leading-relaxed">
Add ARC to <strong>Claude Code</strong> as an MCP server and your agent stops squinting at screenshots. It reads a short menu where every button has a number, like <code class="font-mono text-blue-300">[#12] link "new"</code>, says <em>"click #12"</em>, and ARC clicks exactly that and checks it worked.
</p>
<div class="mt-4 inline-flex items-center gap-2 px-3 py-1.5 rounded-xl bg-blue-950/40 border border-blue-500/30 text-blue-300 font-mono text-xs">
[HEAD-TO-HEAD] 7/7 tasks vs 6/7 · 3.3× fewer tokens than Solari's MCP
</div>
</div>
</div>
<!-- Player Control Bar (Bang-Motion Video Controls) -->
<div class="pt-4 border-t border-white/10 space-y-3">
<!-- Progress Scrubber -->
<div class="flex items-center gap-3">
<input id="timeline-scrubber" type="range" min="0" max="5" step="1" value="0" class="w-full h-2 rounded-lg bg-slate-800 accent-amber-400 cursor-pointer" oninput="seekScene(this.value)" />
</div>
<!-- Buttons Row -->
<div class="flex flex-wrap items-center justify-between gap-3 text-xs font-mono">
<div class="flex items-center gap-2">
<button id="play-pause-btn" onclick="togglePlay()" style="background:#10B981;color:#000;" class="px-3 py-1.5 rounded-lg hover:bg-amber-300 text-black font-black flex items-center gap-1.5 transition shadow-[0_0_12px_rgba(16,185,129,.35)]">
<span id="play-btn-icon">⏸</span>
<span id="play-btn-text">PAUSE</span>
</button>
<button onclick="restartShow()" class="px-2.5 py-1.5 rounded-lg bg-surface border border-white/10 text-slate-300 hover:text-white transition">
↺ RESTART
</button>
<button onclick="toggleSpeed()" class="px-2.5 py-1.5 rounded-lg bg-surface border border-white/10 text-slate-300 hover:text-white transition">
1.0× / 2.0×
</button>
</div>
<!-- Scene Jump Chips -->
<div class="flex flex-wrap items-center gap-1.5">
<button onclick="jumpTo(0)" class="scene-chip px-2.5 py-1 rounded bg-blue-500/20 text-blue-300 border border-amber-500/40 font-bold">1. Robot</button>
<button onclick="jumpTo(1)" class="scene-chip px-2.5 py-1 rounded bg-surface text-slate-400 hover:text-white">2. Stove</button>
<button onclick="jumpTo(2)" class="scene-chip px-2.5 py-1 rounded bg-surface text-slate-400 hover:text-white">3. Secret</button>
<button onclick="jumpTo(3)" class="scene-chip px-2.5 py-1 rounded bg-surface text-slate-400 hover:text-white">4. Locked</button>
<button onclick="jumpTo(4)" class="scene-chip px-2.5 py-1 rounded bg-surface text-slate-400 hover:text-white">5. Pizza</button>
<button onclick="jumpTo(5)" class="scene-chip px-2.5 py-1 rounded bg-surface text-slate-400 hover:text-white">6. Agent</button>
</div>
</div>
</div>
</div>
<!-- ===================================================================== -->
<!-- INTERACTIVE "REFLEX RACE" ARENA -->
<!-- ===================================================================== -->
<div class="mt-14 p-6 sm:p-10 rounded-3xl bg-panel border border-blue-500/30 pulse-glow relative overflow-hidden">
<div class="text-center max-w-2xl mx-auto mb-8">
<span class="px-3 py-1 rounded-full bg-blue-500/10 text-blue-400 text-xs font-mono font-bold uppercase border border-blue-500/30">
INTERACTIVE RUNTIME BENCHMARK
</span>
<h2 class="text-2xl sm:text-3xl font-black text-white font-display mt-2">
The Hot Stove Reflex Race
</h2>
<p class="text-xs sm:text-sm text-slate-300 mt-1">
Click the button to test reaction latency against a traditional cloud agent. Watch live timers and cost tickers.
</p>
</div>
<!-- Race Trigger Button -->
<div class="text-center mb-8">
<button id="race-trigger-btn" onclick="startRace()" class="px-8 py-4 rounded-2xl bg-gradient-to-r from-blue-400 via-blue-500 to-blue-600 text-black font-black text-base sm:text-lg tracking-wide hover:scale-105 active:scale-95 transition-all shadow-[0_0_30px_rgba(37,99,235,0.4)]">
<span class="inline-flex items-center gap-2">
<svg class="w-5 h-5 text-black" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/></svg>
EXECUTE UI ACTION NOW
</span>
</button>
</div>
<!-- Split Race Tracks -->
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<!-- Track 1: Traditional Cloud LLM -->
<div id="cloud-track" class="p-5 rounded-2xl bg-black/50 border border-red-500/30 flex flex-col justify-between">
<div>
<div class="flex items-center justify-between mb-2">
<span class="text-xs font-mono font-bold text-red-400 uppercase">1. Monolithic Cloud Agent</span>
<span id="cloud-status-badge" class="text-[10px] font-mono px-2 py-0.5 rounded bg-red-500/20 text-red-300">IDLE</span>
</div>
<div class="text-sm font-bold text-slate-200 mb-1">GPT-4o / Claude Remote Loop</div>
<div class="text-xs text-slate-400">Capture PNG → Transmit WAN → Multimodal Tokens → Mouse Click</div>
</div>
<!-- Progress Visual -->
<div class="my-6">
<div class="flex justify-between text-xs font-mono mb-1 text-slate-400">
<span>Progress</span>
<span id="cloud-timer" class="text-red-400 font-bold">0.00 ms</span>
</div>
<div class="w-full h-3 rounded-full bg-slate-800 overflow-hidden">
<div id="cloud-bar" class="h-full bg-red-500 rounded-full transition-all duration-75" style="width: 0%"></div>
</div>
</div>
<div class="p-2.5 rounded bg-black/60 border border-red-500/20 font-mono text-xs flex justify-between text-slate-300">
<span>Bill: <strong id="cloud-cost" class="text-red-400 font-bold">$0.00</strong></span>
<span>Latency: <strong id="cloud-final-time" class="text-slate-400">--</strong></span>
</div>
</div>
<!-- Track 2: ARC Hybrid Reflex -->
<div id="arc-track" class="p-5 rounded-2xl bg-black/50 border border-blue-500/40 glow-primary flex flex-col justify-between">
<div>
<div class="flex items-center justify-between mb-2">
<span class="text-xs font-mono font-bold text-blue-400 uppercase">2. ARC Hybrid Reflex</span>
<span id="arc-status-badge" class="text-[10px] font-mono px-2 py-0.5 rounded bg-blue-500/20 text-blue-300">IDLE</span>
</div>
<div class="text-sm font-bold text-slate-200 mb-1">Sub-10ms MicroVM Reflex</div>
<div class="text-xs text-slate-400">Zero-copy CDP/AT-SPI → Local LRU Selector → SimHash Diff</div>
</div>
<!-- Progress Visual -->
<div class="my-6">
<div class="flex justify-between text-xs font-mono mb-1 text-slate-400">
<span>Progress</span>
<span id="arc-timer" class="text-blue-400 font-bold">0.00 ms</span>
</div>
<div class="w-full h-3 rounded-full bg-slate-800 overflow-hidden">
<div id="arc-bar" class="h-full bg-blue-400 rounded-full transition-all duration-75" style="width: 0%"></div>
</div>
</div>
<div class="p-2.5 rounded bg-black/60 border border-blue-500/20 font-mono text-xs flex justify-between text-slate-300">
<span>Bill: <strong id="arc-cost" class="text-blue-400 font-bold">$0.00</strong></span>
<span>Latency: <strong id="arc-final-time" class="text-blue-400">--</strong></span>
</div>
</div>
</div>
<!-- Race Result Verdict Box -->
<div id="race-verdict" class="mt-6 p-4 rounded-xl bg-black/70 border border-white/10 text-center font-mono text-xs text-slate-300 hidden">
<span class="text-blue-400 font-bold text-sm font-mono">[VISUALIZED RATIO] ARC 1,233x FASTER (PUBLISHED AGGREGATES)</span>
<div class="mt-1 text-slate-400">ARC executed locally in 2.31 ms for $0.00. The cloud agent took 2,850 ms and billed $0.482.</div>
<div class="mt-2 text-[10px] text-blue-300/80 font-mono">Timed visualization of published aggregates (PROJECTED_BASED_ON_MOCK_EXECUTION) — not a live model run.</div>
</div>
</div>
<!-- Navigation Footer -->
<div class="mt-12 text-center">
<a href="index.html" class="inline-flex items-center gap-2 px-6 py-3 rounded-xl bg-surface border border-white/10 text-slate-200 hover:text-white hover:border-blue-500/40 text-xs font-mono uppercase tracking-wider transition">
<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M10 19l-7-7m0 0l7-7m-7 7h18"/></svg>
<span>Back to Technical Benchmark Showcase</span>
</a>
</div>
</main>
<script>
let audioCtx = null;
let soundEnabled = true;
function initAudio() {
if (!audioCtx) {
const AudioContext = window.AudioContext || window.webkitAudioContext;
if (AudioContext) audioCtx = new AudioContext();
}
if (audioCtx && audioCtx.state === 'suspended') audioCtx.resume();
}
// Cyber UI sound engine: digital blip + chiptune completion chime.
// Square/sawtooth only, short decay, low gain — punchy but never loud.
function playConfirmSound() {
if (!soundEnabled) return;
initAudio();
if (!audioCtx) return;
try {
const t = audioCtx.currentTime;
const osc = audioCtx.createOscillator();
const gain = audioCtx.createGain();
osc.type = 'square';
osc.frequency.setValueAtTime(880, t);
osc.frequency.setValueAtTime(1320, t + 0.04);
gain.gain.setValueAtTime(0.0001, t);
gain.gain.exponentialRampToValueAtTime(0.045, t + 0.008);
gain.gain.exponentialRampToValueAtTime(0.0001, t + 0.09);
osc.connect(gain);
gain.connect(audioCtx.destination);
osc.start(t);
osc.stop(t + 0.1);
} catch (e) {}
}
function playCompleteSound() {
if (!soundEnabled) return;
initAudio();
if (!audioCtx) return;
try {
const t = audioCtx.currentTime;
const osc = audioCtx.createOscillator();
const gain = audioCtx.createGain();
osc.type = 'sawtooth';
osc.frequency.setValueAtTime(523.25, t);
osc.frequency.exponentialRampToValueAtTime(1046.5, t + 0.12);
gain.gain.setValueAtTime(0.0001, t);
gain.gain.exponentialRampToValueAtTime(0.055, t + 0.015);
gain.gain.exponentialRampToValueAtTime(0.0001, t + 0.18);
osc.connect(gain);
gain.connect(audioCtx.destination);
osc.start(t);
osc.stop(t + 0.2);
} catch (e) {}
}
function toggleSound() {
soundEnabled = !soundEnabled;
const label = document.getElementById('sound-label');
const dot = document.getElementById('sound-dot');
if (label) label.textContent = soundEnabled ? 'Sound: On' : 'Sound: Off';
if (dot) dot.className = soundEnabled ? 'w-1.5 h-1.5 rounded-full bg-blue-400' : 'w-1.5 h-1.5 rounded-full bg-slate-600';
}
// =========================================================================
// Bang-Motion Scene Choreography Engine
// =========================================================================
const scenes = [
{ id: 'scene-1', title: 'SCENE 1: THE COST OF PHONING HOME', timecode: '00:00 / 00:30' },
{ id: 'scene-2', title: 'SCENE 2: THE REFLEX PRINCIPLE', timecode: '00:05 / 00:30' },
{ id: 'scene-3', title: 'SCENE 3: LOCAL EXECUTION AT SCALE', timecode: '00:10 / 00:30' },
{ id: 'scene-4', title: 'SCENE 4: ESCALATION ON ANOMALY', timecode: '00:15 / 00:30' },
{ id: 'scene-5', title: 'SCENE 5: COST AT SCALE', timecode: '00:20 / 00:30' },
{ id: 'scene-6', title: 'SCENE 6: PLUG IT INTO YOUR AGENT', timecode: '00:25 / 00:30' }
];
let currentSceneIdx = 0;
let isPlaying = true;
let playbackSpeed = 1.0;
let timerInterval = null;
function renderScene(idx) {
currentSceneIdx = idx;
scenes.forEach((s, i) => {
const el = document.getElementById(s.id);
if (el) {
if (i === idx) {
el.classList.remove('hidden');
el.classList.add('bang-pop');
} else {
el.classList.add('hidden');
el.classList.remove('bang-pop');
}
}
});
document.getElementById('current-scene-title').textContent = scenes[idx].title;
document.getElementById('timecode-display').textContent = scenes[idx].timecode;
document.getElementById('timeline-scrubber').value = idx;
// Update chip highlights
const chips = document.querySelectorAll('.scene-chip');
chips.forEach((c, i) => {
if (i === idx) {
c.className = 'scene-chip px-2.5 py-1 rounded bg-blue-500/20 text-blue-300 border border-amber-500/40 font-bold';
} else {
c.className = 'scene-chip px-2.5 py-1 rounded bg-surface text-slate-400 hover:text-white';
}
});
playConfirmSound();
}
function nextScene() {
let next = (currentSceneIdx + 1) % scenes.length;
renderScene(next);
}
function seekScene(val) {
renderScene(parseInt(val, 10));
}
function jumpTo(val) {
renderScene(val);
}
function togglePlay() {
isPlaying = !isPlaying;
const btnIcon = document.getElementById('play-btn-icon');
const btnText = document.getElementById('play-btn-text');
if (isPlaying) {
btnIcon.textContent = '⏸';
btnText.textContent = 'PAUSE';
startAutoplay();
} else {
btnIcon.textContent = '▶';
btnText.textContent = 'PLAY';
stopAutoplay();
}
}
function toggleSpeed() {
playbackSpeed = playbackSpeed === 1.0 ? 2.0 : 1.0;
document.getElementById('speed-badge').textContent = playbackSpeed.toFixed(1) + '× SPEED';
if (isPlaying) {
stopAutoplay();
startAutoplay();
}
}
function restartShow() {
renderScene(0);
if (!isPlaying) togglePlay();
}
function startAutoplay() {
stopAutoplay();
const interval = (5000 / playbackSpeed);
timerInterval = setInterval(() => {
nextScene();
}, interval);
}
function stopAutoplay() {
if (timerInterval) {
clearInterval(timerInterval);
timerInterval = null;
}
}
// =========================================================================
// Reflex Race Simulation Logic
// =========================================================================
let raceInProgress = false;
function startRace() {
if (raceInProgress) return;
raceInProgress = true;
initAudio();
const btn = document.getElementById('race-trigger-btn');
btn.disabled = true;
btn.classList.add('opacity-50', 'cursor-not-allowed');
const cloudTimer = document.getElementById('cloud-timer');
const cloudBar = document.getElementById('cloud-bar');
const cloudCost = document.getElementById('cloud-cost');
const cloudBadge = document.getElementById('cloud-status-badge');
const cloudFinalTime = document.getElementById('cloud-final-time');
const arcTimer = document.getElementById('arc-timer');
const arcBar = document.getElementById('arc-bar');
const arcCost = document.getElementById('arc-cost');
const arcBadge = document.getElementById('arc-status-badge');
const arcFinalTime = document.getElementById('arc-final-time');
const verdict = document.getElementById('race-verdict');
verdict.classList.add('hidden');
cloudBar.style.width = '0%';
arcBar.style.width = '0%';
cloudCost.textContent = '$0.00';
arcCost.textContent = '$0.00';
cloudFinalTime.textContent = '--';
arcFinalTime.textContent = '--';
cloudBadge.textContent = 'TRANSMITTING WAN...';
arcBadge.textContent = 'ZAPPING...';
// 1. ARC WINS INSTANTLY (2.31 ms)
setTimeout(() => {
playCompleteSound();
arcBar.style.width = '100%';
arcTimer.textContent = '2.31 ms';
arcFinalTime.textContent = '2.31 ms [OK]';
arcCost.textContent = '$0.000000';
arcBadge.textContent = 'COMPLETED! (2.31ms)';
arcBadge.className = 'text-[10px] font-mono px-2 py-0.5 rounded bg-blue-500 text-black font-bold';
document.getElementById('arc-track').classList.add('zap-shake');
}, 50);
// 2. CLOUD LLM PROGRESS CRAWL (2,850 ms)
let elapsed = 0;
const step = 50;
const cloudInterval = setInterval(() => {
elapsed += step;
const progress = Math.min((elapsed / 2850) * 100, 100);
cloudBar.style.width = progress + '%';
cloudTimer.textContent = elapsed + ' ms';
cloudCost.textContent = '$' + ((elapsed / 2850) * 0.482).toFixed(3);
if (elapsed >= 2850) {
clearInterval(cloudInterval);
cloudBadge.textContent = 'DONE (2,850ms)';
cloudBadge.className = 'text-[10px] font-mono px-2 py-0.5 rounded bg-red-500 text-white font-bold';
cloudFinalTime.textContent = '2,850 ms';
cloudCost.textContent = '$0.4820';
verdict.classList.remove('hidden');
btn.disabled = false;
btn.classList.remove('opacity-50', 'cursor-not-allowed');
raceInProgress = false;
}
}, step);
}
// Start on page load
document.addEventListener('DOMContentLoaded', () => {
renderScene(0);
startAutoplay();
});
</script>
</body>
</html>