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.

feat: consolidate home page, add home-classic, route + config updates

nirholas07872f6bbf13
diff --git a/pages/agent-next.html b/pages/agent-next.html
index 2d58933c6..b0120b251 100644
--- a/pages/agent-next.html
+++ b/pages/agent-next.html
@@ -594,13 +594,13 @@
<header class="nav">
<div class="nav-inner">
- <a class="brand" href="/home-next">
+ <a class="brand" href="/">
<span class="brand-dot"></span>
<span>three.ws</span>
</a>
<nav class="nav-main" aria-label="Primary">
<a href="/create">Build</a>
- <a href="/home-next#embed">Embed</a>
+ <a href="/#embed">Embed</a>
<a href="/discover">Discover</a>
<a href="/pricing">Pricing</a>
<a href="/docs">Docs</a>
diff --git a/pages/discover-next.html b/pages/discover-next.html
index 489e753fd..d7118712a 100644
--- a/pages/discover-next.html
+++ b/pages/discover-next.html
@@ -190,13 +190,13 @@
<body>
<header class="nav">
<div class="nav-inner">
- <a class="brand" href="/home-next">
+ <a class="brand" href="/">
<span class="brand-dot"></span>
<span>three.ws</span>
</a>
<nav class="nav-links">
<a href="/create">Build</a>
- <a href="/home-next#embed">Embed</a>
+ <a href="/#embed">Embed</a>
<a href="/discover-next" class="active">Discover</a>
<a href="/pricing">Pricing</a>
<a href="/docs">Docs</a>
diff --git a/pages/home-classic.html b/pages/home-classic.html
new file mode 100644
index 000000000..cd316b519
--- /dev/null
+++ b/pages/home-classic.html
@@ -0,0 +1,1573 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+ <title>three.ws — Where AI Agents Come Alive</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
+ <meta name="author" content="nirholas" />
+ <meta
+ name="description"
+ content="Give any AI agent a 3D body, a voice, and an on-chain identity. One GLB, any LLM, owned on Solana. Earn USDC with every interaction."
+ />
+ <meta name="theme-color" content="#000000" />
+ <meta name="mobile-web-app-capable" content="yes" />
+ <meta name="apple-mobile-web-app-capable" content="yes" />
+ <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
+ <meta name="apple-mobile-web-app-title" content="three.ws" />
+
+ <meta property="og:type" content="website" />
+ <meta property="og:site_name" content="three.ws" />
+ <meta property="og:title" content="three.ws — Where AI Agents Come Alive" />
+ <meta
+ property="og:description"
+ content="Give any AI agent a 3D body, a voice, and an on-chain identity. One GLB, any LLM, owned on Solana. Earn USDC with every interaction."
+ />
+ <meta property="og:url" content="https://three.ws/" />
+ <meta property="og:image" content="https://three.ws/og-image.png" />
+ <meta property="og:image:width" content="1200" />
+ <meta property="og:image:height" content="630" />
+
+ <meta name="twitter:card" content="summary_large_image" />
+ <meta name="twitter:title" content="three.ws — Where AI Agents Come Alive" />
+ <meta
+ name="twitter:description"
+ content="Give any AI agent a 3D body, a voice, and an on-chain identity. One GLB, any LLM, owned on Solana. Earn USDC with every interaction."
+ />
+ <meta name="twitter:image" content="https://three.ws/og-image.png" />
+
+ <link rel="canonical" href="https://three.ws/" />
+ <script>
+ // Forward legacy /#model=… (and /#agent=, /#onchain=, /#widget=) viewer links to /app,
+ // which is where the Three.js viewer actually mounts. home.html is the marketing page
+ // and ignores these hashes, so without this redirect the user lands on home with no model.
+ (function () {
+ var h = location.hash || '';
+ if (/^#(?:model|agent|onchain|widget|kiosk|preset|brain|deploy|type)=/.test(h)) {
+ location.replace('/app' + h);
+ }
+ })();
+ </script>
+ <link rel="shortcut icon" href="/favicon.ico" />
+ <link rel="apple-touch-icon" href="/pwa-192x192.png" />
+ <link rel="stylesheet" href="/style.css" />
+ <link rel="stylesheet" href="/nav.css" />
+ <link rel="stylesheet" href="/home.css" />
+ <link rel="stylesheet" href="/fonts/fonts.css" />
+ <!-- mobile.css must load last so its rules win on equal specificity -->
+ <link rel="stylesheet" href="/mobile.css" />
+ <!-- home-polish and footer styles are non-critical (below-fold / decorative);
+ load them after first paint to avoid blocking LCP. -->
+ <link rel="stylesheet" href="/home-polish.css" media="print" onload="this.media='all'" />
+ <link rel="stylesheet" href="/footer.css" media="print" onload="this.media='all'" />
+ <script defer src="/footer-newsletter.js"></script>
+ <script defer src="/home-polish.js"></script>
+ <script
+ type="module"
+ src="https://ajax.googleapis.com/ajax/libs/model-viewer/4.0.0/model-viewer.min.js"
+ ></script>
+ <script src="/fluid-particles.js" defer></script>
+ <script type="module" src="/src/home-act2-viewer.js"></script>
+
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@graph": [
+ {
+ "@type": "WebSite",
+ "@id": "https://three.ws/#website",
+ "url": "https://three.ws/",
+ "name": "three.ws",
+ "description": "Where AI agents come alive. Give any AI agent a 3D body, a voice, and an on-chain identity.",
+ "publisher": { "@id": "https://three.ws/#org" },
+ "potentialAction": {
+ "@type": "SearchAction",
+ "target": "https://three.ws/discover?q={search_term_string}",
+ "query-input": "required name=search_term_string"
+ }
+ },
+ {
+ "@type": "Organization",
+ "@id": "https://three.ws/#org",
+ "name": "three.ws",
+ "url": "https://three.ws/",
+ "logo": "https://three.ws/icon.png",
+ "sameAs": [
+ "https://github.com/nirholas/three.ws",
+ "https://x.com/three_ws"
+ ]
+ },
+ {
+ "@type": "SoftwareApplication",
+ "name": "three.ws",
+ "applicationCategory": "DeveloperApplication",
+ "applicationSubCategory": "EmbodiedAgentPlatform",
+ "operatingSystem": "Web",
+ "browserRequirements": "Requires WebGL2",
+ "offers": {
+ "@type": "Offer",
+ "price": "0",
+ "priceCurrency": "USD"
+ }
+ }
+ ]
+ }
+ </script>
+ </head>
+ <body class="home-page">
+ <div class="cursor" id="cursor" aria-hidden="true"></div>
+ <a href="#main-content" class="h-skip-link">Skip to main content</a>
+ <header>
+ <h1>
+ <a href="/" aria-label="three.ws home"
+ ><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span
+ class="wordmark-dot"
+ aria-hidden="true"
+ ></span
+ >three.ws</a
+ >
+ </h1>
+ <div id="nav-container"></div>
+ </header>
+ <script src="/nav.js"></script>
+
+ <main id="main-content" class="home-parallax">
+ <!-- ── Hero (parallax act) ── -->
+ <section class="h-hero-act">
+ <!-- Depth 8: fluid particles + nebula -->
+ <div class="h-layer" style="--depth: 8" aria-hidden="true">
+ <div class="h-layer-nebula"></div>
+ <canvas id="home-fluid-canvas" class="h-fluid-canvas"></canvas>
+ </div>
+ <!-- Depth 4: perspective grid -->
+ <div class="h-layer" style="--depth: 4" aria-hidden="true">
+ <div class="h-hero-grid"></div>
+ </div>
+ <!-- Depth 3: ghost model drifting in background -->
+ <div class="h-layer" style="--depth: 3" aria-hidden="true">
+ <model-viewer
+ class="h-ghost-model"
+ src="/animations/robotexpressive.glb"
+ auto-rotate
+ auto-rotate-delay="0"
+ rotation-per-second="5deg"
+ interaction-prompt="none"
+ camera-controls="false"
+ disable-zoom
+ shadow-intensity="0"
+ exposure="0.5"
+ environment-image="neutral"
+ camera-orbit="15deg 80deg 4m"
+ field-of-view="45deg"
+ loading="lazy"
+ ></model-viewer>
+ </div>
+ <!-- Depth 2: atmosphere -->
+ <div class="h-layer" style="--depth: 2" aria-hidden="true">
+ <div class="h-hero-mesh"></div>
+ <div class="h-hero-glow-a"></div>
+ <div class="h-hero-glow-b"></div>
+ </div>
+ <!-- Depth 1: main avatar that waves on load and tracks the cursor -->
+ <div class="h-layer" style="--depth: 1">
+ <div class="h-avatar-stage">
+ <div class="h-avatar-wrap">
+ <div class="h-avatar-ring"></div>
+ <div class="h-avatar-glow"></div>
+ <canvas
+ id="hero-avatar"
+ class="h-avatar-viewer"
+ aria-label="three.ws — interactive 3D agent. Click for surprises."
+ ></canvas>
+ </div>
+ </div>
+ </div>
+ <!-- Depth 0.5: vignette closest to camera -->
+ <div class="h-layer" style="--depth: 0.5" aria-hidden="true">
+ <div class="h-vignette"></div>
+ </div>
+
+ <!-- Sticky text pinned to bottom-left — same pattern as features page -->
+ <div class="h-hero-text">
+ <div class="h-eyebrow h-reveal">
+ <span class="h-eyebrow-dot"></span>
+ <span>The 3D layer for onchain AI agents</span>
+ </div>
+ <h2 class="h-title h-reveal">Where AI Agents<br />Come <em>Alive</em>.</h2>
+ <p class="h-subtitle h-reveal">
+ Give any AI agent a 3D body, a voice, and an on-chain identity.
+ One GLB. Any LLM. Owned on Solana. Earn USDC with every interaction.
+ </p>
+ <div class="h-cta-row h-reveal">
+ <a href="/create" class="h-btn-primary">
+ <span>Get Started Free</span>
+ <span class="arrow">→</span>
+ </a>
+ <a href="/marketplace" class="h-btn-ghost">Browse Marketplace</a>
+ </div>
+ <ul class="h-standards h-reveal" aria-label="Supported formats and standards">
+ <li>glTF 2.0</li>
+ <li>GLB</li>
+ <li>Solana</li>
+ <li>Metaplex Core</li>
+ <li>A2A</li>
+ <li>MCP</li>
+ <li>x402</li>
+ </ul>
+ </div>
+
+ <div class="h-scroll-hint" aria-hidden="true">
+ <span>scroll</span>
+ <span class="h-scroll-line"></span>
+ </div>
+ </section>
+
+ <!-- ── Traction stats bar ── -->
+ <section class="h-traction" aria-label="Platform traction">
+ <div class="h-traction-inner">
+ <div class="h-traction-stat" data-traction-key="agents">
+ <span class="h-traction-val" data-traction-val="agents">—</span>
+ <span class="h-traction-label">Agents created</span>
+ </div>
+ <div class="h-traction-divider" aria-hidden="true"></div>
+ <div class="h-traction-stat" data-traction-key="views">
+ <span class="h-traction-val" data-traction-val="views">—</span>
+ <span class="h-traction-label">Widget views</span>
+ </div>
+ <div class="h-traction-divider" aria-hidden="true"></div>
+ <div class="h-traction-stat" data-traction-key="chats">
+ <span class="h-traction-val" data-traction-val="chats">—</span>
+ <span class="h-traction-label">Conversations</span>
+ </div>
+ <div class="h-traction-divider" aria-hidden="true"></div>
+ <div class="h-traction-stat" data-traction-key="countries">
+ <span class="h-traction-val" data-traction-val="countries">—</span>
+ <span class="h-traction-label">Countries reached</span>
+ </div>
+ <div class="h-traction-divider" aria-hidden="true"></div>
+ <div class="h-traction-stat" data-traction-key="chains">
+ <span class="h-traction-val" data-traction-val="chains">—</span>
+ <span class="h-traction-label">Chains supported</span>
+ </div>
+ </div>
+ </section>
+
+ <!-- ── Pillars transition band (between hero and Act 2) ── -->
+ <section class="h-pillars" aria-label="What you get">
+ <div class="h-pillars-inner">
+ <article class="h-pillar h-reveal">
+ <span class="h-pillar-num">01 / Identity</span>
+ <h3>A 3D body for any agent</h3>
+ <p>
+ Any glTF model becomes a fully rendered, animated avatar in the
+ browser — embeddable in a single tag, on any site.
+ </p>
+ </article>
+ <article class="h-pillar h-reveal">
+ <span class="h-pillar-num">02 / Intelligence</span>
+ <h3>Your stack, your brain</h3>
+ <p>
+ Connect Claude, GPT, Gemini, or your own model over MCP or A2A.
+ Real-time expression and voice ride on top — no rewrites to your
+ existing agent.
+ </p>
+ </article>
+ <article class="h-pillar h-reveal">
+ <span class="h-pillar-num">03 / Ownership</span>
+ <h3>Owned on Solana</h3>
+ <p>
+ Mint a Metaplex Core asset and your agent becomes a verifiable,
+ portable identity — discoverable by any A2A or MCP client.
+ Your agent, your keys.
+ </p>
+ </article>
+ </div>
+ </section>
+
+ <!-- ── How it works ── -->
+ <section class="h-journey" aria-label="How it works">
+ <div class="h-journey-inner">
+ <div class="h-journey-header h-reveal">
+ <p class="h-section-label">How it works</p>
+ <h2 class="h-journey-title">From selfie to<br /><em>earning agent</em> in four steps.</h2>
+ </div>
+ <ol class="h-journey-steps">
+ <li class="h-journey-step h-reveal">
+ <a href="/create" class="h-journey-card">
+ <div class="h-jc-num">01</div>
+ <div class="h-jc-icon" aria-hidden="true">
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
+ <circle cx="12" cy="8" r="4"/>
+ <path d="M4 20c0-4 3.6-7 8-7s8 3 8 7"/>
+ <path d="M16 3.5a4 4 0 010 9"/>
+ </svg>
+ </div>
+ <div class="h-jc-body">
+ <h3>Create your avatar</h3>
+ <p>Snap a selfie or upload a GLB. three.ws renders a full-body 3D agent in the browser — no software to install.</p>
+ </div>
+ <span class="h-jc-cta">Start creating →</span>
+ </a>
+ </li>
+ <li class="h-journey-step h-reveal">
+ <a href="/dashboard/agents" class="h-journey-card">
+ <div class="h-jc-num">02</div>
+ <div class="h-jc-icon" aria-hidden="true">
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
+ <rect x="5" y="2" width="14" height="14" rx="3"/>
+ <circle cx="9" cy="8" r="1.2"/>
+ <circle cx="15" cy="8" r="1.2"/>
+ <path d="M9 11.5h6M2 19l3-3h14l3 3v2a1 1 0 01-1 1H3a1 1 0 01-1-1v-2z"/>
+ </svg>
+ </div>
+ <div class="h-jc-body">
+ <h3>Build your agent</h3>
+ <p>Give your avatar a name, on-chain identity, and AI brain. Connect Claude, GPT, or your own model over MCP or A2A — no rewrites required.</p>
+ </div>
+ <span class="h-jc-cta">Configure agent →</span>
+ </a>
+ </li>
+ <li class="h-journey-step h-reveal">
+ <a href="/dashboard/widgets" class="h-journey-card">
+ <div class="h-jc-num">03</div>
+ <div class="h-jc-icon" aria-hidden="true">
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
+ <rect x="2" y="3" width="9" height="9" rx="1.5"/>
+ <rect x="13" y="3" width="9" height="9" rx="1.5"/>
+ <rect x="2" y="14" width="9" height="9" rx="1.5"/>
+ <rect x="13" y="14" width="9" height="9" rx="1.5"/>
+ </svg>
+ </div>
+ <div class="h-jc-body">
+ <h3>Embed anywhere</h3>
+ <p>Drop a single <code>&lt;threews-avatar&gt;</code> tag on any site. Chat widget, floating button, full-screen — five widget types, one line of HTML.</p>
+ </div>
+ <span class="h-jc-cta">Create widget →</span>
+ </a>
+ </li>
+ <li class="h-journey-step h-reveal">
+ <a href="/dashboard/monetize" class="h-journey-card">
+ <div class="h-jc-num">04</div>
+ <div class="h-jc-icon" aria-hidden="true">
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
+ <circle cx="12" cy="12" r="8.5"/>
+ <path d="M12 7v10M9 9.5h4.5a2.5 2.5 0 010 5H10a2.5 2.5 0 000 5H14"/>
+ </svg>
+ </div>
+ <div class="h-jc-body">
+ <h3>Start earning</h3>
+ <p>Charge per message, set a subscription, or accept tips in USDC. Your agent earns while you sleep — withdrawals land in your Solana wallet.</p>
+ </div>
+ <span class="h-jc-cta">Set up monetization →</span>
+ </a>
+ </li>
+ </ol>
+ <div class="h-journey-footer h-reveal">
+ <a href="/create" class="h-btn-primary">
+ <span>Build your agent now</span>
+ <span class="arrow">→</span>
+ </a>
+ </div>
+ </div>
+ </section>
+
+ <!-- ── Act 2: Pick & Animate ── -->
+ <section class="h-act h-act--animate" data-act="2" id="pick-animate">
+ <div class="h-act-warp h-act-warp--amber" aria-hidden="true"></div>
+ <div class="h-layer" style="--depth: 8" aria-hidden="true">
+ <div class="h-layer-bg h-layer-bg--amber"></div>
+ <canvas
+ class="h-star-canvas"
+ data-role="star-canvas"
+ data-tint="255,190,80"
+ data-count="200"
+ ></canvas>
+ </div>
+ <div class="h-layer" style="--depth: 4" aria-hidden="true">
+ <svg
+ class="h-layer-words"
+ viewBox="0 0 1600 900"
+ preserveAspectRatio="xMidYMid slice"
+ role="presentation"
+ >
+ <g
+ fill="rgba(255,200,80,0.13)"
+ font-family="'Space Grotesk','Inter',sans-serif"
+ font-weight="600"
+ >
+ <text x="80" y="200" font-size="52">Dance</text>
+ <text x="1100" y="160" font-size="44">Wave</text>
+ <text x="200" y="710" font-size="44">Jump</text>
+ <text x="980" y="760" font-size="40">ThumbsUp</text>
+ <text x="560" y="440" font-size="96" fill="rgba(255,255,255,0.05)">
+ Idle
+ </text>
+ <text x="55" y="860" font-size="40">Punch</text>
+ <text x="1260" y="520" font-size="48">Run</text>
+ </g>
+ </svg>
+ </div>
+ <div class="h-layer" style="--depth: 2" aria-hidden="true">
+ <div class="h-layer-orb h-layer-orb--amber"></div>
+ </div>
+ <div class="h-layer" style="--depth: 1">
+ <div class="h-avatar-stage">
+ <div class="h-avatar-wrap">
+ <canvas id="home-act2-canvas" class="h-avatar-viewer"></canvas>
+ </div>
+ </div>
+ </div>
+ <div class="h-layer" style="--depth: 0.5" aria-hidden="true">
+ <div class="h-vignette"></div>
+ </div>
+
+ <div class="h-act-text">
+ <div class="h-act-eyebrow">
+ <span class="h-act-dot"></span>
+ <span>Pick &amp; animate</span>
+ </div>
+ <h2 class="h-act-title">Your agent.<br /><em>Any move.</em></h2>
+ <p class="h-act-lede">
+ Choose an avatar. Trigger any animation. The same renderer ships in
+ your embed.
+ </p>
+
+ <div class="h-avatar-picker" role="group" aria-label="Choose avatar">
+ <button
+ class="h-av-opt"
+ data-src="/animations/robotexpressive.glb"
+ aria-pressed="true"
+ >
+ Robot
+ </button>
+ <button
+ class="h-av-opt"
+ data-src="/animations/soldier.glb"
+ aria-pressed="false"
+ >
+ Soldier
+ </button>
+ <button class="h-av-opt" data-src="/avatars/cz.glb" aria-pressed="false">
+ CZ
+ </button>
+ </div>
+
+ <div
+ class="h-anim-chips"
+ role="group"
+ aria-label="Trigger animation"
+ data-role="anim-chips"
+ ></div>
+
+ <div class="h-act-cta">
+ <a href="/create" class="h-btn-primary"
+ ><span>Create your agent</span><span class="arrow">→</span></a
+ >
+ </div>
+ </div>
+ </section>
+
+ <!-- ── Act 3: Deploy on-chain ── -->
+ <section class="h-act h-act--deploy" data-act="3" id="deploy-act">
+ <div class="h-act-warp h-act-warp--mint" aria-hidden="true"></div>
+ <div class="h-layer" style="--depth: 8" aria-hidden="true">
+ <div class="h-layer-bg h-layer-bg--mint"></div>
+ <canvas
+ class="h-star-canvas"
+ data-role="star-canvas"
+ data-tint="110,231,183"
+ data-count="200"
+ ></canvas>
+ </div>
+
+ <div class="h-layer" style="--depth: 2" aria-hidden="true">
+ <div class="h-layer-orb h-layer-orb--mint"></div>
+ </div>
+ <div class="h-layer" style="--depth: 1" aria-hidden="true">
+ <div class="h-avatar-stage h-avatar-stage--trio">
+ <div class="h-avatar-wrap h-avatar-wrap--ghost h-avatar-wrap--trio">
+ <canvas
+ id="act3-avatar-a"
+ class="h-avatar-viewer h-avatar-viewer--tall"
+ ></canvas>
+ </div>
+ <div class="h-avatar-wrap h-avatar-wrap--ghost h-avatar-wrap--trio">
+ <canvas
+ id="act3-avatar-b"
+ class="h-avatar-viewer h-avatar-viewer--tall"
+ ></canvas>
+ </div>
+ <div class="h-avatar-wrap h-avatar-wrap--ghost h-avatar-wrap--trio">
+ <canvas
+ id="act3-avatar-c"
+ class="h-avatar-viewer h-avatar-viewer--tall"
+ ></canvas>
+ </div>
+ </div>
+ </div>
+ <div class="h-layer" style="--depth: 0.5" aria-hidden="true">
+ <div class="h-vignette"></div>
+ </div>
+
+ <div class="h-act-text">
+ <div class="h-act-eyebrow">
+ <span class="h-act-dot h-act-dot--mint"></span>
+ <span>Metaplex native</span>
+ </div>
+ <h2 class="h-act-title h-act-title--mint">
+ One transaction.<br /><em>One identity.</em>
+ </h2>
+ <p class="h-act-lede">
+ One Solana transaction. A portable, verifiable agentId every A2A or
+ MCP client can find.
+ </p>
+
+ <form class="h-deploy-form" id="home-deploy-form" action="/deploy" method="get">
+ <div class="h-form-row">
+ <label class="h-form-label" for="agent-name-home">Agent name</label>
+ <input
+ id="agent-name-home"
+ name="name"
+ class="h-form-input"
+ type="text"
+ placeholder="my-agent"
+ autocomplete="off"
+ spellcheck="false"
+ />
+ </div>
+ <div class="h-form-row">
+ <label class="h-form-label" for="network-home">Network</label>
+ <select id="network-home" name="network" class="h-form-select">
+ <option value="mainnet-beta" selected>Solana Mainnet</option>
+ <option value="devnet">Solana Devnet</option>
+ </select>
+ </div>
+ <div class="h-deploy-stats">
+ <div>
+ <span class="h-stat-label">Chain</span
+ ><span class="h-stat-val">Solana</span>
+ </div>
+ <div>
+ <span class="h-stat-label">Standard</span
+ ><span class="h-stat-val">Metaplex Core</span>
+ </div>
+ <div>
+ <span class="h-stat-label">Fee</span
+ ><span class="h-stat-val">~$0.01</span>
+ </div>
+ </div>
+ <button type="submit" class="h-btn-primary h-btn-deploy">
+ <span>Mint your agent</span>
+ <span class="arrow">→</span>
+ </button>
+ </form>
+ </div>
+ </section>
+
+ <!-- ── Bento feature grid ── -->
+ <section class="h-bento-section">
+ <div class="h-bento-header h-reveal">
+ <p class="h-section-label">What you get</p>
+ <h2 class="h-section-title">
+ Everything an agent needs<br />to exist in the world.
+ </h2>
+ </div>
+ <div class="h-bento-grid">
+ <!-- Large card: 3D viewer + inline animation panel -->
+ <div class="h-bento-card h-bento-card--lg h-reveal">
+ <div class="h-bento-visual">
+ <canvas id="bento-cz-canvas" class="h-bento-cz-canvas"></canvas>
+ </div>
+ <div class="h-bento-anim-panel" data-role="bento-anim-panel">
+ <div class="h-bento-anim-header">
+ <span class="h-bento-anim-title">Animations</span>
+ <button
+ type="button"
+ class="h-bento-anim-stop"
+ data-role="bento-anim-stop"
+ title="Stop all"
+ >
+ ⏹
+ </button>
+ </div>
+ <div class="h-bento-anim-grid" data-role="bento-anim-grid"></div>
+ </div>
+ <div class="h-bento-body">
+ <span class="h-bento-tag">Viewer</span>
+ <h3>WebGL rendering, zero install.</h3>
+ <p>
+ Drag any GLB into the browser. Full animations, lighting, and
+ materials — instantly, on any device.
+ </p>
+ <a href="/app" class="h-feature-link">Open viewer →</a>
+ </div>
+ </div>
+ <!-- Small cards -->
+ <div class="h-bento-card h-reveal">
+ <div class="h-bento-body">
+ <span class="h-bento-tag">Embed</span>
+ <h3>One tag. Any site.</h3>
+ <p>Drop a web component into Notion, Ghost, WordPress, Framer, or your own app — no SDK required.</p>
+ <div class="h-bento-code">
+ <span class="tag">&lt;agent-3d</span>
+ <br />&nbsp;&nbsp;<span class="attr">agent-id</span>=<span
+ class="val"
+ >"3DAg…uPL"</span
+ >
+ <br /><span class="tag">&gt;&lt;/agent-3d&gt;</span>
+ </div>
+ </div>
+ </div>
+ <div class="h-bento-card h-reveal">
+ <div class="h-bento-body">
+ <span class="h-bento-tag h-bento-tag--mint">On-chain</span>
+ <h3>Verifiable identity.</h3>
+ <p>
+ Metaplex Core asset on Solana. One transaction, sub-cent fees.
+ Discoverable by any A2A or MCP client.
+ </p>
+ </div>
+ </div>
+ <div class="h-bento-card h-reveal">
+ <div class="h-bento-body">
+ <span class="h-bento-tag h-bento-tag--violet">AI</span>
+ <h3>Expression, in real time.</h3>
+ <p>
+ Your agent reacts as it speaks, thinks, succeeds, and fails — emotion
+ wired directly to model output, not scripted.
+ </p>
+ <ul class="h-bento-emotions" aria-label="Emotion states">
+ <li><span class="h-em-dot"></span>Celebration</li>
+ <li><span class="h-em-dot"></span>Curiosity</li>
+ <li><span class="h-em-dot"></span>Empathy</li>
+ <li><span class="h-em-dot"></span>Concern</li>
+ </ul>
+ </div>
+ </div>
+ <div class="h-bento-card h-reveal">
+ <div class="h-bento-body">
+ <span class="h-bento-tag">Widgets</span>
+ <h3>5 widget types.</h3>
+ <p>
+ Turntable · Talking Agent · Animation Gallery · ERC-8004 Passport ·
+ Hotspot Tour
+ </p>
+ <a href="/studio" class="h-feature-link">Widget Studio →</a>
+ </div>
+ </div>
+ <div class="h-bento-card h-reveal">
+ <div class="h-bento-body">
+ <span class="h-bento-tag h-bento-tag--mint">SNS · pay-by-name</span>
+ <h3>Get paid by name.</h3>
+ <p>
+ Claim <code style="background:rgba(255,255,255,.06);padding:.1em .35em;border-radius:4px;font-size:.9em">yourname.threews.sol</code>
+ as a Solana Name Service subdomain. Brave routes it straight to your showcase;
+ agents pay you in USDC by name, not address. We absorb the gas.
+ </p>
+ <a href="/threews/claim" class="h-feature-link">Claim your subdomain →</a>
+ </div>
+ </div>
+ </div>
+ </section>
+
+ <!-- ── Developer section ── -->
+ <div class="h-dev-section h-reveal">
+ <div class="h-dev-inner">
+ <div class="h-dev-text">
+ <p class="h-section-label">For developers</p>
+ <h2>Drop one tag.<br />Ship a 3D agent.</h2>
+ <p class="h-dev-sub">
+ The <code>&lt;agent-3d&gt;</code> web component lazy-loads, renders
+ anywhere, and connects to your existing AI stack via MCP or A2A. No
+ framework. No build step.
+ </p>
+ <div class="h-dev-links">
+ <a href="/docs" class="h-feature-link">Read the docs →</a>
+ <a
+ href="https://github.com/nirholas/three.ws"
+ target="_blank"
+ rel="noopener noreferrer"
+ class="h-feature-link"
+ >GitHub →</a
+ >
+ </div>
+ </div>
+ <div class="h-dev-code">
+ <div class="h-dev-code-bar">
+ <span class="h-dev-code-dot"></span>
+ <span class="h-dev-code-dot"></span>
+ <span class="h-dev-code-dot"></span>
+ <span class="h-dev-code-filename">index.html</span>
+ </div>
+ <pre
+ class="h-dev-pre"
+ ><code><span class="c">&lt;!-- 1. Load the component --&gt;</span>
+<span class="tag">&lt;script</span> <span class="attr">type</span>=<span class="val">"module"</span>
+ <span class="attr">src</span>=<span class="val">"https://three.ws/agent-3d/latest/agent-3d.js"</span><span class="tag">&gt;&lt;/script&gt;</span>
+
+<span class="c">&lt;!-- 2. Drop the tag --&gt;</span>
+<span class="tag">&lt;agent-3d</span>
+ <span class="attr">agent-id</span>=<span class="val">"3DAg…uPL"</span>
+ <span class="attr">kiosk</span>
+<span class="tag">&gt;&lt;/agent-3d&gt;</span></code></pre>
+ </div>
+ </div>
+ </div>
+
+ <!-- ── Final CTA ── -->
+ <section class="h-cta-section">
+ <div class="h-cta-inner h-reveal">
+ <h2>Ready to build<br />the future?</h2>
+ <p>Free to start. No credit card. Deploy in minutes.</p>
+ <div class="h-cta-row-center">
+ <a href="/create" class="h-btn-primary">
+ <span>Create your agent</span>
+ <span class="arrow">→</span>
+ </a>
+ <a href="/marketplace" class="h-btn-ghost">Explore the marketplace</a>
+ </div>
+ </div>
+ </section>
+
+ <footer class="h-footer h-footer-horizon">
+ <div class="h-footer-glow-line" aria-hidden="true"></div>
+ <div class="h-footer-floor" aria-hidden="true"></div>
+ <div class="h-footer-haze" aria-hidden="true"></div>
+ <div class="h-footer-watermark" aria-hidden="true">three.ws</div>
+ <div class="h-footer-avatar" aria-hidden="true">
+ <model-viewer
+ src="/animations/robotexpressive.glb"
+ auto-rotate
+ auto-rotate-delay="0"
+ rotation-per-second="20deg"
+ interaction-prompt="none"
+ camera-controls="false"
+ disable-zoom
+ shadow-intensity="0"
+ exposure="0.7"
+ environment-image="neutral"
+ camera-orbit="0deg 80deg 9m"
+ field-of-view="45deg"
+ loading="lazy"
+ ></model-viewer>
+ </div>
+
+ <div class="h-footer-cta">
+ <div class="h-footer-newsletter">
+ <h3>Stay in the loop</h3>
+ <p>Get updates on new features, agent tooling, and protocol changes.</p>
+ <form class="h-footer-newsletter-form" data-newsletter-form novalidate>
+ <input
+ type="email"
+ class="h-footer-newsletter-input"
+ name="email"
+ placeholder="Enter your email"
+ aria-label="Email address"
+ autocomplete="email"
+ required
+ />
+ <button
+ type="submit"
+ class="h-footer-newsletter-btn"
+ aria-label="Subscribe"
+ >
+ <svg viewBox="0 0 16 16" aria-hidden="true">
+ <path
+ fill="none"
+ stroke="currentColor"
+ stroke-width="1.6"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ d="M2 8h11m0 0L9 4m4 4l-4 4"
+ />
+ </svg>
+ </button>
+ </form>
+ <p
+ class="h-footer-newsletter-msg"
+ data-newsletter-msg
+ aria-live="polite"
+ ></p>
+ </div>
+ <div class="h-footer-community">
+ <h3>Join the community</h3>
+ <p>Follow along for builds, demos, and conversations with the team.</p>
+ <a
+ class="h-footer-community-btn"
+ href="https://x.com/trythreews"
+ target="_blank"
+ rel="noopener noreferrer"
+ >
+ <svg viewBox="0 0 24 24" aria-hidden="true">
+ <path
+ fill="currentColor"
+ d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"
+ />
+ </svg>
+ Follow on X
+ </a>
+ </div>
+ </div>
+ <div class="h-footer-inner">
+ <div class="h-footer-brand-col">
+ <div class="h-footer-brand">
+ <img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" />
+ <span class="wordmark-dot" aria-hidden="true"></span>
+ <span>three.ws</span>
+ </div>
+ <p class="h-footer-tagline">Give your AI a body.</p>
+ <div class="h-footer-socials">
+ <a
+ class="h-footer-social"
+ href="https://x.com/trythreews"
+ target="_blank"
+ rel="noopener noreferrer"
+ aria-label="three.ws on X"
+ >
+ <svg viewBox="0 0 24 24" aria-hidden="true">
+ <path
+ fill="currentColor"
+ d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"
+ />
+ </svg>
+ </a>
+ <a
+ class="h-footer-social"
+ href="https://github.com/nirholas/three.ws"
+ target="_blank"
+ rel="noopener noreferrer"
+ aria-label="three.ws on GitHub"
+ >
+ <svg viewBox="0 0 16 16" aria-hidden="true">
+ <path
+ fill="currentColor"
+ d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"
+ />
+ </svg>
+ </a>
+ </div>
+ </div>
+ <nav class="h-footer-links" aria-label="Footer">
+ <div class="h-footer-link-col">
+ <h4 class="h-footer-link-heading">Product</h4>
+ <a href="/create">Create</a>
+ <a href="/marketplace">Marketplace</a>
+ <a href="/studio">Studio</a>
+ <a href="/widgets">Widgets</a>
+ <a href="/pricing">Pricing</a>
+ </div>
+ <div class="h-footer-link-col">
+ <h4 class="h-footer-link-heading">Developers</h4>
+ <a href="/docs">Docs</a>
+ <a
+ href="https://github.com/nirholas/three.ws"
+ target="_blank"
+ rel="noopener noreferrer"
+ >GitHub</a
+ >
+ <a href="/bazaar">x402 Bazaar</a>
+ <a
+ href="https://developers.metaplex.com/core"
+ target="_blank"
+ rel="noopener noreferrer"
+ >Metaplex Core</a
+ >
+ </div>
+ <div class="h-footer-link-col">
+ <h4 class="h-footer-link-heading">Company</h4>
+ <a href="/blog">Blog</a>
+ <a href="/community">Community</a>
+ <a href="/features">Features</a>
+ <a href="/dashboard">Dashboard</a>
+ </div>
+ <div class="h-footer-link-col">
+ <h4 class="h-footer-link-heading">Legal</h4>
+ <a href="/legal/privacy">Privacy</a>
+ <a href="/legal/tos">Terms</a>
+ </div>
+ </nav>
+ </div>
+ <div class="h-footer-bottom">
+ <p class="h-footer-legal">© 2026 three.ws — All rights reserved.</p>
+ <div class="h-footer-badges">
+ <a href="/pay" class="h-footer-badge" aria-label="Built with x402 payments">
+ <svg viewBox="0 0 16 16" aria-hidden="true">
+ <circle cx="8" cy="8" r="7" fill="none" stroke="currentColor" stroke-width="1.3"/>
+ <path d="M8 4v8M5.5 6h3.5a1.5 1.5 0 010 3H6.5a1.5 1.5 0 000 3H11" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
+ </svg>
+ Built with x402
+ </a>
+ <span class="h-footer-badge" aria-label="All systems operational">
+ <span class="h-footer-status-dot"></span>
+ All systems operational
+ </span>
+ </div>
+ <div class="h-footer-legal-links">
+ <a href="/legal/privacy">Privacy Policy</a>
+ <a href="/legal/tos">Terms of Use</a>
+ </div>
+ </div>
+ </footer>
+ </main>
+
+ <script>
+ // Devices with < 2 GB RAM get no WebGL viewers — avoids GPU OOM and
+ // context-limit issues. navigator.deviceMemory is undefined on Firefox/Safari
+ // so we default to "capable" when the API is absent.
+ const LOW_MEMORY = typeof navigator.deviceMemory === 'number' && navigator.deviceMemory < 2;
+ const REDUCED_MOTION = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
+ // Skip GL only on truly constrained devices. Reduced-motion users still
+ // see the avatars (without auto-rotate); skipping rendering for them left
+ // the bento/Act 2/Act 3 canvases permanently blank.
+ const SKIP_OFFSCREEN_GL = LOW_MEMORY;
+
+ // Footer model-viewer is decorative — skip on low-memory devices to
+ // avoid hitting the WebGL context limit alongside the bento/act viewers.
+ if (LOW_MEMORY) {
+ const footerAvatar = document.querySelector('.h-footer-avatar');
+ if (footerAvatar) footerAvatar.hidden = true;
+ }
+
+ // Scroll reveal — use viewport (root: null) so IntersectionObserver
+ // avoids the perspective transform on .home-parallax breaking intersection math.
+ (function () {
+ const root = document.querySelector('.home-parallax');
+ const els = document.querySelectorAll('.h-reveal');
+ const observer = new IntersectionObserver(
+ (entries) => {
+ entries.forEach((entry) => {
+ if (entry.isIntersecting) {
+ entry.target.classList.add('revealed');
+ observer.unobserve(entry.target);
+ }
+ });
+ },
+ { root: null, threshold: 0.12, rootMargin: '0px 0px -50px 0px' },
+ );
+ els.forEach((el) => {
+ const siblings = Array.from(el.parentElement.querySelectorAll('.h-reveal'));
+ const idx = siblings.indexOf(el);
+ el.style.transitionDelay = idx * 0.09 + 's';
+ observer.observe(el);
+ });
+ })();
+
+ // Hero avatar — Act2Viewer with cursor/scroll orbit + click → real animations
+ (function () {
+ const scrollEl = document.querySelector('.home-parallax');
+ const canvas = document.getElementById('hero-avatar');
+ const heroAct = document.querySelector('.h-hero-act');
+ if (!scrollEl || !canvas || !heroAct) return;
+
+ let mouseX = 0,
+ mouseY = 0,
+ scrollProgress = 0;
+ const BASE_THETA = -45,
+ BASE_PHI = 80,
+ BASE_R = 20;
+ let curTheta = BASE_THETA,
+ curPhi = BASE_PHI,
+ curR = BASE_R;
+
+ window.addEventListener(
+ 'mousemove',
+ (e) => {
+ mouseX = (e.clientX / innerWidth) * 2 - 1;
+ mouseY = (e.clientY / innerHeight) * 2 - 1;
+ },
+ { passive: true },
+ );
+
+ scrollEl.addEventListener(
+ 'scroll',
+ () => {
+ scrollProgress = Math.min(scrollEl.scrollTop / heroAct.offsetHeight, 1);
+ },
+ { passive: true },
+ );
+
+ function whenReady(cb) {
+ if (window.Act2Viewer) return cb();
+ setTimeout(() => whenReady(cb), 60);
+ }
+
+ whenReady(() => {
+ const viewer = new window.Act2Viewer(canvas, { fov: 18 });
+ let orbitActive = false;
+
+ /* cursor + scroll orbit loop — starts after model loads to avoid camera snap */
+ (function tick() {
+ if (orbitActive) {
+ const scrollTheta = scrollProgress * 90;
+ const scrollPhi = -scrollProgress * 8;
+ const scrollR = scrollProgress * 0.8;
+ curTheta += (BASE_THETA + scrollTheta + mouseX * 16 - curTheta) * 0.07;
+ curPhi += (BASE_PHI + scrollPhi + mouseY * 6 - curPhi) * 0.07;
+ curR += (BASE_R + scrollR - curR) * 0.12;
+ viewer.setOrbit(curTheta, curPhi, curR);
+ }
+ requestAnimationFrame(tick);
+ })();
+
+ const wrap = canvas.closest('.h-avatar-wrap');
+
+ /* falling: wait for clip to play out, then expand and slide across.
+ alreadyPlaying=true skips the playClip call (used on first load). */
+ async function doFalling(alreadyPlaying = false) {
+ if (!alreadyPlaying) {
+ try {
+ await viewer.playClip('falling');
+ } catch (_) {}
+ }
+
+ /* wait for the actual clip to finish on the ground */
+ const clipDur = viewer.currentAction
+ ? viewer.currentAction.getClip().duration * 1000
+ : 2200;
+ await new Promise((r) => setTimeout(r, clipDur));
+
+ /* expand to full-width and slide the model slowly across the ground */
+ wrap.classList.add('h-avatar-wrap--traversing');
+ const SLIDE_DUR = 3200;
+ const SLIDE_DIST = 8;
+ const t0 = performance.now();
+ await new Promise((r) => {
+ (function step(now) {
+ const t = Math.min((now - t0) / SLIDE_DUR, 1);
+ const x = SLIDE_DIST * t;
+ if (viewer.model) viewer.model.position.x = x;
+ viewer._focusX = x;
+ if (t < 1) {
+ requestAnimationFrame(step);
+ } else {
+ r();
+ }
+ })(performance.now());
+ });
+
+ /* reset + back to dance */
+ if (viewer.model) viewer.model.position.x = 0;
+ viewer._focusX = 0;
+ wrap.classList.remove('h-avatar-wrap--traversing');
+ viewer.playClip('dance').catch(() => {});
+ }
+
+ canvas.style.opacity = '0';
+ viewer
+ .loadModel('/avatars/cz.glb', { autoPlay: false })
+ .then(async () => {
+ /* Scale up ring geometry so it fills the canvas */
+ viewer.model.traverse((node) => {
+ if (node.isMesh || node.isGroup) {
+ const n = node.name.toLowerCase();
+ if (n.includes('ring') || n.includes('circle') || n.includes('halo') || n.includes('orbit') || n.includes('arc')) {
+ node.scale.setScalar(2.5);
+ }
+ }
+ });
+ viewer._modelFocusY = 1.1;
+ viewer.setOrbit(curTheta, curPhi, curR);
+ orbitActive = true;
+ /* fetch + start the falling clip before revealing — no T-pose flash */
+ try {
+ await viewer.playClip('falling');
+ } catch (_) {}
+ canvas.style.transition = 'opacity 0.15s';
+ canvas.style.opacity = '1';
+ /* clip is already playing — pass flag so doFalling skips the restart */
+ doFalling(true);
+ })
+ .catch(console.error);
+
+ /* click → random manifest animation; falling gets full traverse treatment */
+ const FUN = [
+ 'falling',
+ 'wave',
+ 'dance',
+ 'celebrate',
+ 'jump',
+ 'rumba',
+ 'capoeira',
+ 'thriller',
+ 'kiss',
+ 'taunt',
+ 'pray',
+ 'idle',
+ 'angry',
+ 'defeated',
+ 'dying',
+ 'reaction',
+ 'silly',
+ 'sitclap',
+ 'sitlaugh',
+ 'walk',
+ 'dodge',
+ 'stepback',
+ 'shoved',
+ 'standup',
+ 'header',
+ 'coverstand',
+ 'goalkeeper',
+ 'jumpdown',
+ 'jumpdown2',
+ 'jumpdown3',
+ 'removing',
+ 'falltolanding',
+ ];
+ let lastAnim = null;
+ canvas.style.cursor = 'pointer';
+ canvas.addEventListener('click', async () => {
+ const pool = FUN.filter((a) => a !== lastAnim);
+ const name = pool[Math.floor(Math.random() * pool.length)];
+ lastAnim = name;
+ if (name === 'falling') {
+ doFalling();
+ return;
+ }
+ try {
+ await viewer.playClip(name);
+ const def = viewer._manifest.find((d) => d.name === name);
+ if (def && !def.loop) {
+ setTimeout(() => viewer.playClip('dance').catch(() => {}), 2600);
+ }
+ } catch (_) {}
+ });
+ });
+ })();
+
+ // Act 2 viewer — Three.js + animation manifest, same trick as /app.
+ // Every model gets every clip from /animations/manifest.json (retargeted
+ // onto its skeleton via AnimationMixer), regardless of what's baked in.
+ (function () {
+ const canvas = document.getElementById('home-act2-canvas');
+ const chipsWrap = document.querySelector('[data-role="anim-chips"]');
+ const picker = document.querySelector('.h-avatar-picker');
+ if (!canvas || !chipsWrap || !picker) return;
+
+ /* The viewer (heavy Three.js) loads lazily when Act 2 enters view.
+ The picker (lightweight DOM + fetch) hydrates on page load so
+ featured-agent names are correct *before* the user scrolls. */
+ let _resolveViewer;
+ const viewerReady = new Promise((r) => (_resolveViewer = r));
+
+ function bindOpt(btn) {
+ btn.addEventListener('click', async () => {
+ picker
+ .querySelectorAll('.h-av-opt')
+ .forEach((b) => b.setAttribute('aria-pressed', 'false'));
+ btn.setAttribute('aria-pressed', 'true');
+ const viewer = await viewerReady;
+ try {
+ await viewer.loadModel(btn.dataset.src);
+ } catch (e) {
+ console.error(e);
+ }
+ });
+ }
+ picker.querySelectorAll('.h-av-opt').forEach(bindOpt);
+
+ /* Eagerly populate the picker from /api/explore so featured agents
+ (Ansem, Boss Vernington, …) appear immediately. Static buttons
+ stay if the fetch fails or returns nothing usable. */
+ (async function hydratePicker() {
+ try {
+ const r = await fetch(
+ '/api/explore?source=avatar&quality=high&limit=12',
+ );
+ if (!r.ok) return;
+ const j = await r.json();
+ const seen = new Set();
+ const named = (j?.items || [])
+ .filter((it) => {
+ if (it.kind !== 'avatar' || !it.glbUrl) return false;
+ const name = String(it.name || '').trim();
+ if (name.length < 2) return false;
+ if (/^avatar[\s_-]?\d/i.test(name)) return false;
+ if (seen.has(name.toLowerCase())) return false;
+ seen.add(name.toLowerCase());
+ return true;
+ })
+ .slice(0, 3);
+ if (named.length < 2) return;
+ picker.innerHTML = '';
+ named.forEach((a, i) => {
+ const btn = document.createElement('button');
+ btn.type = 'button';
+ btn.className = 'h-av-opt';
+ btn.dataset.src = a.glbUrl;
+ btn.setAttribute('aria-pressed', i === 0 ? 'true' : 'false');
+ btn.textContent = a.name;
+ picker.appendChild(btn);
+ bindOpt(btn);
+ });
+ } catch (e) {
+ // Keep static picker; surface in dev so genuine bugs aren't swallowed.
+ console.warn('[home] picker hydration failed', e);
+ }
+ })();
+
+ /* Wait for the Act2Viewer ESM to load (it sets window.Act2Viewer) */
+ function whenReady(cb) {
+ if (window.Act2Viewer) return cb();
+ setTimeout(() => whenReady(cb), 60);
+ }
+
+ function initAct2() {
+ whenReady(() => {
+ const viewer = new window.Act2Viewer(canvas);
+
+ function prettyLabel(def) {
+ const icon = def.icon || '✨';
+ const label = (def.label || def.name).replace(/\s*\([^)]*\)/g, '').trim();
+ return icon + ' ' + label;
+ }
+
+ function rebuildChips(defs) {
+ chipsWrap.innerHTML = '';
+ defs.forEach((def, i) => {
+ const btn = document.createElement('button');
+ btn.type = 'button';
+ btn.className = 'h-anim-chip';
+ btn.dataset.anim = def.name;
+ btn.textContent = prettyLabel(def);
+ if (i === 0) btn.dataset.active = 'true';
+ btn.addEventListener('click', async () => {
+ chipsWrap
+ .querySelectorAll('.h-anim-chip')
+ .forEach((c) => delete c.dataset.active);
+ btn.dataset.active = 'true';
+ try {
+ await viewer.playClip(def.name);
+ } catch (e) {
+ /* ignore */
+ }
+ });
+ chipsWrap.appendChild(btn);
+ });
+ }
+
+ viewer.onClipsReady = rebuildChips;
+
+ /* Default load: whichever picker button is currently pressed
+ (after hydration this is the first featured agent). */
+ const activeBtn = picker.querySelector('.h-av-opt[aria-pressed="true"]');
+ const defaultSrc =
+ activeBtn?.dataset.src || '/animations/robotexpressive.glb';
+ viewer.loadModel(defaultSrc).catch(console.error);
+
+ /* Resolve viewerReady so any queued picker clicks proceed. */
+ _resolveViewer(viewer);
+
+ /* click on canvas to toggle zoom (default → extra-wide) */
+ let wider = false;
+ const NEAR = 22,
+ FAR = 36;
+ canvas.addEventListener('click', () => {
+ wider = !wider;
+ viewer.zoom(wider ? FAR : NEAR);
+ });
+ });
+ }
+
+ if (!SKIP_OFFSCREEN_GL) {
+ let act2Inited = false;
+ const act2Obs = new IntersectionObserver((entries) => {
+ if (entries[0].isIntersecting && !act2Inited) {
+ act2Inited = true;
+ act2Obs.disconnect();
+ initAct2();
+ }
+ }, { threshold: 0, rootMargin: '600px 0px 600px 0px' });
+ act2Obs.observe(canvas);
+ }
+ })();
+
+ // Bento Viewer card — same Act2Viewer + animation panel as Act 2
+ (function () {
+ const canvas = document.getElementById('bento-cz-canvas');
+ const grid = document.querySelector('[data-role="bento-anim-grid"]');
+ const stopBtn = document.querySelector('[data-role="bento-anim-stop"]');
+ if (!canvas || !grid) return;
+
+ function whenReady(cb) {
+ if (window.Act2Viewer) return cb();
+ setTimeout(() => whenReady(cb), 60);
+ }
+
+ function initViewer() {
+ whenReady(() => {
+ const viewer = new window.Act2Viewer(canvas, { fov: 20 });
+
+ function prettyLabel(def) {
+ return (def.label || def.name).replace(/\s*\([^)]*\)/g, '').trim();
+ }
+
+ function buildButtons(defs) {
+ grid.innerHTML = '';
+ defs.forEach((def, i) => {
+ const btn = document.createElement('button');
+ btn.type = 'button';
+ btn.className = 'h-bento-anim-btn';
+ btn.dataset.anim = def.name;
+ btn.title = def.label || def.name;
+ const icon = document.createElement('span');
+ icon.className = 'h-bento-anim-btn__icon';
+ icon.textContent = def.icon || '✨';
+ const label = document.createElement('span');
+ label.className = 'h-bento-anim-btn__label';
+ label.textContent = prettyLabel(def);
+ btn.appendChild(icon);
+ btn.appendChild(label);
+ if (i === 0) btn.classList.add('h-bento-anim-btn--active');
+ btn.addEventListener('click', async () => {
+ grid.querySelectorAll('.h-bento-anim-btn').forEach((b) =>
+ b.classList.remove('h-bento-anim-btn--active'),
+ );
+ btn.classList.add('h-bento-anim-btn--active');
+ btn.classList.add('h-bento-anim-btn--loading');
+ try {
+ await viewer.playClip(def.name);
+ } catch (_) {}
+ btn.classList.remove('h-bento-anim-btn--loading');
+ });
+ grid.appendChild(btn);
+ });
+ }
+
+ viewer.onClipsReady = buildButtons;
+ viewer
+ .loadModel('/avatars/cz.glb', { autoPlay: false })
+ .then(() => viewer.playClip('celebrate').catch(() => {}))
+ .catch(console.error);
+
+ if (stopBtn) {
+ stopBtn.addEventListener('click', () => {
+ if (viewer.mixer) viewer.mixer.stopAllAction();
+ viewer.currentAction = null;
+ grid.querySelectorAll('.h-bento-anim-btn').forEach((b) =>
+ b.classList.remove('h-bento-anim-btn--active'),
+ );
+ });
+ }
+ });
+ }
+
+ // Defer viewer init until canvas scrolls into view — avoids creating
+ // WebGL context before the card is visible inside the parallax container.
+ if (!SKIP_OFFSCREEN_GL) {
+ let inited = false;
+ const io = new IntersectionObserver((entries) => {
+ if (entries[0].isIntersecting && !inited) {
+ inited = true;
+ io.disconnect();
+ initViewer();
+ }
+ }, { threshold: 0, rootMargin: '600px 0px 600px 0px' });
+ io.observe(canvas);
+ }
+ })();
+
+ // Chain ribbon (Act 3)
+ (function () {
+ const ribbon = document.querySelector('[data-role="home-chain-ribbon"]');
+ if (!ribbon) return;
+ const labels = [
+ 'Solana',
+ 'Base',
+ 'Ethereum',
+ 'BSC',
+ 'Arbitrum',
+ 'Avalanche',
+ 'Celo',
+ 'Linea',
+ 'zkSync',
+ 'Scroll',
+ 'Optimism',
+ 'Mode',
+ ];
+ ribbon.replaceChildren(
+ ...labels.map((l) => {
+ const s = document.createElement('span');
+ s.className = 'chain-pill';
+ s.textContent = l;
+ return s;
+ }),
+ );
+ })();
+
+ // Custom cursor
+ (function () {
+ const cursor = document.getElementById('cursor');
+ if (!cursor || window.matchMedia('(hover: none)').matches || REDUCED_MOTION) return;
+ let cx = -100,
+ cy = -100,
+ tx = -100,
+ ty = -100;
+ document.addEventListener('mousemove', (e) => {
+ tx = e.clientX;
+ ty = e.clientY;
+ });
+ document.addEventListener('mouseleave', () => {
+ tx = cy = -100;
+ });
+ const hover = 'a,button,[role="button"],.h-av-opt,.h-anim-chip';
+ document.querySelectorAll(hover).forEach((el) => {
+ el.addEventListener('mouseenter', () => cursor.classList.add('cursor--hover'));
+ el.addEventListener('mouseleave', () =>
+ cursor.classList.remove('cursor--hover'),
+ );
+ });
+ (function loop() {
+ cx += (tx - cx) * 0.18;
+ cy += (ty - cy) * 0.18;
+ cursor.style.transform = `translate(${cx}px,${cy}px) translate(-50%,-50%)`;
+ requestAnimationFrame(loop);
+ })();
+ })();
+
+ // Act 3 — animated trio of ghost avatars (robot, CZ, soldier)
+ (function () {
+ const configs = [
+ {
+ id: 'act3-avatar-a',
+ src: '/animations/robotexpressive.glb',
+ anim: 'capoeira',
+ },
+ { id: 'act3-avatar-b', src: '/avatars/cz.glb', anim: 'rumba' },
+ { id: 'act3-avatar-c', src: '/animations/soldier.glb', anim: 'wave' },
+ ];
+
+ function whenReady(cb) {
+ if (window.Act2Viewer) return cb();
+ setTimeout(() => whenReady(cb), 60);
+ }
+
+ function initAct3() {
+ whenReady(() => {
+ configs.forEach(({ id, src, anim }) => {
+ const canvas = document.getElementById(id);
+ if (!canvas) return;
+ const viewer = new window.Act2Viewer(canvas, { fov: 22 });
+ viewer
+ .loadModel(src)
+ .then(() => viewer.playClip(anim).catch(() => {}))
+ .catch(() => {});
+ });
+ });
+ }
+
+ // Observe the first Act3 canvas; when it enters view, init all three.
+ const firstCanvas = document.getElementById('act3-avatar-a');
+ if (firstCanvas && !SKIP_OFFSCREEN_GL) {
+ let act3Inited = false;
+ const act3Obs = new IntersectionObserver((entries) => {
+ if (entries[0].isIntersecting && !act3Inited) {
+ act3Inited = true;
+ act3Obs.disconnect();
+ initAct3();
+ }
+ }, { threshold: 0, rootMargin: '600px 0px 600px 0px' });
+ act3Obs.observe(firstCanvas);
+ }
+ })();
+
+ // Star field canvas
+ (function () {
+ for (const canvas of document.querySelectorAll('[data-role="star-canvas"]')) {
+ const dpr = Math.min(window.devicePixelRatio || 1, 2);
+ const w = window.innerWidth * dpr;
+ const h = window.innerHeight * 8 * dpr;
+ canvas.width = w;
+ canvas.height = h;
+ const ctx = canvas.getContext('2d');
+ const tint = canvas.dataset.tint || '255,255,255';
+ const count = parseInt(canvas.dataset.count || '250', 10);
+ for (let i = 0; i < count; i++) {
+ const x = Math.random() * w;
+ const y = Math.random() * h;
+ const r = (Math.random() * 1.4 + 0.3) * dpr;
+ ctx.beginPath();
+ ctx.arc(x, y, r, 0, Math.PI * 2);
+ ctx.fillStyle = `rgba(${tint},${Math.random() * 0.65 + 0.2})`;
+ ctx.fill();
+ }
+ for (let i = 0; i < 10; i++) {
+ const x = Math.random() * w,
+ y = Math.random() * h;
+ const g = ctx.createRadialGradient(x, y, 0, x, y, 6 * dpr);
+ g.addColorStop(0, `rgba(${tint},0.9)`);
+ g.addColorStop(1, `rgba(${tint},0)`);
+ ctx.beginPath();
+ ctx.arc(x, y, 6 * dpr, 0, Math.PI * 2);
+ ctx.fillStyle = g;
+ ctx.fill();
+ }
+ }
+ })();
+ </script>
+
+ <script>
+ // Traction stats — fetch /api/platform/stats, animate counters on scroll into view.
+ (function () {
+ function fmtNum(n) {
+ if (n >= 1_000_000) return (n / 1_000_000).toFixed(1).replace(/\.0$/, '') + 'M';
+ if (n >= 1_000) return (n / 1_000).toFixed(1).replace(/\.0$/, '') + 'K';
+ return String(n);
+ }
+
+ function animateCount(el, target) {
+ const duration = 1200;
+ const start = performance.now();
+ function step(now) {
+ const t = Math.min((now - start) / duration, 1);
+ const ease = 1 - Math.pow(1 - t, 3);
+ const val = Math.round(target * ease);
+ el.textContent = fmtNum(val);
+ if (t < 1) requestAnimationFrame(step);
+ }
+ requestAnimationFrame(step);
+ }
+
+ const section = document.querySelector('.h-traction');
+ const vals = document.querySelectorAll('[data-traction-val]');
+ if (!section) return;
+ vals.forEach((el) => el.classList.add('is-loading'));
+
+ let statsData = null;
+ let animated = false;
+
+ function triggerAnimation() {
+ if (animated || !statsData) return;
+ animated = true;
+ vals.forEach((el) => {
+ const key = el.dataset.tractionVal;
+ const raw = statsData[key];
+ if (raw == null) return;
+ el.classList.remove('is-loading');
+ animateCount(el, Number(raw));
+ });
+ }
+
+ // Observe when section scrolls into view
+ const io = new IntersectionObserver((entries) => {
+ if (entries[0].isIntersecting) {
+ io.disconnect();
+ triggerAnimation();
+ }
+ }, { threshold: 0.3 });
+ io.observe(section);
+
+ fetch('/api/platform/stats')
+ .then((r) => r.ok ? r.json() : Promise.reject(r.status))
+ .then((data) => {
+ statsData = data;
+ // If section is already in view, trigger immediately
+ triggerAnimation();
+ })
+ .catch(() => {
+ section.hidden = true;
+ });
+ })();
+ </script>
+ </body>
+</html>
diff --git a/pages/home-next.html b/pages/home-next.html
deleted file mode 100644
index bbfb1d347..000000000
--- a/pages/home-next.html
+++ /dev/null
@@ -1,5123 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width,initial-scale=1" />
- <title>three.ws — The 3D Agent Layer of the Internet</title>
- <meta name="description" content="Create a 3D AI agent from a selfie in 60 seconds. Embed it anywhere with two lines of HTML. Charge per chat with x402. The 3D agent layer of the internet." />
- <meta property="og:title" content="three.ws — The 3D Agent Layer of the Internet" />
- <meta property="og:description" content="Create, embed, and monetize living 3D AI agents. One tag. Any site. Voice, memory, payments, and on-chain identity included." />
- <meta property="og:image" content="/og-image.png" />
- <meta name="twitter:card" content="summary_large_image" />
- <link rel="icon" href="/favicon.ico" />
- <link rel="preconnect" href="https://fonts.googleapis.com" />
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
- <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=Inter:wght@400;450;500;550;600&family=JetBrains+Mono:wght@400;500;700&display=swap" />
- <style>
- :root {
- color-scheme: dark;
- --bg: #050505;
- --surface-0: #0b0b0b;
- --surface-1: #111111;
- --surface-2: #181818;
- --surface-3: #1e1e1e;
- --hairline: #1c1c1c;
- --hairline-strong: #2a2a2a;
- --text: #f6f6f6;
- --text-2: #a8a8a8;
- --text-3: #6a6a6a;
- --text-4: #4a4a4a;
- --accent: #ffffff;
- --accent-2: #ffffff;
- --green: #e8e8e8;
- --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
- --font-body: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
- --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
- }
- * { box-sizing: border-box; }
- html { scroll-behavior: smooth; }
- html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); }
- body {
- font-size: 15.5px; line-height: 1.55;
- min-height: 100vh; overflow-x: hidden;
- -webkit-font-smoothing: antialiased;
- text-rendering: optimizeLegibility;
- }
- a { color: inherit; text-decoration: none; }
- button { font-family: inherit; cursor: pointer; }
- ::selection { background: var(--text); color: var(--bg); }
- .wrap-1280 { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
- .wrap-1440 { max-width: 1440px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
- @media (max-width: 720px) { .wrap-1280, .wrap-1440 { padding-left: 20px; padding-right: 20px; } }
-
- /* ── NAV ─────────────────────────────────────────────────── */
- .nav {
- position: sticky; top: 0; z-index: 100;
- border-bottom: 1px solid var(--hairline);
- background: rgba(5,5,5,0.82);
- backdrop-filter: blur(20px) saturate(140%);
- }
- .nav-inner {
- display: flex; align-items: center; gap: 32px;
- padding: 16px 32px; max-width: 1440px; margin: 0 auto;
- }
- .brand {
- display: flex; align-items: center; gap: 10px;
- font-family: var(--font-display);
- font-weight: 600; letter-spacing: -0.025em; font-size: 16.5px;
- flex-shrink: 0;
- }
- .brand-mark {
- width: 18px; height: 18px;
- border: 1px solid var(--text); border-radius: 3px;
- position: relative;
- }
- .brand-mark::after {
- content: ""; position: absolute; inset: 4px;
- background: var(--text);
- }
- .nav-main { display: flex; gap: 2px; margin-left: 12px; flex: 1; }
- .nav-main a {
- padding: 7px 12px; font-size: 14px; font-weight: 450;
- color: var(--text-2); transition: color 0.12s;
- }
- .nav-main a:hover { color: var(--text); }
- .nav-end { display: flex; align-items: center; gap: 4px; }
- .nav-end a { padding: 7px 12px; font-size: 14px; font-weight: 450; color: var(--text-2); }
- .nav-end a:hover { color: var(--text); }
- .nav-end .console {
- color: var(--text); font-weight: 500;
- border: 1px solid var(--hairline-strong);
- padding: 7px 16px; border-radius: 7px; margin-left: 6px;
- transition: border-color 0.15s, background 0.15s;
- }
- .nav-end .console:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }
- @media (max-width: 880px) {
- .nav-main { display: none; }
- .nav-inner { padding: 14px 20px; gap: 16px; }
- }
-
- /* ── BUTTONS ─────────────────────────────────────────────── */
- .btn {
- display: inline-flex; align-items: center; gap: 10px;
- padding: 13px 22px; border-radius: 8px;
- font-size: 14.5px; font-weight: 500;
- border: 1px solid var(--hairline-strong);
- background: transparent; color: var(--text);
- transition: border-color 0.15s, background 0.15s;
- cursor: pointer; text-decoration: none; font-family: inherit;
- }
- .btn:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }
- .btn.primary {
- background: var(--text); color: var(--bg);
- border-color: var(--text); font-weight: 550;
- }
- .btn.primary:hover { background: #fff; }
- .btn .arrow { transition: transform 0.18s; }
- .btn:hover .arrow { transform: translateX(3px); }
- .btn.sm { padding: 9px 16px; font-size: 13.5px; }
- .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
-
- /* ── HERO ────────────────────────────────────────────────── */
- .hero {
- display: grid; grid-template-columns: 1.05fr 1fr;
- gap: 0; min-height: calc(100vh - 57px); position: relative;
- }
- .hero::after {
- content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
- width: 1px; background: var(--hairline);
- }
- @media (max-width: 980px) { .hero { grid-template-columns: 1fr; min-height: 0; } .hero::after { display: none; } }
- .hero-text {
- padding: 96px 48px 96px 72px;
- display: flex; flex-direction: column; justify-content: center;
- }
- @media (max-width: 980px) { .hero-text { padding: 64px 20px 32px; } }
- .eyebrow {
- display: inline-flex; align-items: center; gap: 10px;
- font-family: var(--font-mono); font-size: 11.5px;
- text-transform: uppercase; letter-spacing: 0.18em;
- color: var(--text-3); margin-bottom: 32px;
- }
- .eyebrow::before {
- content: ""; width: 6px; height: 6px; border-radius: 50%;
- background: var(--green); box-shadow: 0 0 6px var(--green);
- animation: pulse-green 2.4s ease-in-out infinite;
- }
- @keyframes pulse-green { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
- h1.hero-h {
- font-family: var(--font-display);
- font-size: clamp(52px, 6.8vw, 108px);
- line-height: 0.92; letter-spacing: -0.045em;
- font-weight: 600; margin: 0 0 32px; color: var(--text);
- }
- h1.hero-h em { font-style: normal; color: var(--text-3); font-weight: 500; }
- .hero-sub {
- font-size: 18px; color: var(--text-2);
- max-width: 500px; margin: 0 0 36px; line-height: 1.55; font-weight: 400;
- }
- .hero-bullets {
- list-style: none; padding: 0; margin: 0 0 40px;
- display: flex; flex-direction: column; gap: 10px;
- }
- .hero-bullets li {
- display: flex; align-items: center; gap: 12px;
- font-size: 15px; color: var(--text-2);
- }
- .hero-bullets li::before {
- content: ""; width: 5px; height: 5px; border-radius: 50%;
- background: var(--text-3); flex-shrink: 0;
- }
- .hero-bullets li strong { color: var(--text); font-weight: 550; }
- .hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 52px; }
-
- .metrics {
- display: flex; gap: 28px; flex-wrap: wrap;
- padding-top: 28px; border-top: 1px solid var(--hairline);
- font-family: var(--font-mono); font-size: 12px;
- color: var(--text-3); text-transform: uppercase; letter-spacing: 0.12em;
- }
- .metric { display: flex; align-items: baseline; gap: 7px; }
- .metric strong {
- font-family: var(--font-display); color: var(--text); font-weight: 600;
- font-size: 17px; letter-spacing: -0.02em; text-transform: none;
- font-variant-numeric: tabular-nums;
- }
-
- /* ── Hero stage ──────────────────────────────────────────── */
- .hero-stage { position: relative; overflow: hidden; background: var(--bg); container-type: inline-size; }
- .hero-stage agent-3d {
- position: absolute; inset: 0; display: block; width: 100%; height: 100%;
- }
- .stage-marker {
- position: absolute; top: 24px; left: 24px; z-index: 5;
- display: flex; align-items: center; gap: 10px;
- font-family: var(--font-mono); font-size: 10.5px;
- letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3);
- }
- .stage-marker::before {
- content: ""; width: 6px; height: 6px; border-radius: 50%;
- background: var(--green); box-shadow: 0 0 6px var(--green);
- animation: pulse-green 2.4s ease-in-out infinite;
- }
- .stage-meta {
- position: absolute; bottom: 24px; right: 28px; z-index: 5;
- text-align: right; font-family: var(--font-mono); font-size: 10.5px;
- letter-spacing: 0.14em; text-transform: uppercase;
- color: var(--text-4); line-height: 1.6;
- }
- .stage-meta span { display: block; }
- .stage-meta span:first-child { color: var(--text-3); }
- .hero-stage-inner {
- position: absolute; inset: 0;
- transform-style: preserve-3d;
- transition: transform 0.35s cubic-bezier(.2,.7,.3,1);
- will-change: transform;
- }
-
- /* ── STATS BAR ───────────────────────────────────────────── */
- .stats-bar {
- background: var(--surface-0);
- border-top: 1px solid var(--hairline);
- border-bottom: 1px solid var(--hairline);
- padding: 0;
- overflow: hidden;
- }
- .stats-bar-inner {
- display: flex; align-items: stretch;
- max-width: 1440px; margin: 0 auto;
- }
- .stat-cell {
- flex: 1; padding: 20px 28px;
- border-right: 1px solid var(--hairline);
- display: flex; flex-direction: column; gap: 4px;
- }
- .stat-cell:last-child { border-right: none; }
- .stat-val {
- font-family: var(--font-display); font-size: 24px;
- font-weight: 600; letter-spacing: -0.025em;
- color: var(--text); font-variant-numeric: tabular-nums;
- }
- .stat-lbl {
- font-family: var(--font-mono); font-size: 11px;
- letter-spacing: 0.15em; text-transform: uppercase;
- color: var(--text-3);
- }
- @media (max-width: 860px) {
- .stats-bar-inner { flex-wrap: wrap; }
- .stat-cell { flex: 1 0 50%; border-bottom: 1px solid var(--hairline); }
- }
- @media (max-width: 560px) { .stat-cell { flex: 1 0 100%; } }
-
- /* ── LOGO STRIP ──────────────────────────────────────────── */
- .logo-strip {
- padding: 28px 0;
- border-bottom: 1px solid var(--hairline);
- }
- .logo-strip-cap {
- font-family: var(--font-mono); font-size: 10.5px;
- letter-spacing: 0.2em; text-transform: uppercase;
- color: var(--text-4); text-align: center; margin-bottom: 20px;
- }
- .logo-row {
- display: flex; flex-wrap: wrap; justify-content: center;
- gap: 48px; align-items: center;
- }
- .logo-row .logo {
- font-family: var(--font-display); font-size: 15px; font-weight: 500;
- letter-spacing: -0.02em; color: var(--text-3); opacity: 0.65;
- transition: opacity 0.15s;
- }
- .logo-row .logo:hover { opacity: 1; }
-
- /* ── SECTION FRAME ───────────────────────────────────────── */
- section.block { padding: 112px 0; border-top: 1px solid var(--hairline); }
- @media (max-width: 720px) { section.block { padding: 72px 0; } }
- .block-head { margin-bottom: 60px; max-width: 800px; }
- .block-eyebrow {
- font-family: var(--font-mono); font-size: 11.5px;
- letter-spacing: 0.2em; text-transform: uppercase;
- color: var(--text-3); margin: 0 0 16px;
- }
- .block-eyebrow .num { color: var(--text); margin-right: 12px; }
- .block-h {
- font-family: var(--font-display);
- font-size: clamp(34px, 4vw, 58px);
- line-height: 1.0; letter-spacing: -0.035em;
- font-weight: 600; margin: 0 0 20px;
- }
- .block-h em { font-style: normal; color: var(--text-3); font-weight: 500; }
- .block-lede {
- font-size: 17px; color: var(--text-2);
- max-width: 600px; line-height: 1.55; margin: 0;
- }
-
- /* ── EMBED SHOWCASE ──────────────────────────────────────── */
- .embed-grid {
- display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
- background: var(--hairline); border: 1px solid var(--hairline);
- border-radius: 14px; overflow: hidden;
- }
- @media (max-width: 980px) { .embed-grid { grid-template-columns: 1fr; } }
- .pane { background: var(--surface-0); min-height: 420px; display: flex; flex-direction: column; }
- .pane-head {
- display: flex; align-items: center; justify-content: space-between;
- padding: 14px 18px; border-bottom: 1px solid var(--hairline);
- font-family: var(--font-mono); font-size: 12px; color: var(--text-3);
- }
- .pane-head .tabs { display: flex; gap: 4px; }
- .pane-head .tab {
- padding: 5px 11px; border-radius: 5px;
- font-family: var(--font-mono); font-size: 11.5px;
- color: var(--text-3); background: transparent; border: 0; cursor: pointer;
- }
- .pane-head .tab.active { background: var(--surface-2); color: var(--text); }
- .code-pane pre {
- margin: 0; padding: 28px;
- font-family: var(--font-mono); font-size: 13px; line-height: 1.75;
- color: var(--text); overflow-x: auto; flex: 1; background: var(--surface-0);
- }
- .code-pane pre .tag { color: #d3d3d3; }
- .code-pane pre .attr { color: #989898; }
- .code-pane pre .str { color: #f6f6f6; }
- .code-pane pre .com { color: var(--text-4); }
- .code-pane .pane-foot { padding: 14px 18px; border-top: 1px solid var(--hairline); }
- .copy-btn {
- background: transparent; color: var(--text);
- border: 1px solid var(--hairline-strong); cursor: pointer;
- padding: 7px 14px; border-radius: 7px; font-size: 13px; font-weight: 500;
- }
- .copy-btn:hover { border-color: var(--text); }
- .copy-btn.copied { background: var(--text); color: var(--bg); border-color: var(--text); }
- .render-pane { position: relative; padding: 0; }
- .render-pane agent-3d, .render-pane .live-agent-slot {
- position: absolute; inset: 49px 0 0; display: block;
- width: 100%; height: calc(100% - 49px);
- }
-
- /* ── THREE DOORS ─────────────────────────────────────────── */
- .doors {
- display: grid; grid-template-columns: repeat(3, 1fr);
- gap: 1px; background: var(--hairline);
- border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden;
- }
- @media (max-width: 980px) { .doors { grid-template-columns: 1fr; } }
- .door {
- background: var(--surface-0); padding: 44px 36px 38px;
- display: flex; flex-direction: column; transition: background 0.15s;
- }
- .door:hover { background: var(--surface-1); }
- .door-num {
- font-family: var(--font-mono); font-size: 11.5px;
- letter-spacing: 0.18em; color: var(--text-4); margin-bottom: 28px;
- display: flex; justify-content: space-between; align-items: baseline;
- }
- .door-num .lbl { color: var(--text-3); }
- .door h3 {
- font-family: var(--font-display); font-size: 26px; line-height: 1.1;
- letter-spacing: -0.025em; font-weight: 600; margin: 0 0 14px;
- }
- .door p { color: var(--text-2); margin: 0 0 28px; font-size: 15px; line-height: 1.55; flex: 1; }
- .door .door-cta {
- font-size: 14px; font-weight: 500; color: var(--text);
- display: inline-flex; align-items: center; gap: 8px;
- }
- .door .door-cta::after { content: "→"; transition: transform 0.18s; }
- .door:hover .door-cta::after { transform: translateX(4px); }
- .door-screenshot {
- margin: 0 0 24px; border-radius: 8px; overflow: hidden;
- border: 1px solid var(--hairline-strong);
- aspect-ratio: 16/9; background: var(--surface-2);
- }
- .door-screenshot img { width: 100%; height: 100%; object-fit: cover; display: block; }
-
- /* ── BENTO GRID ──────────────────────────────────────────── */
- .bento {
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- grid-template-rows: auto;
- gap: 1px; background: var(--hairline);
- border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden;
- }
- @media (max-width: 1080px) { .bento { grid-template-columns: repeat(2, 1fr); } }
- @media (max-width: 680px) { .bento { grid-template-columns: 1fr; } }
- .bento-card {
- background: var(--surface-0);
- padding: 36px 32px 32px;
- display: flex; flex-direction: column; gap: 12px;
- transition: background 0.15s;
- position: relative; overflow: hidden;
- }
- .bento-card:hover { background: var(--surface-1); }
- .bento-card.span2 { grid-column: span 2; }
- @media (max-width: 1080px) { .bento-card.span2 { grid-column: span 1; } }
- .bento-icon {
- font-size: 22px; line-height: 1; margin-bottom: 4px;
- display: flex; align-items: center; gap: 10px;
- }
- .bento-icon .dot {
- width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
- }
- .bento-title {
- font-family: var(--font-display); font-size: 20px;
- font-weight: 600; letter-spacing: -0.02em; margin: 0;
- }
- .bento-desc {
- font-size: 14.5px; color: var(--text-2);
- line-height: 1.55; margin: 0; flex: 1;
- }
- .bento-tag {
- display: inline-flex; align-items: center;
- font-family: var(--font-mono); font-size: 10.5px;
- letter-spacing: 0.15em; text-transform: uppercase;
- color: var(--text-4); border: 1px solid var(--hairline-strong);
- padding: 4px 9px; border-radius: 99px;
- margin-top: 4px; width: fit-content;
- }
- .bento-screenshot {
- border-radius: 7px; overflow: hidden;
- border: 1px solid var(--hairline-strong);
- margin-top: 8px; background: var(--surface-2);
- }
- .bento-screenshot img { width: 100%; display: block; }
- .bento-pills {
- display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
- }
- .bento-pill {
- font-family: var(--font-mono); font-size: 11px;
- letter-spacing: 0.1em; text-transform: uppercase;
- color: var(--text-3); border: 1px solid var(--hairline-strong);
- padding: 3px 8px; border-radius: 4px;
- }
- .bento-code {
- font-family: var(--font-mono); font-size: 12.5px;
- background: var(--surface-2); border: 1px solid var(--hairline-strong);
- border-radius: 7px; padding: 14px 16px; color: var(--text-2);
- line-height: 1.7; margin-top: 8px; overflow-x: auto;
- }
- .bento-code .kw { color: var(--text-3); }
- .bento-code .val { color: var(--text); }
- .bento-code .str { color: #c8c8c8; }
-
- /* ── FEATURE SPLIT SECTIONS ──────────────────────────────── */
- .feat-split {
- display: grid; grid-template-columns: 1fr 1fr;
- gap: 80px; align-items: center;
- }
- @media (max-width: 980px) { .feat-split { grid-template-columns: 1fr; gap: 48px; } }
- .feat-split.rev { direction: rtl; }
- .feat-split.rev > * { direction: ltr; }
- @media (max-width: 980px) { .feat-split.rev { direction: ltr; } }
- .feat-text { display: flex; flex-direction: column; gap: 20px; }
- .feat-eyebrow {
- font-family: var(--font-mono); font-size: 11px;
- letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3);
- }
- .feat-h {
- font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 44px);
- line-height: 1.05; letter-spacing: -0.03em;
- font-weight: 600; margin: 0; color: var(--text);
- }
- .feat-h em { font-style: normal; color: var(--text-3); font-weight: 500; }
- .feat-body { font-size: 16px; color: var(--text-2); line-height: 1.6; margin: 0; }
- .feat-list {
- list-style: none; padding: 0; margin: 0;
- display: flex; flex-direction: column; gap: 10px;
- }
- .feat-list li {
- display: flex; align-items: flex-start; gap: 12px;
- font-size: 14.5px; color: var(--text-2); line-height: 1.5;
- }
- .feat-list li::before {
- content: ""; width: 5px; height: 5px; border-radius: 50%;
- background: var(--text-3); flex-shrink: 0; margin-top: 7px;
- }
- .feat-list li strong { color: var(--text); font-weight: 550; }
- .feat-visual {
- border: 1px solid var(--hairline-strong);
- border-radius: 14px; overflow: hidden;
- background: var(--surface-0);
- position: relative;
- }
- .feat-visual img { width: 100%; display: block; }
- .feat-visual-inner {
- padding: 28px; display: flex; flex-direction: column; gap: 16px;
- }
- .feat-visual-label {
- font-family: var(--font-mono); font-size: 10.5px;
- letter-spacing: 0.18em; text-transform: uppercase;
- color: var(--text-3); padding: 14px 18px;
- border-bottom: 1px solid var(--hairline);
- }
-
- /* Walk embed preview */
- .walk-preview-wrap {
- display: flex; flex-direction: column; gap: 0;
- }
- .walk-preview-canvas-area {
- position: relative; aspect-ratio: 16 / 9;
- background: #0d0f14; overflow: hidden; cursor: grab;
- }
- .walk-preview-canvas-area:active { cursor: grabbing; }
- .walk-preview-canvas {
- display: block; width: 100%; height: 100%;
- }
- .walk-preview-loading {
- position: absolute; inset: 0; display: flex;
- flex-direction: column; align-items: center;
- justify-content: center; gap: 12px;
- background: #0d0f14; z-index: 4;
- font-family: var(--font-mono); font-size: 11px;
- color: var(--text-3); letter-spacing: 0.1em;
- transition: opacity 0.5s ease;
- }
- .walk-preview-loading.is-done { opacity: 0; pointer-events: none; }
- .walk-preview-spinner {
- width: 24px; height: 24px; border: 2px solid var(--hairline-strong);
- border-top-color: var(--text-2); border-radius: 50%;
- animation: walk-spin 0.8s linear infinite;
- }
- @keyframes walk-spin { to { transform: rotate(360deg); } }
- .walk-preview-hint {
- position: absolute; bottom: 10px; left: 50%;
- transform: translateX(-50%); display: flex; gap: 14px;
- font-family: var(--font-mono); font-size: 9.5px;
- color: var(--text-4); letter-spacing: 0.06em;
- opacity: 0.7; pointer-events: none; z-index: 3;
- white-space: nowrap;
- }
- .walk-preview-hint kbd {
- display: inline-block; padding: 1px 4px;
- border: 1px solid var(--hairline-strong);
- border-radius: 3px; font-family: var(--font-mono);
- font-size: 9px; color: var(--text-3);
- background: var(--surface-2); margin: 0 1px;
- }
- .walk-preview-joystick {
- position: absolute; bottom: 14px; right: 14px;
- width: 90px; height: 90px; z-index: 5;
- }
- @media (min-width: 768px) {
- .walk-preview-joystick { display: none; }
- }
- @media (max-width: 767px) {
- .walk-preview-hint { display: none; }
- .walk-preview-joystick { display: block; }
- }
-
- /* Pump.fun earn rows */
- .earn-rows { display: flex; flex-direction: column; gap: 1px; }
- .earn-row {
- background: var(--surface-1); padding: 14px 18px;
- display: flex; justify-content: space-between; align-items: center;
- border-bottom: 1px solid var(--hairline);
- }
- .earn-row:last-child { border-bottom: none; }
- .earn-row-left { display: flex; flex-direction: column; gap: 2px; }
- .earn-row-name { font-size: 14px; font-weight: 500; color: var(--text); }
- .earn-row-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-4); }
- .earn-row-amount { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--green); }
-
- /* Token card */
- .token-card {
- background: var(--surface-1); border: 1px solid var(--hairline-strong);
- border-radius: 10px; padding: 18px; display: flex; gap: 14px; align-items: center;
- }
- .token-avatar {
- width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
- background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
- display: flex; align-items: center; justify-content: center;
- font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: #fff;
- }
- .token-info { flex: 1; }
- .token-name { font-size: 14px; font-weight: 600; color: var(--text); }
- .token-ticker { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
- .token-price { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--green); }
-
- /* ── STEPS ───────────────────────────────────────────────── */
- .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; }
- @media (max-width: 980px) { .steps { grid-template-columns: 1fr; gap: 48px; } }
- .step { border-top: 1px solid var(--hairline-strong); padding-top: 28px; }
- .step-num { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.18em; color: var(--text-3); margin-bottom: 22px; }
- .step-title { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 12px; }
- .step-body { color: var(--text-2); font-size: 15px; line-height: 1.55; margin: 0; }
-
- /* ── SHOWCASE 3D ─────────────────────────────────────────── */
- .showcase-3d { perspective: 1200px; perspective-origin: 50% 40%; }
- .showcase-3d-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
- @media (max-width: 1080px) { .showcase-3d-grid { grid-template-columns: repeat(2, 1fr); } }
- @media (max-width: 560px) { .showcase-3d-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; } }
- .showcase-agent-card {
- position: relative; aspect-ratio: 3 / 4; border-radius: 16px;
- overflow: hidden; background: var(--surface-0); border: 1px solid var(--hairline);
- transform-style: preserve-3d;
- transform: rotateX(0) rotateY(0) translateZ(0);
- transition: transform 0.45s cubic-bezier(.22,.68,0,.98), box-shadow 0.4s, border-color 0.3s;
- cursor: pointer; text-decoration: none; display: block;
- }
- .showcase-agent-card:hover {
- transform: translateZ(24px) scale(1.03);
- border-color: rgba(255,255,255,0.12);
- box-shadow: 0 20px 60px -12px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
- }
- .showcase-agent-card agent-3d {
- position: absolute; inset: 0; width: 100%; height: 100%;
- display: block; opacity: 0; transition: opacity 0.6s ease;
- }
- .showcase-agent-card agent-3d.loaded { opacity: 1; }
- .showcase-card-grad { position: absolute; inset: 0; z-index: 0; opacity: 0.5; transition: opacity 0.4s; }
- .showcase-agent-card:hover .showcase-card-grad { opacity: 0.7; }
- .showcase-card-floor {
- position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
- background: linear-gradient(180deg, transparent 0%, rgba(5,5,5,0.95) 100%);
- z-index: 1; pointer-events: none;
- }
- .showcase-card-meta {
- position: absolute; bottom: 0; left: 0; right: 0;
- padding: 18px 16px; z-index: 3; color: var(--text);
- }
- .showcase-card-name {
- font-family: var(--font-display); font-size: 15px; font-weight: 600;
- letter-spacing: -0.015em; margin: 0 0 3px;
- white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
- }
- .showcase-card-sub {
- font-family: var(--font-mono); font-size: 10px; color: var(--text-3);
- letter-spacing: 0.08em; text-transform: uppercase;
- }
- .showcase-card-tag {
- position: absolute; top: 12px; left: 12px; z-index: 4;
- font-family: var(--font-mono); font-size: 9.5px;
- letter-spacing: 0.18em; text-transform: uppercase; color: var(--text);
- padding: 3px 8px; background: rgba(5,5,5,0.55);
- border: 1px solid var(--hairline-strong); border-radius: 99px; backdrop-filter: blur(6px);
- }
- .showcase-card-anim-tag {
- position: absolute; top: 12px; right: 12px; z-index: 4;
- font-family: var(--font-mono); font-size: 9px;
- letter-spacing: 0.08em; color: rgba(255,255,255,0.35); text-transform: lowercase;
- }
- .showcase-card-skel {
- position: absolute; inset: 0;
- display: flex; align-items: center; justify-content: center; z-index: 0;
- }
- .showcase-card-skel-ring {
- width: 32px; height: 32px;
- border: 2px solid rgba(255,255,255,0.08); border-top-color: rgba(255,255,255,0.25);
- border-radius: 50%; animation: showcase-spin 0.9s linear infinite;
- }
- @keyframes showcase-spin { to { transform: rotate(360deg); } }
- .showcase-cta-card {
- position: relative; aspect-ratio: 3 / 4; border-radius: 16px;
- overflow: hidden; border: 1px solid var(--hairline);
- display: flex; flex-direction: column; align-items: center; justify-content: center;
- text-align: center; text-decoration: none; background: var(--surface-0);
- transition: transform 0.35s cubic-bezier(.22,.68,0,.98), border-color 0.3s, background 0.3s;
- cursor: pointer; gap: 10px; padding: 24px;
- }
- .showcase-cta-card:hover {
- transform: translateZ(12px) scale(1.02);
- border-color: rgba(255,255,255,0.15); background: var(--surface-1);
- }
- .showcase-cta-icon { font-size: 28px; opacity: 0.4; transition: opacity 0.3s; }
- .showcase-cta-card:hover .showcase-cta-icon { opacity: 0.7; }
- .showcase-cta-label {
- font-family: var(--font-display); font-size: 15px; font-weight: 600;
- color: var(--text); letter-spacing: -0.01em;
- }
- .showcase-cta-sub {
- font-family: var(--font-mono); font-size: 10px; color: var(--text-3);
- letter-spacing: 0.06em; text-transform: uppercase;
- }
-
- /* ── DEVELOPER SECTION / API PLAYGROUND ──────────────────── */
- .dev-grid {
- display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1px;
- background: var(--hairline); border: 1px solid var(--hairline);
- border-radius: 14px; overflow: hidden;
- }
- @media (max-width: 980px) { .dev-grid { grid-template-columns: 1fr; } }
- .dev-pane { background: var(--surface-0); padding: 0; }
- .dev-pane-head {
- padding: 14px 20px; border-bottom: 1px solid var(--hairline);
- font-family: var(--font-mono); font-size: 11.5px;
- letter-spacing: 0.12em; color: var(--text-3);
- display: flex; justify-content: space-between; align-items: center;
- }
- .dev-tabs {
- display: flex; gap: 0; border-bottom: 1px solid var(--hairline);
- }
- .dev-tab {
- padding: 10px 18px; font-family: var(--font-mono); font-size: 11px;
- letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-4);
- cursor: pointer; border-bottom: 2px solid transparent;
- transition: color 0.15s, border-color 0.15s; user-select: none;
- background: none; border-top: none; border-left: none; border-right: none;
- }
- .dev-tab:hover { color: var(--text-2); }
- .dev-tab.active { color: var(--text); border-bottom-color: var(--text); }
- .dev-tab-content { display: none; }
- .dev-tab-content.active { display: block; }
- .dev-code {
- font-family: var(--font-mono); font-size: 12.5px;
- line-height: 1.8; padding: 24px 24px; color: var(--text-2);
- overflow-x: auto;
- }
- .dev-code .kw { color: var(--text-3); }
- .dev-code .fn { color: var(--text); font-weight: 500; }
- .dev-code .str { color: #c5c5c5; }
- .dev-code .cmt { color: var(--text-4); }
- .dev-code .num { color: #b0b0b0; }
- .dev-links { padding: 16px 24px; border-top: 1px solid var(--hairline); }
- .dev-links-row { display: flex; gap: 10px; flex-wrap: wrap; }
- .dev-link {
- display: inline-flex; align-items: center; gap: 7px;
- padding: 7px 13px; border-radius: 6px;
- border: 1px solid var(--hairline-strong);
- font-size: 13px; font-weight: 500; color: var(--text-2);
- transition: border-color 0.15s, color 0.15s;
- }
- .dev-link:hover { border-color: var(--text); color: var(--text); }
- .dev-right { display: flex; flex-direction: column; }
- .dev-api-row {
- padding: 14px 20px; border-bottom: 1px solid var(--hairline);
- display: flex; flex-direction: column; gap: 4px;
- cursor: pointer; transition: background 0.15s;
- }
- .dev-api-row:hover { background: var(--surface-1); }
- .dev-api-row.active {
- background: var(--surface-2);
- box-shadow: inset 3px 0 0 var(--text-3);
- }
- .dev-api-method {
- font-family: var(--font-mono); font-size: 11px;
- letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3);
- }
- .dev-api-path {
- font-family: var(--font-mono); font-size: 13px; color: var(--text);
- }
- .dev-api-desc { font-size: 12px; color: var(--text-4); }
- .dev-badge {
- display: inline-block; font-family: var(--font-mono); font-size: 10px;
- letter-spacing: 0.1em; text-transform: uppercase;
- padding: 2px 7px; border-radius: 4px; font-weight: 700;
- min-width: 36px; text-align: center;
- }
- .dev-badge.get { background: rgba(74,222,128,0.12); color: #4ade80; }
- .dev-badge.post { background: rgba(96,165,250,0.12); color: #60a5fa; }
- .dev-badge.mcp { background: rgba(255,92,168,0.12); color: #ff8cc8; }
-
- /* ── Playground request builder ──────────────────────────── */
- .pg-request { padding: 20px 24px; }
- .pg-field { margin-bottom: 14px; }
- .pg-field-label {
- font-family: var(--font-mono); font-size: 10.5px;
- letter-spacing: 0.12em; text-transform: uppercase;
- color: var(--text-4); margin-bottom: 6px; display: block;
- }
- .pg-input {
- width: 100%; background: var(--surface-2); border: 1px solid var(--hairline-strong);
- border-radius: 6px; padding: 9px 12px; color: var(--text);
- font-family: var(--font-mono); font-size: 12.5px; outline: none;
- transition: border-color 0.15s;
- }
- .pg-input:focus { border-color: var(--text-3); }
- .pg-input::placeholder { color: var(--text-4); }
- textarea.pg-input { min-height: 80px; resize: vertical; line-height: 1.6; }
- .pg-url-bar {
- display: flex; align-items: center; gap: 0;
- background: var(--surface-2); border: 1px solid var(--hairline-strong);
- border-radius: 6px; overflow: hidden; margin-bottom: 16px;
- }
- .pg-url-method {
- padding: 9px 12px; font-family: var(--font-mono); font-size: 11px;
- font-weight: 700; letter-spacing: 0.08em; color: #4ade80;
- border-right: 1px solid var(--hairline-strong); background: var(--surface-1);
- min-width: 52px; text-align: center; user-select: none;
- }
- .pg-url-method.post { color: #60a5fa; }
- .pg-url-path {
- flex: 1; padding: 9px 12px; font-family: var(--font-mono); font-size: 12.5px;
- color: var(--text-2); background: transparent; border: none; outline: none;
- }
- .pg-url-path::placeholder { color: var(--text-4); }
- .pg-send {
- padding: 9px 20px; background: var(--text); color: var(--bg);
- font-family: var(--font-mono); font-size: 11px; font-weight: 700;
- letter-spacing: 0.1em; text-transform: uppercase; border: none;
- border-radius: 6px; cursor: pointer; transition: opacity 0.15s;
- }
- .pg-send:hover { opacity: 0.85; }
- .pg-send:active { opacity: 0.7; }
- .pg-send:disabled { opacity: 0.4; cursor: not-allowed; }
- .pg-actions { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
- .pg-status {
- font-family: var(--font-mono); font-size: 11px;
- letter-spacing: 0.05em; color: var(--text-4);
- }
- .pg-status.ok { color: #4ade80; }
- .pg-status.err { color: #f87171; }
- .pg-response {
- background: var(--surface-1); border: 1px solid var(--hairline);
- border-radius: 8px; overflow: hidden;
- }
- .pg-response-head {
- padding: 10px 16px; border-bottom: 1px solid var(--hairline);
- font-family: var(--font-mono); font-size: 10.5px;
- letter-spacing: 0.1em; text-transform: uppercase;
- color: var(--text-4); display: flex; justify-content: space-between;
- }
- .pg-response-body {
- padding: 16px; font-family: var(--font-mono); font-size: 12px;
- line-height: 1.7; color: var(--text-2); max-height: 260px;
- overflow-y: auto; white-space: pre-wrap; word-break: break-all;
- }
- .pg-response-body::-webkit-scrollbar { width: 5px; }
- .pg-response-body::-webkit-scrollbar-track { background: transparent; }
- .pg-response-body::-webkit-scrollbar-thumb { background: var(--hairline-strong); border-radius: 3px; }
- .pg-empty {
- padding: 40px 24px; text-align: center; color: var(--text-4);
- font-size: 13px; line-height: 1.6;
- }
- .pg-empty-icon { font-size: 32px; margin-bottom: 12px; opacity: 0.3; }
- .pg-response-body .json-key { color: #60a5fa; }
- .pg-response-body .json-str { color: #4ade80; }
- .pg-response-body .json-num { color: #fbbf24; }
- .pg-response-body .json-bool { color: #c084fc; }
- .pg-response-body .json-null { color: var(--text-4); }
- .pg-curl-code {
- font-family: var(--font-mono); font-size: 12px;
- line-height: 1.8; padding: 24px; color: var(--text-2);
- white-space: pre-wrap; word-break: break-all;
- }
- .pg-copy {
- padding: 4px 10px; background: var(--surface-2); border: 1px solid var(--hairline-strong);
- border-radius: 4px; color: var(--text-3); font-family: var(--font-mono);
- font-size: 10px; letter-spacing: 0.1em; cursor: pointer;
- transition: color 0.15s, border-color 0.15s;
- }
- .pg-copy:hover { color: var(--text); border-color: var(--text-3); }
-
- /* ── PRICING TEASER ──────────────────────────────────────── */
- .pricing-grid {
- display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
- background: var(--hairline); border: 1px solid var(--hairline);
- border-radius: 14px; overflow: hidden;
- }
- @media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }
- .pricing-card {
- background: var(--surface-0); padding: 40px 32px;
- display: flex; flex-direction: column; gap: 0;
- transition: background 0.15s; position: relative;
- }
- .pricing-card:hover { background: var(--surface-1); }
- .pricing-card.featured {
- background: var(--surface-1);
- box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
- }
- .pricing-badge {
- position: absolute; top: 16px; right: 16px;
- font-family: var(--font-mono); font-size: 10px;
- letter-spacing: 0.15em; text-transform: uppercase;
- background: rgba(255,255,255,0.15); color: #cccccc;
- padding: 3px 9px; border-radius: 99px;
- }
- .pricing-tier {
- font-family: var(--font-mono); font-size: 11px;
- letter-spacing: 0.18em; text-transform: uppercase;
- color: var(--text-3); margin-bottom: 12px;
- }
- .pricing-price {
- font-family: var(--font-display); font-size: 40px;
- font-weight: 600; letter-spacing: -0.03em;
- color: var(--text); margin: 0 0 4px; line-height: 1;
- }
- .pricing-price sub { font-size: 16px; font-weight: 400; color: var(--text-3); }
- .pricing-cycle { font-size: 13px; color: var(--text-3); margin-bottom: 28px; }
- .pricing-feats {
- list-style: none; padding: 0; margin: 0 0 32px; flex: 1;
- display: flex; flex-direction: column; gap: 10px;
- }
- .pricing-feats li {
- display: flex; align-items: flex-start; gap: 10px;
- font-size: 14px; color: var(--text-2); line-height: 1.45;
- }
- .pricing-feats li::before {
- content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0;
- font-size: 12px; margin-top: 1px;
- }
-
- /* ── BOTTOM CTA ──────────────────────────────────────────── */
- .cta-card {
- padding: 80px 64px; border: 1px solid var(--hairline-strong);
- border-radius: 16px; text-align: center; background: var(--surface-0);
- }
- .cta-card h2 {
- font-family: var(--font-display); font-size: clamp(30px, 4vw, 50px);
- line-height: 1.0; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 18px;
- }
- .cta-card p { color: var(--text-2); font-size: 17px; margin: 0 0 36px; }
- .cta-card .cta-row { justify-content: center; }
- @media (max-width: 720px) { .cta-card { padding: 48px 24px; } }
-
- /* ── FOOTER ──────────────────────────────────────────────── */
- footer { border-top: 1px solid var(--hairline); padding: 40px 0 56px; }
- .foot-inner {
- display: flex; justify-content: space-between; align-items: center;
- gap: 24px; flex-wrap: wrap;
- color: var(--text-4); font-size: 13px; font-family: var(--font-mono);
- letter-spacing: 0.04em;
- }
- .foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
- .foot-links a { color: var(--text-3); transition: color 0.15s; }
- .foot-links a:hover { color: var(--text); }
-
- /* ── MOBILE NAV ─────────────────────────────────────────── */
- .nav-toggle {
- display: none; align-items: center; justify-content: center;
- width: 36px; height: 36px; padding: 0; margin-left: auto;
- background: none; border: 1px solid var(--hairline-strong);
- border-radius: 7px; color: var(--text); cursor: pointer;
- transition: border-color 0.15s, background 0.15s;
- }
- .nav-toggle:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }
- .nav-toggle svg { width: 16px; height: 16px; }
- .nav-toggle .close { display: none; }
- .nav-toggle[aria-expanded="true"] .open { display: none; }
- .nav-toggle[aria-expanded="true"] .close { display: block; }
- .nav-drawer {
- display: none; position: fixed; inset: 57px 0 0;
- z-index: 99; background: rgba(5,5,5,0.96);
- backdrop-filter: blur(24px) saturate(140%);
- padding: 24px 24px 40px; flex-direction: column; gap: 4px;
- opacity: 0; transform: translateY(-8px);
- transition: opacity 0.25s ease, transform 0.25s ease;
- }
- .nav-drawer.open { display: flex; opacity: 1; transform: translateY(0); }
- .nav-drawer a {
- padding: 14px 16px; font-size: 16px; font-weight: 450;
- color: var(--text-2); border-radius: 8px;
- transition: background 0.12s, color 0.12s;
- }
- .nav-drawer a:hover { background: var(--surface-1); color: var(--text); }
- .nav-drawer .sep { height: 1px; background: var(--hairline); margin: 12px 0; }
- .nav-drawer .btn { margin-top: 8px; justify-content: center; }
- @media (max-width: 880px) {
- .nav-toggle { display: flex; }
- .nav-end { display: none; }
- }
-
- /* ── HERO LOADING ───────────────────────────────────────── */
- .hero-stage-shimmer {
- position: absolute; inset: 0; z-index: 1;
- display: flex; align-items: center; justify-content: center;
- transition: opacity 0.6s ease;
- }
- .hero-stage-shimmer.hidden { opacity: 0; pointer-events: none; }
- .hero-stage-shimmer::before {
- content: ""; width: 120px; height: 120px; border-radius: 50%;
- background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
- animation: hero-pulse 2.4s ease-in-out infinite;
- }
- @keyframes hero-pulse {
- 0%, 100% { transform: scale(1); opacity: 0.5; }
- 50% { transform: scale(1.3); opacity: 1; }
- }
- .hero-stage agent-3d {
- position: absolute; inset: 0; display: block; width: 100%; height: 100%;
- opacity: 0; transition: opacity 0.8s cubic-bezier(.2,.7,.3,1);
- }
- .hero-stage agent-3d.loaded { opacity: 1; }
-
- /* ── HERO THOUGHT BUBBLE ────────────────────────────────── */
- .hero-thought {
- position: absolute;
- top: 10%; left: 50%;
- transform: translateX(-50%) translate3d(var(--tilt-x, 0px), var(--tilt-y, 0px), 0);
- transform-origin: bottom center;
- z-index: 20;
- width: max-content;
- max-width: min(clamp(220px, 52cqi, 360px), calc(100% - 32px));
- opacity: 0; pointer-events: none;
- transition: opacity 0.35s cubic-bezier(.2,.7,.3,1);
- will-change: transform, opacity;
- }
- .hero-thought.visible { opacity: 1; pointer-events: auto; }
- .hero-thought-inner {
- background: rgba(14,14,14,0.88);
- backdrop-filter: blur(16px) saturate(140%);
- -webkit-backdrop-filter: blur(16px) saturate(140%);
- border: 1px solid rgba(255,255,255,0.1);
- border-radius: clamp(10px, 2cqi, 14px);
- padding: clamp(10px, 2cqi, 14px) clamp(12px, 2.6cqi, 18px);
- font-size: clamp(12px, 2cqi, 14px); line-height: 1.55; color: var(--text);
- max-height: clamp(120px, 26cqi, 180px); overflow-y: auto;
- scrollbar-width: thin; scrollbar-color: var(--hairline-strong) transparent;
- }
- .hero-thought-inner::-webkit-scrollbar { width: 4px; }
- .hero-thought-inner::-webkit-scrollbar-track { background: transparent; }
- .hero-thought-inner::-webkit-scrollbar-thumb { background: var(--hairline-strong); border-radius: 2px; }
- .hero-thought-tail {
- width: 20px; height: 12px; margin: -1px auto 0;
- display: block; position: relative;
- }
- .hero-thought-tail::before {
- content: ""; position: absolute; top: 0; left: 50%;
- transform: translateX(-50%); width: 0; height: 0;
- border-left: 10px solid transparent; border-right: 10px solid transparent;
- border-top: 12px solid rgba(255,255,255,0.1);
- }
- .hero-thought-tail::after {
- content: ""; position: absolute; top: 0; left: 50%;
- transform: translateX(-50%); width: 0; height: 0;
- border-left: 9px solid transparent; border-right: 9px solid transparent;
- border-top: 11px solid rgba(14,14,14,0.88);
- }
- .hero-thought-dots {
- display: flex; gap: 5px; align-items: center; padding: 2px 0;
- }
- .hero-thought-dots span {
- width: 6px; height: 6px; border-radius: 50%;
- background: var(--text-3);
- animation: thought-bounce 1.4s ease-in-out infinite;
- }
- .hero-thought-dots span:nth-child(2) { animation-delay: 0.15s; }
- .hero-thought-dots span:nth-child(3) { animation-delay: 0.3s; }
- @keyframes thought-bounce {
- 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
- 30% { opacity: 1; transform: translateY(-4px); }
- }
-
- /* ── HERO CHAT INPUT ────────────────────────────────────── */
- .hero-chat-bar {
- position: absolute; bottom: 72px; left: 50%;
- transform: translateX(-50%); z-index: 20;
- width: min(380px, calc(100% - 40px));
- }
- .hero-chat-form {
- display: flex; align-items: center; gap: 0;
- background: rgba(14,14,14,0.82);
- backdrop-filter: blur(16px) saturate(140%);
- -webkit-backdrop-filter: blur(16px) saturate(140%);
- border: 1px solid rgba(255,255,255,0.1);
- border-radius: 999px; padding: 4px 4px 4px 16px;
- transition: border-color 0.2s;
- }
- .hero-chat-form:focus-within { border-color: rgba(255,255,255,0.25); }
- .hero-chat-input {
- flex: 1; background: transparent; border: none; outline: none;
- color: var(--text); font-family: var(--font-body);
- font-size: 13.5px; padding: 8px 0; min-width: 0;
- }
- .hero-chat-input::placeholder { color: var(--text-4); }
- .hero-chat-send {
- flex-shrink: 0; width: 32px; height: 32px;
- border-radius: 50%; border: none;
- background: var(--text); color: var(--bg);
- display: flex; align-items: center; justify-content: center;
- cursor: pointer; transition: opacity 0.15s, transform 0.15s;
- }
- .hero-chat-send:hover { opacity: 0.85; }
- .hero-chat-send:active { transform: scale(0.92); }
- .hero-chat-send:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }
- .hero-chat-send svg { width: 14px; height: 14px; }
- .hero-chat-hint {
- text-align: center; margin-top: 8px;
- font-family: var(--font-mono); font-size: 10px;
- letter-spacing: 0.12em; text-transform: uppercase;
- color: var(--text-4); opacity: 0.6;
- }
- @media (max-width: 980px) {
- .hero-chat-bar { bottom: 20px; }
- .hero-thought { top: 4%; }
- }
-
- /* ── REVEAL ANIMATIONS ──────────────────────────────────── */
- .reveal {
- opacity: 0; transform: translateY(32px);
- transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1);
- }
- .reveal.vis { opacity: 1; transform: translateY(0); }
- .reveal-d1 { transition-delay: 0.08s; }
- .reveal-d2 { transition-delay: 0.16s; }
-
- /* ── HERO TEXT ENTRANCE ──────────────────────────────────── */
- .hero-text > * {
- opacity: 0; transform: translateY(24px);
- transition: opacity 0.6s cubic-bezier(.2,.7,.3,1), transform 0.6s cubic-bezier(.2,.7,.3,1);
- }
- .hero-text.entered > * { opacity: 1; transform: translateY(0); }
- .hero-text > *:nth-child(1) { transition-delay: 0.05s; }
- .hero-text > *:nth-child(2) { transition-delay: 0.12s; }
- .hero-text > *:nth-child(3) { transition-delay: 0.22s; }
- .hero-text > *:nth-child(4) { transition-delay: 0.32s; }
- .hero-text > *:nth-child(5) { transition-delay: 0.42s; }
-
- /* ── BENTO GLOW ─────────────────────────────────────────── */
- .bento-card { --bx: 50%; --by: 50%; }
- .bento-card::before {
- content: ""; position: absolute; inset: 0; pointer-events: none;
- background: radial-gradient(600px circle at var(--bx) var(--by), rgba(255,255,255,0.04), transparent 40%);
- opacity: 0; transition: opacity 0.3s;
- }
- .bento-card:hover::before { opacity: 1; }
-
- /* ── ENHANCED INTERACTIVE STATES ─────────────────────────── */
- .btn:focus-visible, .copy-btn:focus-visible, .nav-toggle:focus-visible {
- outline: 2px solid rgba(255,255,255,0.5); outline-offset: 2px;
- }
- .btn:active:not(.primary) { background: rgba(255,255,255,0.06); }
- .btn.primary:active { background: #e0e0e0; }
- .door-screenshot img[src] { transition: transform 0.4s cubic-bezier(.2,.7,.3,1); }
- .door:hover .door-screenshot img { transform: scale(1.03); }
- .pricing-card { transition: background 0.15s, transform 0.2s; }
- .pricing-card:hover { transform: translateY(-2px); }
-
- /* ── PRICING AVATAR STAGE ────────────────────────────── */
- .pricing-stage { position: relative; }
- #pricing-canvas {
- position: absolute;
- top: -200px; left: 0; right: 0; bottom: 0;
- pointer-events: none; z-index: 10;
- }
- .pricing-card.is-active {
- background: var(--surface-1);
- box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
- transform: translateY(-2px);
- }
- .pricing-hint {
- text-align: center; margin-top: 20px;
- font-family: var(--font-mono); font-size: 11px;
- letter-spacing: 0.12em; text-transform: uppercase;
- color: var(--text-4);
- }
- @media (max-width: 860px) {
- #pricing-canvas, .pricing-hint { display: none; }
- }
- @keyframes stat-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
- .stat-animated { animation: stat-in 0.5s cubic-bezier(.2,.7,.3,1) both; }
-
- /* ── ACCESSIBILITY ──────────────────────────────────────── */
- @media (prefers-reduced-motion: reduce) {
- .reveal, .hero-text > * { opacity: 1 !important; transform: none !important; transition: none !important; }
- .hero-stage agent-3d { opacity: 1 !important; transition: none !important; }
- .hero-stage-shimmer { display: none !important; }
- }
-
- /* ── HERO ANIMATION CHIPS ────────────────────────────────── */
- .hero-chips-wrap {
- position: absolute;
- bottom: 0; left: 0; right: 0;
- z-index: 10;
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 8px;
- padding: 32px 20px 20px;
- background: linear-gradient(0deg, rgba(5,5,5,0.75) 0%, transparent 100%);
- pointer-events: none;
- }
- .hero-chips-wrap > * { pointer-events: auto; }
- .hero-chips-label {
- font-family: var(--font-mono);
- font-size: 10px;
- letter-spacing: 0.22em;
- text-transform: uppercase;
- color: var(--text-4);
- display: flex;
- align-items: center;
- gap: 8px;
- }
- .hero-chips-label::before {
- content: "";
- display: inline-block;
- width: 5px; height: 5px;
- border-radius: 50%;
- background: var(--text-3);
- box-shadow: 0 0 5px var(--text-3);
- animation: pulse-green 2.4s ease-in-out infinite;
- }
- .hero-chips {
- display: flex;
- flex-wrap: wrap;
- justify-content: center;
- gap: 6px;
- }
- .hero-chip {
- display: inline-flex;
- align-items: center;
- gap: 6px;
- padding: 7px 13px;
- border-radius: 999px;
- background: rgba(5,5,5,0.6);
- backdrop-filter: blur(12px);
- -webkit-backdrop-filter: blur(12px);
- border: 1px solid var(--hairline-strong);
- color: var(--text-3);
- font: 500 12.5px/1 var(--font-body);
- cursor: pointer;
- transition: border-color 0.15s, color 0.15s, background 0.15s;
- user-select: none;
- }
- .hero-chip:hover {
- border-color: rgba(255,255,255,0.4);
- color: var(--text);
- background: rgba(255,255,255,0.06);
- }
- .hero-chip[data-active="true"] {
- border-color: rgba(255,255,255,0.55);
- color: var(--text);
- background: rgba(255,255,255,0.1);
- }
- .hero-chips-counter {
- font-family: var(--font-mono);
- font-size: 10px;
- letter-spacing: 0.12em;
- color: var(--text-4);
- }
- .hero-chips-counter strong { color: var(--text-3); font-weight: 600; }
- @media (max-width: 980px) { .hero-chips-wrap { display: none; } }
- @media (prefers-reduced-motion: reduce) {
- .hero-chips-label::before { animation: none !important; }
- }
-
- /* ── 3D STACK GRID ───────────────────────────────────────────── */
- .stack-3d {
- perspective: 1400px;
- perspective-origin: 50% 40%;
- }
- .stack-3d-scene {
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- gap: 1px;
- background: var(--hairline);
- border: 1px solid var(--hairline);
- border-radius: 14px;
- overflow: hidden;
- transform-style: preserve-3d;
- transform: rotateX(0deg) rotateY(0deg);
- transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
- will-change: transform;
- }
- .stack-card {
- position: relative;
- background: var(--surface-0);
- padding: 40px 32px 36px;
- display: flex;
- flex-direction: column;
- gap: 10px;
- text-decoration: none;
- color: var(--text);
- transition:
- background 0.3s ease,
- opacity 0.35s ease;
- cursor: pointer;
- overflow: hidden;
- min-height: 210px;
- }
- .stack-card::before {
- content: '';
- position: absolute;
- inset: 0;
- opacity: 0;
- background: radial-gradient(
- 600px circle at var(--mx, 50%) var(--my, 50%),
- rgba(255,255,255,0.045),
- transparent 40%
- );
- transition: opacity 0.4s ease;
- pointer-events: none;
- z-index: 1;
- }
- .stack-card:hover::before { opacity: 1; }
- .stack-card::after {
- content: '';
- position: absolute;
- inset: -1px;
- border-radius: inherit;
- opacity: 0;
- background: radial-gradient(
- 400px circle at var(--mx, 50%) var(--my, 50%),
- rgba(255,255,255,0.13),
- transparent 40%
- );
- mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
- mask-composite: exclude;
- -webkit-mask-composite: xor;
- padding: 1px;
- transition: opacity 0.4s ease;
- pointer-events: none;
- z-index: 2;
- }
- .stack-card:hover::after { opacity: 1; }
- .stack-card:hover {
- background: var(--surface-1);
- z-index: 3;
- }
- .stack-3d-scene:hover .stack-card:not(:hover) {
- opacity: 0.55;
- }
- .stack-card-num {
- font-family: var(--font-mono);
- font-size: 11px;
- letter-spacing: 0.18em;
- color: var(--text-4);
- margin-bottom: 6px;
- }
- .stack-card-title {
- font-family: var(--font-display);
- font-size: clamp(22px, 2.2vw, 30px);
- font-weight: 600;
- letter-spacing: -0.025em;
- line-height: 1.1;
- margin: 0;
- }
- .stack-card-desc {
- color: var(--text-2);
- font-size: 14px;
- line-height: 1.55;
- margin: 0;
- flex: 1;
- }
- .stack-card-arrow {
- font-family: var(--font-mono);
- font-size: 16px;
- color: var(--text-4);
- align-self: flex-end;
- transition: color 0.25s, transform 0.25s;
- }
- .stack-card:hover .stack-card-arrow {
- color: var(--text);
- transform: translate(4px, -4px);
- }
- /* staggered entrance */
- .stack-3d .stack-card {
- opacity: 0;
- transform: translateY(30px);
- transition:
- background 0.3s ease,
- opacity 0.55s cubic-bezier(0.23, 1, 0.32, 1),
- transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
- }
- .stack-3d.vis .stack-card {
- opacity: 1;
- transform: translateY(0);
- }
- .stack-3d.vis .stack-card:nth-child(1) { transition-delay: 0.04s; }
- .stack-3d.vis .stack-card:nth-child(2) { transition-delay: 0.09s; }
- .stack-3d.vis .stack-card:nth-child(3) { transition-delay: 0.14s; }
- .stack-3d.vis .stack-card:nth-child(4) { transition-delay: 0.19s; }
- .stack-3d.vis .stack-card:nth-child(5) { transition-delay: 0.24s; }
- .stack-3d.vis .stack-card:nth-child(6) { transition-delay: 0.29s; }
- .stack-3d.vis.settled .stack-card { transition-delay: 0s; }
- @media (max-width: 980px) {
- .stack-3d-scene { grid-template-columns: repeat(2, 1fr); }
- .stack-3d { perspective: 1000px; }
- }
- @media (max-width: 600px) {
- .stack-3d-scene { grid-template-columns: 1fr; }
- .stack-3d { perspective: none; }
- .stack-card { min-height: auto; padding: 28px 24px 24px; }
- .stack-3d .stack-card,
- .stack-3d .stack-card:hover,
- .stack-3d-scene:hover .stack-card:not(:hover) {
- transform: none !important; opacity: 1 !important;
- }
- }
- @media (prefers-reduced-motion: reduce) {
- .stack-card, .stack-3d-scene { transition: none !important; }
- .stack-3d .stack-card { opacity: 1 !important; transform: none !important; }
- }
-
- /* ── V4-STYLE IMMERSIVE CLOSE ────────────────────────────────── */
- .vclose {
- position: relative; min-height: 100vh;
- display: flex; align-items: center; justify-content: center;
- overflow: hidden; border-top: 1px solid var(--hairline);
- }
- .vclose-agent {
- position: absolute; inset: 0; width: 100%; height: 100%;
- display: block; z-index: 1;
- opacity: 0; transition: opacity 0.9s cubic-bezier(.2,.7,.3,1);
- }
- .vclose-agent.loaded { opacity: 1; }
- .vclose-grid {
- position: absolute; inset: 0; z-index: 0; pointer-events: none;
- 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: 60px 60px;
- mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 100%);
- }
- .vclose-vignette {
- position: absolute; inset: 0; z-index: 2; pointer-events: none;
- background: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 30%, rgba(5,5,5,0.92) 100%);
- }
- .vclose-overlay {
- position: relative; z-index: 3;
- display: flex; flex-direction: column; align-items: center;
- text-align: center; gap: 24px;
- padding: 80px 32px;
- max-width: 720px; margin: 0 auto;
- }
- .vclose-eyebrow {
- font-family: var(--font-mono); font-size: 11px;
- letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-3);
- display: flex; align-items: center; gap: 8px;
- }
- .vclose-eyebrow::before {
- content: ""; width: 5px; height: 5px; border-radius: 50%;
- background: var(--text-3); box-shadow: 0 0 5px var(--text-3);
- animation: pulse-green 2.4s ease-in-out infinite;
- }
- .vclose-title {
- font-family: var(--font-display);
- font-size: clamp(48px, 7vw, 96px);
- line-height: 0.92; letter-spacing: -0.045em;
- font-weight: 600; margin: 0; color: var(--text);
- }
- .vclose-title em { font-style: normal; color: var(--text-3); font-weight: 500; }
- .vclose-sub {
- font-size: 17px; color: var(--text-2); max-width: 460px; line-height: 1.55; margin: 0;
- }
- .vclose-chips {
- display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
- margin-top: 8px;
- }
- @media (prefers-reduced-motion: reduce) {
- .vclose-eyebrow::before { animation: none !important; }
- .vclose-agent { opacity: 1 !important; transition: none !important; }
- }
-
-
- /* ── PLAYGROUND ──────────────────────────────────────────── */
- .pg {
- border: 1px solid var(--hairline); border-radius: 14px;
- overflow: hidden; background: var(--hairline);
- display: flex; flex-direction: column; gap: 1px;
- }
- .pg-toolbar {
- display: flex; align-items: center; justify-content: space-between;
- padding: 10px 16px; background: var(--surface-0);
- }
- .pg-tabs { display: flex; gap: 2px; }
- .pg-tab {
- padding: 5px 12px; border-radius: 5px;
- font-family: var(--font-mono); font-size: 11.5px;
- color: var(--text-3); background: transparent; border: 0;
- cursor: pointer; transition: background 0.12s, color 0.12s;
- }
- .pg-tab:hover { color: var(--text-2); }
- .pg-tab.active { background: var(--surface-2); color: var(--text); }
- .pg-toolbar-end { display: flex; gap: 6px; align-items: center; }
- .pg-copy {
- background: transparent; color: var(--text);
- border: 1px solid var(--hairline-strong);
- padding: 5px 12px; border-radius: 6px;
- font-family: var(--font-mono); font-size: 11.5px;
- cursor: pointer; transition: border-color 0.15s, background 0.15s;
- }
- .pg-copy:hover { border-color: var(--text); }
- .pg-copy.copied { background: var(--text); color: var(--bg); border-color: var(--text); }
-
- /* Controls strip */
- .pg-controls {
- display: flex; gap: 1px; background: var(--hairline);
- }
- @media (max-width: 980px) { .pg-controls { flex-wrap: wrap; } }
- .pg-control-group {
- background: var(--surface-0); padding: 10px 16px;
- display: flex; align-items: center; gap: 10px;
- }
- .pg-avatars-group { flex: 1.5; min-width: 0; overflow: hidden; }
- .pg-control-label {
- font-family: var(--font-mono); font-size: 10px;
- letter-spacing: 0.18em; text-transform: uppercase;
- color: var(--text-4); flex-shrink: 0;
- }
- .pg-chips { display: flex; gap: 4px; flex-wrap: wrap; }
- .pg-chip {
- padding: 4px 10px; border-radius: 5px;
- font-family: var(--font-mono); font-size: 11px;
- color: var(--text-3); background: transparent;
- border: 1px solid var(--hairline-strong); cursor: pointer;
- transition: border-color 0.12s, color 0.12s, background 0.12s;
- white-space: nowrap;
- }
- .pg-chip:hover { border-color: var(--text-3); color: var(--text-2); }
- .pg-chip.active {
- border-color: rgba(255,255,255,0.5); color: var(--text);
- background: rgba(255,255,255,0.08);
- }
-
- /* Avatar row */
- .pg-avatar-row {
- display: flex; gap: 6px; overflow-x: auto;
- scrollbar-width: none; padding: 2px;
- }
- .pg-avatar-row::-webkit-scrollbar { display: none; }
- .pg-avatar-item {
- flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
- border: 2px solid transparent; cursor: pointer; overflow: hidden;
- transition: border-color 0.15s, transform 0.15s;
- background: var(--surface-2); padding: 0;
- }
- .pg-avatar-item:hover { border-color: var(--text-3); transform: scale(1.1); }
- .pg-avatar-item.active { border-color: var(--text); }
- .pg-avatar-item img {
- width: 100%; height: 100%; object-fit: cover; display: block;
- border-radius: 50%;
- }
- .pg-avatar-item .pg-avatar-initial {
- width: 100%; height: 100%; display: none;
- align-items: center; justify-content: center;
- font-family: var(--font-mono); font-size: 11px; font-weight: 600;
- color: var(--text-3); text-transform: uppercase; line-height: 1;
- }
-
- /* Split: code + preview */
- .pg-split {
- display: grid; grid-template-columns: 1fr 1fr;
- gap: 1px; background: var(--hairline); min-height: 480px;
- }
- @media (max-width: 980px) { .pg-split { grid-template-columns: 1fr; } }
-
- .pg-left {
- background: var(--surface-0);
- display: flex; flex-direction: column;
- }
- .pg-editor-head {
- padding: 10px 16px; border-bottom: 1px solid var(--hairline);
- font-family: var(--font-mono); font-size: 11px;
- color: var(--text-4); letter-spacing: 0.08em;
- }
-
- /* Editor: textarea overlay on pre for highlighting */
- .pg-editor {
- position: relative; flex: 1; min-height: 320px;
- }
- .pg-editor textarea,
- .pg-editor pre {
- font-family: var(--font-mono); font-size: 13px; line-height: 1.75;
- padding: 20px 24px; margin: 0; border: 0;
- position: absolute; top: 0; left: 0;
- width: 100%; height: 100%;
- white-space: pre; word-wrap: normal; overflow-wrap: normal;
- tab-size: 2; box-sizing: border-box; overflow: auto;
- }
- .pg-editor textarea {
- resize: none; background: transparent;
- color: transparent; caret-color: var(--text);
- z-index: 2; outline: none;
- -webkit-text-fill-color: transparent;
- }
- .pg-editor pre {
- pointer-events: none; z-index: 1;
- color: var(--text-2); background: transparent;
- }
- .pg-editor pre .tag { color: #d3d3d3; }
- .pg-editor pre .attr { color: #989898; }
- .pg-editor pre .str { color: #f6f6f6; }
- .pg-editor pre .com { color: var(--text-4); }
- .pg-editor pre .kw { color: var(--text-3); }
-
- .pg-right {
- background: var(--surface-0);
- display: flex; flex-direction: column; position: relative;
- }
- .pg-preview-head {
- padding: 10px 16px; border-bottom: 1px solid var(--hairline);
- font-family: var(--font-mono); font-size: 11px;
- color: var(--text-4); letter-spacing: 0.08em;
- display: flex; justify-content: space-between; align-items: center;
- }
- .pg-status {
- color: var(--text-3); display: flex; align-items: center; gap: 6px;
- }
- .pg-status::before {
- content: ""; width: 5px; height: 5px; border-radius: 50%;
- background: var(--green); box-shadow: 0 0 5px var(--green);
- animation: pulse-green 2.4s ease-in-out infinite;
- }
- .pg-preview {
- flex: 1; position: relative; min-height: 340px;
- transition: background-color 0.3s;
- overflow: hidden;
- }
- .pg-preview agent-3d {
- position: absolute; inset: 0; display: block;
- width: 100%; height: 100%;
- }
-
- /* Animation bar */
- .pg-anims {
- padding: 10px 16px; border-top: 1px solid var(--hairline);
- display: flex; gap: 4px; flex-wrap: wrap;
- position: relative; z-index: 2;
- }
- .pg-anim {
- padding: 4px 10px; border-radius: 5px;
- font-family: var(--font-mono); font-size: 11px;
- color: var(--text-3); background: transparent;
- border: 1px solid var(--hairline-strong); cursor: pointer;
- transition: border-color 0.12s, color 0.12s, background 0.12s;
- }
- .pg-anim:hover { border-color: var(--text-3); color: var(--text-2); }
- .pg-anim.active {
- border-color: rgba(255,255,255,0.5); color: var(--text);
- background: rgba(255,255,255,0.08);
- }
-
- .pg-copy:focus-visible, .pg-tab:focus-visible, .pg-chip:focus-visible,
- .pg-anim:focus-visible, .pg-avatar-item:focus-visible {
- outline: 2px solid rgba(255,255,255,0.5); outline-offset: 2px;
- }
-
- /* ── COLOR PICKER ────────────────────────────────────────── */
- .pg-color-trigger {
- position: relative;
- width: 26px; height: 26px; border-radius: 6px;
- border: 1px solid var(--hairline-strong);
- cursor: pointer; flex-shrink: 0;
- background: conic-gradient(
- from 0deg,
- #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000
- );
- transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
- padding: 0;
- }
- .pg-color-trigger:hover {
- border-color: var(--text-3);
- transform: scale(1.1);
- }
- .pg-color-trigger.active {
- border-color: var(--text);
- box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
- }
- .pg-color-trigger.has-color {
- background: var(--pg-picked-color, #888);
- }
- .pg-color-popover {
- position: absolute;
- top: calc(100% + 8px);
- left: 50%;
- transform: translateX(-50%);
- z-index: 50;
- background: var(--surface-1);
- border: 1px solid var(--hairline-strong);
- border-radius: 10px;
- padding: 14px;
- box-shadow: 0 12px 40px -8px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
- display: none;
- flex-direction: column;
- gap: 10px;
- width: 220px;
- }
- .pg-color-popover.open {
- display: flex;
- animation: pg-pop-in 0.18s cubic-bezier(.2,.7,.3,1);
- }
- @keyframes pg-pop-in {
- from { opacity: 0; transform: translateY(-4px) scale(0.97); }
- to { opacity: 1; transform: translateY(0) scale(1); }
- }
- .pg-color-popover-label {
- font-family: var(--font-mono); font-size: 10px;
- letter-spacing: 0.15em; text-transform: uppercase;
- color: var(--text-4);
- }
- .pg-color-swatches {
- display: grid;
- grid-template-columns: repeat(6, 1fr);
- gap: 5px;
- }
- .pg-color-swatch {
- width: 100%; aspect-ratio: 1; border-radius: 5px;
- border: 2px solid transparent;
- cursor: pointer; padding: 0;
- transition: border-color 0.12s, transform 0.12s;
- }
- .pg-color-swatch:hover {
- border-color: rgba(255,255,255,0.4);
- transform: scale(1.12);
- }
- .pg-color-swatch.active {
- border-color: var(--text);
- }
- .pg-color-hex-row {
- display: flex; align-items: center; gap: 6px;
- }
- .pg-color-hex-input {
- flex: 1;
- background: var(--surface-2);
- border: 1px solid var(--hairline-strong);
- border-radius: 5px;
- padding: 6px 8px;
- font-family: var(--font-mono);
- font-size: 12px;
- color: var(--text);
- outline: none;
- transition: border-color 0.15s;
- }
- .pg-color-hex-input:focus { border-color: var(--text-3); }
- .pg-color-preview {
- width: 28px; height: 28px; border-radius: 5px;
- border: 1px solid var(--hairline-strong);
- flex-shrink: 0;
- }
-
- @media (prefers-reduced-motion: reduce) {
- .pg-status::before { animation: none !important; }
- }
-
- /* ── LIVE FEATURE AGENTS ──────────────────────────────────── */
- .door-screenshot { position: relative; }
- .door-agent { position: absolute; inset: 0; }
- .door-agent agent-3d {
- width: 100%; height: 100%; display: block;
- pointer-events: none;
- transition: transform 0.4s cubic-bezier(.2,.7,.3,1);
- }
- .door:hover .door-agent agent-3d { transform: scale(1.03); }
- .door-earn-overlay {
- position: absolute; bottom: 10px; left: 10px; right: 10px;
- padding: 10px 14px; z-index: 2;
- background: rgba(5,5,5,0.82); backdrop-filter: blur(12px);
- border: 1px solid var(--hairline-strong); border-radius: 7px;
- display: flex; justify-content: space-between; align-items: baseline;
- pointer-events: none;
- }
- .door-earn-val {
- font-family: var(--font-display); font-size: 18px; font-weight: 600;
- letter-spacing: -0.02em; color: var(--text);
- font-variant-numeric: tabular-nums;
- }
- .door-earn-lbl {
- font-family: var(--font-mono); font-size: 9px;
- letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-3);
- }
- .bento-screenshot { position: relative; }
- .bento-agent { position: absolute; inset: 0; }
- .bento-agent agent-3d { width: 100%; height: 100%; display: block; }
- .bento-agent-mini {
- position: relative; height: 200px;
- border-radius: 7px; overflow: hidden;
- border: 1px solid var(--hairline-strong);
- background: var(--surface-2); margin-top: 8px;
- }
- .bento-agent-mini agent-3d {
- position: absolute; inset: 0;
- width: 100%; height: 100%; display: block;
- }
- .bento-pill-btn {
- cursor: pointer; background: transparent;
- font-family: var(--font-mono); font-size: 11px;
- letter-spacing: 0.1em; text-transform: uppercase;
- color: var(--text-3); border: 1px solid var(--hairline-strong);
- padding: 3px 8px; border-radius: 4px;
- transition: border-color 0.12s, color 0.12s, background 0.12s;
- }
- .bento-pill-btn:hover { border-color: var(--text-3); color: var(--text-2); }
- .bento-pill-btn.active {
- border-color: rgba(255,255,255,0.5); color: var(--text);
- background: rgba(255,255,255,0.08);
- }
-
- /* ── WALK IFRAME ─────────────────────────────────────────── */
- .walk-iframe-wrap {
- position: relative; aspect-ratio: 4/3;
- overflow: hidden; border-radius: 0 0 13px 13px;
- }
- .walk-iframe {
- position: absolute; inset: 0;
- width: 100%; height: 100%; border: 0;
- background: var(--surface-2);
- }
-
- /* ── AVATAR DROP ──────────────────────────────────────────────── */
- .body-drop {
- position: relative;
- min-height: 70vh;
- display: flex;
- align-items: center;
- overflow: visible;
- }
- .body-drop-content {
- position: relative; z-index: 10;
- max-width: 560px;
- padding: 80px 0 140px;
- }
- .body-drop-title {
- font-family: var(--font-display);
- font-size: clamp(44px, 5.5vw, 80px);
- line-height: 0.95; letter-spacing: -0.04em;
- font-weight: 600; margin: 0 0 24px;
- }
- .body-drop-title em { font-style: normal; color: var(--text-3); font-weight: 500; }
- #drop-sit-line {
- text-shadow: var(--drop-shadow, none);
- transition: text-shadow 90ms linear;
- }
- .body-drop-sub {
- font-size: 17px; color: var(--text-2);
- max-width: 440px; line-height: 1.55; margin: 0 0 44px;
- }
- #drop-canvas {
- position: absolute; inset: 0;
- width: 100%; height: 100%;
- pointer-events: none; z-index: 20;
- }
- .body-drop .cta-row { position: relative; z-index: 10; }
- .body-drop .btn { transform-origin: bottom center; will-change: transform; }
- @media (max-width: 720px) {
- .body-drop { min-height: auto; }
- .body-drop-content { padding: 48px 0 100px; }
- }
-
- /* ── MANIFESTO ──────────────────────────────────────────── */
- .manifesto {
- display: flex;
- flex-direction: column;
- gap: 0;
- }
- .manifesto-beat {
- padding: 64px 0;
- border-bottom: 1px solid var(--hairline);
- }
- .manifesto-beat:first-child { padding-top: 0; }
- .manifesto-beat:last-child { border-bottom: none; padding-bottom: 0; }
-
- .manifesto-statement {
- font-family: var(--font-display);
- font-size: clamp(36px, 4.8vw, 68px);
- line-height: 1.05;
- letter-spacing: -0.04em;
- font-weight: 600;
- margin: 0;
- color: var(--text);
- }
- .manifesto-statement em {
- font-style: normal;
- color: var(--text-3);
- font-weight: 500;
- }
- .manifesto-statement--dim {
- color: var(--text-3);
- }
-
- .manifesto-aside {
- font-size: 17px;
- color: var(--text-3);
- margin: 20px 0 0;
- max-width: 540px;
- line-height: 1.6;
- }
-
- .manifesto-steps {
- display: flex;
- flex-direction: column;
- gap: 6px;
- }
- .manifesto-step {
- font-family: var(--font-display);
- font-size: clamp(22px, 2.8vw, 36px);
- font-weight: 500;
- letter-spacing: -0.02em;
- color: var(--text-4);
- line-height: 1.2;
- }
- .manifesto-step:nth-child(2) { color: var(--text-3); }
- .manifesto-step:nth-child(3) { color: var(--text-2); }
-
- .manifesto-lead {
- font-size: clamp(18px, 2vw, 22px);
- color: var(--text-3);
- margin: 0 0 28px;
- line-height: 1.5;
- max-width: 480px;
- }
- .manifesto-keyword {
- font-family: var(--font-display);
- font-size: clamp(80px, 14vw, 180px);
- line-height: 0.88;
- letter-spacing: -0.055em;
- font-weight: 700;
- margin: 0;
- color: var(--text);
- position: relative;
- }
- .manifesto-keyword::after {
- content: "";
- position: absolute;
- left: 0; right: 30%; bottom: -4px;
- height: 2px;
- background: linear-gradient(90deg, var(--text-3), transparent);
- opacity: 0.4;
- }
-
- .manifesto-negations {
- margin-bottom: 36px;
- display: flex;
- flex-direction: column;
- gap: 6px;
- }
- .manifesto-neg {
- font-size: clamp(16px, 1.6vw, 19px);
- color: var(--text-4);
- margin: 0;
- line-height: 1.5;
- text-decoration: line-through;
- text-decoration-color: rgba(255,255,255,0.15);
- text-decoration-thickness: 1px;
- }
- .manifesto-affirmation {
- font-family: var(--font-display);
- font-size: clamp(24px, 3vw, 40px);
- line-height: 1.2;
- letter-spacing: -0.025em;
- font-weight: 600;
- color: var(--text);
- margin: 0;
- max-width: 640px;
- }
-
- .manifesto-body {
- font-size: 17px;
- color: var(--text-2);
- margin: 28px 0 0;
- max-width: 560px;
- line-height: 1.65;
- }
-
- .manifesto-caps {
- display: flex;
- flex-wrap: wrap;
- gap: 8px;
- margin-bottom: 28px;
- }
- .manifesto-cap {
- font-family: var(--font-mono);
- font-size: 11.5px;
- letter-spacing: 0.1em;
- text-transform: uppercase;
- color: var(--text-2);
- padding: 8px 16px;
- border: 1px solid var(--hairline-strong);
- border-radius: 999px;
- transition: border-color 0.2s, color 0.2s, background 0.2s;
- }
- .manifesto-cap:hover {
- border-color: var(--text-3);
- color: var(--text);
- background: rgba(255,255,255,0.03);
- }
-
- .manifesto-close-dim {
- font-family: var(--font-display);
- font-size: clamp(22px, 2.8vw, 36px);
- font-weight: 500;
- letter-spacing: -0.02em;
- color: var(--text-4);
- margin: 0 0 12px;
- line-height: 1.15;
- }
- .manifesto-close {
- font-family: var(--font-display);
- font-size: clamp(40px, 5.5vw, 76px);
- line-height: 1.0;
- letter-spacing: -0.04em;
- font-weight: 600;
- margin: 0;
- color: var(--text);
- }
-
- .manifesto-embed {
- font-family: var(--font-mono);
- font-size: 13px;
- color: var(--text-3);
- margin: 20px 0 0;
- letter-spacing: 0.02em;
- }
- .manifesto-embed code {
- color: var(--text);
- font-weight: 500;
- }
-
- @media (max-width: 720px) {
- .manifesto-beat { padding: 44px 0; }
- .manifesto-keyword::after { right: 10%; }
- }
- /* ── INTERACTIVE BENTO DEMOS ─────────────────────────────── */
- .bento-interact{margin-top:10px;position:relative}
- .bento-action-btn{display:inline-flex;align-items:center;gap:7px;padding:8px 16px;border-radius:7px;font-family:var(--font-mono);font-size:11.5px;letter-spacing:0.06em;color:var(--text);background:var(--surface-2);border:1px solid var(--hairline-strong);cursor:pointer;transition:border-color .15s,background .15s,transform .12s}
- .bento-action-btn:hover{border-color:var(--text-3);background:rgba(255,255,255,.06);transform:translateY(-1px)}
- .bento-action-btn:active{transform:translateY(0)}
- .bento-action-btn:focus-visible{outline:2px solid rgba(255,255,255,.5);outline-offset:2px}
- .bento-action-btn.sm{padding:5px 11px;font-size:10.5px}
- .studio-zone{display:flex;gap:8px;align-items:stretch}
- .studio-drop{flex:1;border:1px dashed var(--hairline-strong);border-radius:8px;padding:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;transition:border-color .2s,background .2s;font-family:var(--font-mono);font-size:11px;color:var(--text-3);text-align:center;min-height:80px}
- .studio-drop:hover,.studio-drop.drag-over{border-color:var(--text-2);background:rgba(255,255,255,.03)}
- .studio-drop-icon{font-size:22px;opacity:.5}
- .studio-processing{display:none;align-items:center;justify-content:center;gap:10px;padding:12px;font-family:var(--font-mono);font-size:11px;color:var(--text-3)}
- .studio-processing.active{display:flex}
- .studio-processing-ring{width:18px;height:18px;border:2px solid var(--hairline-strong);border-top-color:var(--text-2);border-radius:50%;animation:walk-spin .7s linear infinite}
- .studio-preview-img{width:48px;height:48px;border-radius:50%;object-fit:cover;border:1px solid var(--hairline-strong);display:none}
- .studio-preview-img.show{display:block}
- .studio-done{display:none;align-items:center;gap:8px;font-family:var(--font-mono);font-size:11px;color:var(--text-2)}
- .studio-done.show{display:flex}
- .studio-done-check{width:18px;height:18px;border-radius:50%;background:var(--text);color:var(--bg);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700}
- .mocap-demo{display:flex;flex-direction:column;gap:8px}
- .mocap-bar{display:flex;align-items:center;gap:10px}
- .mocap-waveform{width:100%;height:48px;border-radius:6px;background:var(--surface-2);border:1px solid var(--hairline-strong);display:block}
- .mocap-status{font-family:var(--font-mono);font-size:10px;letter-spacing:.1em;color:var(--text-4);text-align:center}
- .mocap-status.live{color:var(--text-2)}
- .walk-minimap-wrap{position:relative;border-radius:8px;overflow:hidden;border:1px solid var(--hairline-strong);background:#0a0d12}
- .walk-minimap{width:100%;height:140px;display:block;cursor:crosshair}
- .walk-minimap:focus{outline:2px solid rgba(255,255,255,.3);outline-offset:-2px}
- .walk-minimap-hud{position:absolute;top:6px;left:8px;display:flex;align-items:center;gap:6px;font-family:var(--font-mono);font-size:9px;color:var(--text-3);letter-spacing:.08em}
- .walk-minimap-dot{width:5px;height:5px;border-radius:50%;background:#4ade80;box-shadow:0 0 4px #4ade8088}
- .walk-minimap-hint{position:absolute;bottom:6px;left:50%;transform:translateX(-50%);font-family:var(--font-mono);font-size:8.5px;color:var(--text-4);letter-spacing:.06em;white-space:nowrap}
- .walk-minimap-hint kbd{display:inline-block;padding:0 3px;border:1px solid var(--hairline-strong);border-radius:2px;font-family:var(--font-mono);font-size:8px;background:var(--surface-2)}
- .x402-demo{display:flex;flex-direction:column;gap:8px}
- .x402-step{display:flex;align-items:center;gap:10px;padding:10px 14px;background:var(--surface-2);border:1px solid var(--hairline-strong);border-radius:8px;transition:all .3s ease}
- .x402-code{font-family:var(--font-mono);font-size:11.5px;color:var(--text-2);flex:1}
- .x402-code.err{color:#f87171}
- .x402-code.ok{color:#4ade80}
- .x402-spinner{width:16px;height:16px;border:2px solid var(--hairline-strong);border-top-color:var(--text-2);border-radius:50%;animation:walk-spin .6s linear infinite;display:none}
- .x402-amount{font-family:var(--font-display);font-size:14px;font-weight:600;color:#4ade80;display:none}
- .x402-amount.show{display:block}
- .mint-demo{perspective:600px}
- .mint-card{position:relative;padding:16px;background:var(--surface-2);border:1px solid var(--hairline-strong);border-radius:10px;transition:transform .6s cubic-bezier(.2,.7,.3,1),box-shadow .3s,border-color .3s}
- .mint-card.minted{border-color:rgba(255,255,255,.2);box-shadow:0 0 20px -4px rgba(255,255,255,.08)}
- .mint-card-inner{display:flex;align-items:center;justify-content:space-between;gap:10px}
- .mint-card-info{display:flex;flex-direction:column;gap:2px}
- .mint-card-label{font-family:var(--font-mono);font-size:10px;letter-spacing:.15em;text-transform:uppercase;color:var(--text-4);transition:color .3s}
- .mint-card-name{font-family:var(--font-display);font-size:16px;font-weight:600;color:var(--text)}
- .mint-card-chain{font-family:var(--font-mono);font-size:10px;color:var(--text-3);display:none}
- .mint-card.minted .mint-card-chain{display:block}
- .mint-card.minted .mint-card-label{color:#4ade80}
- .mint-progress{width:28px;height:28px;position:relative;display:none}
- .mint-progress.active{display:block}
- .mint-progress svg{width:100%;height:100%;transform:rotate(-90deg)}
- .mint-progress circle{fill:none;stroke-width:3;stroke:var(--text-2);stroke-linecap:round;stroke-dasharray:78.5;stroke-dashoffset:78.5;transition:stroke-dashoffset 1.2s cubic-bezier(.2,.7,.3,1)}
- .mint-progress.done circle{stroke-dashoffset:0;stroke:#4ade80}
- .skill-demo{display:flex;flex-direction:column;gap:8px}
- .skill-result{background:var(--surface-2);border:1px solid var(--hairline-strong);border-radius:7px;padding:10px 14px;font-family:var(--font-mono);font-size:11px;color:var(--text-2);line-height:1.6;max-height:100px;overflow-y:auto;transition:border-color .3s}
- .skill-result.fresh{border-color:rgba(255,255,255,.2)}
- .skill-result .json-key{color:#60a5fa}
- .skill-result .json-str{color:#4ade80}
- .skill-result .json-num{color:#fbbf24}
- .memory-demo{display:flex;flex-direction:column;gap:8px}
- .memory-input-row{display:flex;gap:6px}
- .memory-input{flex:1;background:var(--surface-2);border:1px solid var(--hairline-strong);border-radius:6px;padding:7px 10px;font-family:var(--font-mono);font-size:11.5px;color:var(--text);outline:none;transition:border-color .15s}
- .memory-input:focus{border-color:var(--text-3)}
- .memory-input::placeholder{color:var(--text-4)}
- .memory-log{display:flex;flex-direction:column;gap:4px;max-height:72px;overflow-y:auto}
- .memory-entry{font-family:var(--font-mono);font-size:10.5px;color:var(--text-3);line-height:1.5;padding:3px 0;animation:mem-in .3s ease}
- .memory-entry .mem-op{color:var(--text-4);margin-right:4px}
- .memory-entry .mem-val{color:var(--text-2)}
- @keyframes mem-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
- .ar-demo{display:flex;align-items:center;gap:12px}
- .ar-phone{width:64px;height:100px;border:2px solid var(--hairline-strong);border-radius:10px;background:var(--surface-2);position:relative;overflow:hidden;flex-shrink:0;transition:border-color .3s}
- .ar-phone.active{border-color:var(--text-3)}
- .ar-phone-notch{width:24px;height:4px;background:var(--hairline-strong);border-radius:2px;margin:4px auto 0}
- .ar-phone-screen{position:absolute;inset:10px 3px 6px;background:#111;border-radius:4px;display:flex;align-items:center;justify-content:center;overflow:hidden}
- .ar-phone-avatar{width:32px;height:32px;border-radius:50%;background:var(--surface-1);border:1px solid var(--hairline-strong);display:flex;align-items:center;justify-content:center;font-size:14px;opacity:0;transition:opacity .4s,transform .4s}
- .ar-phone.active .ar-phone-avatar{opacity:1;transform:scale(1.1)}
- .ar-phone-crosshair{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;opacity:0;transition:opacity .3s}
- .ar-phone.active .ar-phone-crosshair{opacity:.5}
- .ar-phone-crosshair::before,.ar-phone-crosshair::after{content:'';position:absolute;background:var(--text-3)}
- .ar-phone-crosshair::before{width:16px;height:1px}
- .ar-phone-crosshair::after{width:1px;height:16px}
- .ar-info{display:flex;flex-direction:column;gap:4px}
- .ar-status{font-family:var(--font-mono);font-size:10px;color:var(--text-4);letter-spacing:.08em}
- .ar-status.ready{color:#4ade80}
- .mktplace-strip{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px 0}
- .mktplace-strip::-webkit-scrollbar{display:none}
- .mktplace-item{flex-shrink:0;width:52px;height:52px;border-radius:10px;overflow:hidden;border:1px solid var(--hairline-strong);cursor:pointer;background:var(--surface-2);transition:border-color .15s,transform .15s;position:relative;display:block}
- .mktplace-item:hover{border-color:var(--text-3);transform:translateY(-2px)}
- .mktplace-item img{width:100%;height:100%;object-fit:cover;display:block}
- .mktplace-item-name{position:absolute;bottom:0;left:0;right:0;padding:2px 4px;font-family:var(--font-mono);font-size:7px;color:var(--text);background:rgba(0,0,0,.7);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
- .mktplace-more{flex-shrink:0;width:52px;height:52px;border-radius:10px;border:1px dashed var(--hairline-strong);display:flex;align-items:center;justify-content:center;font-family:var(--font-mono);font-size:18px;color:var(--text-4);cursor:pointer;transition:border-color .15s,color .15s;text-decoration:none}
- .mktplace-more:hover{border-color:var(--text-3);color:var(--text-2)}
- .analytics-demo{display:flex;flex-direction:column;gap:10px}
- .analytics-counters{display:flex;gap:16px}
- .analytics-counter{display:flex;flex-direction:column;gap:1px}
- .analytics-val{font-family:var(--font-display);font-size:18px;font-weight:600;color:var(--text);font-variant-numeric:tabular-nums;letter-spacing:-0.02em}
- .analytics-lbl{font-family:var(--font-mono);font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:var(--text-4)}
- .analytics-spark{width:100%;height:40px;display:block}
- .analytics-spark path{fill:none;stroke:var(--text-2);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
- .analytics-spark .spark-fill{fill:url(#spark-grad);stroke:none;opacity:.15}
- .analytics-spark .spark-dot{fill:var(--text);r:2.5;animation:spark-pulse 2s ease-in-out infinite}
- @keyframes spark-pulse{0%,100%{opacity:1}50%{opacity:.4}}
- </style>
- <noscript><style>.reveal{opacity:1!important;transform:none!important}.hero-text>*{opacity:1!important;transform:none!important}</style></noscript>
- <script type="module" src="https://three.ws/agent-3d/latest/agent-3d.js"></script>
-</head>
-<body>
-
-<!-- ── NAV ──────────────────────────────────────────────────────── -->
-<header class="nav">
- <div class="nav-inner">
- <a class="brand" href="/">
- <span class="brand-mark"></span>
- <span>three.ws</span>
- </a>
- <nav class="nav-main" aria-label="Primary">
- <a href="/create">Build</a>
- <a href="#embed">Embed</a>
- <a href="/discover">Discover</a>
- <a href="/pricing">Pricing</a>
- <a href="/docs">Docs</a>
- </nav>
- <div class="nav-end">
- <a href="/login">Sign in</a>
- <a class="console" href="/dashboard">Console →</a>
- </div>
- <button class="nav-toggle" aria-label="Menu" aria-expanded="false" id="nav-toggle">
- <svg class="open" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"><line x1="2" y1="4" x2="14" y2="4"/><line x1="2" y1="8" x2="14" y2="8"/><line x1="2" y1="12" x2="14" y2="12"/></svg>
- <svg class="close" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"><line x1="3" y1="3" x2="13" y2="13"/><line x1="13" y1="3" x2="3" y2="13"/></svg>
- </button>
- </div>
-</header>
-<nav class="nav-drawer" id="nav-drawer" aria-label="Mobile" aria-hidden="true">
- <a href="/create">Build</a>
- <a href="#embed">Embed</a>
- <a href="/discover">Discover</a>
- <a href="/pricing">Pricing</a>
- <a href="/docs">Docs</a>
- <div class="sep"></div>
- <a href="/login">Sign in</a>
- <a class="btn primary" href="/dashboard" style="margin-top:4px;">Console →</a>
-</nav>
-
-<!-- ── HERO ─────────────────────────────────────────────────────── -->
-<section class="hero">
- <div class="hero-text">
- <div class="eyebrow">Open beta · live now</div>
- <h1 class="hero-h">
- The 3D agent<br/>
- layer of the<br/>
- <em>internet.</em>
- </h1>
- <ul class="hero-bullets">
- <li><strong>Create</strong> a 3D AI agent from a selfie in 60 seconds</li>
- <li><strong>Embed</strong> it on any website with two lines of HTML</li>
- <li><strong>Earn</strong> USDC per chat with x402 micropayments</li>
- </ul>
- <div class="hero-cta-row">
- <a class="btn primary" href="/create">Build your agent <span class="arrow">→</span></a>
- <a class="btn" href="#embed">See the embed</a>
- </div>
- </div>
- <div class="hero-stage" id="hero-stage">
- <span class="stage-marker">live</span>
- <div class="hero-stage-shimmer" id="hero-shimmer"></div>
- <div class="hero-stage-inner" id="hero-stage-inner"></div>
- <div class="hero-thought" id="hero-thought" aria-live="polite" aria-atomic="true">
- <div class="hero-thought-inner" id="hero-thought-text"></div>
- <div class="hero-thought-tail"></div>
- </div>
- <div class="hero-chat-bar" id="hero-chat-bar">
- <form class="hero-chat-form" id="hero-chat-form" autocomplete="off">
- <input class="hero-chat-input" id="hero-chat-input" type="text" placeholder="Ask the avatar anything..." aria-label="Chat with the avatar" />
- <button class="hero-chat-send" id="hero-chat-send" type="submit" aria-label="Send message">
- <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2L7 9"/><path d="M14 2L9.5 14L7 9L2 6.5L14 2Z"/></svg>
- </button>
- </form>
- <div class="hero-chat-hint">press enter to chat</div>
- </div>
- <div class="stage-meta">
- <span>nich</span>
- <span>/api/avatars/bacff13e</span>
- </div>
- <div class="hero-chips-wrap" id="hero-chips-wrap">
- <div class="hero-chips-label">
- <span>click to animate · <strong class="hero-chips-counter" id="hero-chips-counter">0 moves</strong></span>
- </div>
- <div class="hero-chips" id="hero-chips" role="group" aria-label="Trigger an animation on the hero avatar">
- <button type="button" class="hero-chip hero-chip--rand" data-anim="__random">🎲 Random</button>
- <button type="button" class="hero-chip" data-anim="wave">👋 Wave</button>
- <button type="button" class="hero-chip" data-anim="dance">💃 Dance</button>
- <button type="button" class="hero-chip" data-anim="capoeira">🤸 Capoeira</button>
- <button type="button" class="hero-chip" data-anim="jump">🦘 Jump</button>
- <button type="button" class="hero-chip" data-anim="thriller">🧟 Thriller</button>
- <button type="button" class="hero-chip" data-anim="pray">🙏 Pray</button>
- </div>
- </div>
- </div>
-</section>
-
-<!-- ── STATS BAR ─────────────────────────────────────────────────── -->
-<div class="stats-bar" id="stats-bar">
- <div class="stats-bar-inner">
- <div class="stat-cell">
- <div class="stat-val" id="sb-agents">—</div>
- <div class="stat-lbl">Agents live</div>
- </div>
- <div class="stat-cell">
- <div class="stat-val" id="sb-widgets">—</div>
- <div class="stat-lbl">Widgets deployed</div>
- </div>
- <div class="stat-cell">
- <div class="stat-val" id="sb-onchain">—</div>
- <div class="stat-lbl">On-chain agents</div>
- </div>
- <div class="stat-cell">
- <div class="stat-val">200+</div>
- <div class="stat-lbl">Animation clips</div>
- </div>
- <div class="stat-cell">
- <div class="stat-val">&lt;2 lines</div>
- <div class="stat-lbl">To embed</div>
- </div>
- </div>
-</div>
-
-<!-- ── LOGO STRIP ────────────────────────────────────────────────── -->
-<div class="logo-strip">
- <div class="wrap-1280">
- <div class="logo-strip-cap">Embedded across the web</div>
- <div class="logo-row">
- <span class="logo">claude.ai</span>
- <span class="logo">lobehub</span>
- <span class="logo">agenc.tech</span>
- <span class="logo">pump.fun</span>
- <span class="logo">solana</span>
- <span class="logo">metaplex</span>
- <span class="logo">erc-8004</span>
- <span class="logo">x402</span>
- </div>
- </div>
-</div>
-
-<!-- ── PLAYGROUND ──────────────────────────────────────────────────── -->
-<section class="block" id="embed">
- <div class="wrap-1280">
- <div class="block-head reveal">
- <p class="block-eyebrow"><span class="num">01</span>Playground</p>
- <h2 class="block-h">Try it live. <em>Ship it now.</em></h2>
- <p class="block-lede">
- Edit the code below — the preview updates instantly. Switch avatars, trigger animations, toggle features. Copy two lines when you're done.
- </p>
- </div>
- <div class="pg reveal reveal-d1">
- <div class="pg-toolbar">
- <div class="pg-tabs" id="pg-tabs">
- <button class="pg-tab active" data-flavor="html">HTML</button>
- <button class="pg-tab" data-flavor="react">React</button>
- <button class="pg-tab" data-flavor="vue">Vue</button>
- </div>
- <div class="pg-toolbar-end">
- <button class="pg-copy" id="pg-copy">Copy</button>
- </div>
- </div>
- <div class="pg-controls">
- <div class="pg-control-group pg-avatars-group">
- <span class="pg-control-label">Avatar</span>
- <div class="pg-avatar-row" id="pg-avatars"></div>
- </div>
- <div class="pg-control-group">
- <span class="pg-control-label">Mode</span>
- <div class="pg-chips" id="pg-mode-chips">
- <button class="pg-chip active" data-val="inline">inline</button>
- <button class="pg-chip" data-val="widget">widget</button>
- </div>
- </div>
- <div class="pg-control-group" style="position:relative">
- <span class="pg-control-label">BG</span>
- <div class="pg-chips" id="pg-bg-chips">
- <button class="pg-chip active" data-val="transparent">none</button>
- <button class="pg-chip" data-val="#0b0b0b">dark</button>
- <button class="pg-chip" data-val="#ffffff">light</button>
- </div>
- <button class="pg-color-trigger" id="pg-color-trigger" aria-label="Pick a custom background color" title="Custom color"></button>
- <div class="pg-color-popover" id="pg-color-popover">
- <span class="pg-color-popover-label">Pick a color</span>
- <div class="pg-color-swatches" id="pg-color-swatches"></div>
- <div class="pg-color-hex-row">
- <div class="pg-color-preview" id="pg-color-preview"></div>
- <input class="pg-color-hex-input" id="pg-color-hex" type="text" placeholder="#1a1a2e" maxlength="7" spellcheck="false" autocomplete="off" />
- </div>
- </div>
- </div>
- <div class="pg-control-group">
- <span class="pg-control-label">Features</span>
- <div class="pg-chips" id="pg-option-chips">
- <button class="pg-chip active" data-attr="responsive">responsive</button>
- <button class="pg-chip" data-attr="name-plate" data-val="on">nameplate</button>
- <button class="pg-chip" data-attr="avatar-chat" data-val="on">chat</button>
- <button class="pg-chip active" data-attr="eager">eager</button>
- </div>
- </div>
- </div>
- <div class="pg-split">
- <div class="pg-left">
- <div class="pg-editor-head">index.html</div>
- <div class="pg-editor" id="pg-editor">
- <textarea id="pg-textarea" spellcheck="false" autocomplete="off" autocorrect="off" autocapitalize="off"></textarea>
- <pre id="pg-highlight" aria-hidden="true"></pre>
- </div>
- </div>
- <div class="pg-right">
- <div class="pg-preview-head">
- <span>↪ live preview</span>
- <span class="pg-status">running</span>
- </div>
- <div class="pg-preview" id="pg-preview"></div>
- <div class="pg-anims" id="pg-anims">
- <button class="pg-anim" data-anim="idle">Idle</button>
- <button class="pg-anim" data-anim="wave">Wave</button>
- <button class="pg-anim" data-anim="dance">Dance</button>
- <button class="pg-anim" data-anim="capoeira">Capoeira</button>
- <button class="pg-anim" data-anim="jump">Jump</button>
- <button class="pg-anim" data-anim="thriller">Thriller</button>
- <button class="pg-anim" data-anim="celebrate">Celebrate</button>
- </div>
- </div>
- </div>
- </div>
- </div>
-</section>
-
-<!-- ── MANIFESTO ────────────────────────────────────────────────── -->
-<section class="block" id="editorial">
- <div class="wrap-1280">
- <div class="manifesto">
-
- <div class="manifesto-beat reveal">
- <h2 class="manifesto-statement manifesto-statement--dim">The web was built<br>for documents.</h2>
- <p class="manifesto-aside">Text, images, links &mdash; a flat canvas for static information.</p>
- </div>
-
- <div class="manifesto-beat reveal">
- <div class="manifesto-steps">
- <span class="manifesto-step">Then came video.</span>
- <span class="manifesto-step">Then interactivity.</span>
- <span class="manifesto-step">Then AI.</span>
- </div>
- </div>
-
- <div class="manifesto-beat reveal">
- <p class="manifesto-lead">But something fundamental was always missing &mdash;</p>
- <h2 class="manifesto-keyword">presence.</h2>
- </div>
-
- <div class="manifesto-beat reveal">
- <div class="manifesto-negations">
- <p class="manifesto-neg">Not a chatbot tucked into a corner.</p>
- <p class="manifesto-neg">Not a popup demanding attention.</p>
- </div>
- <p class="manifesto-affirmation">A living digital being that inhabits your space, knows your visitors, and works while you sleep.</p>
- </div>
-
- <div class="manifesto-beat reveal">
- <h2 class="manifesto-statement">three.ws gives your AI <em>a body.</em></h2>
- <p class="manifesto-body">A 3D character generated from a single photograph, deployed with two lines of HTML, monetized through micropayments that settle instantly. Every agent remembers across sessions, moves through multiplayer worlds, and earns revenue via the x402 payment protocol.</p>
- </div>
-
- <div class="manifesto-beat reveal">
- <div class="manifesto-caps">
- <span class="manifesto-cap">200+ animations</span>
- <span class="manifesto-cap">Real-time voice</span>
- <span class="manifesto-cap">On-chain identity</span>
- <span class="manifesto-cap">Cross-device memory</span>
- <span class="manifesto-cap">Spatial multiplayer</span>
- <span class="manifesto-cap">x402 payments</span>
- </div>
- <p class="manifesto-embed">All from one embed tag: <code>&lt;agent-3d&gt;</code></p>
- </div>
-
- <div class="manifesto-beat reveal">
- <p class="manifesto-close-dim">The flat web had its moment.</p>
- <h2 class="manifesto-close">The living web starts now.</h2>
- </div>
-
- </div>
- </div>
-</section>
-
-<!-- ── THREE DOORS ───────────────────────────────────────────────── -->
-<section class="block">
- <div class="wrap-1280">
- <div class="block-head reveal">
- <p class="block-eyebrow"><span class="num">02</span>The platform</p>
- <h2 class="block-h">Build, embed, <em>and earn.</em></h2>
- <p class="block-lede">
- A full-stack platform for 3D AI agents: from selfie to on-chain identity, from embed to monetization.
- </p>
- </div>
- <div class="doors reveal reveal-d1">
- <a class="door" href="/create">
- <div class="door-num"><span>01</span><span class="lbl">Create</span></div>
- <div class="door-screenshot">
- <div class="door-agent" id="door-create"></div>
- </div>
- <h3>Selfie to agent in 60 seconds.</h3>
- <p>Snap a selfie or upload a GLB. Add a personality prompt, pick a voice, wire up your AI. Publish to the marketplace or keep it private.</p>
- <span class="door-cta">Start building</span>
- </a>
- <a class="door" href="/docs">
- <div class="door-num"><span>02</span><span class="lbl">Embed</span></div>
- <div class="door-screenshot">
- <div class="door-agent" id="door-embed"></div>
- </div>
- <h3>Two lines. Any page.</h3>
- <p>Drop <code>&lt;agent-3d&gt;</code> into any page. React, Vue, Svelte, plain HTML. Voice, memory, animation, and payments built-in. Lazy-loaded by default.</p>
- <span class="door-cta">Read the docs</span>
- </a>
- <a class="door" href="/dashboard/monetize">
- <div class="door-num"><span>03</span><span class="lbl">Earn</span></div>
- <div class="door-screenshot">
- <div class="door-agent" id="door-earn"></div>
- <div class="door-earn-overlay">
- <div class="door-earn-val" id="door-earn-val">$0.00</div>
- <div class="door-earn-lbl">USDC earned</div>
- </div>
- </div>
- <h3>Charge per chat. Keep everything.</h3>
- <p>Gate skills behind x402 USDC micropayments. Keep 100% during open beta. Watch earnings flow in real-time from your dashboard.</p>
- <span class="door-cta">Set up monetization</span>
- </a>
- </div>
- </div>
-</section>
-
-<!-- ── FEATURE BENTO ─────────────────────────────────────────────── -->
-<section class="block">
- <div class="wrap-1280">
- <div class="block-head reveal">
- <p class="block-eyebrow"><span class="num">03</span>Capabilities</p>
- <h2 class="block-h">Every feature your <em>agent needs.</em></h2>
- <p class="block-lede">
- A complete platform — not a widget. Voice, motion capture, multiplayer, on-chain identity, and crypto payments built into every agent.
- </p>
- </div>
- <div class="bento reveal reveal-d1">
- <!-- Avatar Studio -->
- <div class="bento-card span2">
- <div class="bento-icon">
- <span class="dot" style="background:#ffffff;box-shadow:0 0 8px #ffffff55"></span>
- <span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)">Avatar Studio</span>
- </div>
- <p class="bento-title">Selfie → 3D avatar in 60 seconds</p>
- <p class="bento-desc">Upload a photo, webcam shot, or existing GLB. Our pipeline generates a fully rigged, animatable 3D character compatible with VRM, ReadyPlayerMe, and Avaturn formats. Retargets to any animation clip instantly.</p>
- <div class="bento-interact" id="studio-interact">
- <div class="studio-zone" id="studio-zone">
- <div class="studio-drop" id="studio-drop">
- <div class="studio-drop-icon">↑</div>
- <span>Drop a selfie or click to upload</span>
- <input type="file" accept="image/*" id="studio-file" style="display:none" />
- </div>
- <button class="bento-action-btn studio-webcam-btn" id="studio-webcam-btn">Webcam</button>
- </div>
- <div class="studio-processing" id="studio-processing">
- <div class="studio-processing-ring"></div>
- <img class="studio-preview-img" id="studio-preview-img" alt="" />
- <span id="studio-processing-text">Generating 3D mesh...</span>
- </div>
- <div class="studio-done" id="studio-done">
- <div class="studio-done-check">✓</div>
- <span>Avatar generated — rigged &amp; ready</span>
- </div>
- </div>
- <div class="bento-screenshot">
- <div class="bento-agent" id="bento-studio"></div>
- </div>
- <div class="bento-pills">
- <span class="bento-pill">VRM</span>
- <span class="bento-pill">ReadyPlayerMe</span>
- <span class="bento-pill">Avaturn</span>
- <span class="bento-pill">GLB/GLTF</span>
- <span class="bento-pill">Auto-rig</span>
- </div>
- </div>
-
- <!-- Animations -->
- <div class="bento-card">
- <div class="bento-icon">
- <span class="dot" style="background:#e8e8e8;box-shadow:0 0 8px #e8e8e855"></span>
- <span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)">Animations</span>
- </div>
- <p class="bento-title">200+ motion clips</p>
- <p class="bento-desc">Walk, dance, gesture, emote — a full library of idle loops and triggered animations that blend seamlessly. Or upload your own FBX/BVH captures.</p>
- <div class="bento-agent-mini" id="bento-anim"></div>
- <div class="bento-pills" id="bento-anim-pills">
- <button class="bento-pill bento-pill-btn" data-anim="idle">Idle</button>
- <button class="bento-pill bento-pill-btn" data-anim="av-walk-feminine">Walk</button>
- <button class="bento-pill bento-pill-btn" data-anim="wave">Wave</button>
- <button class="bento-pill bento-pill-btn" data-anim="dance">Dance</button>
- <button class="bento-pill bento-pill-btn" data-anim="capoeira">Capoeira</button>
- <button class="bento-pill bento-pill-btn" data-anim="jump">Jump</button>
- </div>
- </div>
-
- <!-- Voice & Mocap -->
- <div class="bento-card">
- <div class="bento-icon">
- <span class="dot" style="background:#ffffff;box-shadow:0 0 8px #ffffff55"></span>
- <span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)">Voice + Mocap</span>
- </div>
- <p class="bento-title">Real-time voice &amp; face capture</p>
- <p class="bento-desc">ElevenLabs voice cloning with LiveKit streaming. Webcam face mocap drives your avatar's expressions and lip sync in real-time — no hardware required.</p>
- <div class="bento-interact mocap-demo" id="mocap-demo">
- <div class="mocap-bar">
- <button class="bento-action-btn" id="mocap-mic-btn">Microphone</button>
- <span class="mocap-status" id="mocap-status">click to capture</span>
- </div>
- <canvas class="mocap-waveform" id="mocap-waveform" height="48"></canvas>
- </div>
- <div class="bento-pills">
- <span class="bento-pill">ElevenLabs</span>
- <span class="bento-pill">LiveKit</span>
- <span class="bento-pill">WebXR</span>
- <span class="bento-pill">Lip sync</span>
- </div>
- </div>
-
- <!-- Walk & Multiplayer -->
- <div class="bento-card">
- <div class="bento-icon">
- <span class="dot" style="background:#f59e0b;box-shadow:0 0 8px #f59e0b55"></span>
- <span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)">Walk &amp; Multiplayer</span>
- </div>
- <p class="bento-title">Multiplayer 3D worlds</p>
- <p class="bento-desc">Walk your avatar through live environments. Multiple visitors move together in real-time — CRDT-synced positions, joystick or keyboard control, and WebSocket presence.</p>
- <div class="bento-interact">
- <div class="walk-minimap-wrap">
- <canvas class="walk-minimap" id="walk-minimap" tabindex="0"></canvas>
- <div class="walk-minimap-hud">
- <span class="walk-minimap-dot"></span>
- <span id="walk-player-count">4 players online</span>
- </div>
- <div class="walk-minimap-hint"><kbd>W</kbd><kbd>A</kbd><kbd>S</kbd><kbd>D</kbd> or click to move</div>
- </div>
- </div>
- <div class="bento-pills">
- <span class="bento-pill">Multiplayer</span>
- <span class="bento-pill">CRDT sync</span>
- <span class="bento-pill">WebSocket</span>
- </div>
- </div>
-
- <!-- x402 Payments -->
- <div class="bento-card">
- <div class="bento-icon">
- <span class="dot" style="background:#e8e8e8;box-shadow:0 0 8px #e8e8e855"></span>
- <span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)">x402 Payments</span>
- </div>
- <p class="bento-title">Charge per chat in USDC</p>
- <p class="bento-desc">Gate any agent skill behind an x402 HTTP paywall. Visitors pay with USDC on Base or Solana. Funds land in your wallet instantly.</p>
- <div class="bento-interact x402-demo" id="x402-demo">
- <div class="x402-step" id="x402-step-req">
- <span class="x402-code err" id="x402-code">HTTP 402 — Payment Required</span>
- <div class="x402-spinner" id="x402-spinner"></div>
- <span class="x402-amount" id="x402-amount">+$0.05</span>
- <button class="bento-action-btn sm" id="x402-pay-btn">Pay $0.05</button>
- </div>
- </div>
- <div class="bento-pills">
- <span class="bento-pill">USDC</span>
- <span class="bento-pill">Base</span>
- <span class="bento-pill">Solana</span>
- <span class="bento-pill">Instant</span>
- </div>
- </div>
-
- <!-- On-chain Identity -->
- <div class="bento-card">
- <div class="bento-icon">
- <span class="dot" style="background:#ffffff;box-shadow:0 0 8px #ffffff55"></span>
- <span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)">On-chain Identity</span>
- </div>
- <p class="bento-title">ERC-8004 agent standard</p>
- <p class="bento-desc">Mint your agent as an ERC-8004 token — the emerging on-chain standard for AI agents. Own it, trade it, and let other agents discover and call it autonomously via A2A.</p>
- <div class="bento-interact mint-demo">
- <div class="mint-card" id="mint-card">
- <div class="mint-card-inner">
- <div class="mint-card-info">
- <span class="mint-card-label" id="mint-label">ERC-8004</span>
- <span class="mint-card-name">nich.agent</span>
- <span class="mint-card-chain" id="mint-chain">Base · Block 18,291,042</span>
- </div>
- <div class="mint-progress" id="mint-progress">
- <svg viewBox="0 0 28 28"><circle cx="14" cy="14" r="12.5"/></svg>
- </div>
- <button class="bento-action-btn sm" id="mint-btn">Mint</button>
- </div>
- </div>
- </div>
- <div class="bento-pills">
- <span class="bento-pill">ERC-8004</span>
- <span class="bento-pill">EVM</span>
- <span class="bento-pill">A2A</span>
- <span class="bento-pill">MCP</span>
- </div>
- </div>
-
- <!-- MCP / A2A Skills -->
- <div class="bento-card">
- <div class="bento-icon">
- <span class="dot" style="background:#ffffff;box-shadow:0 0 8px #ffffff55"></span>
- <span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)">Skills</span>
- </div>
- <p class="bento-title">MCP · A2A · tool chain</p>
- <p class="bento-desc">Wire your agent to any tool via MCP. Call other agents via A2A. Build skill packs and sell them in the marketplace.</p>
- <div class="bento-interact skill-demo">
- <div class="bento-pills" id="skill-tools">
- <button class="bento-pill bento-pill-btn active" data-tool="jupiter">Jupiter</button>
- <button class="bento-pill bento-pill-btn" data-tool="pump">Pump.fun</button>
- <button class="bento-pill bento-pill-btn" data-tool="rpc">Solana RPC</button>
- <button class="bento-pill bento-pill-btn" data-tool="a2a">A2A call</button>
- </div>
- <div class="skill-result" id="skill-result"></div>
- </div>
- </div>
-
- <!-- Memory -->
- <div class="bento-card">
- <div class="bento-icon">
- <span class="dot" style="background:#f59e0b;box-shadow:0 0 8px #f59e0b55"></span>
- <span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)">Memory</span>
- </div>
- <p class="bento-title">Persistent cross-device memory</p>
- <p class="bento-desc">Your agent remembers every visitor across devices and sessions. Tie-in to your own data sources or use the built-in vector memory.</p>
- <div class="bento-interact memory-demo" id="memory-demo">
- <div class="memory-input-row">
- <input class="memory-input" id="memory-input" placeholder="Tell the agent something..." maxlength="120" />
- <button class="bento-action-btn sm" id="memory-store-btn">Store</button>
- </div>
- <button class="bento-action-btn sm" id="memory-recall-btn" style="align-self:flex-start">Recall</button>
- <div class="memory-log" id="memory-log"></div>
- </div>
- </div>
-
- <!-- AR / WebXR -->
- <div class="bento-card">
- <div class="bento-icon">
- <span class="dot" style="background:#e8e8e8;box-shadow:0 0 8px #e8e8e855"></span>
- <span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)">AR / WebXR</span>
- </div>
- <p class="bento-title">Augmented reality, no app</p>
- <p class="bento-desc">Place your agent in the real world with WebXR on Android or Quick Look on iOS. No app install required.</p>
- <div class="bento-interact ar-demo" id="ar-demo">
- <div class="ar-phone" id="ar-phone">
- <div class="ar-phone-notch"></div>
- <div class="ar-phone-screen">
- <div class="ar-phone-avatar" id="ar-phone-avatar">◇</div>
- <div class="ar-phone-crosshair"></div>
- </div>
- </div>
- <div class="ar-info">
- <button class="bento-action-btn sm" id="ar-launch-btn">Launch AR</button>
- <span class="ar-status" id="ar-status">tap to place agent</span>
- </div>
- </div>
- <div class="bento-pills">
- <span class="bento-pill">WebXR</span>
- <span class="bento-pill">Quick Look</span>
- <span class="bento-pill">iOS / Android</span>
- </div>
- </div>
-
- <!-- Marketplace -->
- <div class="bento-card">
- <div class="bento-icon">
- <span class="dot" style="background:#ffffff;box-shadow:0 0 8px #ffffff55"></span>
- <span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)">Marketplace</span>
- </div>
- <p class="bento-title">Discover, remix, deploy</p>
- <p class="bento-desc">Browse public agents in the marketplace. Fork any agent's personality, voice, and skills. Publish your own and let others remix.</p>
- <div class="bento-interact">
- <div class="mktplace-strip" id="mktplace-strip"></div>
- </div>
- </div>
-
- <!-- Analytics -->
- <div class="bento-card">
- <div class="bento-icon">
- <span class="dot" style="background:#e8e8e8;box-shadow:0 0 8px #e8e8e855"></span>
- <span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)">Analytics</span>
- </div>
- <p class="bento-title">Track everything</p>
- <p class="bento-desc">Conversations, revenue, engagement, retention — all in real-time. See which skills earn the most.</p>
- <div class="bento-interact analytics-demo" id="analytics-demo">
- <div class="analytics-counters">
- <div class="analytics-counter"><span class="analytics-val" id="an-convos">0</span><span class="analytics-lbl">convos</span></div>
- <div class="analytics-counter"><span class="analytics-val" id="an-revenue">$0</span><span class="analytics-lbl">revenue</span></div>
- <div class="analytics-counter"><span class="analytics-val" id="an-retention">0%</span><span class="analytics-lbl">retention</span></div>
- </div>
- <svg class="analytics-spark" id="analytics-spark" viewBox="0 0 200 40" preserveAspectRatio="none">
- <defs><linearGradient id="spark-grad" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="var(--text-2)"/><stop offset="100%" stop-color="transparent"/></linearGradient></defs>
- </svg>
- </div>
- </div>
- </div>
- </div>
- </div>
-</section>
-
-<!-- ── PUMP.FUN INTEGRATION ───────────────────────────────────────── -->
-<section class="block">
- <div class="wrap-1280">
- <div class="block-head reveal">
- <p class="block-eyebrow"><span class="num">04</span>Token economy</p>
- <h2 class="block-h">Your agent can launch <em>its own token.</em></h2>
- <p class="block-lede">
- The first 3D agent platform with native Pump.fun integration. One click from your agent dashboard to a live token on Solana.
- </p>
- </div>
- <div class="feat-split reveal">
- <div class="feat-text">
- <p class="feat-eyebrow">Pump.fun · Native integration</p>
- <h3 class="feat-h">From character<br/>to <em>community token.</em></h3>
- <p class="feat-body">
- three.ws agents are onchain-native. Launch a meme coin, fan token, or governance token directly from your agent's dashboard — no coding, no CLI, no wallet juggling.
- </p>
- <ul class="feat-list">
- <li><strong>One-click launch</strong> — name, ticker, image, and initial supply set from your agent profile</li>
- <li><strong>Live token feed</strong> — embed a real-time Pump.fun price widget into your agent's embed</li>
- <li><strong>Trade from chat</strong> — visitors buy, sell, and tip using the agent's built-in Pump.fun skill</li>
- <li><strong>Trending dashboard</strong> — track your token across the Pump.fun leaderboard in real-time</li>
- </ul>
- <div>
- <a class="btn sm" href="/pump-3d-agent">Explore token agents <span class="arrow">→</span></a>
- </div>
- </div>
- <div class="feat-visual">
- <div class="feat-visual-label">Live token · $NICH / SOL</div>
- <div class="feat-visual-inner">
- <div class="token-card">
- <div class="token-avatar">NICH</div>
- <div class="token-info">
- <div class="token-name">NICH Agent Token</div>
- <div class="token-ticker">$NICH · Pump.fun</div>
- </div>
- <div class="token-price">+24.6%</div>
- </div>
- <div class="earn-rows" style="border:1px solid var(--hairline);border-radius:8px;overflow:hidden;">
- <div class="earn-row">
- <div class="earn-row-left">
- <div class="earn-row-name">Buy · 0x7f3a…</div>
- <div class="earn-row-time">3s ago</div>
- </div>
- <div class="earn-row-amount">+0.5 SOL</div>
- </div>
- <div class="earn-row">
- <div class="earn-row-left">
- <div class="earn-row-name">Buy · 0x2e1b…</div>
- <div class="earn-row-time">12s ago</div>
- </div>
- <div class="earn-row-amount">+2.0 SOL</div>
- </div>
- <div class="earn-row">
- <div class="earn-row-left">
- <div class="earn-row-name">Tip · @alice</div>
- <div class="earn-row-time">1m ago</div>
- </div>
- <div class="earn-row-amount">+$4.20</div>
- </div>
- <div class="earn-row">
- <div class="earn-row-left">
- <div class="earn-row-name">Buy · 0x9c4f…</div>
- <div class="earn-row-time">2m ago</div>
- </div>
- <div class="earn-row-amount">+1.2 SOL</div>
- </div>
- </div>
- <div style="display:flex;gap:10px;">
- <a class="btn sm" href="/pumpfun-trending" style="flex:1;justify-content:center;">Trending tokens</a>
- <a class="btn sm primary" href="/create" style="flex:1;justify-content:center;">Launch yours</a>
- </div>
- </div>
- </div>
- </div>
- </div>
-</section>
-
-<!-- ── x402 EARN ──────────────────────────────────────────────────── -->
-<section class="block">
- <div class="wrap-1280">
- <div class="feat-split rev reveal">
- <div class="feat-text">
- <p class="feat-eyebrow">x402 protocol · USDC payments</p>
- <h3 class="feat-h">Charge per chat.<br/><em>Keep everything.</em></h3>
- <p class="feat-body">
- x402 is an open HTTP payment protocol — your agent responds with a 402 status code and visitors pay in USDC before unlocking your skills. No platform cut during open beta.
- </p>
- <ul class="feat-list">
- <li><strong>Set your price</strong> — from $0.001 per message to $100 per session</li>
- <li><strong>Gate any skill</strong> — wrap any MCP tool or agent response behind a paywall</li>
- <li><strong>Instant settlement</strong> — USDC hits your wallet on Base or Solana, no escrow</li>
- <li><strong>Per-user metering</strong> — built-in rate limits and subscription tiers</li>
- <li><strong>0% fee during beta</strong> — keep 100% of revenue while the platform scales</li>
- </ul>
- <div>
- <a class="btn sm" href="/dashboard/monetize">Configure monetization <span class="arrow">→</span></a>
- </div>
- </div>
- <div class="feat-visual">
- <div class="feat-visual-label">Earnings · last 24 hours</div>
- <div class="feat-visual-inner">
- <div style="display:flex;justify-content:space-between;align-items:baseline;">
- <div>
- <div style="font-family:var(--font-display);font-size:36px;font-weight:600;letter-spacing:-0.025em;color:var(--green)">$847.50</div>
- <div style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3);margin-top:4px">Total earned · USDC</div>
- </div>
- <div style="text-align:right">
- <div style="font-family:var(--font-display);font-size:20px;font-weight:600;color:var(--text)">312</div>
- <div style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3);margin-top:2px">conversations</div>
- </div>
- </div>
- <div class="earn-rows" style="border:1px solid var(--hairline);border-radius:8px;overflow:hidden;">
- <div class="earn-row">
- <div class="earn-row-left">
- <div class="earn-row-name">skill: deep-research</div>
- <div class="earn-row-time">$2.50 / session</div>
- </div>
- <div class="earn-row-amount">+$320.00</div>
- </div>
- <div class="earn-row">
- <div class="earn-row-left">
- <div class="earn-row-name">skill: image-gen</div>
- <div class="earn-row-time">$0.10 / call</div>
- </div>
- <div class="earn-row-amount">+$218.40</div>
- </div>
- <div class="earn-row">
- <div class="earn-row-left">
- <div class="earn-row-name">skill: voice-chat</div>
- <div class="earn-row-time">$0.05 / minute</div>
- </div>
- <div class="earn-row-amount">+$187.60</div>
- </div>
- <div class="earn-row">
- <div class="earn-row-left">
- <div class="earn-row-name">direct tips</div>
- <div class="earn-row-time">any amount</div>
- </div>
- <div class="earn-row-amount">+$121.50</div>
- </div>
- </div>
- <div style="font-family:var(--font-mono);font-size:11px;color:var(--text-3);text-align:center;letter-spacing:0.1em;">0% PLATFORM FEE DURING OPEN BETA</div>
- </div>
- </div>
- </div>
- </div>
-</section>
-
-<!-- ── WALK & MULTIPLAYER ─────────────────────────────────────────── -->
-<section class="block">
- <div class="wrap-1280">
- <div class="feat-split reveal">
- <div class="feat-text">
- <p class="feat-eyebrow">Walk mode · Multiplayer</p>
- <h3 class="feat-h">Your visitors walk<br/><em>together.</em></h3>
- <p class="feat-body">
- Embed a full multiplayer 3D world onto any page. Visitors arrive as their own avatar, see each other move in real-time, and can voice-chat inside the scene.
- </p>
- <ul class="feat-list">
- <li><strong>Multiplayer sync</strong> — CRDT-based position sync via WebSocket, handles 100s of concurrent users</li>
- <li><strong>Any environment</strong> — drop your own 3D scene GLB or use one of the built-in club environments</li>
- <li><strong>Voice-in-scene</strong> — LiveKit spatial audio tied to avatar position</li>
- <li><strong>One embed tag</strong> — same <code>&lt;walk-embed&gt;</code> tag, zero backend setup</li>
- </ul>
- <div>
- <a class="btn sm" href="/walk">See walk mode <span class="arrow">→</span></a>
- </div>
- </div>
- <div class="feat-visual walk-preview-visual">
- <div class="feat-visual-label">Walk embed · live preview</div>
- <div class="walk-preview-wrap" id="walk-preview-container">
- <div class="walk-preview-canvas-area">
- <canvas class="walk-preview-canvas"></canvas>
- <div data-walk-loading class="walk-preview-loading">
- <div class="walk-preview-spinner"></div>
- <span>Loading 3D scene...</span>
- </div>
- <div class="walk-preview-hint">
- <span><kbd>W</kbd><kbd>A</kbd><kbd>S</kbd><kbd>D</kbd> move</span>
- <span>drag to orbit</span>
- <span><kbd>space</kbd> jump</span>
- </div>
- <div data-walk-joystick class="walk-preview-joystick"></div>
- </div>
- <div class="bento-code"><span class="kw">&lt;walk-embed</span><br/> <span class="kw">src=</span><span class="str">"/api/scenes/my-lobby"</span><br/> <span class="kw">multiplayer</span><br/><span class="kw">&gt;&lt;/walk-embed&gt;</span></div>
- </div>
- </div>
- </div>
- </div>
-</section>
-
-<!-- ── DEVELOPER PLATFORM ─────────────────────────────────────────── -->
-<section class="block">
- <div class="wrap-1280">
- <div class="block-head reveal">
- <p class="block-eyebrow"><span class="num">05</span>Developer platform</p>
- <h2 class="block-h">Headless API. <em>Full power.</em></h2>
- <p class="block-lede">
- Everything available through a REST API, SDK, and MCP server. Build custom agents, automate workflows, and connect to any AI tool.
- </p>
- </div>
- <div class="dev-grid reveal reveal-d1" id="api-playground">
- <!-- ── Left: request / code pane ─────────────────────── -->
- <div class="dev-pane" id="pg-left">
- <div class="dev-pane-head">
- <span id="pg-head-title">API Playground</span>
- <span id="pg-head-sub">interactive</span>
- </div>
- <div class="dev-tabs" id="pg-tabs">
- <button type="button" class="dev-tab active" data-tab="tryit">Try it</button>
- <button type="button" class="dev-tab" data-tab="sdk">Node SDK</button>
- <button type="button" class="dev-tab" data-tab="curl">cURL</button>
- </div>
-
- <!-- Tab: Try it -->
- <div class="dev-tab-content active" id="pg-tab-tryit">
- <div id="pg-empty-state" class="pg-empty">
- <div class="pg-empty-icon">&lt;/&gt;</div>
- Select an endpoint to start exploring the API
- </div>
- <div id="pg-builder" style="display:none;">
- <div class="pg-request">
- <div class="pg-url-bar">
- <div class="pg-url-method" id="pg-method">GET</div>
- <input class="pg-url-path" id="pg-path" readonly />
- </div>
- <div id="pg-params"></div>
- <div id="pg-body-wrap" style="display:none;">
- <div class="pg-field">
- <label class="pg-field-label">Request body</label>
- <textarea class="pg-input" id="pg-body" placeholder='{ "key": "value" }'></textarea>
- </div>
- </div>
- <div class="pg-actions">
- <button type="button" class="pg-send" id="pg-send">Send</button>
- <span class="pg-status" id="pg-status"></span>
- </div>
- <div class="pg-response" id="pg-response" style="display:none;">
- <div class="pg-response-head">
- <span>Response</span>
- <button type="button" class="pg-copy" id="pg-copy-resp">Copy</button>
- </div>
- <div class="pg-response-body" id="pg-response-body"></div>
- </div>
- </div>
- </div>
- </div>
-
- <!-- Tab: SDK -->
- <div class="dev-tab-content" id="pg-tab-sdk">
- <div class="dev-code" id="pg-sdk-code">
-<span class="kw">import</span> { <span class="fn">Agent</span> } <span class="kw">from</span> <span class="str">'@three.ws/agent-sdk'</span>;
-
-<span class="kw">const</span> <span class="fn">agent</span> = <span class="kw">new</span> <span class="fn">Agent</span>({
- <span class="fn">avatarId</span>: <span class="str">'bacff13e-b64b-4ac0-860d-44f0168ad23b'</span>,
- <span class="fn">voice</span>: <span class="str">'elevenlabs:josh'</span>,
- <span class="fn">memory</span>: <span class="str">'persistent'</span>,
-});
-
-<span class="cmt">// Add a paid skill</span>
-<span class="fn">agent</span>.<span class="fn">skill</span>(<span class="str">'deep-research'</span>, {
- <span class="fn">price</span>: <span class="str">'2.50 USDC'</span>,
- <span class="fn">handler</span>: <span class="kw">async</span> (query) =&gt; { <span class="cmt">/* … */</span> },
-});
-
-<span class="cmt">// x402 gated endpoint auto-wired</span>
-<span class="kw">await</span> <span class="fn">agent</span>.<span class="fn">deploy</span>();
- </div>
- </div>
-
- <!-- Tab: cURL -->
- <div class="dev-tab-content" id="pg-tab-curl">
- <div class="pg-curl-code" id="pg-curl-code">Select an endpoint to generate a cURL command.</div>
- </div>
-
- <div class="dev-links">
- <div class="dev-links-row">
- <a class="dev-link" href="/docs">Docs</a>
- <a class="dev-link" href="https://github.com/nirholas/three.ws">GitHub</a>
- <a class="dev-link" href="/api/openapi-json.js">OpenAPI</a>
- <a class="dev-link" href="/docs/mcp">MCP server</a>
- </div>
- </div>
- </div>
-
- <!-- ── Right: endpoint list ──────────────────────────── -->
- <div class="dev-pane dev-right" id="pg-endpoints">
- <div class="dev-pane-head">
- <span>Endpoints</span>
- <span>v1</span>
- </div>
- <div class="dev-api-row" data-endpoint="list-agents">
- <div style="display:flex;align-items:center;gap:8px;">
- <span class="dev-badge get">GET</span>
- <span class="dev-api-path">/v1/agents</span>
- </div>
- <div class="dev-api-desc">List all agents in your account</div>
- </div>
- <div class="dev-api-row" data-endpoint="create-agent">
- <div style="display:flex;align-items:center;gap:8px;">
- <span class="dev-badge post">POST</span>
- <span class="dev-api-path">/v1/agents</span>
- </div>
- <div class="dev-api-desc">Create agent from avatar + prompt</div>
- </div>
- <div class="dev-api-row" data-endpoint="chat">
- <div style="display:flex;align-items:center;gap:8px;">
- <span class="dev-badge post">POST</span>
- <span class="dev-api-path">/v1/chat</span>
- </div>
- <div class="dev-api-desc">Send a message, stream a response</div>
- </div>
- <div class="dev-api-row" data-endpoint="get-avatar">
- <div style="display:flex;align-items:center;gap:8px;">
- <span class="dev-badge get">GET</span>
- <span class="dev-api-path">/v1/avatars/:id</span>
- </div>
- <div class="dev-api-desc">Fetch avatar metadata and GLB URL</div>
- </div>
- <div class="dev-api-row" data-endpoint="mcp">
- <div style="display:flex;align-items:center;gap:8px;">
- <span class="dev-badge mcp">MCP</span>
- <span class="dev-api-path">three.ws/mcp</span>
- </div>
- <div class="dev-api-desc">Model Context Protocol server</div>
- </div>
- <div class="dev-api-row" data-endpoint="a2a">
- <div style="display:flex;align-items:center;gap:8px;">
- <span class="dev-badge mcp">A2A</span>
- <span class="dev-api-path">/v1/a2a/:agentId</span>
- </div>
- <div class="dev-api-desc">Agent-to-agent protocol endpoint</div>
- </div>
- <div style="padding:14px 20px;margin-top:auto;border-top:1px solid var(--hairline);">
- <a class="btn sm" href="/dashboard/api">Get API key <span class="arrow">&rarr;</span></a>
- </div>
- </div>
- </div>
- </div>
-</section>
-
-<!-- ── HOW IT WORKS ───────────────────────────────────────────────── -->
-<section class="block">
- <div class="wrap-1280">
- <div class="block-head reveal">
- <p class="block-eyebrow"><span class="num">06</span>How it works</p>
- <h2 class="block-h">Three steps. <em>One living character.</em></h2>
- </div>
- <div class="steps reveal reveal-d1">
- <div class="step">
- <div class="step-num">01 · CREATE</div>
- <div class="step-title">Make an agent</div>
- <p class="step-body">Selfie → 3D avatar in a minute. Or upload your own GLB. Add a personality prompt, pick a voice from ElevenLabs or LiveKit, and wire up AI. Or browse the marketplace for a pre-built agent.</p>
- </div>
- <div class="step">
- <div class="step-num">02 · EMBED</div>
- <div class="step-title">Drop the tag</div>
- <p class="step-body">Two lines of HTML. No SDK install, no iframe wrapper, no build step. Works in React, Vue, Svelte, and plain HTML. Lazy-loaded by default, CDN-hosted globally.</p>
- </div>
- <div class="step">
- <div class="step-num">03 · SHIP</div>
- <div class="step-title">Your site is alive</div>
- <p class="step-body">Visitors talk to your agent with text or voice. It remembers across sessions. Charge per chat with x402. Launch its token on Pump.fun. Watch it grow on-chain.</p>
- </div>
- </div>
- </div>
-</section>
-
-<!-- ── 3D STACK ────────────────────────────────────────────────────── -->
-<section class="block">
- <div class="wrap-1280">
- <div class="block-head reveal">
- <p class="block-eyebrow"><span class="num">07</span>The stack</p>
- <h2 class="block-h">Six pieces. <em>One layer.</em></h2>
- <p class="block-lede">Every component is open, real, and shipping today. Use one. Use all. They compose.</p>
- </div>
- <div class="stack-3d reveal" id="stack-3d">
- <div class="stack-3d-scene" id="stack-3d-scene">
- <a href="/studio" class="stack-card">
- <span class="stack-card-num">01</span>
- <span class="stack-card-title">Studio</span>
- <span class="stack-card-desc">Selfie to rigged avatar in seconds. Browser-native, GPU-accelerated — no software to install.</span>
- <span class="stack-card-arrow">↗</span>
- </a>
- <a href="/discover" class="stack-card">
- <span class="stack-card-num">02</span>
- <span class="stack-card-title">Registry</span>
- <span class="stack-card-desc">ERC-8004 on-chain identity. Agents discoverable, portable, and attestable across any A2A or MCP client.</span>
- <span class="stack-card-arrow">↗</span>
- </a>
- <a href="/docs" class="stack-card">
- <span class="stack-card-num">03</span>
- <span class="stack-card-title">Embed</span>
- <span class="stack-card-desc">&lt;agent-3d&gt; web component. One tag. Any host. Lazy-loaded, isolated CSS, CDN-hosted globally.</span>
- <span class="stack-card-arrow">↗</span>
- </a>
- <a href="/dashboard/monetize" class="stack-card">
- <span class="stack-card-num">04</span>
- <span class="stack-card-title">x402</span>
- <span class="stack-card-desc">HTTP-native USDC micropayments. Bill per skill, message, or session. 0% platform fee during open beta.</span>
- <span class="stack-card-arrow">↗</span>
- </a>
- <a href="/walk" class="stack-card">
- <span class="stack-card-num">05</span>
- <span class="stack-card-title">Walk</span>
- <span class="stack-card-desc">Multiplayer 3D worlds. CRDT-synced avatar positions, spatial voice, joystick control — in one embed tag.</span>
- <span class="stack-card-arrow">↗</span>
- </a>
- <a href="/docs/sdk" class="stack-card">
- <span class="stack-card-num">06</span>
- <span class="stack-card-title">SDK</span>
- <span class="stack-card-desc">JavaScript, Python, Rust. Mint, sign, attest, render, pay. MIT licensed. Available on npm.</span>
- <span class="stack-card-arrow">↗</span>
- </a>
- </div>
- </div>
- </div>
-</section>
-
-<!-- ── SHOWCASE 3D ────────────────────────────────────────────────── -->
-<section class="block" id="showcase-3d-section">
- <div class="wrap-1280">
- <div class="block-head reveal">
- <p class="block-eyebrow"><span class="num">08</span>Discover</p>
- <h2 class="block-h">Living agents, <em>right now.</em></h2>
- <p class="block-lede">A taste of what's running across the web today. Click any agent to talk, remix, or grab their embed code.</p>
- </div>
- <div class="showcase-3d reveal reveal-d1">
- <div class="showcase-3d-grid" id="showcase-3d-grid">
- <!-- Agent cards + CTA cards injected by JS from /api/explore -->
- </div>
- </div>
- </div>
-</section>
-
-<!-- ── PRICING ────────────────────────────────────────────────────── -->
-<section class="block">
- <div class="wrap-1280">
- <div class="block-head reveal">
- <p class="block-eyebrow"><span class="num">09</span>Pricing</p>
- <h2 class="block-h">Free to start. <em>Scale when you do.</em></h2>
- <p class="block-lede">Open beta is free with no limits. Pro and Enterprise plans unlock higher rate limits, custom domains, and dedicated support.</p>
- </div>
- <div class="pricing-stage" id="pricing-stage">
- <canvas id="pricing-canvas"></canvas>
- <div class="pricing-grid reveal reveal-d1">
- <div class="pricing-card" id="tier-beta" data-tier="beta">
- <div class="pricing-tier">Beta</div>
- <div class="pricing-price">$0<sub>/mo</sub></div>
- <div class="pricing-cycle">Free during open beta</div>
- <ul class="pricing-feats">
- <li>Unlimited agents</li>
- <li>Unlimited embeds</li>
- <li>200+ animation clips</li>
- <li>x402 payments (0% fee)</li>
- <li>Community support</li>
- </ul>
- <a class="btn" href="/create" data-tier-cta="beta">Start for free</a>
- </div>
- <div class="pricing-card featured" id="tier-pro" data-tier="pro">
- <span class="pricing-badge">Most popular</span>
- <div class="pricing-tier">Pro</div>
- <div class="pricing-price">$49<sub>/mo</sub></div>
- <div class="pricing-cycle">After open beta · billed monthly</div>
- <ul class="pricing-feats">
- <li>Everything in Beta</li>
- <li>Custom domain embeds</li>
- <li>Priority CDN &amp; GPU rendering</li>
- <li>Advanced analytics dashboard</li>
- <li>Priority support &amp; SLA</li>
- </ul>
- <a class="btn primary" href="/pricing" data-tier-cta="pro">See full pricing</a>
- </div>
- <div class="pricing-card" id="tier-enterprise" data-tier="enterprise">
- <div class="pricing-tier">Enterprise</div>
- <div class="pricing-price" style="font-size:28px;margin-top:6px;">Custom</div>
- <div class="pricing-cycle">Volume · white-label · SLA</div>
- <ul class="pricing-feats">
- <li>Everything in Pro</li>
- <li>White-label embed &amp; API</li>
- <li>Dedicated infrastructure</li>
- <li>Custom integrations</li>
- <li>Dedicated solutions engineer</li>
- </ul>
- <a class="btn" href="mailto:[email protected]" data-tier-cta="enterprise">Contact us</a>
- </div>
- </div>
- <p class="pricing-hint">Hover a tier — she walks over</p>
- </div>
- </div>
-</section>
-
-
-<!-- ── AVATAR DROP ─────────────────────────────────────────────────── -->
-<section class="block body-drop" id="body-drop">
- <div class="wrap-1280">
- <div class="body-drop-content reveal">
- <p class="block-eyebrow"><span class="num">10</span>See it in action</p>
- <h2 class="body-drop-title">
- <span id="drop-sit-line">Your agent</span><br/>
- lives <em>here.</em>
- </h2>
- <p class="body-drop-sub">
- Not a render. Not a video. A real 3D character sitting on this text, jumping onto the button, interacting with the page in real-time.
- </p>
- <div class="cta-row">
- <a class="btn primary" href="/create" id="drop-cta-btn">Build your agent <span class="arrow">→</span></a>
- </div>
- </div>
- </div>
- <canvas id="drop-canvas"></canvas>
-</section>
-
-<!-- ── V4 IMMERSIVE CLOSE ─────────────────────────────────────────── -->
-<section class="vclose" id="vclose">
- <div class="vclose-grid" aria-hidden="true"></div>
- <div id="vclose-agent-slot" class="vclose-agent"></div>
- <div class="vclose-vignette" aria-hidden="true"></div>
- <div class="vclose-overlay">
- <div class="vclose-eyebrow">live · three.ws</div>
- <h2 class="vclose-title">Your AI deserves<br />a <em>body.</em></h2>
- <p class="vclose-sub">Free to start. Two lines of HTML. Voice, payments, and on-chain identity included.</p>
- <div class="cta-row" style="justify-content:center;">
- <a class="btn primary" href="/create">Build your agent <span class="arrow">→</span></a>
- <a class="btn" href="/docs">Read the docs</a>
- </div>
- <div class="vclose-chips" id="vclose-chips" role="group" aria-label="Trigger an animation">
- <button type="button" class="hero-chip hero-chip--rand" data-anim="__random">🎲 Random</button>
- <button type="button" class="hero-chip" data-anim="wave">👋 Wave</button>
- <button type="button" class="hero-chip" data-anim="dance">💃 Dance</button>
- <button type="button" class="hero-chip" data-anim="capoeira">🤸 Capoeira</button>
- <button type="button" class="hero-chip" data-anim="thriller">🧟 Thriller</button>
- <button type="button" class="hero-chip" data-anim="celebrate">🎉 Celebrate</button>
- </div>
- </div>
-</section>
-
-<!-- ── FOOTER ─────────────────────────────────────────────────────── -->
-<footer>
- <div class="wrap-1280">
- <div class="foot-inner">
- <div>© 2026 · three.ws · the 3D agent layer of the internet</div>
- <div class="foot-links">
- <a href="/docs">Docs</a>
- <a href="/pricing">Pricing</a>
- <a href="/discover">Discover</a>
- <a href="/dashboard/api">API</a>
- <a href="https://github.com/nirholas/three.ws">GitHub</a>
- <a href="mailto:[email protected]">Contact</a>
- </div>
- </div>
- </div>
-</footer>
-
-<script type="module">
- import { initAvatarDrop } from '/src/avatar-drop.js';
- const dropSection = document.getElementById('body-drop');
- if (dropSection) {
- const io = new IntersectionObserver(entries => {
- if (entries[0].isIntersecting) {
- io.disconnect();
- initAvatarDrop(dropSection);
- }
- }, { rootMargin: '200px' });
- io.observe(dropSection);
- }
-</script>
-
-<script type="module">
- import { initWalkPreview } from '/src/walk-embed-preview.js';
- const walkContainer = document.getElementById('walk-preview-container');
- if (walkContainer) initWalkPreview(walkContainer);
-</script>
-
-<script>
- // ── Boot live <agent-3d> instances ─────────────────────────────
- const AVATAR_ID = 'bacff13e-b64b-4ac0-860d-44f0168ad23b';
- const AGENT_ATTRS = {
- mode: 'inline', responsive: '', background: 'transparent',
- 'name-plate': 'off', 'avatar-chat': 'off', kiosk: '', eager: '',
- };
- function devProxyGlb(url) {
- if (!url) return url;
- const isDev = location.hostname === 'localhost' || location.hostname.includes('.github.dev') || location.hostname.includes('.gitpod.io');
- if (isDev && url.includes('r2.dev')) {
- try { return '/r2-proxy' + new URL(url).pathname; } catch (_) {}
- }
- return url;
- }
- function spawnAgent(glbUrl) {
- const el = document.createElement('agent-3d');
- el.classList.add('live-agent');
- el.setAttribute('body', glbUrl);
- for (const [k, v] of Object.entries(AGENT_ATTRS)) el.setAttribute(k, v);
- return el;
- }
- (async () => {
- try {
- const r = await fetch(`${location.origin}/api/avatars/${AVATAR_ID}`);
- const d = await r.json();
- const glb = devProxyGlb(d.avatar?.model_url || d.avatar?.url);
- if (!glb) return;
- const heroInner = document.getElementById('hero-stage-inner');
- if (heroInner) {
- const heroEl = spawnAgent(glb);
- heroInner.appendChild(heroEl);
- initHeroWalk(heroEl);
- initHeroChips(heroEl);
- }
- const thumb = d.avatar?.thumbnail_url;
- if (thumb) {
- const orbEl = document.getElementById('editorial-orb-avatar');
- if (orbEl) {
- const img = new Image();
- img.alt = d.avatar?.name || 'Avatar';
- img.src = thumb;
- orbEl.appendChild(img);
- }
- }
- } catch (e) {
- console.warn('[home] avatar boot failed', e);
- }
- })();
-
- // ── Hero walk cycle ─────────────────────────────────────────────
- let _heroChipActive = false;
-
- function initHeroWalk(heroAgent) {
- const WALK_CLIP = 'av-walk-feminine';
- const IDLE_CLIP = 'idle';
- let active = true;
-
- async function walkCycle() {
- await new Promise(r => setTimeout(r, 2000));
- if (!active || _heroChipActive) return;
- heroAgent.playClipByName?.(WALK_CLIP, { loop: true, fade_ms: 400 });
- await new Promise(r => setTimeout(r, 5000));
- if (!active || _heroChipActive) return;
- heroAgent.playClipByName?.(IDLE_CLIP, { loop: true, fade_ms: 600 });
- await new Promise(r => setTimeout(r, 3000));
- walkCycle();
- }
-
- heroAgent.addEventListener('agent:ready', walkCycle, { once: true });
- if (heroAgent._viewer) walkCycle();
-
- document.addEventListener('visibilitychange', () => {
- active = !document.hidden;
- if (active && !_heroChipActive) walkCycle();
- });
- }
-
- // ── Hero animation chips ─────────────────────────────────────────
- function initHeroChips(heroAgent) {
- const ANIMS = ['wave','dance','capoeira','jump','thriller','pray','celebrate','rumba','falling','kiss','taunt','idle'];
- const chipsEl = document.getElementById('hero-chips');
- const counter = document.getElementById('hero-chips-counter');
- let lastAnim = null;
- let moveCount = 0;
-
- if (!chipsEl) return;
-
- chipsEl.addEventListener('click', (e) => {
- const btn = e.target.closest('.hero-chip');
- if (!btn) return;
- const animKey = btn.dataset.anim;
- if (!animKey) return;
-
- let clip = animKey;
- if (animKey === '__random') {
- const pool = ANIMS.filter(a => a !== lastAnim);
- clip = pool[Math.floor(Math.random() * pool.length)];
- }
- lastAnim = clip;
-
- chipsEl.querySelectorAll('.hero-chip').forEach(c => delete c.dataset.active);
- btn.dataset.active = 'true';
-
- _heroChipActive = true;
- heroAgent.playClipByName?.(clip, { loop: false, fade_ms: 400 });
-
- moveCount += 1;
- if (counter) counter.innerHTML = `<strong>${moveCount}</strong> ${moveCount === 1 ? 'move' : 'moves'}`;
-
- clearTimeout(chipsEl._resumeTimer);
- chipsEl._resumeTimer = setTimeout(() => {
- _heroChipActive = false;
- delete btn.dataset.active;
- }, 6000);
- });
- }
-
-
- // ── Hero thought-bubble chat ────────────────────────────────────
- (function initHeroChat() {
- const form = document.getElementById('hero-chat-form');
- const input = document.getElementById('hero-chat-input');
- const sendBtn = document.getElementById('hero-chat-send');
- const bubble = document.getElementById('hero-thought');
- const textEl = document.getElementById('hero-thought-text');
- if (!form || !input || !bubble || !textEl) return;
-
- var stageEl = document.getElementById('hero-stage');
- if (stageEl) {
- var REF_H = 680;
- function sizeBubble() {
- var h = stageEl.clientHeight;
- var ratio = Math.max(0.55, Math.min(1.15, h / REF_H));
- var topPct = Math.max(4, Math.min(14, 10 + (1 - ratio) * 8));
- bubble.style.top = topPct.toFixed(1) + '%';
- }
- sizeBubble();
- new ResizeObserver(sizeBubble).observe(stageEl);
- }
-
- const AVATAR_CHAT_ID = 'bacff13e-b64b-4ac0-860d-44f0168ad23b';
- let history = [];
- let busy = false;
- let hideTimer = null;
-
- function showBubble() {
- clearTimeout(hideTimer);
- bubble.classList.add('visible');
- }
-
- function hideBubble(delay) {
- clearTimeout(hideTimer);
- hideTimer = setTimeout(function() {
- bubble.classList.remove('visible');
- }, delay || 8000);
- }
-
- function showThinking() {
- textEl.innerHTML = '<div class="hero-thought-dots"><span></span><span></span><span></span></div>';
- showBubble();
- }
-
- function showText(text) {
- textEl.textContent = text;
- textEl.scrollTop = textEl.scrollHeight;
- showBubble();
- hideBubble(12000);
- }
-
- function appendText(chunk) {
- var dotsEl = textEl.querySelector('.hero-thought-dots');
- if (dotsEl) textEl.innerHTML = '';
- textEl.textContent += chunk;
- textEl.scrollTop = textEl.scrollHeight;
- }
-
- function triggerAnim(heroAgent) {
- if (heroAgent && heroAgent.playClipByName) {
- heroAgent.playClipByName('wave', { loop: false, fade_ms: 400 });
- }
- }
-
- form.addEventListener('submit', function(e) {
- e.preventDefault();
- var msg = input.value.trim();
- if (!msg || busy) return;
-
- busy = true;
- sendBtn.disabled = true;
- input.value = '';
- showThinking();
-
- history.push({ role: 'user', content: msg });
- if (history.length > 20) history = history.slice(-20);
-
- var heroAgent = document.querySelector('#hero-stage-inner agent-3d');
- triggerAnim(heroAgent);
-
- var fullText = '';
- fetch('/api/chat', {
- method: 'POST',
- headers: { 'Content-Type': 'application/json' },
- body: JSON.stringify({
- message: msg,
- agentId: AVATAR_CHAT_ID,
- history: history.slice(0, -1),
- context: {}
- })
- }).then(function(res) {
- if (!res.ok) throw new Error('Chat request failed');
- var reader = res.body.getReader();
- var decoder = new TextDecoder();
- var buffer = '';
-
- function processChunk(result) {
- if (result.done) {
- if (fullText) {
- history.push({ role: 'assistant', content: fullText });
- hideBubble(12000);
- }
- busy = false;
- sendBtn.disabled = false;
- return;
- }
- buffer += decoder.decode(result.value, { stream: true });
- var lines = buffer.split('\n');
- buffer = lines.pop();
-
- lines.forEach(function(line) {
- if (!line.startsWith('data: ')) return;
- var data = line.slice(6).trim();
- if (!data || data === '[DONE]') return;
- try {
- var parsed = JSON.parse(data);
- if (parsed.type === 'chunk' && parsed.text) {
- fullText += parsed.text;
- appendText(parsed.text);
- showBubble();
- } else if (parsed.type === 'error') {
- showText('Hmm, something went wrong. Try again?');
- }
- } catch (_) {}
- });
-
- return reader.read().then(processChunk);
- }
-
- return reader.read().then(processChunk);
- }).catch(function(err) {
- console.warn('[hero-chat]', err);
- showText('Could not reach the agent. Try again in a moment.');
- busy = false;
- sendBtn.disabled = false;
- });
- });
- })();
-
- // ── Hero parallax tilt ──────────────────────────────────────────
- const stage = document.getElementById('hero-stage');
- const inner = document.getElementById('hero-stage-inner');
- if (stage && inner && window.matchMedia('(min-width: 980px)').matches) {
- const thoughtEl = document.getElementById('hero-thought');
- let rx = 0, ry = 0, tx = 0, ty = 0;
- const lerp = (a, b, t) => a + (b - a) * t;
- stage.addEventListener('mousemove', (e) => {
- const r = stage.getBoundingClientRect();
- tx = ((e.clientX - r.left) / r.width - 0.5) * 6;
- ty = -((e.clientY - r.top) / r.height - 0.5) * 4;
- });
- stage.addEventListener('mouseleave', () => { tx = 0; ty = 0; });
- (function tick() {
- rx = lerp(rx, ty, 0.08);
- ry = lerp(ry, tx, 0.08);
- inner.style.transform = `perspective(1400px) rotateX(${rx.toFixed(2)}deg) rotateY(${ry.toFixed(2)}deg)`;
- if (thoughtEl) {
- thoughtEl.style.setProperty('--tilt-x', `${(ry * 2).toFixed(1)}px`);
- thoughtEl.style.setProperty('--tilt-y', `${(-rx * 1.5).toFixed(1)}px`);
- }
- requestAnimationFrame(tick);
- })();
- }
-
- // ── Playground ──────────────────────────────────────────────────
- (function initPlayground() {
- const THUMB_CDN = 'https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/thumb';
- const textarea = document.getElementById('pg-textarea');
- const highlight = document.getElementById('pg-highlight');
- const preview = document.getElementById('pg-preview');
- const avatarRow = document.getElementById('pg-avatars');
- const modeChips = document.getElementById('pg-mode-chips');
- const bgChips = document.getElementById('pg-bg-chips');
- const optChips = document.getElementById('pg-option-chips');
- const animsEl = document.getElementById('pg-anims');
- const tabsEl = document.getElementById('pg-tabs');
- const copyBtn = document.getElementById('pg-copy');
- if (!textarea || !preview) return;
-
- const state = {
- avatarId: AVATAR_ID,
- glbUrl: '',
- mode: 'inline',
- background: 'transparent',
- options: { responsive: true, 'name-plate': 'off', 'avatar-chat': 'off', eager: true },
- flavor: 'html',
- };
- let liveAgent = null;
-
- function genCode() {
- const attrs = [];
- var isDemo = state.avatarId.indexOf('avatar_demo_') === 0;
- if (isDemo && state.glbUrl) {
- attrs.push('body="' + state.glbUrl + '"');
- } else {
- attrs.push('src="https://three.ws/api/avatars/' + state.avatarId + '"');
- }
- if (state.mode !== 'inline') attrs.push('mode="' + state.mode + '"');
- if (state.background !== 'transparent') attrs.push('background="' + state.background + '"');
- for (const [k, v] of Object.entries(state.options)) {
- if (!v || v === 'off') continue;
- attrs.push(typeof v === 'string' ? k + '="' + v + '"' : k);
- }
- const indent = state.flavor === 'html' ? ' ' : ' ';
- const attrBlock = attrs.map(function(a) { return indent + a; }).join('\n');
-
- if (state.flavor === 'html') {
- return '<script type="module"\n src="https://three.ws/agent-3d/latest/agent-3d.js"\n><\/script>\n\n<agent-3d\n' + attrBlock + '\n></agent-3d>';
- }
- if (state.flavor === 'react') {
- return "import 'https://three.ws/agent-3d/latest/agent-3d.js';\n\nexport default function MyAgent() {\n return (\n <agent-3d\n" + attrBlock + "\n />\n );\n}";
- }
- return '<script setup>\nimport \'https://three.ws/agent-3d/latest/agent-3d.js\';\n<\/script>\n\n<template>\n <agent-3d\n' + attrBlock + '\n />\n</template>';
- }
-
- function hl(code) {
- var tokens = [];
- var ph = function(cls, txt) { var id = '\x00' + tokens.length + '\x00'; tokens.push('<span class="' + cls + '">' + txt + '</span>'); return id; };
- var s = code.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
- s = s.replace(/(&lt;\/?[a-z][a-z0-9-]*)/gi, function(m) { return ph('tag', m); });
- s = s.replace(/\b(import|from|export|default|function|return|const|let|var)\b/g, function(m) { return ph('kw', m); });
- s = s.replace(/(\s)([a-z][a-z0-9-]*)(=)/gi, function(_, ws, name, eq) { return ws + ph('attr', name) + eq; });
- s = s.replace(/("(?:[^"\\]|\\.)*?")/g, function(m) { return ph('str', m); });
- s = s.replace(/(\/\/.*?)$/gm, function(m) { return ph('com', m); });
- return s.replace(/\x00(\d+)\x00/g, function(_, i) { return tokens[parseInt(i)]; });
- }
-
- function syncCode() {
- var code = genCode();
- textarea.value = code;
- highlight.innerHTML = hl(code);
- }
-
- function updatePreview() {
- if (!state.glbUrl) return;
- if (!liveAgent) {
- liveAgent = document.createElement('agent-3d');
- preview.appendChild(liveAgent);
- }
- liveAgent.setAttribute('body', state.glbUrl);
- liveAgent.setAttribute('mode', state.mode);
- liveAgent.setAttribute('background', state.background);
- for (var entry of Object.entries(state.options)) {
- var k = entry[0], v = entry[1];
- if (v && v !== 'off') liveAgent.setAttribute(k, typeof v === 'string' ? v : '');
- else liveAgent.removeAttribute(k);
- }
- preview.style.backgroundColor = state.background === '#ffffff' ? '#ffffff' : '';
- }
-
- function fetchGlb(id) {
- return fetch(location.origin + '/api/avatars/' + id)
- .then(function(r) { return r.json(); })
- .then(function(d) { return devProxyGlb(d.avatar && (d.avatar.model_url || d.avatar.url)) || ''; })
- .catch(function() { return ''; });
- }
-
- function switchAvatar(id, directGlb) {
- state.avatarId = id;
- avatarRow.querySelectorAll('.pg-avatar-item').forEach(function(el) {
- el.classList.toggle('active', el.dataset.id === id);
- });
- var resolve = directGlb
- ? Promise.resolve(devProxyGlb(directGlb))
- : fetchGlb(id);
- resolve.then(function(glb) {
- state.glbUrl = glb;
- syncCode();
- if (liveAgent) { liveAgent.remove(); liveAgent = null; }
- updatePreview();
- });
- }
-
- function renderAvatars(list) {
- avatarRow.innerHTML = '';
- list.forEach(function(a) {
- var btn = document.createElement('button');
- btn.className = 'pg-avatar-item' + (a.id === state.avatarId ? ' active' : '');
- btn.dataset.id = a.id;
- if (a.glb) btn.dataset.glb = a.glb;
- btn.title = a.name || a.id.slice(0, 8);
- var initial = document.createElement('span');
- initial.className = 'pg-avatar-initial';
- initial.textContent = (a.name || '?').charAt(0);
- btn.appendChild(initial);
- if (a.thumb) {
- var img = document.createElement('img');
- img.src = a.thumb;
- img.alt = a.name || '';
- img.loading = 'lazy';
- img.onerror = function() { this.style.display = 'none'; initial.style.display = 'flex'; };
- btn.appendChild(img);
- } else {
- initial.style.display = 'flex';
- }
- btn.addEventListener('click', function() { switchAvatar(a.id, a.glb); });
- avatarRow.appendChild(btn);
- });
- }
-
- function loadAvatars() {
- var O = location.origin;
- var defaults = [
- { id: AVATAR_ID, name: 'nich', thumb: THUMB_CDN + '/' + AVATAR_ID + '.png' },
- { id: 'avatar_demo_disk_cz', name: 'CZ', glb: O + '/avatars/cz.glb' },
- { id: 'avatar_demo_disk_boss', name: 'Boss', glb: O + '/animations/soldier.glb' },
- { id: 'avatar_demo_disk_saga', name: 'Saga', glb: O + '/animations/robotexpressive.glb' },
- { id: 'avatar_demo_disk_ansem', name: 'Ansem', glb: O + '/avatars/default.glb' },
- { id: 'avatar_demo_disk_claude', name: 'Claude', glb: O + '/avatars/default.glb' },
- { id: 'avatar_demo_disk_agent', name: 'Agent', glb: O + '/animations/soldier.glb' },
- { id: 'avatar_demo_disk_ai', name: 'AI', glb: O + '/animations/robotexpressive.glb' },
- ];
- renderAvatars(defaults);
- fetch('/api/marketplace')
- .then(function(r) { return r.json(); })
- .then(function(d) {
- var items = (d.agents || d.items || d || []).slice(0, 24);
- var list = defaults.slice();
- var seen = {};
- defaults.forEach(function(da) { seen[da.id] = true; });
- items.forEach(function(item) {
- var id = item.avatar_id || item.avatarId || item.id;
- if (!id || seen[id]) return;
- seen[id] = true;
- list.push({
- id: id,
- name: item.name || item.agent_name || '',
- thumb: item.thumbnail || (THUMB_CDN + '/' + id + '.png'),
- });
- });
- renderAvatars(list.slice(0, 14));
- }).catch(function() {});
- }
-
- function chipSelect(container, cb) {
- container.addEventListener('click', function(e) {
- var chip = e.target.closest('.pg-chip');
- if (!chip) return;
- container.querySelectorAll('.pg-chip').forEach(function(c) { c.classList.remove('active'); });
- chip.classList.add('active');
- cb(chip);
- });
- }
-
- chipSelect(modeChips, function(chip) {
- state.mode = chip.dataset.val;
- syncCode(); updatePreview();
- });
-
- var colorTrigger = document.getElementById('pg-color-trigger');
- var colorPopover = document.getElementById('pg-color-popover');
- var colorSwatches = document.getElementById('pg-color-swatches');
- var colorHexInput = document.getElementById('pg-color-hex');
- var colorPreview = document.getElementById('pg-color-preview');
-
- var palette = [
- '#1a1a2e','#16213e','#0f3460','#533483','#e94560','#ff6b6b',
- '#ffa07a','#ffd93d','#6bcb77','#4d96ff','#845ec2','#d65db1',
- '#2d3436','#636e72','#b2bec3','#dfe6e9','#fdcb6e','#e17055',
- '#00b894','#00cec9','#0984e3','#6c5ce7','#fd79a8','#e84393',
- ];
-
- palette.forEach(function(hex) {
- var btn = document.createElement('button');
- btn.className = 'pg-color-swatch';
- btn.style.background = hex;
- btn.dataset.color = hex;
- btn.setAttribute('aria-label', hex);
- colorSwatches.appendChild(btn);
- });
-
- function applyPickedColor(hex) {
- state.background = hex;
- colorTrigger.classList.add('active', 'has-color');
- colorTrigger.style.setProperty('--pg-picked-color', hex);
- colorPreview.style.background = hex;
- colorHexInput.value = hex;
- bgChips.querySelectorAll('.pg-chip').forEach(function(c) { c.classList.remove('active'); });
- colorSwatches.querySelectorAll('.pg-color-swatch').forEach(function(s) {
- s.classList.toggle('active', s.dataset.color === hex);
- });
- syncCode(); updatePreview();
- }
-
- chipSelect(bgChips, function(chip) {
- state.background = chip.dataset.val;
- colorTrigger.classList.remove('active', 'has-color');
- colorPopover.classList.remove('open');
- colorSwatches.querySelectorAll('.pg-color-swatch').forEach(function(s) { s.classList.remove('active'); });
- syncCode(); updatePreview();
- });
-
- var popoverMoved = false;
- function positionPopover() {
- var rect = colorTrigger.getBoundingClientRect();
- var pw = 220;
- var left = rect.left + rect.width / 2 - pw / 2;
- if (left < 8) left = 8;
- if (left + pw > window.innerWidth - 8) left = window.innerWidth - 8 - pw;
- colorPopover.style.top = (rect.bottom + 8) + 'px';
- colorPopover.style.left = left + 'px';
- }
-
- colorTrigger.addEventListener('click', function(e) {
- e.stopPropagation();
- if (!popoverMoved) {
- document.body.appendChild(colorPopover);
- popoverMoved = true;
- }
- positionPopover();
- colorPopover.classList.toggle('open');
- });
-
- window.addEventListener('scroll', function() {
- if (colorPopover.classList.contains('open')) positionPopover();
- }, { passive: true });
- window.addEventListener('resize', function() {
- if (colorPopover.classList.contains('open')) positionPopover();
- });
-
- colorSwatches.addEventListener('click', function(e) {
- var swatch = e.target.closest('.pg-color-swatch');
- if (!swatch) return;
- applyPickedColor(swatch.dataset.color);
- });
-
- colorHexInput.addEventListener('input', function() {
- var v = colorHexInput.value.trim();
- if (!v.startsWith('#')) v = '#' + v;
- if (/^#[0-9a-fA-F]{6}$/.test(v)) applyPickedColor(v);
- });
-
- colorHexInput.addEventListener('keydown', function(e) {
- if (e.key === 'Enter') {
- var v = colorHexInput.value.trim();
- if (!v.startsWith('#')) v = '#' + v;
- if (/^#[0-9a-fA-F]{6}$/.test(v)) {
- applyPickedColor(v);
- colorPopover.classList.remove('open');
- }
- }
- });
-
- document.addEventListener('click', function(e) {
- if (!colorPopover.contains(e.target) && e.target !== colorTrigger) {
- colorPopover.classList.remove('open');
- }
- });
-
- optChips.addEventListener('click', function(e) {
- var chip = e.target.closest('.pg-chip');
- if (!chip) return;
- var attr = chip.dataset.attr;
- var isOn = chip.classList.toggle('active');
- state.options[attr] = isOn ? (chip.dataset.val || true) : (chip.dataset.val ? 'off' : false);
- syncCode(); updatePreview();
- });
-
- tabsEl.addEventListener('click', function(e) {
- var tab = e.target.closest('.pg-tab');
- if (!tab) return;
- state.flavor = tab.dataset.flavor;
- tabsEl.querySelectorAll('.pg-tab').forEach(function(t) { t.classList.toggle('active', t === tab); });
- syncCode();
- });
-
- var editDebounce = null;
- textarea.addEventListener('input', function() {
- highlight.innerHTML = hl(textarea.value);
- clearTimeout(editDebounce);
- editDebounce = setTimeout(function() {
- var code = textarea.value;
- var m = code.match(/<agent-3d([^>]*?)(?:\/>|>)/i);
- if (!m) return;
- var as = m[1];
- var ga = function(n) { var x = as.match(new RegExp(n + '="([^"]*)"', 'i')); return x ? x[1] : null; };
- var ha = function(n) { return new RegExp('\\b' + n + '\\b', 'i').test(as); };
- var src = ga('src');
- if (src) {
- var idm = src.match(/avatars\/([a-f0-9-]+)/);
- if (idm && idm[1] !== state.avatarId) { switchAvatar(idm[1]); return; }
- }
- var mode = ga('mode');
- if (mode && mode !== state.mode) state.mode = mode;
- var bg = ga('background');
- if (bg !== null) state.background = bg;
- state.options.responsive = ha('responsive');
- state.options['name-plate'] = ga('name-plate') === 'on' ? 'on' : 'off';
- state.options['avatar-chat'] = ga('avatar-chat') === 'on' ? 'on' : 'off';
- state.options.eager = ha('eager');
- updatePreview();
- }, 350);
- });
-
- textarea.addEventListener('scroll', function() {
- highlight.scrollTop = textarea.scrollTop;
- highlight.scrollLeft = textarea.scrollLeft;
- });
-
- textarea.addEventListener('keydown', function(e) {
- if (e.key === 'Tab') {
- e.preventDefault();
- var s = textarea.selectionStart, end = textarea.selectionEnd;
- textarea.value = textarea.value.substring(0, s) + ' ' + textarea.value.substring(end);
- textarea.selectionStart = textarea.selectionEnd = s + 2;
- textarea.dispatchEvent(new Event('input'));
- }
- });
-
- copyBtn.addEventListener('click', function() {
- navigator.clipboard.writeText(textarea.value).then(function() {
- copyBtn.classList.add('copied');
- copyBtn.textContent = 'Copied';
- setTimeout(function() { copyBtn.classList.remove('copied'); copyBtn.textContent = 'Copy'; }, 1600);
- }).catch(function() {});
- });
-
- animsEl.addEventListener('click', function(e) {
- var btn = e.target.closest('.pg-anim');
- if (!btn || !liveAgent) return;
- var clip = btn.dataset.anim;
- if (liveAgent.playClipByName) liveAgent.playClipByName(clip, { loop: clip === 'idle', fade_ms: 400 });
- animsEl.querySelectorAll('.pg-anim').forEach(function(c) { c.classList.remove('active'); });
- btn.classList.add('active');
- if (clip !== 'idle') {
- clearTimeout(animsEl._t);
- animsEl._t = setTimeout(function() { btn.classList.remove('active'); }, 5000);
- }
- });
-
- fetchGlb(state.avatarId).then(function(glb) {
- state.glbUrl = glb;
- syncCode();
- updatePreview();
- loadAvatars();
- });
- })();
-
- // ── Showcase 3D — live agent grid ──────────────────────────────
- (function () {
- const SHOWCASE_ANIMS = ['idle', 'dance', 'wave', 'celebrate', 'capoeira', 'thriller'];
- const SHOWCASE_TAGS = ['3D', 'animated', 'rigged', 'ERC-8004', 'x402', 'community'];
- const EXPLORE_SHOWCASE_URL = '/api/explore?source=all&limit=6&quality=high';
- const FALLBACK_AGENTS = [
- { name: 'nich', description: '@nirholas', glbUrl: '/avatars/default.glb', viewerUrl: '/agent-next?id=bacff13e-b64b-4ac0-860d-44f0168ad23b', kind: 'avatar' },
- { name: 'CZ', description: 'Stylized humanoid', glbUrl: '/avatars/cz.glb', viewerUrl: '/avatars/avatar_demo_disk_cz', kind: 'avatar' },
- { name: 'Boss', description: 'Soldier rig', glbUrl: '/animations/soldier.glb', viewerUrl: '/avatars/avatar_demo_disk_boss', kind: 'avatar' },
- { name: 'Saga', description: 'Expressive robot', glbUrl: '/animations/robotexpressive.glb', viewerUrl: '/avatars/avatar_demo_disk_saga', kind: 'avatar' },
- { name: 'Agent', description: 'Autonomous operative', glbUrl: '/animations/soldier.glb', viewerUrl: '/avatars/avatar_demo_disk_agent', kind: 'avatar' },
- { name: 'Claude', description: 'AI persona', glbUrl: '/avatars/default.glb', viewerUrl: '/avatars/avatar_demo_disk_claude', kind: 'avatar' },
- ];
- const grid = document.getElementById('showcase-3d-grid');
- if (!grid) return;
-
- function hashHue(str) {
- var h = 0;
- for (var i = 0; i < str.length; i++) h = (h * 31 + str.charCodeAt(i)) >>> 0;
- return h % 360;
- }
-
- function makeAgentCard(item, idx) {
- var card = document.createElement('a');
- card.className = 'showcase-agent-card';
- card.href = item.viewerUrl || ('/avatars/' + (item.avatarId || item.agentId));
-
- var h = hashHue(item.avatarId || item.agentId || item.name || String(idx));
- var h2 = (h + 50) % 360;
- var grad = document.createElement('div');
- grad.className = 'showcase-card-grad';
- grad.style.background = 'radial-gradient(ellipse at 50% 80%, hsl(' + h + ' 60% 18% / 0.6) 0%, hsl(' + h2 + ' 50% 6% / 0.3) 70%, transparent 100%)';
- card.appendChild(grad);
-
- var skel = document.createElement('div');
- skel.className = 'showcase-card-skel';
- skel.innerHTML = '<div class="showcase-card-skel-ring"></div>';
- card.appendChild(skel);
-
- var floor = document.createElement('div');
- floor.className = 'showcase-card-floor';
- card.appendChild(floor);
-
- var glbUrl = item.glbUrl || '';
- if (glbUrl) {
- glbUrl = devProxyGlb(glbUrl);
- } else if (item.avatarId) {
- (async function() {
- try {
- var r = await fetch('/api/avatars/' + item.avatarId);
- var d = await r.json();
- var url = devProxyGlb(d.avatar?.model_url || d.avatar?.url);
- if (url) bootAgent(card, skel, url, idx);
- } catch (_) {}
- })();
- }
-
- if (item.kind === 'onchain') {
- var tag = document.createElement('span');
- tag.className = 'showcase-card-tag';
- tag.textContent = 'On-chain';
- card.appendChild(tag);
- } else if (idx === 0) {
- var ftag = document.createElement('span');
- ftag.className = 'showcase-card-tag';
- ftag.textContent = 'Featured';
- card.appendChild(ftag);
- }
-
- var animLabel = document.createElement('span');
- animLabel.className = 'showcase-card-anim-tag';
- animLabel.textContent = SHOWCASE_TAGS[idx % SHOWCASE_TAGS.length];
- card.appendChild(animLabel);
-
- var meta = document.createElement('div');
- meta.className = 'showcase-card-meta';
- meta.innerHTML = '<div class="showcase-card-name">' + escHtml(item.name || 'Agent') + '</div>'
- + '<div class="showcase-card-sub">' + escHtml(item.description ? item.description.slice(0, 50) : (item.kind === 'onchain' ? 'ERC-8004' : 'GLB')) + '</div>';
- card.appendChild(meta);
-
- if (glbUrl) bootAgent(card, skel, glbUrl, idx);
-
- return card;
- }
-
- function bootAgent(card, skel, glbUrl, idx) {
- var el = document.createElement('agent-3d');
- el.setAttribute('body', glbUrl);
- el.setAttribute('mode', 'inline');
- el.setAttribute('responsive', '');
- el.setAttribute('background', 'transparent');
- el.setAttribute('name-plate', 'off');
- el.setAttribute('avatar-chat', 'off');
- el.setAttribute('kiosk', '');
- card.insertBefore(el, skel);
-
- el.addEventListener('agent:ready', function () {
- el.classList.add('loaded');
- if (skel && skel.parentNode) skel.remove();
- var anim = SHOWCASE_ANIMS[idx % SHOWCASE_ANIMS.length];
- if (anim !== 'idle') {
- el.playClipByName?.(anim, { loop: true, fade_ms: 600 });
- }
- }, { once: true });
- }
-
- function makeCta(href, icon, label, sub) {
- var a = document.createElement('a');
- a.className = 'showcase-cta-card';
- a.href = href;
- a.innerHTML = '<span class="showcase-cta-icon">' + icon + '</span>'
- + '<span class="showcase-cta-label">' + label + '</span>'
- + '<span class="showcase-cta-sub">' + sub + '</span>';
- return a;
- }
-
- function escHtml(s) {
- var d = document.createElement('span');
- d.textContent = s;
- return d.innerHTML;
- }
-
- function renderShowcase(agentItems) {
- agentItems.forEach(function (item, i) {
- grid.appendChild(makeAgentCard(item, i));
- });
- grid.appendChild(makeCta('/discover', '→', 'Browse all', 'Public agent directory'));
- grid.appendChild(makeCta('/create', '✨', 'Make your own', 'Selfie → agent · 60s'));
- }
-
- var showcaseBooted = false;
- var showcaseObs = new IntersectionObserver(function (entries) {
- if (!entries[0].isIntersecting || showcaseBooted) return;
- showcaseBooted = true;
- showcaseObs.disconnect();
-
- fetch(EXPLORE_SHOWCASE_URL, { headers: { accept: 'application/json' } })
- .then(function (r) { return r.json(); })
- .then(function (data) {
- var items = Array.isArray(data.items) ? data.items : [];
- var agentItems = items.filter(function (it) { return it.glbUrl || it.avatarId; }).slice(0, 6);
- renderShowcase(agentItems.length >= 3 ? agentItems : FALLBACK_AGENTS);
- })
- .catch(function () {
- renderShowcase(FALLBACK_AGENTS);
- });
- }, { rootMargin: '200px' });
- showcaseObs.observe(grid);
- })();
-
- // ── Vclose section ──────────────────────────────────────────────
- (async () => {
- try {
- const r = await fetch(`${location.origin}/api/avatars/${AVATAR_ID}`);
- const d = await r.json();
- const glb = devProxyGlb(d.avatar?.model_url || d.avatar?.url);
- if (!glb) return;
-
- const slot = document.getElementById('vclose-agent-slot');
- if (!slot) return;
- const vcloseEl = document.createElement('agent-3d');
- vcloseEl.id = 'vclose-agent';
- vcloseEl.className = 'vclose-agent';
- vcloseEl.setAttribute('body', glb);
- vcloseEl.setAttribute('mode', 'inline');
- vcloseEl.setAttribute('responsive', '');
- vcloseEl.setAttribute('background', 'transparent');
- vcloseEl.setAttribute('name-plate', 'off');
- vcloseEl.setAttribute('avatar-chat', 'off');
- vcloseEl.setAttribute('kiosk', '');
- slot.replaceWith(vcloseEl);
-
- let vcloseInited = false;
- const ANIMS = ['wave','dance','capoeira','jump','thriller','pray','celebrate','rumba','falling','kiss','taunt'];
- let vcloseLast = null;
-
- function vcloseReady() {
- if (vcloseInited) return;
- vcloseInited = true;
- vcloseEl.classList.add('loaded');
- vcloseEl.playClipByName?.('idle', { loop: true, fade_ms: 400 });
- }
- vcloseEl.addEventListener('agent:ready', vcloseReady, { once: true });
-
- const vcloseChips = document.getElementById('vclose-chips');
- if (vcloseChips) {
- vcloseChips.addEventListener('click', (e) => {
- const btn = e.target.closest('.hero-chip');
- if (!btn) return;
- let clip = btn.dataset.anim;
- if (clip === '__random') {
- const pool = ANIMS.filter(a => a !== vcloseLast);
- clip = pool[Math.floor(Math.random() * pool.length)];
- }
- vcloseLast = clip;
- vcloseChips.querySelectorAll('.hero-chip').forEach(c => delete c.dataset.active);
- btn.dataset.active = 'true';
- vcloseEl.playClipByName?.(clip, { loop: false, fade_ms: 400 });
- clearTimeout(vcloseChips._timer);
- vcloseChips._timer = setTimeout(() => delete btn.dataset.active, 6000);
- });
- }
-
- const vcloseSection = document.getElementById('vclose');
- if (vcloseSection) {
- const io = new IntersectionObserver((entries) => {
- if (entries[0].isIntersecting && !vcloseInited) {
- vcloseReady();
- }
- }, { threshold: 0, rootMargin: '200px' });
- io.observe(vcloseSection);
- }
- } catch (e) {
- console.warn('[home] vclose avatar boot failed', e);
- }
- })();
-
- // ── Reveal on scroll (IntersectionObserver) ────────────────────
- {
- const revealEls = document.querySelectorAll('.reveal');
- if (revealEls.length) {
- const revealObs = new IntersectionObserver((entries) => {
- entries.forEach((entry) => {
- if (entry.isIntersecting) {
- entry.target.classList.add('vis');
- revealObs.unobserve(entry.target);
- }
- });
- }, { threshold: 0.08, rootMargin: '0px 0px -40px 0px' });
- revealEls.forEach((el) => revealObs.observe(el));
- }
- }
-
- // ── Hero text entrance ──────────────────────────────────────────
- requestAnimationFrame(() => {
- const heroText = document.querySelector('.hero-text');
- if (heroText) heroText.classList.add('entered');
- });
-
- // ── Hero agent loaded state ─────────────────────────────────────
- {
- const heroStage = document.getElementById('hero-stage');
- const shimmer = document.getElementById('hero-shimmer');
- if (heroStage) {
- const checkLoaded = () => {
- const agentEl = heroStage.querySelector('agent-3d');
- if (!agentEl) return;
- const markLoaded = () => {
- agentEl.classList.add('loaded');
- if (shimmer) shimmer.classList.add('hidden');
- };
- agentEl.addEventListener('agent:ready', markLoaded, { once: true });
- if (agentEl._viewer) markLoaded();
- };
- const mo = new MutationObserver(() => { checkLoaded(); mo.disconnect(); });
- mo.observe(heroStage, { childList: true, subtree: true });
- checkLoaded();
- }
- }
-
- // ── 3D Stack section: mouse-tracked perspective + spotlight ─────
- {
- const scene = document.getElementById('stack-3d-scene');
- const wrap = document.getElementById('stack-3d');
- if (scene && wrap && window.matchMedia('(min-width: 601px)').matches
- && !window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
- let rx = 0, ry = 0, tx = 0, ty = 0;
- const lerp = (a, b, t) => a + (b - a) * t;
-
- wrap.addEventListener('mousemove', (e) => {
- const r = wrap.getBoundingClientRect();
- const nx = (e.clientX - r.left) / r.width;
- const ny = (e.clientY - r.top) / r.height;
- tx = (nx - 0.5) * 8;
- ty = -(ny - 0.5) * 5;
- });
- wrap.addEventListener('mouseleave', () => { tx = 0; ty = 0; });
-
- (function tick() {
- rx = lerp(rx, ty, 0.06);
- ry = lerp(ry, tx, 0.06);
- scene.style.transform =
- `rotateX(${rx.toFixed(2)}deg) rotateY(${ry.toFixed(2)}deg)`;
- requestAnimationFrame(tick);
- })();
-
- scene.addEventListener('mousemove', (e) => {
- const cards = scene.querySelectorAll('.stack-card');
- cards.forEach(card => {
- const cr = card.getBoundingClientRect();
- card.style.setProperty('--mx', (e.clientX - cr.left) + 'px');
- card.style.setProperty('--my', (e.clientY - cr.top) + 'px');
- });
- });
- }
-
- if (wrap) {
- setTimeout(() => wrap.classList.add('settled'), 800);
- }
- }
-
- // ── Live marketing stats ────────────────────────────────────────
- (async () => {
- try {
- const r = await fetch('/api/home-stats');
- const d = await r.json();
- const fmt = (n) => Number(n).toLocaleString('en-US');
-
- if (d.agents) {
- document.getElementById('sb-agents').textContent = fmt(d.agents);
- document.getElementById('sb-widgets').textContent = fmt(d.widgets);
- document.getElementById('sb-onchain').textContent = fmt(d.onchain_agents);
- }
- } catch (_) {}
- })();
-
- // ── Live feature agents ─────────────────────────────────────────
- (function initLiveFeatures() {
- var O = location.origin;
- var LIVE_SPOTS = [
- { id: 'door-create', anim: 'idle', loop: true, glb: null },
- { id: 'door-embed', anim: 'wave', loop: false, glb: O + '/avatars/cz.glb' },
- { id: 'door-earn', anim: 'dance', loop: true, glb: O + '/animations/soldier.glb' },
- { id: 'bento-studio', anim: 'idle', loop: true, glb: null },
- { id: 'bento-anim', anim: 'idle', loop: true, glb: null }
- ];
-
- function spawnMini(container, glb, opts) {
- var el = document.createElement('agent-3d');
- el.setAttribute('body', glb);
- el.setAttribute('mode', 'inline');
- el.setAttribute('responsive', '');
- el.setAttribute('background', 'transparent');
- el.setAttribute('name-plate', 'off');
- el.setAttribute('avatar-chat', 'off');
- el.setAttribute('kiosk', '');
- el.setAttribute('eager', '');
- container.appendChild(el);
- el.addEventListener('agent:ready', function() {
- if (el.playClipByName) el.playClipByName(opts.anim, { loop: opts.loop !== false, fade_ms: 400 });
- }, { once: true });
- return el;
- }
-
- fetch(location.origin + '/api/avatars/' + AVATAR_ID)
- .then(function(r) { return r.json(); })
- .then(function(d) {
- var apiGlb = devProxyGlb(d.avatar && (d.avatar.model_url || d.avatar.url));
- if (!apiGlb) return;
- var io = new IntersectionObserver(function(entries) {
- entries.forEach(function(entry) {
- if (!entry.isIntersecting) return;
- var spot = LIVE_SPOTS.find(function(s) { return s.id === entry.target.id; });
- if (!spot || entry.target.querySelector('agent-3d')) return;
- io.unobserve(entry.target);
- spawnMini(entry.target, spot.glb || apiGlb, spot);
- });
- }, { rootMargin: '300px' });
- LIVE_SPOTS.forEach(function(spot) {
- var el = document.getElementById(spot.id);
- if (el) io.observe(el);
- });
- }).catch(function() {});
-
- // Bento animation pills
- var animPills = document.getElementById('bento-anim-pills');
- if (animPills) {
- animPills.addEventListener('click', function(e) {
- var btn = e.target.closest('.bento-pill-btn');
- if (!btn) return;
- e.preventDefault(); e.stopPropagation();
- var clip = btn.dataset.anim;
- var agent = document.querySelector('#bento-anim agent-3d');
- if (agent && agent.playClipByName) agent.playClipByName(clip, { loop: clip === 'idle', fade_ms: 400 });
- animPills.querySelectorAll('.bento-pill-btn').forEach(function(p) { p.classList.remove('active'); });
- btn.classList.add('active');
- });
- }
-
- // Earn door ticker
- var earnVal = document.getElementById('door-earn-val');
- if (earnVal) {
- var started = false;
- var earnObs = new IntersectionObserver(function(entries) {
- if (entries[0].isIntersecting && !started) {
- started = true; earnObs.disconnect();
- var val = 0, target = 847.5;
- (function tick() {
- val += (target - val) * 0.025;
- if (val >= target - 0.01) val = target;
- earnVal.textContent = '$' + val.toFixed(2);
- if (val < target) requestAnimationFrame(tick);
- })();
- }
- });
- earnObs.observe(earnVal);
- }
- })();
-</script>
-<script src="/src/api-playground.js"></script>
-<script src="/src/editorial-pretext.js"></script>
-<script type="module">
-import * as THREE from 'three';
-import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
-
-const canvas = document.getElementById('pricing-canvas');
-const tiers = [...document.querySelectorAll('#pricing-stage .pricing-card')];
-
-if (canvas && tiers.length && window.matchMedia('(min-width: 861px)').matches) {
- const renderer = new THREE.WebGLRenderer({ canvas, antialias: true, alpha: true });
- renderer.setPixelRatio(Math.min(devicePixelRatio, 2));
- renderer.outputColorSpace = THREE.SRGBColorSpace;
- renderer.toneMapping = THREE.ACESFilmicToneMapping;
- renderer.toneMappingExposure = 1.1;
-
- const scene = new THREE.Scene();
- const PX_PER_UNIT = 120;
- const camera = new THREE.OrthographicCamera(-1, 1, 1, -1, 0.1, 100);
- camera.position.z = 10;
-
- function updateFrustum() {
- const r = canvas.getBoundingClientRect();
- if (!r.width || !r.height) return;
- const hw = r.width / PX_PER_UNIT / 2;
- const hh = r.height / PX_PER_UNIT / 2;
- camera.left = -hw; camera.right = hw;
- camera.top = hh; camera.bottom = -hh;
- camera.updateProjectionMatrix();
- }
-
- const _v3 = new THREE.Vector3();
- function domToWorld(sx, sy) {
- const r = canvas.getBoundingClientRect();
- _v3.set(
- ((sx - r.left) / r.width) * 2 - 1,
- -((sy - r.top) / r.height) * 2 + 1,
- 0
- );
- _v3.unproject(camera);
- return { x: _v3.x, y: _v3.y };
- }
-
- let avatar = null, mixer = null, rootBone = null, baseRootPos = null;
- let phase = 'loading';
- let activeTier = null;
-
- function resize() {
- const r = canvas.getBoundingClientRect();
- if (!r.width || !r.height) return;
- renderer.setSize(r.width, r.height, false);
- updateFrustum();
- if (avatar && activeTier && phase === 'idle') {
- const t = standOnTopOf(activeTier);
- avatar.position.set(t.x, t.y, 0);
- }
- }
- window.addEventListener('resize', resize);
-
- scene.add(new THREE.AmbientLight(0xffffff, 0.6));
- const keyLight = new THREE.DirectionalLight(0xfff4dc, 2.0);
- keyLight.position.set(3, 6, 5); scene.add(keyLight);
- const rimLight = new THREE.DirectionalLight(0x4060ff, 0.6);
- rimLight.position.set(-4, 3, -2); scene.add(rimLight);
- const fillLight = new THREE.DirectionalLight(0xffeedd, 0.4);
- fillLight.position.set(0, 2, 7); scene.add(fillLight);
-
- const actions = {};
- let currentAction = null;
- const FADE_S = 0.3;
-
- function setAnimation(name, opts = {}) {
- const next = actions[name];
- if (!next || next === currentAction) return;
- const loop = opts.loop !== false;
- next.reset();
- next.setLoop(loop ? THREE.LoopRepeat : THREE.LoopOnce, loop ? Infinity : 1);
- next.clampWhenFinished = !!opts.hold;
- if (currentAction) next.crossFadeFrom(currentAction, FADE_S, false).play();
- else next.fadeIn(FADE_S).play();
- currentAction = next;
- }
-
- function standOnTopOf(tierEl) {
- const r = tierEl.getBoundingClientRect();
- return domToWorld(r.left + r.width / 2, r.top);
- }
-
- let walkT = 0, walkStart = null, walkEnd = null, walkDur = 0.85, walkPeakRise = 0;
- let onArrival = null;
- const WALK_SPEED = 5;
- function smoothstep(t) { return t * t * (3 - 2 * t); }
-
- function beginMove(tierEl) {
- if (activeTier) activeTier.classList.remove('is-active');
- activeTier = tierEl;
- activeTier.classList.add('is-active');
- }
-
- function walkToTier(tierEl) {
- if (!avatar || tierEl === activeTier) return;
- beginMove(tierEl);
- phase = 'walking';
- walkT = 0;
- walkStart = { x: avatar.position.x, y: avatar.position.y };
- walkEnd = standOnTopOf(tierEl);
- const dx = Math.abs(walkEnd.x - walkStart.x);
- walkDur = Math.max(0.4, dx / WALK_SPEED);
- const minX = Math.min(walkStart.x, walkEnd.x);
- const maxX = Math.max(walkStart.x, walkEnd.x);
- const baseY = Math.max(walkStart.y, walkEnd.y);
- let peakY = baseY;
- for (const tt of tiers) {
- const tp = standOnTopOf(tt);
- if (tp.x > minX && tp.x < maxX && tp.y > peakY) peakY = tp.y;
- }
- walkPeakRise = peakY - baseY;
- setAnimation('walk', { loop: true });
- const dir = Math.sign(walkEnd.x - walkStart.x) || 0;
- avatar.rotation.y = dir * (Math.PI / 2);
- }
-
- const CTA_REACTION = { beta: 'wave', pro: 'av-celebrating', enterprise: 'av-brag-claps' };
- const CTA_REACTION_MAX_MS = 3500;
-
- function landOnTier() {
- phase = 'idle';
- const snap = standOnTopOf(activeTier);
- avatar.position.set(snap.x, snap.y, 0);
- setAnimation('idle', { loop: true });
- if (onArrival) {
- const cb = onArrival;
- onArrival = null;
- setTimeout(cb, 300);
- }
- }
-
- let hoverTimer = null, hoverPendingTier = null;
- function scheduleMove(tierEl) {
- if (!tierEl) { clearTimeout(hoverTimer); hoverPendingTier = null; return; }
- if (tierEl === activeTier) { clearTimeout(hoverTimer); hoverPendingTier = null; return; }
- if (tierEl === hoverPendingTier) return;
- clearTimeout(hoverTimer);
- hoverPendingTier = tierEl;
- hoverTimer = setTimeout(() => {
- hoverPendingTier = null;
- if (phase === 'walking') setTimeout(() => scheduleMove(tierEl), 200);
- else walkToTier(tierEl);
- }, 120);
- }
-
- function tierAtPoint(cx, cy) {
- for (const t of tiers) {
- const r = t.getBoundingClientRect();
- if (cx >= r.left && cx <= r.right && cy >= r.top && cy <= r.bottom) return t;
- }
- return null;
- }
-
- const grid = document.querySelector('#pricing-stage .pricing-grid');
- grid.addEventListener('mousemove', e => scheduleMove(tierAtPoint(e.clientX, e.clientY)));
- grid.addEventListener('mouseleave', () => scheduleMove(null));
-
- document.querySelectorAll('#pricing-stage [data-tier-cta]').forEach(cta => {
- cta.addEventListener('click', e => {
- if (!avatar) return;
- const tierEl = document.getElementById('tier-' + cta.dataset.tierCta);
- const reactionClip = CTA_REACTION[tierEl?.dataset.tier] || 'wave';
- const fireReaction = () => {
- setAnimation(reactionClip, { loop: false, hold: true });
- const clipDur = actions[reactionClip]?.getClip().duration ?? 2;
- const playMs = Math.min(clipDur * 1000, CTA_REACTION_MAX_MS);
- setTimeout(() => { if (phase === 'idle') setAnimation('idle', { loop: true }); }, playMs);
- };
- if (tierEl === activeTier && phase === 'idle') {
- e.preventDefault();
- fireReaction();
- } else if (tierEl !== activeTier) {
- e.preventDefault();
- onArrival = fireReaction;
- walkToTier(tierEl);
- }
- });
- });
-
- let mouseNx = 0, mouseNy = 0;
- window.addEventListener('mousemove', e => {
- mouseNx = (e.clientX / window.innerWidth) * 2 - 1;
- mouseNy = (e.clientY / window.innerHeight) * 2 - 1;
- });
-
- const ro = new ResizeObserver(() => {
- if (avatar && activeTier && phase === 'idle') {
- const t = standOnTopOf(activeTier);
- avatar.position.set(t.x, t.y, 0);
- }
- });
- tiers.forEach(t => ro.observe(t));
-
- const CLIPS = ['idle', 'walk', 'wave', 'av-celebrating', 'av-brag-claps'];
- let loaded = false;
-
- const io = new IntersectionObserver(entries => {
- if (!entries[0].isIntersecting || loaded) return;
- loaded = true;
- io.disconnect();
- resize();
-
- new GLTFLoader().load('/avatars/cz.glb', gltf => {
- avatar = gltf.scene;
- avatar.traverse(n => {
- if (!rootBone && /^(Hips|Root|mixamorig:?Hips)$/i.test(n.name)) rootBone = n;
- });
- scene.add(avatar);
- mixer = new THREE.AnimationMixer(avatar);
-
- Promise.all(CLIPS.map(name =>
- fetch('/animations/clips/' + name + '.json').then(r => r.json())
- )).then(jsons => {
- CLIPS.forEach((name, i) => {
- actions[name] = mixer.clipAction(THREE.AnimationClip.parse(jsons[i]));
- });
- if (rootBone) baseRootPos = rootBone.position.clone();
- const _render = renderer.render.bind(renderer);
- renderer.render = (sc, cam) => {
- try { if (rootBone && baseRootPos) rootBone.position.copy(baseRootPos); } catch (_) {}
- _render(sc, cam);
- };
-
- const pro = document.getElementById('tier-pro');
- activeTier = pro;
- pro.classList.add('is-active');
- const start = standOnTopOf(pro);
- avatar.position.set(start.x, start.y, 0);
- setAnimation('idle', { loop: true });
- phase = 'idle';
- });
- });
- }, { threshold: 0, rootMargin: '400px' });
- io.observe(document.getElementById('pricing-stage'));
-
- const clock = new THREE.Clock();
- (function tick() {
- requestAnimationFrame(tick);
- try {
- const dt = Math.min(clock.getDelta(), 0.05);
- mixer?.update(dt);
-
- if (phase === 'walking' && avatar && walkStart && walkEnd) {
- walkT += dt;
- const p = Math.min(walkT / walkDur, 1);
- const e = smoothstep(p);
- const x = walkStart.x + (walkEnd.x - walkStart.x) * e;
- const arc = walkPeakRise * 4 * p * (1 - p);
- const y = walkStart.y + (walkEnd.y - walkStart.y) * e + arc;
- avatar.position.set(x, y, 0);
- if (p >= 1) landOnTier();
- }
-
- if (phase === 'idle' && avatar) {
- avatar.rotation.y *= 0.9;
- }
-
- const targetCamX = mouseNx * 0.08;
- const targetCamY = -mouseNy * 0.05;
- camera.position.x += (targetCamX - camera.position.x) * 0.04;
- camera.position.y += (targetCamY - camera.position.y) * 0.04;
-
- renderer.render(scene, camera);
- } catch (_) {}
- })();
-}
-</script>
-
-<script>
-// ── Interactive Bento Features ─────────────────────────────────────
-(function initBentoInteractives() {
-
- // ── 1. Avatar Studio: webcam + drag-drop ────────────────────────
- (function() {
- var drop = document.getElementById('studio-drop');
- var fileInput = document.getElementById('studio-file');
- var webcamBtn = document.getElementById('studio-webcam-btn');
- var zone = document.getElementById('studio-zone');
- var processing = document.getElementById('studio-processing');
- var previewImg = document.getElementById('studio-preview-img');
- var processingText = document.getElementById('studio-processing-text');
- var done = document.getElementById('studio-done');
- if (!drop) return;
-
- function runPipeline(imgUrl) {
- zone.style.display = 'none';
- previewImg.src = imgUrl;
- previewImg.classList.add('show');
- processing.classList.add('active');
- var steps = ['Detecting face...', 'Generating 3D mesh...', 'Auto-rigging skeleton...', 'Retargeting animations...'];
- var i = 0;
- var iv = setInterval(function() {
- i++;
- if (i < steps.length) {
- processingText.textContent = steps[i];
- } else {
- clearInterval(iv);
- processing.classList.remove('active');
- done.classList.add('show');
- }
- }, 700);
- }
-
- drop.addEventListener('click', function() { fileInput.click(); });
- fileInput.addEventListener('change', function() {
- if (fileInput.files && fileInput.files[0]) {
- var url = URL.createObjectURL(fileInput.files[0]);
- runPipeline(url);
- }
- });
- drop.addEventListener('dragover', function(e) { e.preventDefault(); drop.classList.add('drag-over'); });
- drop.addEventListener('dragleave', function() { drop.classList.remove('drag-over'); });
- drop.addEventListener('drop', function(e) {
- e.preventDefault(); drop.classList.remove('drag-over');
- if (e.dataTransfer.files && e.dataTransfer.files[0]) {
- var url = URL.createObjectURL(e.dataTransfer.files[0]);
- runPipeline(url);
- }
- });
- webcamBtn.addEventListener('click', function() {
- navigator.mediaDevices.getUserMedia({ video: { facingMode: 'user', width: 256, height: 256 } })
- .then(function(stream) {
- var video = document.createElement('video');
- video.srcObject = stream;
- video.play();
- setTimeout(function() {
- var canvas = document.createElement('canvas');
- canvas.width = 256; canvas.height = 256;
- canvas.getContext('2d').drawImage(video, 0, 0, 256, 256);
- stream.getTracks().forEach(function(t) { t.stop(); });
- runPipeline(canvas.toDataURL('image/jpeg'));
- }, 500);
- }).catch(function() {
- runPipeline('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64"><rect width="64" height="64" fill="%23222"/><text x="32" y="36" text-anchor="middle" fill="%23666" font-size="12">cam</text></svg>');
- });
- });
- })();
-
- // ── 2. Voice + Mocap: microphone waveform ───────────────────────
- (function() {
- var btn = document.getElementById('mocap-mic-btn');
- var canvas = document.getElementById('mocap-waveform');
- var status = document.getElementById('mocap-status');
- if (!btn || !canvas) return;
- var ctx = canvas.getContext('2d');
- var audioCtx = null, analyser = null, stream = null, animId = null;
- var active = false;
-
- function draw() {
- if (!active) return;
- animId = requestAnimationFrame(draw);
- var w = canvas.width, h = canvas.height;
- var data = new Uint8Array(analyser.frequencyBinCount);
- analyser.getByteTimeDomainData(data);
- ctx.clearRect(0, 0, w, h);
- ctx.strokeStyle = 'rgba(168,168,168,0.6)';
- ctx.lineWidth = 1.5;
- ctx.beginPath();
- var sliceW = w / data.length;
- for (var i = 0; i < data.length; i++) {
- var v = data[i] / 128.0;
- var y = v * h / 2;
- if (i === 0) ctx.moveTo(0, y);
- else ctx.lineTo(i * sliceW, y);
- }
- ctx.stroke();
- }
-
- function resizeCanvas() {
- canvas.width = canvas.clientWidth * (window.devicePixelRatio || 1);
- canvas.height = canvas.clientHeight * (window.devicePixelRatio || 1);
- }
-
- btn.addEventListener('click', function() {
- if (active) {
- active = false;
- cancelAnimationFrame(animId);
- if (stream) stream.getTracks().forEach(function(t) { t.stop(); });
- if (audioCtx) audioCtx.close();
- stream = null; audioCtx = null; analyser = null;
- btn.textContent = 'Microphone';
- status.textContent = 'click to capture';
- status.classList.remove('live');
- ctx.clearRect(0, 0, canvas.width, canvas.height);
- return;
- }
- navigator.mediaDevices.getUserMedia({ audio: true }).then(function(s) {
- stream = s;
- audioCtx = new (window.AudioContext || window.webkitAudioContext)();
- analyser = audioCtx.createAnalyser();
- analyser.fftSize = 256;
- audioCtx.createMediaStreamSource(stream).connect(analyser);
- active = true;
- resizeCanvas();
- btn.textContent = 'Stop';
- status.textContent = 'live — speak now';
- status.classList.add('live');
- draw();
- }).catch(function() {
- status.textContent = 'mic access denied';
- });
- });
-
- new ResizeObserver(function() { if (active) resizeCanvas(); }).observe(canvas);
- })();
-
- // ── 3. Walk & Multiplayer: mini map ─────────────────────────────
- (function() {
- var canvas = document.getElementById('walk-minimap');
- if (!canvas) return;
- var ctx = canvas.getContext('2d');
- var dpr = window.devicePixelRatio || 1;
- var W, H;
-
- function resize() {
- W = canvas.clientWidth; H = canvas.clientHeight;
- canvas.width = W * dpr; canvas.height = H * dpr;
- ctx.scale(dpr, dpr);
- }
- resize();
- new ResizeObserver(resize).observe(canvas);
-
- var player = { x: 0.5, y: 0.5, color: '#fff' };
- var bots = [
- { x: 0.2, y: 0.3, vx: 0.0008, vy: 0.0006, color: '#4ade80' },
- { x: 0.8, y: 0.6, vx: -0.0006, vy: 0.0009, color: '#60a5fa' },
- { x: 0.5, y: 0.8, vx: 0.0007, vy: -0.0005, color: '#fbbf24' },
- ];
-
- var keys = {};
- canvas.addEventListener('keydown', function(e) { keys[e.key.toLowerCase()] = true; e.preventDefault(); });
- canvas.addEventListener('keyup', function(e) { keys[e.key.toLowerCase()] = false; });
- canvas.addEventListener('click', function(e) {
- var r = canvas.getBoundingClientRect();
- player.x = (e.clientX - r.left) / r.width;
- player.y = (e.clientY - r.top) / r.height;
- canvas.focus();
- });
-
- function tick() {
- requestAnimationFrame(tick);
- var speed = 0.006;
- if (keys['w'] || keys['arrowup']) player.y -= speed;
- if (keys['s'] || keys['arrowdown']) player.y += speed;
- if (keys['a'] || keys['arrowleft']) player.x -= speed;
- if (keys['d'] || keys['arrowright']) player.x += speed;
- player.x = Math.max(0.02, Math.min(0.98, player.x));
- player.y = Math.max(0.02, Math.min(0.98, player.y));
-
- bots.forEach(function(b) {
- b.x += b.vx; b.y += b.vy;
- if (b.x < 0.05 || b.x > 0.95) b.vx *= -1;
- if (b.y < 0.05 || b.y > 0.95) b.vy *= -1;
- b.vx += (Math.random() - 0.5) * 0.0002;
- b.vy += (Math.random() - 0.5) * 0.0002;
- });
-
- ctx.clearRect(0, 0, W, H);
- ctx.fillStyle = '#0a0d12';
- ctx.fillRect(0, 0, W, H);
- // Grid
- ctx.strokeStyle = 'rgba(255,255,255,0.04)';
- ctx.lineWidth = 0.5;
- for (var gx = 0; gx < W; gx += 30) { ctx.beginPath(); ctx.moveTo(gx, 0); ctx.lineTo(gx, H); ctx.stroke(); }
- for (var gy = 0; gy < H; gy += 30) { ctx.beginPath(); ctx.moveTo(0, gy); ctx.lineTo(W, gy); ctx.stroke(); }
-
- // Bots
- bots.forEach(function(b) {
- ctx.beginPath();
- ctx.arc(b.x * W, b.y * H, 4, 0, Math.PI * 2);
- ctx.fillStyle = b.color;
- ctx.fill();
- ctx.fillStyle = 'rgba(255,255,255,0.2)';
- ctx.font = '7px monospace';
- ctx.fillText('visitor', b.x * W + 7, b.y * H + 3);
- });
-
- // Player
- ctx.beginPath();
- ctx.arc(player.x * W, player.y * H, 5, 0, Math.PI * 2);
- ctx.fillStyle = player.color;
- ctx.fill();
- ctx.shadowColor = '#fff'; ctx.shadowBlur = 8;
- ctx.fill();
- ctx.shadowBlur = 0;
- ctx.fillStyle = 'rgba(255,255,255,0.5)';
- ctx.font = '8px monospace';
- ctx.fillText('you', player.x * W + 8, player.y * H + 3);
- }
- tick();
- })();
-
- // ── 4. x402 Payments: interactive flow ──────────────────────────
- (function() {
- var payBtn = document.getElementById('x402-pay-btn');
- var code = document.getElementById('x402-code');
- var spinner = document.getElementById('x402-spinner');
- var amount = document.getElementById('x402-amount');
- if (!payBtn) return;
-
- payBtn.addEventListener('click', function() {
- payBtn.style.display = 'none';
- spinner.style.display = 'block';
- code.textContent = 'Processing USDC payment...';
- code.className = 'x402-code';
-
- setTimeout(function() {
- spinner.style.display = 'none';
- code.textContent = 'HTTP 200 — OK';
- code.className = 'x402-code ok';
- amount.classList.add('show');
-
- setTimeout(function() {
- code.textContent = 'HTTP 402 — Payment Required';
- code.className = 'x402-code err';
- amount.classList.remove('show');
- payBtn.style.display = '';
- }, 3000);
- }, 1200);
- });
- })();
-
- // ── 5. On-chain Identity: mint animation ────────────────────────
- (function() {
- var mintBtn = document.getElementById('mint-btn');
- var card = document.getElementById('mint-card');
- var progress = document.getElementById('mint-progress');
- var label = document.getElementById('mint-label');
- if (!mintBtn) return;
-
- mintBtn.addEventListener('click', function() {
- mintBtn.style.display = 'none';
- progress.classList.add('active');
-
- setTimeout(function() {
- progress.classList.add('done');
- }, 100);
-
- setTimeout(function() {
- card.classList.add('minted');
- label.textContent = 'MINTED';
-
- setTimeout(function() {
- card.classList.remove('minted');
- label.textContent = 'ERC-8004';
- progress.classList.remove('active', 'done');
- progress.querySelector('circle').style.strokeDashoffset = '78.5';
- void progress.querySelector('circle').offsetWidth;
- mintBtn.style.display = '';
- }, 3000);
- }, 1400);
- });
- })();
-
- // ── 6. Skills: tool call demo ───────────────────────────────────
- (function() {
- var tools = document.getElementById('skill-tools');
- var result = document.getElementById('skill-result');
- if (!tools || !result) return;
-
- var responses = {
- jupiter: { tool: 'jupiter_swap', input: { from: 'USDC', to: 'SOL', amount: '10.00' }, output: { received: '0.0847 SOL', rate: '118.07', slippage: '0.12%' } },
- pump: { tool: 'pump_launch', input: { name: 'NICH', ticker: '$NICH' }, output: { status: 'launched', ca: '7xKX...m3Qp', mcap: '$4,200', holders: 12 } },
- rpc: { tool: 'solana_rpc', method: 'getBalance', params: ['7xKXp...m3Qp'], result: { value: 2410000000, lamports: true, sol: '2.41' } },
- a2a: { protocol: 'a2a', target: 'claude.agent', action: 'ask', input: 'What is ERC-8004?', response: 'ERC-8004 is the on-chain standard for AI agent identity...' }
- };
-
- function colorJson(obj, indent) {
- indent = indent || 0;
- var pad = ' '.repeat(indent);
- if (typeof obj === 'string') return '<span class="json-str">"' + obj + '"</span>';
- if (typeof obj === 'number') return '<span class="json-num">' + obj + '</span>';
- if (typeof obj === 'boolean') return '<span class="json-num">' + obj + '</span>';
- if (Array.isArray(obj)) {
- if (obj.length === 0) return '[]';
- var items = obj.map(function(v) { return pad + ' ' + colorJson(v, indent + 1); });
- return '[\n' + items.join(',\n') + '\n' + pad + ']';
- }
- var keys = Object.keys(obj);
- if (keys.length === 0) return '{}';
- var lines = keys.map(function(k) {
- return pad + ' <span class="json-key">"' + k + '"</span>: ' + colorJson(obj[k], indent + 1);
- });
- return '{\n' + lines.join(',\n') + '\n' + pad + '}';
- }
-
- function showTool(name) {
- var data = responses[name];
- if (!data) return;
- result.innerHTML = colorJson(data, 0);
- result.classList.add('fresh');
- setTimeout(function() { result.classList.remove('fresh'); }, 600);
- }
-
- tools.addEventListener('click', function(e) {
- var btn = e.target.closest('.bento-pill-btn');
- if (!btn) return;
- tools.querySelectorAll('.bento-pill-btn').forEach(function(b) { b.classList.remove('active'); });
- btn.classList.add('active');
- showTool(btn.dataset.tool);
- });
-
- showTool('jupiter');
- })();
-
- // ── 7. Memory: store/recall demo ────────────────────────────────
- (function() {
- var input = document.getElementById('memory-input');
- var storeBtn = document.getElementById('memory-store-btn');
- var recallBtn = document.getElementById('memory-recall-btn');
- var log = document.getElementById('memory-log');
- if (!input || !storeBtn) return;
-
- var memories = [];
-
- function addEntry(op, val) {
- var el = document.createElement('div');
- el.className = 'memory-entry';
- el.innerHTML = '<span class="mem-op">' + op + '</span><span class="mem-val">' + val + '</span>';
- log.appendChild(el);
- log.scrollTop = log.scrollHeight;
- }
-
- storeBtn.addEventListener('click', function() {
- var val = input.value.trim();
- if (!val) return;
- memories.push(val);
- addEntry('STORE →', val);
- input.value = '';
- });
-
- recallBtn.addEventListener('click', function() {
- if (memories.length === 0) {
- addEntry('RECALL →', '(empty — store something first)');
- return;
- }
- memories.forEach(function(m, i) {
- setTimeout(function() {
- addEntry('MEM[' + i + ']', m);
- }, i * 150);
- });
- });
-
- input.addEventListener('keydown', function(e) {
- if (e.key === 'Enter') storeBtn.click();
- });
- })();
-
- // ── 8. AR / WebXR: launcher demo ────────────────────────────────
- (function() {
- var btn = document.getElementById('ar-launch-btn');
- var phone = document.getElementById('ar-phone');
- var status = document.getElementById('ar-status');
- if (!btn) return;
- var active = false;
-
- btn.addEventListener('click', function() {
- if (active) {
- active = false;
- phone.classList.remove('active');
- status.textContent = 'tap to place agent';
- status.classList.remove('ready');
- btn.textContent = 'Launch AR';
- return;
- }
- active = true;
- phone.classList.add('active');
- status.textContent = 'scanning surface...';
- btn.textContent = 'Stop';
-
- setTimeout(function() {
- if (!active) return;
- status.textContent = 'agent placed in AR';
- status.classList.add('ready');
- }, 1500);
- });
- })();
-
- // ── 9. Marketplace: live agent browser ──────────────────────────
- (function() {
- var strip = document.getElementById('mktplace-strip');
- if (!strip) return;
- var THUMB_CDN = 'https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/thumb';
-
- fetch('/api/marketplace')
- .then(function(r) { return r.json(); })
- .then(function(data) {
- var items = (data.agents || data.items || data || []).slice(0, 10);
- items.forEach(function(item) {
- var id = item.avatar_id || item.avatarId || item.id;
- var name = item.name || item.agent_name || id.slice(0, 6);
- var thumb = item.thumbnail || (THUMB_CDN + '/' + id + '.png');
- var a = document.createElement('a');
- a.className = 'mktplace-item';
- a.href = '/agent-next?id=' + id;
- a.title = name;
- var img = document.createElement('img');
- img.src = thumb;
- img.alt = name;
- img.loading = 'lazy';
- img.onerror = function() { this.style.display = 'none'; };
- a.appendChild(img);
- var lbl = document.createElement('span');
- lbl.className = 'mktplace-item-name';
- lbl.textContent = name;
- a.appendChild(lbl);
- strip.appendChild(a);
- });
- var more = document.createElement('a');
- more.className = 'mktplace-more';
- more.href = '/discover';
- more.textContent = '→';
- more.title = 'Browse all agents';
- strip.appendChild(more);
- }).catch(function() {
- strip.innerHTML = '<a class="mktplace-more" href="/discover" style="width:auto;padding:0 16px;">Browse marketplace →</a>';
- });
- })();
-
- // ── 10. Analytics: sparkline + animated counters ─────────────────
- (function() {
- var demo = document.getElementById('analytics-demo');
- if (!demo) return;
- var convosEl = document.getElementById('an-convos');
- var revenueEl = document.getElementById('an-revenue');
- var retentionEl = document.getElementById('an-retention');
- var sparkSvg = document.getElementById('analytics-spark');
-
- var dataPoints = [5, 12, 8, 22, 18, 30, 25, 40, 35, 48, 42, 55, 50, 62, 58, 70, 65, 78, 72, 85];
- var maxVal = Math.max.apply(null, dataPoints);
- var svgW = 200, svgH = 40, pad = 2;
-
- function buildPath() {
- var pts = dataPoints.map(function(v, i) {
- return {
- x: pad + (i / (dataPoints.length - 1)) * (svgW - pad * 2),
- y: svgH - pad - (v / maxVal) * (svgH - pad * 2)
- };
- });
- var d = pts.map(function(p, i) { return (i === 0 ? 'M' : 'L') + p.x.toFixed(1) + ' ' + p.y.toFixed(1); }).join(' ');
- var fillD = d + ' L' + pts[pts.length - 1].x.toFixed(1) + ' ' + svgH + ' L' + pts[0].x.toFixed(1) + ' ' + svgH + ' Z';
- var last = pts[pts.length - 1];
-
- sparkSvg.innerHTML = sparkSvg.querySelector('defs').outerHTML
- + '<path class="spark-fill" d="' + fillD + '"/>'
- + '<path d="' + d + '"/>'
- + '<circle class="spark-dot" cx="' + last.x.toFixed(1) + '" cy="' + last.y.toFixed(1) + '" r="2.5"/>';
- }
-
- var animated = false;
- function animateCounters() {
- if (animated) return;
- animated = true;
- var targets = { convos: 1247, revenue: 847.5, retention: 68 };
- var start = performance.now();
- var dur = 1200;
- (function tick(now) {
- var p = Math.min((now - start) / dur, 1);
- var e = 1 - Math.pow(1 - p, 3);
- convosEl.textContent = Math.round(targets.convos * e).toLocaleString();
- revenueEl.textContent = '$' + (targets.revenue * e).toFixed(0);
- retentionEl.textContent = Math.round(targets.retention * e) + '%';
- if (p < 1) requestAnimationFrame(tick);
- })(start);
-
- // Live tick
- setInterval(function() {
- var newPt = dataPoints[dataPoints.length - 1] + Math.round((Math.random() - 0.3) * 8);
- dataPoints.push(Math.max(5, newPt));
- if (dataPoints.length > 30) dataPoints.shift();
- maxVal = Math.max.apply(null, dataPoints);
- buildPath();
- }, 2000);
- }
-
- buildPath();
-
- var io = new IntersectionObserver(function(entries) {
- if (entries[0].isIntersecting) { animateCounters(); io.disconnect(); }
- }, { threshold: 0.3 });
- io.observe(demo);
- })();
-
-})();
-</script>
-</body>
-</html>
diff --git a/pages/home.html b/pages/home.html
index cd316b519..346431de2 100644
--- a/pages/home.html
+++ b/pages/home.html
@@ -1,1573 +1,5112 @@
<!doctype html>
<html lang="en">
- <head>
- <meta charset="utf-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <title>three.ws — Where AI Agents Come Alive</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
- <meta name="author" content="nirholas" />
- <meta
- name="description"
- content="Give any AI agent a 3D body, a voice, and an on-chain identity. One GLB, any LLM, owned on Solana. Earn USDC with every interaction."
- />
- <meta name="theme-color" content="#000000" />
- <meta name="mobile-web-app-capable" content="yes" />
- <meta name="apple-mobile-web-app-capable" content="yes" />
- <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
- <meta name="apple-mobile-web-app-title" content="three.ws" />
-
- <meta property="og:type" content="website" />
- <meta property="og:site_name" content="three.ws" />
- <meta property="og:title" content="three.ws — Where AI Agents Come Alive" />
- <meta
- property="og:description"
- content="Give any AI agent a 3D body, a voice, and an on-chain identity. One GLB, any LLM, owned on Solana. Earn USDC with every interaction."
- />
- <meta property="og:url" content="https://three.ws/" />
- <meta property="og:image" content="https://three.ws/og-image.png" />
- <meta property="og:image:width" content="1200" />
- <meta property="og:image:height" content="630" />
-
- <meta name="twitter:card" content="summary_large_image" />
- <meta name="twitter:title" content="three.ws — Where AI Agents Come Alive" />
- <meta
- name="twitter:description"
- content="Give any AI agent a 3D body, a voice, and an on-chain identity. One GLB, any LLM, owned on Solana. Earn USDC with every interaction."
- />
- <meta name="twitter:image" content="https://three.ws/og-image.png" />
-
- <link rel="canonical" href="https://three.ws/" />
- <script>
- // Forward legacy /#model=… (and /#agent=, /#onchain=, /#widget=) viewer links to /app,
- // which is where the Three.js viewer actually mounts. home.html is the marketing page
- // and ignores these hashes, so without this redirect the user lands on home with no model.
- (function () {
- var h = location.hash || '';
- if (/^#(?:model|agent|onchain|widget|kiosk|preset|brain|deploy|type)=/.test(h)) {
- location.replace('/app' + h);
- }
- })();
- </script>
- <link rel="shortcut icon" href="/favicon.ico" />
- <link rel="apple-touch-icon" href="/pwa-192x192.png" />
- <link rel="stylesheet" href="/style.css" />
- <link rel="stylesheet" href="/nav.css" />
- <link rel="stylesheet" href="/home.css" />
- <link rel="stylesheet" href="/fonts/fonts.css" />
- <!-- mobile.css must load last so its rules win on equal specificity -->
- <link rel="stylesheet" href="/mobile.css" />
- <!-- home-polish and footer styles are non-critical (below-fold / decorative);
- load them after first paint to avoid blocking LCP. -->
- <link rel="stylesheet" href="/home-polish.css" media="print" onload="this.media='all'" />
- <link rel="stylesheet" href="/footer.css" media="print" onload="this.media='all'" />
- <script defer src="/footer-newsletter.js"></script>
- <script defer src="/home-polish.js"></script>
- <script
- type="module"
- src="https://ajax.googleapis.com/ajax/libs/model-viewer/4.0.0/model-viewer.min.js"
- ></script>
- <script src="/fluid-particles.js" defer></script>
- <script type="module" src="/src/home-act2-viewer.js"></script>
-
- <script type="application/ld+json">
- {
- "@context": "https://schema.org",
- "@graph": [
- {
- "@type": "WebSite",
- "@id": "https://three.ws/#website",
- "url": "https://three.ws/",
- "name": "three.ws",
- "description": "Where AI agents come alive. Give any AI agent a 3D body, a voice, and an on-chain identity.",
- "publisher": { "@id": "https://three.ws/#org" },
- "potentialAction": {
- "@type": "SearchAction",
- "target": "https://three.ws/discover?q={search_term_string}",
- "query-input": "required name=search_term_string"
- }
- },
- {
- "@type": "Organization",
- "@id": "https://three.ws/#org",
- "name": "three.ws",
- "url": "https://three.ws/",
- "logo": "https://three.ws/icon.png",
- "sameAs": [
- "https://github.com/nirholas/three.ws",
- "https://x.com/three_ws"
- ]
- },
- {
- "@type": "SoftwareApplication",
- "name": "three.ws",
- "applicationCategory": "DeveloperApplication",
- "applicationSubCategory": "EmbodiedAgentPlatform",
- "operatingSystem": "Web",
- "browserRequirements": "Requires WebGL2",
- "offers": {
- "@type": "Offer",
- "price": "0",
- "priceCurrency": "USD"
- }
- }
- ]
+<head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width,initial-scale=1" />
+ <title>three.ws — The 3D Agent Layer of the Internet</title>
+ <meta name="description" content="Create a 3D AI agent from a selfie in 60 seconds. Embed it anywhere with two lines of HTML. Charge per chat with x402. The 3D agent layer of the internet." />
+ <meta property="og:title" content="three.ws — The 3D Agent Layer of the Internet" />
+ <meta property="og:description" content="Create, embed, and monetize living 3D AI agents. One tag. Any site. Voice, memory, payments, and on-chain identity included." />
+ <meta property="og:image" content="/og-image.png" />
+ <meta name="twitter:card" content="summary_large_image" />
+ <link rel="icon" href="/favicon.ico" />
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=Inter:wght@400;450;500;550;600&family=JetBrains+Mono:wght@400;500;700&display=swap" />
+ <style>
+ :root {
+ color-scheme: dark;
+ --bg: #050505;
+ --surface-0: #0b0b0b;
+ --surface-1: #111111;
+ --surface-2: #181818;
+ --surface-3: #1e1e1e;
+ --hairline: #1c1c1c;
+ --hairline-strong: #2a2a2a;
+ --text: #f6f6f6;
+ --text-2: #a8a8a8;
+ --text-3: #6a6a6a;
+ --text-4: #4a4a4a;
+ --accent: #ffffff;
+ --accent-2: #ffffff;
+ --green: #e8e8e8;
+ --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
+ --font-body: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
+ --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
+ }
+ * { box-sizing: border-box; }
+ html { scroll-behavior: smooth; }
+ html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); }
+ body {
+ font-size: 15.5px; line-height: 1.55;
+ min-height: 100vh; overflow-x: hidden;
+ -webkit-font-smoothing: antialiased;
+ text-rendering: optimizeLegibility;
+ }
+ a { color: inherit; text-decoration: none; }
+ button { font-family: inherit; cursor: pointer; }
+ ::selection { background: var(--text); color: var(--bg); }
+ .wrap-1280 { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
+ .wrap-1440 { max-width: 1440px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
+ @media (max-width: 720px) { .wrap-1280, .wrap-1440 { padding-left: 20px; padding-right: 20px; } }
+
+ /* ── NAV ─────────────────────────────────────────────────── */
+ .nav {
+ position: sticky; top: 0; z-index: 100;
+ border-bottom: 1px solid var(--hairline);
+ background: rgba(5,5,5,0.82);
+ backdrop-filter: blur(20px) saturate(140%);
+ }
+ .nav-inner {
+ display: flex; align-items: center; gap: 32px;
+ padding: 16px 32px; max-width: 1440px; margin: 0 auto;
+ }
+ .brand {
+ display: flex; align-items: center; gap: 10px;
+ font-family: var(--font-display);
+ font-weight: 600; letter-spacing: -0.025em; font-size: 16.5px;
+ flex-shrink: 0;
+ }
+ .brand-mark {
+ width: 18px; height: 18px;
+ border: 1px solid var(--text); border-radius: 3px;
+ position: relative;
+ }
+ .brand-mark::after {
+ content: ""; position: absolute; inset: 4px;
+ background: var(--text);
+ }
+ .nav-main { display: flex; gap: 2px; margin-left: 12px; flex: 1; }
+ .nav-main a {
+ padding: 7px 12px; font-size: 14px; font-weight: 450;
+ color: var(--text-2); transition: color 0.12s;
+ }
+ .nav-main a:hover { color: var(--text); }
+ .nav-end { display: flex; align-items: center; gap: 4px; }
+ .nav-end a { padding: 7px 12px; font-size: 14px; font-weight: 450; color: var(--text-2); }
+ .nav-end a:hover { color: var(--text); }
+ .nav-end .console {
+ color: var(--text); font-weight: 500;
+ border: 1px solid var(--hairline-strong);
+ padding: 7px 16px; border-radius: 7px; margin-left: 6px;
+ transition: border-color 0.15s, background 0.15s;
+ }
+ .nav-end .console:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }
+ @media (max-width: 880px) {
+ .nav-main { display: none; }
+ .nav-inner { padding: 14px 20px; gap: 16px; }
+ }
+
+ /* ── BUTTONS ─────────────────────────────────────────────── */
+ .btn {
+ display: inline-flex; align-items: center; gap: 10px;
+ padding: 13px 22px; border-radius: 8px;
+ font-size: 14.5px; font-weight: 500;
+ border: 1px solid var(--hairline-strong);
+ background: transparent; color: var(--text);
+ transition: border-color 0.15s, background 0.15s;
+ cursor: pointer; text-decoration: none; font-family: inherit;
+ }
+ .btn:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }
+ .btn.primary {
+ background: var(--text); color: var(--bg);
+ border-color: var(--text); font-weight: 550;
+ }
+ .btn.primary:hover { background: #fff; }
+ .btn .arrow { transition: transform 0.18s; }
+ .btn:hover .arrow { transform: translateX(3px); }
+ .btn.sm { padding: 9px 16px; font-size: 13.5px; }
+ .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
+
+ /* ── HERO ────────────────────────────────────────────────── */
+ .hero {
+ display: grid; grid-template-columns: 1.05fr 1fr;
+ gap: 0; min-height: calc(100vh - 57px); position: relative;
+ }
+ .hero::after {
+ content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
+ width: 1px; background: var(--hairline);
+ }
+ @media (max-width: 980px) { .hero { grid-template-columns: 1fr; min-height: 0; } .hero::after { display: none; } }
+ .hero-text {
+ padding: 96px 48px 96px 72px;
+ display: flex; flex-direction: column; justify-content: center;
+ }
+ @media (max-width: 980px) { .hero-text { padding: 64px 20px 32px; } }
+ .eyebrow {
+ display: inline-flex; align-items: center; gap: 10px;
+ font-family: var(--font-mono); font-size: 11.5px;
+ text-transform: uppercase; letter-spacing: 0.18em;
+ color: var(--text-3); margin-bottom: 32px;
+ }
+ .eyebrow::before {
+ content: ""; width: 6px; height: 6px; border-radius: 50%;
+ background: var(--green); box-shadow: 0 0 6px var(--green);
+ animation: pulse-green 2.4s ease-in-out infinite;
+ }
+ @keyframes pulse-green { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
+ h1.hero-h {
+ font-family: var(--font-display);
+ font-size: clamp(52px, 6.8vw, 108px);
+ line-height: 0.92; letter-spacing: -0.045em;
+ font-weight: 600; margin: 0 0 32px; color: var(--text);
+ }
+ h1.hero-h em { font-style: normal; color: var(--text-3); font-weight: 500; }
+ .hero-sub {
+ font-size: 18px; color: var(--text-2);
+ max-width: 500px; margin: 0 0 36px; line-height: 1.55; font-weight: 400;
+ }
+ .hero-bullets {
+ list-style: none; padding: 0; margin: 0 0 40px;
+ display: flex; flex-direction: column; gap: 10px;
+ }
+ .hero-bullets li {
+ display: flex; align-items: center; gap: 12px;
+ font-size: 15px; color: var(--text-2);
+ }
+ .hero-bullets li::before {
+ content: ""; width: 5px; height: 5px; border-radius: 50%;
+ background: var(--text-3); flex-shrink: 0;
+ }
+ .hero-bullets li strong { color: var(--text); font-weight: 550; }
+ .hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 52px; }
+
+ .metrics {
+ display: flex; gap: 28px; flex-wrap: wrap;
+ padding-top: 28px; border-top: 1px solid var(--hairline);
+ font-family: var(--font-mono); font-size: 12px;
+ color: var(--text-3); text-transform: uppercase; letter-spacing: 0.12em;
+ }
+ .metric { display: flex; align-items: baseline; gap: 7px; }
+ .metric strong {
+ font-family: var(--font-display); color: var(--text); font-weight: 600;
+ font-size: 17px; letter-spacing: -0.02em; text-transform: none;
+ font-variant-numeric: tabular-nums;
+ }
+
+ /* ── Hero stage ──────────────────────────────────────────── */
+ .hero-stage { position: relative; overflow: hidden; background: var(--bg); container-type: inline-size; }
+ .hero-stage agent-3d {
+ position: absolute; inset: 0; display: block; width: 100%; height: 100%;
+ }
+ .stage-marker {
+ position: absolute; top: 24px; left: 24px; z-index: 5;
+ display: flex; align-items: center; gap: 10px;
+ font-family: var(--font-mono); font-size: 10.5px;
+ letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3);
+ }
+ .stage-marker::before {
+ content: ""; width: 6px; height: 6px; border-radius: 50%;
+ background: var(--green); box-shadow: 0 0 6px var(--green);
+ animation: pulse-green 2.4s ease-in-out infinite;
+ }
+ .stage-meta {
+ position: absolute; bottom: 24px; right: 28px; z-index: 5;
+ text-align: right; font-family: var(--font-mono); font-size: 10.5px;
+ letter-spacing: 0.14em; text-transform: uppercase;
+ color: var(--text-4); line-height: 1.6;
+ }
+ .stage-meta span { display: block; }
+ .stage-meta span:first-child { color: var(--text-3); }
+ .hero-stage-inner {
+ position: absolute; inset: 0;
+ transform-style: preserve-3d;
+ transition: transform 0.35s cubic-bezier(.2,.7,.3,1);
+ will-change: transform;
+ }
+
+ /* ── STATS BAR ───────────────────────────────────────────── */
+ .stats-bar {
+ background: var(--surface-0);
+ border-top: 1px solid var(--hairline);
+ border-bottom: 1px solid var(--hairline);
+ padding: 0;
+ overflow: hidden;
+ }
+ .stats-bar-inner {
+ display: flex; align-items: stretch;
+ max-width: 1440px; margin: 0 auto;
+ }
+ .stat-cell {
+ flex: 1; padding: 20px 28px;
+ border-right: 1px solid var(--hairline);
+ display: flex; flex-direction: column; gap: 4px;
+ }
+ .stat-cell:last-child { border-right: none; }
+ .stat-val {
+ font-family: var(--font-display); font-size: 24px;
+ font-weight: 600; letter-spacing: -0.025em;
+ color: var(--text); font-variant-numeric: tabular-nums;
+ }
+ .stat-lbl {
+ font-family: var(--font-mono); font-size: 11px;
+ letter-spacing: 0.15em; text-transform: uppercase;
+ color: var(--text-3);
+ }
+ @media (max-width: 860px) {
+ .stats-bar-inner { flex-wrap: wrap; }
+ .stat-cell { flex: 1 0 50%; border-bottom: 1px solid var(--hairline); }
+ }
+ @media (max-width: 560px) { .stat-cell { flex: 1 0 100%; } }
+
+ /* ── LOGO STRIP ──────────────────────────────────────────── */
+ .logo-strip {
+ padding: 28px 0;
+ border-bottom: 1px solid var(--hairline);
+ }
+ .logo-strip-cap {
+ font-family: var(--font-mono); font-size: 10.5px;
+ letter-spacing: 0.2em; text-transform: uppercase;
+ color: var(--text-4); text-align: center; margin-bottom: 20px;
+ }
+ .logo-row {
+ display: flex; flex-wrap: wrap; justify-content: center;
+ gap: 48px; align-items: center;
+ }
+ .logo-row .logo {
+ font-family: var(--font-display); font-size: 15px; font-weight: 500;
+ letter-spacing: -0.02em; color: var(--text-3); opacity: 0.65;
+ transition: opacity 0.15s;
+ }
+ .logo-row .logo:hover { opacity: 1; }
+
+ /* ── SECTION FRAME ───────────────────────────────────────── */
+ section.block { padding: 112px 0; border-top: 1px solid var(--hairline); }
+ @media (max-width: 720px) { section.block { padding: 72px 0; } }
+ .block-head { margin-bottom: 60px; max-width: 800px; }
+ .block-eyebrow {
+ font-family: var(--font-mono); font-size: 11.5px;
+ letter-spacing: 0.2em; text-transform: uppercase;
+ color: var(--text-3); margin: 0 0 16px;
+ }
+ .block-eyebrow .num { color: var(--text); margin-right: 12px; }
+ .block-h {
+ font-family: var(--font-display);
+ font-size: clamp(34px, 4vw, 58px);
+ line-height: 1.0; letter-spacing: -0.035em;
+ font-weight: 600; margin: 0 0 20px;
+ }
+ .block-h em { font-style: normal; color: var(--text-3); font-weight: 500; }
+ .block-lede {
+ font-size: 17px; color: var(--text-2);
+ max-width: 600px; line-height: 1.55; margin: 0;
+ }
+
+ /* ── EMBED SHOWCASE ──────────────────────────────────────── */
+ .embed-grid {
+ display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
+ background: var(--hairline); border: 1px solid var(--hairline);
+ border-radius: 14px; overflow: hidden;
+ }
+ @media (max-width: 980px) { .embed-grid { grid-template-columns: 1fr; } }
+ .pane { background: var(--surface-0); min-height: 420px; display: flex; flex-direction: column; }
+ .pane-head {
+ display: flex; align-items: center; justify-content: space-between;
+ padding: 14px 18px; border-bottom: 1px solid var(--hairline);
+ font-family: var(--font-mono); font-size: 12px; color: var(--text-3);
+ }
+ .pane-head .tabs { display: flex; gap: 4px; }
+ .pane-head .tab {
+ padding: 5px 11px; border-radius: 5px;
+ font-family: var(--font-mono); font-size: 11.5px;
+ color: var(--text-3); background: transparent; border: 0; cursor: pointer;
+ }
+ .pane-head .tab.active { background: var(--surface-2); color: var(--text); }
+ .code-pane pre {
+ margin: 0; padding: 28px;
+ font-family: var(--font-mono); font-size: 13px; line-height: 1.75;
+ color: var(--text); overflow-x: auto; flex: 1; background: var(--surface-0);
+ }
+ .code-pane pre .tag { color: #d3d3d3; }
+ .code-pane pre .attr { color: #989898; }
+ .code-pane pre .str { color: #f6f6f6; }
+ .code-pane pre .com { color: var(--text-4); }
+ .code-pane .pane-foot { padding: 14px 18px; border-top: 1px solid var(--hairline); }
+ .copy-btn {
+ background: transparent; color: var(--text);
+ border: 1px solid var(--hairline-strong); cursor: pointer;
+ padding: 7px 14px; border-radius: 7px; font-size: 13px; font-weight: 500;
+ }
+ .copy-btn:hover { border-color: var(--text); }
+ .copy-btn.copied { background: var(--text); color: var(--bg); border-color: var(--text); }
+ .render-pane { position: relative; padding: 0; }
+ .render-pane agent-3d, .render-pane .live-agent-slot {
+ position: absolute; inset: 49px 0 0; display: block;
+ width: 100%; height: calc(100% - 49px);
+ }
+
+ /* ── THREE DOORS ─────────────────────────────────────────── */
+ .doors {
+ display: grid; grid-template-columns: repeat(3, 1fr);
+ gap: 1px; background: var(--hairline);
+ border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden;
+ }
+ @media (max-width: 980px) { .doors { grid-template-columns: 1fr; } }
+ .door {
+ background: var(--surface-0); padding: 44px 36px 38px;
+ display: flex; flex-direction: column; transition: background 0.15s;
+ }
+ .door:hover { background: var(--surface-1); }
+ .door-num {
+ font-family: var(--font-mono); font-size: 11.5px;
+ letter-spacing: 0.18em; color: var(--text-4); margin-bottom: 28px;
+ display: flex; justify-content: space-between; align-items: baseline;
+ }
+ .door-num .lbl { color: var(--text-3); }
+ .door h3 {
+ font-family: var(--font-display); font-size: 26px; line-height: 1.1;
+ letter-spacing: -0.025em; font-weight: 600; margin: 0 0 14px;
+ }
+ .door p { color: var(--text-2); margin: 0 0 28px; font-size: 15px; line-height: 1.55; flex: 1; }
+ .door .door-cta {
+ font-size: 14px; font-weight: 500; color: var(--text);
+ display: inline-flex; align-items: center; gap: 8px;
+ }
+ .door .door-cta::after { content: "→"; transition: transform 0.18s; }
+ .door:hover .door-cta::after { transform: translateX(4px); }
+ .door-screenshot {
+ margin: 0 0 24px; border-radius: 8px; overflow: hidden;
+ border: 1px solid var(--hairline-strong);
+ aspect-ratio: 16/9; background: var(--surface-2);
+ }
+ .door-screenshot img { width: 100%; height: 100%; object-fit: cover; display: block; }
+
+ /* ── BENTO GRID ──────────────────────────────────────────── */
+ .bento {
+ display: grid;
+ grid-template-columns: repeat(3, 1fr);
+ grid-template-rows: auto;
+ gap: 1px; background: var(--hairline);
+ border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden;
+ }
+ @media (max-width: 1080px) { .bento { grid-template-columns: repeat(2, 1fr); } }
+ @media (max-width: 680px) { .bento { grid-template-columns: 1fr; } }
+ .bento-card {
+ background: var(--surface-0);
+ padding: 36px 32px 32px;
+ display: flex; flex-direction: column; gap: 12px;
+ transition: background 0.15s;
+ position: relative; overflow: hidden;
+ }
+ .bento-card:hover { background: var(--surface-1); }
+ .bento-card.span2 { grid-column: span 2; }
+ @media (max-width: 1080px) { .bento-card.span2 { grid-column: span 1; } }
+ .bento-icon {
+ font-size: 22px; line-height: 1; margin-bottom: 4px;
+ display: flex; align-items: center; gap: 10px;
+ }
+ .bento-icon .dot {
+ width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
+ }
+ .bento-title {
+ font-family: var(--font-display); font-size: 20px;
+ font-weight: 600; letter-spacing: -0.02em; margin: 0;
+ }
+ .bento-desc {
+ font-size: 14.5px; color: var(--text-2);
+ line-height: 1.55; margin: 0; flex: 1;
+ }
+ .bento-tag {
+ display: inline-flex; align-items: center;
+ font-family: var(--font-mono); font-size: 10.5px;
+ letter-spacing: 0.15em; text-transform: uppercase;
+ color: var(--text-4); border: 1px solid var(--hairline-strong);
+ padding: 4px 9px; border-radius: 99px;
+ margin-top: 4px; width: fit-content;
+ }
+ .bento-screenshot {
+ border-radius: 7px; overflow: hidden;
+ border: 1px solid var(--hairline-strong);
+ margin-top: 8px; background: var(--surface-2);
+ }
+ .bento-screenshot img { width: 100%; display: block; }
+ .bento-pills {
+ display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
+ }
+ .bento-pill {
+ font-family: var(--font-mono); font-size: 11px;
+ letter-spacing: 0.1em; text-transform: uppercase;
+ color: var(--text-3); border: 1px solid var(--hairline-strong);
+ padding: 3px 8px; border-radius: 4px;
+ }
+ .bento-code {
+ font-family: var(--font-mono); font-size: 12.5px;
+ background: var(--surface-2); border: 1px solid var(--hairline-strong);
+ border-radius: 7px; padding: 14px 16px; color: var(--text-2);
+ line-height: 1.7; margin-top: 8px; overflow-x: auto;
+ }
+ .bento-code .kw { color: var(--text-3); }
+ .bento-code .val { color: var(--text); }
+ .bento-code .str { color: #c8c8c8; }
+
+ /* ── FEATURE SPLIT SECTIONS ──────────────────────────────── */
+ .feat-split {
+ display: grid; grid-template-columns: 1fr 1fr;
+ gap: 80px; align-items: center;
+ }
+ @media (max-width: 980px) { .feat-split { grid-template-columns: 1fr; gap: 48px; } }
+ .feat-split.rev { direction: rtl; }
+ .feat-split.rev > * { direction: ltr; }
+ @media (max-width: 980px) { .feat-split.rev { direction: ltr; } }
+ .feat-text { display: flex; flex-direction: column; gap: 20px; }
+ .feat-eyebrow {
+ font-family: var(--font-mono); font-size: 11px;
+ letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3);
+ }
+ .feat-h {
+ font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 44px);
+ line-height: 1.05; letter-spacing: -0.03em;
+ font-weight: 600; margin: 0; color: var(--text);
+ }
+ .feat-h em { font-style: normal; color: var(--text-3); font-weight: 500; }
+ .feat-body { font-size: 16px; color: var(--text-2); line-height: 1.6; margin: 0; }
+ .feat-list {
+ list-style: none; padding: 0; margin: 0;
+ display: flex; flex-direction: column; gap: 10px;
+ }
+ .feat-list li {
+ display: flex; align-items: flex-start; gap: 12px;
+ font-size: 14.5px; color: var(--text-2); line-height: 1.5;
+ }
+ .feat-list li::before {
+ content: ""; width: 5px; height: 5px; border-radius: 50%;
+ background: var(--text-3); flex-shrink: 0; margin-top: 7px;
+ }
+ .feat-list li strong { color: var(--text); font-weight: 550; }
+ .feat-visual {
+ border: 1px solid var(--hairline-strong);
+ border-radius: 14px; overflow: hidden;
+ background: var(--surface-0);
+ position: relative;
+ }
+ .feat-visual img { width: 100%; display: block; }
+ .feat-visual-inner {
+ padding: 28px; display: flex; flex-direction: column; gap: 16px;
+ }
+ .feat-visual-label {
+ font-family: var(--font-mono); font-size: 10.5px;
+ letter-spacing: 0.18em; text-transform: uppercase;
+ color: var(--text-3); padding: 14px 18px;
+ border-bottom: 1px solid var(--hairline);
+ }
+
+ /* Walk embed preview */
+ .walk-preview-wrap {
+ display: flex; flex-direction: column; gap: 0;
+ }
+ .walk-preview-canvas-area {
+ position: relative; aspect-ratio: 16 / 9;
+ background: #0d0f14; overflow: hidden; cursor: grab;
+ }
+ .walk-preview-canvas-area:active { cursor: grabbing; }
+ .walk-preview-canvas {
+ display: block; width: 100%; height: 100%;
+ }
+ .walk-preview-loading {
+ position: absolute; inset: 0; display: flex;
+ flex-direction: column; align-items: center;
+ justify-content: center; gap: 12px;
+ background: #0d0f14; z-index: 4;
+ font-family: var(--font-mono); font-size: 11px;
+ color: var(--text-3); letter-spacing: 0.1em;
+ transition: opacity 0.5s ease;
+ }
+ .walk-preview-loading.is-done { opacity: 0; pointer-events: none; }
+ .walk-preview-spinner {
+ width: 24px; height: 24px; border: 2px solid var(--hairline-strong);
+ border-top-color: var(--text-2); border-radius: 50%;
+ animation: walk-spin 0.8s linear infinite;
+ }
+ @keyframes walk-spin { to { transform: rotate(360deg); } }
+ .walk-preview-hint {
+ position: absolute; bottom: 10px; left: 50%;
+ transform: translateX(-50%); display: flex; gap: 14px;
+ font-family: var(--font-mono); font-size: 9.5px;
+ color: var(--text-4); letter-spacing: 0.06em;
+ opacity: 0.7; pointer-events: none; z-index: 3;
+ white-space: nowrap;
+ }
+ .walk-preview-hint kbd {
+ display: inline-block; padding: 1px 4px;
+ border: 1px solid var(--hairline-strong);
+ border-radius: 3px; font-family: var(--font-mono);
+ font-size: 9px; color: var(--text-3);
+ background: var(--surface-2); margin: 0 1px;
+ }
+ .walk-preview-joystick {
+ position: absolute; bottom: 14px; right: 14px;
+ width: 90px; height: 90px; z-index: 5;
+ }
+ @media (min-width: 768px) {
+ .walk-preview-joystick { display: none; }
+ }
+ @media (max-width: 767px) {
+ .walk-preview-hint { display: none; }
+ .walk-preview-joystick { display: block; }
+ }
+
+ /* Pump.fun earn rows */
+ .earn-rows { display: flex; flex-direction: column; gap: 1px; }
+ .earn-row {
+ background: var(--surface-1); padding: 14px 18px;
+ display: flex; justify-content: space-between; align-items: center;
+ border-bottom: 1px solid var(--hairline);
+ }
+ .earn-row:last-child { border-bottom: none; }
+ .earn-row-left { display: flex; flex-direction: column; gap: 2px; }
+ .earn-row-name { font-size: 14px; font-weight: 500; color: var(--text); }
+ .earn-row-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-4); }
+ .earn-row-amount { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--green); }
+
+ /* Token card */
+ .token-card {
+ background: var(--surface-1); border: 1px solid var(--hairline-strong);
+ border-radius: 10px; padding: 18px; display: flex; gap: 14px; align-items: center;
+ }
+ .token-avatar {
+ width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
+ background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
+ display: flex; align-items: center; justify-content: center;
+ font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: #fff;
+ }
+ .token-info { flex: 1; }
+ .token-name { font-size: 14px; font-weight: 600; color: var(--text); }
+ .token-ticker { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
+ .token-price { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--green); }
+
+ /* ── STEPS ───────────────────────────────────────────────── */
+ .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; }
+ @media (max-width: 980px) { .steps { grid-template-columns: 1fr; gap: 48px; } }
+ .step { border-top: 1px solid var(--hairline-strong); padding-top: 28px; }
+ .step-num { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.18em; color: var(--text-3); margin-bottom: 22px; }
+ .step-title { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 12px; }
+ .step-body { color: var(--text-2); font-size: 15px; line-height: 1.55; margin: 0; }
+
+ /* ── SHOWCASE 3D ─────────────────────────────────────────── */
+ .showcase-3d { perspective: 1200px; perspective-origin: 50% 40%; }
+ .showcase-3d-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
+ @media (max-width: 1080px) { .showcase-3d-grid { grid-template-columns: repeat(2, 1fr); } }
+ @media (max-width: 560px) { .showcase-3d-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; } }
+ .showcase-agent-card {
+ position: relative; aspect-ratio: 3 / 4; border-radius: 16px;
+ overflow: hidden; background: var(--surface-0); border: 1px solid var(--hairline);
+ transform-style: preserve-3d;
+ transform: rotateX(0) rotateY(0) translateZ(0);
+ transition: transform 0.45s cubic-bezier(.22,.68,0,.98), box-shadow 0.4s, border-color 0.3s;
+ cursor: pointer; text-decoration: none; display: block;
+ }
+ .showcase-agent-card:hover {
+ transform: translateZ(24px) scale(1.03);
+ border-color: rgba(255,255,255,0.12);
+ box-shadow: 0 20px 60px -12px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
+ }
+ .showcase-agent-card agent-3d {
+ position: absolute; inset: 0; width: 100%; height: 100%;
+ display: block; opacity: 0; transition: opacity 0.6s ease;
+ }
+ .showcase-agent-card agent-3d.loaded { opacity: 1; }
+ .showcase-card-grad { position: absolute; inset: 0; z-index: 0; opacity: 0.5; transition: opacity 0.4s; }
+ .showcase-agent-card:hover .showcase-card-grad { opacity: 0.7; }
+ .showcase-card-floor {
+ position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
+ background: linear-gradient(180deg, transparent 0%, rgba(5,5,5,0.95) 100%);
+ z-index: 1; pointer-events: none;
+ }
+ .showcase-card-meta {
+ position: absolute; bottom: 0; left: 0; right: 0;
+ padding: 18px 16px; z-index: 3; color: var(--text);
+ }
+ .showcase-card-name {
+ font-family: var(--font-display); font-size: 15px; font-weight: 600;
+ letter-spacing: -0.015em; margin: 0 0 3px;
+ white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
+ }
+ .showcase-card-sub {
+ font-family: var(--font-mono); font-size: 10px; color: var(--text-3);
+ letter-spacing: 0.08em; text-transform: uppercase;
+ }
+ .showcase-card-tag {
+ position: absolute; top: 12px; left: 12px; z-index: 4;
+ font-family: var(--font-mono); font-size: 9.5px;
+ letter-spacing: 0.18em; text-transform: uppercase; color: var(--text);
+ padding: 3px 8px; background: rgba(5,5,5,0.55);
+ border: 1px solid var(--hairline-strong); border-radius: 99px; backdrop-filter: blur(6px);
+ }
+ .showcase-card-anim-tag {
+ position: absolute; top: 12px; right: 12px; z-index: 4;
+ font-family: var(--font-mono); font-size: 9px;
+ letter-spacing: 0.08em; color: rgba(255,255,255,0.35); text-transform: lowercase;
+ }
+ .showcase-card-skel {
+ position: absolute; inset: 0;
+ display: flex; align-items: center; justify-content: center; z-index: 0;
+ }
+ .showcase-card-skel-ring {
+ width: 32px; height: 32px;
+ border: 2px solid rgba(255,255,255,0.08); border-top-color: rgba(255,255,255,0.25);
+ border-radius: 50%; animation: showcase-spin 0.9s linear infinite;
+ }
+ @keyframes showcase-spin { to { transform: rotate(360deg); } }
+ .showcase-cta-card {
+ position: relative; aspect-ratio: 3 / 4; border-radius: 16px;
+ overflow: hidden; border: 1px solid var(--hairline);
+ display: flex; flex-direction: column; align-items: center; justify-content: center;
+ text-align: center; text-decoration: none; background: var(--surface-0);
+ transition: transform 0.35s cubic-bezier(.22,.68,0,.98), border-color 0.3s, background 0.3s;
+ cursor: pointer; gap: 10px; padding: 24px;
+ }
+ .showcase-cta-card:hover {
+ transform: translateZ(12px) scale(1.02);
+ border-color: rgba(255,255,255,0.15); background: var(--surface-1);
+ }
+ .showcase-cta-icon { font-size: 28px; opacity: 0.4; transition: opacity 0.3s; }
+ .showcase-cta-card:hover .showcase-cta-icon { opacity: 0.7; }
+ .showcase-cta-label {
+ font-family: var(--font-display); font-size: 15px; font-weight: 600;
+ color: var(--text); letter-spacing: -0.01em;
+ }
+ .showcase-cta-sub {
+ font-family: var(--font-mono); font-size: 10px; color: var(--text-3);
+ letter-spacing: 0.06em; text-transform: uppercase;
+ }
+
+ /* ── DEVELOPER SECTION / API PLAYGROUND ──────────────────── */
+ .dev-grid {
+ display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1px;
+ background: var(--hairline); border: 1px solid var(--hairline);
+ border-radius: 14px; overflow: hidden;
+ }
+ @media (max-width: 980px) { .dev-grid { grid-template-columns: 1fr; } }
+ .dev-pane { background: var(--surface-0); padding: 0; }
+ .dev-pane-head {
+ padding: 14px 20px; border-bottom: 1px solid var(--hairline);
+ font-family: var(--font-mono); font-size: 11.5px;
+ letter-spacing: 0.12em; color: var(--text-3);
+ display: flex; justify-content: space-between; align-items: center;
+ }
+ .dev-tabs {
+ display: flex; gap: 0; border-bottom: 1px solid var(--hairline);
+ }
+ .dev-tab {
+ padding: 10px 18px; font-family: var(--font-mono); font-size: 11px;
+ letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-4);
+ cursor: pointer; border-bottom: 2px solid transparent;
+ transition: color 0.15s, border-color 0.15s; user-select: none;
+ background: none; border-top: none; border-left: none; border-right: none;
+ }
+ .dev-tab:hover { color: var(--text-2); }
+ .dev-tab.active { color: var(--text); border-bottom-color: var(--text); }
+ .dev-tab-content { display: none; }
+ .dev-tab-content.active { display: block; }
+ .dev-code {
+ font-family: var(--font-mono); font-size: 12.5px;
+ line-height: 1.8; padding: 24px 24px; color: var(--text-2);
+ overflow-x: auto;
+ }
+ .dev-code .kw { color: var(--text-3); }
+ .dev-code .fn { color: var(--text); font-weight: 500; }
+ .dev-code .str { color: #c5c5c5; }
+ .dev-code .cmt { color: var(--text-4); }
+ .dev-code .num { color: #b0b0b0; }
+ .dev-links { padding: 16px 24px; border-top: 1px solid var(--hairline); }
+ .dev-links-row { display: flex; gap: 10px; flex-wrap: wrap; }
+ .dev-link {
+ display: inline-flex; align-items: center; gap: 7px;
+ padding: 7px 13px; border-radius: 6px;
+ border: 1px solid var(--hairline-strong);
+ font-size: 13px; font-weight: 500; color: var(--text-2);
+ transition: border-color 0.15s, color 0.15s;
+ }
+ .dev-link:hover { border-color: var(--text); color: var(--text); }
+ .dev-right { display: flex; flex-direction: column; }
+ .dev-api-row {
+ padding: 14px 20px; border-bottom: 1px solid var(--hairline);
+ display: flex; flex-direction: column; gap: 4px;
+ cursor: pointer; transition: background 0.15s;
+ }
+ .dev-api-row:hover { background: var(--surface-1); }
+ .dev-api-row.active {
+ background: var(--surface-2);
+ box-shadow: inset 3px 0 0 var(--text-3);
+ }
+ .dev-api-method {
+ font-family: var(--font-mono); font-size: 11px;
+ letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3);
+ }
+ .dev-api-path {
+ font-family: var(--font-mono); font-size: 13px; color: var(--text);
+ }
+ .dev-api-desc { font-size: 12px; color: var(--text-4); }
+ .dev-badge {
+ display: inline-block; font-family: var(--font-mono); font-size: 10px;
+ letter-spacing: 0.1em; text-transform: uppercase;
+ padding: 2px 7px; border-radius: 4px; font-weight: 700;
+ min-width: 36px; text-align: center;
+ }
+ .dev-badge.get { background: rgba(74,222,128,0.12); color: #4ade80; }
+ .dev-badge.post { background: rgba(96,165,250,0.12); color: #60a5fa; }
+ .dev-badge.mcp { background: rgba(255,92,168,0.12); color: #ff8cc8; }
+
+ /* ── Playground request builder ──────────────────────────── */
+ .pg-request { padding: 20px 24px; }
+ .pg-field { margin-bottom: 14px; }
+ .pg-field-label {
+ font-family: var(--font-mono); font-size: 10.5px;
+ letter-spacing: 0.12em; text-transform: uppercase;
+ color: var(--text-4); margin-bottom: 6px; display: block;
+ }
+ .pg-input {
+ width: 100%; background: var(--surface-2); border: 1px solid var(--hairline-strong);
+ border-radius: 6px; padding: 9px 12px; color: var(--text);
+ font-family: var(--font-mono); font-size: 12.5px; outline: none;
+ transition: border-color 0.15s;
+ }
+ .pg-input:focus { border-color: var(--text-3); }
+ .pg-input::placeholder { color: var(--text-4); }
+ textarea.pg-input { min-height: 80px; resize: vertical; line-height: 1.6; }
+ .pg-url-bar {
+ display: flex; align-items: center; gap: 0;
+ background: var(--surface-2); border: 1px solid var(--hairline-strong);
+ border-radius: 6px; overflow: hidden; margin-bottom: 16px;
+ }
+ .pg-url-method {
+ padding: 9px 12px; font-family: var(--font-mono); font-size: 11px;
+ font-weight: 700; letter-spacing: 0.08em; color: #4ade80;
+ border-right: 1px solid var(--hairline-strong); background: var(--surface-1);
+ min-width: 52px; text-align: center; user-select: none;
+ }
+ .pg-url-method.post { color: #60a5fa; }
+ .pg-url-path {
+ flex: 1; padding: 9px 12px; font-family: var(--font-mono); font-size: 12.5px;
+ color: var(--text-2); background: transparent; border: none; outline: none;
+ }
+ .pg-url-path::placeholder { color: var(--text-4); }
+ .pg-send {
+ padding: 9px 20px; background: var(--text); color: var(--bg);
+ font-family: var(--font-mono); font-size: 11px; font-weight: 700;
+ letter-spacing: 0.1em; text-transform: uppercase; border: none;
+ border-radius: 6px; cursor: pointer; transition: opacity 0.15s;
+ }
+ .pg-send:hover { opacity: 0.85; }
+ .pg-send:active { opacity: 0.7; }
+ .pg-send:disabled { opacity: 0.4; cursor: not-allowed; }
+ .pg-actions { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
+ .pg-status {
+ font-family: var(--font-mono); font-size: 11px;
+ letter-spacing: 0.05em; color: var(--text-4);
+ }
+ .pg-status.ok { color: #4ade80; }
+ .pg-status.err { color: #f87171; }
+ .pg-response {
+ background: var(--surface-1); border: 1px solid var(--hairline);
+ border-radius: 8px; overflow: hidden;
+ }
+ .pg-response-head {
+ padding: 10px 16px; border-bottom: 1px solid var(--hairline);
+ font-family: var(--font-mono); font-size: 10.5px;
+ letter-spacing: 0.1em; text-transform: uppercase;
+ color: var(--text-4); display: flex; justify-content: space-between;
+ }
+ .pg-response-body {
+ padding: 16px; font-family: var(--font-mono); font-size: 12px;
+ line-height: 1.7; color: var(--text-2); max-height: 260px;
+ overflow-y: auto; white-space: pre-wrap; word-break: break-all;
+ }
+ .pg-response-body::-webkit-scrollbar { width: 5px; }
+ .pg-response-body::-webkit-scrollbar-track { background: transparent; }
+ .pg-response-body::-webkit-scrollbar-thumb { background: var(--hairline-strong); border-radius: 3px; }
+ .pg-empty {
+ padding: 40px 24px; text-align: center; color: var(--text-4);
+ font-size: 13px; line-height: 1.6;
+ }
+ .pg-empty-icon { font-size: 32px; margin-bottom: 12px; opacity: 0.3; }
+ .pg-response-body .json-key { color: #60a5fa; }
+ .pg-response-body .json-str { color: #4ade80; }
+ .pg-response-body .json-num { color: #fbbf24; }
+ .pg-response-body .json-bool { color: #c084fc; }
+ .pg-response-body .json-null { color: var(--text-4); }
+ .pg-curl-code {
+ font-family: var(--font-mono); font-size: 12px;
+ line-height: 1.8; padding: 24px; color: var(--text-2);
+ white-space: pre-wrap; word-break: break-all;
+ }
+ .pg-copy {
+ padding: 4px 10px; background: var(--surface-2); border: 1px solid var(--hairline-strong);
+ border-radius: 4px; color: var(--text-3); font-family: var(--font-mono);
+ font-size: 10px; letter-spacing: 0.1em; cursor: pointer;
+ transition: color 0.15s, border-color 0.15s;
+ }
+ .pg-copy:hover { color: var(--text); border-color: var(--text-3); }
+
+ /* ── PRICING TEASER ──────────────────────────────────────── */
+ .pricing-grid {
+ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
+ background: var(--hairline); border: 1px solid var(--hairline);
+ border-radius: 14px; overflow: hidden;
+ }
+ @media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }
+ .pricing-card {
+ background: var(--surface-0); padding: 40px 32px;
+ display: flex; flex-direction: column; gap: 0;
+ transition: background 0.15s; position: relative;
+ }
+ .pricing-card:hover { background: var(--surface-1); }
+ .pricing-card.featured {
+ background: var(--surface-1);
+ box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
+ }
+ .pricing-badge {
+ position: absolute; top: 16px; right: 16px;
+ font-family: var(--font-mono); font-size: 10px;
+ letter-spacing: 0.15em; text-transform: uppercase;
+ background: rgba(255,255,255,0.15); color: #cccccc;
+ padding: 3px 9px; border-radius: 99px;
+ }
+ .pricing-tier {
+ font-family: var(--font-mono); font-size: 11px;
+ letter-spacing: 0.18em; text-transform: uppercase;
+ color: var(--text-3); margin-bottom: 12px;
+ }
+ .pricing-price {
+ font-family: var(--font-display); font-size: 40px;
+ font-weight: 600; letter-spacing: -0.03em;
+ color: var(--text); margin: 0 0 4px; line-height: 1;
+ }
+ .pricing-price sub { font-size: 16px; font-weight: 400; color: var(--text-3); }
+ .pricing-cycle { font-size: 13px; color: var(--text-3); margin-bottom: 28px; }
+ .pricing-feats {
+ list-style: none; padding: 0; margin: 0 0 32px; flex: 1;
+ display: flex; flex-direction: column; gap: 10px;
+ }
+ .pricing-feats li {
+ display: flex; align-items: flex-start; gap: 10px;
+ font-size: 14px; color: var(--text-2); line-height: 1.45;
+ }
+ .pricing-feats li::before {
+ content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0;
+ font-size: 12px; margin-top: 1px;
+ }
+
+ /* ── BOTTOM CTA ──────────────────────────────────────────── */
+ .cta-card {
+ padding: 80px 64px; border: 1px solid var(--hairline-strong);
+ border-radius: 16px; text-align: center; background: var(--surface-0);
+ }
+ .cta-card h2 {
+ font-family: var(--font-display); font-size: clamp(30px, 4vw, 50px);
+ line-height: 1.0; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 18px;
+ }
+ .cta-card p { color: var(--text-2); font-size: 17px; margin: 0 0 36px; }
+ .cta-card .cta-row { justify-content: center; }
+ @media (max-width: 720px) { .cta-card { padding: 48px 24px; } }
+
+ /* ── FOOTER ──────────────────────────────────────────────── */
+ footer { border-top: 1px solid var(--hairline); padding: 40px 0 56px; }
+ .foot-inner {
+ display: flex; justify-content: space-between; align-items: center;
+ gap: 24px; flex-wrap: wrap;
+ color: var(--text-4); font-size: 13px; font-family: var(--font-mono);
+ letter-spacing: 0.04em;
+ }
+ .foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
+ .foot-links a { color: var(--text-3); transition: color 0.15s; }
+ .foot-links a:hover { color: var(--text); }
+
+ /* ── MOBILE NAV ─────────────────────────────────────────── */
+ .nav-toggle {
+ display: none; align-items: center; justify-content: center;
+ width: 36px; height: 36px; padding: 0; margin-left: auto;
+ background: none; border: 1px solid var(--hairline-strong);
+ border-radius: 7px; color: var(--text); cursor: pointer;
+ transition: border-color 0.15s, background 0.15s;
+ }
+ .nav-toggle:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }
+ .nav-toggle svg { width: 16px; height: 16px; }
+ .nav-toggle .close { display: none; }
+ .nav-toggle[aria-expanded="true"] .open { display: none; }
+ .nav-toggle[aria-expanded="true"] .close { display: block; }
+ .nav-drawer {
+ display: none; position: fixed; inset: 57px 0 0;
+ z-index: 99; background: rgba(5,5,5,0.96);
+ backdrop-filter: blur(24px) saturate(140%);
+ padding: 24px 24px 40px; flex-direction: column; gap: 4px;
+ opacity: 0; transform: translateY(-8px);
+ transition: opacity 0.25s ease, transform 0.25s ease;
+ }
+ .nav-drawer.open { display: flex; opacity: 1; transform: translateY(0); }
+ .nav-drawer a {
+ padding: 14px 16px; font-size: 16px; font-weight: 450;
+ color: var(--text-2); border-radius: 8px;
+ transition: background 0.12s, color 0.12s;
+ }
+ .nav-drawer a:hover { background: var(--surface-1); color: var(--text); }
+ .nav-drawer .sep { height: 1px; background: var(--hairline); margin: 12px 0; }
+ .nav-drawer .btn { margin-top: 8px; justify-content: center; }
+ @media (max-width: 880px) {
+ .nav-toggle { display: flex; }
+ .nav-end { display: none; }
+ }
+
+ /* ── HERO LOADING ───────────────────────────────────────── */
+ .hero-stage-shimmer {
+ position: absolute; inset: 0; z-index: 1;
+ display: flex; align-items: center; justify-content: center;
+ transition: opacity 0.6s ease;
+ }
+ .hero-stage-shimmer.hidden { opacity: 0; pointer-events: none; }
+ .hero-stage-shimmer::before {
+ content: ""; width: 120px; height: 120px; border-radius: 50%;
+ background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
+ animation: hero-pulse 2.4s ease-in-out infinite;
+ }
+ @keyframes hero-pulse {
+ 0%, 100% { transform: scale(1); opacity: 0.5; }
+ 50% { transform: scale(1.3); opacity: 1; }
+ }
+ .hero-stage agent-3d {
+ position: absolute; inset: 0; display: block; width: 100%; height: 100%;
+ opacity: 0; transition: opacity 0.8s cubic-bezier(.2,.7,.3,1);
+ }
+ .hero-stage agent-3d.loaded { opacity: 1; }
+
+ /* ── HERO THOUGHT BUBBLE ────────────────────────────────── */
+ .hero-thought {
+ position: absolute;
+ top: 10%; left: 50%;
+ transform: translateX(-50%) translate3d(var(--tilt-x, 0px), var(--tilt-y, 0px), 0);
+ transform-origin: bottom center;
+ z-index: 20;
+ width: max-content;
+ max-width: min(clamp(220px, 52cqi, 360px), calc(100% - 32px));
+ opacity: 0; pointer-events: none;
+ transition: opacity 0.35s cubic-bezier(.2,.7,.3,1);
+ will-change: transform, opacity;
+ }
+ .hero-thought.visible { opacity: 1; pointer-events: auto; }
+ .hero-thought-inner {
+ background: rgba(14,14,14,0.88);
+ backdrop-filter: blur(16px) saturate(140%);
+ -webkit-backdrop-filter: blur(16px) saturate(140%);
+ border: 1px solid rgba(255,255,255,0.1);
+ border-radius: clamp(10px, 2cqi, 14px);
+ padding: clamp(10px, 2cqi, 14px) clamp(12px, 2.6cqi, 18px);
+ font-size: clamp(12px, 2cqi, 14px); line-height: 1.55; color: var(--text);
+ max-height: clamp(120px, 26cqi, 180px); overflow-y: auto;
+ scrollbar-width: thin; scrollbar-color: var(--hairline-strong) transparent;
+ }
+ .hero-thought-inner::-webkit-scrollbar { width: 4px; }
+ .hero-thought-inner::-webkit-scrollbar-track { background: transparent; }
+ .hero-thought-inner::-webkit-scrollbar-thumb { background: var(--hairline-strong); border-radius: 2px; }
+ .hero-thought-tail {
+ width: 20px; height: 12px; margin: -1px auto 0;
+ display: block; position: relative;
+ }
+ .hero-thought-tail::before {
+ content: ""; position: absolute; top: 0; left: 50%;
+ transform: translateX(-50%); width: 0; height: 0;
+ border-left: 10px solid transparent; border-right: 10px solid transparent;
+ border-top: 12px solid rgba(255,255,255,0.1);
+ }
+ .hero-thought-tail::after {
+ content: ""; position: absolute; top: 0; left: 50%;
+ transform: translateX(-50%); width: 0; height: 0;
+ border-left: 9px solid transparent; border-right: 9px solid transparent;
+ border-top: 11px solid rgba(14,14,14,0.88);
+ }
+ .hero-thought-dots {
+ display: flex; gap: 5px; align-items: center; padding: 2px 0;
+ }
+ .hero-thought-dots span {
+ width: 6px; height: 6px; border-radius: 50%;
+ background: var(--text-3);
+ animation: thought-bounce 1.4s ease-in-out infinite;
+ }
+ .hero-thought-dots span:nth-child(2) { animation-delay: 0.15s; }
+ .hero-thought-dots span:nth-child(3) { animation-delay: 0.3s; }
+ @keyframes thought-bounce {
+ 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
+ 30% { opacity: 1; transform: translateY(-4px); }
+ }
+
+ /* ── HERO CHAT INPUT ────────────────────────────────────── */
+ .hero-chat-bar {
+ position: absolute; bottom: 72px; left: 50%;
+ transform: translateX(-50%); z-index: 20;
+ width: min(380px, calc(100% - 40px));
+ }
+ .hero-chat-form {
+ display: flex; align-items: center; gap: 0;
+ background: rgba(14,14,14,0.82);
+ backdrop-filter: blur(16px) saturate(140%);
+ -webkit-backdrop-filter: blur(16px) saturate(140%);
+ border: 1px solid rgba(255,255,255,0.1);
+ border-radius: 999px; padding: 4px 4px 4px 16px;
+ transition: border-color 0.2s;
+ }
+ .hero-chat-form:focus-within { border-color: rgba(255,255,255,0.25); }
+ .hero-chat-input {
+ flex: 1; background: transparent; border: none; outline: none;
+ color: var(--text); font-family: var(--font-body);
+ font-size: 13.5px; padding: 8px 0; min-width: 0;
+ }
+ .hero-chat-input::placeholder { color: var(--text-4); }
+ .hero-chat-send {
+ flex-shrink: 0; width: 32px; height: 32px;
+ border-radius: 50%; border: none;
+ background: var(--text); color: var(--bg);
+ display: flex; align-items: center; justify-content: center;
+ cursor: pointer; transition: opacity 0.15s, transform 0.15s;
+ }
+ .hero-chat-send:hover { opacity: 0.85; }
+ .hero-chat-send:active { transform: scale(0.92); }
+ .hero-chat-send:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }
+ .hero-chat-send svg { width: 14px; height: 14px; }
+ .hero-chat-hint {
+ text-align: center; margin-top: 8px;
+ font-family: var(--font-mono); font-size: 10px;
+ letter-spacing: 0.12em; text-transform: uppercase;
+ color: var(--text-4); opacity: 0.6;
+ }
+ @media (max-width: 980px) {
+ .hero-chat-bar { bottom: 20px; }
+ .hero-thought { top: 4%; }
+ }
+
+ /* ── REVEAL ANIMATIONS ──────────────────────────────────── */
+ .reveal {
+ opacity: 0; transform: translateY(32px);
+ transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1);
+ }
+ .reveal.vis { opacity: 1; transform: translateY(0); }
+ .reveal-d1 { transition-delay: 0.08s; }
+ .reveal-d2 { transition-delay: 0.16s; }
+
+ /* ── HERO TEXT ENTRANCE ──────────────────────────────────── */
+ .hero-text > * {
+ opacity: 0; transform: translateY(24px);
+ transition: opacity 0.6s cubic-bezier(.2,.7,.3,1), transform 0.6s cubic-bezier(.2,.7,.3,1);
+ }
+ .hero-text.entered > * { opacity: 1; transform: translateY(0); }
+ .hero-text > *:nth-child(1) { transition-delay: 0.05s; }
+ .hero-text > *:nth-child(2) { transition-delay: 0.12s; }
+ .hero-text > *:nth-child(3) { transition-delay: 0.22s; }
+ .hero-text > *:nth-child(4) { transition-delay: 0.32s; }
+ .hero-text > *:nth-child(5) { transition-delay: 0.42s; }
+
+ /* ── BENTO GLOW ─────────────────────────────────────────── */
+ .bento-card { --bx: 50%; --by: 50%; }
+ .bento-card::before {
+ content: ""; position: absolute; inset: 0; pointer-events: none;
+ background: radial-gradient(600px circle at var(--bx) var(--by), rgba(255,255,255,0.04), transparent 40%);
+ opacity: 0; transition: opacity 0.3s;
+ }
+ .bento-card:hover::before { opacity: 1; }
+
+ /* ── ENHANCED INTERACTIVE STATES ─────────────────────────── */
+ .btn:focus-visible, .copy-btn:focus-visible, .nav-toggle:focus-visible {
+ outline: 2px solid rgba(255,255,255,0.5); outline-offset: 2px;
+ }
+ .btn:active:not(.primary) { background: rgba(255,255,255,0.06); }
+ .btn.primary:active { background: #e0e0e0; }
+ .door-screenshot img[src] { transition: transform 0.4s cubic-bezier(.2,.7,.3,1); }
+ .door:hover .door-screenshot img { transform: scale(1.03); }
+ .pricing-card { transition: background 0.15s, transform 0.2s; }
+ .pricing-card:hover { transform: translateY(-2px); }
+
+ /* ── PRICING AVATAR STAGE ────────────────────────────── */
+ .pricing-stage { position: relative; }
+ #pricing-canvas {
+ position: absolute;
+ top: -200px; left: 0; right: 0; bottom: 0;
+ pointer-events: none; z-index: 10;
+ }
+ .pricing-card.is-active {
+ background: var(--surface-1);
+ box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
+ transform: translateY(-2px);
+ }
+ .pricing-hint {
+ text-align: center; margin-top: 20px;
+ font-family: var(--font-mono); font-size: 11px;
+ letter-spacing: 0.12em; text-transform: uppercase;
+ color: var(--text-4);
+ }
+ @media (max-width: 860px) {
+ #pricing-canvas, .pricing-hint { display: none; }
+ }
+ @keyframes stat-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
+ .stat-animated { animation: stat-in 0.5s cubic-bezier(.2,.7,.3,1) both; }
+
+ /* ── ACCESSIBILITY ──────────────────────────────────────── */
+ @media (prefers-reduced-motion: reduce) {
+ .reveal, .hero-text > * { opacity: 1 !important; transform: none !important; transition: none !important; }
+ .hero-stage agent-3d { opacity: 1 !important; transition: none !important; }
+ .hero-stage-shimmer { display: none !important; }
+ }
+
+ /* ── HERO ANIMATION CHIPS ────────────────────────────────── */
+ .hero-chips-wrap {
+ position: absolute;
+ bottom: 0; left: 0; right: 0;
+ z-index: 10;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 8px;
+ padding: 32px 20px 20px;
+ background: linear-gradient(0deg, rgba(5,5,5,0.75) 0%, transparent 100%);
+ pointer-events: none;
+ }
+ .hero-chips-wrap > * { pointer-events: auto; }
+ .hero-chips-label {
+ font-family: var(--font-mono);
+ font-size: 10px;
+ letter-spacing: 0.22em;
+ text-transform: uppercase;
+ color: var(--text-4);
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ }
+ .hero-chips-label::before {
+ content: "";
+ display: inline-block;
+ width: 5px; height: 5px;
+ border-radius: 50%;
+ background: var(--text-3);
+ box-shadow: 0 0 5px var(--text-3);
+ animation: pulse-green 2.4s ease-in-out infinite;
+ }
+ .hero-chips {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: center;
+ gap: 6px;
+ }
+ .hero-chip {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ padding: 7px 13px;
+ border-radius: 999px;
+ background: rgba(5,5,5,0.6);
+ backdrop-filter: blur(12px);
+ -webkit-backdrop-filter: blur(12px);
+ border: 1px solid var(--hairline-strong);
+ color: var(--text-3);
+ font: 500 12.5px/1 var(--font-body);
+ cursor: pointer;
+ transition: border-color 0.15s, color 0.15s, background 0.15s;
+ user-select: none;
+ }
+ .hero-chip:hover {
+ border-color: rgba(255,255,255,0.4);
+ color: var(--text);
+ background: rgba(255,255,255,0.06);
+ }
+ .hero-chip[data-active="true"] {
+ border-color: rgba(255,255,255,0.55);
+ color: var(--text);
+ background: rgba(255,255,255,0.1);
+ }
+ .hero-chips-counter {
+ font-family: var(--font-mono);
+ font-size: 10px;
+ letter-spacing: 0.12em;
+ color: var(--text-4);
+ }
+ .hero-chips-counter strong { color: var(--text-3); font-weight: 600; }
+ @media (max-width: 980px) { .hero-chips-wrap { display: none; } }
+ @media (prefers-reduced-motion: reduce) {
+ .hero-chips-label::before { animation: none !important; }
+ }
+
+ /* ── 3D STACK GRID ───────────────────────────────────────────── */
+ .stack-3d {
+ perspective: 1400px;
+ perspective-origin: 50% 40%;
+ }
+ .stack-3d-scene {
+ display: grid;
+ grid-template-columns: repeat(3, 1fr);
+ gap: 1px;
+ background: var(--hairline);
+ border: 1px solid var(--hairline);
+ border-radius: 14px;
+ overflow: hidden;
+ transform-style: preserve-3d;
+ transform: rotateX(0deg) rotateY(0deg);
+ transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
+ will-change: transform;
+ }
+ .stack-card {
+ position: relative;
+ background: var(--surface-0);
+ padding: 40px 32px 36px;
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+ text-decoration: none;
+ color: var(--text);
+ transition:
+ background 0.3s ease,
+ opacity 0.35s ease;
+ cursor: pointer;
+ overflow: hidden;
+ min-height: 210px;
+ }
+ .stack-card::before {
+ content: '';
+ position: absolute;
+ inset: 0;
+ opacity: 0;
+ background: radial-gradient(
+ 600px circle at var(--mx, 50%) var(--my, 50%),
+ rgba(255,255,255,0.045),
+ transparent 40%
+ );
+ transition: opacity 0.4s ease;
+ pointer-events: none;
+ z-index: 1;
+ }
+ .stack-card:hover::before { opacity: 1; }
+ .stack-card::after {
+ content: '';
+ position: absolute;
+ inset: -1px;
+ border-radius: inherit;
+ opacity: 0;
+ background: radial-gradient(
+ 400px circle at var(--mx, 50%) var(--my, 50%),
+ rgba(255,255,255,0.13),
+ transparent 40%
+ );
+ mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
+ mask-composite: exclude;
+ -webkit-mask-composite: xor;
+ padding: 1px;
+ transition: opacity 0.4s ease;
+ pointer-events: none;
+ z-index: 2;
+ }
+ .stack-card:hover::after { opacity: 1; }
+ .stack-card:hover {
+ background: var(--surface-1);
+ z-index: 3;
+ }
+ .stack-3d-scene:hover .stack-card:not(:hover) {
+ opacity: 0.55;
+ }
+ .stack-card-num {
+ font-family: var(--font-mono);
+ font-size: 11px;
+ letter-spacing: 0.18em;
+ color: var(--text-4);
+ margin-bottom: 6px;
+ }
+ .stack-card-title {
+ font-family: var(--font-display);
+ font-size: clamp(22px, 2.2vw, 30px);
+ font-weight: 600;
+ letter-spacing: -0.025em;
+ line-height: 1.1;
+ margin: 0;
+ }
+ .stack-card-desc {
+ color: var(--text-2);
+ font-size: 14px;
+ line-height: 1.55;
+ margin: 0;
+ flex: 1;
+ }
+ .stack-card-arrow {
+ font-family: var(--font-mono);
+ font-size: 16px;
+ color: var(--text-4);
+ align-self: flex-end;
+ transition: color 0.25s, transform 0.25s;
+ }
+ .stack-card:hover .stack-card-arrow {
+ color: var(--text);
+ transform: translate(4px, -4px);
+ }
+ /* staggered entrance */
+ .stack-3d .stack-card {
+ opacity: 0;
+ transform: translateY(30px);
+ transition:
+ background 0.3s ease,
+ opacity 0.55s cubic-bezier(0.23, 1, 0.32, 1),
+ transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
+ }
+ .stack-3d.vis .stack-card {
+ opacity: 1;
+ transform: translateY(0);
+ }
+ .stack-3d.vis .stack-card:nth-child(1) { transition-delay: 0.04s; }
+ .stack-3d.vis .stack-card:nth-child(2) { transition-delay: 0.09s; }
+ .stack-3d.vis .stack-card:nth-child(3) { transition-delay: 0.14s; }
+ .stack-3d.vis .stack-card:nth-child(4) { transition-delay: 0.19s; }
+ .stack-3d.vis .stack-card:nth-child(5) { transition-delay: 0.24s; }
+ .stack-3d.vis .stack-card:nth-child(6) { transition-delay: 0.29s; }
+ .stack-3d.vis.settled .stack-card { transition-delay: 0s; }
+ @media (max-width: 980px) {
+ .stack-3d-scene { grid-template-columns: repeat(2, 1fr); }
+ .stack-3d { perspective: 1000px; }
+ }
+ @media (max-width: 600px) {
+ .stack-3d-scene { grid-template-columns: 1fr; }
+ .stack-3d { perspective: none; }
+ .stack-card { min-height: auto; padding: 28px 24px 24px; }
+ .stack-3d .stack-card,
+ .stack-3d .stack-card:hover,
+ .stack-3d-scene:hover .stack-card:not(:hover) {
+ transform: none !important; opacity: 1 !important;
}
- </script>
- </head>
- <body class="home-page">
- <div class="cursor" id="cursor" aria-hidden="true"></div>
- <a href="#main-content" class="h-skip-link">Skip to main content</a>
- <header>
- <h1>
- <a href="/" aria-label="three.ws home"
- ><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span
- class="wordmark-dot"
- aria-hidden="true"
- ></span
- >three.ws</a
- >
- </h1>
- <div id="nav-container"></div>
- </header>
- <script src="/nav.js"></script>
-
- <main id="main-content" class="home-parallax">
- <!-- ── Hero (parallax act) ── -->
- <section class="h-hero-act">
- <!-- Depth 8: fluid particles + nebula -->
- <div class="h-layer" style="--depth: 8" aria-hidden="true">
- <div class="h-layer-nebula"></div>
- <canvas id="home-fluid-canvas" class="h-fluid-canvas"></canvas>
- </div>
- <!-- Depth 4: perspective grid -->
- <div class="h-layer" style="--depth: 4" aria-hidden="true">
- <div class="h-hero-grid"></div>
- </div>
- <!-- Depth 3: ghost model drifting in background -->
- <div class="h-layer" style="--depth: 3" aria-hidden="true">
- <model-viewer
- class="h-ghost-model"
- src="/animations/robotexpressive.glb"
- auto-rotate
- auto-rotate-delay="0"
- rotation-per-second="5deg"
- interaction-prompt="none"
- camera-controls="false"
- disable-zoom
- shadow-intensity="0"
- exposure="0.5"
- environment-image="neutral"
- camera-orbit="15deg 80deg 4m"
- field-of-view="45deg"
- loading="lazy"
- ></model-viewer>
- </div>
- <!-- Depth 2: atmosphere -->
- <div class="h-layer" style="--depth: 2" aria-hidden="true">
- <div class="h-hero-mesh"></div>
- <div class="h-hero-glow-a"></div>
- <div class="h-hero-glow-b"></div>
- </div>
- <!-- Depth 1: main avatar that waves on load and tracks the cursor -->
- <div class="h-layer" style="--depth: 1">
- <div class="h-avatar-stage">
- <div class="h-avatar-wrap">
- <div class="h-avatar-ring"></div>
- <div class="h-avatar-glow"></div>
- <canvas
- id="hero-avatar"
- class="h-avatar-viewer"
- aria-label="three.ws — interactive 3D agent. Click for surprises."
- ></canvas>
+ }
+ @media (prefers-reduced-motion: reduce) {
+ .stack-card, .stack-3d-scene { transition: none !important; }
+ .stack-3d .stack-card { opacity: 1 !important; transform: none !important; }
+ }
+
+ /* ── V4-STYLE IMMERSIVE CLOSE ────────────────────────────────── */
+ .vclose {
+ position: relative; min-height: 100vh;
+ display: flex; align-items: center; justify-content: center;
+ overflow: hidden; border-top: 1px solid var(--hairline);
+ }
+ .vclose-agent {
+ position: absolute; inset: 0; width: 100%; height: 100%;
+ display: block; z-index: 1;
+ opacity: 0; transition: opacity 0.9s cubic-bezier(.2,.7,.3,1);
+ }
+ .vclose-agent.loaded { opacity: 1; }
+ .vclose-grid {
+ position: absolute; inset: 0; z-index: 0; pointer-events: none;
+ 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: 60px 60px;
+ mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 100%);
+ }
+ .vclose-vignette {
+ position: absolute; inset: 0; z-index: 2; pointer-events: none;
+ background: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 30%, rgba(5,5,5,0.92) 100%);
+ }
+ .vclose-overlay {
+ position: relative; z-index: 3;
+ display: flex; flex-direction: column; align-items: center;
+ text-align: center; gap: 24px;
+ padding: 80px 32px;
+ max-width: 720px; margin: 0 auto;
+ }
+ .vclose-eyebrow {
+ font-family: var(--font-mono); font-size: 11px;
+ letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-3);
+ display: flex; align-items: center; gap: 8px;
+ }
+ .vclose-eyebrow::before {
+ content: ""; width: 5px; height: 5px; border-radius: 50%;
+ background: var(--text-3); box-shadow: 0 0 5px var(--text-3);
+ animation: pulse-green 2.4s ease-in-out infinite;
+ }
+ .vclose-title {
+ font-family: var(--font-display);
+ font-size: clamp(48px, 7vw, 96px);
+ line-height: 0.92; letter-spacing: -0.045em;
+ font-weight: 600; margin: 0; color: var(--text);
+ }
+ .vclose-title em { font-style: normal; color: var(--text-3); font-weight: 500; }
+ .vclose-sub {
+ font-size: 17px; color: var(--text-2); max-width: 460px; line-height: 1.55; margin: 0;
+ }
+ .vclose-chips {
+ display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
+ margin-top: 8px;
+ }
+ @media (prefers-reduced-motion: reduce) {
+ .vclose-eyebrow::before { animation: none !important; }
+ .vclose-agent { opacity: 1 !important; transition: none !important; }
+ }
+
+
+ /* ── PLAYGROUND ──────────────────────────────────────────── */
+ .pg {
+ border: 1px solid var(--hairline); border-radius: 14px;
+ overflow: hidden; background: var(--hairline);
+ display: flex; flex-direction: column; gap: 1px;
+ }
+ .pg-toolbar {
+ display: flex; align-items: center; justify-content: space-between;
+ padding: 10px 16px; background: var(--surface-0);
+ }
+ .pg-tabs { display: flex; gap: 2px; }
+ .pg-tab {
+ padding: 5px 12px; border-radius: 5px;
+ font-family: var(--font-mono); font-size: 11.5px;
+ color: var(--text-3); background: transparent; border: 0;
+ cursor: pointer; transition: background 0.12s, color 0.12s;
+ }
+ .pg-tab:hover { color: var(--text-2); }
+ .pg-tab.active { background: var(--surface-2); color: var(--text); }
+ .pg-toolbar-end { display: flex; gap: 6px; align-items: center; }
+ .pg-copy {
+ background: transparent; color: var(--text);
+ border: 1px solid var(--hairline-strong);
+ padding: 5px 12px; border-radius: 6px;
+ font-family: var(--font-mono); font-size: 11.5px;
+ cursor: pointer; transition: border-color 0.15s, background 0.15s;
+ }
+ .pg-copy:hover { border-color: var(--text); }
+ .pg-copy.copied { background: var(--text); color: var(--bg); border-color: var(--text); }
+
+ /* Controls strip */
+ .pg-controls {
+ display: flex; gap: 1px; background: var(--hairline);
+ }
+ @media (max-width: 980px) { .pg-controls { flex-wrap: wrap; } }
+ .pg-control-group {
+ background: var(--surface-0); padding: 10px 16px;
+ display: flex; align-items: center; gap: 10px;
+ }
+ .pg-avatars-group { flex: 1.5; min-width: 0; overflow: hidden; }
+ .pg-control-label {
+ font-family: var(--font-mono); font-size: 10px;
+ letter-spacing: 0.18em; text-transform: uppercase;
+ color: var(--text-4); flex-shrink: 0;
+ }
+ .pg-chips { display: flex; gap: 4px; flex-wrap: wrap; }
+ .pg-chip {
+ padding: 4px 10px; border-radius: 5px;
+ font-family: var(--font-mono); font-size: 11px;
+ color: var(--text-3); background: transparent;
+ border: 1px solid var(--hairline-strong); cursor: pointer;
+ transition: border-color 0.12s, color 0.12s, background 0.12s;
+ white-space: nowrap;
+ }
+ .pg-chip:hover { border-color: var(--text-3); color: var(--text-2); }
+ .pg-chip.active {
+ border-color: rgba(255,255,255,0.5); color: var(--text);
+ background: rgba(255,255,255,0.08);
+ }
+
+ /* Avatar row */
+ .pg-avatar-row {
+ display: flex; gap: 6px; overflow-x: auto;
+ scrollbar-width: none; padding: 2px;
+ }
+ .pg-avatar-row::-webkit-scrollbar { display: none; }
+ .pg-avatar-item {
+ flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
+ border: 2px solid transparent; cursor: pointer; overflow: hidden;
+ transition: border-color 0.15s, transform 0.15s;
+ background: var(--surface-2); padding: 0;
+ }
+ .pg-avatar-item:hover { border-color: var(--text-3); transform: scale(1.1); }
+ .pg-avatar-item.active { border-color: var(--text); }
+ .pg-avatar-item img {
+ width: 100%; height: 100%; object-fit: cover; display: block;
+ border-radius: 50%;
+ }
+ .pg-avatar-item .pg-avatar-initial {
+ width: 100%; height: 100%; display: none;
+ align-items: center; justify-content: center;
+ font-family: var(--font-mono); font-size: 11px; font-weight: 600;
+ color: var(--text-3); text-transform: uppercase; line-height: 1;
+ }
+
+ /* Split: code + preview */
+ .pg-split {
+ display: grid; grid-template-columns: 1fr 1fr;
+ gap: 1px; background: var(--hairline); min-height: 480px;
+ }
+ @media (max-width: 980px) { .pg-split { grid-template-columns: 1fr; } }
+
+ .pg-left {
+ background: var(--surface-0);
+ display: flex; flex-direction: column;
+ }
+ .pg-editor-head {
+ padding: 10px 16px; border-bottom: 1px solid var(--hairline);
+ font-family: var(--font-mono); font-size: 11px;
+ color: var(--text-4); letter-spacing: 0.08em;
+ }
+
+ /* Editor: textarea overlay on pre for highlighting */
+ .pg-editor {
+ position: relative; flex: 1; min-height: 320px;
+ }
+ .pg-editor textarea,
+ .pg-editor pre {
+ font-family: var(--font-mono); font-size: 13px; line-height: 1.75;
+ padding: 20px 24px; margin: 0; border: 0;
+ position: absolute; top: 0; left: 0;
+ width: 100%; height: 100%;
+ white-space: pre; word-wrap: normal; overflow-wrap: normal;
+ tab-size: 2; box-sizing: border-box; overflow: auto;
+ }
+ .pg-editor textarea {
+ resize: none; background: transparent;
+ color: transparent; caret-color: var(--text);
+ z-index: 2; outline: none;
+ -webkit-text-fill-color: transparent;
+ }
+ .pg-editor pre {
+ pointer-events: none; z-index: 1;
+ color: var(--text-2); background: transparent;
+ }
+ .pg-editor pre .tag { color: #d3d3d3; }
+ .pg-editor pre .attr { color: #989898; }
+ .pg-editor pre .str { color: #f6f6f6; }
+ .pg-editor pre .com { color: var(--text-4); }
+ .pg-editor pre .kw { color: var(--text-3); }
+
+ .pg-right {
+ background: var(--surface-0);
+ display: flex; flex-direction: column; position: relative;
+ }
+ .pg-preview-head {
+ padding: 10px 16px; border-bottom: 1px solid var(--hairline);
+ font-family: var(--font-mono); font-size: 11px;
+ color: var(--text-4); letter-spacing: 0.08em;
+ display: flex; justify-content: space-between; align-items: center;
+ }
+ .pg-status {
+ color: var(--text-3); display: flex; align-items: center; gap: 6px;
+ }
+ .pg-status::before {
+ content: ""; width: 5px; height: 5px; border-radius: 50%;
+ background: var(--green); box-shadow: 0 0 5px var(--green);
+ animation: pulse-green 2.4s ease-in-out infinite;
+ }
+ .pg-preview {
+ flex: 1; position: relative; min-height: 340px;
+ transition: background-color 0.3s;
+ overflow: hidden;
+ }
+ .pg-preview agent-3d {
+ position: absolute; inset: 0; display: block;
+ width: 100%; height: 100%;
+ }
+
+ /* Animation bar */
+ .pg-anims {
+ padding: 10px 16px; border-top: 1px solid var(--hairline);
+ display: flex; gap: 4px; flex-wrap: wrap;
+ position: relative; z-index: 2;
+ }
+ .pg-anim {
+ padding: 4px 10px; border-radius: 5px;
+ font-family: var(--font-mono); font-size: 11px;
+ color: var(--text-3); background: transparent;
+ border: 1px solid var(--hairline-strong); cursor: pointer;
+ transition: border-color 0.12s, color 0.12s, background 0.12s;
+ }
+ .pg-anim:hover { border-color: var(--text-3); color: var(--text-2); }
+ .pg-anim.active {
+ border-color: rgba(255,255,255,0.5); color: var(--text);
+ background: rgba(255,255,255,0.08);
+ }
+
+ .pg-copy:focus-visible, .pg-tab:focus-visible, .pg-chip:focus-visible,
+ .pg-anim:focus-visible, .pg-avatar-item:focus-visible {
+ outline: 2px solid rgba(255,255,255,0.5); outline-offset: 2px;
+ }
+
+ /* ── COLOR PICKER ────────────────────────────────────────── */
+ .pg-color-trigger {
+ position: relative;
+ width: 26px; height: 26px; border-radius: 6px;
+ border: 1px solid var(--hairline-strong);
+ cursor: pointer; flex-shrink: 0;
+ background: conic-gradient(
+ from 0deg,
+ #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000
+ );
+ transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
+ padding: 0;
+ }
+ .pg-color-trigger:hover {
+ border-color: var(--text-3);
+ transform: scale(1.1);
+ }
+ .pg-color-trigger.active {
+ border-color: var(--text);
+ box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
+ }
+ .pg-color-trigger.has-color {
+ background: var(--pg-picked-color, #888);
+ }
+ .pg-color-popover {
+ position: absolute;
+ top: calc(100% + 8px);
+ left: 50%;
+ transform: translateX(-50%);
+ z-index: 50;
+ background: var(--surface-1);
+ border: 1px solid var(--hairline-strong);
+ border-radius: 10px;
+ padding: 14px;
+ box-shadow: 0 12px 40px -8px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
+ display: none;
+ flex-direction: column;
+ gap: 10px;
+ width: 220px;
+ }
+ .pg-color-popover.open {
+ display: flex;
+ animation: pg-pop-in 0.18s cubic-bezier(.2,.7,.3,1);
+ }
+ @keyframes pg-pop-in {
+ from { opacity: 0; transform: translateY(-4px) scale(0.97); }
+ to { opacity: 1; transform: translateY(0) scale(1); }
+ }
+ .pg-color-popover-label {
+ font-family: var(--font-mono); font-size: 10px;
+ letter-spacing: 0.15em; text-transform: uppercase;
+ color: var(--text-4);
+ }
+ .pg-color-swatches {
+ display: grid;
+ grid-template-columns: repeat(6, 1fr);
+ gap: 5px;
+ }
+ .pg-color-swatch {
+ width: 100%; aspect-ratio: 1; border-radius: 5px;
+ border: 2px solid transparent;
+ cursor: pointer; padding: 0;
+ transition: border-color 0.12s, transform 0.12s;
+ }
+ .pg-color-swatch:hover {
+ border-color: rgba(255,255,255,0.4);
+ transform: scale(1.12);
+ }
+ .pg-color-swatch.active {
+ border-color: var(--text);
+ }
+ .pg-color-hex-row {
+ display: flex; align-items: center; gap: 6px;
+ }
+ .pg-color-hex-input {
+ flex: 1;
+ background: var(--surface-2);
+ border: 1px solid var(--hairline-strong);
+ border-radius: 5px;
+ padding: 6px 8px;
+ font-family: var(--font-mono);
+ font-size: 12px;
+ color: var(--text);
+ outline: none;
+ transition: border-color 0.15s;
+ }
+ .pg-color-hex-input:focus { border-color: var(--text-3); }
+ .pg-color-preview {
+ width: 28px; height: 28px; border-radius: 5px;
+ border: 1px solid var(--hairline-strong);
+ flex-shrink: 0;
+ }
+
+ @media (prefers-reduced-motion: reduce) {
+ .pg-status::before { animation: none !important; }
+ }
+
+ /* ── LIVE FEATURE AGENTS ──────────────────────────────────── */
+ .door-screenshot { position: relative; }
+ .door-agent { position: absolute; inset: 0; }
+ .door-agent agent-3d {
+ width: 100%; height: 100%; display: block;
+ pointer-events: none;
+ transition: transform 0.4s cubic-bezier(.2,.7,.3,1);
+ }
+ .door:hover .door-agent agent-3d { transform: scale(1.03); }
+ .door-earn-overlay {
+ position: absolute; bottom: 10px; left: 10px; right: 10px;
+ padding: 10px 14px; z-index: 2;
+ background: rgba(5,5,5,0.82); backdrop-filter: blur(12px);
+ border: 1px solid var(--hairline-strong); border-radius: 7px;
+ display: flex; justify-content: space-between; align-items: baseline;
+ pointer-events: none;
+ }
+ .door-earn-val {
+ font-family: var(--font-display); font-size: 18px; font-weight: 600;
+ letter-spacing: -0.02em; color: var(--text);
+ font-variant-numeric: tabular-nums;
+ }
+ .door-earn-lbl {
+ font-family: var(--font-mono); font-size: 9px;
+ letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-3);
+ }
+ .bento-screenshot { position: relative; }
+ .bento-agent { position: absolute; inset: 0; }
+ .bento-agent agent-3d { width: 100%; height: 100%; display: block; }
+ .bento-agent-mini {
+ position: relative; height: 200px;
+ border-radius: 7px; overflow: hidden;
+ border: 1px solid var(--hairline-strong);
+ background: var(--surface-2); margin-top: 8px;
+ }
+ .bento-agent-mini agent-3d {
+ position: absolute; inset: 0;
+ width: 100%; height: 100%; display: block;
+ }
+ .bento-pill-btn {
+ cursor: pointer; background: transparent;
+ font-family: var(--font-mono); font-size: 11px;
+ letter-spacing: 0.1em; text-transform: uppercase;
+ color: var(--text-3); border: 1px solid var(--hairline-strong);
+ padding: 3px 8px; border-radius: 4px;
+ transition: border-color 0.12s, color 0.12s, background 0.12s;
+ }
+ .bento-pill-btn:hover { border-color: var(--text-3); color: var(--text-2); }
+ .bento-pill-btn.active {
+ border-color: rgba(255,255,255,0.5); color: var(--text);
+ background: rgba(255,255,255,0.08);
+ }
+
+ /* ── WALK IFRAME ─────────────────────────────────────────── */
+ .walk-iframe-wrap {
+ position: relative; aspect-ratio: 4/3;
+ overflow: hidden; border-radius: 0 0 13px 13px;
+ }
+ .walk-iframe {
+ position: absolute; inset: 0;
+ width: 100%; height: 100%; border: 0;
+ background: var(--surface-2);
+ }
+
+ /* ── AVATAR DROP ──────────────────────────────────────────────── */
+ .body-drop {
+ position: relative;
+ min-height: 70vh;
+ display: flex;
+ align-items: center;
+ overflow: visible;
+ }
+ .body-drop-content {
+ position: relative; z-index: 10;
+ max-width: 560px;
+ padding: 80px 0 140px;
+ }
+ .body-drop-title {
+ font-family: var(--font-display);
+ font-size: clamp(44px, 5.5vw, 80px);
+ line-height: 0.95; letter-spacing: -0.04em;
+ font-weight: 600; margin: 0 0 24px;
+ }
+ .body-drop-title em { font-style: normal; color: var(--text-3); font-weight: 500; }
+ #drop-sit-line {
+ text-shadow: var(--drop-shadow, none);
+ transition: text-shadow 90ms linear;
+ }
+ .body-drop-sub {
+ font-size: 17px; color: var(--text-2);
+ max-width: 440px; line-height: 1.55; margin: 0 0 44px;
+ }
+ #drop-canvas {
+ position: absolute; inset: 0;
+ width: 100%; height: 100%;
+ pointer-events: none; z-index: 20;
+ }
+ .body-drop .cta-row { position: relative; z-index: 10; }
+ .body-drop .btn { transform-origin: bottom center; will-change: transform; }
+ @media (max-width: 720px) {
+ .body-drop { min-height: auto; }
+ .body-drop-content { padding: 48px 0 100px; }
+ }
+
+ /* ── MANIFESTO ──────────────────────────────────────────── */
+ .manifesto {
+ display: flex;
+ flex-direction: column;
+ gap: 0;
+ }
+ .manifesto-beat {
+ padding: 64px 0;
+ border-bottom: 1px solid var(--hairline);
+ }
+ .manifesto-beat:first-child { padding-top: 0; }
+ .manifesto-beat:last-child { border-bottom: none; padding-bottom: 0; }
+
+ .manifesto-statement {
+ font-family: var(--font-display);
+ font-size: clamp(36px, 4.8vw, 68px);
+ line-height: 1.05;
+ letter-spacing: -0.04em;
+ font-weight: 600;
+ margin: 0;
+ color: var(--text);
+ }
+ .manifesto-statement em {
+ font-style: normal;
+ color: var(--text-3);
+ font-weight: 500;
+ }
+ .manifesto-statement--dim {
+ color: var(--text-3);
+ }
+
+ .manifesto-aside {
+ font-size: 17px;
+ color: var(--text-3);
+ margin: 20px 0 0;
+ max-width: 540px;
+ line-height: 1.6;
+ }
+
+ .manifesto-steps {
+ display: flex;
+ flex-direction: column;
+ gap: 6px;
+ }
+ .manifesto-step {
+ font-family: var(--font-display);
+ font-size: clamp(22px, 2.8vw, 36px);
+ font-weight: 500;
+ letter-spacing: -0.02em;
+ color: var(--text-4);
+ line-height: 1.2;
+ }
+ .manifesto-step:nth-child(2) { color: var(--text-3); }
+ .manifesto-step:nth-child(3) { color: var(--text-2); }
+
+ .manifesto-lead {
+ font-size: clamp(18px, 2vw, 22px);
+ color: var(--text-3);
+ margin: 0 0 28px;
+ line-height: 1.5;
+ max-width: 480px;
+ }
+ .manifesto-keyword {
+ font-family: var(--font-display);
+ font-size: clamp(80px, 14vw, 180px);
+ line-height: 0.88;
+ letter-spacing: -0.055em;
+ font-weight: 700;
+ margin: 0;
+ color: var(--text);
+ position: relative;
+ }
+ .manifesto-keyword::after {
+ content: "";
+ position: absolute;
+ left: 0; right: 30%; bottom: -4px;
+ height: 2px;
+ background: linear-gradient(90deg, var(--text-3), transparent);
+ opacity: 0.4;
+ }
+
+ .manifesto-negations {
+ margin-bottom: 36px;
+ display: flex;
+ flex-direction: column;
+ gap: 6px;
+ }
+ .manifesto-neg {
+ font-size: clamp(16px, 1.6vw, 19px);
+ color: var(--text-4);
+ margin: 0;
+ line-height: 1.5;
+ text-decoration: line-through;
+ text-decoration-color: rgba(255,255,255,0.15);
+ text-decoration-thickness: 1px;
+ }
+ .manifesto-affirmation {
+ font-family: var(--font-display);
+ font-size: clamp(24px, 3vw, 40px);
+ line-height: 1.2;
+ letter-spacing: -0.025em;
+ font-weight: 600;
+ color: var(--text);
+ margin: 0;
+ max-width: 640px;
+ }
+
+ .manifesto-body {
+ font-size: 17px;
+ color: var(--text-2);
+ margin: 28px 0 0;
+ max-width: 560px;
+ line-height: 1.65;
+ }
+
+ .manifesto-caps {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ margin-bottom: 28px;
+ }
+ .manifesto-cap {
+ font-family: var(--font-mono);
+ font-size: 11.5px;
+ letter-spacing: 0.1em;
+ text-transform: uppercase;
+ color: var(--text-2);
+ padding: 8px 16px;
+ border: 1px solid var(--hairline-strong);
+ border-radius: 999px;
+ transition: border-color 0.2s, color 0.2s, background 0.2s;
+ }
+ .manifesto-cap:hover {
+ border-color: var(--text-3);
+ color: var(--text);
+ background: rgba(255,255,255,0.03);
+ }
+
+ .manifesto-close-dim {
+ font-family: var(--font-display);
+ font-size: clamp(22px, 2.8vw, 36px);
+ font-weight: 500;
+ letter-spacing: -0.02em;
+ color: var(--text-4);
+ margin: 0 0 12px;
+ line-height: 1.15;
+ }
+ .manifesto-close {
+ font-family: var(--font-display);
+ font-size: clamp(40px, 5.5vw, 76px);
+ line-height: 1.0;
+ letter-spacing: -0.04em;
+ font-weight: 600;
+ margin: 0;
+ color: var(--text);
+ }
+
+ .manifesto-embed {
+ font-family: var(--font-mono);
+ font-size: 13px;
+ color: var(--text-3);
+ margin: 20px 0 0;
+ letter-spacing: 0.02em;
+ }
+ .manifesto-embed code {
+ color: var(--text);
+ font-weight: 500;
+ }
+
+ @media (max-width: 720px) {
+ .manifesto-beat { padding: 44px 0; }
+ .manifesto-keyword::after { right: 10%; }
+ }
+ /* ── INTERACTIVE BENTO DEMOS ─────────────────────────────── */
+ .bento-interact{margin-top:10px;position:relative}
+ .bento-action-btn{display:inline-flex;align-items:center;gap:7px;padding:8px 16px;border-radius:7px;font-family:var(--font-mono);font-size:11.5px;letter-spacing:0.06em;color:var(--text);background:var(--surface-2);border:1px solid var(--hairline-strong);cursor:pointer;transition:border-color .15s,background .15s,transform .12s}
+ .bento-action-btn:hover{border-color:var(--text-3);background:rgba(255,255,255,.06);transform:translateY(-1px)}
+ .bento-action-btn:active{transform:translateY(0)}
+ .bento-action-btn:focus-visible{outline:2px solid rgba(255,255,255,.5);outline-offset:2px}
+ .bento-action-btn.sm{padding:5px 11px;font-size:10.5px}
+ .studio-zone{display:flex;gap:8px;align-items:stretch}
+ .studio-drop{flex:1;border:1px dashed var(--hairline-strong);border-radius:8px;padding:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;transition:border-color .2s,background .2s;font-family:var(--font-mono);font-size:11px;color:var(--text-3);text-align:center;min-height:80px}
+ .studio-drop:hover,.studio-drop.drag-over{border-color:var(--text-2);background:rgba(255,255,255,.03)}
+ .studio-drop-icon{font-size:22px;opacity:.5}
+ .studio-processing{display:none;align-items:center;justify-content:center;gap:10px;padding:12px;font-family:var(--font-mono);font-size:11px;color:var(--text-3)}
+ .studio-processing.active{display:flex}
+ .studio-processing-ring{width:18px;height:18px;border:2px solid var(--hairline-strong);border-top-color:var(--text-2);border-radius:50%;animation:walk-spin .7s linear infinite}
+ .studio-preview-img{width:48px;height:48px;border-radius:50%;object-fit:cover;border:1px solid var(--hairline-strong);display:none}
+ .studio-preview-img.show{display:block}
+ .studio-done{display:none;align-items:center;gap:8px;font-family:var(--font-mono);font-size:11px;color:var(--text-2)}
+ .studio-done.show{display:flex}
+ .studio-done-check{width:18px;height:18px;border-radius:50%;background:var(--text);color:var(--bg);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700}
+ .mocap-demo{display:flex;flex-direction:column;gap:8px}
+ .mocap-bar{display:flex;align-items:center;gap:10px}
+ .mocap-waveform{width:100%;height:48px;border-radius:6px;background:var(--surface-2);border:1px solid var(--hairline-strong);display:block}
+ .mocap-status{font-family:var(--font-mono);font-size:10px;letter-spacing:.1em;color:var(--text-4);text-align:center}
+ .mocap-status.live{color:var(--text-2)}
+ .walk-minimap-wrap{position:relative;border-radius:8px;overflow:hidden;border:1px solid var(--hairline-strong);background:#0a0d12}
+ .walk-minimap{width:100%;height:140px;display:block;cursor:crosshair}
+ .walk-minimap:focus{outline:2px solid rgba(255,255,255,.3);outline-offset:-2px}
+ .walk-minimap-hud{position:absolute;top:6px;left:8px;display:flex;align-items:center;gap:6px;font-family:var(--font-mono);font-size:9px;color:var(--text-3);letter-spacing:.08em}
+ .walk-minimap-dot{width:5px;height:5px;border-radius:50%;background:#4ade80;box-shadow:0 0 4px #4ade8088}
+ .walk-minimap-hint{position:absolute;bottom:6px;left:50%;transform:translateX(-50%);font-family:var(--font-mono);font-size:8.5px;color:var(--text-4);letter-spacing:.06em;white-space:nowrap}
+ .walk-minimap-hint kbd{display:inline-block;padding:0 3px;border:1px solid var(--hairline-strong);border-radius:2px;font-family:var(--font-mono);font-size:8px;background:var(--surface-2)}
+ .x402-demo{display:flex;flex-direction:column;gap:8px}
+ .x402-step{display:flex;align-items:center;gap:10px;padding:10px 14px;background:var(--surface-2);border:1px solid var(--hairline-strong);border-radius:8px;transition:all .3s ease}
+ .x402-code{font-family:var(--font-mono);font-size:11.5px;color:var(--text-2);flex:1}
+ .x402-code.err{color:#f87171}
+ .x402-code.ok{color:#4ade80}
+ .x402-spinner{width:16px;height:16px;border:2px solid var(--hairline-strong);border-top-color:var(--text-2);border-radius:50%;animation:walk-spin .6s linear infinite;display:none}
+ .x402-amount{font-family:var(--font-display);font-size:14px;font-weight:600;color:#4ade80;display:none}
+ .x402-amount.show{display:block}
+ .mint-demo{perspective:600px}
+ .mint-card{position:relative;padding:16px;background:var(--surface-2);border:1px solid var(--hairline-strong);border-radius:10px;transition:transform .6s cubic-bezier(.2,.7,.3,1),box-shadow .3s,border-color .3s}
+ .mint-card.minted{border-color:rgba(255,255,255,.2);box-shadow:0 0 20px -4px rgba(255,255,255,.08)}
+ .mint-card-inner{display:flex;align-items:center;justify-content:space-between;gap:10px}
+ .mint-card-info{display:flex;flex-direction:column;gap:2px}
+ .mint-card-label{font-family:var(--font-mono);font-size:10px;letter-spacing:.15em;text-transform:uppercase;color:var(--text-4);transition:color .3s}
+ .mint-card-name{font-family:var(--font-display);font-size:16px;font-weight:600;color:var(--text)}
+ .mint-card-chain{font-family:var(--font-mono);font-size:10px;color:var(--text-3);display:none}
+ .mint-card.minted .mint-card-chain{display:block}
+ .mint-card.minted .mint-card-label{color:#4ade80}
+ .mint-progress{width:28px;height:28px;position:relative;display:none}
+ .mint-progress.active{display:block}
+ .mint-progress svg{width:100%;height:100%;transform:rotate(-90deg)}
+ .mint-progress circle{fill:none;stroke-width:3;stroke:var(--text-2);stroke-linecap:round;stroke-dasharray:78.5;stroke-dashoffset:78.5;transition:stroke-dashoffset 1.2s cubic-bezier(.2,.7,.3,1)}
+ .mint-progress.done circle{stroke-dashoffset:0;stroke:#4ade80}
+ .skill-demo{display:flex;flex-direction:column;gap:8px}
+ .skill-result{background:var(--surface-2);border:1px solid var(--hairline-strong);border-radius:7px;padding:10px 14px;font-family:var(--font-mono);font-size:11px;color:var(--text-2);line-height:1.6;max-height:100px;overflow-y:auto;transition:border-color .3s}
+ .skill-result.fresh{border-color:rgba(255,255,255,.2)}
+ .skill-result .json-key{color:#60a5fa}
+ .skill-result .json-str{color:#4ade80}
+ .skill-result .json-num{color:#fbbf24}
+ .memory-demo{display:flex;flex-direction:column;gap:8px}
+ .memory-input-row{display:flex;gap:6px}
+ .memory-input{flex:1;background:var(--surface-2);border:1px solid var(--hairline-strong);border-radius:6px;padding:7px 10px;font-family:var(--font-mono);font-size:11.5px;color:var(--text);outline:none;transition:border-color .15s}
+ .memory-input:focus{border-color:var(--text-3)}
+ .memory-input::placeholder{color:var(--text-4)}
+ .memory-log{display:flex;flex-direction:column;gap:4px;max-height:72px;overflow-y:auto}
+ .memory-entry{font-family:var(--font-mono);font-size:10.5px;color:var(--text-3);line-height:1.5;padding:3px 0;animation:mem-in .3s ease}
+ .memory-entry .mem-op{color:var(--text-4);margin-right:4px}
+ .memory-entry .mem-val{color:var(--text-2)}
+ @keyframes mem-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
+ .ar-demo{display:flex;align-items:center;gap:12px}
+ .ar-phone{width:64px;height:100px;border:2px solid var(--hairline-strong);border-radius:10px;background:var(--surface-2);position:relative;overflow:hidden;flex-shrink:0;transition:border-color .3s}
+ .ar-phone.active{border-color:var(--text-3)}
+ .ar-phone-notch{width:24px;height:4px;background:var(--hairline-strong);border-radius:2px;margin:4px auto 0}
+ .ar-phone-screen{position:absolute;inset:10px 3px 6px;background:#111;border-radius:4px;display:flex;align-items:center;justify-content:center;overflow:hidden}
+ .ar-phone-avatar{width:32px;height:32px;border-radius:50%;background:var(--surface-1);border:1px solid var(--hairline-strong);display:flex;align-items:center;justify-content:center;font-size:14px;opacity:0;transition:opacity .4s,transform .4s}
+ .ar-phone.active .ar-phone-avatar{opacity:1;transform:scale(1.1)}
+ .ar-phone-crosshair{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;opacity:0;transition:opacity .3s}
+ .ar-phone.active .ar-phone-crosshair{opacity:.5}
+ .ar-phone-crosshair::before,.ar-phone-crosshair::after{content:'';position:absolute;background:var(--text-3)}
+ .ar-phone-crosshair::before{width:16px;height:1px}
+ .ar-phone-crosshair::after{width:1px;height:16px}
+ .ar-info{display:flex;flex-direction:column;gap:4px}
+ .ar-status{font-family:var(--font-mono);font-size:10px;color:var(--text-4);letter-spacing:.08em}
+ .ar-status.ready{color:#4ade80}
+ .mktplace-strip{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px 0}
+ .mktplace-strip::-webkit-scrollbar{display:none}
+ .mktplace-item{flex-shrink:0;width:52px;height:52px;border-radius:10px;overflow:hidden;border:1px solid var(--hairline-strong);cursor:pointer;background:var(--surface-2);transition:border-color .15s,transform .15s;position:relative;display:block}
+ .mktplace-item:hover{border-color:var(--text-3);transform:translateY(-2px)}
+ .mktplace-item img{width:100%;height:100%;object-fit:cover;display:block}
+ .mktplace-item-name{position:absolute;bottom:0;left:0;right:0;padding:2px 4px;font-family:var(--font-mono);font-size:7px;color:var(--text);background:rgba(0,0,0,.7);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
+ .mktplace-more{flex-shrink:0;width:52px;height:52px;border-radius:10px;border:1px dashed var(--hairline-strong);display:flex;align-items:center;justify-content:center;font-family:var(--font-mono);font-size:18px;color:var(--text-4);cursor:pointer;transition:border-color .15s,color .15s;text-decoration:none}
+ .mktplace-more:hover{border-color:var(--text-3);color:var(--text-2)}
+ .analytics-demo{display:flex;flex-direction:column;gap:10px}
+ .analytics-counters{display:flex;gap:16px}
+ .analytics-counter{display:flex;flex-direction:column;gap:1px}
+ .analytics-val{font-family:var(--font-display);font-size:18px;font-weight:600;color:var(--text);font-variant-numeric:tabular-nums;letter-spacing:-0.02em}
+ .analytics-lbl{font-family:var(--font-mono);font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:var(--text-4)}
+ .analytics-spark{width:100%;height:40px;display:block}
+ .analytics-spark path{fill:none;stroke:var(--text-2);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
+ .analytics-spark .spark-fill{fill:url(#spark-grad);stroke:none;opacity:.15}
+ .analytics-spark .spark-dot{fill:var(--text);r:2.5;animation:spark-pulse 2s ease-in-out infinite}
+ @keyframes spark-pulse{0%,100%{opacity:1}50%{opacity:.4}}
+ </style>
+ <noscript><style>.reveal{opacity:1!important;transform:none!important}.hero-text>*{opacity:1!important;transform:none!important}</style></noscript>
+ <script type="module" src="https://three.ws/agent-3d/latest/agent-3d.js"></script>
+</head>
+<body>
+
+<!-- ── NAV ──────────────────────────────────────────────────────── -->
+<header class="nav">
+ <div class="nav-inner">
+ <a class="brand" href="/">
+ <span class="brand-mark"></span>
+ <span>three.ws</span>
+ </a>
+ <nav class="nav-main" aria-label="Primary">
+ <a href="/create">Build</a>
+ <a href="#embed">Embed</a>
+ <a href="/discover">Discover</a>
+ <a href="/pricing">Pricing</a>
+ <a href="/docs">Docs</a>
+ </nav>
+ <div class="nav-end">
+ <a href="/login">Sign in</a>
+ <a class="console" href="/dashboard">Console →</a>
+ </div>
+ <button class="nav-toggle" aria-label="Menu" aria-expanded="false" id="nav-toggle">
+ <svg class="open" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"><line x1="2" y1="4" x2="14" y2="4"/><line x1="2" y1="8" x2="14" y2="8"/><line x1="2" y1="12" x2="14" y2="12"/></svg>
+ <svg class="close" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"><line x1="3" y1="3" x2="13" y2="13"/><line x1="13" y1="3" x2="3" y2="13"/></svg>
+ </button>
+ </div>
+</header>
+<nav class="nav-drawer" id="nav-drawer" aria-label="Mobile" aria-hidden="true">
+ <a href="/create">Build</a>
+ <a href="#embed">Embed</a>
+ <a href="/discover">Discover</a>
+ <a href="/pricing">Pricing</a>
+ <a href="/docs">Docs</a>
+ <div class="sep"></div>
+ <a href="/login">Sign in</a>
+ <a class="btn primary" href="/dashboard" style="margin-top:4px;">Console →</a>
+</nav>
+
+<!-- ── HERO ─────────────────────────────────────────────────────── -->
+<section class="hero">
+ <div class="hero-text">
+ <div class="eyebrow">Open beta · live now</div>
+ <h1 class="hero-h">
+ The 3D agent<br/>
+ layer of the<br/>
+ <em>internet.</em>
+ </h1>
+ <ul class="hero-bullets">
+ <li><strong>Create</strong> a 3D AI agent from a selfie in 60 seconds</li>
+ <li><strong>Embed</strong> it on any website with two lines of HTML</li>
+ <li><strong>Earn</strong> USDC per chat with x402 micropayments</li>
+ </ul>
+ <div class="hero-cta-row">
+ <a class="btn primary" href="/create">Build your agent <span class="arrow">→</span></a>
+ <a class="btn" href="#embed">See the embed</a>
+ </div>
+ </div>
+ <div class="hero-stage" id="hero-stage">
+ <span class="stage-marker">live</span>
+ <div class="hero-stage-shimmer" id="hero-shimmer"></div>
+ <div class="hero-stage-inner" id="hero-stage-inner"></div>
+ <div class="hero-thought" id="hero-thought" aria-live="polite" aria-atomic="true">
+ <div class="hero-thought-inner" id="hero-thought-text"></div>
+ <div class="hero-thought-tail"></div>
+ </div>
+ <div class="hero-chat-bar" id="hero-chat-bar">
+ <form class="hero-chat-form" id="hero-chat-form" autocomplete="off">
+ <input class="hero-chat-input" id="hero-chat-input" type="text" placeholder="Ask the avatar anything..." aria-label="Chat with the avatar" />
+ <button class="hero-chat-send" id="hero-chat-send" type="submit" aria-label="Send message">
+ <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2L7 9"/><path d="M14 2L9.5 14L7 9L2 6.5L14 2Z"/></svg>
+ </button>
+ </form>
+ <div class="hero-chat-hint">press enter to chat</div>
+ </div>
+ <div class="stage-meta">
+ <span>nich</span>
+ <span>/api/avatars/bacff13e</span>
+ </div>
+ <div class="hero-chips-wrap" id="hero-chips-wrap">
+ <div class="hero-chips-label">
+ <span>click to animate · <strong class="hero-chips-counter" id="hero-chips-counter">0 moves</strong></span>
+ </div>
+ <div class="hero-chips" id="hero-chips" role="group" aria-label="Trigger an animation on the hero avatar">
+ <button type="button" class="hero-chip hero-chip--rand" data-anim="__random">🎲 Random</button>
+ <button type="button" class="hero-chip" data-anim="wave">👋 Wave</button>
+ <button type="button" class="hero-chip" data-anim="dance">💃 Dance</button>
+ <button type="button" class="hero-chip" data-anim="capoeira">🤸 Capoeira</button>
+ <button type="button" class="hero-chip" data-anim="jump">🦘 Jump</button>
+ <button type="button" class="hero-chip" data-anim="thriller">🧟 Thriller</button>
+ <button type="button" class="hero-chip" data-anim="pray">🙏 Pray</button>
+ </div>
+ </div>
+ </div>
+</section>
+
+<!-- ── STATS BAR ─────────────────────────────────────────────────── -->
+<div class="stats-bar" id="stats-bar">
+ <div class="stats-bar-inner">
+ <div class="stat-cell">
+ <div class="stat-val" id="sb-agents">—</div>
+ <div class="stat-lbl">Agents live</div>
+ </div>
+ <div class="stat-cell">
+ <div class="stat-val" id="sb-widgets">—</div>
+ <div class="stat-lbl">Widgets deployed</div>
+ </div>
+ <div class="stat-cell">
+ <div class="stat-val" id="sb-onchain">—</div>
+ <div class="stat-lbl">On-chain agents</div>
+ </div>
+ <div class="stat-cell">
+ <div class="stat-val">200+</div>
+ <div class="stat-lbl">Animation clips</div>
+ </div>
+ <div class="stat-cell">
+ <div class="stat-val">&lt;2 lines</div>
+ <div class="stat-lbl">To embed</div>
+ </div>
+ </div>
+</div>
+
+<!-- ── LOGO STRIP ────────────────────────────────────────────────── -->
+<div class="logo-strip">
+ <div class="wrap-1280">
+ <div class="logo-strip-cap">Embedded across the web</div>
+ <div class="logo-row">
+ <span class="logo">claude.ai</span>
+ <span class="logo">lobehub</span>
+ <span class="logo">agenc.tech</span>
+ <span class="logo">pump.fun</span>
+ <span class="logo">solana</span>
+ <span class="logo">metaplex</span>
+ <span class="logo">erc-8004</span>
+ <span class="logo">x402</span>
+ </div>
+ </div>
+</div>
+
+<!-- ── PLAYGROUND ──────────────────────────────────────────────────── -->
+<section class="block" id="embed">
+ <div class="wrap-1280">
+ <div class="block-head reveal">
+ <p class="block-eyebrow"><span class="num">01</span>Playground</p>
+ <h2 class="block-h">Try it live. <em>Ship it now.</em></h2>
+ <p class="block-lede">
+ Edit the code below — the preview updates instantly. Switch avatars, trigger animations, toggle features. Copy two lines when you're done.
+ </p>
+ </div>
+ <div class="pg reveal reveal-d1">
+ <div class="pg-toolbar">
+ <div class="pg-tabs" id="pg-tabs">
+ <button class="pg-tab active" data-flavor="html">HTML</button>
+ <button class="pg-tab" data-flavor="react">React</button>
+ <button class="pg-tab" data-flavor="vue">Vue</button>
+ </div>
+ <div class="pg-toolbar-end">
+ <button class="pg-copy" id="pg-copy">Copy</button>
+ </div>
+ </div>
+ <div class="pg-controls">
+ <div class="pg-control-group pg-avatars-group">
+ <span class="pg-control-label">Avatar</span>
+ <div class="pg-avatar-row" id="pg-avatars"></div>
+ </div>
+ <div class="pg-control-group">
+ <span class="pg-control-label">Mode</span>
+ <div class="pg-chips" id="pg-mode-chips">
+ <button class="pg-chip active" data-val="inline">inline</button>
+ <button class="pg-chip" data-val="widget">widget</button>
+ </div>
+ </div>
+ <div class="pg-control-group" style="position:relative">
+ <span class="pg-control-label">BG</span>
+ <div class="pg-chips" id="pg-bg-chips">
+ <button class="pg-chip active" data-val="transparent">none</button>
+ <button class="pg-chip" data-val="#0b0b0b">dark</button>
+ <button class="pg-chip" data-val="#ffffff">light</button>
+ </div>
+ <button class="pg-color-trigger" id="pg-color-trigger" aria-label="Pick a custom background color" title="Custom color"></button>
+ <div class="pg-color-popover" id="pg-color-popover">
+ <span class="pg-color-popover-label">Pick a color</span>
+ <div class="pg-color-swatches" id="pg-color-swatches"></div>
+ <div class="pg-color-hex-row">
+ <div class="pg-color-preview" id="pg-color-preview"></div>
+ <input class="pg-color-hex-input" id="pg-color-hex" type="text" placeholder="#1a1a2e" maxlength="7" spellcheck="false" autocomplete="off" />
</div>
</div>
</div>
- <!-- Depth 0.5: vignette closest to camera -->
- <div class="h-layer" style="--depth: 0.5" aria-hidden="true">
- <div class="h-vignette"></div>
+ <div class="pg-control-group">
+ <span class="pg-control-label">Features</span>
+ <div class="pg-chips" id="pg-option-chips">
+ <button class="pg-chip active" data-attr="responsive">responsive</button>
+ <button class="pg-chip" data-attr="name-plate" data-val="on">nameplate</button>
+ <button class="pg-chip" data-attr="avatar-chat" data-val="on">chat</button>
+ <button class="pg-chip active" data-attr="eager">eager</button>
+ </div>
</div>
-
- <!-- Sticky text pinned to bottom-left — same pattern as features page -->
- <div class="h-hero-text">
- <div class="h-eyebrow h-reveal">
- <span class="h-eyebrow-dot"></span>
- <span>The 3D layer for onchain AI agents</span>
+ </div>
+ <div class="pg-split">
+ <div class="pg-left">
+ <div class="pg-editor-head">index.html</div>
+ <div class="pg-editor" id="pg-editor">
+ <textarea id="pg-textarea" spellcheck="false" autocomplete="off" autocorrect="off" autocapitalize="off"></textarea>
+ <pre id="pg-highlight" aria-hidden="true"></pre>
+ </div>
+ </div>
+ <div class="pg-right">
+ <div class="pg-preview-head">
+ <span>↪ live preview</span>
+ <span class="pg-status">running</span>
</div>
- <h2 class="h-title h-reveal">Where AI Agents<br />Come <em>Alive</em>.</h2>
- <p class="h-subtitle h-reveal">
- Give any AI agent a 3D body, a voice, and an on-chain identity.
- One GLB. Any LLM. Owned on Solana. Earn USDC with every interaction.
- </p>
- <div class="h-cta-row h-reveal">
- <a href="/create" class="h-btn-primary">
- <span>Get Started Free</span>
- <span class="arrow">→</span>
- </a>
- <a href="/marketplace" class="h-btn-ghost">Browse Marketplace</a>
+ <div class="pg-preview" id="pg-preview"></div>
+ <div class="pg-anims" id="pg-anims">
+ <button class="pg-anim" data-anim="idle">Idle</button>
+ <button class="pg-anim" data-anim="wave">Wave</button>
+ <button class="pg-anim" data-anim="dance">Dance</button>
+ <button class="pg-anim" data-anim="capoeira">Capoeira</button>
+ <button class="pg-anim" data-anim="jump">Jump</button>
+ <button class="pg-anim" data-anim="thriller">Thriller</button>
+ <button class="pg-anim" data-anim="celebrate">Celebrate</button>
</div>
- <ul class="h-standards h-reveal" aria-label="Supported formats and standards">
- <li>glTF 2.0</li>
- <li>GLB</li>
- <li>Solana</li>
- <li>Metaplex Core</li>
- <li>A2A</li>
- <li>MCP</li>
- <li>x402</li>
- </ul>
</div>
+ </div>
+ </div>
+ </div>
+</section>
+
+<!-- ── MANIFESTO ────────────────────────────────────────────────── -->
+<section class="block" id="editorial">
+ <div class="wrap-1280">
+ <div class="manifesto">
+
+ <div class="manifesto-beat reveal">
+ <h2 class="manifesto-statement manifesto-statement--dim">The web was built<br>for documents.</h2>
+ <p class="manifesto-aside">Text, images, links &mdash; a flat canvas for static information.</p>
+ </div>
+
+ <div class="manifesto-beat reveal">
+ <div class="manifesto-steps">
+ <span class="manifesto-step">Then came video.</span>
+ <span class="manifesto-step">Then interactivity.</span>
+ <span class="manifesto-step">Then AI.</span>
+ </div>
+ </div>
+
+ <div class="manifesto-beat reveal">
+ <p class="manifesto-lead">But something fundamental was always missing &mdash;</p>
+ <h2 class="manifesto-keyword">presence.</h2>
+ </div>
- <div class="h-scroll-hint" aria-hidden="true">
- <span>scroll</span>
- <span class="h-scroll-line"></span>
+ <div class="manifesto-beat reveal">
+ <div class="manifesto-negations">
+ <p class="manifesto-neg">Not a chatbot tucked into a corner.</p>
+ <p class="manifesto-neg">Not a popup demanding attention.</p>
</div>
- </section>
+ <p class="manifesto-affirmation">A living digital being that inhabits your space, knows your visitors, and works while you sleep.</p>
+ </div>
- <!-- ── Traction stats bar ── -->
- <section class="h-traction" aria-label="Platform traction">
- <div class="h-traction-inner">
- <div class="h-traction-stat" data-traction-key="agents">
- <span class="h-traction-val" data-traction-val="agents">—</span>
- <span class="h-traction-label">Agents created</span>
+ <div class="manifesto-beat reveal">
+ <h2 class="manifesto-statement">three.ws gives your AI <em>a body.</em></h2>
+ <p class="manifesto-body">A 3D character generated from a single photograph, deployed with two lines of HTML, monetized through micropayments that settle instantly. Every agent remembers across sessions, moves through multiplayer worlds, and earns revenue via the x402 payment protocol.</p>
+ </div>
+
+ <div class="manifesto-beat reveal">
+ <div class="manifesto-caps">
+ <span class="manifesto-cap">200+ animations</span>
+ <span class="manifesto-cap">Real-time voice</span>
+ <span class="manifesto-cap">On-chain identity</span>
+ <span class="manifesto-cap">Cross-device memory</span>
+ <span class="manifesto-cap">Spatial multiplayer</span>
+ <span class="manifesto-cap">x402 payments</span>
+ </div>
+ <p class="manifesto-embed">All from one embed tag: <code>&lt;agent-3d&gt;</code></p>
+ </div>
+
+ <div class="manifesto-beat reveal">
+ <p class="manifesto-close-dim">The flat web had its moment.</p>
+ <h2 class="manifesto-close">The living web starts now.</h2>
+ </div>
+
+ </div>
+ </div>
+</section>
+
+<!-- ── THREE DOORS ───────────────────────────────────────────────── -->
+<section class="block">
+ <div class="wrap-1280">
+ <div class="block-head reveal">
+ <p class="block-eyebrow"><span class="num">02</span>The platform</p>
+ <h2 class="block-h">Build, embed, <em>and earn.</em></h2>
+ <p class="block-lede">
+ A full-stack platform for 3D AI agents: from selfie to on-chain identity, from embed to monetization.
+ </p>
+ </div>
+ <div class="doors reveal reveal-d1">
+ <a class="door" href="/create">
+ <div class="door-num"><span>01</span><span class="lbl">Create</span></div>
+ <div class="door-screenshot">
+ <div class="door-agent" id="door-create"></div>
+ </div>
+ <h3>Selfie to agent in 60 seconds.</h3>
+ <p>Snap a selfie or upload a GLB. Add a personality prompt, pick a voice, wire up your AI. Publish to the marketplace or keep it private.</p>
+ <span class="door-cta">Start building</span>
+ </a>
+ <a class="door" href="/docs">
+ <div class="door-num"><span>02</span><span class="lbl">Embed</span></div>
+ <div class="door-screenshot">
+ <div class="door-agent" id="door-embed"></div>
+ </div>
+ <h3>Two lines. Any page.</h3>
+ <p>Drop <code>&lt;agent-3d&gt;</code> into any page. React, Vue, Svelte, plain HTML. Voice, memory, animation, and payments built-in. Lazy-loaded by default.</p>
+ <span class="door-cta">Read the docs</span>
+ </a>
+ <a class="door" href="/dashboard/monetize">
+ <div class="door-num"><span>03</span><span class="lbl">Earn</span></div>
+ <div class="door-screenshot">
+ <div class="door-agent" id="door-earn"></div>
+ <div class="door-earn-overlay">
+ <div class="door-earn-val" id="door-earn-val">$0.00</div>
+ <div class="door-earn-lbl">USDC earned</div>
</div>
- <div class="h-traction-divider" aria-hidden="true"></div>
- <div class="h-traction-stat" data-traction-key="views">
- <span class="h-traction-val" data-traction-val="views">—</span>
- <span class="h-traction-label">Widget views</span>
+ </div>
+ <h3>Charge per chat. Keep everything.</h3>
+ <p>Gate skills behind x402 USDC micropayments. Keep 100% during open beta. Watch earnings flow in real-time from your dashboard.</p>
+ <span class="door-cta">Set up monetization</span>
+ </a>
+ </div>
+ </div>
+</section>
+
+<!-- ── FEATURE BENTO ─────────────────────────────────────────────── -->
+<section class="block">
+ <div class="wrap-1280">
+ <div class="block-head reveal">
+ <p class="block-eyebrow"><span class="num">03</span>Capabilities</p>
+ <h2 class="block-h">Every feature your <em>agent needs.</em></h2>
+ <p class="block-lede">
+ A complete platform — not a widget. Voice, motion capture, multiplayer, on-chain identity, and crypto payments built into every agent.
+ </p>
+ </div>
+ <div class="bento reveal reveal-d1">
+ <!-- Avatar Studio -->
+ <div class="bento-card span2">
+ <div class="bento-icon">
+ <span class="dot" style="background:#ffffff;box-shadow:0 0 8px #ffffff55"></span>
+ <span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)">Avatar Studio</span>
+ </div>
+ <p class="bento-title">Selfie → 3D avatar in 60 seconds</p>
+ <p class="bento-desc">Upload a photo, webcam shot, or existing GLB. Our pipeline generates a fully rigged, animatable 3D character compatible with VRM, ReadyPlayerMe, and Avaturn formats. Retargets to any animation clip instantly.</p>
+ <div class="bento-interact" id="studio-interact">
+ <div class="studio-zone" id="studio-zone">
+ <div class="studio-drop" id="studio-drop">
+ <div class="studio-drop-icon">↑</div>
+ <span>Drop a selfie or click to upload</span>
+ <input type="file" accept="image/*" id="studio-file" style="display:none" />
+ </div>
+ <button class="bento-action-btn studio-webcam-btn" id="studio-webcam-btn">Webcam</button>
</div>
- <div class="h-traction-divider" aria-hidden="true"></div>
- <div class="h-traction-stat" data-traction-key="chats">
- <span class="h-traction-val" data-traction-val="chats">—</span>
- <span class="h-traction-label">Conversations</span>
+ <div class="studio-processing" id="studio-processing">
+ <div class="studio-processing-ring"></div>
+ <img class="studio-preview-img" id="studio-preview-img" alt="" />
+ <span id="studio-processing-text">Generating 3D mesh...</span>
</div>
- <div class="h-traction-divider" aria-hidden="true"></div>
- <div class="h-traction-stat" data-traction-key="countries">
- <span class="h-traction-val" data-traction-val="countries">—</span>
- <span class="h-traction-label">Countries reached</span>
+ <div class="studio-done" id="studio-done">
+ <div class="studio-done-check">✓</div>
+ <span>Avatar generated — rigged &amp; ready</span>
</div>
- <div class="h-traction-divider" aria-hidden="true"></div>
- <div class="h-traction-stat" data-traction-key="chains">
- <span class="h-traction-val" data-traction-val="chains">—</span>
- <span class="h-traction-label">Chains supported</span>
+ </div>
+ <div class="bento-screenshot">
+ <div class="bento-agent" id="bento-studio"></div>
+ </div>
+ <div class="bento-pills">
+ <span class="bento-pill">VRM</span>
+ <span class="bento-pill">ReadyPlayerMe</span>
+ <span class="bento-pill">Avaturn</span>
+ <span class="bento-pill">GLB/GLTF</span>
+ <span class="bento-pill">Auto-rig</span>
+ </div>
+ </div>
+
+ <!-- Animations -->
+ <div class="bento-card">
+ <div class="bento-icon">
+ <span class="dot" style="background:#e8e8e8;box-shadow:0 0 8px #e8e8e855"></span>
+ <span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)">Animations</span>
+ </div>
+ <p class="bento-title">200+ motion clips</p>
+ <p class="bento-desc">Walk, dance, gesture, emote — a full library of idle loops and triggered animations that blend seamlessly. Or upload your own FBX/BVH captures.</p>
+ <div class="bento-agent-mini" id="bento-anim"></div>
+ <div class="bento-pills" id="bento-anim-pills">
+ <button class="bento-pill bento-pill-btn" data-anim="idle">Idle</button>
+ <button class="bento-pill bento-pill-btn" data-anim="av-walk-feminine">Walk</button>
+ <button class="bento-pill bento-pill-btn" data-anim="wave">Wave</button>
+ <button class="bento-pill bento-pill-btn" data-anim="dance">Dance</button>
+ <button class="bento-pill bento-pill-btn" data-anim="capoeira">Capoeira</button>
+ <button class="bento-pill bento-pill-btn" data-anim="jump">Jump</button>
+ </div>
+ </div>
+
+ <!-- Voice & Mocap -->
+ <div class="bento-card">
+ <div class="bento-icon">
+ <span class="dot" style="background:#ffffff;box-shadow:0 0 8px #ffffff55"></span>
+ <span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)">Voice + Mocap</span>
+ </div>
+ <p class="bento-title">Real-time voice &amp; face capture</p>
+ <p class="bento-desc">ElevenLabs voice cloning with LiveKit streaming. Webcam face mocap drives your avatar's expressions and lip sync in real-time — no hardware required.</p>
+ <div class="bento-interact mocap-demo" id="mocap-demo">
+ <div class="mocap-bar">
+ <button class="bento-action-btn" id="mocap-mic-btn">Microphone</button>
+ <span class="mocap-status" id="mocap-status">click to capture</span>
</div>
+ <canvas class="mocap-waveform" id="mocap-waveform" height="48"></canvas>
</div>
- </section>
-
- <!-- ── Pillars transition band (between hero and Act 2) ── -->
- <section class="h-pillars" aria-label="What you get">
- <div class="h-pillars-inner">
- <article class="h-pillar h-reveal">
- <span class="h-pillar-num">01 / Identity</span>
- <h3>A 3D body for any agent</h3>
- <p>
- Any glTF model becomes a fully rendered, animated avatar in the
- browser — embeddable in a single tag, on any site.
- </p>
- </article>
- <article class="h-pillar h-reveal">
- <span class="h-pillar-num">02 / Intelligence</span>
- <h3>Your stack, your brain</h3>
- <p>
- Connect Claude, GPT, Gemini, or your own model over MCP or A2A.
- Real-time expression and voice ride on top — no rewrites to your
- existing agent.
- </p>
- </article>
- <article class="h-pillar h-reveal">
- <span class="h-pillar-num">03 / Ownership</span>
- <h3>Owned on Solana</h3>
- <p>
- Mint a Metaplex Core asset and your agent becomes a verifiable,
- portable identity — discoverable by any A2A or MCP client.
- Your agent, your keys.
- </p>
- </article>
- </div>
- </section>
-
- <!-- ── How it works ── -->
- <section class="h-journey" aria-label="How it works">
- <div class="h-journey-inner">
- <div class="h-journey-header h-reveal">
- <p class="h-section-label">How it works</p>
- <h2 class="h-journey-title">From selfie to<br /><em>earning agent</em> in four steps.</h2>
+ <div class="bento-pills">
+ <span class="bento-pill">ElevenLabs</span>
+ <span class="bento-pill">LiveKit</span>
+ <span class="bento-pill">WebXR</span>
+ <span class="bento-pill">Lip sync</span>
+ </div>
+ </div>
+
+ <!-- Walk & Multiplayer -->
+ <div class="bento-card">
+ <div class="bento-icon">
+ <span class="dot" style="background:#f59e0b;box-shadow:0 0 8px #f59e0b55"></span>
+ <span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)">Walk &amp; Multiplayer</span>
+ </div>
+ <p class="bento-title">Multiplayer 3D worlds</p>
+ <p class="bento-desc">Walk your avatar through live environments. Multiple visitors move together in real-time — CRDT-synced positions, joystick or keyboard control, and WebSocket presence.</p>
+ <div class="bento-interact">
+ <div class="walk-minimap-wrap">
+ <canvas class="walk-minimap" id="walk-minimap" tabindex="0"></canvas>
+ <div class="walk-minimap-hud">
+ <span class="walk-minimap-dot"></span>
+ <span id="walk-player-count">4 players online</span>
+ </div>
+ <div class="walk-minimap-hint"><kbd>W</kbd><kbd>A</kbd><kbd>S</kbd><kbd>D</kbd> or click to move</div>
</div>
- <ol class="h-journey-steps">
- <li class="h-journey-step h-reveal">
- <a href="/create" class="h-journey-card">
- <div class="h-jc-num">01</div>
- <div class="h-jc-icon" aria-hidden="true">
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
- <circle cx="12" cy="8" r="4"/>
- <path d="M4 20c0-4 3.6-7 8-7s8 3 8 7"/>
- <path d="M16 3.5a4 4 0 010 9"/>
- </svg>
- </div>
- <div class="h-jc-body">
- <h3>Create your avatar</h3>
- <p>Snap a selfie or upload a GLB. three.ws renders a full-body 3D agent in the browser — no software to install.</p>
- </div>
- <span class="h-jc-cta">Start creating →</span>
- </a>
- </li>
- <li class="h-journey-step h-reveal">
- <a href="/dashboard/agents" class="h-journey-card">
- <div class="h-jc-num">02</div>
- <div class="h-jc-icon" aria-hidden="true">
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
- <rect x="5" y="2" width="14" height="14" rx="3"/>
- <circle cx="9" cy="8" r="1.2"/>
- <circle cx="15" cy="8" r="1.2"/>
- <path d="M9 11.5h6M2 19l3-3h14l3 3v2a1 1 0 01-1 1H3a1 1 0 01-1-1v-2z"/>
- </svg>
- </div>
- <div class="h-jc-body">
- <h3>Build your agent</h3>
- <p>Give your avatar a name, on-chain identity, and AI brain. Connect Claude, GPT, or your own model over MCP or A2A — no rewrites required.</p>
- </div>
- <span class="h-jc-cta">Configure agent →</span>
- </a>
- </li>
- <li class="h-journey-step h-reveal">
- <a href="/dashboard/widgets" class="h-journey-card">
- <div class="h-jc-num">03</div>
- <div class="h-jc-icon" aria-hidden="true">
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
- <rect x="2" y="3" width="9" height="9" rx="1.5"/>
- <rect x="13" y="3" width="9" height="9" rx="1.5"/>
- <rect x="2" y="14" width="9" height="9" rx="1.5"/>
- <rect x="13" y="14" width="9" height="9" rx="1.5"/>
- </svg>
- </div>
- <div class="h-jc-body">
- <h3>Embed anywhere</h3>
- <p>Drop a single <code>&lt;threews-avatar&gt;</code> tag on any site. Chat widget, floating button, full-screen — five widget types, one line of HTML.</p>
- </div>
- <span class="h-jc-cta">Create widget →</span>
- </a>
- </li>
- <li class="h-journey-step h-reveal">
- <a href="/dashboard/monetize" class="h-journey-card">
- <div class="h-jc-num">04</div>
- <div class="h-jc-icon" aria-hidden="true">
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
- <circle cx="12" cy="12" r="8.5"/>
- <path d="M12 7v10M9 9.5h4.5a2.5 2.5 0 010 5H10a2.5 2.5 0 000 5H14"/>
- </svg>
- </div>
- <div class="h-jc-body">
- <h3>Start earning</h3>
- <p>Charge per message, set a subscription, or accept tips in USDC. Your agent earns while you sleep — withdrawals land in your Solana wallet.</p>
- </div>
- <span class="h-jc-cta">Set up monetization →</span>
- </a>
- </li>
- </ol>
- <div class="h-journey-footer h-reveal">
- <a href="/create" class="h-btn-primary">
- <span>Build your agent now</span>
- <span class="arrow">→</span>
- </a>
+ </div>
+ <div class="bento-pills">
+ <span class="bento-pill">Multiplayer</span>
+ <span class="bento-pill">CRDT sync</span>
+ <span class="bento-pill">WebSocket</span>
+ </div>
+ </div>
+
+ <!-- x402 Payments -->
+ <div class="bento-card">
+ <div class="bento-icon">
+ <span class="dot" style="background:#e8e8e8;box-shadow:0 0 8px #e8e8e855"></span>
+ <span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)">x402 Payments</span>
+ </div>
+ <p class="bento-title">Charge per chat in USDC</p>
+ <p class="bento-desc">Gate any agent skill behind an x402 HTTP paywall. Visitors pay with USDC on Base or Solana. Funds land in your wallet instantly.</p>
+ <div class="bento-interact x402-demo" id="x402-demo">
+ <div class="x402-step" id="x402-step-req">
+ <span class="x402-code err" id="x402-code">HTTP 402 — Payment Required</span>
+ <div class="x402-spinner" id="x402-spinner"></div>
+ <span class="x402-amount" id="x402-amount">+$0.05</span>
+ <button class="bento-action-btn sm" id="x402-pay-btn">Pay $0.05</button>
</div>
</div>
- </section>
-
- <!-- ── Act 2: Pick & Animate ── -->
- <section class="h-act h-act--animate" data-act="2" id="pick-animate">
- <div class="h-act-warp h-act-warp--amber" aria-hidden="true"></div>
- <div class="h-layer" style="--depth: 8" aria-hidden="true">
- <div class="h-layer-bg h-layer-bg--amber"></div>
- <canvas
- class="h-star-canvas"
- data-role="star-canvas"
- data-tint="255,190,80"
- data-count="200"
- ></canvas>
- </div>
- <div class="h-layer" style="--depth: 4" aria-hidden="true">
- <svg
- class="h-layer-words"
- viewBox="0 0 1600 900"
- preserveAspectRatio="xMidYMid slice"
- role="presentation"
- >
- <g
- fill="rgba(255,200,80,0.13)"
- font-family="'Space Grotesk','Inter',sans-serif"
- font-weight="600"
- >
- <text x="80" y="200" font-size="52">Dance</text>
- <text x="1100" y="160" font-size="44">Wave</text>
- <text x="200" y="710" font-size="44">Jump</text>
- <text x="980" y="760" font-size="40">ThumbsUp</text>
- <text x="560" y="440" font-size="96" fill="rgba(255,255,255,0.05)">
- Idle
- </text>
- <text x="55" y="860" font-size="40">Punch</text>
- <text x="1260" y="520" font-size="48">Run</text>
- </g>
- </svg>
+ <div class="bento-pills">
+ <span class="bento-pill">USDC</span>
+ <span class="bento-pill">Base</span>
+ <span class="bento-pill">Solana</span>
+ <span class="bento-pill">Instant</span>
</div>
- <div class="h-layer" style="--depth: 2" aria-hidden="true">
- <div class="h-layer-orb h-layer-orb--amber"></div>
+ </div>
+
+ <!-- On-chain Identity -->
+ <div class="bento-card">
+ <div class="bento-icon">
+ <span class="dot" style="background:#ffffff;box-shadow:0 0 8px #ffffff55"></span>
+ <span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)">On-chain Identity</span>
</div>
- <div class="h-layer" style="--depth: 1">
- <div class="h-avatar-stage">
- <div class="h-avatar-wrap">
- <canvas id="home-act2-canvas" class="h-avatar-viewer"></canvas>
+ <p class="bento-title">ERC-8004 agent standard</p>
+ <p class="bento-desc">Mint your agent as an ERC-8004 token — the emerging on-chain standard for AI agents. Own it, trade it, and let other agents discover and call it autonomously via A2A.</p>
+ <div class="bento-interact mint-demo">
+ <div class="mint-card" id="mint-card">
+ <div class="mint-card-inner">
+ <div class="mint-card-info">
+ <span class="mint-card-label" id="mint-label">ERC-8004</span>
+ <span class="mint-card-name">nich.agent</span>
+ <span class="mint-card-chain" id="mint-chain">Base · Block 18,291,042</span>
+ </div>
+ <div class="mint-progress" id="mint-progress">
+ <svg viewBox="0 0 28 28"><circle cx="14" cy="14" r="12.5"/></svg>
+ </div>
+ <button class="bento-action-btn sm" id="mint-btn">Mint</button>
</div>
</div>
</div>
- <div class="h-layer" style="--depth: 0.5" aria-hidden="true">
- <div class="h-vignette"></div>
+ <div class="bento-pills">
+ <span class="bento-pill">ERC-8004</span>
+ <span class="bento-pill">EVM</span>
+ <span class="bento-pill">A2A</span>
+ <span class="bento-pill">MCP</span>
</div>
+ </div>
- <div class="h-act-text">
- <div class="h-act-eyebrow">
- <span class="h-act-dot"></span>
- <span>Pick &amp; animate</span>
- </div>
- <h2 class="h-act-title">Your agent.<br /><em>Any move.</em></h2>
- <p class="h-act-lede">
- Choose an avatar. Trigger any animation. The same renderer ships in
- your embed.
- </p>
-
- <div class="h-avatar-picker" role="group" aria-label="Choose avatar">
- <button
- class="h-av-opt"
- data-src="/animations/robotexpressive.glb"
- aria-pressed="true"
- >
- Robot
- </button>
- <button
- class="h-av-opt"
- data-src="/animations/soldier.glb"
- aria-pressed="false"
- >
- Soldier
- </button>
- <button class="h-av-opt" data-src="/avatars/cz.glb" aria-pressed="false">
- CZ
- </button>
+ <!-- MCP / A2A Skills -->
+ <div class="bento-card">
+ <div class="bento-icon">
+ <span class="dot" style="background:#ffffff;box-shadow:0 0 8px #ffffff55"></span>
+ <span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)">Skills</span>
+ </div>
+ <p class="bento-title">MCP · A2A · tool chain</p>
+ <p class="bento-desc">Wire your agent to any tool via MCP. Call other agents via A2A. Build skill packs and sell them in the marketplace.</p>
+ <div class="bento-interact skill-demo">
+ <div class="bento-pills" id="skill-tools">
+ <button class="bento-pill bento-pill-btn active" data-tool="jupiter">Jupiter</button>
+ <button class="bento-pill bento-pill-btn" data-tool="pump">Pump.fun</button>
+ <button class="bento-pill bento-pill-btn" data-tool="rpc">Solana RPC</button>
+ <button class="bento-pill bento-pill-btn" data-tool="a2a">A2A call</button>
</div>
+ <div class="skill-result" id="skill-result"></div>
+ </div>
+ </div>
- <div
- class="h-anim-chips"
- role="group"
- aria-label="Trigger animation"
- data-role="anim-chips"
- ></div>
-
- <div class="h-act-cta">
- <a href="/create" class="h-btn-primary"
- ><span>Create your agent</span><span class="arrow">→</span></a
- >
+ <!-- Memory -->
+ <div class="bento-card">
+ <div class="bento-icon">
+ <span class="dot" style="background:#f59e0b;box-shadow:0 0 8px #f59e0b55"></span>
+ <span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)">Memory</span>
+ </div>
+ <p class="bento-title">Persistent cross-device memory</p>
+ <p class="bento-desc">Your agent remembers every visitor across devices and sessions. Tie-in to your own data sources or use the built-in vector memory.</p>
+ <div class="bento-interact memory-demo" id="memory-demo">
+ <div class="memory-input-row">
+ <input class="memory-input" id="memory-input" placeholder="Tell the agent something..." maxlength="120" />
+ <button class="bento-action-btn sm" id="memory-store-btn">Store</button>
</div>
+ <button class="bento-action-btn sm" id="memory-recall-btn" style="align-self:flex-start">Recall</button>
+ <div class="memory-log" id="memory-log"></div>
</div>
- </section>
-
- <!-- ── Act 3: Deploy on-chain ── -->
- <section class="h-act h-act--deploy" data-act="3" id="deploy-act">
- <div class="h-act-warp h-act-warp--mint" aria-hidden="true"></div>
- <div class="h-layer" style="--depth: 8" aria-hidden="true">
- <div class="h-layer-bg h-layer-bg--mint"></div>
- <canvas
- class="h-star-canvas"
- data-role="star-canvas"
- data-tint="110,231,183"
- data-count="200"
- ></canvas>
- </div>
-
- <div class="h-layer" style="--depth: 2" aria-hidden="true">
- <div class="h-layer-orb h-layer-orb--mint"></div>
- </div>
- <div class="h-layer" style="--depth: 1" aria-hidden="true">
- <div class="h-avatar-stage h-avatar-stage--trio">
- <div class="h-avatar-wrap h-avatar-wrap--ghost h-avatar-wrap--trio">
- <canvas
- id="act3-avatar-a"
- class="h-avatar-viewer h-avatar-viewer--tall"
- ></canvas>
- </div>
- <div class="h-avatar-wrap h-avatar-wrap--ghost h-avatar-wrap--trio">
- <canvas
- id="act3-avatar-b"
- class="h-avatar-viewer h-avatar-viewer--tall"
- ></canvas>
- </div>
- <div class="h-avatar-wrap h-avatar-wrap--ghost h-avatar-wrap--trio">
- <canvas
- id="act3-avatar-c"
- class="h-avatar-viewer h-avatar-viewer--tall"
- ></canvas>
+ </div>
+
+ <!-- AR / WebXR -->
+ <div class="bento-card">
+ <div class="bento-icon">
+ <span class="dot" style="background:#e8e8e8;box-shadow:0 0 8px #e8e8e855"></span>
+ <span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)">AR / WebXR</span>
+ </div>
+ <p class="bento-title">Augmented reality, no app</p>
+ <p class="bento-desc">Place your agent in the real world with WebXR on Android or Quick Look on iOS. No app install required.</p>
+ <div class="bento-interact ar-demo" id="ar-demo">
+ <div class="ar-phone" id="ar-phone">
+ <div class="ar-phone-notch"></div>
+ <div class="ar-phone-screen">
+ <div class="ar-phone-avatar" id="ar-phone-avatar">◇</div>
+ <div class="ar-phone-crosshair"></div>
</div>
</div>
+ <div class="ar-info">
+ <button class="bento-action-btn sm" id="ar-launch-btn">Launch AR</button>
+ <span class="ar-status" id="ar-status">tap to place agent</span>
+ </div>
+ </div>
+ <div class="bento-pills">
+ <span class="bento-pill">WebXR</span>
+ <span class="bento-pill">Quick Look</span>
+ <span class="bento-pill">iOS / Android</span>
+ </div>
+ </div>
+
+ <!-- Marketplace -->
+ <div class="bento-card">
+ <div class="bento-icon">
+ <span class="dot" style="background:#ffffff;box-shadow:0 0 8px #ffffff55"></span>
+ <span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)">Marketplace</span>
</div>
- <div class="h-layer" style="--depth: 0.5" aria-hidden="true">
- <div class="h-vignette"></div>
+ <p class="bento-title">Discover, remix, deploy</p>
+ <p class="bento-desc">Browse public agents in the marketplace. Fork any agent's personality, voice, and skills. Publish your own and let others remix.</p>
+ <div class="bento-interact">
+ <div class="mktplace-strip" id="mktplace-strip"></div>
</div>
+ </div>
- <div class="h-act-text">
- <div class="h-act-eyebrow">
- <span class="h-act-dot h-act-dot--mint"></span>
- <span>Metaplex native</span>
+ <!-- Analytics -->
+ <div class="bento-card">
+ <div class="bento-icon">
+ <span class="dot" style="background:#e8e8e8;box-shadow:0 0 8px #e8e8e855"></span>
+ <span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)">Analytics</span>
+ </div>
+ <p class="bento-title">Track everything</p>
+ <p class="bento-desc">Conversations, revenue, engagement, retention — all in real-time. See which skills earn the most.</p>
+ <div class="bento-interact analytics-demo" id="analytics-demo">
+ <div class="analytics-counters">
+ <div class="analytics-counter"><span class="analytics-val" id="an-convos">0</span><span class="analytics-lbl">convos</span></div>
+ <div class="analytics-counter"><span class="analytics-val" id="an-revenue">$0</span><span class="analytics-lbl">revenue</span></div>
+ <div class="analytics-counter"><span class="analytics-val" id="an-retention">0%</span><span class="analytics-lbl">retention</span></div>
</div>
- <h2 class="h-act-title h-act-title--mint">
- One transaction.<br /><em>One identity.</em>
- </h2>
- <p class="h-act-lede">
- One Solana transaction. A portable, verifiable agentId every A2A or
- MCP client can find.
- </p>
-
- <form class="h-deploy-form" id="home-deploy-form" action="/deploy" method="get">
- <div class="h-form-row">
- <label class="h-form-label" for="agent-name-home">Agent name</label>
- <input
- id="agent-name-home"
- name="name"
- class="h-form-input"
- type="text"
- placeholder="my-agent"
- autocomplete="off"
- spellcheck="false"
- />
+ <svg class="analytics-spark" id="analytics-spark" viewBox="0 0 200 40" preserveAspectRatio="none">
+ <defs><linearGradient id="spark-grad" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="var(--text-2)"/><stop offset="100%" stop-color="transparent"/></linearGradient></defs>
+ </svg>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+</section>
+
+<!-- ── PUMP.FUN INTEGRATION ───────────────────────────────────────── -->
+<section class="block">
+ <div class="wrap-1280">
+ <div class="block-head reveal">
+ <p class="block-eyebrow"><span class="num">04</span>Token economy</p>
+ <h2 class="block-h">Your agent can launch <em>its own token.</em></h2>
+ <p class="block-lede">
+ The first 3D agent platform with native Pump.fun integration. One click from your agent dashboard to a live token on Solana.
+ </p>
+ </div>
+ <div class="feat-split reveal">
+ <div class="feat-text">
+ <p class="feat-eyebrow">Pump.fun · Native integration</p>
+ <h3 class="feat-h">From character<br/>to <em>community token.</em></h3>
+ <p class="feat-body">
+ three.ws agents are onchain-native. Launch a meme coin, fan token, or governance token directly from your agent's dashboard — no coding, no CLI, no wallet juggling.
+ </p>
+ <ul class="feat-list">
+ <li><strong>One-click launch</strong> — name, ticker, image, and initial supply set from your agent profile</li>
+ <li><strong>Live token feed</strong> — embed a real-time Pump.fun price widget into your agent's embed</li>
+ <li><strong>Trade from chat</strong> — visitors buy, sell, and tip using the agent's built-in Pump.fun skill</li>
+ <li><strong>Trending dashboard</strong> — track your token across the Pump.fun leaderboard in real-time</li>
+ </ul>
+ <div>
+ <a class="btn sm" href="/pump-3d-agent">Explore token agents <span class="arrow">→</span></a>
+ </div>
+ </div>
+ <div class="feat-visual">
+ <div class="feat-visual-label">Live token · $NICH / SOL</div>
+ <div class="feat-visual-inner">
+ <div class="token-card">
+ <div class="token-avatar">NICH</div>
+ <div class="token-info">
+ <div class="token-name">NICH Agent Token</div>
+ <div class="token-ticker">$NICH · Pump.fun</div>
</div>
- <div class="h-form-row">
- <label class="h-form-label" for="network-home">Network</label>
- <select id="network-home" name="network" class="h-form-select">
- <option value="mainnet-beta" selected>Solana Mainnet</option>
- <option value="devnet">Solana Devnet</option>
- </select>
+ <div class="token-price">+24.6%</div>
+ </div>
+ <div class="earn-rows" style="border:1px solid var(--hairline);border-radius:8px;overflow:hidden;">
+ <div class="earn-row">
+ <div class="earn-row-left">
+ <div class="earn-row-name">Buy · 0x7f3a…</div>
+ <div class="earn-row-time">3s ago</div>
+ </div>
+ <div class="earn-row-amount">+0.5 SOL</div>
</div>
- <div class="h-deploy-stats">
- <div>
- <span class="h-stat-label">Chain</span
- ><span class="h-stat-val">Solana</span>
+ <div class="earn-row">
+ <div class="earn-row-left">
+ <div class="earn-row-name">Buy · 0x2e1b…</div>
+ <div class="earn-row-time">12s ago</div>
</div>
- <div>
- <span class="h-stat-label">Standard</span
- ><span class="h-stat-val">Metaplex Core</span>
+ <div class="earn-row-amount">+2.0 SOL</div>
+ </div>
+ <div class="earn-row">
+ <div class="earn-row-left">
+ <div class="earn-row-name">Tip · @alice</div>
+ <div class="earn-row-time">1m ago</div>
</div>
- <div>
- <span class="h-stat-label">Fee</span
- ><span class="h-stat-val">~$0.01</span>
+ <div class="earn-row-amount">+$4.20</div>
+ </div>
+ <div class="earn-row">
+ <div class="earn-row-left">
+ <div class="earn-row-name">Buy · 0x9c4f…</div>
+ <div class="earn-row-time">2m ago</div>
</div>
+ <div class="earn-row-amount">+1.2 SOL</div>
+ </div>
+ </div>
+ <div style="display:flex;gap:10px;">
+ <a class="btn sm" href="/pumpfun-trending" style="flex:1;justify-content:center;">Trending tokens</a>
+ <a class="btn sm primary" href="/create" style="flex:1;justify-content:center;">Launch yours</a>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+</section>
+
+<!-- ── x402 EARN ──────────────────────────────────────────────────── -->
+<section class="block">
+ <div class="wrap-1280">
+ <div class="feat-split rev reveal">
+ <div class="feat-text">
+ <p class="feat-eyebrow">x402 protocol · USDC payments</p>
+ <h3 class="feat-h">Charge per chat.<br/><em>Keep everything.</em></h3>
+ <p class="feat-body">
+ x402 is an open HTTP payment protocol — your agent responds with a 402 status code and visitors pay in USDC before unlocking your skills. No platform cut during open beta.
+ </p>
+ <ul class="feat-list">
+ <li><strong>Set your price</strong> — from $0.001 per message to $100 per session</li>
+ <li><strong>Gate any skill</strong> — wrap any MCP tool or agent response behind a paywall</li>
+ <li><strong>Instant settlement</strong> — USDC hits your wallet on Base or Solana, no escrow</li>
+ <li><strong>Per-user metering</strong> — built-in rate limits and subscription tiers</li>
+ <li><strong>0% fee during beta</strong> — keep 100% of revenue while the platform scales</li>
+ </ul>
+ <div>
+ <a class="btn sm" href="/dashboard/monetize">Configure monetization <span class="arrow">→</span></a>
+ </div>
+ </div>
+ <div class="feat-visual">
+ <div class="feat-visual-label">Earnings · last 24 hours</div>
+ <div class="feat-visual-inner">
+ <div style="display:flex;justify-content:space-between;align-items:baseline;">
+ <div>
+ <div style="font-family:var(--font-display);font-size:36px;font-weight:600;letter-spacing:-0.025em;color:var(--green)">$847.50</div>
+ <div style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3);margin-top:4px">Total earned · USDC</div>
</div>
- <button type="submit" class="h-btn-primary h-btn-deploy">
- <span>Mint your agent</span>
- <span class="arrow">→</span>
- </button>
- </form>
- </div>
- </section>
-
- <!-- ── Bento feature grid ── -->
- <section class="h-bento-section">
- <div class="h-bento-header h-reveal">
- <p class="h-section-label">What you get</p>
- <h2 class="h-section-title">
- Everything an agent needs<br />to exist in the world.
- </h2>
- </div>
- <div class="h-bento-grid">
- <!-- Large card: 3D viewer + inline animation panel -->
- <div class="h-bento-card h-bento-card--lg h-reveal">
- <div class="h-bento-visual">
- <canvas id="bento-cz-canvas" class="h-bento-cz-canvas"></canvas>
+ <div style="text-align:right">
+ <div style="font-family:var(--font-display);font-size:20px;font-weight:600;color:var(--text)">312</div>
+ <div style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3);margin-top:2px">conversations</div>
</div>
- <div class="h-bento-anim-panel" data-role="bento-anim-panel">
- <div class="h-bento-anim-header">
- <span class="h-bento-anim-title">Animations</span>
- <button
- type="button"
- class="h-bento-anim-stop"
- data-role="bento-anim-stop"
- title="Stop all"
- >
- ⏹
- </button>
+ </div>
+ <div class="earn-rows" style="border:1px solid var(--hairline);border-radius:8px;overflow:hidden;">
+ <div class="earn-row">
+ <div class="earn-row-left">
+ <div class="earn-row-name">skill: deep-research</div>
+ <div class="earn-row-time">$2.50 / session</div>
</div>
- <div class="h-bento-anim-grid" data-role="bento-anim-grid"></div>
+ <div class="earn-row-amount">+$320.00</div>
</div>
- <div class="h-bento-body">
- <span class="h-bento-tag">Viewer</span>
- <h3>WebGL rendering, zero install.</h3>
- <p>
- Drag any GLB into the browser. Full animations, lighting, and
- materials — instantly, on any device.
- </p>
- <a href="/app" class="h-feature-link">Open viewer →</a>
+ <div class="earn-row">
+ <div class="earn-row-left">
+ <div class="earn-row-name">skill: image-gen</div>
+ <div class="earn-row-time">$0.10 / call</div>
+ </div>
+ <div class="earn-row-amount">+$218.40</div>
</div>
- </div>
- <!-- Small cards -->
- <div class="h-bento-card h-reveal">
- <div class="h-bento-body">
- <span class="h-bento-tag">Embed</span>
- <h3>One tag. Any site.</h3>
- <p>Drop a web component into Notion, Ghost, WordPress, Framer, or your own app — no SDK required.</p>
- <div class="h-bento-code">
- <span class="tag">&lt;agent-3d</span>
- <br />&nbsp;&nbsp;<span class="attr">agent-id</span>=<span
- class="val"
- >"3DAg…uPL"</span
- >
- <br /><span class="tag">&gt;&lt;/agent-3d&gt;</span>
+ <div class="earn-row">
+ <div class="earn-row-left">
+ <div class="earn-row-name">skill: voice-chat</div>
+ <div class="earn-row-time">$0.05 / minute</div>
</div>
+ <div class="earn-row-amount">+$187.60</div>
</div>
- </div>
- <div class="h-bento-card h-reveal">
- <div class="h-bento-body">
- <span class="h-bento-tag h-bento-tag--mint">On-chain</span>
- <h3>Verifiable identity.</h3>
- <p>
- Metaplex Core asset on Solana. One transaction, sub-cent fees.
- Discoverable by any A2A or MCP client.
- </p>
+ <div class="earn-row">
+ <div class="earn-row-left">
+ <div class="earn-row-name">direct tips</div>
+ <div class="earn-row-time">any amount</div>
+ </div>
+ <div class="earn-row-amount">+$121.50</div>
</div>
</div>
- <div class="h-bento-card h-reveal">
- <div class="h-bento-body">
- <span class="h-bento-tag h-bento-tag--violet">AI</span>
- <h3>Expression, in real time.</h3>
- <p>
- Your agent reacts as it speaks, thinks, succeeds, and fails — emotion
- wired directly to model output, not scripted.
- </p>
- <ul class="h-bento-emotions" aria-label="Emotion states">
- <li><span class="h-em-dot"></span>Celebration</li>
- <li><span class="h-em-dot"></span>Curiosity</li>
- <li><span class="h-em-dot"></span>Empathy</li>
- <li><span class="h-em-dot"></span>Concern</li>
- </ul>
+ <div style="font-family:var(--font-mono);font-size:11px;color:var(--text-3);text-align:center;letter-spacing:0.1em;">0% PLATFORM FEE DURING OPEN BETA</div>
+ </div>
+ </div>
+ </div>
+ </div>
+</section>
+
+<!-- ── WALK & MULTIPLAYER ─────────────────────────────────────────── -->
+<section class="block">
+ <div class="wrap-1280">
+ <div class="feat-split reveal">
+ <div class="feat-text">
+ <p class="feat-eyebrow">Walk mode · Multiplayer</p>
+ <h3 class="feat-h">Your visitors walk<br/><em>together.</em></h3>
+ <p class="feat-body">
+ Embed a full multiplayer 3D world onto any page. Visitors arrive as their own avatar, see each other move in real-time, and can voice-chat inside the scene.
+ </p>
+ <ul class="feat-list">
+ <li><strong>Multiplayer sync</strong> — CRDT-based position sync via WebSocket, handles 100s of concurrent users</li>
+ <li><strong>Any environment</strong> — drop your own 3D scene GLB or use one of the built-in club environments</li>
+ <li><strong>Voice-in-scene</strong> — LiveKit spatial audio tied to avatar position</li>
+ <li><strong>One embed tag</strong> — same <code>&lt;walk-embed&gt;</code> tag, zero backend setup</li>
+ </ul>
+ <div>
+ <a class="btn sm" href="/walk">See walk mode <span class="arrow">→</span></a>
+ </div>
+ </div>
+ <div class="feat-visual walk-preview-visual">
+ <div class="feat-visual-label">Walk embed · live preview</div>
+ <div class="walk-preview-wrap" id="walk-preview-container">
+ <div class="walk-preview-canvas-area">
+ <canvas class="walk-preview-canvas"></canvas>
+ <div data-walk-loading class="walk-preview-loading">
+ <div class="walk-preview-spinner"></div>
+ <span>Loading 3D scene...</span>
</div>
- </div>
- <div class="h-bento-card h-reveal">
- <div class="h-bento-body">
- <span class="h-bento-tag">Widgets</span>
- <h3>5 widget types.</h3>
- <p>
- Turntable · Talking Agent · Animation Gallery · ERC-8004 Passport ·
- Hotspot Tour
- </p>
- <a href="/studio" class="h-feature-link">Widget Studio →</a>
+ <div class="walk-preview-hint">
+ <span><kbd>W</kbd><kbd>A</kbd><kbd>S</kbd><kbd>D</kbd> move</span>
+ <span>drag to orbit</span>
+ <span><kbd>space</kbd> jump</span>
</div>
+ <div data-walk-joystick class="walk-preview-joystick"></div>
</div>
- <div class="h-bento-card h-reveal">
- <div class="h-bento-body">
- <span class="h-bento-tag h-bento-tag--mint">SNS · pay-by-name</span>
- <h3>Get paid by name.</h3>
- <p>
- Claim <code style="background:rgba(255,255,255,.06);padding:.1em .35em;border-radius:4px;font-size:.9em">yourname.threews.sol</code>
- as a Solana Name Service subdomain. Brave routes it straight to your showcase;
- agents pay you in USDC by name, not address. We absorb the gas.
- </p>
- <a href="/threews/claim" class="h-feature-link">Claim your subdomain →</a>
+ <div class="bento-code"><span class="kw">&lt;walk-embed</span><br/> <span class="kw">src=</span><span class="str">"/api/scenes/my-lobby"</span><br/> <span class="kw">multiplayer</span><br/><span class="kw">&gt;&lt;/walk-embed&gt;</span></div>
+ </div>
+ </div>
+ </div>
+ </div>
+</section>
+
+<!-- ── DEVELOPER PLATFORM ─────────────────────────────────────────── -->
+<section class="block">
+ <div class="wrap-1280">
+ <div class="block-head reveal">
+ <p class="block-eyebrow"><span class="num">05</span>Developer platform</p>
+ <h2 class="block-h">Headless API. <em>Full power.</em></h2>
+ <p class="block-lede">
+ Everything available through a REST API, SDK, and MCP server. Build custom agents, automate workflows, and connect to any AI tool.
+ </p>
+ </div>
+ <div class="dev-grid reveal reveal-d1" id="api-playground">
+ <!-- ── Left: request / code pane ─────────────────────── -->
+ <div class="dev-pane" id="pg-left">
+ <div class="dev-pane-head">
+ <span id="pg-head-title">API Playground</span>
+ <span id="pg-head-sub">interactive</span>
+ </div>
+ <div class="dev-tabs" id="pg-tabs">
+ <button type="button" class="dev-tab active" data-tab="tryit">Try it</button>
+ <button type="button" class="dev-tab" data-tab="sdk">Node SDK</button>
+ <button type="button" class="dev-tab" data-tab="curl">cURL</button>
+ </div>
+
+ <!-- Tab: Try it -->
+ <div class="dev-tab-content active" id="pg-tab-tryit">
+ <div id="pg-empty-state" class="pg-empty">
+ <div class="pg-empty-icon">&lt;/&gt;</div>
+ Select an endpoint to start exploring the API
+ </div>
+ <div id="pg-builder" style="display:none;">
+ <div class="pg-request">
+ <div class="pg-url-bar">
+ <div class="pg-url-method" id="pg-method">GET</div>
+ <input class="pg-url-path" id="pg-path" readonly />
+ </div>
+ <div id="pg-params"></div>
+ <div id="pg-body-wrap" style="display:none;">
+ <div class="pg-field">
+ <label class="pg-field-label">Request body</label>
+ <textarea class="pg-input" id="pg-body" placeholder='{ "key": "value" }'></textarea>
+ </div>
+ </div>
+ <div class="pg-actions">
+ <button type="button" class="pg-send" id="pg-send">Send</button>
+ <span class="pg-status" id="pg-status"></span>
+ </div>
+ <div class="pg-response" id="pg-response" style="display:none;">
+ <div class="pg-response-head">
+ <span>Response</span>
+ <button type="button" class="pg-copy" id="pg-copy-resp">Copy</button>
+ </div>
+ <div class="pg-response-body" id="pg-response-body"></div>
+ </div>
</div>
</div>
</div>
- </section>
-
- <!-- ── Developer section ── -->
- <div class="h-dev-section h-reveal">
- <div class="h-dev-inner">
- <div class="h-dev-text">
- <p class="h-section-label">For developers</p>
- <h2>Drop one tag.<br />Ship a 3D agent.</h2>
- <p class="h-dev-sub">
- The <code>&lt;agent-3d&gt;</code> web component lazy-loads, renders
- anywhere, and connects to your existing AI stack via MCP or A2A. No
- framework. No build step.
- </p>
- <div class="h-dev-links">
- <a href="/docs" class="h-feature-link">Read the docs →</a>
- <a
- href="https://github.com/nirholas/three.ws"
- target="_blank"
- rel="noopener noreferrer"
- class="h-feature-link"
- >GitHub →</a
- >
- </div>
+
+ <!-- Tab: SDK -->
+ <div class="dev-tab-content" id="pg-tab-sdk">
+ <div class="dev-code" id="pg-sdk-code">
+<span class="kw">import</span> { <span class="fn">Agent</span> } <span class="kw">from</span> <span class="str">'@three.ws/agent-sdk'</span>;
+
+<span class="kw">const</span> <span class="fn">agent</span> = <span class="kw">new</span> <span class="fn">Agent</span>({
+ <span class="fn">avatarId</span>: <span class="str">'bacff13e-b64b-4ac0-860d-44f0168ad23b'</span>,
+ <span class="fn">voice</span>: <span class="str">'elevenlabs:josh'</span>,
+ <span class="fn">memory</span>: <span class="str">'persistent'</span>,
+});
+
+<span class="cmt">// Add a paid skill</span>
+<span class="fn">agent</span>.<span class="fn">skill</span>(<span class="str">'deep-research'</span>, {
+ <span class="fn">price</span>: <span class="str">'2.50 USDC'</span>,
+ <span class="fn">handler</span>: <span class="kw">async</span> (query) =&gt; { <span class="cmt">/* … */</span> },
+});
+
+<span class="cmt">// x402 gated endpoint auto-wired</span>
+<span class="kw">await</span> <span class="fn">agent</span>.<span class="fn">deploy</span>();
</div>
- <div class="h-dev-code">
- <div class="h-dev-code-bar">
- <span class="h-dev-code-dot"></span>
- <span class="h-dev-code-dot"></span>
- <span class="h-dev-code-dot"></span>
- <span class="h-dev-code-filename">index.html</span>
- </div>
- <pre
- class="h-dev-pre"
- ><code><span class="c">&lt;!-- 1. Load the component --&gt;</span>
-<span class="tag">&lt;script</span> <span class="attr">type</span>=<span class="val">"module"</span>
- <span class="attr">src</span>=<span class="val">"https://three.ws/agent-3d/latest/agent-3d.js"</span><span class="tag">&gt;&lt;/script&gt;</span>
-
-<span class="c">&lt;!-- 2. Drop the tag --&gt;</span>
-<span class="tag">&lt;agent-3d</span>
- <span class="attr">agent-id</span>=<span class="val">"3DAg…uPL"</span>
- <span class="attr">kiosk</span>
-<span class="tag">&gt;&lt;/agent-3d&gt;</span></code></pre>
+ </div>
+
+ <!-- Tab: cURL -->
+ <div class="dev-tab-content" id="pg-tab-curl">
+ <div class="pg-curl-code" id="pg-curl-code">Select an endpoint to generate a cURL command.</div>
+ </div>
+
+ <div class="dev-links">
+ <div class="dev-links-row">
+ <a class="dev-link" href="/docs">Docs</a>
+ <a class="dev-link" href="https://github.com/nirholas/three.ws">GitHub</a>
+ <a class="dev-link" href="/api/openapi-json.js">OpenAPI</a>
+ <a class="dev-link" href="/docs/mcp">MCP server</a>
</div>
</div>
</div>
- <!-- ── Final CTA ── -->
- <section class="h-cta-section">
- <div class="h-cta-inner h-reveal">
- <h2>Ready to build<br />the future?</h2>
- <p>Free to start. No credit card. Deploy in minutes.</p>
- <div class="h-cta-row-center">
- <a href="/create" class="h-btn-primary">
- <span>Create your agent</span>
- <span class="arrow">→</span>
- </a>
- <a href="/marketplace" class="h-btn-ghost">Explore the marketplace</a>
+ <!-- ── Right: endpoint list ──────────────────────────── -->
+ <div class="dev-pane dev-right" id="pg-endpoints">
+ <div class="dev-pane-head">
+ <span>Endpoints</span>
+ <span>v1</span>
+ </div>
+ <div class="dev-api-row" data-endpoint="list-agents">
+ <div style="display:flex;align-items:center;gap:8px;">
+ <span class="dev-badge get">GET</span>
+ <span class="dev-api-path">/v1/agents</span>
</div>
+ <div class="dev-api-desc">List all agents in your account</div>
</div>
- </section>
-
- <footer class="h-footer h-footer-horizon">
- <div class="h-footer-glow-line" aria-hidden="true"></div>
- <div class="h-footer-floor" aria-hidden="true"></div>
- <div class="h-footer-haze" aria-hidden="true"></div>
- <div class="h-footer-watermark" aria-hidden="true">three.ws</div>
- <div class="h-footer-avatar" aria-hidden="true">
- <model-viewer
- src="/animations/robotexpressive.glb"
- auto-rotate
- auto-rotate-delay="0"
- rotation-per-second="20deg"
- interaction-prompt="none"
- camera-controls="false"
- disable-zoom
- shadow-intensity="0"
- exposure="0.7"
- environment-image="neutral"
- camera-orbit="0deg 80deg 9m"
- field-of-view="45deg"
- loading="lazy"
- ></model-viewer>
- </div>
-
- <div class="h-footer-cta">
- <div class="h-footer-newsletter">
- <h3>Stay in the loop</h3>
- <p>Get updates on new features, agent tooling, and protocol changes.</p>
- <form class="h-footer-newsletter-form" data-newsletter-form novalidate>
- <input
- type="email"
- class="h-footer-newsletter-input"
- name="email"
- placeholder="Enter your email"
- aria-label="Email address"
- autocomplete="email"
- required
- />
- <button
- type="submit"
- class="h-footer-newsletter-btn"
- aria-label="Subscribe"
- >
- <svg viewBox="0 0 16 16" aria-hidden="true">
- <path
- fill="none"
- stroke="currentColor"
- stroke-width="1.6"
- stroke-linecap="round"
- stroke-linejoin="round"
- d="M2 8h11m0 0L9 4m4 4l-4 4"
- />
- </svg>
- </button>
- </form>
- <p
- class="h-footer-newsletter-msg"
- data-newsletter-msg
- aria-live="polite"
- ></p>
+ <div class="dev-api-row" data-endpoint="create-agent">
+ <div style="display:flex;align-items:center;gap:8px;">
+ <span class="dev-badge post">POST</span>
+ <span class="dev-api-path">/v1/agents</span>
</div>
- <div class="h-footer-community">
- <h3>Join the community</h3>
- <p>Follow along for builds, demos, and conversations with the team.</p>
- <a
- class="h-footer-community-btn"
- href="https://x.com/trythreews"
- target="_blank"
- rel="noopener noreferrer"
- >
- <svg viewBox="0 0 24 24" aria-hidden="true">
- <path
- fill="currentColor"
- d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"
- />
- </svg>
- Follow on X
- </a>
+ <div class="dev-api-desc">Create agent from avatar + prompt</div>
+ </div>
+ <div class="dev-api-row" data-endpoint="chat">
+ <div style="display:flex;align-items:center;gap:8px;">
+ <span class="dev-badge post">POST</span>
+ <span class="dev-api-path">/v1/chat</span>
</div>
+ <div class="dev-api-desc">Send a message, stream a response</div>
</div>
- <div class="h-footer-inner">
- <div class="h-footer-brand-col">
- <div class="h-footer-brand">
- <img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" />
- <span class="wordmark-dot" aria-hidden="true"></span>
- <span>three.ws</span>
- </div>
- <p class="h-footer-tagline">Give your AI a body.</p>
- <div class="h-footer-socials">
- <a
- class="h-footer-social"
- href="https://x.com/trythreews"
- target="_blank"
- rel="noopener noreferrer"
- aria-label="three.ws on X"
- >
- <svg viewBox="0 0 24 24" aria-hidden="true">
- <path
- fill="currentColor"
- d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"
- />
- </svg>
- </a>
- <a
- class="h-footer-social"
- href="https://github.com/nirholas/three.ws"
- target="_blank"
- rel="noopener noreferrer"
- aria-label="three.ws on GitHub"
- >
- <svg viewBox="0 0 16 16" aria-hidden="true">
- <path
- fill="currentColor"
- d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"
- />
- </svg>
- </a>
- </div>
+ <div class="dev-api-row" data-endpoint="get-avatar">
+ <div style="display:flex;align-items:center;gap:8px;">
+ <span class="dev-badge get">GET</span>
+ <span class="dev-api-path">/v1/avatars/:id</span>
</div>
- <nav class="h-footer-links" aria-label="Footer">
- <div class="h-footer-link-col">
- <h4 class="h-footer-link-heading">Product</h4>
- <a href="/create">Create</a>
- <a href="/marketplace">Marketplace</a>
- <a href="/studio">Studio</a>
- <a href="/widgets">Widgets</a>
- <a href="/pricing">Pricing</a>
- </div>
- <div class="h-footer-link-col">
- <h4 class="h-footer-link-heading">Developers</h4>
- <a href="/docs">Docs</a>
- <a
- href="https://github.com/nirholas/three.ws"
- target="_blank"
- rel="noopener noreferrer"
- >GitHub</a
- >
- <a href="/bazaar">x402 Bazaar</a>
- <a
- href="https://developers.metaplex.com/core"
- target="_blank"
- rel="noopener noreferrer"
- >Metaplex Core</a
- >
- </div>
- <div class="h-footer-link-col">
- <h4 class="h-footer-link-heading">Company</h4>
- <a href="/blog">Blog</a>
- <a href="/community">Community</a>
- <a href="/features">Features</a>
- <a href="/dashboard">Dashboard</a>
- </div>
- <div class="h-footer-link-col">
- <h4 class="h-footer-link-heading">Legal</h4>
- <a href="/legal/privacy">Privacy</a>
- <a href="/legal/tos">Terms</a>
- </div>
- </nav>
- </div>
- <div class="h-footer-bottom">
- <p class="h-footer-legal">© 2026 three.ws — All rights reserved.</p>
- <div class="h-footer-badges">
- <a href="/pay" class="h-footer-badge" aria-label="Built with x402 payments">
- <svg viewBox="0 0 16 16" aria-hidden="true">
- <circle cx="8" cy="8" r="7" fill="none" stroke="currentColor" stroke-width="1.3"/>
- <path d="M8 4v8M5.5 6h3.5a1.5 1.5 0 010 3H6.5a1.5 1.5 0 000 3H11" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
- </svg>
- Built with x402
- </a>
- <span class="h-footer-badge" aria-label="All systems operational">
- <span class="h-footer-status-dot"></span>
- All systems operational
- </span>
+ <div class="dev-api-desc">Fetch avatar metadata and GLB URL</div>
+ </div>
+ <div class="dev-api-row" data-endpoint="mcp">
+ <div style="display:flex;align-items:center;gap:8px;">
+ <span class="dev-badge mcp">MCP</span>
+ <span class="dev-api-path">three.ws/mcp</span>
</div>
- <div class="h-footer-legal-links">
- <a href="/legal/privacy">Privacy Policy</a>
- <a href="/legal/tos">Terms of Use</a>
+ <div class="dev-api-desc">Model Context Protocol server</div>
+ </div>
+ <div class="dev-api-row" data-endpoint="a2a">
+ <div style="display:flex;align-items:center;gap:8px;">
+ <span class="dev-badge mcp">A2A</span>
+ <span class="dev-api-path">/v1/a2a/:agentId</span>
</div>
+ <div class="dev-api-desc">Agent-to-agent protocol endpoint</div>
</div>
- </footer>
- </main>
-
- <script>
- // Devices with < 2 GB RAM get no WebGL viewers — avoids GPU OOM and
- // context-limit issues. navigator.deviceMemory is undefined on Firefox/Safari
- // so we default to "capable" when the API is absent.
- const LOW_MEMORY = typeof navigator.deviceMemory === 'number' && navigator.deviceMemory < 2;
- const REDUCED_MOTION = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
- // Skip GL only on truly constrained devices. Reduced-motion users still
- // see the avatars (without auto-rotate); skipping rendering for them left
- // the bento/Act 2/Act 3 canvases permanently blank.
- const SKIP_OFFSCREEN_GL = LOW_MEMORY;
-
- // Footer model-viewer is decorative — skip on low-memory devices to
- // avoid hitting the WebGL context limit alongside the bento/act viewers.
- if (LOW_MEMORY) {
- const footerAvatar = document.querySelector('.h-footer-avatar');
- if (footerAvatar) footerAvatar.hidden = true;
+ <div style="padding:14px 20px;margin-top:auto;border-top:1px solid var(--hairline);">
+ <a class="btn sm" href="/dashboard/api">Get API key <span class="arrow">&rarr;</span></a>
+ </div>
+ </div>
+ </div>
+ </div>
+</section>
+
+<!-- ── HOW IT WORKS ───────────────────────────────────────────────── -->
+<section class="block">
+ <div class="wrap-1280">
+ <div class="block-head reveal">
+ <p class="block-eyebrow"><span class="num">06</span>How it works</p>
+ <h2 class="block-h">Three steps. <em>One living character.</em></h2>
+ </div>
+ <div class="steps reveal reveal-d1">
+ <div class="step">
+ <div class="step-num">01 · CREATE</div>
+ <div class="step-title">Make an agent</div>
+ <p class="step-body">Selfie → 3D avatar in a minute. Or upload your own GLB. Add a personality prompt, pick a voice from ElevenLabs or LiveKit, and wire up AI. Or browse the marketplace for a pre-built agent.</p>
+ </div>
+ <div class="step">
+ <div class="step-num">02 · EMBED</div>
+ <div class="step-title">Drop the tag</div>
+ <p class="step-body">Two lines of HTML. No SDK install, no iframe wrapper, no build step. Works in React, Vue, Svelte, and plain HTML. Lazy-loaded by default, CDN-hosted globally.</p>
+ </div>
+ <div class="step">
+ <div class="step-num">03 · SHIP</div>
+ <div class="step-title">Your site is alive</div>
+ <p class="step-body">Visitors talk to your agent with text or voice. It remembers across sessions. Charge per chat with x402. Launch its token on Pump.fun. Watch it grow on-chain.</p>
+ </div>
+ </div>
+ </div>
+</section>
+
+<!-- ── 3D STACK ────────────────────────────────────────────────────── -->
+<section class="block">
+ <div class="wrap-1280">
+ <div class="block-head reveal">
+ <p class="block-eyebrow"><span class="num">07</span>The stack</p>
+ <h2 class="block-h">Six pieces. <em>One layer.</em></h2>
+ <p class="block-lede">Every component is open, real, and shipping today. Use one. Use all. They compose.</p>
+ </div>
+ <div class="stack-3d reveal" id="stack-3d">
+ <div class="stack-3d-scene" id="stack-3d-scene">
+ <a href="/studio" class="stack-card">
+ <span class="stack-card-num">01</span>
+ <span class="stack-card-title">Studio</span>
+ <span class="stack-card-desc">Selfie to rigged avatar in seconds. Browser-native, GPU-accelerated — no software to install.</span>
+ <span class="stack-card-arrow">↗</span>
+ </a>
+ <a href="/discover" class="stack-card">
+ <span class="stack-card-num">02</span>
+ <span class="stack-card-title">Registry</span>
+ <span class="stack-card-desc">ERC-8004 on-chain identity. Agents discoverable, portable, and attestable across any A2A or MCP client.</span>
+ <span class="stack-card-arrow">↗</span>
+ </a>
+ <a href="/docs" class="stack-card">
+ <span class="stack-card-num">03</span>
+ <span class="stack-card-title">Embed</span>
+ <span class="stack-card-desc">&lt;agent-3d&gt; web component. One tag. Any host. Lazy-loaded, isolated CSS, CDN-hosted globally.</span>
+ <span class="stack-card-arrow">↗</span>
+ </a>
+ <a href="/dashboard/monetize" class="stack-card">
+ <span class="stack-card-num">04</span>
+ <span class="stack-card-title">x402</span>
+ <span class="stack-card-desc">HTTP-native USDC micropayments. Bill per skill, message, or session. 0% platform fee during open beta.</span>
+ <span class="stack-card-arrow">↗</span>
+ </a>
+ <a href="/walk" class="stack-card">
+ <span class="stack-card-num">05</span>
+ <span class="stack-card-title">Walk</span>
+ <span class="stack-card-desc">Multiplayer 3D worlds. CRDT-synced avatar positions, spatial voice, joystick control — in one embed tag.</span>
+ <span class="stack-card-arrow">↗</span>
+ </a>
+ <a href="/docs/sdk" class="stack-card">
+ <span class="stack-card-num">06</span>
+ <span class="stack-card-title">SDK</span>
+ <span class="stack-card-desc">JavaScript, Python, Rust. Mint, sign, attest, render, pay. MIT licensed. Available on npm.</span>
+ <span class="stack-card-arrow">↗</span>
+ </a>
+ </div>
+ </div>
+ </div>
+</section>
+
+<!-- ── SHOWCASE 3D ────────────────────────────────────────────────── -->
+<section class="block" id="showcase-3d-section">
+ <div class="wrap-1280">
+ <div class="block-head reveal">
+ <p class="block-eyebrow"><span class="num">08</span>Discover</p>
+ <h2 class="block-h">Living agents, <em>right now.</em></h2>
+ <p class="block-lede">A taste of what's running across the web today. Click any agent to talk, remix, or grab their embed code.</p>
+ </div>
+ <div class="showcase-3d reveal reveal-d1">
+ <div class="showcase-3d-grid" id="showcase-3d-grid">
+ <!-- Agent cards + CTA cards injected by JS from /api/explore -->
+ </div>
+ </div>
+ </div>
+</section>
+
+<!-- ── PRICING ────────────────────────────────────────────────────── -->
+<section class="block">
+ <div class="wrap-1280">
+ <div class="block-head reveal">
+ <p class="block-eyebrow"><span class="num">09</span>Pricing</p>
+ <h2 class="block-h">Free to start. <em>Scale when you do.</em></h2>
+ <p class="block-lede">Open beta is free with no limits. Pro and Enterprise plans unlock higher rate limits, custom domains, and dedicated support.</p>
+ </div>
+ <div class="pricing-stage" id="pricing-stage">
+ <canvas id="pricing-canvas"></canvas>
+ <div class="pricing-grid reveal reveal-d1">
+ <div class="pricing-card" id="tier-beta" data-tier="beta">
+ <div class="pricing-tier">Beta</div>
+ <div class="pricing-price">$0<sub>/mo</sub></div>
+ <div class="pricing-cycle">Free during open beta</div>
+ <ul class="pricing-feats">
+ <li>Unlimited agents</li>
+ <li>Unlimited embeds</li>
+ <li>200+ animation clips</li>
+ <li>x402 payments (0% fee)</li>
+ <li>Community support</li>
+ </ul>
+ <a class="btn" href="/create" data-tier-cta="beta">Start for free</a>
+ </div>
+ <div class="pricing-card featured" id="tier-pro" data-tier="pro">
+ <span class="pricing-badge">Most popular</span>
+ <div class="pricing-tier">Pro</div>
+ <div class="pricing-price">$49<sub>/mo</sub></div>
+ <div class="pricing-cycle">After open beta · billed monthly</div>
+ <ul class="pricing-feats">
+ <li>Everything in Beta</li>
+ <li>Custom domain embeds</li>
+ <li>Priority CDN &amp; GPU rendering</li>
+ <li>Advanced analytics dashboard</li>
+ <li>Priority support &amp; SLA</li>
+ </ul>
+ <a class="btn primary" href="/pricing" data-tier-cta="pro">See full pricing</a>
+ </div>
+ <div class="pricing-card" id="tier-enterprise" data-tier="enterprise">
+ <div class="pricing-tier">Enterprise</div>
+ <div class="pricing-price" style="font-size:28px;margin-top:6px;">Custom</div>
+ <div class="pricing-cycle">Volume · white-label · SLA</div>
+ <ul class="pricing-feats">
+ <li>Everything in Pro</li>
+ <li>White-label embed &amp; API</li>
+ <li>Dedicated infrastructure</li>
+ <li>Custom integrations</li>
+ <li>Dedicated solutions engineer</li>
+ </ul>
+ <a class="btn" href="mailto:[email protected]" data-tier-cta="enterprise">Contact us</a>
+ </div>
+ </div>
+ <p class="pricing-hint">Hover a tier — she walks over</p>
+ </div>
+ </div>
+</section>
+
+
+<!-- ── AVATAR DROP ─────────────────────────────────────────────────── -->
+<section class="block body-drop" id="body-drop">
+ <div class="wrap-1280">
+ <div class="body-drop-content reveal">
+ <p class="block-eyebrow"><span class="num">10</span>See it in action</p>
+ <h2 class="body-drop-title">
+ <span id="drop-sit-line">Your agent</span><br/>
+ lives <em>here.</em>
+ </h2>
+ <p class="body-drop-sub">
+ Not a render. Not a video. A real 3D character sitting on this text, jumping onto the button, interacting with the page in real-time.
+ </p>
+ <div class="cta-row">
+ <a class="btn primary" href="/create" id="drop-cta-btn">Build your agent <span class="arrow">→</span></a>
+ </div>
+ </div>
+ </div>
+ <canvas id="drop-canvas"></canvas>
+</section>
+
+<!-- ── V4 IMMERSIVE CLOSE ─────────────────────────────────────────── -->
+<section class="vclose" id="vclose">
+ <div class="vclose-grid" aria-hidden="true"></div>
+ <div id="vclose-agent-slot" class="vclose-agent"></div>
+ <div class="vclose-vignette" aria-hidden="true"></div>
+ <div class="vclose-overlay">
+ <div class="vclose-eyebrow">live · three.ws</div>
+ <h2 class="vclose-title">Your AI deserves<br />a <em>body.</em></h2>
+ <p class="vclose-sub">Free to start. Two lines of HTML. Voice, payments, and on-chain identity included.</p>
+ <div class="cta-row" style="justify-content:center;">
+ <a class="btn primary" href="/create">Build your agent <span class="arrow">→</span></a>
+ <a class="btn" href="/docs">Read the docs</a>
+ </div>
+ <div class="vclose-chips" id="vclose-chips" role="group" aria-label="Trigger an animation">
+ <button type="button" class="hero-chip hero-chip--rand" data-anim="__random">🎲 Random</button>
+ <button type="button" class="hero-chip" data-anim="wave">👋 Wave</button>
+ <button type="button" class="hero-chip" data-anim="dance">💃 Dance</button>
+ <button type="button" class="hero-chip" data-anim="capoeira">🤸 Capoeira</button>
+ <button type="button" class="hero-chip" data-anim="thriller">🧟 Thriller</button>
+ <button type="button" class="hero-chip" data-anim="celebrate">🎉 Celebrate</button>
+ </div>
+ </div>
+</section>
+
+<!-- ── FOOTER ─────────────────────────────────────────────────────── -->
+<footer>
+ <div class="wrap-1280">
+ <div class="foot-inner">
+ <div>© 2026 · three.ws · the 3D agent layer of the internet</div>
+ <div class="foot-links">
+ <a href="/docs">Docs</a>
+ <a href="/pricing">Pricing</a>
+ <a href="/discover">Discover</a>
+ <a href="/dashboard/api">API</a>
+ <a href="https://github.com/nirholas/three.ws">GitHub</a>
+ <a href="mailto:[email protected]">Contact</a>
+ </div>
+ </div>
+ </div>
+</footer>
+
+<script type="module">
+ import { initAvatarDrop } from '/src/avatar-drop.js';
+ const dropSection = document.getElementById('body-drop');
+ if (dropSection) {
+ const io = new IntersectionObserver(entries => {
+ if (entries[0].isIntersecting) {
+ io.disconnect();
+ initAvatarDrop(dropSection);
}
+ }, { rootMargin: '200px' });
+ io.observe(dropSection);
+ }
+</script>
- // Scroll reveal — use viewport (root: null) so IntersectionObserver
- // avoids the perspective transform on .home-parallax breaking intersection math.
- (function () {
- const root = document.querySelector('.home-parallax');
- const els = document.querySelectorAll('.h-reveal');
- const observer = new IntersectionObserver(
- (entries) => {
- entries.forEach((entry) => {
- if (entry.isIntersecting) {
- entry.target.classList.add('revealed');
- observer.unobserve(entry.target);
- }
- });
- },
- { root: null, threshold: 0.12, rootMargin: '0px 0px -50px 0px' },
- );
- els.forEach((el) => {
- const siblings = Array.from(el.parentElement.querySelectorAll('.h-reveal'));
- const idx = siblings.indexOf(el);
- el.style.transitionDelay = idx * 0.09 + 's';
- observer.observe(el);
- });
- })();
+<script type="module">
+ import { initWalkPreview } from '/src/walk-embed-preview.js';
+ const walkContainer = document.getElementById('walk-preview-container');
+ if (walkContainer) initWalkPreview(walkContainer);
+</script>
- // Hero avatar — Act2Viewer with cursor/scroll orbit + click → real animations
- (function () {
- const scrollEl = document.querySelector('.home-parallax');
- const canvas = document.getElementById('hero-avatar');
- const heroAct = document.querySelector('.h-hero-act');
- if (!scrollEl || !canvas || !heroAct) return;
-
- let mouseX = 0,
- mouseY = 0,
- scrollProgress = 0;
- const BASE_THETA = -45,
- BASE_PHI = 80,
- BASE_R = 20;
- let curTheta = BASE_THETA,
- curPhi = BASE_PHI,
- curR = BASE_R;
-
- window.addEventListener(
- 'mousemove',
- (e) => {
- mouseX = (e.clientX / innerWidth) * 2 - 1;
- mouseY = (e.clientY / innerHeight) * 2 - 1;
- },
- { passive: true },
- );
-
- scrollEl.addEventListener(
- 'scroll',
- () => {
- scrollProgress = Math.min(scrollEl.scrollTop / heroAct.offsetHeight, 1);
- },
- { passive: true },
- );
-
- function whenReady(cb) {
- if (window.Act2Viewer) return cb();
- setTimeout(() => whenReady(cb), 60);
- }
+<script>
+ // ── Boot live <agent-3d> instances ─────────────────────────────
+ const AVATAR_ID = 'bacff13e-b64b-4ac0-860d-44f0168ad23b';
+ const AGENT_ATTRS = {
+ mode: 'inline', responsive: '', background: 'transparent',
+ 'name-plate': 'off', 'avatar-chat': 'off', kiosk: '', eager: '',
+ };
+ function devProxyGlb(url) {
+ if (!url) return url;
+ const isDev = location.hostname === 'localhost' || location.hostname.includes('.github.dev') || location.hostname.includes('.gitpod.io');
+ if (isDev && url.includes('r2.dev')) {
+ try { return '/r2-proxy' + new URL(url).pathname; } catch (_) {}
+ }
+ return url;
+ }
+ function spawnAgent(glbUrl) {
+ const el = document.createElement('agent-3d');
+ el.classList.add('live-agent');
+ el.setAttribute('body', glbUrl);
+ for (const [k, v] of Object.entries(AGENT_ATTRS)) el.setAttribute(k, v);
+ return el;
+ }
+ (async () => {
+ try {
+ const r = await fetch(`${location.origin}/api/avatars/${AVATAR_ID}`);
+ const d = await r.json();
+ const glb = devProxyGlb(d.avatar?.model_url || d.avatar?.url);
+ if (!glb) return;
+ const heroInner = document.getElementById('hero-stage-inner');
+ if (heroInner) {
+ const heroEl = spawnAgent(glb);
+ heroInner.appendChild(heroEl);
+ initHeroWalk(heroEl);
+ initHeroChips(heroEl);
+ }
+ } catch (e) {
+ console.warn('[home] avatar boot failed', e);
+ }
+ })();
- whenReady(() => {
- const viewer = new window.Act2Viewer(canvas, { fov: 18 });
- let orbitActive = false;
+ // ── Hero walk cycle ─────────────────────────────────────────────
+ let _heroChipActive = false;
- /* cursor + scroll orbit loop — starts after model loads to avoid camera snap */
- (function tick() {
- if (orbitActive) {
- const scrollTheta = scrollProgress * 90;
- const scrollPhi = -scrollProgress * 8;
- const scrollR = scrollProgress * 0.8;
- curTheta += (BASE_THETA + scrollTheta + mouseX * 16 - curTheta) * 0.07;
- curPhi += (BASE_PHI + scrollPhi + mouseY * 6 - curPhi) * 0.07;
- curR += (BASE_R + scrollR - curR) * 0.12;
- viewer.setOrbit(curTheta, curPhi, curR);
- }
- requestAnimationFrame(tick);
- })();
+ function initHeroWalk(heroAgent) {
+ const WALK_CLIP = 'av-walk-feminine';
+ const IDLE_CLIP = 'idle';
+ let active = true;
- const wrap = canvas.closest('.h-avatar-wrap');
+ async function walkCycle() {
+ await new Promise(r => setTimeout(r, 2000));
+ if (!active || _heroChipActive) return;
+ heroAgent.playClipByName?.(WALK_CLIP, { loop: true, fade_ms: 400 });
+ await new Promise(r => setTimeout(r, 5000));
+ if (!active || _heroChipActive) return;
+ heroAgent.playClipByName?.(IDLE_CLIP, { loop: true, fade_ms: 600 });
+ await new Promise(r => setTimeout(r, 3000));
+ walkCycle();
+ }
- /* falling: wait for clip to play out, then expand and slide across.
- alreadyPlaying=true skips the playClip call (used on first load). */
- async function doFalling(alreadyPlaying = false) {
- if (!alreadyPlaying) {
- try {
- await viewer.playClip('falling');
- } catch (_) {}
- }
+ heroAgent.addEventListener('agent:ready', walkCycle, { once: true });
+ if (heroAgent._viewer) walkCycle();
- /* wait for the actual clip to finish on the ground */
- const clipDur = viewer.currentAction
- ? viewer.currentAction.getClip().duration * 1000
- : 2200;
- await new Promise((r) => setTimeout(r, clipDur));
-
- /* expand to full-width and slide the model slowly across the ground */
- wrap.classList.add('h-avatar-wrap--traversing');
- const SLIDE_DUR = 3200;
- const SLIDE_DIST = 8;
- const t0 = performance.now();
- await new Promise((r) => {
- (function step(now) {
- const t = Math.min((now - t0) / SLIDE_DUR, 1);
- const x = SLIDE_DIST * t;
- if (viewer.model) viewer.model.position.x = x;
- viewer._focusX = x;
- if (t < 1) {
- requestAnimationFrame(step);
- } else {
- r();
- }
- })(performance.now());
- });
+ document.addEventListener('visibilitychange', () => {
+ active = !document.hidden;
+ if (active && !_heroChipActive) walkCycle();
+ });
+ }
- /* reset + back to dance */
- if (viewer.model) viewer.model.position.x = 0;
- viewer._focusX = 0;
- wrap.classList.remove('h-avatar-wrap--traversing');
- viewer.playClip('dance').catch(() => {});
- }
+ // ── Hero animation chips ─────────────────────────────────────────
+ function initHeroChips(heroAgent) {
+ const ANIMS = ['wave','dance','capoeira','jump','thriller','pray','celebrate','rumba','falling','kiss','taunt','idle'];
+ const chipsEl = document.getElementById('hero-chips');
+ const counter = document.getElementById('hero-chips-counter');
+ let lastAnim = null;
+ let moveCount = 0;
+
+ if (!chipsEl) return;
+
+ chipsEl.addEventListener('click', (e) => {
+ const btn = e.target.closest('.hero-chip');
+ if (!btn) return;
+ const animKey = btn.dataset.anim;
+ if (!animKey) return;
+
+ let clip = animKey;
+ if (animKey === '__random') {
+ const pool = ANIMS.filter(a => a !== lastAnim);
+ clip = pool[Math.floor(Math.random() * pool.length)];
+ }
+ lastAnim = clip;
+
+ chipsEl.querySelectorAll('.hero-chip').forEach(c => delete c.dataset.active);
+ btn.dataset.active = 'true';
+
+ _heroChipActive = true;
+ heroAgent.playClipByName?.(clip, { loop: false, fade_ms: 400 });
+
+ moveCount += 1;
+ if (counter) counter.innerHTML = `<strong>${moveCount}</strong> ${moveCount === 1 ? 'move' : 'moves'}`;
+
+ clearTimeout(chipsEl._resumeTimer);
+ chipsEl._resumeTimer = setTimeout(() => {
+ _heroChipActive = false;
+ delete btn.dataset.active;
+ }, 6000);
+ });
+ }
+
+
+ // ── Hero thought-bubble chat ────────────────────────────────────
+ (function initHeroChat() {
+ const form = document.getElementById('hero-chat-form');
+ const input = document.getElementById('hero-chat-input');
+ const sendBtn = document.getElementById('hero-chat-send');
+ const bubble = document.getElementById('hero-thought');
+ const textEl = document.getElementById('hero-thought-text');
+ if (!form || !input || !bubble || !textEl) return;
- canvas.style.opacity = '0';
- viewer
- .loadModel('/avatars/cz.glb', { autoPlay: false })
- .then(async () => {
- /* Scale up ring geometry so it fills the canvas */
- viewer.model.traverse((node) => {
- if (node.isMesh || node.isGroup) {
- const n = node.name.toLowerCase();
- if (n.includes('ring') || n.includes('circle') || n.includes('halo') || n.includes('orbit') || n.includes('arc')) {
- node.scale.setScalar(2.5);
- }
- }
- });
- viewer._modelFocusY = 1.1;
- viewer.setOrbit(curTheta, curPhi, curR);
- orbitActive = true;
- /* fetch + start the falling clip before revealing — no T-pose flash */
- try {
- await viewer.playClip('falling');
- } catch (_) {}
- canvas.style.transition = 'opacity 0.15s';
- canvas.style.opacity = '1';
- /* clip is already playing — pass flag so doFalling skips the restart */
- doFalling(true);
- })
- .catch(console.error);
-
- /* click → random manifest animation; falling gets full traverse treatment */
- const FUN = [
- 'falling',
- 'wave',
- 'dance',
- 'celebrate',
- 'jump',
- 'rumba',
- 'capoeira',
- 'thriller',
- 'kiss',
- 'taunt',
- 'pray',
- 'idle',
- 'angry',
- 'defeated',
- 'dying',
- 'reaction',
- 'silly',
- 'sitclap',
- 'sitlaugh',
- 'walk',
- 'dodge',
- 'stepback',
- 'shoved',
- 'standup',
- 'header',
- 'coverstand',
- 'goalkeeper',
- 'jumpdown',
- 'jumpdown2',
- 'jumpdown3',
- 'removing',
- 'falltolanding',
- ];
- let lastAnim = null;
- canvas.style.cursor = 'pointer';
- canvas.addEventListener('click', async () => {
- const pool = FUN.filter((a) => a !== lastAnim);
- const name = pool[Math.floor(Math.random() * pool.length)];
- lastAnim = name;
- if (name === 'falling') {
- doFalling();
- return;
+ var stageEl = document.getElementById('hero-stage');
+ if (stageEl) {
+ var REF_H = 680;
+ function sizeBubble() {
+ var h = stageEl.clientHeight;
+ var ratio = Math.max(0.55, Math.min(1.15, h / REF_H));
+ var topPct = Math.max(4, Math.min(14, 10 + (1 - ratio) * 8));
+ bubble.style.top = topPct.toFixed(1) + '%';
+ }
+ sizeBubble();
+ new ResizeObserver(sizeBubble).observe(stageEl);
+ }
+
+ const AVATAR_CHAT_ID = 'bacff13e-b64b-4ac0-860d-44f0168ad23b';
+ let history = [];
+ let busy = false;
+ let hideTimer = null;
+
+ function showBubble() {
+ clearTimeout(hideTimer);
+ bubble.classList.add('visible');
+ }
+
+ function hideBubble(delay) {
+ clearTimeout(hideTimer);
+ hideTimer = setTimeout(function() {
+ bubble.classList.remove('visible');
+ }, delay || 8000);
+ }
+
+ function showThinking() {
+ textEl.innerHTML = '<div class="hero-thought-dots"><span></span><span></span><span></span></div>';
+ showBubble();
+ }
+
+ function showText(text) {
+ textEl.textContent = text;
+ textEl.scrollTop = textEl.scrollHeight;
+ showBubble();
+ hideBubble(12000);
+ }
+
+ function appendText(chunk) {
+ var dotsEl = textEl.querySelector('.hero-thought-dots');
+ if (dotsEl) textEl.innerHTML = '';
+ textEl.textContent += chunk;
+ textEl.scrollTop = textEl.scrollHeight;
+ }
+
+ function triggerAnim(heroAgent) {
+ if (heroAgent && heroAgent.playClipByName) {
+ heroAgent.playClipByName('wave', { loop: false, fade_ms: 400 });
+ }
+ }
+
+ form.addEventListener('submit', function(e) {
+ e.preventDefault();
+ var msg = input.value.trim();
+ if (!msg || busy) return;
+
+ busy = true;
+ sendBtn.disabled = true;
+ input.value = '';
+ showThinking();
+
+ history.push({ role: 'user', content: msg });
+ if (history.length > 20) history = history.slice(-20);
+
+ var heroAgent = document.querySelector('#hero-stage-inner agent-3d');
+ triggerAnim(heroAgent);
+
+ var fullText = '';
+ fetch('/api/chat', {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({
+ message: msg,
+ agentId: AVATAR_CHAT_ID,
+ history: history.slice(0, -1),
+ context: {}
+ })
+ }).then(function(res) {
+ if (!res.ok) throw new Error('Chat request failed');
+ var reader = res.body.getReader();
+ var decoder = new TextDecoder();
+ var buffer = '';
+
+ function processChunk(result) {
+ if (result.done) {
+ if (fullText) {
+ history.push({ role: 'assistant', content: fullText });
+ hideBubble(12000);
}
+ busy = false;
+ sendBtn.disabled = false;
+ return;
+ }
+ buffer += decoder.decode(result.value, { stream: true });
+ var lines = buffer.split('\n');
+ buffer = lines.pop();
+
+ lines.forEach(function(line) {
+ if (!line.startsWith('data: ')) return;
+ var data = line.slice(6).trim();
+ if (!data || data === '[DONE]') return;
try {
- await viewer.playClip(name);
- const def = viewer._manifest.find((d) => d.name === name);
- if (def && !def.loop) {
- setTimeout(() => viewer.playClip('dance').catch(() => {}), 2600);
+ var parsed = JSON.parse(data);
+ if (parsed.type === 'chunk' && parsed.text) {
+ fullText += parsed.text;
+ appendText(parsed.text);
+ showBubble();
+ } else if (parsed.type === 'error') {
+ showText('Hmm, something went wrong. Try again?');
}
} catch (_) {}
});
- });
- })();
- // Act 2 viewer — Three.js + animation manifest, same trick as /app.
- // Every model gets every clip from /animations/manifest.json (retargeted
- // onto its skeleton via AnimationMixer), regardless of what's baked in.
- (function () {
- const canvas = document.getElementById('home-act2-canvas');
- const chipsWrap = document.querySelector('[data-role="anim-chips"]');
- const picker = document.querySelector('.h-avatar-picker');
- if (!canvas || !chipsWrap || !picker) return;
-
- /* The viewer (heavy Three.js) loads lazily when Act 2 enters view.
- The picker (lightweight DOM + fetch) hydrates on page load so
- featured-agent names are correct *before* the user scrolls. */
- let _resolveViewer;
- const viewerReady = new Promise((r) => (_resolveViewer = r));
-
- function bindOpt(btn) {
- btn.addEventListener('click', async () => {
- picker
- .querySelectorAll('.h-av-opt')
- .forEach((b) => b.setAttribute('aria-pressed', 'false'));
- btn.setAttribute('aria-pressed', 'true');
- const viewer = await viewerReady;
- try {
- await viewer.loadModel(btn.dataset.src);
- } catch (e) {
- console.error(e);
- }
+ return reader.read().then(processChunk);
+ }
+
+ return reader.read().then(processChunk);
+ }).catch(function(err) {
+ console.warn('[hero-chat]', err);
+ showText('Could not reach the agent. Try again in a moment.');
+ busy = false;
+ sendBtn.disabled = false;
+ });
+ });
+ })();
+
+ // ── Hero parallax tilt ──────────────────────────────────────────
+ const stage = document.getElementById('hero-stage');
+ const inner = document.getElementById('hero-stage-inner');
+ if (stage && inner && window.matchMedia('(min-width: 980px)').matches) {
+ const thoughtEl = document.getElementById('hero-thought');
+ let rx = 0, ry = 0, tx = 0, ty = 0;
+ const lerp = (a, b, t) => a + (b - a) * t;
+ stage.addEventListener('mousemove', (e) => {
+ const r = stage.getBoundingClientRect();
+ tx = ((e.clientX - r.left) / r.width - 0.5) * 6;
+ ty = -((e.clientY - r.top) / r.height - 0.5) * 4;
+ });
+ stage.addEventListener('mouseleave', () => { tx = 0; ty = 0; });
+ (function tick() {
+ rx = lerp(rx, ty, 0.08);
+ ry = lerp(ry, tx, 0.08);
+ inner.style.transform = `perspective(1400px) rotateX(${rx.toFixed(2)}deg) rotateY(${ry.toFixed(2)}deg)`;
+ if (thoughtEl) {
+ thoughtEl.style.setProperty('--tilt-x', `${(ry * 2).toFixed(1)}px`);
+ thoughtEl.style.setProperty('--tilt-y', `${(-rx * 1.5).toFixed(1)}px`);
+ }
+ requestAnimationFrame(tick);
+ })();
+ }
+
+ // ── Playground ──────────────────────────────────────────────────
+ (function initPlayground() {
+ const THUMB_CDN = 'https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/thumb';
+ const textarea = document.getElementById('pg-textarea');
+ const highlight = document.getElementById('pg-highlight');
+ const preview = document.getElementById('pg-preview');
+ const avatarRow = document.getElementById('pg-avatars');
+ const modeChips = document.getElementById('pg-mode-chips');
+ const bgChips = document.getElementById('pg-bg-chips');
+ const optChips = document.getElementById('pg-option-chips');
+ const animsEl = document.getElementById('pg-anims');
+ const tabsEl = document.getElementById('pg-tabs');
+ const copyBtn = document.getElementById('pg-copy');
+ if (!textarea || !preview) return;
+
+ const state = {
+ avatarId: AVATAR_ID,
+ glbUrl: '',
+ mode: 'inline',
+ background: 'transparent',
+ options: { responsive: true, 'name-plate': 'off', 'avatar-chat': 'off', eager: true },
+ flavor: 'html',
+ };
+ let liveAgent = null;
+
+ function genCode() {
+ const attrs = [];
+ var isDemo = state.avatarId.indexOf('avatar_demo_') === 0;
+ if (isDemo && state.glbUrl) {
+ attrs.push('body="' + state.glbUrl + '"');
+ } else {
+ attrs.push('src="https://three.ws/api/avatars/' + state.avatarId + '"');
+ }
+ if (state.mode !== 'inline') attrs.push('mode="' + state.mode + '"');
+ if (state.background !== 'transparent') attrs.push('background="' + state.background + '"');
+ for (const [k, v] of Object.entries(state.options)) {
+ if (!v || v === 'off') continue;
+ attrs.push(typeof v === 'string' ? k + '="' + v + '"' : k);
+ }
+ const indent = state.flavor === 'html' ? ' ' : ' ';
+ const attrBlock = attrs.map(function(a) { return indent + a; }).join('\n');
+
+ if (state.flavor === 'html') {
+ return '<script type="module"\n src="https://three.ws/agent-3d/latest/agent-3d.js"\n><\/script>\n\n<agent-3d\n' + attrBlock + '\n></agent-3d>';
+ }
+ if (state.flavor === 'react') {
+ return "import 'https://three.ws/agent-3d/latest/agent-3d.js';\n\nexport default function MyAgent() {\n return (\n <agent-3d\n" + attrBlock + "\n />\n );\n}";
+ }
+ return '<script setup>\nimport \'https://three.ws/agent-3d/latest/agent-3d.js\';\n<\/script>\n\n<template>\n <agent-3d\n' + attrBlock + '\n />\n</template>';
+ }
+
+ function hl(code) {
+ var tokens = [];
+ var ph = function(cls, txt) { var id = '\x00' + tokens.length + '\x00'; tokens.push('<span class="' + cls + '">' + txt + '</span>'); return id; };
+ var s = code.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
+ s = s.replace(/(&lt;\/?[a-z][a-z0-9-]*)/gi, function(m) { return ph('tag', m); });
+ s = s.replace(/\b(import|from|export|default|function|return|const|let|var)\b/g, function(m) { return ph('kw', m); });
+ s = s.replace(/(\s)([a-z][a-z0-9-]*)(=)/gi, function(_, ws, name, eq) { return ws + ph('attr', name) + eq; });
+ s = s.replace(/("(?:[^"\\]|\\.)*?")/g, function(m) { return ph('str', m); });
+ s = s.replace(/(\/\/.*?)$/gm, function(m) { return ph('com', m); });
+ return s.replace(/\x00(\d+)\x00/g, function(_, i) { return tokens[parseInt(i)]; });
+ }
+
+ function syncCode() {
+ var code = genCode();
+ textarea.value = code;
+ highlight.innerHTML = hl(code);
+ }
+
+ function updatePreview() {
+ if (!state.glbUrl) return;
+ if (!liveAgent) {
+ liveAgent = document.createElement('agent-3d');
+ preview.appendChild(liveAgent);
+ }
+ liveAgent.setAttribute('body', state.glbUrl);
+ liveAgent.setAttribute('mode', state.mode);
+ liveAgent.setAttribute('background', state.background);
+ for (var entry of Object.entries(state.options)) {
+ var k = entry[0], v = entry[1];
+ if (v && v !== 'off') liveAgent.setAttribute(k, typeof v === 'string' ? v : '');
+ else liveAgent.removeAttribute(k);
+ }
+ preview.style.backgroundColor = state.background === '#ffffff' ? '#ffffff' : '';
+ }
+
+ function fetchGlb(id) {
+ return fetch(location.origin + '/api/avatars/' + id)
+ .then(function(r) { return r.json(); })
+ .then(function(d) { return devProxyGlb(d.avatar && (d.avatar.model_url || d.avatar.url)) || ''; })
+ .catch(function() { return ''; });
+ }
+
+ function switchAvatar(id, directGlb) {
+ state.avatarId = id;
+ avatarRow.querySelectorAll('.pg-avatar-item').forEach(function(el) {
+ el.classList.toggle('active', el.dataset.id === id);
+ });
+ var resolve = directGlb
+ ? Promise.resolve(devProxyGlb(directGlb))
+ : fetchGlb(id);
+ resolve.then(function(glb) {
+ state.glbUrl = glb;
+ syncCode();
+ if (liveAgent) { liveAgent.remove(); liveAgent = null; }
+ updatePreview();
+ });
+ }
+
+ function renderAvatars(list) {
+ avatarRow.innerHTML = '';
+ list.forEach(function(a) {
+ var btn = document.createElement('button');
+ btn.className = 'pg-avatar-item' + (a.id === state.avatarId ? ' active' : '');
+ btn.dataset.id = a.id;
+ if (a.glb) btn.dataset.glb = a.glb;
+ btn.title = a.name || a.id.slice(0, 8);
+ var initial = document.createElement('span');
+ initial.className = 'pg-avatar-initial';
+ initial.textContent = (a.name || '?').charAt(0);
+ btn.appendChild(initial);
+ if (a.thumb) {
+ var img = document.createElement('img');
+ img.src = a.thumb;
+ img.alt = a.name || '';
+ img.loading = 'lazy';
+ img.onerror = function() { this.style.display = 'none'; initial.style.display = 'flex'; };
+ btn.appendChild(img);
+ } else {
+ initial.style.display = 'flex';
+ }
+ btn.addEventListener('click', function() { switchAvatar(a.id, a.glb); });
+ avatarRow.appendChild(btn);
+ });
+ }
+
+ function loadAvatars() {
+ var O = location.origin;
+ var defaults = [
+ { id: AVATAR_ID, name: 'nich', thumb: THUMB_CDN + '/' + AVATAR_ID + '.png' },
+ { id: 'avatar_demo_disk_cz', name: 'CZ', glb: O + '/avatars/cz.glb' },
+ { id: 'avatar_demo_disk_boss', name: 'Boss', glb: O + '/animations/soldier.glb' },
+ { id: 'avatar_demo_disk_saga', name: 'Saga', glb: O + '/animations/robotexpressive.glb' },
+ { id: 'avatar_demo_disk_ansem', name: 'Ansem', glb: O + '/avatars/default.glb' },
+ { id: 'avatar_demo_disk_claude', name: 'Claude', glb: O + '/avatars/default.glb' },
+ { id: 'avatar_demo_disk_agent', name: 'Agent', glb: O + '/animations/soldier.glb' },
+ { id: 'avatar_demo_disk_ai', name: 'AI', glb: O + '/animations/robotexpressive.glb' },
+ ];
+ renderAvatars(defaults);
+ fetch('/api/marketplace')
+ .then(function(r) { return r.json(); })
+ .then(function(d) {
+ var items = (d.agents || d.items || d || []).slice(0, 24);
+ var list = defaults.slice();
+ var seen = {};
+ defaults.forEach(function(da) { seen[da.id] = true; });
+ items.forEach(function(item) {
+ var id = item.avatar_id || item.avatarId || item.id;
+ if (!id || seen[id]) return;
+ seen[id] = true;
+ list.push({
+ id: id,
+ name: item.name || item.agent_name || '',
+ thumb: item.thumbnail || (THUMB_CDN + '/' + id + '.png'),
+ });
});
+ renderAvatars(list.slice(0, 14));
+ }).catch(function() {});
+ }
+
+ function chipSelect(container, cb) {
+ container.addEventListener('click', function(e) {
+ var chip = e.target.closest('.pg-chip');
+ if (!chip) return;
+ container.querySelectorAll('.pg-chip').forEach(function(c) { c.classList.remove('active'); });
+ chip.classList.add('active');
+ cb(chip);
+ });
+ }
+
+ chipSelect(modeChips, function(chip) {
+ state.mode = chip.dataset.val;
+ syncCode(); updatePreview();
+ });
+
+ var colorTrigger = document.getElementById('pg-color-trigger');
+ var colorPopover = document.getElementById('pg-color-popover');
+ var colorSwatches = document.getElementById('pg-color-swatches');
+ var colorHexInput = document.getElementById('pg-color-hex');
+ var colorPreview = document.getElementById('pg-color-preview');
+
+ var palette = [
+ '#1a1a2e','#16213e','#0f3460','#533483','#e94560','#ff6b6b',
+ '#ffa07a','#ffd93d','#6bcb77','#4d96ff','#845ec2','#d65db1',
+ '#2d3436','#636e72','#b2bec3','#dfe6e9','#fdcb6e','#e17055',
+ '#00b894','#00cec9','#0984e3','#6c5ce7','#fd79a8','#e84393',
+ ];
+
+ palette.forEach(function(hex) {
+ var btn = document.createElement('button');
+ btn.className = 'pg-color-swatch';
+ btn.style.background = hex;
+ btn.dataset.color = hex;
+ btn.setAttribute('aria-label', hex);
+ colorSwatches.appendChild(btn);
+ });
+
+ function applyPickedColor(hex) {
+ state.background = hex;
+ colorTrigger.classList.add('active', 'has-color');
+ colorTrigger.style.setProperty('--pg-picked-color', hex);
+ colorPreview.style.background = hex;
+ colorHexInput.value = hex;
+ bgChips.querySelectorAll('.pg-chip').forEach(function(c) { c.classList.remove('active'); });
+ colorSwatches.querySelectorAll('.pg-color-swatch').forEach(function(s) {
+ s.classList.toggle('active', s.dataset.color === hex);
+ });
+ syncCode(); updatePreview();
+ }
+
+ chipSelect(bgChips, function(chip) {
+ state.background = chip.dataset.val;
+ colorTrigger.classList.remove('active', 'has-color');
+ colorPopover.classList.remove('open');
+ colorSwatches.querySelectorAll('.pg-color-swatch').forEach(function(s) { s.classList.remove('active'); });
+ syncCode(); updatePreview();
+ });
+
+ var popoverMoved = false;
+ function positionPopover() {
+ var rect = colorTrigger.getBoundingClientRect();
+ var pw = 220;
+ var left = rect.left + rect.width / 2 - pw / 2;
+ if (left < 8) left = 8;
+ if (left + pw > window.innerWidth - 8) left = window.innerWidth - 8 - pw;
+ colorPopover.style.top = (rect.bottom + 8) + 'px';
+ colorPopover.style.left = left + 'px';
+ }
+
+ colorTrigger.addEventListener('click', function(e) {
+ e.stopPropagation();
+ if (!popoverMoved) {
+ document.body.appendChild(colorPopover);
+ popoverMoved = true;
+ }
+ positionPopover();
+ colorPopover.classList.toggle('open');
+ });
+
+ window.addEventListener('scroll', function() {
+ if (colorPopover.classList.contains('open')) positionPopover();
+ }, { passive: true });
+ window.addEventListener('resize', function() {
+ if (colorPopover.classList.contains('open')) positionPopover();
+ });
+
+ colorSwatches.addEventListener('click', function(e) {
+ var swatch = e.target.closest('.pg-color-swatch');
+ if (!swatch) return;
+ applyPickedColor(swatch.dataset.color);
+ });
+
+ colorHexInput.addEventListener('input', function() {
+ var v = colorHexInput.value.trim();
+ if (!v.startsWith('#')) v = '#' + v;
+ if (/^#[0-9a-fA-F]{6}$/.test(v)) applyPickedColor(v);
+ });
+
+ colorHexInput.addEventListener('keydown', function(e) {
+ if (e.key === 'Enter') {
+ var v = colorHexInput.value.trim();
+ if (!v.startsWith('#')) v = '#' + v;
+ if (/^#[0-9a-fA-F]{6}$/.test(v)) {
+ applyPickedColor(v);
+ colorPopover.classList.remove('open');
+ }
+ }
+ });
+
+ document.addEventListener('click', function(e) {
+ if (!colorPopover.contains(e.target) && e.target !== colorTrigger) {
+ colorPopover.classList.remove('open');
+ }
+ });
+
+ optChips.addEventListener('click', function(e) {
+ var chip = e.target.closest('.pg-chip');
+ if (!chip) return;
+ var attr = chip.dataset.attr;
+ var isOn = chip.classList.toggle('active');
+ state.options[attr] = isOn ? (chip.dataset.val || true) : (chip.dataset.val ? 'off' : false);
+ syncCode(); updatePreview();
+ });
+
+ tabsEl.addEventListener('click', function(e) {
+ var tab = e.target.closest('.pg-tab');
+ if (!tab) return;
+ state.flavor = tab.dataset.flavor;
+ tabsEl.querySelectorAll('.pg-tab').forEach(function(t) { t.classList.toggle('active', t === tab); });
+ syncCode();
+ });
+
+ var editDebounce = null;
+ textarea.addEventListener('input', function() {
+ highlight.innerHTML = hl(textarea.value);
+ clearTimeout(editDebounce);
+ editDebounce = setTimeout(function() {
+ var code = textarea.value;
+ var m = code.match(/<agent-3d([^>]*?)(?:\/>|>)/i);
+ if (!m) return;
+ var as = m[1];
+ var ga = function(n) { var x = as.match(new RegExp(n + '="([^"]*)"', 'i')); return x ? x[1] : null; };
+ var ha = function(n) { return new RegExp('\\b' + n + '\\b', 'i').test(as); };
+ var src = ga('src');
+ if (src) {
+ var idm = src.match(/avatars\/([a-f0-9-]+)/);
+ if (idm && idm[1] !== state.avatarId) { switchAvatar(idm[1]); return; }
}
- picker.querySelectorAll('.h-av-opt').forEach(bindOpt);
+ var mode = ga('mode');
+ if (mode && mode !== state.mode) state.mode = mode;
+ var bg = ga('background');
+ if (bg !== null) state.background = bg;
+ state.options.responsive = ha('responsive');
+ state.options['name-plate'] = ga('name-plate') === 'on' ? 'on' : 'off';
+ state.options['avatar-chat'] = ga('avatar-chat') === 'on' ? 'on' : 'off';
+ state.options.eager = ha('eager');
+ updatePreview();
+ }, 350);
+ });
+
+ textarea.addEventListener('scroll', function() {
+ highlight.scrollTop = textarea.scrollTop;
+ highlight.scrollLeft = textarea.scrollLeft;
+ });
+
+ textarea.addEventListener('keydown', function(e) {
+ if (e.key === 'Tab') {
+ e.preventDefault();
+ var s = textarea.selectionStart, end = textarea.selectionEnd;
+ textarea.value = textarea.value.substring(0, s) + ' ' + textarea.value.substring(end);
+ textarea.selectionStart = textarea.selectionEnd = s + 2;
+ textarea.dispatchEvent(new Event('input'));
+ }
+ });
+
+ copyBtn.addEventListener('click', function() {
+ navigator.clipboard.writeText(textarea.value).then(function() {
+ copyBtn.classList.add('copied');
+ copyBtn.textContent = 'Copied';
+ setTimeout(function() { copyBtn.classList.remove('copied'); copyBtn.textContent = 'Copy'; }, 1600);
+ }).catch(function() {});
+ });
+
+ animsEl.addEventListener('click', function(e) {
+ var btn = e.target.closest('.pg-anim');
+ if (!btn || !liveAgent) return;
+ var clip = btn.dataset.anim;
+ if (liveAgent.playClipByName) liveAgent.playClipByName(clip, { loop: clip === 'idle', fade_ms: 400 });
+ animsEl.querySelectorAll('.pg-anim').forEach(function(c) { c.classList.remove('active'); });
+ btn.classList.add('active');
+ if (clip !== 'idle') {
+ clearTimeout(animsEl._t);
+ animsEl._t = setTimeout(function() { btn.classList.remove('active'); }, 5000);
+ }
+ });
+
+ fetchGlb(state.avatarId).then(function(glb) {
+ state.glbUrl = glb;
+ syncCode();
+ updatePreview();
+ loadAvatars();
+ });
+ })();
- /* Eagerly populate the picker from /api/explore so featured agents
- (Ansem, Boss Vernington, …) appear immediately. Static buttons
- stay if the fetch fails or returns nothing usable. */
- (async function hydratePicker() {
+ // ── Showcase 3D — live agent grid ──────────────────────────────
+ (function () {
+ const SHOWCASE_ANIMS = ['idle', 'dance', 'wave', 'celebrate', 'capoeira', 'thriller'];
+ const SHOWCASE_TAGS = ['3D', 'animated', 'rigged', 'ERC-8004', 'x402', 'community'];
+ const EXPLORE_SHOWCASE_URL = '/api/explore?source=all&limit=6&quality=high';
+ const FALLBACK_AGENTS = [
+ { name: 'nich', description: '@nirholas', glbUrl: '/avatars/default.glb', viewerUrl: '/agent-next?id=bacff13e-b64b-4ac0-860d-44f0168ad23b', kind: 'avatar' },
+ { name: 'CZ', description: 'Stylized humanoid', glbUrl: '/avatars/cz.glb', viewerUrl: '/avatars/avatar_demo_disk_cz', kind: 'avatar' },
+ { name: 'Boss', description: 'Soldier rig', glbUrl: '/animations/soldier.glb', viewerUrl: '/avatars/avatar_demo_disk_boss', kind: 'avatar' },
+ { name: 'Saga', description: 'Expressive robot', glbUrl: '/animations/robotexpressive.glb', viewerUrl: '/avatars/avatar_demo_disk_saga', kind: 'avatar' },
+ { name: 'Agent', description: 'Autonomous operative', glbUrl: '/animations/soldier.glb', viewerUrl: '/avatars/avatar_demo_disk_agent', kind: 'avatar' },
+ { name: 'Claude', description: 'AI persona', glbUrl: '/avatars/default.glb', viewerUrl: '/avatars/avatar_demo_disk_claude', kind: 'avatar' },
+ ];
+ const grid = document.getElementById('showcase-3d-grid');
+ if (!grid) return;
+
+ function hashHue(str) {
+ var h = 0;
+ for (var i = 0; i < str.length; i++) h = (h * 31 + str.charCodeAt(i)) >>> 0;
+ return h % 360;
+ }
+
+ function makeAgentCard(item, idx) {
+ var card = document.createElement('a');
+ card.className = 'showcase-agent-card';
+ card.href = item.viewerUrl || ('/avatars/' + (item.avatarId || item.agentId));
+
+ var h = hashHue(item.avatarId || item.agentId || item.name || String(idx));
+ var h2 = (h + 50) % 360;
+ var grad = document.createElement('div');
+ grad.className = 'showcase-card-grad';
+ grad.style.background = 'radial-gradient(ellipse at 50% 80%, hsl(' + h + ' 60% 18% / 0.6) 0%, hsl(' + h2 + ' 50% 6% / 0.3) 70%, transparent 100%)';
+ card.appendChild(grad);
+
+ var skel = document.createElement('div');
+ skel.className = 'showcase-card-skel';
+ skel.innerHTML = '<div class="showcase-card-skel-ring"></div>';
+ card.appendChild(skel);
+
+ var floor = document.createElement('div');
+ floor.className = 'showcase-card-floor';
+ card.appendChild(floor);
+
+ var glbUrl = item.glbUrl || '';
+ if (glbUrl) {
+ glbUrl = devProxyGlb(glbUrl);
+ } else if (item.avatarId) {
+ (async function() {
try {
- const r = await fetch(
- '/api/explore?source=avatar&quality=high&limit=12',
- );
- if (!r.ok) return;
- const j = await r.json();
- const seen = new Set();
- const named = (j?.items || [])
- .filter((it) => {
- if (it.kind !== 'avatar' || !it.glbUrl) return false;
- const name = String(it.name || '').trim();
- if (name.length < 2) return false;
- if (/^avatar[\s_-]?\d/i.test(name)) return false;
- if (seen.has(name.toLowerCase())) return false;
- seen.add(name.toLowerCase());
- return true;
- })
- .slice(0, 3);
- if (named.length < 2) return;
- picker.innerHTML = '';
- named.forEach((a, i) => {
- const btn = document.createElement('button');
- btn.type = 'button';
- btn.className = 'h-av-opt';
- btn.dataset.src = a.glbUrl;
- btn.setAttribute('aria-pressed', i === 0 ? 'true' : 'false');
- btn.textContent = a.name;
- picker.appendChild(btn);
- bindOpt(btn);
- });
- } catch (e) {
- // Keep static picker; surface in dev so genuine bugs aren't swallowed.
- console.warn('[home] picker hydration failed', e);
- }
+ var r = await fetch('/api/avatars/' + item.avatarId);
+ var d = await r.json();
+ var url = devProxyGlb(d.avatar?.model_url || d.avatar?.url);
+ if (url) bootAgent(card, skel, url, idx);
+ } catch (_) {}
})();
+ }
+
+ if (item.kind === 'onchain') {
+ var tag = document.createElement('span');
+ tag.className = 'showcase-card-tag';
+ tag.textContent = 'On-chain';
+ card.appendChild(tag);
+ } else if (idx === 0) {
+ var ftag = document.createElement('span');
+ ftag.className = 'showcase-card-tag';
+ ftag.textContent = 'Featured';
+ card.appendChild(ftag);
+ }
+
+ var animLabel = document.createElement('span');
+ animLabel.className = 'showcase-card-anim-tag';
+ animLabel.textContent = SHOWCASE_TAGS[idx % SHOWCASE_TAGS.length];
+ card.appendChild(animLabel);
+
+ var meta = document.createElement('div');
+ meta.className = 'showcase-card-meta';
+ meta.innerHTML = '<div class="showcase-card-name">' + escHtml(item.name || 'Agent') + '</div>'
+ + '<div class="showcase-card-sub">' + escHtml(item.description ? item.description.slice(0, 50) : (item.kind === 'onchain' ? 'ERC-8004' : 'GLB')) + '</div>';
+ card.appendChild(meta);
+
+ if (glbUrl) bootAgent(card, skel, glbUrl, idx);
+
+ return card;
+ }
+
+ function bootAgent(card, skel, glbUrl, idx) {
+ var el = document.createElement('agent-3d');
+ el.setAttribute('body', glbUrl);
+ el.setAttribute('mode', 'inline');
+ el.setAttribute('responsive', '');
+ el.setAttribute('background', 'transparent');
+ el.setAttribute('name-plate', 'off');
+ el.setAttribute('avatar-chat', 'off');
+ el.setAttribute('kiosk', '');
+ card.insertBefore(el, skel);
- /* Wait for the Act2Viewer ESM to load (it sets window.Act2Viewer) */
- function whenReady(cb) {
- if (window.Act2Viewer) return cb();
- setTimeout(() => whenReady(cb), 60);
+ el.addEventListener('agent:ready', function () {
+ el.classList.add('loaded');
+ if (skel && skel.parentNode) skel.remove();
+ var anim = SHOWCASE_ANIMS[idx % SHOWCASE_ANIMS.length];
+ if (anim !== 'idle') {
+ el.playClipByName?.(anim, { loop: true, fade_ms: 600 });
}
+ }, { once: true });
+ }
- function initAct2() {
- whenReady(() => {
- const viewer = new window.Act2Viewer(canvas);
+ function makeCta(href, icon, label, sub) {
+ var a = document.createElement('a');
+ a.className = 'showcase-cta-card';
+ a.href = href;
+ a.innerHTML = '<span class="showcase-cta-icon">' + icon + '</span>'
+ + '<span class="showcase-cta-label">' + label + '</span>'
+ + '<span class="showcase-cta-sub">' + sub + '</span>';
+ return a;
+ }
- function prettyLabel(def) {
- const icon = def.icon || '✨';
- const label = (def.label || def.name).replace(/\s*\([^)]*\)/g, '').trim();
- return icon + ' ' + label;
- }
+ function escHtml(s) {
+ var d = document.createElement('span');
+ d.textContent = s;
+ return d.innerHTML;
+ }
- function rebuildChips(defs) {
- chipsWrap.innerHTML = '';
- defs.forEach((def, i) => {
- const btn = document.createElement('button');
- btn.type = 'button';
- btn.className = 'h-anim-chip';
- btn.dataset.anim = def.name;
- btn.textContent = prettyLabel(def);
- if (i === 0) btn.dataset.active = 'true';
- btn.addEventListener('click', async () => {
- chipsWrap
- .querySelectorAll('.h-anim-chip')
- .forEach((c) => delete c.dataset.active);
- btn.dataset.active = 'true';
- try {
- await viewer.playClip(def.name);
- } catch (e) {
- /* ignore */
- }
- });
- chipsWrap.appendChild(btn);
- });
- }
+ function renderShowcase(agentItems) {
+ agentItems.forEach(function (item, i) {
+ grid.appendChild(makeAgentCard(item, i));
+ });
+ grid.appendChild(makeCta('/discover', '→', 'Browse all', 'Public agent directory'));
+ grid.appendChild(makeCta('/create', '✨', 'Make your own', 'Selfie → agent · 60s'));
+ }
- viewer.onClipsReady = rebuildChips;
-
- /* Default load: whichever picker button is currently pressed
- (after hydration this is the first featured agent). */
- const activeBtn = picker.querySelector('.h-av-opt[aria-pressed="true"]');
- const defaultSrc =
- activeBtn?.dataset.src || '/animations/robotexpressive.glb';
- viewer.loadModel(defaultSrc).catch(console.error);
-
- /* Resolve viewerReady so any queued picker clicks proceed. */
- _resolveViewer(viewer);
-
- /* click on canvas to toggle zoom (default → extra-wide) */
- let wider = false;
- const NEAR = 22,
- FAR = 36;
- canvas.addEventListener('click', () => {
- wider = !wider;
- viewer.zoom(wider ? FAR : NEAR);
- });
+ var showcaseBooted = false;
+ var showcaseObs = new IntersectionObserver(function (entries) {
+ if (!entries[0].isIntersecting || showcaseBooted) return;
+ showcaseBooted = true;
+ showcaseObs.disconnect();
+
+ fetch(EXPLORE_SHOWCASE_URL, { headers: { accept: 'application/json' } })
+ .then(function (r) { return r.json(); })
+ .then(function (data) {
+ var items = Array.isArray(data.items) ? data.items : [];
+ var agentItems = items.filter(function (it) { return it.glbUrl || it.avatarId; }).slice(0, 6);
+ renderShowcase(agentItems.length >= 3 ? agentItems : FALLBACK_AGENTS);
+ })
+ .catch(function () {
+ renderShowcase(FALLBACK_AGENTS);
});
- }
+ }, { rootMargin: '200px' });
+ showcaseObs.observe(grid);
+ })();
- if (!SKIP_OFFSCREEN_GL) {
- let act2Inited = false;
- const act2Obs = new IntersectionObserver((entries) => {
- if (entries[0].isIntersecting && !act2Inited) {
- act2Inited = true;
- act2Obs.disconnect();
- initAct2();
- }
- }, { threshold: 0, rootMargin: '600px 0px 600px 0px' });
- act2Obs.observe(canvas);
- }
- })();
+ // ── Vclose section ──────────────────────────────────────────────
+ (async () => {
+ try {
+ const r = await fetch(`${location.origin}/api/avatars/${AVATAR_ID}`);
+ const d = await r.json();
+ const glb = devProxyGlb(d.avatar?.model_url || d.avatar?.url);
+ if (!glb) return;
- // Bento Viewer card — same Act2Viewer + animation panel as Act 2
- (function () {
- const canvas = document.getElementById('bento-cz-canvas');
- const grid = document.querySelector('[data-role="bento-anim-grid"]');
- const stopBtn = document.querySelector('[data-role="bento-anim-stop"]');
- if (!canvas || !grid) return;
+ const slot = document.getElementById('vclose-agent-slot');
+ if (!slot) return;
+ const vcloseEl = document.createElement('agent-3d');
+ vcloseEl.id = 'vclose-agent';
+ vcloseEl.className = 'vclose-agent';
+ vcloseEl.setAttribute('body', glb);
+ vcloseEl.setAttribute('mode', 'inline');
+ vcloseEl.setAttribute('responsive', '');
+ vcloseEl.setAttribute('background', 'transparent');
+ vcloseEl.setAttribute('name-plate', 'off');
+ vcloseEl.setAttribute('avatar-chat', 'off');
+ vcloseEl.setAttribute('kiosk', '');
+ slot.replaceWith(vcloseEl);
- function whenReady(cb) {
- if (window.Act2Viewer) return cb();
- setTimeout(() => whenReady(cb), 60);
- }
+ let vcloseInited = false;
+ const ANIMS = ['wave','dance','capoeira','jump','thriller','pray','celebrate','rumba','falling','kiss','taunt'];
+ let vcloseLast = null;
- function initViewer() {
- whenReady(() => {
- const viewer = new window.Act2Viewer(canvas, { fov: 20 });
+ function vcloseReady() {
+ if (vcloseInited) return;
+ vcloseInited = true;
+ vcloseEl.classList.add('loaded');
+ vcloseEl.playClipByName?.('idle', { loop: true, fade_ms: 400 });
+ }
+ vcloseEl.addEventListener('agent:ready', vcloseReady, { once: true });
- function prettyLabel(def) {
- return (def.label || def.name).replace(/\s*\([^)]*\)/g, '').trim();
+ const vcloseChips = document.getElementById('vclose-chips');
+ if (vcloseChips) {
+ vcloseChips.addEventListener('click', (e) => {
+ const btn = e.target.closest('.hero-chip');
+ if (!btn) return;
+ let clip = btn.dataset.anim;
+ if (clip === '__random') {
+ const pool = ANIMS.filter(a => a !== vcloseLast);
+ clip = pool[Math.floor(Math.random() * pool.length)];
}
+ vcloseLast = clip;
+ vcloseChips.querySelectorAll('.hero-chip').forEach(c => delete c.dataset.active);
+ btn.dataset.active = 'true';
+ vcloseEl.playClipByName?.(clip, { loop: false, fade_ms: 400 });
+ clearTimeout(vcloseChips._timer);
+ vcloseChips._timer = setTimeout(() => delete btn.dataset.active, 6000);
+ });
+ }
- function buildButtons(defs) {
- grid.innerHTML = '';
- defs.forEach((def, i) => {
- const btn = document.createElement('button');
- btn.type = 'button';
- btn.className = 'h-bento-anim-btn';
- btn.dataset.anim = def.name;
- btn.title = def.label || def.name;
- const icon = document.createElement('span');
- icon.className = 'h-bento-anim-btn__icon';
- icon.textContent = def.icon || '✨';
- const label = document.createElement('span');
- label.className = 'h-bento-anim-btn__label';
- label.textContent = prettyLabel(def);
- btn.appendChild(icon);
- btn.appendChild(label);
- if (i === 0) btn.classList.add('h-bento-anim-btn--active');
- btn.addEventListener('click', async () => {
- grid.querySelectorAll('.h-bento-anim-btn').forEach((b) =>
- b.classList.remove('h-bento-anim-btn--active'),
- );
- btn.classList.add('h-bento-anim-btn--active');
- btn.classList.add('h-bento-anim-btn--loading');
- try {
- await viewer.playClip(def.name);
- } catch (_) {}
- btn.classList.remove('h-bento-anim-btn--loading');
- });
- grid.appendChild(btn);
- });
+ const vcloseSection = document.getElementById('vclose');
+ if (vcloseSection) {
+ const io = new IntersectionObserver((entries) => {
+ if (entries[0].isIntersecting && !vcloseInited) {
+ vcloseReady();
}
+ }, { threshold: 0, rootMargin: '200px' });
+ io.observe(vcloseSection);
+ }
+ } catch (e) {
+ console.warn('[home] vclose avatar boot failed', e);
+ }
+ })();
- viewer.onClipsReady = buildButtons;
- viewer
- .loadModel('/avatars/cz.glb', { autoPlay: false })
- .then(() => viewer.playClip('celebrate').catch(() => {}))
- .catch(console.error);
-
- if (stopBtn) {
- stopBtn.addEventListener('click', () => {
- if (viewer.mixer) viewer.mixer.stopAllAction();
- viewer.currentAction = null;
- grid.querySelectorAll('.h-bento-anim-btn').forEach((b) =>
- b.classList.remove('h-bento-anim-btn--active'),
- );
- });
+ // ── Reveal on scroll (IntersectionObserver) ────────────────────
+ {
+ const revealEls = document.querySelectorAll('.reveal');
+ if (revealEls.length) {
+ const revealObs = new IntersectionObserver((entries) => {
+ entries.forEach((entry) => {
+ if (entry.isIntersecting) {
+ entry.target.classList.add('vis');
+ revealObs.unobserve(entry.target);
}
- });
- }
+ });
+ }, { threshold: 0.08, rootMargin: '0px 0px -40px 0px' });
+ revealEls.forEach((el) => revealObs.observe(el));
+ }
+ }
- // Defer viewer init until canvas scrolls into view — avoids creating
- // WebGL context before the card is visible inside the parallax container.
- if (!SKIP_OFFSCREEN_GL) {
- let inited = false;
- const io = new IntersectionObserver((entries) => {
- if (entries[0].isIntersecting && !inited) {
- inited = true;
- io.disconnect();
- initViewer();
- }
- }, { threshold: 0, rootMargin: '600px 0px 600px 0px' });
- io.observe(canvas);
- }
- })();
+ // ── Hero text entrance ──────────────────────────────────────────
+ requestAnimationFrame(() => {
+ const heroText = document.querySelector('.hero-text');
+ if (heroText) heroText.classList.add('entered');
+ });
- // Chain ribbon (Act 3)
- (function () {
- const ribbon = document.querySelector('[data-role="home-chain-ribbon"]');
- if (!ribbon) return;
- const labels = [
- 'Solana',
- 'Base',
- 'Ethereum',
- 'BSC',
- 'Arbitrum',
- 'Avalanche',
- 'Celo',
- 'Linea',
- 'zkSync',
- 'Scroll',
- 'Optimism',
- 'Mode',
- ];
- ribbon.replaceChildren(
- ...labels.map((l) => {
- const s = document.createElement('span');
- s.className = 'chain-pill';
- s.textContent = l;
- return s;
- }),
- );
+ // ── Hero agent loaded state ─────────────────────────────────────
+ {
+ const heroStage = document.getElementById('hero-stage');
+ const shimmer = document.getElementById('hero-shimmer');
+ if (heroStage) {
+ const checkLoaded = () => {
+ const agentEl = heroStage.querySelector('agent-3d');
+ if (!agentEl) return;
+ const markLoaded = () => {
+ agentEl.classList.add('loaded');
+ if (shimmer) shimmer.classList.add('hidden');
+ };
+ agentEl.addEventListener('agent:ready', markLoaded, { once: true });
+ if (agentEl._viewer) markLoaded();
+ };
+ const mo = new MutationObserver(() => { checkLoaded(); mo.disconnect(); });
+ mo.observe(heroStage, { childList: true, subtree: true });
+ checkLoaded();
+ }
+ }
+
+ // ── 3D Stack section: mouse-tracked perspective + spotlight ─────
+ {
+ const scene = document.getElementById('stack-3d-scene');
+ const wrap = document.getElementById('stack-3d');
+ if (scene && wrap && window.matchMedia('(min-width: 601px)').matches
+ && !window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
+ let rx = 0, ry = 0, tx = 0, ty = 0;
+ const lerp = (a, b, t) => a + (b - a) * t;
+
+ wrap.addEventListener('mousemove', (e) => {
+ const r = wrap.getBoundingClientRect();
+ const nx = (e.clientX - r.left) / r.width;
+ const ny = (e.clientY - r.top) / r.height;
+ tx = (nx - 0.5) * 8;
+ ty = -(ny - 0.5) * 5;
+ });
+ wrap.addEventListener('mouseleave', () => { tx = 0; ty = 0; });
+
+ (function tick() {
+ rx = lerp(rx, ty, 0.06);
+ ry = lerp(ry, tx, 0.06);
+ scene.style.transform =
+ `rotateX(${rx.toFixed(2)}deg) rotateY(${ry.toFixed(2)}deg)`;
+ requestAnimationFrame(tick);
})();
- // Custom cursor
- (function () {
- const cursor = document.getElementById('cursor');
- if (!cursor || window.matchMedia('(hover: none)').matches || REDUCED_MOTION) return;
- let cx = -100,
- cy = -100,
- tx = -100,
- ty = -100;
- document.addEventListener('mousemove', (e) => {
- tx = e.clientX;
- ty = e.clientY;
- });
- document.addEventListener('mouseleave', () => {
- tx = cy = -100;
+ scene.addEventListener('mousemove', (e) => {
+ const cards = scene.querySelectorAll('.stack-card');
+ cards.forEach(card => {
+ const cr = card.getBoundingClientRect();
+ card.style.setProperty('--mx', (e.clientX - cr.left) + 'px');
+ card.style.setProperty('--my', (e.clientY - cr.top) + 'px');
});
- const hover = 'a,button,[role="button"],.h-av-opt,.h-anim-chip';
- document.querySelectorAll(hover).forEach((el) => {
- el.addEventListener('mouseenter', () => cursor.classList.add('cursor--hover'));
- el.addEventListener('mouseleave', () =>
- cursor.classList.remove('cursor--hover'),
- );
- });
- (function loop() {
- cx += (tx - cx) * 0.18;
- cy += (ty - cy) * 0.18;
- cursor.style.transform = `translate(${cx}px,${cy}px) translate(-50%,-50%)`;
- requestAnimationFrame(loop);
- })();
- })();
+ });
+ }
- // Act 3 — animated trio of ghost avatars (robot, CZ, soldier)
- (function () {
- const configs = [
- {
- id: 'act3-avatar-a',
- src: '/animations/robotexpressive.glb',
- anim: 'capoeira',
- },
- { id: 'act3-avatar-b', src: '/avatars/cz.glb', anim: 'rumba' },
- { id: 'act3-avatar-c', src: '/animations/soldier.glb', anim: 'wave' },
- ];
-
- function whenReady(cb) {
- if (window.Act2Viewer) return cb();
- setTimeout(() => whenReady(cb), 60);
- }
+ if (wrap) {
+ setTimeout(() => wrap.classList.add('settled'), 800);
+ }
+ }
- function initAct3() {
- whenReady(() => {
- configs.forEach(({ id, src, anim }) => {
- const canvas = document.getElementById(id);
- if (!canvas) return;
- const viewer = new window.Act2Viewer(canvas, { fov: 22 });
- viewer
- .loadModel(src)
- .then(() => viewer.playClip(anim).catch(() => {}))
- .catch(() => {});
- });
+ // ── Live marketing stats ────────────────────────────────────────
+ (async () => {
+ try {
+ const r = await fetch('/api/home-stats');
+ const d = await r.json();
+ const fmt = (n) => Number(n).toLocaleString('en-US');
+
+ if (d.agents) {
+ document.getElementById('sb-agents').textContent = fmt(d.agents);
+ document.getElementById('sb-widgets').textContent = fmt(d.widgets);
+ document.getElementById('sb-onchain').textContent = fmt(d.onchain_agents);
+ }
+ } catch (_) {}
+ })();
+
+ // ── Live feature agents ─────────────────────────────────────────
+ (function initLiveFeatures() {
+ var O = location.origin;
+ var LIVE_SPOTS = [
+ { id: 'door-create', anim: 'idle', loop: true, glb: null },
+ { id: 'door-embed', anim: 'wave', loop: false, glb: O + '/avatars/cz.glb' },
+ { id: 'door-earn', anim: 'dance', loop: true, glb: O + '/animations/soldier.glb' },
+ { id: 'bento-studio', anim: 'idle', loop: true, glb: null },
+ { id: 'bento-anim', anim: 'idle', loop: true, glb: null }
+ ];
+
+ function spawnMini(container, glb, opts) {
+ var el = document.createElement('agent-3d');
+ el.setAttribute('body', glb);
+ el.setAttribute('mode', 'inline');
+ el.setAttribute('responsive', '');
+ el.setAttribute('background', 'transparent');
+ el.setAttribute('name-plate', 'off');
+ el.setAttribute('avatar-chat', 'off');
+ el.setAttribute('kiosk', '');
+ el.setAttribute('eager', '');
+ container.appendChild(el);
+ el.addEventListener('agent:ready', function() {
+ if (el.playClipByName) el.playClipByName(opts.anim, { loop: opts.loop !== false, fade_ms: 400 });
+ }, { once: true });
+ return el;
+ }
+
+ fetch(location.origin + '/api/avatars/' + AVATAR_ID)
+ .then(function(r) { return r.json(); })
+ .then(function(d) {
+ var apiGlb = devProxyGlb(d.avatar && (d.avatar.model_url || d.avatar.url));
+ if (!apiGlb) return;
+ var io = new IntersectionObserver(function(entries) {
+ entries.forEach(function(entry) {
+ if (!entry.isIntersecting) return;
+ var spot = LIVE_SPOTS.find(function(s) { return s.id === entry.target.id; });
+ if (!spot || entry.target.querySelector('agent-3d')) return;
+ io.unobserve(entry.target);
+ spawnMini(entry.target, spot.glb || apiGlb, spot);
});
- }
+ }, { rootMargin: '300px' });
+ LIVE_SPOTS.forEach(function(spot) {
+ var el = document.getElementById(spot.id);
+ if (el) io.observe(el);
+ });
+ }).catch(function() {});
- // Observe the first Act3 canvas; when it enters view, init all three.
- const firstCanvas = document.getElementById('act3-avatar-a');
- if (firstCanvas && !SKIP_OFFSCREEN_GL) {
- let act3Inited = false;
- const act3Obs = new IntersectionObserver((entries) => {
- if (entries[0].isIntersecting && !act3Inited) {
- act3Inited = true;
- act3Obs.disconnect();
- initAct3();
- }
- }, { threshold: 0, rootMargin: '600px 0px 600px 0px' });
- act3Obs.observe(firstCanvas);
- }
- })();
+ // Bento animation pills
+ var animPills = document.getElementById('bento-anim-pills');
+ if (animPills) {
+ animPills.addEventListener('click', function(e) {
+ var btn = e.target.closest('.bento-pill-btn');
+ if (!btn) return;
+ e.preventDefault(); e.stopPropagation();
+ var clip = btn.dataset.anim;
+ var agent = document.querySelector('#bento-anim agent-3d');
+ if (agent && agent.playClipByName) agent.playClipByName(clip, { loop: clip === 'idle', fade_ms: 400 });
+ animPills.querySelectorAll('.bento-pill-btn').forEach(function(p) { p.classList.remove('active'); });
+ btn.classList.add('active');
+ });
+ }
- // Star field canvas
- (function () {
- for (const canvas of document.querySelectorAll('[data-role="star-canvas"]')) {
- const dpr = Math.min(window.devicePixelRatio || 1, 2);
- const w = window.innerWidth * dpr;
- const h = window.innerHeight * 8 * dpr;
- canvas.width = w;
- canvas.height = h;
- const ctx = canvas.getContext('2d');
- const tint = canvas.dataset.tint || '255,255,255';
- const count = parseInt(canvas.dataset.count || '250', 10);
- for (let i = 0; i < count; i++) {
- const x = Math.random() * w;
- const y = Math.random() * h;
- const r = (Math.random() * 1.4 + 0.3) * dpr;
- ctx.beginPath();
- ctx.arc(x, y, r, 0, Math.PI * 2);
- ctx.fillStyle = `rgba(${tint},${Math.random() * 0.65 + 0.2})`;
- ctx.fill();
- }
- for (let i = 0; i < 10; i++) {
- const x = Math.random() * w,
- y = Math.random() * h;
- const g = ctx.createRadialGradient(x, y, 0, x, y, 6 * dpr);
- g.addColorStop(0, `rgba(${tint},0.9)`);
- g.addColorStop(1, `rgba(${tint},0)`);
- ctx.beginPath();
- ctx.arc(x, y, 6 * dpr, 0, Math.PI * 2);
- ctx.fillStyle = g;
- ctx.fill();
- }
- }
- })();
- </script>
-
- <script>
- // Traction stats — fetch /api/platform/stats, animate counters on scroll into view.
- (function () {
- function fmtNum(n) {
- if (n >= 1_000_000) return (n / 1_000_000).toFixed(1).replace(/\.0$/, '') + 'M';
- if (n >= 1_000) return (n / 1_000).toFixed(1).replace(/\.0$/, '') + 'K';
- return String(n);
+ // Earn door ticker
+ var earnVal = document.getElementById('door-earn-val');
+ if (earnVal) {
+ var started = false;
+ var earnObs = new IntersectionObserver(function(entries) {
+ if (entries[0].isIntersecting && !started) {
+ started = true; earnObs.disconnect();
+ var val = 0, target = 847.5;
+ (function tick() {
+ val += (target - val) * 0.025;
+ if (val >= target - 0.01) val = target;
+ earnVal.textContent = '$' + val.toFixed(2);
+ if (val < target) requestAnimationFrame(tick);
+ })();
}
+ });
+ earnObs.observe(earnVal);
+ }
+ })();
+</script>
+<script src="/src/api-playground.js"></script>
+<script type="module">
+import * as THREE from 'three';
+import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
- function animateCount(el, target) {
- const duration = 1200;
- const start = performance.now();
- function step(now) {
- const t = Math.min((now - start) / duration, 1);
- const ease = 1 - Math.pow(1 - t, 3);
- const val = Math.round(target * ease);
- el.textContent = fmtNum(val);
- if (t < 1) requestAnimationFrame(step);
- }
- requestAnimationFrame(step);
- }
+const canvas = document.getElementById('pricing-canvas');
+const tiers = [...document.querySelectorAll('#pricing-stage .pricing-card')];
- const section = document.querySelector('.h-traction');
- const vals = document.querySelectorAll('[data-traction-val]');
- if (!section) return;
- vals.forEach((el) => el.classList.add('is-loading'));
-
- let statsData = null;
- let animated = false;
-
- function triggerAnimation() {
- if (animated || !statsData) return;
- animated = true;
- vals.forEach((el) => {
- const key = el.dataset.tractionVal;
- const raw = statsData[key];
- if (raw == null) return;
- el.classList.remove('is-loading');
- animateCount(el, Number(raw));
- });
+if (canvas && tiers.length && window.matchMedia('(min-width: 861px)').matches) {
+ const renderer = new THREE.WebGLRenderer({ canvas, antialias: true, alpha: true });
+ renderer.setPixelRatio(Math.min(devicePixelRatio, 2));
+ renderer.outputColorSpace = THREE.SRGBColorSpace;
+ renderer.toneMapping = THREE.ACESFilmicToneMapping;
+ renderer.toneMappingExposure = 1.1;
+
+ const scene = new THREE.Scene();
+ const PX_PER_UNIT = 120;
+ const camera = new THREE.OrthographicCamera(-1, 1, 1, -1, 0.1, 100);
+ camera.position.z = 10;
+
+ function updateFrustum() {
+ const r = canvas.getBoundingClientRect();
+ if (!r.width || !r.height) return;
+ const hw = r.width / PX_PER_UNIT / 2;
+ const hh = r.height / PX_PER_UNIT / 2;
+ camera.left = -hw; camera.right = hw;
+ camera.top = hh; camera.bottom = -hh;
+ camera.updateProjectionMatrix();
+ }
+
+ const _v3 = new THREE.Vector3();
+ function domToWorld(sx, sy) {
+ const r = canvas.getBoundingClientRect();
+ _v3.set(
+ ((sx - r.left) / r.width) * 2 - 1,
+ -((sy - r.top) / r.height) * 2 + 1,
+ 0
+ );
+ _v3.unproject(camera);
+ return { x: _v3.x, y: _v3.y };
+ }
+
+ let avatar = null, mixer = null, rootBone = null, baseRootPos = null;
+ let phase = 'loading';
+ let activeTier = null;
+
+ function resize() {
+ const r = canvas.getBoundingClientRect();
+ if (!r.width || !r.height) return;
+ renderer.setSize(r.width, r.height, false);
+ updateFrustum();
+ if (avatar && activeTier && phase === 'idle') {
+ const t = standOnTopOf(activeTier);
+ avatar.position.set(t.x, t.y, 0);
+ }
+ }
+ window.addEventListener('resize', resize);
+
+ scene.add(new THREE.AmbientLight(0xffffff, 0.6));
+ const keyLight = new THREE.DirectionalLight(0xfff4dc, 2.0);
+ keyLight.position.set(3, 6, 5); scene.add(keyLight);
+ const rimLight = new THREE.DirectionalLight(0x4060ff, 0.6);
+ rimLight.position.set(-4, 3, -2); scene.add(rimLight);
+ const fillLight = new THREE.DirectionalLight(0xffeedd, 0.4);
+ fillLight.position.set(0, 2, 7); scene.add(fillLight);
+
+ const actions = {};
+ let currentAction = null;
+ const FADE_S = 0.3;
+
+ function setAnimation(name, opts = {}) {
+ const next = actions[name];
+ if (!next || next === currentAction) return;
+ const loop = opts.loop !== false;
+ next.reset();
+ next.setLoop(loop ? THREE.LoopRepeat : THREE.LoopOnce, loop ? Infinity : 1);
+ next.clampWhenFinished = !!opts.hold;
+ if (currentAction) next.crossFadeFrom(currentAction, FADE_S, false).play();
+ else next.fadeIn(FADE_S).play();
+ currentAction = next;
+ }
+
+ function standOnTopOf(tierEl) {
+ const r = tierEl.getBoundingClientRect();
+ return domToWorld(r.left + r.width / 2, r.top);
+ }
+
+ let walkT = 0, walkStart = null, walkEnd = null, walkDur = 0.85, walkPeakRise = 0;
+ let onArrival = null;
+ const WALK_SPEED = 5;
+ function smoothstep(t) { return t * t * (3 - 2 * t); }
+
+ function beginMove(tierEl) {
+ if (activeTier) activeTier.classList.remove('is-active');
+ activeTier = tierEl;
+ activeTier.classList.add('is-active');
+ }
+
+ function walkToTier(tierEl) {
+ if (!avatar || tierEl === activeTier) return;
+ beginMove(tierEl);
+ phase = 'walking';
+ walkT = 0;
+ walkStart = { x: avatar.position.x, y: avatar.position.y };
+ walkEnd = standOnTopOf(tierEl);
+ const dx = Math.abs(walkEnd.x - walkStart.x);
+ walkDur = Math.max(0.4, dx / WALK_SPEED);
+ const minX = Math.min(walkStart.x, walkEnd.x);
+ const maxX = Math.max(walkStart.x, walkEnd.x);
+ const baseY = Math.max(walkStart.y, walkEnd.y);
+ let peakY = baseY;
+ for (const tt of tiers) {
+ const tp = standOnTopOf(tt);
+ if (tp.x > minX && tp.x < maxX && tp.y > peakY) peakY = tp.y;
+ }
+ walkPeakRise = peakY - baseY;
+ setAnimation('walk', { loop: true });
+ const dir = Math.sign(walkEnd.x - walkStart.x) || 0;
+ avatar.rotation.y = dir * (Math.PI / 2);
+ }
+
+ const CTA_REACTION = { beta: 'wave', pro: 'av-celebrating', enterprise: 'av-brag-claps' };
+ const CTA_REACTION_MAX_MS = 3500;
+
+ function landOnTier() {
+ phase = 'idle';
+ const snap = standOnTopOf(activeTier);
+ avatar.position.set(snap.x, snap.y, 0);
+ setAnimation('idle', { loop: true });
+ if (onArrival) {
+ const cb = onArrival;
+ onArrival = null;
+ setTimeout(cb, 300);
+ }
+ }
+
+ let hoverTimer = null, hoverPendingTier = null;
+ function scheduleMove(tierEl) {
+ if (!tierEl) { clearTimeout(hoverTimer); hoverPendingTier = null; return; }
+ if (tierEl === activeTier) { clearTimeout(hoverTimer); hoverPendingTier = null; return; }
+ if (tierEl === hoverPendingTier) return;
+ clearTimeout(hoverTimer);
+ hoverPendingTier = tierEl;
+ hoverTimer = setTimeout(() => {
+ hoverPendingTier = null;
+ if (phase === 'walking') setTimeout(() => scheduleMove(tierEl), 200);
+ else walkToTier(tierEl);
+ }, 120);
+ }
+
+ function tierAtPoint(cx, cy) {
+ for (const t of tiers) {
+ const r = t.getBoundingClientRect();
+ if (cx >= r.left && cx <= r.right && cy >= r.top && cy <= r.bottom) return t;
+ }
+ return null;
+ }
+
+ const grid = document.querySelector('#pricing-stage .pricing-grid');
+ grid.addEventListener('mousemove', e => scheduleMove(tierAtPoint(e.clientX, e.clientY)));
+ grid.addEventListener('mouseleave', () => scheduleMove(null));
+
+ document.querySelectorAll('#pricing-stage [data-tier-cta]').forEach(cta => {
+ cta.addEventListener('click', e => {
+ if (!avatar) return;
+ const tierEl = document.getElementById('tier-' + cta.dataset.tierCta);
+ const reactionClip = CTA_REACTION[tierEl?.dataset.tier] || 'wave';
+ const fireReaction = () => {
+ setAnimation(reactionClip, { loop: false, hold: true });
+ const clipDur = actions[reactionClip]?.getClip().duration ?? 2;
+ const playMs = Math.min(clipDur * 1000, CTA_REACTION_MAX_MS);
+ setTimeout(() => { if (phase === 'idle') setAnimation('idle', { loop: true }); }, playMs);
+ };
+ if (tierEl === activeTier && phase === 'idle') {
+ e.preventDefault();
+ fireReaction();
+ } else if (tierEl !== activeTier) {
+ e.preventDefault();
+ onArrival = fireReaction;
+ walkToTier(tierEl);
+ }
+ });
+ });
+
+ let mouseNx = 0, mouseNy = 0;
+ window.addEventListener('mousemove', e => {
+ mouseNx = (e.clientX / window.innerWidth) * 2 - 1;
+ mouseNy = (e.clientY / window.innerHeight) * 2 - 1;
+ });
+
+ const ro = new ResizeObserver(() => {
+ if (avatar && activeTier && phase === 'idle') {
+ const t = standOnTopOf(activeTier);
+ avatar.position.set(t.x, t.y, 0);
+ }
+ });
+ tiers.forEach(t => ro.observe(t));
+
+ const CLIPS = ['idle', 'walk', 'wave', 'av-celebrating', 'av-brag-claps'];
+ let loaded = false;
+
+ const io = new IntersectionObserver(entries => {
+ if (!entries[0].isIntersecting || loaded) return;
+ loaded = true;
+ io.disconnect();
+ resize();
+
+ new GLTFLoader().load('/avatars/cz.glb', gltf => {
+ avatar = gltf.scene;
+ avatar.traverse(n => {
+ if (!rootBone && /^(Hips|Root|mixamorig:?Hips)$/i.test(n.name)) rootBone = n;
+ });
+ scene.add(avatar);
+ mixer = new THREE.AnimationMixer(avatar);
+
+ Promise.all(CLIPS.map(name =>
+ fetch('/animations/clips/' + name + '.json').then(r => r.json())
+ )).then(jsons => {
+ CLIPS.forEach((name, i) => {
+ actions[name] = mixer.clipAction(THREE.AnimationClip.parse(jsons[i]));
+ });
+ if (rootBone) baseRootPos = rootBone.position.clone();
+ const _render = renderer.render.bind(renderer);
+ renderer.render = (sc, cam) => {
+ try { if (rootBone && baseRootPos) rootBone.position.copy(baseRootPos); } catch (_) {}
+ _render(sc, cam);
+ };
+
+ const pro = document.getElementById('tier-pro');
+ activeTier = pro;
+ pro.classList.add('is-active');
+ const start = standOnTopOf(pro);
+ avatar.position.set(start.x, start.y, 0);
+ setAnimation('idle', { loop: true });
+ phase = 'idle';
+ });
+ });
+ }, { threshold: 0, rootMargin: '400px' });
+ io.observe(document.getElementById('pricing-stage'));
+
+ const clock = new THREE.Clock();
+ (function tick() {
+ requestAnimationFrame(tick);
+ try {
+ const dt = Math.min(clock.getDelta(), 0.05);
+ mixer?.update(dt);
+
+ if (phase === 'walking' && avatar && walkStart && walkEnd) {
+ walkT += dt;
+ const p = Math.min(walkT / walkDur, 1);
+ const e = smoothstep(p);
+ const x = walkStart.x + (walkEnd.x - walkStart.x) * e;
+ const arc = walkPeakRise * 4 * p * (1 - p);
+ const y = walkStart.y + (walkEnd.y - walkStart.y) * e + arc;
+ avatar.position.set(x, y, 0);
+ if (p >= 1) landOnTier();
+ }
+
+ if (phase === 'idle' && avatar) {
+ avatar.rotation.y *= 0.9;
+ }
+
+ const targetCamX = mouseNx * 0.08;
+ const targetCamY = -mouseNy * 0.05;
+ camera.position.x += (targetCamX - camera.position.x) * 0.04;
+ camera.position.y += (targetCamY - camera.position.y) * 0.04;
+
+ renderer.render(scene, camera);
+ } catch (_) {}
+ })();
+}
+</script>
+
+<script>
+// ── Interactive Bento Features ─────────────────────────────────────
+(function initBentoInteractives() {
+
+ // ── 1. Avatar Studio: webcam + drag-drop ────────────────────────
+ (function() {
+ var drop = document.getElementById('studio-drop');
+ var fileInput = document.getElementById('studio-file');
+ var webcamBtn = document.getElementById('studio-webcam-btn');
+ var zone = document.getElementById('studio-zone');
+ var processing = document.getElementById('studio-processing');
+ var previewImg = document.getElementById('studio-preview-img');
+ var processingText = document.getElementById('studio-processing-text');
+ var done = document.getElementById('studio-done');
+ if (!drop) return;
+
+ function runPipeline(imgUrl) {
+ zone.style.display = 'none';
+ previewImg.src = imgUrl;
+ previewImg.classList.add('show');
+ processing.classList.add('active');
+ var steps = ['Detecting face...', 'Generating 3D mesh...', 'Auto-rigging skeleton...', 'Retargeting animations...'];
+ var i = 0;
+ var iv = setInterval(function() {
+ i++;
+ if (i < steps.length) {
+ processingText.textContent = steps[i];
+ } else {
+ clearInterval(iv);
+ processing.classList.remove('active');
+ done.classList.add('show');
}
+ }, 700);
+ }
- // Observe when section scrolls into view
- const io = new IntersectionObserver((entries) => {
- if (entries[0].isIntersecting) {
- io.disconnect();
- triggerAnimation();
- }
- }, { threshold: 0.3 });
- io.observe(section);
-
- fetch('/api/platform/stats')
- .then((r) => r.ok ? r.json() : Promise.reject(r.status))
- .then((data) => {
- statsData = data;
- // If section is already in view, trigger immediately
- triggerAnimation();
- })
- .catch(() => {
- section.hidden = true;
- });
- })();
- </script>
- </body>
+ drop.addEventListener('click', function() { fileInput.click(); });
+ fileInput.addEventListener('change', function() {
+ if (fileInput.files && fileInput.files[0]) {
+ var url = URL.createObjectURL(fileInput.files[0]);
+ runPipeline(url);
+ }
+ });
+ drop.addEventListener('dragover', function(e) { e.preventDefault(); drop.classList.add('drag-over'); });
+ drop.addEventListener('dragleave', function() { drop.classList.remove('drag-over'); });
+ drop.addEventListener('drop', function(e) {
+ e.preventDefault(); drop.classList.remove('drag-over');
+ if (e.dataTransfer.files && e.dataTransfer.files[0]) {
+ var url = URL.createObjectURL(e.dataTransfer.files[0]);
+ runPipeline(url);
+ }
+ });
+ webcamBtn.addEventListener('click', function() {
+ navigator.mediaDevices.getUserMedia({ video: { facingMode: 'user', width: 256, height: 256 } })
+ .then(function(stream) {
+ var video = document.createElement('video');
+ video.srcObject = stream;
+ video.play();
+ setTimeout(function() {
+ var canvas = document.createElement('canvas');
+ canvas.width = 256; canvas.height = 256;
+ canvas.getContext('2d').drawImage(video, 0, 0, 256, 256);
+ stream.getTracks().forEach(function(t) { t.stop(); });
+ runPipeline(canvas.toDataURL('image/jpeg'));
+ }, 500);
+ }).catch(function() {
+ runPipeline('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64"><rect width="64" height="64" fill="%23222"/><text x="32" y="36" text-anchor="middle" fill="%23666" font-size="12">cam</text></svg>');
+ });
+ });
+ })();
+
+ // ── 2. Voice + Mocap: microphone waveform ───────────────────────
+ (function() {
+ var btn = document.getElementById('mocap-mic-btn');
+ var canvas = document.getElementById('mocap-waveform');
+ var status = document.getElementById('mocap-status');
+ if (!btn || !canvas) return;
+ var ctx = canvas.getContext('2d');
+ var audioCtx = null, analyser = null, stream = null, animId = null;
+ var active = false;
+
+ function draw() {
+ if (!active) return;
+ animId = requestAnimationFrame(draw);
+ var w = canvas.width, h = canvas.height;
+ var data = new Uint8Array(analyser.frequencyBinCount);
+ analyser.getByteTimeDomainData(data);
+ ctx.clearRect(0, 0, w, h);
+ ctx.strokeStyle = 'rgba(168,168,168,0.6)';
+ ctx.lineWidth = 1.5;
+ ctx.beginPath();
+ var sliceW = w / data.length;
+ for (var i = 0; i < data.length; i++) {
+ var v = data[i] / 128.0;
+ var y = v * h / 2;
+ if (i === 0) ctx.moveTo(0, y);
+ else ctx.lineTo(i * sliceW, y);
+ }
+ ctx.stroke();
+ }
+
+ function resizeCanvas() {
+ canvas.width = canvas.clientWidth * (window.devicePixelRatio || 1);
+ canvas.height = canvas.clientHeight * (window.devicePixelRatio || 1);
+ }
+
+ btn.addEventListener('click', function() {
+ if (active) {
+ active = false;
+ cancelAnimationFrame(animId);
+ if (stream) stream.getTracks().forEach(function(t) { t.stop(); });
+ if (audioCtx) audioCtx.close();
+ stream = null; audioCtx = null; analyser = null;
+ btn.textContent = 'Microphone';
+ status.textContent = 'click to capture';
+ status.classList.remove('live');
+ ctx.clearRect(0, 0, canvas.width, canvas.height);
+ return;
+ }
+ navigator.mediaDevices.getUserMedia({ audio: true }).then(function(s) {
+ stream = s;
+ audioCtx = new (window.AudioContext || window.webkitAudioContext)();
+ analyser = audioCtx.createAnalyser();
+ analyser.fftSize = 256;
+ audioCtx.createMediaStreamSource(stream).connect(analyser);
+ active = true;
+ resizeCanvas();
+ btn.textContent = 'Stop';
+ status.textContent = 'live — speak now';
+ status.classList.add('live');
+ draw();
+ }).catch(function() {
+ status.textContent = 'mic access denied';
+ });
+ });
+
+ new ResizeObserver(function() { if (active) resizeCanvas(); }).observe(canvas);
+ })();
+
+ // ── 3. Walk & Multiplayer: mini map ─────────────────────────────
+ (function() {
+ var canvas = document.getElementById('walk-minimap');
+ if (!canvas) return;
+ var ctx = canvas.getContext('2d');
+ var dpr = window.devicePixelRatio || 1;
+ var W, H;
+
+ function resize() {
+ W = canvas.clientWidth; H = canvas.clientHeight;
+ canvas.width = W * dpr; canvas.height = H * dpr;
+ ctx.scale(dpr, dpr);
+ }
+ resize();
+ new ResizeObserver(resize).observe(canvas);
+
+ var player = { x: 0.5, y: 0.5, color: '#fff' };
+ var bots = [
+ { x: 0.2, y: 0.3, vx: 0.0008, vy: 0.0006, color: '#4ade80' },
+ { x: 0.8, y: 0.6, vx: -0.0006, vy: 0.0009, color: '#60a5fa' },
+ { x: 0.5, y: 0.8, vx: 0.0007, vy: -0.0005, color: '#fbbf24' },
+ ];
+
+ var keys = {};
+ canvas.addEventListener('keydown', function(e) { keys[e.key.toLowerCase()] = true; e.preventDefault(); });
+ canvas.addEventListener('keyup', function(e) { keys[e.key.toLowerCase()] = false; });
+ canvas.addEventListener('click', function(e) {
+ var r = canvas.getBoundingClientRect();
+ player.x = (e.clientX - r.left) / r.width;
+ player.y = (e.clientY - r.top) / r.height;
+ canvas.focus();
+ });
+
+ function tick() {
+ requestAnimationFrame(tick);
+ var speed = 0.006;
+ if (keys['w'] || keys['arrowup']) player.y -= speed;
+ if (keys['s'] || keys['arrowdown']) player.y += speed;
+ if (keys['a'] || keys['arrowleft']) player.x -= speed;
+ if (keys['d'] || keys['arrowright']) player.x += speed;
+ player.x = Math.max(0.02, Math.min(0.98, player.x));
+ player.y = Math.max(0.02, Math.min(0.98, player.y));
+
+ bots.forEach(function(b) {
+ b.x += b.vx; b.y += b.vy;
+ if (b.x < 0.05 || b.x > 0.95) b.vx *= -1;
+ if (b.y < 0.05 || b.y > 0.95) b.vy *= -1;
+ b.vx += (Math.random() - 0.5) * 0.0002;
+ b.vy += (Math.random() - 0.5) * 0.0002;
+ });
+
+ ctx.clearRect(0, 0, W, H);
+ ctx.fillStyle = '#0a0d12';
+ ctx.fillRect(0, 0, W, H);
+ // Grid
+ ctx.strokeStyle = 'rgba(255,255,255,0.04)';
+ ctx.lineWidth = 0.5;
+ for (var gx = 0; gx < W; gx += 30) { ctx.beginPath(); ctx.moveTo(gx, 0); ctx.lineTo(gx, H); ctx.stroke(); }
+ for (var gy = 0; gy < H; gy += 30) { ctx.beginPath(); ctx.moveTo(0, gy); ctx.lineTo(W, gy); ctx.stroke(); }
+
+ // Bots
+ bots.forEach(function(b) {
+ ctx.beginPath();
+ ctx.arc(b.x * W, b.y * H, 4, 0, Math.PI * 2);
+ ctx.fillStyle = b.color;
+ ctx.fill();
+ ctx.fillStyle = 'rgba(255,255,255,0.2)';
+ ctx.font = '7px monospace';
+ ctx.fillText('visitor', b.x * W + 7, b.y * H + 3);
+ });
+
+ // Player
+ ctx.beginPath();
+ ctx.arc(player.x * W, player.y * H, 5, 0, Math.PI * 2);
+ ctx.fillStyle = player.color;
+ ctx.fill();
+ ctx.shadowColor = '#fff'; ctx.shadowBlur = 8;
+ ctx.fill();
+ ctx.shadowBlur = 0;
+ ctx.fillStyle = 'rgba(255,255,255,0.5)';
+ ctx.font = '8px monospace';
+ ctx.fillText('you', player.x * W + 8, player.y * H + 3);
+ }
+ tick();
+ })();
+
+ // ── 4. x402 Payments: interactive flow ──────────────────────────
+ (function() {
+ var payBtn = document.getElementById('x402-pay-btn');
+ var code = document.getElementById('x402-code');
+ var spinner = document.getElementById('x402-spinner');
+ var amount = document.getElementById('x402-amount');
+ if (!payBtn) return;
+
+ payBtn.addEventListener('click', function() {
+ payBtn.style.display = 'none';
+ spinner.style.display = 'block';
+ code.textContent = 'Processing USDC payment...';
+ code.className = 'x402-code';
+
+ setTimeout(function() {
+ spinner.style.display = 'none';
+ code.textContent = 'HTTP 200 — OK';
+ code.className = 'x402-code ok';
+ amount.classList.add('show');
+
+ setTimeout(function() {
+ code.textContent = 'HTTP 402 — Payment Required';
+ code.className = 'x402-code err';
+ amount.classList.remove('show');
+ payBtn.style.display = '';
+ }, 3000);
+ }, 1200);
+ });
+ })();
+
+ // ── 5. On-chain Identity: mint animation ────────────────────────
+ (function() {
+ var mintBtn = document.getElementById('mint-btn');
+ var card = document.getElementById('mint-card');
+ var progress = document.getElementById('mint-progress');
+ var label = document.getElementById('mint-label');
+ if (!mintBtn) return;
+
+ mintBtn.addEventListener('click', function() {
+ mintBtn.style.display = 'none';
+ progress.classList.add('active');
+
+ setTimeout(function() {
+ progress.classList.add('done');
+ }, 100);
+
+ setTimeout(function() {
+ card.classList.add('minted');
+ label.textContent = 'MINTED';
+
+ setTimeout(function() {
+ card.classList.remove('minted');
+ label.textContent = 'ERC-8004';
+ progress.classList.remove('active', 'done');
+ progress.querySelector('circle').style.strokeDashoffset = '78.5';
+ void progress.querySelector('circle').offsetWidth;
+ mintBtn.style.display = '';
+ }, 3000);
+ }, 1400);
+ });
+ })();
+
+ // ── 6. Skills: tool call demo ───────────────────────────────────
+ (function() {
+ var tools = document.getElementById('skill-tools');
+ var result = document.getElementById('skill-result');
+ if (!tools || !result) return;
+
+ var responses = {
+ jupiter: { tool: 'jupiter_swap', input: { from: 'USDC', to: 'SOL', amount: '10.00' }, output: { received: '0.0847 SOL', rate: '118.07', slippage: '0.12%' } },
+ pump: { tool: 'pump_launch', input: { name: 'NICH', ticker: '$NICH' }, output: { status: 'launched', ca: '7xKX...m3Qp', mcap: '$4,200', holders: 12 } },
+ rpc: { tool: 'solana_rpc', method: 'getBalance', params: ['7xKXp...m3Qp'], result: { value: 2410000000, lamports: true, sol: '2.41' } },
+ a2a: { protocol: 'a2a', target: 'claude.agent', action: 'ask', input: 'What is ERC-8004?', response: 'ERC-8004 is the on-chain standard for AI agent identity...' }
+ };
+
+ function colorJson(obj, indent) {
+ indent = indent || 0;
+ var pad = ' '.repeat(indent);
+ if (typeof obj === 'string') return '<span class="json-str">"' + obj + '"</span>';
+ if (typeof obj === 'number') return '<span class="json-num">' + obj + '</span>';
+ if (typeof obj === 'boolean') return '<span class="json-num">' + obj + '</span>';
+ if (Array.isArray(obj)) {
+ if (obj.length === 0) return '[]';
+ var items = obj.map(function(v) { return pad + ' ' + colorJson(v, indent + 1); });
+ return '[\n' + items.join(',\n') + '\n' + pad + ']';
+ }
+ var keys = Object.keys(obj);
+ if (keys.length === 0) return '{}';
+ var lines = keys.map(function(k) {
+ return pad + ' <span class="json-key">"' + k + '"</span>: ' + colorJson(obj[k], indent + 1);
+ });
+ return '{\n' + lines.join(',\n') + '\n' + pad + '}';
+ }
+
+ function showTool(name) {
+ var data = responses[name];
+ if (!data) return;
+ result.innerHTML = colorJson(data, 0);
+ result.classList.add('fresh');
+ setTimeout(function() { result.classList.remove('fresh'); }, 600);
+ }
+
+ tools.addEventListener('click', function(e) {
+ var btn = e.target.closest('.bento-pill-btn');
+ if (!btn) return;
+ tools.querySelectorAll('.bento-pill-btn').forEach(function(b) { b.classList.remove('active'); });
+ btn.classList.add('active');
+ showTool(btn.dataset.tool);
+ });
+
+ showTool('jupiter');
+ })();
+
+ // ── 7. Memory: store/recall demo ────────────────────────────────
+ (function() {
+ var input = document.getElementById('memory-input');
+ var storeBtn = document.getElementById('memory-store-btn');
+ var recallBtn = document.getElementById('memory-recall-btn');
+ var log = document.getElementById('memory-log');
+ if (!input || !storeBtn) return;
+
+ var memories = [];
+
+ function addEntry(op, val) {
+ var el = document.createElement('div');
+ el.className = 'memory-entry';
+ el.innerHTML = '<span class="mem-op">' + op + '</span><span class="mem-val">' + val + '</span>';
+ log.appendChild(el);
+ log.scrollTop = log.scrollHeight;
+ }
+
+ storeBtn.addEventListener('click', function() {
+ var val = input.value.trim();
+ if (!val) return;
+ memories.push(val);
+ addEntry('STORE →', val);
+ input.value = '';
+ });
+
+ recallBtn.addEventListener('click', function() {
+ if (memories.length === 0) {
+ addEntry('RECALL →', '(empty — store something first)');
+ return;
+ }
+ memories.forEach(function(m, i) {
+ setTimeout(function() {
+ addEntry('MEM[' + i + ']', m);
+ }, i * 150);
+ });
+ });
+
+ input.addEventListener('keydown', function(e) {
+ if (e.key === 'Enter') storeBtn.click();
+ });
+ })();
+
+ // ── 8. AR / WebXR: launcher demo ────────────────────────────────
+ (function() {
+ var btn = document.getElementById('ar-launch-btn');
+ var phone = document.getElementById('ar-phone');
+ var status = document.getElementById('ar-status');
+ if (!btn) return;
+ var active = false;
+
+ btn.addEventListener('click', function() {
+ if (active) {
+ active = false;
+ phone.classList.remove('active');
+ status.textContent = 'tap to place agent';
+ status.classList.remove('ready');
+ btn.textContent = 'Launch AR';
+ return;
+ }
+ active = true;
+ phone.classList.add('active');
+ status.textContent = 'scanning surface...';
+ btn.textContent = 'Stop';
+
+ setTimeout(function() {
+ if (!active) return;
+ status.textContent = 'agent placed in AR';
+ status.classList.add('ready');
+ }, 1500);
+ });
+ })();
+
+ // ── 9. Marketplace: live agent browser ──────────────────────────
+ (function() {
+ var strip = document.getElementById('mktplace-strip');
+ if (!strip) return;
+ var THUMB_CDN = 'https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/thumb';
+
+ fetch('/api/marketplace')
+ .then(function(r) { return r.json(); })
+ .then(function(data) {
+ var items = (data.agents || data.items || data || []).slice(0, 10);
+ items.forEach(function(item) {
+ var id = item.avatar_id || item.avatarId || item.id;
+ var name = item.name || item.agent_name || id.slice(0, 6);
+ var thumb = item.thumbnail || (THUMB_CDN + '/' + id + '.png');
+ var a = document.createElement('a');
+ a.className = 'mktplace-item';
+ a.href = '/agent-next?id=' + id;
+ a.title = name;
+ var img = document.createElement('img');
+ img.src = thumb;
+ img.alt = name;
+ img.loading = 'lazy';
+ img.onerror = function() { this.style.display = 'none'; };
+ a.appendChild(img);
+ var lbl = document.createElement('span');
+ lbl.className = 'mktplace-item-name';
+ lbl.textContent = name;
+ a.appendChild(lbl);
+ strip.appendChild(a);
+ });
+ var more = document.createElement('a');
+ more.className = 'mktplace-more';
+ more.href = '/discover';
+ more.textContent = '→';
+ more.title = 'Browse all agents';
+ strip.appendChild(more);
+ }).catch(function() {
+ strip.innerHTML = '<a class="mktplace-more" href="/discover" style="width:auto;padding:0 16px;">Browse marketplace →</a>';
+ });
+ })();
+
+ // ── 10. Analytics: sparkline + animated counters ─────────────────
+ (function() {
+ var demo = document.getElementById('analytics-demo');
+ if (!demo) return;
+ var convosEl = document.getElementById('an-convos');
+ var revenueEl = document.getElementById('an-revenue');
+ var retentionEl = document.getElementById('an-retention');
+ var sparkSvg = document.getElementById('analytics-spark');
+
+ var dataPoints = [5, 12, 8, 22, 18, 30, 25, 40, 35, 48, 42, 55, 50, 62, 58, 70, 65, 78, 72, 85];
+ var maxVal = Math.max.apply(null, dataPoints);
+ var svgW = 200, svgH = 40, pad = 2;
+
+ function buildPath() {
+ var pts = dataPoints.map(function(v, i) {
+ return {
+ x: pad + (i / (dataPoints.length - 1)) * (svgW - pad * 2),
+ y: svgH - pad - (v / maxVal) * (svgH - pad * 2)
+ };
+ });
+ var d = pts.map(function(p, i) { return (i === 0 ? 'M' : 'L') + p.x.toFixed(1) + ' ' + p.y.toFixed(1); }).join(' ');
+ var fillD = d + ' L' + pts[pts.length - 1].x.toFixed(1) + ' ' + svgH + ' L' + pts[0].x.toFixed(1) + ' ' + svgH + ' Z';
+ var last = pts[pts.length - 1];
+
+ sparkSvg.innerHTML = sparkSvg.querySelector('defs').outerHTML
+ + '<path class="spark-fill" d="' + fillD + '"/>'
+ + '<path d="' + d + '"/>'
+ + '<circle class="spark-dot" cx="' + last.x.toFixed(1) + '" cy="' + last.y.toFixed(1) + '" r="2.5"/>';
+ }
+
+ var animated = false;
+ function animateCounters() {
+ if (animated) return;
+ animated = true;
+ var targets = { convos: 1247, revenue: 847.5, retention: 68 };
+ var start = performance.now();
+ var dur = 1200;
+ (function tick(now) {
+ var p = Math.min((now - start) / dur, 1);
+ var e = 1 - Math.pow(1 - p, 3);
+ convosEl.textContent = Math.round(targets.convos * e).toLocaleString();
+ revenueEl.textContent = '$' + (targets.revenue * e).toFixed(0);
+ retentionEl.textContent = Math.round(targets.retention * e) + '%';
+ if (p < 1) requestAnimationFrame(tick);
+ })(start);
+
+ // Live tick
+ setInterval(function() {
+ var newPt = dataPoints[dataPoints.length - 1] + Math.round((Math.random() - 0.3) * 8);
+ dataPoints.push(Math.max(5, newPt));
+ if (dataPoints.length > 30) dataPoints.shift();
+ maxVal = Math.max.apply(null, dataPoints);
+ buildPath();
+ }, 2000);
+ }
+
+ buildPath();
+
+ var io = new IntersectionObserver(function(entries) {
+ if (entries[0].isIntersecting) { animateCounters(); io.disconnect(); }
+ }, { threshold: 0.3 });
+ io.observe(demo);
+ })();
+
+})();
+</script>
+</body>
</html>
diff --git a/pages/shopper.html b/pages/shopper.html
index 67f0e6cf2..84bcd2990 100644
--- a/pages/shopper.html
+++ b/pages/shopper.html
@@ -385,7 +385,7 @@
three.ws
</a>
<div class="nav-main">
- <a href="/pages/home-next.html">Explore</a>
+ <a href="/">Explore</a>
<a href="/pages/shopper.html" class="active">Endpoint Shopper</a>
<a href="/pages/marketplace.html">Marketplace</a>
<a href="/pages/fact-checker.html">Fact Checker</a>
diff --git a/src/a-me.js b/src/a-me.js
index 73cde7ddd..5bd3058d2 100644
--- a/src/a-me.js
+++ b/src/a-me.js
@@ -96,7 +96,7 @@ function toast(msg) {
document.body.innerHTML = `
<header class="ame-nav">
<div class="ame-nav-inner">
- <a class="ame-brand" href="/home-next"><span class="ame-brand-dot"></span><span>three.ws</span></a>
+ <a class="ame-brand" href="/"><span class="ame-brand-dot"></span><span>three.ws</span></a>
<nav class="ame-nav-main">
<a href="/create">Build</a>
<a href="/discover">Discover</a>
diff --git a/src/walk-embed-preview.js b/src/walk-embed-preview.js
index 8abe1f81b..0fe58fcff 100644
--- a/src/walk-embed-preview.js
+++ b/src/walk-embed-preview.js
@@ -1,4 +1,4 @@
-// Mini walk viewer for the home-next "Walk Embed" section.
+// Mini walk viewer for the homepage "Walk Embed" section.
// Stripped-down version of walk.js: avatar + joystick + WASD + camera follow.
// No multiplayer, AR, recording, chat, or HUD — just the interactive 3D demo.
diff --git a/vercel.json b/vercel.json
index 55b643167..de24a95f9 100644
--- a/vercel.json
+++ b/vercel.json
@@ -537,11 +537,14 @@
},
{
"src": "/home-next/?",
- "dest": "/home-next.html"
+ "status": 301,
+ "headers": {
+ "Location": "/"
+ }
},
{
"src": "/home-classic/?",
- "dest": "/home.html"
+ "dest": "/home-classic.html"
},
{
"src": "/home-v3/?",
diff --git a/verify-color-picker.mjs b/verify-color-picker.mjs
index 132493c5f..b3735aa75 100644
--- a/verify-color-picker.mjs
+++ b/verify-color-picker.mjs
@@ -4,11 +4,11 @@ const browser = await chromium.launch({ headless: true });
const page = await browser.newPage({ viewport: { width: 1440, height: 900 } });
console.log('--- Step 1: Navigate and scroll to Playground ---');
-await page.goto('http://localhost:3000/pages/home-next.html', { waitUntil: 'domcontentloaded', timeout: 15000 });
-await page.waitForTimeout(1500);
+await page.goto('http://localhost:3000/pages/home-next.html', { waitUntil: 'load', timeout: 30000 });
+await page.waitForTimeout(3000);
// Scroll to the embed/playground section
-await page.locator('#embed').scrollIntoViewIfNeeded({ timeout: 5000 });
+await page.locator('#embed').scrollIntoViewIfNeeded({ timeout: 10000 });
await page.waitForTimeout(500);
await page.screenshot({ path: '/tmp/ss-01-playground.png', fullPage: false });
console.log('Screenshot: /tmp/ss-01-playground.png');
diff --git a/vite.config.js b/vite.config.js
index 5566ddc0e..9059bad07 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -204,7 +204,7 @@ const appConfig = {
creating: resolve(__dirname, 'pages/creating.html'),
pricing: resolve(__dirname, 'pages/pricing.html'),
'x-pricing': resolve(__dirname, 'pages/x-pricing.html'),
- 'home-next': resolve(__dirname, 'pages/home-next.html'),
+ 'home-classic': resolve(__dirname, 'pages/home-classic.html'),
'home-v3': resolve(__dirname, 'pages/home-v3.html'),
'home-v4': resolve(__dirname, 'pages/home-v4.html'),
'agent-next': resolve(__dirname, 'pages/agent-next.html'),