Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

add xspace-agent/xspace-agent/public/index-landing-old.html

overstepping1cad94e7ac31
diff --git a/xspace-agent/xspace-agent/public/index-landing-old.html b/xspace-agent/xspace-agent/public/index-landing-old.html
new file mode 100644
index 000000000..3f49982e9
--- /dev/null
+++ b/xspace-agent/xspace-agent/public/index-landing-old.html
@@ -0,0 +1,1397 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>xspace-agent — AI Agents That Talk in X Spaces</title>
+ <meta name="description" content="Open-source TypeScript SDK for AI agents that autonomously join, listen, and speak in X (Twitter) Spaces. Multi-LLM, real-time voice, multi-agent coordination.">
+ <meta name="theme-color" content="#0a0a0a">
+ <link rel="icon" href="/assets/logo.svg" type="image/svg+xml">
+ <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;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
+ <style>
+ *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
+
+ :root {
+ --bg: #0a0a0a;
+ --bg-elevated: #111111;
+ --bg-card: #141414;
+ --border: rgba(255,255,255,0.08);
+ --border-hover: rgba(255,255,255,0.15);
+ --text: #f5f0e8;
+ --text-muted: #a8a29e;
+ --text-dim: #6b6560;
+ --accent-cream: #f5f0e8;
+ --accent-orange: #e87b35;
+ --accent-indigo: #6366f1;
+ --accent-green: #22c55e;
+ --accent-violet: #8b5cf6;
+ --accent-cyan: #06b6d4;
+ --accent-rose: #f43f5e;
+ --accent-amber: #f59e0b;
+ --radius: 12px;
+ --radius-lg: 20px;
+ --radius-xl: 28px;
+ }
+
+ html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
+
+ body {
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
+ background: var(--bg);
+ color: var(--text);
+ overflow-x: hidden;
+ line-height: 1.6;
+ }
+
+ code, .mono { font-family: 'JetBrains Mono', monospace; }
+
+ /* ── Grid Background ─────────────────── */
+ .grid-bg {
+ position: fixed;
+ inset: 0;
+ background-image:
+ linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
+ linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
+ background-size: 80px 80px;
+ pointer-events: none;
+ z-index: 0;
+ }
+
+ .particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
+ .particle {
+ position: absolute;
+ width: 3px; height: 3px;
+ background: rgba(232, 220, 200, 0.12);
+ border-radius: 50%;
+ animation: float-p linear infinite;
+ }
+ @keyframes float-p {
+ 0% { transform: translateY(100vh) translateX(0); opacity: 0; }
+ 10% { opacity: 1; }
+ 90% { opacity: 1; }
+ 100% { transform: translateY(-10vh) translateX(20px); opacity: 0; }
+ }
+
+ .glow-top {
+ position: absolute;
+ top: -200px;
+ left: 50%;
+ transform: translateX(-50%);
+ width: 900px;
+ height: 500px;
+ background: radial-gradient(ellipse, rgba(99,102,241,0.06) 0%, transparent 70%);
+ pointer-events: none;
+ }
+
+ /* ── Layout ─────────────────────────── */
+ .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
+ section { position: relative; z-index: 1; }
+
+ /* ── Navbar ─────────────────────────── */
+ .navbar {
+ position: fixed; top: 0; left: 0; right: 0; z-index: 100;
+ padding: 16px 0;
+ transition: background 0.3s, backdrop-filter 0.3s;
+ }
+ .navbar.scrolled {
+ background: rgba(10,10,10,0.85);
+ backdrop-filter: blur(20px);
+ border-bottom: 1px solid var(--border);
+ }
+ .navbar .container { display: flex; align-items: center; justify-content: space-between; }
+ .nav-logo {
+ display: flex; align-items: center; gap: 10px;
+ text-decoration: none; color: var(--text);
+ font-weight: 700; font-size: 1.15rem;
+ }
+ .nav-logo svg { width: 32px; height: 32px; }
+ .nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
+ .nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
+ .nav-links a:hover { color: var(--text); }
+ .nav-actions { display: flex; align-items: center; gap: 12px; }
+
+ .btn {
+ display: inline-flex; align-items: center; gap: 8px;
+ padding: 10px 22px; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
+ text-decoration: none; cursor: pointer; border: none; transition: all 0.25s; font-family: inherit;
+ }
+ .btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
+ .btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: var(--border-hover); }
+ .btn-primary { background: var(--accent-cream); color: #0a0a0a; }
+ .btn-primary:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(245,240,232,0.2); }
+ .btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-hover); }
+ .btn-outline:hover { background: rgba(255,255,255,0.05); }
+
+ /* ── Hero ───────────────────────────── */
+ .hero { padding: 180px 0 80px; text-align: center; position: relative; }
+ .hero-badge {
+ display: inline-flex; align-items: center; gap: 10px;
+ padding: 8px 20px 8px 8px;
+ background: rgba(255,255,255,0.05); border: 1px solid var(--border);
+ border-radius: 999px; margin-bottom: 32px; font-size: 0.85rem; color: var(--text-muted);
+ }
+ .hero-badge-icon {
+ width: 28px; height: 28px; border-radius: 50%;
+ background: linear-gradient(135deg, var(--accent-indigo), #4f46e5);
+ display: flex; align-items: center; justify-content: center;
+ }
+ .hero-badge-icon svg { width: 14px; height: 14px; }
+
+ .hero h1 {
+ font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 800; line-height: 1.05;
+ letter-spacing: -0.03em; color: var(--accent-cream); margin-bottom: 24px;
+ }
+ .hero p {
+ font-size: 1.15rem; color: var(--text-muted); max-width: 620px; margin: 0 auto 40px; line-height: 1.7;
+ }
+ .hero-cta { display: flex; justify-content: center; gap: 16px; margin-bottom: 80px; }
+
+ /* ── Admin Panel Mockup (from index) ── */
+ .hero-product {
+ position: relative; width: 100%; max-width: 1000px; margin: 0 auto;
+ border-radius: var(--radius-lg); border: 1px solid var(--border);
+ background: var(--bg-elevated); overflow: hidden;
+ box-shadow: 0 40px 120px rgba(0,0,0,0.5), 0 0 1px rgba(255,255,255,0.05) inset;
+ }
+ .hero-product-bar {
+ display: flex; align-items: center; gap: 8px;
+ padding: 12px 16px; border-bottom: 1px solid var(--border);
+ background: var(--bg);
+ }
+ .win-dot { width: 10px; height: 10px; border-radius: 50%; }
+ .win-dot.r { background: #ef4444; }
+ .win-dot.y { background: #eab308; }
+ .win-dot.g { background: #22c55e; }
+ .hero-product-bar .bar-title {
+ flex: 1; text-align: center; font-size: 0.7rem;
+ color: var(--text-dim); font-family: 'JetBrains Mono', monospace;
+ }
+ .hero-product-body {
+ display: grid; grid-template-columns: 200px 1fr 240px; min-height: 340px;
+ }
+ .hp-sidebar {
+ border-right: 1px solid var(--border); padding: 16px 0;
+ display: flex; flex-direction: column; gap: 2px;
+ }
+ .hp-sidebar-item {
+ display: flex; align-items: center; gap: 10px;
+ padding: 8px 16px; font-size: 0.75rem; color: var(--text-dim); font-weight: 500;
+ }
+ .hp-sidebar-item.active {
+ color: var(--text); background: rgba(255,255,255,0.04);
+ border-right: 2px solid var(--accent-indigo);
+ }
+ .hp-sidebar-item .sidebar-dot { width: 6px; height: 6px; border-radius: 50%; }
+ .hp-center { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
+ .hp-msg { display: flex; gap: 10px; align-items: flex-start; }
+ .hp-avatar {
+ width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
+ display: flex; align-items: center; justify-content: center;
+ font-size: 0.65rem; font-weight: 700; color: #fff;
+ }
+ .hp-bubble {
+ padding: 10px 14px; border-radius: 10px; font-size: 0.8rem;
+ line-height: 1.55; max-width: 380px;
+ }
+ .hp-bubble .hp-name { font-weight: 600; font-size: 0.7rem; margin-bottom: 4px; display: block; }
+ .hp-msg.agent .hp-avatar { background: var(--accent-indigo); }
+ .hp-msg.agent .hp-bubble { background: rgba(99,102,241,0.06); border: 1px solid rgba(99,102,241,0.12); }
+ .hp-msg.agent .hp-name { color: #818cf8; }
+ .hp-msg.agent .hp-bubble { color: var(--text-muted); }
+ .hp-msg.user .hp-avatar { background: var(--accent-cyan); }
+ .hp-msg.user .hp-bubble { background: rgba(6,182,212,0.06); border: 1px solid rgba(6,182,212,0.12); }
+ .hp-msg.user .hp-name { color: #22d3ee; }
+ .hp-msg.user .hp-bubble { color: var(--text-muted); }
+ .hp-msg.system .hp-avatar { background: var(--accent-green); }
+ .hp-msg.system .hp-bubble { background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.1); }
+ .hp-msg.system .hp-name { color: var(--accent-green); }
+ .hp-msg.system .hp-bubble { color: var(--text-muted); }
+ .hp-right {
+ border-left: 1px solid var(--border); padding: 16px;
+ display: flex; flex-direction: column; gap: 16px;
+ }
+ .hp-stat-label {
+ font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
+ letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 6px;
+ }
+ .hp-stat-val {
+ font-size: 0.85rem; font-weight: 600; color: var(--text);
+ display: flex; align-items: center; gap: 6px;
+ }
+ .hp-stat-val .live-dot {
+ width: 6px; height: 6px; border-radius: 50%;
+ animation: blink 1.5s ease infinite;
+ }
+ @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
+ .hp-mini-wave {
+ display: flex; align-items: flex-end; gap: 2px; height: 24px; margin-top: 4px;
+ }
+ .hp-mini-wave span {
+ width: 3px; border-radius: 2px; background: var(--accent-indigo);
+ opacity: 0.5; animation: miniwave 1s ease-in-out infinite;
+ }
+ @keyframes miniwave { 0%,100%{height:4px} 50%{height:20px} }
+ .hp-providers { display: flex; flex-wrap: wrap; gap: 4px; }
+ .hp-prov-tag {
+ font-size: 0.6rem; font-weight: 600; padding: 3px 8px;
+ border-radius: 4px; border: 1px solid var(--border);
+ color: var(--text-dim); background: var(--bg);
+ }
+
+ /* ── Float cards ─────────────────────── */
+ .float-card {
+ position: absolute; background: var(--bg-card); border: 1px solid var(--border);
+ border-radius: var(--radius); padding: 16px 20px;
+ box-shadow: 0 20px 50px rgba(0,0,0,0.5); z-index: 2;
+ }
+ .float-card h4 { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; }
+ .float-card .stat { font-size: 1.5rem; font-weight: 700; color: var(--text); }
+ .float-card .stat sup { font-size: 0.8rem; color: var(--accent-orange); }
+ .state-flow { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
+ .state-node {
+ padding: 4px 10px; border-radius: 6px; font-size: 0.65rem; font-weight: 600;
+ background: rgba(99,102,241,0.1); color: #818cf8; border: 1px solid rgba(99,102,241,0.2);
+ }
+ .state-node.active { background: rgba(34,197,94,0.15); color: #4ade80; border-color: rgba(34,197,94,0.3); }
+ .state-arrow { color: var(--text-dim); font-size: 0.7rem; }
+
+ /* ── Logo Bar ──────────────────────── */
+ .logo-bar { padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
+ .logo-bar-label {
+ text-align: center; font-size: 0.75rem; font-weight: 500; color: var(--text-dim);
+ text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 24px;
+ }
+ .logo-bar-inner { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; }
+ .logo-bar-item {
+ display: flex; align-items: center; gap: 8px;
+ font-size: 0.95rem; font-weight: 700; color: rgba(255,255,255,0.3);
+ letter-spacing: 0.02em; transition: color 0.2s;
+ }
+ .logo-bar-item:hover { color: rgba(255,255,255,0.5); }
+ .logo-bar-item .ldot { width: 8px; height: 8px; border-radius: 2px; }
+
+ /* ── Description ───────────────────── */
+ .desc-block { padding: 100px 0; text-align: center; }
+ .desc-block p {
+ font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.5; color: var(--text-muted);
+ max-width: 900px; margin: 0 auto; font-weight: 400;
+ }
+ .desc-block p strong { color: var(--accent-cream); font-weight: 600; }
+
+ /* ── Feature Grid (from index) ─────── */
+ .feat-section { padding: 120px 0 60px; }
+ .feat-section .section-header { text-align: center; margin-bottom: 64px; }
+ .feat-section .sect-label {
+ font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
+ letter-spacing: 0.1em; color: var(--accent-indigo); margin-bottom: 12px;
+ }
+ .feat-section h2 {
+ font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 800; color: var(--accent-cream);
+ letter-spacing: -0.02em; margin-bottom: 20px;
+ }
+ .feat-section .section-desc {
+ font-size: 1.05rem; color: var(--text-muted); max-width: 650px; margin: 0 auto; line-height: 1.7;
+ }
+ .feat-grid {
+ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
+ background: var(--border); border: 1px solid var(--border);
+ border-radius: 16px; overflow: hidden; max-width: 1000px; margin: 0 auto;
+ }
+ .feat-cell {
+ background: var(--bg-card); padding: 32px 28px;
+ transition: background 0.2s;
+ }
+ .feat-cell:hover { background: #1a1a1a; }
+ .feat-cell .feat-icon {
+ width: 36px; height: 36px; border-radius: 10px;
+ display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
+ }
+ .feat-cell .feat-icon svg { width: 18px; height: 18px; }
+ .feat-cell .feat-icon.v { background: rgba(99,102,241,0.1); color: #818cf8; }
+ .feat-cell .feat-icon.c { background: rgba(6,182,212,0.1); color: #22d3ee; }
+ .feat-cell .feat-icon.e { background: rgba(34,197,94,0.1); color: var(--accent-green); }
+ .feat-cell .feat-icon.r { background: rgba(244,63,94,0.1); color: var(--accent-rose); }
+ .feat-cell .feat-icon.a { background: rgba(245,158,11,0.1); color: var(--accent-amber); }
+ .feat-cell h3 { font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
+ .feat-cell p { font-size: 0.8125rem; color: var(--text-dim); line-height: 1.6; }
+
+ /* ── Feature Sections (deep dives) ─── */
+ .feature-section { padding: 120px 0; }
+ .feature-section .section-header { text-align: center; margin-bottom: 64px; }
+ .feature-section h2 {
+ font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 800; color: var(--accent-cream);
+ letter-spacing: -0.02em; margin-bottom: 20px;
+ }
+ .feature-section .section-desc {
+ font-size: 1.05rem; color: var(--text-muted); max-width: 650px; margin: 0 auto; line-height: 1.7;
+ }
+ .feature-mockup {
+ background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl);
+ overflow: hidden; max-width: 1000px; margin: 0 auto;
+ box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5); position: relative;
+ }
+
+ /* Mockup shared */
+ .mockup-bar {
+ display: flex; align-items: center; gap: 8px; padding: 14px 20px;
+ border-bottom: 1px solid var(--border);
+ }
+ .mockup-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.08); }
+ .mockup-tabs { display: flex; gap: 4px; margin-left: 24px; }
+ .mockup-tab {
+ padding: 6px 16px; border-radius: 8px; font-size: 0.8rem; color: var(--text-muted);
+ display: flex; align-items: center; gap: 6px;
+ }
+ .mockup-tab.active { background: rgba(255,255,255,0.06); color: var(--text); }
+
+ /* Feature 1: Browser Automation */
+ .automation-layout { padding: 32px; }
+ .automation-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
+ .auto-step {
+ background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 10px;
+ padding: 20px; text-align: center; transition: border-color 0.3s;
+ }
+ .auto-step:hover { border-color: var(--border-hover); }
+ .auto-step-num {
+ width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 12px;
+ display: flex; align-items: center; justify-content: center;
+ font-size: 0.8rem; font-weight: 700;
+ }
+ .auto-step h4 { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
+ .auto-step p { font-size: 0.75rem; color: var(--text-dim); line-height: 1.5; }
+ .fsm-bar {
+ background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 10px;
+ padding: 16px 24px; display: flex; align-items: center; gap: 12px; overflow-x: auto;
+ }
+ .fsm-state {
+ padding: 6px 14px; border-radius: 8px; font-size: 0.75rem; font-weight: 600;
+ white-space: nowrap; border: 1px solid var(--border); color: var(--text-dim);
+ background: rgba(255,255,255,0.02);
+ }
+ .fsm-state.active { background: rgba(34,197,94,0.1); color: #4ade80; border-color: rgba(34,197,94,0.2); }
+ .fsm-state.done { background: rgba(99,102,241,0.1); color: #818cf8; border-color: rgba(99,102,241,0.2); }
+ .fsm-arrow { color: var(--text-dim); font-size: 0.8rem; flex-shrink: 0; }
+
+ /* Feature 2: Audio Pipeline */
+ .pipeline-layout { padding: 32px; }
+ .pipeline-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
+ .pipeline-card {
+ background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 10px; padding: 24px;
+ }
+ .pipeline-card h4 { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
+ .pipeline-card .sub { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 16px; }
+ .pipeline-card .metric { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
+ .pipeline-card .metric-label { font-size: 0.7rem; color: var(--text-dim); }
+ .pipeline-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.06); margin-top: 12px; overflow: hidden; }
+ .pipeline-bar-fill { height: 100%; border-radius: 2px; }
+ .middleware-row {
+ display: flex; gap: 8px; flex-wrap: wrap;
+ padding: 16px 20px; background: rgba(255,255,255,0.02);
+ border: 1px solid var(--border); border-radius: 10px;
+ }
+ .mw-tag {
+ padding: 6px 14px; border-radius: 8px; font-size: 0.75rem; font-weight: 500;
+ color: var(--text-muted); border: 1px solid var(--border); font-family: 'JetBrains Mono', monospace;
+ }
+ .mw-tag .arrow { color: var(--accent-orange); margin: 0 2px; }
+
+ /* Feature 3: Intelligence */
+ .intel-layout { padding: 32px; display: grid; grid-template-columns: 1fr 320px; gap: 0; }
+ .intel-main { padding-right: 32px; border-right: 1px solid var(--border); }
+ .intel-sidebar { padding-left: 24px; }
+ .intel-item {
+ display: flex; gap: 14px; padding: 18px; margin-bottom: 12px;
+ background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 10px;
+ }
+ .intel-icon {
+ width: 40px; height: 40px; border-radius: 10px;
+ display: flex; align-items: center; justify-content: center; flex-shrink: 0;
+ }
+ .intel-icon svg { width: 20px; height: 20px; }
+ .intel-item h4 { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
+ .intel-item p { font-size: 0.8rem; color: var(--text-dim); line-height: 1.5; }
+ .sidebar-block { margin-bottom: 28px; }
+ .sidebar-block h4 {
+ font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
+ text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px;
+ }
+ .decision-bar {
+ display: flex; align-items: center; justify-content: space-between;
+ padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.8rem;
+ }
+ .decision-bar:last-child { border-bottom: none; }
+ .decision-bar .label { color: var(--text-muted); }
+ .decision-bar .value { font-weight: 600; }
+ .decision-bar .value.high { color: #4ade80; }
+ .decision-bar .value.med { color: var(--accent-orange); }
+ .decision-bar .value.low { color: var(--text-dim); }
+
+ /* Feature 4: Multi-Agent Teams */
+ .team-layout { padding: 32px; }
+ .team-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
+ .team-header h3 { font-size: 1.1rem; font-weight: 600; color: var(--text); }
+ .team-badge {
+ padding: 6px 14px; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
+ background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.2);
+ display: flex; align-items: center; gap: 6px;
+ }
+ .team-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
+ .team-agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
+ .team-agent {
+ background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 10px; padding: 20px;
+ transition: border-color 0.3s;
+ }
+ .team-agent:hover { border-color: var(--border-hover); }
+ .team-agent-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
+ .team-agent-av {
+ width: 36px; height: 36px; border-radius: 50%;
+ display: flex; align-items: center; justify-content: center;
+ font-weight: 700; font-size: 0.8rem; color: #fff;
+ }
+ .team-agent-head .name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
+ .team-agent-head .role { font-size: 0.7rem; color: var(--text-dim); }
+ .team-agent p { font-size: 0.8rem; color: var(--text-dim); line-height: 1.5; }
+ .turn-bar {
+ background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 10px;
+ padding: 16px 24px;
+ }
+ .turn-bar h4 {
+ font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
+ text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px;
+ }
+ .turn-queue { display: flex; align-items: center; gap: 8px; }
+ .turn-item {
+ display: flex; align-items: center; gap: 6px;
+ padding: 6px 12px; border-radius: 8px;
+ font-size: 0.75rem; font-weight: 600; border: 1px solid var(--border);
+ }
+ .turn-item.speaking { background: rgba(232,123,53,0.1); border-color: rgba(232,123,53,0.2); color: #e87b35; }
+ .turn-item.queued { color: var(--text-dim); }
+ .turn-arrow { color: var(--text-dim); font-size: 0.7rem; }
+
+ /* ── Code Block (from index) ────────── */
+ .code-section { padding: 80px 0 120px; }
+ .code-split {
+ display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
+ max-width: 1000px; margin: 0 auto;
+ }
+ .code-text h3 {
+ font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--accent-cream);
+ letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 14px;
+ }
+ .code-text p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
+ .code-text .sect-label {
+ font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
+ letter-spacing: 0.1em; color: var(--accent-indigo); margin-bottom: 12px;
+ }
+ .check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
+ .check-list li {
+ display: flex; align-items: center; gap: 10px;
+ font-size: 0.8125rem; color: var(--text-muted);
+ }
+ .check-list .ck {
+ width: 18px; height: 18px; border-radius: 5px;
+ background: rgba(34,197,94,0.12); color: var(--accent-green);
+ display: flex; align-items: center; justify-content: center; flex-shrink: 0;
+ }
+ .check-list .ck svg { width: 10px; height: 10px; }
+ .code-frame {
+ border-radius: 14px; border: 1px solid var(--border);
+ overflow: hidden; background: var(--bg-elevated);
+ box-shadow: 0 24px 80px rgba(0,0,0,0.4);
+ }
+ .code-frame-bar {
+ display: flex; align-items: center; gap: 7px;
+ padding: 11px 16px; border-bottom: 1px solid var(--border);
+ }
+ .code-frame-bar .cf-name {
+ font-size: 0.6875rem; color: var(--text-dim);
+ font-family: 'JetBrains Mono', monospace; margin-left: 10px;
+ }
+ .code-frame pre {
+ padding: 20px; font-family: 'JetBrains Mono', monospace;
+ font-size: 0.775rem; line-height: 1.75; color: var(--text-muted);
+ overflow-x: auto; margin: 0;
+ }
+ .code-frame pre .k { color: #818cf8; }
+ .code-frame pre .f { color: #22d3ee; }
+ .code-frame pre .s { color: #34d399; }
+ .code-frame pre .c { color: #3f3f46; }
+ .code-frame pre .p { color: var(--text-dim); }
+
+ /* ── Benefits ──────────────────────── */
+ .benefits { padding: 120px 0; }
+ .benefits h2 {
+ font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 800; color: var(--accent-cream);
+ text-align: center; letter-spacing: -0.02em; margin-bottom: 64px;
+ }
+ .benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
+ .benefit-card {
+ background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
+ padding: 36px; transition: border-color 0.3s, transform 0.3s;
+ }
+ .benefit-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
+ .benefit-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
+ .benefit-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }
+ .benefit-visual {
+ background: rgba(255,255,255,0.02); border: 1px solid var(--border);
+ border-radius: var(--radius); padding: 16px 20px; min-height: 60px;
+ }
+
+ /* ── Testimonials ──────────────────── */
+ .testimonials { padding: 120px 0; }
+ .testimonials h2 {
+ font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 800; color: var(--accent-cream);
+ text-align: center; letter-spacing: -0.02em; margin-bottom: 64px;
+ }
+ .testimonials-grid { display: grid; grid-template-columns: 280px 1fr 1fr; gap: 20px; }
+ .testimonial-rating {
+ background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
+ padding: 36px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
+ }
+ .rating-value { font-size: 3.5rem; font-weight: 800; color: var(--text); line-height: 1; }
+ .rating-star { color: #fbbf24; font-size: 1.5rem; margin-left: 4px; }
+ .rating-count { font-size: 0.85rem; color: var(--text-dim); margin: 8px 0 20px; }
+ .rating-link {
+ display: inline-flex; align-items: center; gap: 8px;
+ padding: 10px 20px; border: 1px solid var(--border); border-radius: 999px;
+ color: var(--text-muted); text-decoration: none; font-size: 0.85rem; font-weight: 500;
+ transition: all 0.2s;
+ }
+ .rating-link:hover { background: rgba(255,255,255,0.05); color: var(--text); }
+ .testimonial-card {
+ background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
+ padding: 32px; display: flex; flex-direction: column; justify-content: space-between;
+ }
+ .testimonial-quote { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }
+ .testimonial-quote::before {
+ content: '\201C'; font-size: 2rem; color: var(--text-dim); line-height: 0; vertical-align: -8px; margin-right: 2px;
+ }
+ .testimonial-author { display: flex; align-items: center; gap: 12px; }
+ .testimonial-author-avatar {
+ width: 40px; height: 40px; border-radius: 50%;
+ background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
+ display: flex; align-items: center; justify-content: center;
+ font-weight: 700; font-size: 0.8rem; color: var(--text-muted);
+ }
+ .testimonial-author-info .name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
+ .testimonial-author-info .role { font-size: 0.8rem; color: var(--text-dim); }
+ .testimonial-nav { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }
+ .testimonial-nav button {
+ width: 44px; height: 44px; border-radius: 50%;
+ background: rgba(255,255,255,0.05); border: 1px solid var(--border);
+ color: var(--text-muted); cursor: pointer;
+ display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-size: 1.1rem;
+ }
+ .testimonial-nav button:hover { background: rgba(255,255,255,0.1); color: var(--text); }
+
+ /* ── CTA ────────────────────────────── */
+ .cta-section { padding: 120px 0; }
+ .cta-box {
+ background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl);
+ padding: 80px 40px; text-align: center; position: relative; overflow: hidden;
+ }
+ .cta-box::before {
+ content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 200px;
+ background:
+ linear-gradient(transparent, rgba(10,10,10,0.3)),
+ repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,0.03) 79px, rgba(255,255,255,0.03) 80px),
+ repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255,255,255,0.03) 79px, rgba(255,255,255,0.03) 80px);
+ perspective: 500px; transform: rotateX(45deg); transform-origin: bottom; pointer-events: none;
+ }
+ .cta-box .label { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 16px; }
+ .cta-box h2 {
+ font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--accent-cream);
+ letter-spacing: -0.02em; margin-bottom: 32px;
+ }
+ .cta-btns { display: flex; justify-content: center; gap: 12px; position: relative; }
+
+ /* ── Footer ─────────────────────────── */
+ .footer { border-top: 1px solid var(--border); padding: 60px 0 40px; position: relative; z-index: 1; }
+ .footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
+ .footer-brand p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; margin-top: 12px; }
+ .footer-col h4 { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 16px; }
+ .footer-col a {
+ display: block; font-size: 0.85rem; color: var(--text-dim); text-decoration: none;
+ padding: 4px 0; transition: color 0.2s;
+ }
+ .footer-col a:hover { color: var(--accent-cream); }
+ .footer-bottom {
+ display: flex; justify-content: space-between; align-items: center;
+ padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-dim);
+ }
+ .footer-bottom-links { display: flex; gap: 24px; }
+ .footer-bottom-links a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
+ .footer-bottom-links a:hover { color: var(--text-muted); }
+
+ /* ── Responsive ─────────────────────── */
+ @media (max-width: 960px) {
+ .hero-product-body { grid-template-columns: 1fr; }
+ .hp-sidebar, .hp-right { display: none; }
+ .feat-grid { grid-template-columns: repeat(2, 1fr); }
+ .code-split { grid-template-columns: 1fr; }
+ }
+ @media (max-width: 900px) {
+ .nav-links { display: none; }
+ .automation-steps { grid-template-columns: 1fr 1fr; }
+ .pipeline-flow, .team-agents { grid-template-columns: 1fr; }
+ .intel-layout { grid-template-columns: 1fr; }
+ .intel-main { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 24px; }
+ .intel-sidebar { padding-left: 0; padding-top: 24px; }
+ .benefits-grid, .testimonials-grid { grid-template-columns: 1fr; }
+ .footer-top { grid-template-columns: 1fr 1fr; }
+ .float-card { display: none; }
+ }
+ @media (max-width: 600px) {
+ .hero h1 { font-size: 2.5rem; }
+ .hero-cta { flex-direction: column; align-items: center; }
+ .automation-steps, .feat-grid { grid-template-columns: 1fr; }
+ .footer-top { grid-template-columns: 1fr; }
+ .mockup-tabs { display: none; }
+ .turn-queue { flex-wrap: wrap; }
+ .cta-btns { flex-direction: column; align-items: center; }
+ }
+ </style>
+</head>
+<body>
+
+ <div class="grid-bg"></div>
+ <div class="particles" id="particles"></div>
+
+ <!-- ═══ Navbar ═══ -->
+ <nav class="navbar" id="navbar">
+ <div class="container">
+ <a href="#" class="nav-logo">
+ <svg viewBox="0 0 32 32" fill="none"><rect x="4" y="4" width="24" height="24" rx="6" stroke="currentColor" stroke-width="2"/><circle cx="12" cy="16" r="3" fill="currentColor" opacity="0.4"/><circle cx="20" cy="16" r="3" fill="currentColor" opacity="0.4"/><path d="M12 16h8" stroke="currentColor" stroke-width="1.5" stroke-dasharray="2 2"/></svg>
+ xspace-agent
+ </a>
+ <ul class="nav-links">
+ <li><a href="#features">Features</a></li>
+ <li><a href="#how">How It Works</a></li>
+ <li><a href="#benefits">Benefits</a></li>
+ <li><a href="/bob">Bob</a></li>
+ <li><a href="/alice">Alice</a></li>
+ <li><a href="/builder">Builder</a></li>
+ </ul>
+ <div class="nav-actions">
+ <a href="https://github.com" target="_blank" rel="noopener" class="btn btn-ghost">
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor"><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>
+ GitHub
+ </a>
+ <a href="/admin" class="btn btn-primary">Dashboard</a>
+ </div>
+ </div>
+ </nav>
+
+ <!-- ═══ Hero ═══ -->
+ <section class="hero">
+ <div class="glow-top"></div>
+ <div class="container">
+ <div class="hero-badge">
+ <div class="hero-badge-icon">
+ <svg viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2"><path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"/><path d="M19 10v2a7 7 0 0 1-14 0v-2"/></svg>
+ </div>
+ TypeScript SDK &middot; open source &middot; MIT licensed
+ </div>
+
+ <h1>AI agents that talk<br>in X Spaces</h1>
+
+ <p>An open-source TypeScript SDK for AI agents that autonomously join, listen, and speak in X Spaces. Multi-LLM, real-time voice, Puppeteer-powered browser automation.</p>
+
+ <div class="hero-cta">
+ <a href="#code" class="btn btn-primary">
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"><polyline points="4 17 10 11 4 5"/><line x1="12" y1="19" x2="20" y2="19"/></svg>
+ npm install xspace-agent
+ </a>
+ <a href="#features" class="btn btn-outline">Explore the SDK</a>
+ </div>
+
+ <!-- Admin Panel Mockup -->
+ <div class="hero-product" style="max-width:1000px; margin:0 auto; position:relative;">
+ <div class="hero-product-bar">
+ <span class="win-dot r"></span>
+ <span class="win-dot y"></span>
+ <span class="win-dot g"></span>
+ <span class="bar-title">XSpace Agent &mdash; Admin Panel</span>
+ <span></span>
+ </div>
+ <div class="hero-product-body">
+ <!-- sidebar -->
+ <div class="hp-sidebar">
+ <div class="hp-sidebar-item active">
+ <span class="sidebar-dot" style="background:var(--accent-indigo)"></span>
+ Dashboard
+ </div>
+ <div class="hp-sidebar-item">
+ <span class="sidebar-dot" style="background:var(--text-dim)"></span>
+ Agents
+ </div>
+ <div class="hp-sidebar-item">
+ <span class="sidebar-dot" style="background:var(--text-dim)"></span>
+ Knowledge
+ </div>
+ <div class="hp-sidebar-item">
+ <span class="sidebar-dot" style="background:var(--text-dim)"></span>
+ History
+ </div>
+ <div class="hp-sidebar-item">
+ <span class="sidebar-dot" style="background:var(--text-dim)"></span>
+ Settings
+ </div>
+ </div>
+
+ <!-- center: conversation -->
+ <div class="hp-center">
+ <div class="hp-msg user">
+ <div class="hp-avatar">JD</div>
+ <div class="hp-bubble">
+ <span class="hp-name">@johndoe</span>
+ What do you all think about the future of voice interfaces in AI products?
+ </div>
+ </div>
+ <div class="hp-msg agent">
+ <div class="hp-avatar">A</div>
+ <div class="hp-bubble">
+ <span class="hp-name">Aria (Agent)</span>
+ Voice is becoming the most natural interface for AI. We're seeing latency drop below 500ms, which crosses the threshold for real conversation...
+ </div>
+ </div>
+ <div class="hp-msg system">
+ <div class="hp-avatar">S</div>
+ <div class="hp-bubble">
+ <span class="hp-name">System</span>
+ Speaker request approved. Agent is now a speaker in the Space.
+ </div>
+ </div>
+ </div>
+
+ <!-- right panel -->
+ <div class="hp-right">
+ <div>
+ <div class="hp-stat-label">Status</div>
+ <div class="hp-stat-val">
+ <span class="live-dot" style="background:var(--accent-green)"></span>
+ Listening
+ </div>
+ </div>
+ <div>
+ <div class="hp-stat-label">Audio Level</div>
+ <div class="hp-mini-wave" id="miniWave"></div>
+ </div>
+ <div>
+ <div class="hp-stat-label">Space</div>
+ <div class="hp-stat-val" style="font-size:0.7rem;color:var(--text-dim)">x.com/i/spaces/1eaK...</div>
+ </div>
+ <div>
+ <div class="hp-stat-label">Providers</div>
+ <div class="hp-providers">
+ <span class="hp-prov-tag">Claude</span>
+ <span class="hp-prov-tag">Groq STT</span>
+ <span class="hp-prov-tag">ElevenLabs</span>
+ </div>
+ </div>
+ <div>
+ <div class="hp-stat-label">Uptime</div>
+ <div class="hp-stat-val" style="font-size:0.8rem">1h 23m</div>
+ </div>
+ </div>
+ </div>
+
+ <!-- Float cards -->
+ <div class="float-card" style="bottom:40px; left:-40px;">
+ <h4>Agent State</h4>
+ <div class="state-flow">
+ <span class="state-node" style="background:rgba(99,102,241,0.1);color:#818cf8;border-color:rgba(99,102,241,0.2);">auth</span>
+ <span class="state-arrow">&rarr;</span>
+ <span class="state-node" style="background:rgba(99,102,241,0.1);color:#818cf8;border-color:rgba(99,102,241,0.2);">join</span>
+ <span class="state-arrow">&rarr;</span>
+ <span class="state-node active">listening</span>
+ </div>
+ </div>
+ <div class="float-card" style="top:60px; right:-50px;">
+ <h4>Active Spaces</h4>
+ <div class="stat">3<sup>&nearr;</sup></div>
+ <div style="font-size:0.75rem; color:var(--text-dim); margin-top:4px;">agents deployed</div>
+ </div>
+ </div>
+ </div>
+ </section>
+
+ <!-- ═══ Tech Bar ═══ -->
+ <section class="logo-bar">
+ <div class="container">
+ <div class="logo-bar-label">Works with your stack</div>
+ <div class="logo-bar-inner">
+ <div class="logo-bar-item"><span class="ldot" style="background:var(--accent-green)"></span> OpenAI</div>
+ <div class="logo-bar-item"><span class="ldot" style="background:var(--accent-indigo)"></span> Claude</div>
+ <div class="logo-bar-item"><span class="ldot" style="background:var(--accent-amber)"></span> Groq</div>
+ <div class="logo-bar-item"><span class="ldot" style="background:var(--accent-rose)"></span> ElevenLabs</div>
+ <div class="logo-bar-item"><span class="ldot" style="background:var(--accent-cyan)"></span> Whisper</div>
+ <div class="logo-bar-item"><span class="ldot" style="background:var(--accent-green)"></span> Puppeteer</div>
+ </div>
+ </div>
+ </section>
+
+ <!-- ═══ Description ═══ -->
+ <section class="desc-block">
+ <div class="container">
+ <p><strong>Automate, listen</strong> and <strong>speak</strong> in X Spaces with AI. xspace-agent is built for developers creating <strong>autonomous voice agents</strong> that participate in live audio conversations &mdash; powered by Puppeteer browser automation, pluggable LLM providers, and a robust state machine.</p>
+ </div>
+ </section>
+
+ <!-- ═══ Feature Grid (from index) ═══ -->
+ <section class="feat-section" id="features">
+ <div class="container">
+ <div class="section-header">
+ <div class="sect-label">Capabilities</div>
+ <h2>Everything for building voice AI agents</h2>
+ <p class="section-desc">A TypeScript SDK with pluggable providers, real-time audio, and autonomous Space participation out of the box.</p>
+ </div>
+
+ <div class="feat-grid">
+ <div class="feat-cell">
+ <div class="feat-icon v"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"/><path d="M19 10v2a7 7 0 0 1-14 0v-2"/><line x1="12" y1="19" x2="12" y2="23"/></svg></div>
+ <h3>Real-Time Voice</h3>
+ <p>WebRTC audio capture and injection. VAD-powered speech detection with configurable silence thresholds.</p>
+ </div>
+ <div class="feat-cell">
+ <div class="feat-icon c"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><circle cx="12" cy="17" r=".5"/></svg></div>
+ <h3>Multi-LLM Routing</h3>
+ <p>Route prompts across OpenAI, Claude, and Groq with intelligent provider selection and cost tracking.</p>
+ </div>
+ <div class="feat-cell">
+ <div class="feat-icon r"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M23 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg></div>
+ <h3>Multi-Agent Teams</h3>
+ <p>Coordinate multiple AI personalities in one Space with managed turn-taking and debate modes.</p>
+ </div>
+ <div class="feat-cell">
+ <div class="feat-icon e"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18"/><path d="M9 21V9"/></svg></div>
+ <h3>Browser Automation</h3>
+ <p>Puppeteer with self-healing CSS selectors. Handles login, join, speaker promotion, and audio injection.</p>
+ </div>
+ <div class="feat-cell">
+ <div class="feat-icon a"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/></svg></div>
+ <h3>State Machine</h3>
+ <p>Deterministic FSM manages the full lifecycle: launching, authenticating, listening, speaking, and recovery.</p>
+ </div>
+ <div class="feat-cell">
+ <div class="feat-icon v"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg></div>
+ <h3>Plugin &amp; Middleware</h3>
+ <p>Six interception points across the audio pipeline. Extend agent behavior with a clean plugin API.</p>
+ </div>
+ </div>
+ </div>
+ </section>
+
+ <!-- ═══ Feature Deep Dive 1: Browser Automation ═══ -->
+ <section class="feature-section" id="how">
+ <div class="container">
+ <div class="section-header">
+ <h2>Browser Automation</h2>
+ <p class="section-desc">Puppeteer-powered lifecycle management. Self-healing CSS selectors automatically adapt when X changes their DOM. From login to speaking &mdash; fully automated.</p>
+ </div>
+ <div class="feature-mockup">
+ <div class="mockup-bar">
+ <div class="mockup-dot"></div><div class="mockup-dot"></div><div class="mockup-dot"></div>
+ <div class="mockup-tabs">
+ <div class="mockup-tab active">Lifecycle</div>
+ <div class="mockup-tab">Selectors</div>
+ </div>
+ </div>
+ <div class="automation-layout">
+ <div class="automation-steps">
+ <div class="auto-step">
+ <div class="auto-step-num" style="background:rgba(99,102,241,0.15); color:#818cf8;">1</div>
+ <h4>Authenticate</h4>
+ <p>Cookie auth or credential-based login with 2FA support</p>
+ </div>
+ <div class="auto-step">
+ <div class="auto-step-num" style="background:rgba(232,123,53,0.15); color:#e87b35;">2</div>
+ <h4>Join Space</h4>
+ <p>Navigate to Space URL and enter as listener automatically</p>
+ </div>
+ <div class="auto-step">
+ <div class="auto-step-num" style="background:rgba(34,197,94,0.15); color:#4ade80;">3</div>
+ <h4>Request Mic</h4>
+ <p>Request speaker access and wait for host approval</p>
+ </div>
+ <div class="auto-step">
+ <div class="auto-step-num" style="background:rgba(244,63,94,0.15); color:#f43f5e;">4</div>
+ <h4>Speak</h4>
+ <p>Inject TTS audio through WebRTC peer connection</p>
+ </div>
+ </div>
+ <div class="fsm-bar">
+ <span style="font-size:0.75rem; color:var(--text-dim); font-weight:600; margin-right:8px;">FSM:</span>
+ <span class="fsm-state done">idle</span>
+ <span class="fsm-arrow">&rarr;</span>
+ <span class="fsm-state done">launching</span>
+ <span class="fsm-arrow">&rarr;</span>
+ <span class="fsm-state done">authenticating</span>
+ <span class="fsm-arrow">&rarr;</span>
+ <span class="fsm-state done">joining</span>
+ <span class="fsm-arrow">&rarr;</span>
+ <span class="fsm-state active">listening</span>
+ <span class="fsm-arrow">&rarr;</span>
+ <span class="fsm-state">speaking</span>
+ <span class="fsm-arrow">&rarr;</span>
+ <span class="fsm-state">leaving</span>
+ </div>
+ </div>
+ </div>
+ </div>
+ </section>
+
+ <!-- ═══ Feature Deep Dive 2: Audio Pipeline ═══ -->
+ <section class="feature-section">
+ <div class="container">
+ <div class="section-header">
+ <h2>Real-time Audio Pipeline</h2>
+ <p class="section-desc">Capture audio from X Spaces via WebRTC hooks. Process through VAD, silence detection, STT, LLM, TTS &mdash; then inject the response back into the Space.</p>
+ </div>
+ <div class="feature-mockup">
+ <div class="mockup-bar">
+ <div class="mockup-dot"></div><div class="mockup-dot"></div><div class="mockup-dot"></div>
+ <div class="mockup-tabs">
+ <div class="mockup-tab active">Pipeline</div>
+ <div class="mockup-tab">Middleware</div>
+ </div>
+ </div>
+ <div class="pipeline-layout">
+ <div class="pipeline-flow">
+ <div class="pipeline-card">
+ <h4>Speech-to-Text</h4>
+ <div class="sub">Groq Whisper / OpenAI Whisper</div>
+ <div class="metric">180ms</div>
+ <div class="metric-label">avg transcription latency</div>
+ <div class="pipeline-bar"><div class="pipeline-bar-fill" style="width:85%; background: linear-gradient(90deg, var(--accent-indigo), #818cf8);"></div></div>
+ </div>
+ <div class="pipeline-card">
+ <h4>LLM Processing</h4>
+ <div class="sub">OpenAI / Claude / Groq</div>
+ <div class="metric">1.2s</div>
+ <div class="metric-label">avg response generation</div>
+ <div class="pipeline-bar"><div class="pipeline-bar-fill" style="width:60%; background: linear-gradient(90deg, var(--accent-orange), #f59e0b);"></div></div>
+ </div>
+ <div class="pipeline-card">
+ <h4>Text-to-Speech</h4>
+ <div class="sub">ElevenLabs / OpenAI / Browser</div>
+ <div class="metric">320ms</div>
+ <div class="metric-label">avg synthesis latency</div>
+ <div class="pipeline-bar"><div class="pipeline-bar-fill" style="width:72%; background: linear-gradient(90deg, #22c55e, #4ade80);"></div></div>
+ </div>
+ </div>
+ <div class="middleware-row">
+ <span style="font-size:0.75rem; color:var(--text-dim); font-weight:600; margin-right:4px;">Middleware:</span>
+ <span class="mw-tag">before:stt</span>
+ <span class="mw-tag"><span class="arrow">&rarr;</span> after:stt</span>
+ <span class="mw-tag"><span class="arrow">&rarr;</span> before:llm</span>
+ <span class="mw-tag"><span class="arrow">&rarr;</span> after:llm</span>
+ <span class="mw-tag"><span class="arrow">&rarr;</span> before:tts</span>
+ <span class="mw-tag"><span class="arrow">&rarr;</span> after:tts</span>
+ </div>
+ </div>
+ </div>
+ </div>
+ </section>
+
+ <!-- ═══ Feature Deep Dive 3: Intelligence Layer ═══ -->
+ <section class="feature-section">
+ <div class="container">
+ <div class="section-header">
+ <h2>Intelligence Layer</h2>
+ <p class="section-desc">Speaker identification, topic tracking, sentiment analysis, and a decision engine that determines when your agent should respond.</p>
+ </div>
+ <div class="feature-mockup">
+ <div class="mockup-bar">
+ <div class="mockup-dot"></div><div class="mockup-dot"></div><div class="mockup-dot"></div>
+ <div class="mockup-tabs">
+ <div class="mockup-tab active">Intelligence</div>
+ <div class="mockup-tab">Decision Engine</div>
+ </div>
+ </div>
+ <div class="intel-layout">
+ <div class="intel-main">
+ <div class="intel-item">
+ <div class="intel-icon" style="background:rgba(99,102,241,0.15);">
+ <svg viewBox="0 0 24 24" fill="none" stroke="#818cf8" stroke-width="2"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>
+ </div>
+ <div>
+ <h4>Speaker Identification</h4>
+ <p>Attribute transcribed speech to individual speakers using audio fingerprinting and context cues.</p>
+ </div>
+ </div>
+ <div class="intel-item">
+ <div class="intel-icon" style="background:rgba(232,123,53,0.15);">
+ <svg viewBox="0 0 24 24" fill="none" stroke="#e87b35" stroke-width="2"><path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"/></svg>
+ </div>
+ <div>
+ <h4>Topic Tracking</h4>
+ <p>Monitors conversation topics in real-time. Detects topic shifts, maintains relevance scores, and provides context for the LLM.</p>
+ </div>
+ </div>
+ <div class="intel-item">
+ <div class="intel-icon" style="background:rgba(34,197,94,0.15);">
+ <svg viewBox="0 0 24 24" fill="none" stroke="#4ade80" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M8 14s1.5 2 4 2 4-2 4-2"/><line x1="9" y1="9" x2="9.01" y2="9"/><line x1="15" y1="9" x2="15.01" y2="9"/></svg>
+ </div>
+ <div>
+ <h4>Sentiment Analysis</h4>
+ <p>Detects emotional tone and conversation energy. Adjusts agent response style based on the room's mood.</p>
+ </div>
+ </div>
+ </div>
+ <div class="intel-sidebar">
+ <div class="sidebar-block">
+ <h4>Decision Signals</h4>
+ <div class="decision-bar"><span class="label">Directly addressed</span><span class="value high">Yes</span></div>
+ <div class="decision-bar"><span class="label">Is question</span><span class="value high">Yes</span></div>
+ <div class="decision-bar"><span class="label">Topic relevance</span><span class="value med">0.82</span></div>
+ <div class="decision-bar"><span class="label">Silence duration</span><span class="value low">1.2s</span></div>
+ <div class="decision-bar"><span class="label">Last spoke</span><span class="value low">45s ago</span></div>
+ </div>
+ <div class="sidebar-block">
+ <h4>Verdict</h4>
+ <div style="padding:12px 16px; border-radius:10px; background:rgba(34,197,94,0.1); border:1px solid rgba(34,197,94,0.2); text-align:center;">
+ <div style="font-size:1.1rem; font-weight:700; color:#4ade80;">RESPOND</div>
+ <div style="font-size:0.7rem; color:var(--text-dim); margin-top:4px;">Confidence: 0.91</div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </section>
+
+ <!-- ═══ Feature Deep Dive 4: Multi-Agent Teams ═══ -->
+ <section class="feature-section">
+ <div class="container">
+ <div class="section-header">
+ <h2>Multi-Agent Teams</h2>
+ <p class="section-desc">Deploy multiple AI agents with distinct personalities into the same X Space. Coordinated turn-taking ensures natural, flowing conversations.</p>
+ </div>
+ <div class="feature-mockup">
+ <div class="mockup-bar">
+ <div class="mockup-dot"></div><div class="mockup-dot"></div><div class="mockup-dot"></div>
+ <div class="mockup-tabs">
+ <div class="mockup-tab active">Team: AI Debate</div>
+ <div class="mockup-tab">Coordination</div>
+ </div>
+ </div>
+ <div class="team-layout">
+ <div class="team-header">
+ <h3>Active Team Session</h3>
+ <div class="team-badge">Live in Space</div>
+ </div>
+ <div class="team-agents">
+ <div class="team-agent">
+ <div class="team-agent-head">
+ <div class="team-agent-av" style="background:linear-gradient(135deg,#6366f1,#4f46e5);">O</div>
+ <div>
+ <div class="name">Optimist</div>
+ <div class="role">Claude &middot; ElevenLabs</div>
+ </div>
+ </div>
+ <p>Highlights opportunities and positive outcomes. Cites recent success stories and emerging trends.</p>
+ </div>
+ <div class="team-agent">
+ <div class="team-agent-head">
+ <div class="team-agent-av" style="background:linear-gradient(135deg,#f43f5e,#e11d48);">S</div>
+ <div>
+ <div class="name">Skeptic</div>
+ <div class="role">OpenAI &middot; OpenAI TTS</div>
+ </div>
+ </div>
+ <p>Challenges claims with data. Asks hard questions and identifies risks the group may be overlooking.</p>
+ </div>
+ <div class="team-agent">
+ <div class="team-agent-head">
+ <div class="team-agent-av" style="background:linear-gradient(135deg,#22c55e,#16a34a);">M</div>
+ <div>
+ <div class="name">Moderator</div>
+ <div class="role">Groq &middot; Piper TTS</div>
+ </div>
+ </div>
+ <p>Keeps discussion on track. Summarizes key points and ensures all perspectives get airtime.</p>
+ </div>
+ </div>
+ <div class="turn-bar">
+ <h4>Turn Queue</h4>
+ <div class="turn-queue">
+ <div class="turn-item speaking">
+ <span style="width:6px;height:6px;border-radius:50%;background:#e87b35;"></span>
+ Skeptic (speaking)
+ </div>
+ <span class="turn-arrow">&rarr;</span>
+ <div class="turn-item queued">Optimist</div>
+ <span class="turn-arrow">&rarr;</span>
+ <div class="turn-item queued">Moderator</div>
+ <span class="turn-arrow">&rarr;</span>
+ <div class="turn-item queued" style="opacity:0.5;">waiting...</div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </section>
+
+ <!-- ═══ Code Quickstart (from index) ═══ -->
+ <section class="code-section" id="code">
+ <div class="container">
+ <div class="code-split">
+ <div class="code-text">
+ <div class="sect-label">Quickstart</div>
+ <h3>Five lines to a live AI agent</h3>
+ <p>Install the SDK, configure your providers, point at a Space. The agent handles auth, joining, speaking, and error recovery.</p>
+ <ul class="check-list">
+ <li><span class="ck"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round"><polyline points="20 6 9 17 4 12"/></svg></span> Cookie or credential auth</li>
+ <li><span class="ck"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round"><polyline points="20 6 9 17 4 12"/></svg></span> Self-healing DOM selectors</li>
+ <li><span class="ck"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round"><polyline points="20 6 9 17 4 12"/></svg></span> Auto speaker request &amp; promotion</li>
+ <li><span class="ck"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round"><polyline points="20 6 9 17 4 12"/></svg></span> Error recovery &amp; reconnection</li>
+ <li><span class="ck"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round"><polyline points="20 6 9 17 4 12"/></svg></span> Full TypeScript types</li>
+ </ul>
+ </div>
+ <div class="code-frame">
+ <div class="code-frame-bar">
+ <span class="win-dot r"></span>
+ <span class="win-dot y"></span>
+ <span class="win-dot g"></span>
+ <span class="cf-name">agent.ts</span>
+ </div>
+ <pre><span class="k">import</span> { XSpaceAgent } <span class="k">from</span> <span class="s">'xspace-agent'</span>
+
+<span class="k">const</span> agent <span class="p">=</span> <span class="k">new</span> <span class="f">XSpaceAgent</span><span class="p">({</span>
+ name<span class="p">:</span> <span class="s">'aria'</span><span class="p">,</span>
+ personality<span class="p">:</span> <span class="s">'Friendly AI co-host'</span><span class="p">,</span>
+ llm<span class="p">:</span> <span class="p">{</span> provider<span class="p">:</span> <span class="s">'claude'</span> <span class="p">},</span>
+ stt<span class="p">:</span> <span class="p">{</span> provider<span class="p">:</span> <span class="s">'groq'</span> <span class="p">},</span>
+ tts<span class="p">:</span> <span class="p">{</span> provider<span class="p">:</span> <span class="s">'elevenlabs'</span> <span class="p">},</span>
+<span class="p">})</span>
+
+<span class="c">// Join a live Space — agent handles the rest</span>
+<span class="k">await</span> agent<span class="p">.</span><span class="f">join</span><span class="p">(</span><span class="s">'https://x.com/i/spaces/1eaK...'</span><span class="p">)</span>
+
+<span class="c">// Listen for state transitions</span>
+agent<span class="p">.</span><span class="f">on</span><span class="p">(</span><span class="s">'stateChange'</span><span class="p">,</span> <span class="p">(</span>s<span class="p">)</span> <span class="p">=></span> <span class="p">{</span>
+ console<span class="p">.</span><span class="f">log</span><span class="p">(</span><span class="s">`State: </span><span class="p">${</span>s<span class="p">}</span><span class="s">`</span><span class="p">)</span>
+<span class="p">})</span></pre>
+ </div>
+ </div>
+ </div>
+ </section>
+
+ <!-- ═══ Benefits ═══ -->
+ <section class="benefits" id="benefits">
+ <div class="container">
+ <h2>Benefits of use</h2>
+ <div class="benefits-grid">
+ <div class="benefit-card">
+ <h3>Full Automation</h3>
+ <p>From browser launch to speaking in a Space &mdash; zero manual steps. Cookie auth, self-healing selectors, and FSM-driven lifecycle.</p>
+ <div class="benefit-visual">
+ <div class="state-flow">
+ <span class="state-node" style="background:rgba(99,102,241,0.1);color:#818cf8;border-color:rgba(99,102,241,0.2);">idle</span>
+ <span class="state-arrow">&rarr;</span>
+ <span class="state-node" style="background:rgba(99,102,241,0.1);color:#818cf8;border-color:rgba(99,102,241,0.2);">auth</span>
+ <span class="state-arrow">&rarr;</span>
+ <span class="state-node" style="background:rgba(99,102,241,0.1);color:#818cf8;border-color:rgba(99,102,241,0.2);">join</span>
+ <span class="state-arrow">&rarr;</span>
+ <span class="state-node active">listen</span>
+ <span class="state-arrow">&rarr;</span>
+ <span class="state-node">speak</span>
+ </div>
+ </div>
+ </div>
+ <div class="benefit-card">
+ <h3>Pluggable Providers</h3>
+ <p>Swap LLM, STT, and TTS providers via config. OpenAI, Claude, Groq for LLM. ElevenLabs, OpenAI, Piper, browser for TTS.</p>
+ <div class="benefit-visual">
+ <div style="display:flex; gap:8px; flex-wrap:wrap;">
+ <span style="padding:4px 12px; border-radius:6px; background:rgba(99,102,241,0.1); color:#818cf8; font-size:0.75rem; font-weight:600;">LLM</span>
+ <span style="padding:4px 12px; border-radius:6px; background:rgba(232,123,53,0.1); color:#e87b35; font-size:0.75rem; font-weight:600;">STT</span>
+ <span style="padding:4px 12px; border-radius:6px; background:rgba(34,197,94,0.1); color:#4ade80; font-size:0.75rem; font-weight:600;">TTS</span>
+ <span style="padding:4px 12px; border-radius:6px; background:rgba(244,63,94,0.1); color:#f43f5e; font-size:0.75rem; font-weight:600;">Router</span>
+ </div>
+ </div>
+ </div>
+ <div class="benefit-card">
+ <h3>Developer Experience</h3>
+ <p>TypeScript-first with full type safety. CLI for quick setup. Admin panel for real-time monitoring. 10 runnable examples included.</p>
+ <div class="benefit-visual">
+ <div style="font-family:'JetBrains Mono',monospace; font-size:0.8rem; color:var(--text-dim);">
+ <span style="color:var(--accent-green);">$</span> npx xspace-agent init<br>
+ <span style="color:var(--accent-green);">$</span> npx xspace-agent start
+ </div>
+ </div>
+ </div>
+ <div class="benefit-card">
+ <h3>Open Source</h3>
+ <p>MIT licensed, published to npm. Three packages: core SDK, server admin panel, and CLI. No vendor lock-in, self-host anywhere.</p>
+ <div class="benefit-visual">
+ <div style="display:flex; gap:8px; flex-wrap:wrap;">
+ <span style="padding:4px 12px; border-radius:6px; background:rgba(255,255,255,0.05); color:var(--text-muted); font-size:0.75rem; font-family:'JetBrains Mono',monospace;">xspace-agent</span>
+ <span style="padding:4px 12px; border-radius:6px; background:rgba(255,255,255,0.05); color:var(--text-muted); font-size:0.75rem; font-family:'JetBrains Mono',monospace;">@xspace/server</span>
+ <span style="padding:4px 12px; border-radius:6px; background:rgba(255,255,255,0.05); color:var(--text-muted); font-size:0.75rem; font-family:'JetBrains Mono',monospace;">@xspace/cli</span>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </section>
+
+ <!-- ═══ Testimonials ═══ -->
+ <section class="testimonials" id="community">
+ <div class="container">
+ <h2>What developers say</h2>
+ <div class="testimonials-grid">
+ <div class="testimonial-rating">
+ <div>
+ <span class="rating-value">4.8</span>
+ <span class="rating-star">&#9733;</span>
+ </div>
+ <div class="rating-count">Based on 62 Reviews</div>
+ <a href="#" class="rating-link">All Reviews &rarr;</a>
+ </div>
+ <div class="testimonial-card">
+ <p class="testimonial-quote">We deployed three agents into a weekly X Space for our community. The self-healing selectors mean we haven't touched the config in months even as X keeps changing their UI."</p>
+ <div class="testimonial-author">
+ <div class="testimonial-author-avatar">SK</div>
+ <div class="testimonial-author-info">
+ <div class="name">Sarah Kim</div>
+ <div class="role">DevRel Lead at AudioStack</div>
+ </div>
+ </div>
+ </div>
+ <div class="testimonial-card">
+ <p class="testimonial-quote">The multi-agent debate format is a killer feature. We run weekly Spaces with an optimist and a skeptic AI discussing our industry &mdash; engagement is through the roof."</p>
+ <div class="testimonial-author">
+ <div class="testimonial-author-avatar">AR</div>
+ <div class="testimonial-author-info">
+ <div class="name">Alex Rivera</div>
+ <div class="role">Founder at SpaceHost</div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="testimonial-nav">
+ <button>&larr;</button>
+ <button>&rarr;</button>
+ </div>
+ </div>
+ </section>
+
+ <!-- ═══ CTA ═══ -->
+ <section class="cta-section">
+ <div class="container">
+ <div class="cta-box">
+ <div class="label">Start building today</div>
+ <h2>What will your agents say?</h2>
+ <div class="cta-btns">
+ <a href="/admin" class="btn btn-primary" style="font-size:1rem; padding:14px 32px;">Open Admin Panel</a>
+ <a href="/bob" class="btn btn-outline" style="font-size:1rem; padding:14px 32px;">Bob</a>
+ <a href="/alice" class="btn btn-outline" style="font-size:1rem; padding:14px 32px;">Alice</a>
+ </div>
+ </div>
+ </div>
+ </section>
+
+ <!-- ═══ Footer ═══ -->
+ <footer class="footer">
+ <div class="container">
+ <div class="footer-top">
+ <div class="footer-brand">
+ <a href="#" class="nav-logo" style="margin-bottom:4px;">
+ <svg width="28" height="28" viewBox="0 0 32 32" fill="none"><rect x="4" y="4" width="24" height="24" rx="6" stroke="currentColor" stroke-width="2"/><circle cx="12" cy="16" r="3" fill="currentColor" opacity="0.4"/><circle cx="20" cy="16" r="3" fill="currentColor" opacity="0.4"/><path d="M12 16h8" stroke="currentColor" stroke-width="1.5" stroke-dasharray="2 2"/></svg>
+ xspace-agent
+ </a>
+ <p>Open-source AI agent SDK for X Spaces.<br>Build the future of live audio.</p>
+ </div>
+ <div class="footer-col">
+ <h4>Product</h4>
+ <a href="#features">Features</a>
+ <a href="#">Documentation</a>
+ <a href="#">API Reference</a>
+ <a href="#">Examples</a>
+ </div>
+ <div class="footer-col">
+ <h4>Packages</h4>
+ <a href="#">xspace-agent (core)</a>
+ <a href="#">@xspace/server</a>
+ <a href="#">@xspace/cli</a>
+ <a href="#">Widget</a>
+ </div>
+ <div class="footer-col">
+ <h4>Community</h4>
+ <a href="#">GitHub</a>
+ <a href="#">Discord</a>
+ <a href="#">Contributing</a>
+ <a href="#">License (MIT)</a>
+ </div>
+ </div>
+ <div class="footer-bottom">
+ <span>&copy; xspace-agent, 2025. All rights reserved.</span>
+ <div class="footer-bottom-links">
+ <a href="#">Terms of Service</a>
+ <a href="#">Privacy Policy</a>
+ </div>
+ </div>
+ </div>
+ </footer>
+
+ <script>
+ // Scroll-aware navbar
+ const navbar = document.getElementById('navbar');
+ window.addEventListener('scroll', () => {
+ navbar.classList.toggle('scrolled', window.scrollY > 40);
+ });
+
+ // Floating particles
+ const pc = document.getElementById('particles');
+ for (let i = 0; i < 25; i++) {
+ const p = document.createElement('div');
+ p.className = 'particle';
+ p.style.left = Math.random() * 100 + '%';
+ p.style.animationDuration = (18 + Math.random() * 25) + 's';
+ p.style.animationDelay = (Math.random() * 20) + 's';
+ p.style.width = (2 + Math.random() * 2) + 'px';
+ p.style.height = p.style.width;
+ pc.appendChild(p);
+ }
+
+ // Scroll-triggered fade-in animations
+ const obs = new IntersectionObserver((entries) => {
+ entries.forEach(e => {
+ if (e.isIntersecting) { e.target.style.opacity = '1'; e.target.style.transform = 'translateY(0)'; }
+ });
+ }, { threshold: 0.1 });
+
+ document.querySelectorAll('.feature-mockup, .benefit-card, .testimonial-card, .testimonial-rating, .feat-grid, .code-frame').forEach(el => {
+ el.style.opacity = '0';
+ el.style.transform = 'translateY(30px)';
+ el.style.transition = 'opacity 0.7s ease, transform 0.7s ease';
+ obs.observe(el);
+ });
+
+ // Mini waveform in hero product
+ const mw = document.getElementById('miniWave');
+ if (mw) {
+ for (let i = 0; i < 16; i++) {
+ const s = document.createElement('span');
+ s.style.animationDelay = `${i * 0.07}s`;
+ mw.appendChild(s);
+ }
+ }
+ </script>
+
+ <!-- XSpace Chat Widget -->
+ <script src="/xspace-widget.umd.js"
+ data-server-url=""
+ data-agent-id="agent-1"
+ data-theme="dark"
+ data-position="bottom-right">
+ </script>
+</body>
+</html>
+
+