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.

83.6 KB
Raw Blame
<!doctype html>
<html lang="en">
	<head>
		<script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<title data-i18n="features.meta_title">Features — three.ws</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<meta name="author" content="nirholas" />
		<meta
			name="description"
			content="Every three.ws feature in one place: create 3D avatars, embed agents on any site, explore coin worlds, and earn with pay-per-call skills."
		 data-i18n-attr="content:features.meta_description"/>
		<meta name="theme-color" content="#000000" />

		<meta property="og:type" content="website" />
		<meta property="og:site_name" content="three.ws" />
		<meta property="og:title" content="Features — three.ws"  data-i18n-attr="content:features.meta_og_title"/>
		<meta
			property="og:description"
			content="Create 3D avatars, embed agents anywhere, explore coin worlds, and earn with pay-per-call skills."
		 data-i18n-attr="content:features.meta_og_description"/>
		<meta property="og:url" content="https://three.ws/features" />
		<meta property="og:image" content="https://three.ws/api/page-og?s=build&amp;t=Features&amp;d=Full+feature+overview+of+the+three.ws+platform%3A+avatars%2C+agents%2C+on-chain+identity%2C+x402+payments%2C+and+embedding.&amp;p=%2Ffeatures" />
		<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="Features — three.ws"  data-i18n-attr="content:features.meta_twitter_title"/>
		<meta
			name="twitter:description"
			content="Create 3D avatars, embed agents anywhere, explore coin worlds, and earn with pay-per-call skills."
		 data-i18n-attr="content:features.meta_twitter_description"/>
		<meta name="twitter:image" content="https://three.ws/api/page-og?s=build&amp;t=Features&amp;d=Full+feature+overview+of+the+three.ws+platform%3A+avatars%2C+agents%2C+on-chain+identity%2C+x402+payments%2C+and+embedding.&amp;p=%2Ffeatures" />

		<link rel="canonical" href="https://three.ws/features" />
		<link rel="icon" href="/favicon.ico" sizes="any" />
		<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
		<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
		<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
		<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
		<link rel="manifest" href="/manifest.webmanifest" />
		<link rel="stylesheet" href="/style.css" />
		<link rel="stylesheet" href="/nav.css" />
		<link rel="stylesheet" href="/features.css" />
		<link rel="stylesheet" href="/footer.css" />
		<link rel="stylesheet" href="/fonts/fonts.css" />
		<link rel="stylesheet" href="/mobile.css" />
		<script
			type="module"
			src="https://cdn.jsdelivr.net/npm/@google/[email protected]/dist/model-viewer.min.js"
			integrity="sha384-wjsPzEO+lXOf7d9csIDfAQpPt2OKuUU3m0K9qsdKIuzX4N8czSF6hdh23eAbZa3p"
			crossorigin="anonymous"
		></script>
		<script defer src="/footer-newsletter.js"></script>

		<script type="application/ld+json">
			{
				"@context": "https://schema.org",
				"@type": "WebPage",
				"name": "Features",
				"description": "Full feature overview of the three.ws platform: avatars, agents, on-chain identity, x402 payments, and embedding.",
				"url": "https://three.ws/features",
				"isPartOf": { "@type": "WebSite", "name": "three.ws", "url": "https://three.ws" }
			}
		</script>
	
	<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">
	<meta property="og:locale" content="en_US">
	<meta property="og:image:alt" content="Features — three.ws">
	<meta name="twitter:site" content="@trythreews">
	<script src="/model-viewer-meshopt.js"></script>

	<style>
		/* ── Walking-avatar inline demo ─────────────────────────────────────
		   Scoped to the features page. Mirrors the design tokens used by the
		   animation showcase (.feat-anim-*) so the section reads as part of the
		   same family: same accent indigo, same card radii, same spacing rhythm. */
		.feat-walk-demo {
			padding: var(--space-2xl) var(--space-2xl);
			background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
			border-top: 1px solid rgba(255, 255, 255, 0.06);
			border-bottom: 1px solid rgba(255, 255, 255, 0.06);
		}

		.feat-walk-demo-inner {
			max-width: 1100px;
			margin: 0 auto;
			display: grid;
			grid-template-columns: 1fr 360px;
			gap: 48px;
			align-items: center;
		}

		.feat-walk-demo-copy {
			min-width: 0;
		}

		.feat-walk-demo-title {
			font-size: clamp(1.5rem, 2.6vw, 2rem);
			font-weight: 800;
			line-height: 1.15;
			color: var(--color-text, #f9fafb);
			margin: 6px 0 10px;
		}

		.feat-walk-demo-tagline {
			font-size: clamp(1rem, 1.6vw, 1.15rem);
			font-weight: 600;
			color: #c7d2fe;
			margin: 0 0 14px;
		}

		.feat-walk-demo-desc {
			font-size: 14px;
			color: rgba(255, 255, 255, 0.55);
			line-height: 1.65;
			margin: 0 0 22px;
			max-width: 480px;
		}

		.feat-walk-demo-bullets {
			list-style: none;
			margin: 0 0 26px;
			padding: 0;
			display: flex;
			flex-direction: column;
			gap: 12px;
		}

		.feat-walk-demo-bullet {
			display: flex;
			align-items: center;
			gap: 12px;
			font-size: 14px;
			color: rgba(255, 255, 255, 0.78);
		}

		.feat-walk-demo-bullet svg {
			flex: 0 0 auto;
			color: #818cf8;
		}

		.feat-walk-demo-cta {
			display: inline-flex;
			align-items: center;
			gap: 6px;
		}

		/* ── Iframe stage ── */
		.feat-walk-demo-stage {
			position: relative;
			width: 100%;
			max-width: 360px;
			aspect-ratio: 360 / 480;
			margin-inline: auto;
			border-radius: 20px;
			overflow: hidden;
			background: rgba(255, 255, 255, 0.03);
			border: 1px solid rgba(255, 255, 255, 0.08);
			box-shadow: 0 24px 60px -28px rgba(99, 102, 241, 0.55);
		}

		.feat-walk-demo-iframe {
			position: absolute;
			inset: 0;
			width: 100%;
			height: 100%;
			border: 0;
			display: block;
			background: transparent;
		}

		/* Loading skeleton shown until the iframe reports ready (walk:ready). */
		.feat-walk-demo-skeleton {
			position: absolute;
			inset: 0;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			gap: 14px;
			color: rgba(255, 255, 255, 0.5);
			font-size: 12px;
			letter-spacing: 0.06em;
			text-transform: uppercase;
			background:
				radial-gradient(120% 80% at 50% 18%, rgba(99, 102, 241, 0.16), transparent 70%),
				rgba(12, 13, 18, 0.6);
			transition: opacity var(--duration-slow) var(--ease-standard);
			pointer-events: none;
		}

		.feat-walk-demo-stage[data-ready='true'] .feat-walk-demo-skeleton {
			opacity: 0;
		}

		.feat-walk-demo-spinner {
			width: 28px;
			height: 28px;
			border-radius: 50%;
			border: 2px solid rgba(255, 255, 255, 0.15);
			border-top-color: #818cf8;
			animation: feat-walk-spin 0.8s linear infinite;
		}

		@keyframes feat-walk-spin {
			to {
				transform: rotate(360deg);
			}
		}

		.feat-walk-demo-hint {
			position: absolute;
			left: 50%;
			bottom: 12px;
			transform: translateX(-50%);
			font-size: 11px;
			font-weight: 600;
			letter-spacing: 0.08em;
			text-transform: uppercase;
			color: rgba(255, 255, 255, 0.55);
			background: rgba(0, 0, 0, 0.45);
			backdrop-filter: blur(8px);
			-webkit-backdrop-filter: blur(8px);
			padding: 5px 12px;
			border-radius: 20px;
			border: 1px solid rgba(255, 255, 255, 0.1);
			pointer-events: none;
			opacity: 0;
			transition: opacity var(--duration-slow) var(--ease-standard);
		}

		.feat-walk-demo-stage[data-ready='true'] .feat-walk-demo-hint {
			opacity: 1;
		}

		/* ── Sub-cards row ── */
		.feat-walk-demo-cards {
			max-width: 1100px;
			margin: 32px auto 0;
			display: grid;
			grid-template-columns: repeat(3, 1fr);
			gap: 16px;
		}

		.feat-walk-demo-card {
			display: flex;
			flex-direction: column;
			gap: 6px;
			padding: 18px 18px 20px;
			border-radius: 16px;
			background: rgba(255, 255, 255, 0.03);
			border: 1px solid rgba(255, 255, 255, 0.08);
			color: inherit;
			text-decoration: none;
			cursor: pointer;
			transition:
				background var(--duration-fast) var(--ease-standard),
				border-color var(--duration-fast) var(--ease-standard),
				transform var(--duration-fast) var(--ease-standard);
			text-align: left;
			font-family: inherit;
		}

		.feat-walk-demo-card:hover,
		.feat-walk-demo-card:focus-visible {
			background: rgba(99, 102, 241, 0.1);
			border-color: rgba(99, 102, 241, 0.45);
			transform: translateY(-2px);
		}

		.feat-walk-demo-card:active {
			transform: translateY(0);
		}

		.feat-walk-demo-card-icon {
			color: #818cf8;
		}

		.feat-walk-demo-card-title {
			font-size: 14px;
			font-weight: 700;
			color: var(--color-text, #f9fafb);
		}

		.feat-walk-demo-card-sub {
			font-size: 12.5px;
			color: rgba(255, 255, 255, 0.5);
			line-height: 1.5;
		}

		.feat-walk-demo-card-status {
			margin-top: 4px;
			font-size: 11px;
			font-weight: 600;
			letter-spacing: 0.04em;
			color: #818cf8;
		}

		.feat-walk-demo-card-status--copied {
			color: var(--success);
		}

		@media screen and (max-width: 900px) {
			.feat-walk-demo-inner {
				grid-template-columns: 1fr;
				gap: 32px;
			}
			.feat-walk-demo-stage {
				order: -1;
				max-width: 320px;
			}
		}

		@media screen and (max-width: 680px) {
			.feat-walk-demo-cards {
				grid-template-columns: 1fr;
			}
		}

		@media screen and (max-width: 480px) {
			.feat-walk-demo {
				padding: var(--space-xl) var(--space-md);
			}
			.feat-walk-demo-stage {
				max-width: min(100%, 300px);
			}
		}

		@media (prefers-reduced-motion: reduce) {
			.feat-walk-demo-spinner {
				animation-duration: 2s;
			}
			.feat-walk-demo-card {
				transition: none;
			}
		}
	</style>
</head>
	<body class="features-page">
		<a href="#main-content" class="skip-link" data-i18n="features.skip_to_main_content">Skip to main content</a>
		<header><div id="nav-container"></div></header>
		<script src="/nav.js"></script>

		<main id="main-content" class="features-main">
			<!-- ── Page hero ── -->
			<section class="feat-hero scroll-reveal">
				<div class="feat-hero-inner">
					<p class="feat-eyebrow" data-i18n="features.everything_three_ws_does">Everything three.ws does</p>
					<h1 class="feat-hero-title" data-i18n-html="features.start_free_add_crypto_only_if_you">
						Start free.<br />Add crypto only if you want it.
					</h1>
					<p class="feat-hero-sub" data-i18n="features.the_whole_product_making_avatars_building_ai">
						The whole product — making avatars, building AI agents, embedding them
						anywhere — works with nothing but an email. The on-chain features below are
						optional extras you can switch on later.
					</p>
					<nav class="feat-goal-nav" aria-label="Jump to a section">
						<a href="#core" class="feat-goal-pill feat-goal-pill--core"
							 data-i18n="features.core_free_no_crypto">Core — free, no crypto</a
						>
						<a href="#optional" class="feat-goal-pill feat-goal-pill--optional"
							 data-i18n="features.optional_on_chain_payments">Optional — on-chain &amp; payments</a
						>
					</nav>
				</div>
			</section>

			<!-- ════════════════════════════════════
			     NEW ON THREE.WS: latest shipped features, fed by /changelog.json
			     ════════════════════════════════════ -->
			<section class="feat-new-section scroll-reveal" id="new" aria-labelledby="featNewTitle">
				<div class="feat-new-head">
					<div>
						<p class="feat-eyebrow" data-i18n="features.just_shipped">Just shipped</p>
						<h2 class="feat-new-title" id="featNewTitle" data-i18n="features.new_on_three_ws">New on three.ws</h2>
						<p class="feat-new-sub" data-i18n="features.the_latest_features_each_linked_to_the">
							The latest features and launches, each linked to the live page. This list
							updates itself with every release.
						</p>
					</div>
					<a class="feat-new-all" href="/changelog" data-i18n="features.view_the_full_changelog">View the full changelog</a>
				</div>
				<ul class="feat-new-grid" id="featNewGrid">
					<li class="feat-new-skeleton" aria-hidden="true"></li>
					<li class="feat-new-skeleton" aria-hidden="true"></li>
					<li class="feat-new-skeleton" aria-hidden="true"></li>
					<li class="feat-new-skeleton" aria-hidden="true"></li>
					<li class="feat-new-skeleton" aria-hidden="true"></li>
					<li class="feat-new-skeleton" aria-hidden="true"></li>
				</ul>
			</section>

			<!-- ════════════════════════════════════
			     ANIMATION SHOWCASE — interactive demo
			     ════════════════════════════════════ -->
			<section class="feat-anim-showcase" id="animations" aria-label="Animation showcase">
				<div class="feat-anim-inner">
					<div class="feat-anim-stage" id="animStage">
						<model-viewer
							id="animViewer"
							src="/animations/idle_anim.glb"
							auto-rotate
							auto-rotate-delay="0"
							rotation-per-second="14deg"
							interaction-prompt="none"
							camera-controls
							disable-zoom
							shadow-intensity="0.2"
							exposure="0.85"
							environment-image="neutral"
							camera-orbit="0deg 78deg 4.5m"
							field-of-view="40deg"
							loading="lazy"
							reveal="interaction"
							aria-label="3D avatar playing the selected animation"
						></model-viewer>
						<div class="feat-anim-stage-overlay" aria-hidden="true">
							<span class="feat-anim-now-playing" id="animNowPlaying" data-i18n="features.idle">Idle</span>
						</div>
					</div>
					<div class="feat-anim-controls">
						<p class="feat-eyebrow" style="margin-bottom:6px" data-i18n="features.70_animations">70+ Animations</p>
						<h2 class="feat-anim-title" data-i18n="features.every_move_live_in_your_browser">Every move, live in your browser.</h2>
						<p class="feat-anim-sub" data-i18n="features.pick_any_animation_below_your_avatar_switche">Pick any animation below. Your avatar switches instantly — no page reload, no install. These run on any device, in any embed.</p>

						<div class="feat-anim-groups" id="animGroups">
							<div class="feat-anim-group">
								<span class="feat-anim-group-label" data-i18n="features.idle_2">Idle</span>
								<div class="feat-anim-pills">
									<button class="feat-anim-pill feat-anim-pill--active" data-src="/animations/idle_anim.glb" data-i18n="features.idle_3">Idle</button>
									<button class="feat-anim-pill" data-src="/animations/Idle_Breath.glb" data-i18n="features.breathing">Breathing</button>
									<button class="feat-anim-pill" data-src="/animations/Just_chilling.glb" data-i18n="features.chilling">Chilling</button>
									<button class="feat-anim-pill" data-src="/animations/Standard_Waiting.glb" data-i18n="features.waiting">Waiting</button>
									<button class="feat-anim-pill" data-src="/animations/Standard_Vtubing_Movement.glb" data-i18n="features.vtubing">Vtubing</button>
									<button class="feat-anim-pill" data-src="/animations/pose1.glb" data-i18n="features.pose">Pose</button>
								</div>
							</div>
							<div class="feat-anim-group">
								<span class="feat-anim-group-label" data-i18n="features.dance">Dance</span>
								<div class="feat-anim-pills">
									<button class="feat-anim-pill" data-src="/animations/dance_shuffle.glb" data-i18n="features.shuffle">Shuffle</button>
									<button class="feat-anim-pill" data-src="/animations/Dance_Head_Banging_V03.glb" data-i18n="features.head_bang">Head Bang</button>
									<button class="feat-anim-pill" data-src="/animations/Banging_Tunes_left.glb" data-i18n="features.banging_tunes">Banging Tunes</button>
									<button class="feat-anim-pill" data-src="/animations/Energic_conductor.glb" data-i18n="features.conductor">Conductor</button>
								</div>
							</div>
							<div class="feat-anim-group">
								<span class="feat-anim-group-label" data-i18n="features.celebration">Celebration</span>
								<div class="feat-anim-pills">
									<button class="feat-anim-pill" data-src="/animations/Celebrating.glb" data-i18n="features.celebrating">Celebrating</button>
									<button class="feat-anim-pill" data-src="/animations/Cheering.glb" data-i18n="features.cheering">Cheering</button>
									<button class="feat-anim-pill" data-src="/animations/Expressing_joy.glb" data-i18n="features.joy">Joy</button>
									<button class="feat-anim-pill" data-src="/animations/Brag_n_Claps.glb" data-i18n="features.brag_clap">Brag &amp; Clap</button>
									<button class="feat-anim-pill" data-src="/animations/Call_Me.glb" data-i18n="features.call_me">Call Me</button>
								</div>
							</div>
							<div class="feat-anim-group">
								<span class="feat-anim-group-label" data-i18n="features.athletic">Athletic</span>
								<div class="feat-anim-pills">
									<button class="feat-anim-pill" data-src="/animations/back_flip.glb" data-i18n="features.back_flip">Back Flip</button>
									<button class="feat-anim-pill" data-src="/animations/Suoerhero_Jump.glb" data-i18n="features.superhero_jump">Superhero Jump</button>
									<button class="feat-anim-pill" data-src="/animations/Arm_Flex.glb" data-i18n="features.arm_flex">Arm Flex</button>
									<button class="feat-anim-pill" data-src="/animations/Flexing_Arm.glb" data-i18n="features.flexing">Flexing</button>
									<button class="feat-anim-pill" data-src="/animations/Gymnastics_Aerial.glb" data-i18n="features.aerial">Aerial</button>
									<button class="feat-anim-pill" data-src="/animations/Gorilla_chest_bump.glb" data-i18n="features.chest_bump">Chest Bump</button>
								</div>
							</div>
							<div class="feat-anim-group">
								<span class="feat-anim-group-label" data-i18n="features.combat">Combat</span>
								<div class="feat-anim-pills">
									<button class="feat-anim-pill" data-src="/animations/Angry.glb" data-i18n="features.angry">Angry</button>
									<button class="feat-anim-pill" data-src="/animations/Arm_Combo_Muay_Thai.glb" data-i18n="features.muay_thai">Muay Thai</button>
									<button class="feat-anim-pill" data-src="/animations/Boxers_dance.glb" data-i18n="features.boxer_dance">Boxer Dance</button>
									<button class="feat-anim-pill" data-src="/animations/Standard_Push_Block_Variation.glb" data-i18n="features.push_block">Push Block</button>
									<button class="feat-anim-pill" data-src="/animations/Cheap_Spy.glb" data-i18n="features.spy">Spy</button>
								</div>
							</div>
							<div class="feat-anim-group">
								<span class="feat-anim-group-label" data-i18n="features.walk">Walk</span>
								<div class="feat-anim-pills">
									<button class="feat-anim-pill" data-src="/animations/Standard_Walk_Cycle_Feminine.glb" data-i18n="features.walk_f">Walk (F)</button>
									<button class="feat-anim-pill" data-src="/animations/Standard_Walk_Crouching.glb" data-i18n="features.crouching">Crouching</button>
									<button class="feat-anim-pill" data-src="/animations/Standard_Stand_To_Crouch_To_Stand.glb" data-i18n="features.crouch_stand">Crouch+Stand</button>
								</div>
							</div>
							<div class="feat-anim-group">
								<span class="feat-anim-group-label" data-i18n="features.mood">Mood</span>
								<div class="feat-anim-pills">
									<button class="feat-anim-pill" data-src="/animations/Facepalm.glb" data-i18n="features.facepalm">Facepalm</button>
									<button class="feat-anim-pill" data-src="/animations/Standard_Smoking.glb" data-i18n="features.smoking">Smoking</button>
								</div>
							</div>
						</div>

						<a href="/forge" class="btn-primary" style="display:inline-flex;align-items:center;gap:6px;margin-top:20px" data-i18n-html="features.generate_your_own_avatar">
							Generate your own avatar <span class="btn-arrow">→</span>
						</a>
						<a href="/pose" class="btn-ghost" style="display:inline-flex;align-items:center;gap:6px;margin-top:20px;margin-left:10px" data-i18n-html="features.author_your_own_in_the_animation_studio">
							Author your own in the Animation Studio <span class="btn-arrow">→</span>
						</a>
					</div>
				</div>
			</section>

			<!-- ════════════════════════════════════
			     WALKING AVATAR — live inline demo
			     Rendered by the demoType registry below
			     (demoType: "walking-avatar-inline").
			     ════════════════════════════════════ -->
			<section
				class="feat-walk-demo"
				id="walking-avatar"
				aria-labelledby="walk-demo-title"
				data-feature-demo="walking-avatar-inline"
			></section>

			<!-- ════════════════════════════════════
			     CORE — works today, no crypto
			     ════════════════════════════════════ -->
			<section class="feat-goal-section" id="core" aria-labelledby="goal-core-label">
				<div class="feat-goal-header scroll-reveal">
					<span class="feat-goal-num">01</span>
					<div>
						<h2 id="goal-core-label" class="feat-goal-title" data-i18n="features.core">Core</h2>
						<p class="feat-goal-desc" data-i18n="features.make_avatars_build_ai_agents_and_put">
							Make avatars, build AI agents, and put them anywhere. Free to start, no
							wallet required.
						</p>
					</div>
				</div>

				<!-- No-crypto reassurance banner -->
				<div class="feat-tier-banner feat-tier-banner--core scroll-reveal" role="note">
					<span class="feat-tier-banner-icon" aria-hidden="true">
						<svg viewBox="0 0 24 24" width="22" height="22" fill="none">
							<circle
								cx="12"
								cy="12"
								r="10"
								stroke="currentColor"
								stroke-width="1.6"
							/>
							<path
								d="M8 12.5l2.5 2.5 5-5.5"
								stroke="currentColor"
								stroke-width="1.8"
								stroke-linecap="round"
								stroke-linejoin="round"
							/>
						</svg>
					</span>
					<p class="feat-tier-banner-text" data-i18n-html="features.no_crypto_needed_everything_in_this_section">
						<strong>No crypto needed.</strong> Everything in this section works with
						just an email — no wallet, no tokens, no blockchain. Sign up and start in
						minutes.
					</p>
				</div>

				<div class="feat-cards">
					<!-- Text → 3D (Forge) -->
					<article class="feat-card scroll-reveal" aria-label="Text & Image to 3D — Forge">
						<div class="feat-card-preview feat-card-preview--forge">
							<div class="feat-forge-demo" aria-hidden="true">
								<div class="feat-forge-prompt">
									<span class="feat-forge-cursor"></span>
									<span class="feat-forge-text"
										 data-i18n="features.a_crystal_wizard_with_glowing_staff">a crystal wizard with glowing staff</span
									>
								</div>
								<div class="feat-forge-arrow">→</div>
								<model-viewer
									src="/animations/soldier.glb"
									auto-rotate
									auto-rotate-delay="0"
									rotation-per-second="10deg"
									interaction-prompt="none"
									camera-controls="false"
									disable-zoom
									shadow-intensity="0"
									exposure="0.7"
									environment-image="neutral"
									camera-orbit="0deg 78deg 5m"
									field-of-view="40deg"
									loading="lazy"
									aria-label="Animated 3D character — example of a text-generated model"
								></model-viewer>
							</div>
						</div>
						<div class="feat-card-body">
							<span class="feat-card-tag" data-i18n="features.create">Create</span>
							<h3 class="feat-card-title" data-i18n="features.text_image_to_3d_forge">Text &amp; Image to 3D — Forge</h3>
							<p class="feat-card-what" data-i18n="features.describe_a_character_in_plain_english_or">
								Describe a character in plain English, or upload photos of a real
								object. Forge generates a textured 3D model on self-hosted
								engines, with every output stored in the gallery.
							</p>
							<p class="feat-card-who" data-i18n-html="features.for_builders_who_need_original_3d_characters">
								<strong>For:</strong> builders who need original 3D characters fast,
								without Blender.
							</p>
							<p class="feat-card-why" data-i18n-html="features.why_it_s_better_outputs_are_glb">
								<strong>Why it's better:</strong> Outputs are GLB-ready — load them
								straight into the viewer, deploy, or embed without any conversion
								step.
							</p>
							<a href="/forge" class="btn-primary feat-card-cta" data-i18n-html="features.open_forge">
								Open Forge <span class="btn-arrow">→</span>
							</a>
							<p class="feat-card-who">
								Have a graphics card? <a href="/modly">Generate on your own GPU with Modly</a>, free and private.
							</p>
						</div>
					</article>

					<!-- Selfie → 3D Avatar -->
					<article class="feat-card scroll-reveal" aria-label="Selfie to 3D Avatar">
						<div class="feat-card-preview feat-card-preview--avatar">
							<model-viewer
								src="/animations/robotexpressive.glb"
								auto-rotate
								auto-rotate-delay="0"
								rotation-per-second="12deg"
								interaction-prompt="none"
								camera-controls="false"
								disable-zoom
								shadow-intensity="0"
								exposure="0.7"
								environment-image="neutral"
								camera-orbit="0deg 80deg 5m"
								field-of-view="40deg"
								loading="lazy"
								aria-label="Animated 3D robot avatar — example of a selfie-generated model"
							></model-viewer>
						</div>
						<div class="feat-card-body">
							<span class="feat-card-tag" data-i18n="features.create_2">Create</span>
							<h3 class="feat-card-title" data-i18n="features.selfie_to_3d_avatar">Selfie to 3D Avatar</h3>
							<p class="feat-card-what" data-i18n="features.take_one_photo_and_get_back_a">
								Take one photo and get back a fully rigged 3D avatar in about 60
								seconds.
							</p>
							<p class="feat-card-who" data-i18n-html="features.for_creators_who_want_a_personal_avatar">
								<strong>For:</strong> creators who want a personal avatar without
								hiring a 3D artist.
							</p>
							<p class="feat-card-why" data-i18n-html="features.why_it_s_better_the_rig_is">
								<strong>Why it's better:</strong> The rig is animation-ready — you
								can load it straight into the viewer and trigger any animation
								immediately.
							</p>
							<a href="/create/selfie" class="btn-primary feat-card-cta" data-i18n-html="features.try_selfie_avatar">
								Try selfie → avatar <span class="btn-arrow">→</span>
							</a>
						</div>
					</article>

					<!-- Build an Agent -->
					<article
						class="feat-card feat-card--wide scroll-reveal"
						aria-label="Build an Agent"
					>
						<div class="feat-card-preview feat-card-preview--agent-build">
							<div class="feat-agent-build-visual" aria-hidden="true">
								<div class="feat-agent-step feat-agent-step--done">
									<span class="feat-agent-step-num">1</span>
									<span data-i18n="features.3d_avatar">3D avatar</span>
								</div>
								<div class="feat-agent-connector" aria-hidden="true"></div>
								<div class="feat-agent-step feat-agent-step--done">
									<span class="feat-agent-step-num">2</span>
									<span data-i18n="features.ai_brain_any_llm">AI brain (any LLM)</span>
								</div>
								<div class="feat-agent-connector" aria-hidden="true"></div>
								<div class="feat-agent-step feat-agent-step--done">
									<span class="feat-agent-step-num">3</span>
									<span data-i18n="features.voice_persona">Voice + persona</span>
								</div>
								<div class="feat-agent-connector" aria-hidden="true"></div>
								<div class="feat-agent-step">
									<span class="feat-agent-step-num">4</span>
									<span data-i18n="features.live_on_your_site">Live on your site</span>
								</div>
							</div>
						</div>
						<div class="feat-card-body">
							<span class="feat-card-tag" data-i18n="features.create_3">Create</span>
							<h3 class="feat-card-title" data-i18n="features.build_a_complete_agent">Build a Complete Agent</h3>
							<p class="feat-card-what" data-i18n="features.combine_a_3d_avatar_with_an_llm">
								Combine a 3D avatar with an LLM brain, voice, and persona into a
								single agent — ready to chat, answer questions, and take actions.
							</p>
							<p class="feat-card-who" data-i18n-html="features.for_developers_and_creators_who_want_a">
								<strong>For:</strong> developers and creators who want a
								conversational AI with a real visual presence.
							</p>
							<p class="feat-card-why" data-i18n-html="features.why_it_s_better_any_llm_works">
								<strong>Why it's better:</strong> Any LLM works via MCP or A2A —
								Claude, GPT, Gemini, or your own. No vendor lock-in.
							</p>
							<a href="/create" class="btn-primary feat-card-cta" data-i18n-html="features.start_building">
								Start building <span class="btn-arrow">→</span>
							</a>
						</div>
					</article>

					<!-- Widget Studio -->
					<article class="feat-card feat-card--wide scroll-reveal" aria-label="Widget Studio">
						<div class="feat-card-preview feat-card-preview--embed-live">
							<div class="feat-embed-split">
								<!-- Code side -->
								<div class="feat-embed-code-wrap">
									<div class="feat-code-block">
										<div class="feat-code-bar">
											<span class="feat-code-dot"></span>
											<span class="feat-code-dot"></span>
											<span class="feat-code-dot"></span>
											<span class="feat-code-label" data-i18n="features.your_site_html">your-site.html</span>
											<button class="feat-copy-btn" id="embedCopyBtn" aria-label="Copy snippet" title="Copy to clipboard" data-i18n="features.copy" data-i18n-attr="aria-label:features.copy_snippet_arialabel;title:features.copy_to_clipboard_title">Copy</button>
										</div>
										<pre class="feat-code-body" id="embedSnippet"><code><span class="feat-c">&lt;!-- 1. load --&gt;</span>
<span class="feat-tag">&lt;script</span> <span class="feat-attr">src</span>=<span class="feat-val">"https://three.ws/embed.js"</span><span class="feat-tag">&gt;&lt;/script&gt;</span>

<span class="feat-c">&lt;!-- 2. drop the tag --&gt;</span>
<span class="feat-tag">&lt;agent-3d</span>
  <span class="feat-attr">agent-id</span>=<span class="feat-val">"YOUR_AGENT_ID"</span>
  <span class="feat-attr">kiosk</span>
<span class="feat-tag">&gt;&lt;/agent-3d&gt;</span></code></pre>
									</div>
								</div>
								<!-- Live widget preview -->
								<div class="feat-embed-preview-wrap" aria-label="Live widget preview">
									<div class="feat-embed-widget-chrome">
										<div class="feat-embed-widget-bar">
											<span class="feat-code-dot"></span>
											<span class="feat-code-dot"></span>
											<span class="feat-code-dot"></span>
											<span class="feat-embed-widget-url" data-i18n="features.your_site_com">your-site.com</span>
										</div>
										<div class="feat-embed-widget-body">
											<div class="feat-embed-widget-bubble">
												<span class="feat-embed-widget-name" data-i18n="features.3d_agent">3D Agent</span>
												<model-viewer
													src="/avatars/cz.glb"
													auto-rotate
													auto-rotate-delay="0"
													rotation-per-second="16deg"
													interaction-prompt="none"
													camera-controls="false"
													disable-zoom
													shadow-intensity="0"
													exposure="0.85"
													environment-image="neutral"
													camera-orbit="0deg 76deg 4m"
													field-of-view="38deg"
													loading="lazy"
													aria-label="Live widget preview — 3D AI agent"
												></model-viewer>
												<div class="feat-embed-chat-line">
													<span class="feat-embed-chat-dot feat-embed-chat-dot--1"></span>
													<span class="feat-embed-chat-dot feat-embed-chat-dot--2"></span>
													<span class="feat-embed-chat-dot feat-embed-chat-dot--3"></span>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
						<div class="feat-card-body">
							<span class="feat-card-tag" data-i18n="features.embed">Embed</span>
							<h3 class="feat-card-title" data-i18n="features.widget_studio">Widget Studio</h3>
							<p class="feat-card-what" data-i18n="features.pick_an_avatar_configure_size_and_style">
								Pick an avatar, configure size and style, then copy a single script
								tag. Paste it into Notion, Ghost, WordPress, Framer — anywhere.
							</p>
							<p class="feat-card-who" data-i18n-html="features.for_site_owners_who_want_a_3d">
								<strong>For:</strong> site owners who want a 3D AI assistant on
								their page without touching backend code.
							</p>
							<p class="feat-card-why" data-i18n-html="features.why_it_s_better_no_sdk_required">
								<strong>Why it's better:</strong> No SDK required on the consumer
								side — one tag, any page, no build step.
							</p>
							<a href="/embed.html" class="btn-primary feat-card-cta" data-i18n-html="features.open_embed_editor">
								Open Embed Editor <span class="btn-arrow">→</span>
							</a>
						</div>
					</article>

					<!-- Walk + AR -->
					<article class="feat-card scroll-reveal" aria-label="Walk and AR">
						<div class="feat-card-preview feat-card-preview--walk">
							<div class="feat-walk-visual" aria-hidden="true">
								<div class="feat-walk-controls">
									<div class="feat-walk-key feat-walk-key--wide">W</div>
									<div class="feat-walk-key-row">
										<div class="feat-walk-key">A</div>
										<div class="feat-walk-key">S</div>
										<div class="feat-walk-key">D</div>
									</div>
								</div>
								<div class="feat-walk-divider">or</div>
								<div class="feat-walk-joystick" aria-label="Joystick">
									<div class="feat-walk-joystick-thumb"></div>
								</div>
								<div class="feat-walk-ar-toggle" aria-label="AR toggle">
									<svg
										viewBox="0 0 20 20"
										width="16"
										height="16"
										aria-hidden="true"
										fill="none"
									>
										<rect
											x="2"
											y="6"
											width="16"
											height="10"
											rx="2"
											stroke="rgba(255,255,255,0.5)"
											stroke-width="1.4"
										/>
										<circle
											cx="7"
											cy="11"
											r="2"
											stroke="rgba(255,255,255,0.5)"
											stroke-width="1.2"
										/>
										<circle
											cx="13"
											cy="11"
											r="2"
											stroke="rgba(255,255,255,0.5)"
											stroke-width="1.2"
										/>
										<path
											d="M7 6V4M13 6V4"
											stroke="rgba(255,255,255,0.3)"
											stroke-width="1.2"
											stroke-linecap="round"
										/>
									</svg>
									<span data-i18n="features.ar_mode">AR mode</span>
								</div>
							</div>
						</div>
						<div class="feat-card-body">
							<span class="feat-card-tag" data-i18n="features.play">Play</span>
							<h3 class="feat-card-title" data-i18n="features.walk_ar">Walk + AR</h3>
							<p class="feat-card-what" data-i18n="features.drive_your_avatar_around_a_3d_scene">
								Drive your avatar around a 3D scene with WASD or a touch joystick.
								Flip to back-camera mode and your avatar walks through your real
								environment.
							</p>
							<p class="feat-card-who" data-i18n-html="features.for_anyone_who_wants_to_experience_their">
								<strong>For:</strong> anyone who wants to experience their avatar in
								the real world, or demo an agent at an event.
							</p>
							<p class="feat-card-why" data-i18n-html="features.why_it_s_better_no_app_install">
								<strong>Why it's better:</strong> No app install — it runs in the
								browser with real physics (Rapier) and real terrain, not a flat
								plane.
							</p>
							<a href="/temporary" class="btn-primary feat-card-cta" data-i18n-html="features.start_walking">
								Start walking <span class="btn-arrow">→</span>
							</a>
						</div>
					</article>

					<!-- View in AR -->
					<article class="feat-card scroll-reveal" aria-label="View in AR">
						<div class="feat-card-preview feat-card-preview--ar-place">
							<div class="feat-ar-visual" aria-hidden="true">
								<div class="feat-ar-scene">
									<div class="feat-ar-floor"></div>
									<div class="feat-ar-model">
										<svg viewBox="0 0 48 48" width="48" height="48" fill="none" aria-hidden="true">
											<path d="M24 6 8 15v18l16 9 16-9V15z" stroke="rgba(167,139,250,0.7)" stroke-width="1.5" stroke-linejoin="round"/>
											<path d="M8 15l16 9 16-9" stroke="rgba(167,139,250,0.5)" stroke-width="1.5"/>
											<path d="M24 24v9" stroke="rgba(167,139,250,0.5)" stroke-width="1.5"/>
										</svg>
									</div>
									<div class="feat-ar-reticle"></div>
									<div class="feat-ar-badge">
										<svg viewBox="0 0 16 16" width="12" height="12" fill="none"><path d="M2 5.5 8 2l6 3.5v5L8 14l-6-3.5z" stroke="currentColor" stroke-width="1.3" stroke-linejoin="round"/></svg>
										AR
									</div>
								</div>
								<div class="feat-ar-btn">Place in your space</div>
							</div>
						</div>
						<div class="feat-card-body">
							<span class="feat-card-tag" data-i18n="features.ar">AR</span>
							<h3 class="feat-card-title" data-i18n="features.view_in_ar">View in AR</h3>
							<p class="feat-card-what" data-i18n="features.every_avatar_and_forge_model_has_a">
								Every avatar and Forge model has a View in AR button. On mobile it
								anchors the model to real surfaces through the camera. On desktop a
								QR code lets you scan and place in one tap. No app needed.
							</p>
							<p class="feat-card-who" data-i18n-html="features.for_anyone_who_wants_to_see_their">
								<strong>For:</strong> anyone who wants to see their 3D agent at
								real-world scale — on their desk, floor, or shelf.
							</p>
							<p class="feat-card-why" data-i18n-html="features.why_it_s_better_three_ar_methods">
								<strong>Why it's better:</strong> Three AR methods in one button
								— iOS Quick Look, Android Scene Viewer, and WebXR. The right one
								fires automatically. The agent stays live in WebXR, so conversation
								and animations work in AR.
							</p>
							<a href="/features/ar" class="btn-primary feat-card-cta" data-i18n-html="features.ar_feature_details">
								AR feature details <span class="btn-arrow">→</span>
							</a>
						</div>
					</article>

					<!-- Dashboard -->
					<article class="feat-card feat-card--wide scroll-reveal" aria-label="Dashboard">
						<div class="feat-card-preview feat-card-preview--dashboard">
							<div class="feat-dash-visual" aria-hidden="true">
								<div class="feat-dash-tiles">
									<div class="feat-dash-tile">
										<span class="feat-dash-tile-num">4</span
										><span class="feat-dash-tile-label" data-i18n="features.agents">Agents</span>
									</div>
									<div class="feat-dash-tile">
										<span class="feat-dash-tile-num">128</span
										><span class="feat-dash-tile-label" data-i18n="features.chats_today">Chats today</span>
									</div>
									<div class="feat-dash-tile">
										<span class="feat-dash-tile-num">12</span
										><span class="feat-dash-tile-label" data-i18n="features.embeds_live">Embeds live</span>
									</div>
								</div>
								<div class="feat-dash-bars">
									<span style="height: 42%"></span
									><span style="height: 66%"></span
									><span style="height: 50%"></span
									><span style="height: 81%"></span
									><span style="height: 58%"></span
									><span style="height: 93%"></span
									><span style="height: 71%"></span>
								</div>
							</div>
						</div>
						<div class="feat-card-body">
							<span class="feat-card-tag" data-i18n="features.dashboard">Dashboard</span>
							<h3 class="feat-card-title" data-i18n="features.your_dashboard">Your Dashboard</h3>
							<p class="feat-card-what" data-i18n="features.one_home_for_everything_you_have_made">
								One home for everything you have made — edit each agent's persona,
								swap its animations, copy embed codes, and watch chat activity roll
								in as it happens.
							</p>
							<p class="feat-card-who" data-i18n-html="features.for_anyone_running_one_or_more_agents">
								<strong>For:</strong> anyone running one or more agents who wants a
								single control panel instead of a pile of scattered links.
							</p>
							<p class="feat-card-why" data-i18n-html="features.why_it_s_better_every_avatar_and">
								<strong>Why it's better:</strong> Every avatar and agent you create
								shows up here automatically — nothing to wire up, one login for all
								of it.
							</p>
							<a href="/dashboard" class="btn-primary feat-card-cta" data-i18n-html="features.open_your_dashboard">
								Open your dashboard <span class="btn-arrow">→</span>
							</a>
						</div>
					</article>
				</div>
			</section>

			<!-- ══ OPTIONAL / ADVANCED — on-chain, payments, tokens ══ -->
			<section
				class="feat-goal-section feat-goal-section--alt"
				id="optional"
				aria-labelledby="goal-optional-label"
			>
				<div class="feat-goal-header scroll-reveal">
					<span class="feat-goal-num">02</span>
					<div>
						<h2 id="goal-optional-label" class="feat-goal-title" data-i18n="features.optional_advanced">
							Optional &middot; Advanced
						</h2>
						<p class="feat-goal-desc" data-i18n="features.put_agents_on_chain_charge_for_what">
							Put agents on-chain, charge for what they do, and launch a token.
							Powerful, but never required.
						</p>
					</div>
				</div>

				<!-- Crypto-requirements banner -->
				<div class="feat-tier-banner feat-tier-banner--optional scroll-reveal" role="note">
					<span class="feat-tier-banner-icon" aria-hidden="true">
						<svg viewBox="0 0 24 24" width="22" height="22" fill="none">
							<path
								d="M12 3l7 3.5v5c0 4.4-3 7.6-7 9-4-1.4-7-4.6-7-9v-5L12 3z"
								stroke="currentColor"
								stroke-width="1.5"
								stroke-linejoin="round"
							/>
							<path
								d="M9 12l2 2 4-4.5"
								stroke="currentColor"
								stroke-width="1.6"
								stroke-linecap="round"
								stroke-linejoin="round"
							/>
						</svg>
					</span>
					<p class="feat-tier-banner-text" data-i18n-html="features.these_features_use_crypto_to_switch_them">
						<strong>These features use crypto.</strong> To switch them on you'll need a
						<span class="tws-tt" data-term="wallet" tabindex="0">wallet</span> and a
						small amount of
						<span class="tws-tt" data-term="usdc" tabindex="0">USDC</span> or
						<span class="tws-tt" data-term="sol" tabindex="0">SOL</span>. Skip them
						entirely and the Core product above still works in full.
					</p>
				</div>

				<div class="feat-cards">
					<!-- On-Chain Identity / Deploy -->
					<article class="feat-card scroll-reveal" aria-label="On-Chain Identity">
						<div class="feat-card-preview feat-card-preview--onchain">
							<div class="feat-onchain-visual" aria-hidden="true">
								<div class="feat-onchain-badge">
									<svg
										viewBox="0 0 24 24"
										width="28"
										height="28"
										aria-hidden="true"
									>
										<circle
											cx="12"
											cy="12"
											r="10"
											fill="none"
											stroke="rgba(74,222,128,0.6)"
											stroke-width="1.5"
										/>
										<path
											d="M8 12l3 3 5-5"
											fill="none"
											stroke="#4ade80"
											stroke-width="1.8"
											stroke-linecap="round"
											stroke-linejoin="round"
										/>
									</svg>
									<span class="feat-onchain-label" data-i18n="features.verified_on_solana">Verified on Solana</span>
								</div>
								<div class="feat-onchain-meta">
									<div class="feat-onchain-row">
										<span class="feat-onchain-key" data-i18n="features.chain">Chain</span>
										<span class="feat-onchain-val" data-i18n="features.solana_mainnet">Solana Mainnet</span>
									</div>
									<div class="feat-onchain-row">
										<span class="feat-onchain-key" data-i18n="features.standard">Standard</span>
										<span class="feat-onchain-val" data-i18n="features.metaplex_core">Metaplex Core</span>
									</div>
									<div class="feat-onchain-row">
										<span class="feat-onchain-key" data-i18n="features.fee">Fee</span>
										<span class="feat-onchain-val">~$0.01</span>
									</div>
									<div class="feat-onchain-row">
										<span class="feat-onchain-key" data-i18n="features.discoverable_by">Discoverable by</span>
										<span class="feat-onchain-val" data-i18n="features.a2a_mcp_clients">A2A · MCP clients</span>
									</div>
								</div>
							</div>
						</div>
						<div class="feat-card-body">
							<span class="feat-card-tag feat-card-tag--mint" data-i18n="features.on_chain_identity">On-Chain Identity</span>
							<span class="feat-req" data-i18n="features.needs_a_wallet_0_01_network_fee">Needs: a wallet · ~$0.01 network fee</span>
							<h3 class="feat-card-title" data-i18n="features.deploy_to_the_blockchain">Deploy to the Blockchain</h3>
							<p class="feat-card-what" data-i18n="features.one_transaction_on_solana_gives_your_agent">
								One transaction on Solana gives your agent a permanent, verifiable
								identity — a Metaplex Core asset that any A2A or MCP client can
								discover and trust.
							</p>
							<p class="feat-card-who" data-i18n-html="features.for_builders_who_want_their_agent_to">
								<strong>For:</strong> builders who want their agent to be portable,
								transferable, and findable by other AI systems.
							</p>
							<p class="feat-card-why" data-i18n-html="features.why_it_s_better_sub_cent_fees">
								<strong>Why it's better:</strong> Sub-cent fees. You hold the keys.
								The agent card is a public JSON URL — nothing is locked to this
								site.
							</p>
							<a href="/deploy" class="btn-primary feat-card-cta" data-i18n-html="features.deploy_your_agent">
								Deploy your agent <span class="btn-arrow">→</span>
							</a>
						</div>
					</article>

					<!-- Token Launch -->
					<article class="feat-card scroll-reveal" aria-label="Launch a Token">
						<div class="feat-card-preview feat-card-preview--launch">
							<div class="feat-launch-visual" aria-hidden="true">
								<div class="feat-launch-token">
									<span class="feat-launch-token-avatar"></span>
									<span class="feat-launch-token-meta" data-i18n-html="features.your_token_ticker">
										<span class="feat-launch-token-name">Your token</span>
										<span class="feat-launch-token-ticker">$TICKER</span>
									</span>
									<span class="feat-launch-live"
										 data-i18n-html="features.live"><span class="feat-launch-live-dot"></span>Live</span
									>
								</div>
								<svg
									class="feat-launch-curve"
									viewBox="0 0 120 44"
									preserveAspectRatio="none"
									aria-hidden="true"
								>
									<path
										d="M2 42 C 38 40, 66 22, 118 5"
										fill="none"
										stroke="rgba(74,222,128,0.65)"
										stroke-width="2"
										stroke-linecap="round"
									/>
								</svg>
							</div>
						</div>
						<div class="feat-card-body">
							<span class="feat-card-tag feat-card-tag--mint" data-i18n="features.token_launch">Token Launch</span>
							<span class="feat-req" data-i18n="features.needs_a_wallet_sol">Needs: a wallet · SOL</span>
							<h3 class="feat-card-title" data-i18n="features.launch_a_token">Launch a Token</h3>
							<p class="feat-card-what" data-i18n="features.give_your_agent_a_community_token_in">
								Give your agent a community token in a couple of clicks — set a name
								and image, and it goes live on a pump.fun bonding-curve market that
								anyone can trade.
							</p>
							<p class="feat-card-who" data-i18n-html="features.for_creators_who_want_a_community_and">
								<strong>For:</strong> creators who want a community and a live
								market around their agent.
							</p>
							<p class="feat-card-why" data-i18n-html="features.why_it_s_better_it_s_a">
								<strong>Why it's better:</strong> It's a real launch with live
								trading from the first second — you supply the details, we handle
								the on-chain mechanics.
							</p>
							<a href="/launchpad" class="btn-primary feat-card-cta" data-i18n-html="features.open_the_launchpad">
								Open the launchpad <span class="btn-arrow">→</span>
							</a>
						</div>
					</article>

					<!-- Marketplace -->
					<article class="feat-card scroll-reveal" aria-label="Marketplace">
						<div class="feat-card-preview feat-card-preview--marketplace">
							<div class="feat-mkt-visual" aria-hidden="true">
								<div class="feat-mkt-listing">
									<div class="feat-mkt-listing-icon">🧠</div>
									<div class="feat-mkt-listing-info">
										<span class="feat-mkt-listing-name"
											 data-i18n="features.research_assistant">Research Assistant</span
										>
										<span class="feat-mkt-listing-price" data-i18n="features.0_05_call">$0.05 / call</span>
									</div>
									<span class="feat-mkt-listing-badge" data-i18n="features.listed">Listed</span>
								</div>
								<div class="feat-mkt-listing">
									<div class="feat-mkt-listing-icon">🗣️</div>
									<div class="feat-mkt-listing-info">
										<span class="feat-mkt-listing-name" data-i18n="features.voice_narrator">Voice Narrator</span>
										<span class="feat-mkt-listing-price" data-i18n="features.0_02_call">$0.02 / call</span>
									</div>
									<span class="feat-mkt-listing-badge" data-i18n="features.listed_2">Listed</span>
								</div>
								<div class="feat-mkt-listing">
									<div class="feat-mkt-listing-icon">📊</div>
									<div class="feat-mkt-listing-info">
										<span class="feat-mkt-listing-name" data-i18n="features.market_analyst">Market Analyst</span>
										<span class="feat-mkt-listing-price" data-i18n="features.0_10_call">$0.10 / call</span>
									</div>
									<span class="feat-mkt-listing-badge feat-mkt-listing-badge--new"
										 data-i18n="features.new">New</span
									>
								</div>
							</div>
						</div>
						<div class="feat-card-body">
							<span class="feat-card-tag" data-i18n="features.earn">Earn</span>
							<span class="feat-req" data-i18n="features.earns_usdc_pay_per_call">Earns: USDC · pay-per-call</span>
							<h3 class="feat-card-title" data-i18n="features.marketplace">Marketplace</h3>
							<p class="feat-card-what" data-i18n="features.list_your_agent_s_skills_for_others">
								List your agent's skills for others to buy. Each call settles in
								USDC (a $1 digital dollar) via pay-per-call — payment goes straight
								to your wallet.
							</p>
							<p class="feat-card-who" data-i18n-html="features.for_creators_who_have_built_something_useful">
								<strong>For:</strong> creators who have built something useful and
								want to charge for it without building billing infrastructure.
							</p>
							<p class="feat-card-why" data-i18n-html="features.why_it_s_better_pay_per_call">
								<strong>Why it's better:</strong> Pay-per-call means no
								subscriptions to manage — buyers pay exactly what they use, and you
								get paid per call.
							</p>
							<a href="/marketplace" class="btn-primary feat-card-cta" data-i18n-html="features.browse_the_marketplace">
								Browse the marketplace <span class="btn-arrow">→</span>
							</a>
						</div>
					</article>

					<!-- Agent Exchange -->
					<article
						class="feat-card scroll-reveal"
						aria-label="Agent Exchange — Agents Paying Agents"
					>
						<div class="feat-card-preview feat-card-preview--exchange">
							<div class="feat-exchange-visual" aria-hidden="true">
								<div class="feat-exchange-agent feat-exchange-agent--a">
									<span class="feat-exchange-name" data-i18n="features.oracle">ORACLE</span>
								</div>
								<div class="feat-exchange-tx">
									<div class="feat-exchange-tx-line"></div>
									<span class="feat-exchange-tx-amount">$0.05</span>
									<div class="feat-exchange-tx-arrow">→</div>
								</div>
								<div class="feat-exchange-agent feat-exchange-agent--b">
									<span class="feat-exchange-name" data-i18n="features.nova">NOVA</span>
								</div>
							</div>
						</div>
						<div class="feat-card-body">
							<span class="feat-card-tag" data-i18n="features.earn_2">Earn</span>
							<span class="feat-req" data-i18n="features.uses_usdc_x402_micropayments">Uses: USDC · x402 micropayments</span>
							<h3 class="feat-card-title" data-i18n="features.agent_exchange">Agent Exchange</h3>
							<p class="feat-card-what" data-i18n="features.watch_two_ai_agents_oracle_and_nova">
								Watch two AI agents — ORACLE and NOVA — negotiate, invoke each
								other's skills, and settle payments on-chain automatically. No
								humans in the loop.
							</p>
							<p class="feat-card-who" data-i18n-html="features.for_builders_curious_about_autonomous_agent">
								<strong>For:</strong> builders curious about autonomous agent
								economies, or anyone who wants to offer a service that other AI
								systems can pay for.
							</p>
							<p class="feat-card-why" data-i18n-html="features.why_it_s_better_real_on_chain">
								<strong>Why it's better:</strong> Real on-chain settlement via
								pay-per-call (micropayments) — every transaction is verifiable, not
								simulated.
							</p>
							<a href="/agent-exchange" class="btn-primary feat-card-cta" data-i18n-html="features.see_agents_pay_agents">
								See agents pay agents <span class="btn-arrow">→</span>
							</a>
						</div>
					</article>

					<!-- Play — Coin Worlds -->
					<article
						class="feat-card feat-card--wide scroll-reveal"
						aria-label="Coin Worlds"
					>
						<div class="feat-card-preview feat-card-preview--play">
							<model-viewer
								src="/avatars/cz.glb"
								auto-rotate
								auto-rotate-delay="0"
								rotation-per-second="8deg"
								interaction-prompt="none"
								camera-controls="false"
								disable-zoom
								shadow-intensity="0"
								exposure="0.8"
								environment-image="neutral"
								camera-orbit="10deg 75deg 6m"
								field-of-view="42deg"
								loading="lazy"
								aria-label="3D avatar walking through a coin world"
							></model-viewer>
							<div class="feat-play-hud" aria-hidden="true">
								<span class="feat-play-hud-item feat-play-hud-live" data-i18n-html="features.live_2">
									<span class="feat-play-live-dot"></span>Live
								</span>
								<span class="feat-play-hud-item" data-i18n="features.three">$THREE</span>
							</div>
						</div>
						<div class="feat-card-body">
							<span class="feat-card-tag feat-card-tag--mint" data-i18n="features.on_chain_world">On-Chain World</span>
							<span class="feat-req" data-i18n="features.reads_live_market_prices_on_chain">Reads live market prices on-chain</span>
							<h3 class="feat-card-title" data-i18n="features.coin_worlds">Coin Worlds</h3>
							<p class="feat-card-what" data-i18n="features.walk_your_avatar_through_3d_worlds_tied">
								Walk your avatar through 3D worlds tied to live crypto prices. The
								terrain shifts with the market — each world is a different token's
								landscape.
							</p>
							<p class="feat-card-who" data-i18n-html="features.for_crypto_enthusiasts_who_want_a_more">
								<strong>For:</strong> crypto enthusiasts who want a more visceral
								way to follow the market.
							</p>
							<p class="feat-card-why" data-i18n-html="features.why_it_s_better_agents_in_the">
								<strong>Why it's better:</strong> Agents in the world pay each other
								on-chain in real time — you can watch live x402 micropayment
								transactions happen as you walk.
							</p>
							<a href="/play" class="btn-primary feat-card-cta" data-i18n-html="features.enter_the_world">
								Enter the world <span class="btn-arrow">→</span>
							</a>
						</div>
					</article>

					<!-- IBM / Granite -->
					<article
						class="feat-card feat-card--wide scroll-reveal"
						aria-label="IBM Granite on watsonx.ai"
					>
						<div class="feat-card-preview feat-card-preview--ibm">
							<div class="feat-ibm-visual" aria-hidden="true">
								<div class="feat-ibm-badge">
									<svg
										viewBox="0 0 40 40"
										width="36"
										height="36"
										aria-hidden="true"
										fill="none"
									>
										<rect
											width="40"
											height="40"
											rx="8"
											fill="rgba(30,80,200,0.12)"
										/>
										<text
											x="20"
											y="26"
											text-anchor="middle"
											font-size="14"
											font-weight="700"
											fill="#5b8fff"
											font-family="sans-serif"
										>
											IBM
										</text>
									</svg>
									<div class="feat-ibm-badge-text">
										<span class="feat-ibm-badge-title" data-i18n="features.watsonx_ai">watsonx.ai</span>
										<span class="feat-ibm-badge-sub" data-i18n="features.ibm_granite">IBM Granite</span>
									</div>
								</div>
								<div class="feat-ibm-pills">
									<span class="feat-ibm-pill" data-i18n="features.galaxy_3d_agent_map">Galaxy · 3D agent map</span>
									<span class="feat-ibm-pill" data-i18n="features.oracle_timeseries">Oracle · TimeSeries</span>
									<span class="feat-ibm-pill" data-i18n="features.trust_layer_governance">Trust Layer · governance</span>
									<span class="feat-ibm-pill" data-i18n="features.proof_on_chain_notary">Proof · on-chain notary</span>
								</div>
							</div>
						</div>
						<div class="feat-card-body">
							<span class="feat-card-tag feat-card-tag--ibm" data-i18n="features.enterprise_ai">Enterprise AI</span>
							<span class="feat-req" data-i18n="features.enterprise_advanced_demo">Enterprise · advanced demo</span>
							<h3 class="feat-card-title" data-i18n="features.ibm_granite_on_watsonx_ai">IBM Granite on watsonx.ai</h3>
							<p class="feat-card-what" data-i18n="features.a_suite_of_demos_showing_ibm_granite">
								A suite of demos showing IBM Granite models — time-series
								forecasting, semantic agent mapping, AI governance, and on-chain
								proof of AI decisions — all rendered in 3D.
							</p>
							<p class="feat-card-who" data-i18n-html="features.for_enterprise_teams_evaluating_ibm_watsonx">
								<strong>For:</strong> enterprise teams evaluating IBM watsonx, or
								developers who want to see what Granite models can do inside a live
								3D environment.
							</p>
							<p class="feat-card-why" data-i18n-html="features.why_it_s_better_these_are_real">
								<strong>Why it's better:</strong> These are real Granite API calls —
								not mocked — with every decision anchored to a Solana transaction as
								an immutable record.
							</p>
							<a href="/galaxy" class="btn-primary feat-card-cta" data-i18n-html="features.explore_the_ibm_suite">
								Explore the IBM suite <span class="btn-arrow">→</span>
							</a>
						</div>
					</article>
				</div>
			</section>

			<!-- ── Cross-cutting / developer row ── -->
			<section class="feat-dev-section scroll-reveal">
				<div class="feat-dev-inner">
					<div class="feat-dev-text">
						<p class="feat-dev-eyebrow" data-i18n="features.for_developers">For developers</p>
						<h2 class="feat-dev-title" data-i18n="features.one_tag_zero_dependencies">One tag. Zero dependencies.</h2>
						<p class="feat-dev-sub" data-i18n-html="features.the_web_component_lazy_loads_renders_on">
							The <code>&lt;agent-3d&gt;</code> web component lazy-loads, renders on
							any device, and connects to your existing AI stack via MCP or A2A. No
							framework. No build step.
						</p>
						<div class="feat-dev-links">
							<a href="/docs" class="btn-ghost" data-i18n="features.read_the_docs">Read the docs →</a>
							<a
								href="https://github.com/nirholas/three.ws"
								target="_blank"
								rel="noopener noreferrer"
								class="btn-ghost"
								 data-i18n="features.github">GitHub →</a
							>
						</div>
					</div>
					<div class="feat-dev-standards">
						<div class="feat-standard-row">
							<span class="feat-standard-pill" data-i18n="features.gltf_2_0">glTF 2.0</span>
							<span class="feat-standard-pill" data-i18n="features.solana">Solana</span>
							<span class="feat-standard-pill" data-i18n="features.metaplex_core_2">Metaplex Core</span>
						</div>
						<div class="feat-standard-row">
							<span class="feat-standard-pill" data-i18n="features.a2a">A2A</span>
							<span class="feat-standard-pill" data-i18n="features.mcp">MCP</span>
							<span class="feat-standard-pill" data-i18n="features.x402">x402</span>
							<span class="feat-standard-pill" data-i18n="features.webxr">WebXR</span>
						</div>
					</div>
				</div>
			</section>

			<!-- ── Final CTA ── -->
			<section class="feat-final-cta scroll-reveal">
				<div class="feat-final-cta-inner">
					<h2 data-i18n="features.pick_a_goal_start_in_five_minutes">Pick a goal. Start in five minutes.</h2>
					<p data-i18n="features.free_to_start_no_credit_card_required">Free to start. No credit card required.</p>
					<div class="feat-final-cta-row">
						<a href="/start" class="btn-primary" data-i18n-html="features.get_started_free">
							Get started — free <span class="btn-arrow">→</span>
						</a>
						<a href="/agents" class="btn-ghost" data-i18n="features.browse_agents">Browse agents</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 data-i18n="features.stay_in_the_loop">Stay in the loop</h3>
						<p data-i18n="features.get_updates_on_new_features_agent_tooling">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"
							 data-i18n-attr="aria-label:features.subscribe_arialabel">
								<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 data-i18n="features.join_the_community">Join the community</h3>
						<p data-i18n="features.follow_along_for_builds_demos_and_conversati">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 data-i18n="features.three_ws">three.ws</span>
						</div>
						<p class="h-footer-tagline" data-i18n="features.give_your_ai_a_body">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"
							 data-i18n-attr="aria-label:features.three_ws_on_x_arialabel">
								<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"
							 data-i18n-attr="aria-label:features.three_ws_on_github_arialabel">
								<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" data-i18n="features.product">Product</h4>
							<a href="/features" data-i18n="features.features">Features</a>
							<a href="/create" data-i18n="features.create_4">Create</a>
							<a href="/marketplace" data-i18n="features.marketplace_2">Marketplace</a>
							<a href="/studio" data-i18n="features.studio">Studio</a>
							<a href="/start" data-i18n="features.get_started">Get Started</a>
						</div>
						<div class="h-footer-link-col">
							<h4 class="h-footer-link-heading" data-i18n="features.developers">Developers</h4>
							<a href="/docs" data-i18n="features.docs">Docs</a>
							<a
								href="https://github.com/nirholas/three.ws"
								target="_blank"
								rel="noopener noreferrer"
								 data-i18n="features.github_2">GitHub</a
							>
							<a href="/bazaar" data-i18n="features.paid_api_bazaar">Paid API Bazaar</a>
							<a
								href="https://developers.metaplex.com/core"
								target="_blank"
								rel="noopener noreferrer"
								 data-i18n="features.metaplex_core_3">Metaplex Core</a
							>
						</div>
						<div class="h-footer-link-col">
							<h4 class="h-footer-link-heading" data-i18n="features.company">Company</h4>
							<a href="/blog" data-i18n="features.blog">Blog</a>
							<a href="/community" data-i18n="features.community">Community</a>
							<a href="/galaxy" data-i18n="features.ibm_watsonx_ai">IBM · watsonx.ai</a>
							<a href="/dashboard" data-i18n="features.dashboard_2">Dashboard</a>
						</div>
						<div class="h-footer-link-col">
							<h4 class="h-footer-link-heading" data-i18n="features.legal">Legal</h4>
							<a href="/legal/privacy" data-i18n="features.privacy">Privacy</a>
							<a href="/legal/tos" data-i18n="features.terms">Terms</a>
						</div>
					</nav>
				</div>
				<div class="h-footer-bottom">
					<p class="h-footer-legal" data-i18n="features.2026_three_ws_all_rights_reserved">© 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" data-i18n-attr="aria-label:features.built_with_x402_payments_arialabel">
							<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" data-i18n-html="features.all_systems_operational" data-i18n-attr="aria-label:features.all_systems_operational_arialabel">
							<span class="h-footer-status-dot"></span>
							All systems operational
						</span>
					</div>
					<div class="h-footer-legal-links">
						<a href="/legal/privacy" data-i18n="features.privacy_policy">Privacy Policy</a>
						<a href="/legal/tos" data-i18n="features.terms_of_use">Terms of Use</a>
					</div>
				</div>
			</footer>
		</main>

		<script>
			// Scroll reveal
			(function () {
				const els = document.querySelectorAll('.scroll-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.1, rootMargin: '0px 0px -40px 0px' },
				);
				els.forEach((el, i) => {
					const siblings = Array.from(
						el.parentElement.querySelectorAll('.scroll-reveal'),
					);
					const idx = siblings.indexOf(el);
					el.style.transitionDelay = idx * 0.07 + 's';
					observer.observe(el);
				});
			})();
		</script>
		<script type="module">
			// "New on three.ws": newest feature/launch entries from the changelog
			// feed, each card linking to the live page it shipped on.
			(async () => {
				const grid = document.getElementById('featNewGrid');
				if (!grid) return;
				const esc = (s) => String(s ?? '').replace(/[<>&"]/g, (c) => ({ '<': '&lt;', '>': '&gt;', '&': '&amp;', '"': '&quot;' })[c]);
				const slugify = (title, date) =>
					date + '-' + title.toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '').slice(0, 80);
				const fmtDate = (iso) => {
					try {
						return new Date(iso + 'T00:00:00Z').toLocaleDateString(undefined, { month: 'short', day: 'numeric', timeZone: 'UTC' });
					} catch { return iso; }
				};
				try {
					// Six newest entries only, so read the 150-entry window rather
					// than the full 870 KB history. /changelog.json is the fallback
					// for a cached shell served by a deploy that predates the small
					// feed; both carry the same envelope.
					let res = await fetch('/changelog-recent.json', { headers: { accept: 'application/json' } });
					if (!res.ok) res = await fetch('/changelog.json', { headers: { accept: 'application/json' } });
					if (!res.ok) throw new Error('feed ' + res.status);
					const { entries = [] } = await res.json();
					const seen = new Set();
					const fresh = entries
						.filter((e) => e.type === 'launch' || (e.tags || []).includes('feature'))
						.filter((e) => {
							const key = e.link || slugify(e.title, e.date);
							if (seen.has(key)) return false;
							seen.add(key);
							return true;
						})
						.slice(0, 6);
					if (!fresh.length) throw new Error('feed empty');
					grid.innerHTML = fresh.map((e) => {
						const href = e.link || '/changelog/' + slugify(e.title, e.date);
						const kind = e.type === 'launch' ? 'launch' : 'feature';
						return `<li>
							<a class="feat-new-card" href="${esc(href)}">
								<span class="feat-new-meta">
									<span class="feat-new-tag feat-new-tag-${kind}">${kind === 'launch' ? 'New page' : 'Feature'}</span>
									<time datetime="${esc(e.date)}">${esc(fmtDate(e.date))}</time>
								</span>
								<span class="feat-new-card-title">${esc(e.title)}</span>
								<span class="feat-new-card-desc">${esc(e.summary)}</span>
							</a>
						</li>`;
					}).join('');
				} catch (err) {
					console.error('[features:new]', err);
					grid.innerHTML = `<li class="feat-new-fallback">
						Couldn't load the latest releases right now.
						<a href="/changelog">Browse the full changelog</a> instead.
					</li>`;
				}
			})();
		</script>
		<script src="/brand.js" defer></script>
		<div id="footer-container"></div>
		<script src="/footer.js"></script>
		<script>
			// Embed snippet copy button
			(function () {
				const btn = document.getElementById('embedCopyBtn');
				if (!btn) return;
				btn.addEventListener('click', function () {
					const snippet = '<script src="https://three.ws/embed.js"><\/script>\n<agent-3d agent-id="YOUR_AGENT_ID" kiosk></agent-3d>';
					navigator.clipboard.writeText(snippet).then(function () {
						btn.textContent = 'Copied!';
						btn.classList.add('copied');
						setTimeout(function () {
							btn.textContent = 'Copy';
							btn.classList.remove('copied');
						}, 2000);
					}).catch(function () {
						btn.textContent = 'Copy';
					});
				});
			})();

			// Animation showcase — pill picker
			(function () {
				const viewer = document.getElementById('animViewer');
				const nowPlaying = document.getElementById('animNowPlaying');
				const pills = document.querySelectorAll('.feat-anim-pill');
				if (!viewer || !pills.length) return;

				function selectAnim(pill) {
					const src = pill.dataset.src;
					if (!src) return;
					pills.forEach((p) => p.classList.remove('feat-anim-pill--active'));
					pill.classList.add('feat-anim-pill--active');
					viewer.setAttribute('src', src);
					const label = pill.textContent.trim();
					if (nowPlaying) nowPlaying.textContent = label;
				}

				pills.forEach((pill) => {
					pill.addEventListener('click', () => selectAnim(pill));
				});

				// Lazy-reveal: trigger model-viewer loading when stage scrolls into view
				const stage = document.getElementById('animStage');
				if (stage && 'IntersectionObserver' in window) {
					const obs = new IntersectionObserver(
						(entries) => {
							if (entries[0].isIntersecting) {
								viewer.setAttribute('reveal', 'auto');
								obs.disconnect();
							}
						},
						{ threshold: 0.2 },
					);
					obs.observe(stage);
				} else if (viewer) {
					viewer.setAttribute('reveal', 'auto');
				}
			})();

			// ── Feature demo registry ───────────────────────────────────────
			// Data-driven inline demos. Each entry's `demoType` maps to a
			// renderer in DEMO_RENDERERS; sections opt in with
			// data-feature-demo="<demoType>". Adding a new interactive feature
			// demo = one FEATURES entry + one renderer, nothing else to wire.
			(function () {
				const FEATURES = [
					{
						id: 'walking-avatar',
						title: 'Walking Avatars',
						tagline: 'Your avatar walks. Anywhere on the web.',
						description:
							'Embed a fully animated, voice-capable, walking 3D avatar on any page — or browse the web with your own avatar as your guide via our Chrome extension.',
						demoType: 'walking-avatar-inline',
						bullets: ['Walk anywhere', 'Voice chat', 'Chrome extension'],
						ctaLabel: 'Try Walking',
						ctaHref: '/walk',
					},
				];

				// Small inline icon set (16px, currentColor) so the bullets and
				// sub-cards stay dependency-free and theme-aware.
				const ICONS = {
					check:
						'<svg viewBox="0 0 16 16" width="16" height="16" fill="none" aria-hidden="true"><path d="M3 8.5l3 3 7-7.5" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg>',
					walk:
						'<svg viewBox="0 0 20 20" width="18" height="18" fill="none" aria-hidden="true"><circle cx="11" cy="3.5" r="1.6" stroke="currentColor" stroke-width="1.4"/><path d="M10.5 7l-2.2 3.2L6 12.5M10.5 7l2.2 1.4 1.8 2.6M10.5 7v4.5l-2 5M10.5 11.5l1.8 5" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/></svg>',
					puzzle:
						'<svg viewBox="0 0 20 20" width="18" height="18" fill="none" aria-hidden="true"><path d="M8 3.5a1.5 1.5 0 113 0V5h2.5a1 1 0 011 1V8h1.5a1.5 1.5 0 110 3H15v2.5a1 1 0 01-1 1H11.5V16a1.5 1.5 0 11-3 0v-1.5H6a1 1 0 01-1-1V11H3.5a1.5 1.5 0 110-3H5V6a1 1 0 011-1h2V3.5z" stroke="currentColor" stroke-width="1.3" stroke-linejoin="round"/></svg>',
					code:
						'<svg viewBox="0 0 20 20" width="18" height="18" fill="none" aria-hidden="true"><path d="M7 6l-3.5 4L7 14M13 6l3.5 4L13 14M11 4l-2 12" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/></svg>',
				};

				const EMBED_SNIPPET =
					'<iframe src="https://three.ws/walk-embed?controls=joystick" width="360" height="480" style="border:0;border-radius:20px" allow="accelerometer; gyroscope" title="Walking avatar"></iframe>';

				function escapeHtml(s) {
					return String(s).replace(/[&<>"']/g, (c) => ({
						'&': '&amp;',
						'<': '&lt;',
						'>': '&gt;',
						'"': '&quot;',
						"'": '&#39;',
					})[c]);
				}

				// Renderer for demoType "walking-avatar-inline". Builds the copy
				// column + a lazy-loaded /walk-embed iframe, plus three sub-cards.
				// The iframe src is only assigned once the section scrolls near the
				// viewport (IntersectionObserver), so the embed's Three.js scene and
				// avatar GLB never download for visitors who don't reach it.
				function renderWalkingAvatarInline(host, feature) {
					const bullets = feature.bullets
						.map(
							(b) =>
								`<li class="feat-walk-demo-bullet">${ICONS.check}<span>${escapeHtml(b)}</span></li>`,
						)
						.join('');

					host.classList.add('scroll-reveal');
					host.innerHTML = `
						<div class="feat-walk-demo-inner">
							<div class="feat-walk-demo-copy">
								<p class="feat-eyebrow">Walking avatars</p>
								<h2 id="walk-demo-title" class="feat-walk-demo-title">${escapeHtml(feature.title)}</h2>
								<p class="feat-walk-demo-tagline">${escapeHtml(feature.tagline)}</p>
								<p class="feat-walk-demo-desc">${escapeHtml(feature.description)}</p>
								<ul class="feat-walk-demo-bullets">${bullets}</ul>
								<a href="${escapeHtml(feature.ctaHref)}" class="btn-primary feat-walk-demo-cta">
									${escapeHtml(feature.ctaLabel)} <span class="btn-arrow">→</span>
								</a>
							</div>
							<div class="feat-walk-demo-stage" data-ready="false">
								<div class="feat-walk-demo-skeleton" aria-hidden="true">
									<span class="feat-walk-demo-spinner"></span>
									<span>Loading avatar…</span>
								</div>
								<span class="feat-walk-demo-hint" aria-hidden="true">Drag to look · joystick to walk</span>
							</div>
						</div>
						<div class="feat-walk-demo-cards">
							<a class="feat-walk-demo-card" href="/walk">
								<span class="feat-walk-demo-card-icon">${ICONS.walk}</span>
								<span class="feat-walk-demo-card-title">Open the Walk page</span>
								<span class="feat-walk-demo-card-sub">Full-screen avatar with six environments and a distance leaderboard.</span>
							</a>
							<a class="feat-walk-demo-card" href="/docs/walk/chrome-extension">
								<span class="feat-walk-demo-card-icon">${ICONS.puzzle}</span>
								<span class="feat-walk-demo-card-title">Chrome extension</span>
								<span class="feat-walk-demo-card-sub">Browse any site with your avatar walking alongside you as a guide.</span>
							</a>
							<button type="button" class="feat-walk-demo-card" data-copy-embed aria-label="Copy the walking-avatar embed snippet">
								<span class="feat-walk-demo-card-icon">${ICONS.code}</span>
								<span class="feat-walk-demo-card-title">Copy embed snippet</span>
								<span class="feat-walk-demo-card-sub">One iframe tag drops a walking avatar onto any page.</span>
								<span class="feat-walk-demo-card-status" data-copy-status>Copy &lt;iframe&gt; →</span>
							</button>
						</div>
					`;

					const stageEl = host.querySelector('.feat-walk-demo-stage');

					// Lazy-load the embed iframe only when the demo nears the viewport.
					let loaded = false;
					function loadEmbed() {
						if (loaded) return;
						loaded = true;
						const iframe = document.createElement('iframe');
						iframe.className = 'feat-walk-demo-iframe';
						// controls=joystick + autoplay → the avatar strolls on its own
						// until a visitor grabs the joystick; bg=transparent lets the
						// card's gradient show through (see /walk-embed param contract).
						iframe.src = '/walk-embed?controls=joystick&autoplay=true&bg=transparent&env=studio';
						iframe.title = 'Live walking 3D avatar demo';
						iframe.loading = 'lazy';
						iframe.setAttribute('allow', 'accelerometer; gyroscope');
						iframe.setAttribute('referrerpolicy', 'no-referrer-when-downgrade');
						stageEl.insertBefore(iframe, stageEl.firstChild);
					}

					if ('IntersectionObserver' in window) {
						const obs = new IntersectionObserver(
							(entries) => {
								if (entries[0].isIntersecting) {
									loadEmbed();
									obs.disconnect();
								}
							},
							{ rootMargin: '200px 0px' },
						);
						obs.observe(stageEl);
					} else {
						loadEmbed();
					}

					// The embed posts `{ source:'walk-embed', type:'walk:ready' }`
					// once its scene + avatar are live (src/walk-embed-events.js).
					// Flip the stage to ready state to fade out the skeleton and
					// reveal the controls hint. Fallback timer covers the rare case
					// where the message is missed (e.g. blocked postMessage).
					let readyFallback = 0;
					function markReady() {
						stageEl.dataset.ready = 'true';
						clearTimeout(readyFallback);
					}
					window.addEventListener('message', (e) => {
						const d = e.data;
						if (d && d.source === 'walk-embed' && d.type === 'walk:ready') markReady();
					});
					readyFallback = setTimeout(markReady, 9000);

					// Embed-snippet copy button.
					const copyBtn = host.querySelector('[data-copy-embed]');
					const copyStatus = host.querySelector('[data-copy-status]');
					if (copyBtn && copyStatus) {
						copyBtn.addEventListener('click', () => {
							navigator.clipboard
								.writeText(EMBED_SNIPPET)
								.then(() => {
									copyStatus.textContent = 'Copied!';
									copyStatus.classList.add('feat-walk-demo-card-status--copied');
									setTimeout(() => {
										copyStatus.innerHTML = 'Copy &lt;iframe&gt; →';
										copyStatus.classList.remove('feat-walk-demo-card-status--copied');
									}, 2000);
								})
								.catch(() => {
									copyStatus.textContent = 'Copy failed — select manually';
								});
						});
					}

					// Join the page's scroll-reveal choreography for the new section.
					if ('IntersectionObserver' in window) {
						const revealObs = new IntersectionObserver(
							(entries) => {
								entries.forEach((entry) => {
									if (entry.isIntersecting) {
										entry.target.classList.add('revealed');
										revealObs.unobserve(entry.target);
									}
								});
							},
							{ threshold: 0.1, rootMargin: '0px 0px -40px 0px' },
						);
						revealObs.observe(host);
					} else {
						host.classList.add('revealed');
					}
				}

				const DEMO_RENDERERS = {
					'walking-avatar-inline': renderWalkingAvatarInline,
				};

				document.querySelectorAll('[data-feature-demo]').forEach((host) => {
					const type = host.dataset.featureDemo;
					const renderer = DEMO_RENDERERS[type];
					const feature = FEATURES.find((f) => f.demoType === type);
					if (renderer && feature) renderer(host, feature);
				});
			})();
		</script>
		<!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
	<script type="module" src="/i18n.js"></script>
</body>
</html>