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.

56.9 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 name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
		<title data-i18n="create.meta_title">Create · three.ws</title>
		<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" />
		<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" />
		<meta
			name="description"
			content="Start here: build an AI agent, make a 3D avatar, generate a 3D model, or launch a token world — one hub, four paths."
		 data-i18n-attr="content:create.meta_description"/>
		<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1" />

		<meta property="og:type" content="website" />
		<meta property="og:site_name" content="three.ws" />
		<meta property="og:url" content="https://three.ws/create" />
		<meta property="og:title" content="Create · three.ws"  data-i18n-attr="content:create.meta_og_title"/>
		<meta
			property="og:description"
			content="Start here: build an AI agent, make a 3D avatar, generate a 3D model, or launch a token world — one hub, four paths."
		 data-i18n-attr="content:create.meta_og_description"/>
		<meta property="og:image" content="https://three.ws/api/page-og?s=build&amp;t=Create&amp;d=The+front+door+for+everything+you+can+create+on+three.ws%3A+build+an+AI+agent%2C+make+a+3D+avatar+%28from+a+photo%2C+from+scratch%2C+from+a+text+prompt%2C+or+a+file%29&amp;p=%2Fcreate" />
		<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="Create · three.ws"  data-i18n-attr="content:create.meta_twitter_title"/>
		<meta
			name="twitter:description"
			content="Start here: build an AI agent, make a 3D avatar, generate a 3D model, or launch a token world — one hub, four paths."
		 data-i18n-attr="content:create.meta_twitter_description"/>
		<meta name="twitter:image" content="https://three.ws/api/page-og?s=build&amp;t=Create&amp;d=The+front+door+for+everything+you+can+create+on+three.ws%3A+build+an+AI+agent%2C+make+a+3D+avatar+%28from+a+photo%2C+from+scratch%2C+from+a+text+prompt%2C+or+a+file%29&amp;p=%2Fcreate" />

		<style>
			#page-loading,
			#save-loading {
				position: fixed;
				inset: 0;
				z-index: 9999;
				background: #000;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: center;
				gap: 20px;
			}
			#page-loading img,
			#save-loading img {
				width: 64px;
				height: 64px;
				animation: page-loading-pulse 1.6s ease-in-out infinite;
			}
			#page-loading .dots,
			#save-loading .dots {
				color: rgba(255, 255, 255, 0.6);
				font-size: 24px;
				letter-spacing: 4px;
				font-family: -apple-system, system-ui, sans-serif;
			}
			#save-loading .label {
				color: rgba(255, 255, 255, 0.82);
				font-size: 15px;
				font-weight: 500;
				letter-spacing: -0.005em;
				font-family: -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
				margin-top: 4px;
			}
			#save-loading .sublabel {
				color: rgba(255, 255, 255, 0.42);
				font-size: 12.5px;
				font-family: -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
				margin-top: -8px;
			}
			@keyframes page-loading-pulse {
				0%,
				100% {
					opacity: 0.55;
					transform: scale(1);
				}
				50% {
					opacity: 1;
					transform: scale(1.06);
				}
			}
			:root {
				color-scheme: dark;
				--accent: #ffffff;
				--accent-ink: #000000;
				--bg: #000000;
				--panel: var(--bg-0);
				--border: var(--stroke);
				--text: var(--ink);
				--muted: var(--ink-dim);
			}
			* {
				box-sizing: border-box;
			}
			html,
			body {
				margin: 0;
				padding: 0;
			}
			html {
				background: #050505;
			}
			body {
				font:
					15px/1.55 -apple-system,
					system-ui,
					'Segoe UI',
					Roboto,
					sans-serif;
				color: var(--text);
				background: var(--bg);
				min-height: 100vh;
				overflow-x: hidden;
			}
			body::before {
				content: '';
				position: fixed;
				inset: 0;
				z-index: -1;
				pointer-events: none;
				background:
					radial-gradient(
						800px 500px at 50% -100px,
						rgba(255, 255, 255, 0.03) 0,
						transparent 70%
					),
					#000000;
			}
			main.stage {
				max-width: 1100px;
				margin: 0 auto;
				padding: 56px 24px 80px;
			}

			/* ── Hero heading ─────────────────────────────────────────────────── */
			.create-hero {
				text-align: center;
				max-width: 640px;
				margin: 0 auto 36px;
			}
			.create-title {
				font-size: clamp(28px, 5vw, 40px);
				font-weight: 600;
				margin: 0 0 12px;
				letter-spacing: -0.025em;
				line-height: 1.08;
				background: linear-gradient(180deg, #ffffff 0%, #b8b8b8 100%);
				-webkit-background-clip: text;
				background-clip: text;
				-webkit-text-fill-color: transparent;
			}
			.create-sub {
				color: var(--muted);
				font-size: 15px;
				line-height: 1.55;
				margin: 0 0 18px;
			}
			.picker-reassure {
				display: flex;
				justify-content: center;
			}

			.create-layout {
				max-width: 880px;
				margin: 0 auto;
			}

			/* ── Intent hub (new front door — "what do you want to create?") ──── */
			.intent-hub {
				max-width: 960px;
				margin: 0 auto 48px;
			}
			.intent-grid {
				display: grid;
				grid-template-columns: repeat(4, 1fr);
				gap: 14px;
			}
			.intent-card {
				position: relative;
				display: flex;
				flex-direction: column;
				gap: 10px;
				padding: 20px 18px;
				border-radius: 16px;
				background: var(--panel);
				border: 1.5px solid var(--border);
				text-decoration: none;
				color: inherit;
				font: inherit;
				text-align: left;
				cursor: pointer;
				transition:
					border-color var(--duration-fast),
					transform var(--duration-fast),
					box-shadow var(--duration-fast);
			}
			.intent-card:hover {
				transform: translateY(-2px);
				border-color: rgba(255, 255, 255, 0.28);
				box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
			}
			.intent-card:focus-visible {
				outline: 2px solid var(--accent);
				outline-offset: 2px;
			}
			.intent-card.is-current {
				border-color: rgba(255, 255, 255, 0.3);
				background:
					radial-gradient(
						420px 200px at 20% -20%,
						rgba(255, 255, 255, 0.06) 0,
						transparent 70%
					),
					var(--panel);
			}
			.intent-card-icon {
				width: 36px;
				height: 36px;
				border-radius: 10px;
				background: rgba(255, 255, 255, 0.04);
				border: 1px solid var(--border);
				display: grid;
				place-items: center;
				color: #cfd2e0;
				transition:
					background var(--duration-fast),
					border-color var(--duration-fast);
			}
			.intent-card:hover .intent-card-icon {
				background: rgba(255, 255, 255, 0.08);
				border-color: rgba(255, 255, 255, 0.2);
			}
			.intent-card-icon svg {
				width: 18px;
				height: 18px;
			}
			.intent-card-title {
				font-size: 14.5px;
				font-weight: 600;
				letter-spacing: -0.01em;
				margin: 0;
			}
			.intent-card-sub {
				font-size: 12px;
				color: var(--muted);
				line-height: 1.5;
				margin: 0;
			}
			.intent-card-tag {
				position: absolute;
				top: 14px;
				right: 14px;
				font-size: 9.5px;
				font-weight: 600;
				letter-spacing: 0.05em;
				text-transform: uppercase;
				color: var(--muted);
				padding: 2px 7px;
				border-radius: 20px;
				background: rgba(255, 255, 255, 0.05);
				border: 1px solid var(--border);
			}
			.intent-hub-foot {
				margin: 14px 2px 0;
				font-size: 12px;
				color: var(--muted);
			}
			.intent-hub-foot a {
				color: var(--text);
				text-decoration: underline;
				text-underline-offset: 2px;
			}
			.intent-hub-foot a:hover {
				color: #fff;
			}
			@media (max-width: 760px) {
				.intent-grid {
					grid-template-columns: repeat(2, 1fr);
				}
			}
			@media (max-width: 420px) {
				.intent-grid {
					grid-template-columns: 1fr;
				}
			}

			/* ── "Your avatars" strip (returning users) ───────────────────────── */
			.your-avatars {
				margin: 0 0 28px;
				padding: 18px 20px;
				border: 1px solid var(--border);
				border-radius: 16px;
				background: rgba(255, 255, 255, 0.015);
				animation: ya-in 0.4s ease both;
			}
			@keyframes ya-in {
				from {
					opacity: 0;
					transform: translateY(6px);
				}
				to {
					opacity: 1;
					transform: translateY(0);
				}
			}
			.your-avatars-head {
				display: flex;
				align-items: baseline;
				justify-content: space-between;
				gap: 12px;
				margin-bottom: 14px;
			}
			.your-avatars-title {
				font-size: 13px;
				font-weight: 600;
				margin: 0;
				color: var(--text);
				letter-spacing: -0.01em;
			}
			.your-avatars-manage {
				font-size: 12px;
				color: var(--muted);
				text-decoration: none;
				transition: color var(--duration-fast);
				white-space: nowrap;
			}
			.your-avatars-manage:hover {
				color: var(--text);
			}
			.your-avatars-row {
				display: flex;
				gap: 12px;
				overflow-x: auto;
				padding-bottom: 4px;
				scrollbar-width: thin;
			}
			.ya-thumb {
				flex: 0 0 auto;
				width: 64px;
				cursor: pointer;
				border: 0;
				background: none;
				padding: 0;
				font: inherit;
				color: var(--muted);
				text-align: center;
				transition: color var(--duration-fast);
			}
			.ya-thumb-img {
				width: 64px;
				height: 64px;
				border-radius: 12px;
				border: 1px solid var(--border);
				background:
					radial-gradient(
						circle at 50% 30%,
						rgba(255, 255, 255, 0.05) 0,
						transparent 65%
					),
					rgba(255, 255, 255, 0.02);
				object-fit: cover;
				display: grid;
				place-items: center;
				overflow: hidden;
				transition:
					border-color var(--duration-fast),
					transform var(--duration-fast);
			}
			.ya-thumb-img svg {
				width: 26px;
				height: 26px;
				opacity: 0.5;
			}
			.ya-thumb-label {
				display: block;
				margin-top: 6px;
				font-size: 10.5px;
				white-space: nowrap;
				overflow: hidden;
				text-overflow: ellipsis;
			}
			.ya-thumb:hover {
				color: var(--text);
			}
			.ya-thumb:hover .ya-thumb-img,
			.ya-thumb:focus-visible .ya-thumb-img {
				border-color: rgba(255, 255, 255, 0.4);
				transform: translateY(-2px);
			}
			.ya-thumb:focus-visible {
				outline: none;
			}

			/* ── Cards (shared) ───────────────────────────────────────────────── */
			.create-card {
				position: relative;
				display: flex;
				flex-direction: column;
				padding: 22px;
				border-radius: 16px;
				background: var(--panel);
				border: 1.5px solid var(--border);
				cursor: pointer;
				text-align: left;
				color: inherit;
				font: inherit;
				transition:
					border-color var(--duration-fast),
					transform var(--duration-fast),
					box-shadow var(--duration-fast);
			}
			.create-card:focus-visible {
				outline: 2px solid var(--accent);
				outline-offset: 2px;
			}
			.create-card:hover {
				transform: translateY(-2px);
				border-color: rgba(255, 255, 255, 0.28);
				box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
			}
			.create-card[aria-disabled='true'] {
				cursor: not-allowed;
			}
			.create-card[aria-disabled='true']:hover {
				transform: none;
				border-color: var(--border);
				box-shadow: none;
			}

			/* ── Hero card (recommended) ──────────────────────────────────────── */
			.hero-card {
				margin: 0 0 20px;
				padding: 28px;
				border-color: rgba(255, 255, 255, 0.16);
				background:
					radial-gradient(
						520px 280px at 80% -40px,
						rgba(255, 255, 255, 0.05) 0,
						transparent 70%
					),
					var(--panel);
			}
			.hero-card:hover {
				border-color: rgba(255, 255, 255, 0.34);
			}
			.hero-card-body {
				display: grid;
				grid-template-columns: 1fr 280px;
				gap: 28px;
				align-items: center;
			}
			.hero-card-text {
				display: flex;
				flex-direction: column;
				align-items: flex-start;
			}
			.hero-card-preview {
				width: 100%;
				height: 240px;
				border-radius: 14px;
				border: 1px solid var(--border);
				background:
					radial-gradient(
						circle at 50% 30%,
						rgba(255, 255, 255, 0.05) 0,
						transparent 60%
					),
					rgba(255, 255, 255, 0.02);
				overflow: hidden;
			}
			.hero-card-preview model-viewer {
				width: 100%;
				height: 100%;
				--poster-color: transparent;
			}
			/* Before the element bundle upgrades the tag, model-viewer cannot paint
			   its own `poster`, so the card would open as an empty box. Paint the
			   same poster image as the element's background for exactly that
			   window: the card looks finished from first paint, and the rule stops
			   applying the moment the element is defined. */
			.hero-card-preview model-viewer:not(:defined) {
				display: block;
				background: center / contain no-repeat url('/avatars/default-poster.webp');
			}

			.recommended-badge {
				position: absolute;
				top: 16px;
				right: 16px;
				padding: 3px 9px;
				border-radius: 20px;
				background: rgba(255, 255, 255, 0.08);
				border: 1px solid rgba(255, 255, 255, 0.15);
				font-size: 10.5px;
				font-weight: 600;
				letter-spacing: 0.06em;
				color: var(--accent);
				text-transform: uppercase;
			}

			/* ── Secondary tiles ──────────────────────────────────────────────── */
			.secondary-grid {
				display: grid;
				grid-template-columns: repeat(2, 1fr);
				gap: 16px;
			}

			.card-subtitle code {
				font-size: 11.5px;
				/* No opacity dim: .75 over --muted measured 3.35:1 (AA needs 4.5:1). */
				background: rgba(255, 255, 255, 0.06);
				padding: 1px 5px;
				border-radius: 4px;
			}

			.card-icon {
				width: 40px;
				height: 40px;
				border-radius: 11px;
				background: rgba(255, 255, 255, 0.04);
				border: 1px solid var(--border);
				display: grid;
				place-items: center;
				flex: 0 0 auto;
				color: #cfd2e0;
				transition:
					background var(--duration-fast),
					border-color var(--duration-fast);
			}
			.create-card:hover .card-icon {
				background: rgba(255, 255, 255, 0.08);
				border-color: rgba(255, 255, 255, 0.2);
			}
			.card-icon svg {
				width: 20px;
				height: 20px;
			}
			.card-icon-row {
				display: flex;
				align-items: center;
				gap: 13px;
				margin-bottom: 14px;
			}
			.card-icon-row .card-title {
				margin: 0;
			}

			.card-title {
				font-size: 16px;
				font-weight: 600;
				margin: 0;
				letter-spacing: -0.01em;
				line-height: 1.25;
			}
			.hero-card .card-title {
				font-size: 22px;
			}
			.card-subtitle {
				font-size: 13px;
				color: var(--muted);
				margin: 0;
				line-height: 1.55;
				flex: 1;
			}
			.hero-card .card-subtitle {
				font-size: 14px;
				max-width: 42ch;
			}

			/* ── Meta chips ───────────────────────────────────────────────────── */
			.card-meta {
				display: flex;
				flex-wrap: wrap;
				gap: 6px;
				margin: 14px 0 0;
			}
			.chip {
				font-size: 10.5px;
				font-weight: 500;
				letter-spacing: 0.01em;
				padding: 3px 8px;
				border-radius: 6px;
				color: var(--muted);
				background: rgba(255, 255, 255, 0.04);
				border: 1px solid var(--border);
				white-space: nowrap;
			}
			.chip-ok {
				color: #9be8b8;
				border-color: rgba(120, 220, 160, 0.25);
				background: rgba(120, 220, 160, 0.07);
			}
			.chip-auth {
				color: #c9c4ff;
				border-color: rgba(160, 150, 255, 0.25);
				background: rgba(160, 150, 255, 0.07);
			}
			.chip-soon {
				color: #ffd9a8;
				border-color: rgba(255, 190, 110, 0.28);
				background: rgba(255, 190, 110, 0.08);
			}
			.chip-live-dot {
				display: inline-block;
				width: 5px;
				height: 5px;
				border-radius: 50%;
				margin-right: 5px;
				vertical-align: 1px;
				background: #58d68d;
				animation: chip-live-pulse 2.2s ease-in-out infinite;
			}
			@keyframes chip-live-pulse {
				0%, 100% { box-shadow: 0 0 0 0 rgba(88, 214, 141, 0.5); }
				50% { box-shadow: 0 0 0 3px rgba(88, 214, 141, 0); }
			}

			/* ── Featured live tile — the prompt → 3D path, iris-threaded ──────── */
			.tile--live {
				border-color: transparent;
				background:
					linear-gradient(var(--panel), var(--panel)) padding-box,
					linear-gradient(
							120deg,
							rgba(255, 180, 84, 0.45),
							rgba(255, 106, 213, 0.45) 38%,
							rgba(139, 92, 246, 0.45) 64%,
							rgba(79, 195, 255, 0.45)
						)
						border-box;
			}
			.tile--live:hover {
				border-color: transparent;
				background:
					linear-gradient(var(--panel), var(--panel)) padding-box,
					linear-gradient(120deg, #ffb454, #ff6ad5 38%, #8b5cf6 64%, #4fc3ff)
						border-box;
				box-shadow:
					0 14px 36px rgba(0, 0, 0, 0.45),
					0 0 24px rgba(139, 92, 246, 0.14);
			}
			.tile--live .card-icon {
				color: #d8b4fe;
			}
			.card-example {
				display: flex;
				align-items: baseline;
				gap: 7px;
				margin: 10px 0 0;
				min-height: 18px;
				font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;
				font-size: 11.5px;
				color: var(--muted);
				letter-spacing: 0.01em;
			}
			.card-example-mark {
				color: var(--accent-violet-strong);
			}
			.card-example-text {
				flex: 1;
				min-width: 0;
				white-space: nowrap;
				overflow: hidden;
				text-overflow: ellipsis;
			}
			.card-example-caret {
				width: 6px;
				height: 12px;
				flex: 0 0 auto;
				align-self: center;
				background: rgba(232, 232, 232, 0.65);
				animation: card-caret-blink 1.1s steps(1) infinite;
			}
			@keyframes card-caret-blink {
				50% { opacity: 0; }
			}
			@media (prefers-reduced-motion: reduce) {
				.card-example-caret,
				.chip-live-dot {
					animation: none;
				}
				.create-card,
				.create-card:hover {
					transform: none;
				}
			}

			/* ── CTAs ─────────────────────────────────────────────────────────── */
			.card-cta {
				display: inline-flex;
				align-items: center;
				gap: 6px;
				margin-top: 20px;
				padding: 10px 18px;
				border-radius: 10px;
				background: var(--accent);
				border: 1px solid transparent;
				color: var(--accent-ink);
				font: inherit;
				font-size: 13px;
				font-weight: 600;
				cursor: pointer;
				transition:
					transform var(--duration-fast),
					box-shadow var(--duration-fast),
					opacity var(--duration-fast);
				align-self: flex-start;
			}
			.hero-card:hover .card-cta {
				box-shadow: 0 8px 22px rgba(255, 255, 255, 0.14);
				transform: translateY(-1px);
			}
			.card-cta svg {
				transition: transform var(--duration-fast);
			}
			.create-card:hover .card-cta svg {
				transform: translateX(3px);
			}

			/* secondary tiles use a quieter ghost CTA */
			.card-cta--ghost {
				margin-top: 16px;
				background: rgba(255, 255, 255, 0.06);
				border-color: var(--border);
				color: var(--text);
				font-weight: 500;
			}
			.create-card:hover .card-cta--ghost {
				background: var(--accent);
				border-color: transparent;
				color: var(--accent-ink);
			}

			/* ── Footnote (model sources) ─────────────────────────────────────── */
			.create-footnote {
				margin: 24px auto 0;
				max-width: 880px;
				font-size: 12px;
				color: var(--muted);
				line-height: 1.6;
				text-align: center;
			}
			.create-footnote a {
				color: var(--text);
				text-decoration: underline;
				text-underline-offset: 2px;
			}
			.create-footnote a:hover {
				color: #fff;
			}

			/* ── Inline alert ─────────────────────────────────────────────────────
			   A toast disappears; a failure that leaves the visitor with nothing to
			   look at must not. Hard errors (a remix that could not be loaded) land
			   here instead: named, explained, and recoverable without a reload. */
			.create-alert {
				display: flex;
				flex-direction: column;
				gap: 8px;
				margin: 0 0 24px;
				padding: 16px 18px;
				border-radius: 14px;
				border: 1px solid rgba(255, 92, 92, 0.38);
				background: #140a0a;
				animation: ya-in 0.35s ease both;
			}
			.create-alert-title {
				display: flex;
				align-items: center;
				gap: 8px;
				font-size: 14px;
				font-weight: 600;
				line-height: 1.3;
				margin: 0;
				color: #ffb3b3;
			}
			.create-alert-title svg {
				width: 16px;
				height: 16px;
				flex: 0 0 auto;
			}
			.create-alert-body {
				margin: 0;
				font-size: 13px;
				line-height: 1.55;
				color: rgba(255, 214, 214, 0.8);
			}
			.create-alert-actions {
				display: flex;
				flex-wrap: wrap;
				gap: 8px;
				margin-top: 4px;
			}
			.create-alert-btn {
				display: inline-flex;
				align-items: center;
				min-height: 36px;
				padding: 8px 14px;
				border-radius: 9px;
				border: 1px solid rgba(255, 255, 255, 0.16);
				background: rgba(255, 255, 255, 0.06);
				color: var(--text);
				font: inherit;
				font-size: 12.5px;
				font-weight: 600;
				cursor: pointer;
				transition:
					background var(--duration-fast),
					border-color var(--duration-fast),
					transform var(--duration-fast);
			}
			.create-alert-btn:hover {
				background: rgba(255, 255, 255, 0.12);
				border-color: rgba(255, 255, 255, 0.3);
				transform: translateY(-1px);
			}
			.create-alert-btn:active {
				transform: none;
			}
			.create-alert-btn:focus-visible {
				outline: 2px solid var(--accent);
				outline-offset: 2px;
			}
			.create-alert-btn--primary {
				background: var(--accent);
				border-color: transparent;
				color: var(--accent-ink);
			}
			.create-alert-btn--primary:hover {
				background: #fff;
				border-color: transparent;
			}
			@media (prefers-reduced-motion: reduce) {
				.create-alert {
					animation: none;
				}
				.create-alert-btn:hover {
					transform: none;
				}
			}

			/* ── Status toast ─────────────────────────────────────────────────── */
			.status-toast {
				position: fixed;
				bottom: 32px;
				left: 50%;
				transform: translateX(-50%);
				max-width: min(calc(100vw - 32px), 420px);
				padding: 11px 20px;
				border-radius: 12px;
				font-size: 13px;
				font-weight: 500;
				border: 1px solid var(--border);
				background: var(--panel);
				white-space: nowrap;
				z-index: 50;
				display: flex;
				align-items: center;
				gap: 8px;
				box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
			}
			.status-toast.loading {
				color: var(--muted);
			}
			.status-toast.error {
				border-color: rgba(255, 92, 92, 0.4);
				color: #ffb3b3;
				background: #140a0a;
			}
			.status-toast.success {
				border-color: rgba(255, 255, 255, 0.2);
				color: var(--accent);
			}

			@media (max-width: 760px) {
				.hero-card-body {
					grid-template-columns: 1fr;
					gap: 20px;
				}
				.hero-card-text {
					order: 2;
				}
				.hero-card-preview {
					order: 1;
					height: 200px;
				}
				.hero-card .card-subtitle {
					max-width: none;
				}
			}
			@media (max-width: 700px) {
				main.stage {
					padding: 32px 16px 60px;
				}
				.secondary-grid {
					grid-template-columns: 1fr;
				}
				/* Card padding tuned down so content keeps room on phones */
				.hero-card {
					padding: 22px 18px;
				}
				.create-card {
					padding: 18px;
				}
				/* Keep the badge clear of the wrapping hero title */
				.recommended-badge {
					top: 14px;
					right: 14px;
				}
				.hero-card .card-icon-row {
					padding-right: 96px;
				}
				/* Larger, comfortable tap targets for the visible CTAs */
				.card-cta {
					padding: 12px 18px;
					min-height: 44px;
				}
				.your-avatars-manage {
					padding: 6px 0;
				}
				/* Toast wraps and respects the home-indicator safe area */
				.status-toast {
					bottom: calc(20px + env(safe-area-inset-bottom, 0px));
					white-space: normal;
					text-align: center;
				}
			}
			@media (max-width: 380px) {
				.create-title {
					font-size: 26px;
				}
				.hero-card .card-title {
					font-size: 20px;
				}
				/* Stack icon above title so neither collides with the badge */
				.hero-card .card-icon-row {
					flex-direction: column;
					align-items: flex-start;
					gap: 10px;
					padding-right: 0;
				}
				.recommended-badge {
					position: static;
					align-self: flex-start;
					margin-bottom: 12px;
				}
			}

			/* ── Avatar creator modal ─────────────────────────────────────────── */
			.avatar-creator-overlay {
				position: fixed;
				inset: 0;
				z-index: 100;
				display: flex;
				align-items: center;
				justify-content: center;
				background: rgba(0, 0, 0, 0.9);
				backdrop-filter: blur(24px);
				-webkit-backdrop-filter: blur(24px);
				animation: avatar-creator-fadein 0.25s ease;
			}
			@keyframes avatar-creator-fadein {
				from {
					opacity: 0;
				}
				to {
					opacity: 1;
				}
			}
			.avatar-creator-modal {
				width: 95vw;
				height: 90vh;
				max-width: 1200px;
				display: flex;
				flex-direction: column;
				background: rgba(10, 10, 10, 0.95);
				border: 1px solid rgba(255, 255, 255, 0.08);
				border-radius: 8px;
				overflow: hidden;
				box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6);
			}
			.avatar-creator-header {
				display: flex;
				align-items: center;
				justify-content: space-between;
				padding: 0.618rem 1.618rem;
				border-bottom: 1px solid rgba(255, 255, 255, 0.06);
				flex-shrink: 0;
			}
			.avatar-creator-title {
				font-size: 1.236rem;
				font-weight: 500;
				color: #fff;
				letter-spacing: 0.03em;
			}
			.avatar-creator-close {
				background: none;
				border: none;
				color: rgba(255, 255, 255, 0.4);
				font-size: 2.618rem;
				cursor: pointer;
				padding: 0;
				line-height: 1;
				transition: color var(--duration-base) var(--ease-standard);
			}
			.avatar-creator-close:hover {
				color: #fff;
			}
			.avatar-creator-body {
				flex: 1;
				position: relative;
				min-height: 0;
			}
			.avatar-creator-container {
				width: 100%;
				height: 100%;
				position: absolute;
				inset: 0;
			}
			.avatar-creator-iframe {
				width: 100%;
				height: 100%;
				border: none;
			}
			.avatar-creator-loading {
				position: absolute;
				inset: 0;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: center;
				gap: 1rem;
				color: rgba(255, 255, 255, 0.4);
				font-size: 0.764rem;
				pointer-events: none;
			}
			.spinner {
				width: 28px;
				height: 28px;
				border: 2.5px solid rgba(255, 255, 255, 0.12);
				border-top-color: rgba(255, 255, 255, 0.6);
				border-radius: 50%;
				animation: spin 0.75s linear infinite;
			}
			@keyframes spin {
				to {
					transform: rotate(360deg);
				}
			}
			@media screen and (max-width: 700px) {
				.avatar-creator-modal {
					width: 100vw;
					height: 100vh;
					max-width: none;
					border-radius: 0;
				}
				.avatar-creator-header {
					padding: 0.382rem 1rem;
				}
			}
		</style>
		<link rel="preload" href="/fonts/inter-latin.woff2" as="font" type="font/woff2" crossorigin />
		<link rel="preload" href="/fonts/space-grotesk-latin.woff2" as="font" type="font/woff2" crossorigin />
		<link rel="stylesheet" href="/fonts/fonts.css" />
		<link rel="stylesheet" href="/nav.css" />
		<link rel="stylesheet" href="/footer.css" />
		<link rel="stylesheet" href="/mobile.css" />
		<script defer src="/footer-newsletter.js"></script>
		<style>
			/* ── Site nav (shared with index.html) ── */
			:root {
				--space-xs: 0.382rem;
				--space-sm: 0.618rem;
				--space-md: 1rem;
				--space-lg: 1.618rem;
				--text-sm: 0.764rem;
				--text-lg: 1.236rem;
				--radius-md: 5px;
				--header-h: 3.5rem;
				--font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
			}
			.skip-link {
				position: absolute;
				left: -9999px;
				top: auto;
				width: 1px;
				height: 1px;
				overflow: hidden;
			}
			.skip-link:focus {
				left: 1rem;
				top: 1rem;
				width: auto;
				height: auto;
				padding: 0.5rem 1rem;
				background: var(--bg);
				border: 1px solid var(--border);
				border-radius: 6px;
				z-index: 9999;
			}
			header.site-header {
				display: flex;
				background: rgba(0, 0, 0, 0.8);
				backdrop-filter: blur(20px);
				-webkit-backdrop-filter: blur(20px);
				padding: 0 var(--space-lg);
				height: var(--header-h);
				align-items: center;
				overflow-x: auto;
				overflow-y: hidden;
				white-space: nowrap;
				border-bottom: 1px solid rgba(255, 255, 255, 0.06);
				z-index: 10;
			}
			header.site-header h1 {
				color: #fff;
				font-family: var(--font-display);
				font-size: var(--text-lg);
				font-weight: 600;
				margin: 0;
				letter-spacing: -0.01em;
				display: flex;
				align-items: center;
				gap: var(--space-xs);
				line-height: var(--header-h);
			}
			header.site-header h1 > a {
				color: inherit;
				font-size: inherit;
				text-decoration: none;
				display: flex;
				align-items: center;
				gap: 0.5rem;
			}
			.wordmark-dot {
				width: 8px;
				height: 8px;
				border-radius: 50%;
				background: #ffffff;
				box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
				display: inline-block;
			}
			.nav-logo-img {
				width: 28px;
				height: 28px;
				object-fit: contain;
				border-radius: 6px;
			}
			.features-nav {
				margin-left: auto;
				display: flex;
				gap: var(--space-md);
				align-items: center;
			}
			.features-nav a {
				color: rgba(255, 255, 255, 0.5);
				text-decoration: none;
				font-size: var(--text-sm);
				font-weight: 500;
				letter-spacing: -0.005em;
				padding: 0.35rem 0.7rem;
				border-radius: var(--radius-md);
				transition:
					color var(--duration-fast) var(--ease-standard),
					background var(--duration-fast) var(--ease-standard);
				position: relative;
			}
			.features-nav a:hover {
				color: #fff;
				background: rgba(255, 255, 255, 0.04);
			}
			.features-nav a.active {
				color: #fff;
				background: rgba(255, 255, 255, 0.06);
			}
			.nav-sign-in {
				border: 1px solid rgba(255, 255, 255, 0.12);
				border-radius: var(--radius-md);
			}
			.nav-user {
				display: inline-flex;
				align-items: center;
				gap: 6px;
				padding: 4px 10px;
				border-radius: 20px;
				border: 1px solid rgba(255, 255, 255, 0.1);
				background: rgba(255, 255, 255, 0.04);
				font-size: var(--text-sm);
				color: rgba(255, 255, 255, 0.55);
				max-width: 140px;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
			}
			.nav-user::before {
				content: '';
				width: 6px;
				height: 6px;
				border-radius: 50%;
				background: var(--success);
				flex-shrink: 0;
			}
			.nav-user:hover {
				color: rgba(255, 255, 255, 0.85) !important;
				border-color: rgba(255, 255, 255, 0.2);
				background: rgba(255, 255, 255, 0.07);
			}
			#btn-wallet-signin {
				background: none;
				border: 1px solid rgba(255, 255, 255, 0.12);
				color: rgba(255, 255, 255, 0.5);
				font-size: var(--text-sm);
				font-weight: 500;
				padding: 0.35rem 0.7rem;
				border-radius: var(--radius-md);
				cursor: pointer;
				transition:
					color var(--duration-fast) var(--ease-standard),
					background var(--duration-fast) var(--ease-standard),
					border-color var(--duration-fast) var(--ease-standard);
				font-family: inherit;
			}
			#btn-wallet-signin:hover {
				color: #fff;
				background: rgba(255, 255, 255, 0.04);
				border-color: rgba(255, 255, 255, 0.2);
			}
			@media (max-width: 700px) {
				.features-nav a:not(.nav-sign-in):not(.nav-user):not(#nav-sign-in) {
					display: none;
				}
				#btn-wallet-signin {
					display: none;
				}
			}
		</style>
		<!-- The meshopt decoder shim stays eager: it is a 2 KB classic script that
		     intercepts customElements.define(), so it registers its decoder
		     whenever the element bundle turns up. -->
		<script src="/model-viewer-meshopt.js" defer></script>
		<!-- The <model-viewer> element bundle is NOT loaded here. This page has one
		     viewer, in the hero card, and that viewer already defers its model with
		     `data-src` until someone hovers, focuses or taps the card. The 253 KB
		     bundle was still fetched and evaluated on every visit to build a WebGL
		     renderer for it: 8.2 s of main-thread time in a Lighthouse desktop
		     trace, spent on a card most visitors never touch. It now loads on the
		     same first attention that promotes `data-src`, through
		     src/shared/attended-rotation.js, and the poster below holds the card's
		     appearance until then. -->
		<script>
			(function () {
				var cleared = false;
				function clearBootOverlay() {
					if (cleared) return;
					cleared = true;
					var el = document.getElementById('page-loading');
					if (el) el.remove();
				}
				// #page-loading is a full-screen blackout. A rejected fetch clears it,
				// but a request that simply never answers (stalled edge, captive
				// portal, hung upstream) would leave it up forever and the whole page
				// would read as broken. Bound the wait: an unanswered probe means
				// "treat as signed out" and hand the page back. The auth-gated cards
				// re-check at /login, so a wrong guess here costs one redirect.
				var timer = setTimeout(function () {
					if (window.__authed === undefined) window.__authed = false;
					clearBootOverlay();
				}, 6000);
				function settle(authed) {
					window.__authed = authed;
					clearTimeout(timer);
					clearBootOverlay();
				}
				fetch('/api/auth/me', { credentials: 'include' })
					.then(function (r) {
						return r.ok ? r.json() : null;
					})
					.then(function (data) {
						settle(!!(data && data.user));
					})
					.catch(function () {
						settle(false);
					});
			})();
		</script>

		<link rel="canonical" href="https://three.ws/create" />
		<script type="application/ld+json">
			{
				"@context": "https://schema.org",
				"@type": "WebPage",
				"name": "Create",
				"description": "Intent hub for everything you can create on three.ws: an AI agent, a 3D avatar, a 3D model, or a token world.",
				"url": "https://three.ws/create",
				"isPartOf": { "@type": "WebSite", "name": "three.ws", "url": "https://three.ws" }
			}
		</script>

	<meta property="og:locale" content="en_US">
	<meta property="og:image:alt" content="Create — three.ws">
	<meta name="twitter:site" content="@trythreews">
</head>
	<body>
		<div id="page-loading" aria-hidden="true">
			<img src="/three.svg" alt="" width="64" height="64" />
			<div class="dots">...</div>
		</div>
		<a href="#main-content" class="skip-link" data-i18n="create.skip_to_main_content">Skip to main content</a>
		<header>
			<div id="nav-container"></div>
		</header>
		<script src="/nav.js" defer></script>
		<!-- Bundled source module (src/shared/crypto-optional.js); self-mounts on
		     the [data-crypto-optional] element below. -->
		<script type="module" src="/src/shared/crypto-optional.js"></script>

		<main class="stage" id="main-content">
			<section class="intent-hub" aria-labelledby="intent-hub-title">
				<div class="create-hero">
					<h1 id="intent-hub-title" class="create-title" data-i18n="create.what_do_you_want_to_create">What do you want to create?</h1>
					<p class="create-sub" data-i18n="create.pick_where_you_re_headed_each_path">
						Pick where you're headed. Each path is one question deep and takes about a
						minute to get moving.
					</p>
					<div class="picker-reassure" data-crypto-optional="compact"></div>
				</div>
				<div class="intent-grid" role="group" aria-label="Choose what to create">
					<a class="intent-card" href="/create-agent">
						<span class="intent-card-icon" aria-hidden="true">
							<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
								<rect x="4" y="8" width="16" height="12" rx="3" />
								<path d="M12 8V4" />
								<circle cx="12" cy="3" r="1.1" fill="currentColor" stroke="none" />
								<circle cx="9" cy="14" r="1.3" fill="currentColor" stroke="none" />
								<circle cx="15" cy="14" r="1.3" fill="currentColor" stroke="none" />
								<path d="M9 18h6" />
							</svg>
						</span>
						<h2 class="intent-card-title">Build an AI agent</h2>
						<p class="intent-card-sub">Avatar, brain, skills, voice, and an on-chain identity — the full wizard.</p>
					</a>
					<a class="intent-card is-current" href="#avatar-options" aria-current="location">
						<span class="intent-card-tag">You're here</span>
						<span class="intent-card-icon" aria-hidden="true">
							<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
								<circle cx="12" cy="8" r="3.5" />
								<path d="M5 20c0-3.87 3.13-7 7-7s7 3.13 7 7" />
							</svg>
						</span>
						<h2 class="intent-card-title">Make a 3D avatar</h2>
						<p class="intent-card-sub">From a photo, from scratch, from a text prompt (typed or spoken), or upload a file.</p>
					</a>
					<a class="intent-card" href="/forge">
						<span class="intent-card-icon" aria-hidden="true">
							<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
								<path d="M12 3l8 4.5v9L12 21l-8-4.5v-9z" />
								<path d="M12 3v9m0 9v-9m8-4.5L12 12 4 7.5" />
							</svg>
						</span>
						<h2 class="intent-card-title">Generate a 3D model</h2>
						<p class="intent-card-sub">Any object or prop — not just avatars. Type it, speak it, upload up to 4 photos for a sharper mesh, or draw it right in the browser.</p>
					</a>
					<a class="intent-card" href="/launchpad">
						<span class="intent-card-icon" aria-hidden="true">
							<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
								<circle cx="12" cy="12" r="9" />
								<path d="M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18M3.3 9h17.4M3.3 15h17.4" />
							</svg>
						</span>
						<h2 class="intent-card-title">Launch a token world</h2>
						<p class="intent-card-sub">Hosted launchpad and a 3D multiplayer world for your token.</p>
					</a>
				</div>
				<p class="intent-hub-foot" data-i18n-html="create.already_have_an_agent_explore_live_token">
					Already made something? It is all under <a href="/mine">My creations</a>.
					Or explore live token worlds at <a href="/play">/play</a>.
				</p>
			</section>

			<div class="create-layout" id="avatar-options">
				<div class="create-hero" style="margin-bottom: 24px">
					<p class="create-sub" style="margin: 0; font-size: 13px" data-i18n-html="create.all_creation_options_make_a_3d_avatar">
						<a href="#intent-hub-title" style="color: inherit; text-decoration: underline; text-underline-offset: 2px">← All creation options</a>
						&nbsp;·&nbsp; Make a 3D avatar
					</p>
				</div>
				<!-- Hard-failure surface (see .create-alert): filled by src/create.js -->
				<div id="create-alert-slot" role="alert" aria-live="assertive"></div>

				<!-- Returning users: remix one you already made -->
				<section class="your-avatars" id="your-avatars" hidden aria-label="Your avatars">
					<div class="your-avatars-head">
						<h2 class="your-avatars-title" data-i18n="create.start_from_one_of_yours">Start from one of yours</h2>
						<a class="your-avatars-manage" href="/dashboard" data-i18n="create.manage_all">Manage all →</a>
					</div>
					<div class="your-avatars-row" id="your-avatars-row"></div>
				</section>

				<!-- Recommended: customize a base avatar (hero) -->
				<div
					class="create-card hero-card is-recommended"
					id="card-default-editor"
					role="button"
					tabindex="0"
				>
					<span class="recommended-badge" aria-hidden="true" data-i18n="create.recommended">Recommended</span>
					<div class="hero-card-body">
						<div class="hero-card-text">
							<div class="card-icon-row">
								<div class="card-icon" aria-hidden="true">
									<svg
										viewBox="0 0 24 24"
										fill="none"
										stroke="currentColor"
										stroke-width="1.7"
										stroke-linecap="round"
										stroke-linejoin="round"
									>
										<circle cx="12" cy="8" r="3.5" />
										<path d="M5 20c0-3.87 3.13-7 7-7s7 3.13 7 7" />
										<path d="M18 3l3 3-9 9-4 1 1-4 9-9z" />
									</svg>
								</div>
								<h2 class="card-title" data-i18n="create.customize_a_base_avatar">Customize a base avatar</h2>
							</div>
							<p class="card-subtitle" data-i18n="create.sculpt_the_face_pick_outfits_and_colors">
								Sculpt the face, pick outfits and colors in our in-browser editor.
								Start from a base and make it unmistakably yours.
							</p>
							<div class="card-meta" aria-hidden="true">
								<span class="chip" data-i18n="create.faces_outfits">Faces &amp; outfits</span>
								<span class="chip" data-i18n="create.1_min">~1 min</span>
								<span class="chip chip-ok" data-i18n="create.no_sign_in">No sign-in</span>
							</div>
							<span class="card-cta">
								Open editor
								<svg
									width="13"
									height="13"
									viewBox="0 0 24 24"
									fill="none"
									stroke="currentColor"
									stroke-width="2.2"
									stroke-linecap="round"
									stroke-linejoin="round"
									aria-hidden="true"
								>
									<line x1="5" y1="12" x2="19" y2="12" />
									<polyline points="12 5 19 12 12 19" />
								</svg>
							</span>
						</div>
						<div class="hero-card-preview">
							<!-- data-src, not src: decoding this 748 KB avatar is one
							     unbreakable 852 ms main-thread task, and it used to run while
							     the page was still trying to become usable. The poster is a
							     render of the same model at the same camera, so the card
							     looks finished from the first frame; the live, rotatable
							     model loads the moment the visitor hovers, focuses or taps
							     the card (src/shared/attended-rotation.js). -->
							<model-viewer
								data-src="/avatars/default.glb"
								poster="/avatars/default-poster.webp"
								alt="Customizable 3D base avatar"
								inert
								auto-rotate
								auto-rotate-delay="0"
								rotation-per-second="18deg"
								interaction-prompt="none"
								disable-zoom
								disable-pan
								disable-tap
								shadow-intensity="0.4"
								shadow-softness="0.8"
								exposure="0.95"
								environment-image="neutral"
								camera-orbit="15deg 80deg auto"
								loading="eager"
								data-attended-rotate=".hero-card"
							></model-viewer>
						</div>
					</div>
				</div>

				<div class="secondary-grid" role="group" aria-label="More ways to create">
					<div
						class="create-card tile tile--live"
						id="card-prompt"
						role="button"
						tabindex="0"
					>
						<div class="card-icon-row">
							<div class="card-icon" aria-hidden="true">
								<svg
									viewBox="0 0 24 24"
									fill="none"
									stroke="currentColor"
									stroke-width="1.7"
									stroke-linecap="round"
									stroke-linejoin="round"
								>
									<path
										d="M12 3l1.9 5.3L19 10l-5.1 1.7L12 17l-1.9-5.3L5 10l5.1-1.7z"
									/>
									<circle cx="18.5" cy="5.5" r="1.4" />
								</svg>
							</div>
							<h2 class="card-title" data-i18n="create.describe_it_to_3d">Describe it to 3D</h2>
						</div>
						<p class="card-subtitle" data-i18n="create.type_or_speak_what_you_want_a">
							Type or speak what you want — a character, creature, or style. We render
							it, reconstruct it in 3D, and rig it so it can move.
						</p>
						<p class="card-example" aria-hidden="true" data-i18n-html="create.a_samurai_in_neon_armor">
							<span class="card-example-mark">›</span>
							<span class="card-example-text" id="card-prompt-example">a samurai in neon armor</span>
							<span class="card-example-caret"></span>
						</p>
						<div class="card-meta" aria-hidden="true">
							<span class="chip chip-ok" data-i18n-html="create.now_live"><span class="chip-live-dot" aria-hidden="true"></span>Now live</span>
							<span class="chip" data-i18n="create.1_min_2">~1 min</span>
							<span class="chip chip-auth" data-i18n="create.sign_in">Sign-in</span>
							<span class="chip" data-i18n="create.rigged_glb">Rigged GLB</span>
						</div>
						<span class="card-cta card-cta--ghost">
							Start from a prompt
							<svg
								width="13"
								height="13"
								viewBox="0 0 24 24"
								fill="none"
								stroke="currentColor"
								stroke-width="2.2"
								stroke-linecap="round"
								stroke-linejoin="round"
								aria-hidden="true"
							>
								<line x1="5" y1="12" x2="19" y2="12" />
								<polyline points="12 5 19 12 12 19" />
							</svg>
						</span>
					</div>
					<div
						class="create-card tile"
						id="card-customize"
						role="button"
						tabindex="0"
					>
						<div class="card-icon-row">
							<div class="card-icon" aria-hidden="true">
								<svg
									viewBox="0 0 24 24"
									fill="none"
									stroke="currentColor"
									stroke-width="1.7"
									stroke-linecap="round"
									stroke-linejoin="round"
								>
									<rect x="3" y="3" width="7" height="7" rx="1.5" />
									<rect x="14" y="3" width="7" height="7" rx="1.5" />
									<rect x="3" y="14" width="7" height="7" rx="1.5" />
									<rect x="14" y="14" width="7" height="7" rx="1.5" />
								</svg>
							</div>
							<h2 class="card-title" data-i18n="create.start_with_a_template">Start with a template</h2>
						</div>
						<p class="card-subtitle" data-i18n="create.pick_a_ready_made_avatar_and_make">
							Pick a ready-made avatar and make it yours. The fastest way to start —
							preview, save, then customize.
						</p>
						<div class="card-meta" aria-hidden="true">
							<span class="chip chip-ok" data-i18n="create.free">Free</span>
							<span class="chip" data-i18n="create.15_sec">~15 sec</span>
							<span class="chip chip-ok" data-i18n="create.no_sign_in_2">No sign-in</span>
						</div>
						<span class="card-cta card-cta--ghost">
							Browse templates
							<svg
								width="13"
								height="13"
								viewBox="0 0 24 24"
								fill="none"
								stroke="currentColor"
								stroke-width="2.2"
								stroke-linecap="round"
								stroke-linejoin="round"
								aria-hidden="true"
							>
								<line x1="5" y1="12" x2="19" y2="12" />
								<polyline points="12 5 19 12 12 19" />
							</svg>
						</span>
					</div>
					<div
						class="create-card tile"
						id="card-selfie"
						role="button"
						tabindex="0"
					>
						<div class="card-icon-row">
							<div class="card-icon" aria-hidden="true">
								<svg
									viewBox="0 0 24 24"
									fill="none"
									stroke="currentColor"
									stroke-width="1.7"
									stroke-linecap="round"
									stroke-linejoin="round"
								>
									<rect x="3" y="5" width="18" height="14" rx="2" />
									<circle cx="12" cy="11" r="3" />
									<path d="M7 19c0-2 2.5-3 5-3s5 1 5 3" />
								</svg>
							</div>
							<h2 class="card-title" data-i18n="create.scan_yourself_to_3d">Scan yourself to 3D</h2>
						</div>
						<p class="card-subtitle" data-i18n="create.point_your_camera_and_hold_still_about">
							Point your camera and hold still. About a minute later: a rigged model
							you can download and use anywhere.
						</p>
						<div class="card-meta" aria-hidden="true">
							<span class="chip" data-i18n="create.1_min_3">~1 min</span>
							<span class="chip chip-auth" data-i18n="create.sign_in_2">Sign-in</span>
							<span class="chip" data-i18n="create.rigged_glb_2">Rigged GLB</span>
						</div>
						<span class="card-cta card-cta--ghost">
							Open the scanner
							<svg
								width="13"
								height="13"
								viewBox="0 0 24 24"
								fill="none"
								stroke="currentColor"
								stroke-width="2.2"
								stroke-linecap="round"
								stroke-linejoin="round"
								aria-hidden="true"
							>
								<line x1="5" y1="12" x2="19" y2="12" />
								<polyline points="12 5 19 12 12 19" />
							</svg>
						</span>
					</div>
					<div
						class="create-card tile"
						id="card-video-avatar"
						role="button"
						tabindex="0"
					>
						<div class="card-icon-row">
							<div class="card-icon" aria-hidden="true">
								<svg
									viewBox="0 0 24 24"
									fill="none"
									stroke="currentColor"
									stroke-width="1.7"
									stroke-linecap="round"
									stroke-linejoin="round"
								>
									<path
										d="M15 10l4.553-2.277A1 1 0 0 1 21 8.626v6.748a1 1 0 0 1-1.447.894L15 14"
									/>
									<rect x="3" y="7" width="12" height="10" rx="2" />
								</svg>
							</div>
							<h2 class="card-title" data-i18n="create.talking_avatar_video">Talking avatar video</h2>
						</div>
						<p class="card-subtitle" data-i18n="create.upload_audio_and_your_avatar_lip_syncs">
							Upload audio and your avatar lip-syncs to it. Generates a video you can
							share anywhere.
						</p>
						<div class="card-meta" id="card-video-avatar-meta" aria-hidden="true">
							<span class="chip chip-auth" data-i18n="create.sign_in_3">Sign-in</span>
							<span class="chip" data-i18n="create.lip_sync">Lip-sync</span>
						</div>
						<span class="card-cta card-cta--ghost">
							<span id="card-video-avatar-cta">Generate video</span>
							<svg
								width="13"
								height="13"
								viewBox="0 0 24 24"
								fill="none"
								stroke="currentColor"
								stroke-width="2.2"
								stroke-linecap="round"
								stroke-linejoin="round"
								aria-hidden="true"
							>
								<line x1="5" y1="12" x2="19" y2="12" />
								<polyline points="12 5 19 12 12 19" />
							</svg>
						</span>
					</div>
					<div
						class="create-card tile"
						id="card-cosmos"
						role="button"
						tabindex="0"
					>
						<div class="card-icon-row">
							<div class="card-icon" aria-hidden="true">
								<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
									<circle cx="12" cy="12" r="3.2" />
									<path d="M12 2.5c3 3.4 3 13.6 0 19M12 2.5c-3 3.4-3 13.6 0 19" />
									<path d="M2.5 12c3.4-3 13.6-3 19 0M2.5 12c3.4 3 13.6 3 19 0" />
								</svg>
							</div>
							<h2 class="card-title" data-i18n="create.living_world_cosmos">Living world (Cosmos)</h2>
						</div>
						<p class="card-subtitle" data-i18n="create.type_a_world_and_nvidia_cosmos_renders">
							Type a world and NVIDIA Cosmos renders a living, photoreal scene behind your avatar — a cinematic clip you can download.
						</p>
						<div class="card-meta" aria-hidden="true">
							<span class="chip" data-i18n="create.nvidia_cosmos">NVIDIA Cosmos</span>
							<span class="chip" data-i18n="create.free_2">Free</span>
						</div>
						<span class="card-cta card-cta--ghost">
							Open Cosmos
							<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
								<line x1="5" y1="12" x2="19" y2="12" />
								<polyline points="12 5 19 12 12 19" />
							</svg>
						</span>
					</div>
					<div
						class="create-card tile"
						id="card-upload-glb"
						role="button"
						tabindex="0"
					>
						<div class="card-icon-row">
							<div class="card-icon" aria-hidden="true">
								<svg
									viewBox="0 0 24 24"
									fill="none"
									stroke="currentColor"
									stroke-width="1.7"
									stroke-linecap="round"
									stroke-linejoin="round"
								>
									<polyline points="16 16 12 12 8 16" />
									<line x1="12" y1="12" x2="12" y2="21" />
									<path d="M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3" />
								</svg>
							</div>
							<h2 class="card-title" data-i18n="create.upload_your_own_glb">Upload your own GLB</h2>
						</div>
						<p class="card-subtitle" data-i18n-html="create.already_have_a_model_drop_a_file">
							Already have a model? Drop a <code>.glb</code> file. Works with any glTF
							2.0 avatar.
						</p>
						<div class="card-meta" aria-hidden="true">
							<span class="chip" data-i18n="create.gltf_2_0">glTF 2.0</span>
							<span class="chip chip-ok" data-i18n="create.no_sign_in_3">No sign-in</span>
						</div>
						<span class="card-cta card-cta--ghost">
							Choose file
							<svg
								width="13"
								height="13"
								viewBox="0 0 24 24"
								fill="none"
								stroke="currentColor"
								stroke-width="2.2"
								stroke-linecap="round"
								stroke-linejoin="round"
								aria-hidden="true"
							>
								<line x1="5" y1="12" x2="19" y2="12" />
								<polyline points="12 5 19 12 12 19" />
							</svg>
						</span>
					</div>
					<div
						class="create-card tile"
						id="card-agent-studio"
						role="button"
						tabindex="0"
					>
						<div class="card-icon-row">
							<div class="card-icon" aria-hidden="true">
								<svg
									viewBox="0 0 24 24"
									fill="none"
									stroke="currentColor"
									stroke-width="1.7"
									stroke-linecap="round"
									stroke-linejoin="round"
								>
									<circle cx="12" cy="8" r="3.5" />
									<path d="M5 20c0-3.87 3.13-7 7-7s7 3.13 7 7" />
									<path d="M17 3l2 2-2 2" />
									<path d="M21 5h-4" />
								</svg>
							</div>
							<h2 class="card-title" data-i18n-html="create.avatar_studio_beta">
								Avatar Studio
								<span style="font-size: 0.7em; opacity: 0.5; font-weight: 400"
									>beta</span
								>
							</h2>
						</div>
						<p class="card-subtitle" data-i18n="create.build_from_scratch_sculpt_face_and_body">
							Build from scratch. Sculpt face and body, pick outfits, add accessories
							— all in your browser.
						</p>
						<div class="card-meta" aria-hidden="true">
							<span class="chip" data-i18n="create.sculpt_dress">Sculpt & dress</span>
							<span class="chip chip-ok" data-i18n="create.no_sign_in_4">No sign-in</span>
						</div>
						<span class="card-cta card-cta--ghost">
							Try studio
							<svg
								width="13"
								height="13"
								viewBox="0 0 24 24"
								fill="none"
								stroke="currentColor"
								stroke-width="2.2"
								stroke-linecap="round"
								stroke-linejoin="round"
								aria-hidden="true"
							>
								<line x1="5" y1="12" x2="19" y2="12" />
								<polyline points="12 5 19 12 12 19" />
							</svg>
						</span>
					</div>
				</div>

				<p class="create-footnote" data-i18n-html="create.need_a_model_to_upload_build_one_v2">
					Need a model to upload? Build one in <a href="/avatar-studio">Avatar Studio</a>
					or generate one in <a href="/forge">Forge</a>.
					Bringing an avatar from another platform?
					<a href="/import/rpm">import it here</a>.
				</p>
			</div>
		</main>
		<label
			for="glb-input"
			class="visually-hidden"
			style="
				position: absolute;
				width: 1px;
				height: 1px;
				padding: 0;
				margin: -1px;
				overflow: hidden;
				clip: rect(0, 0, 0, 0);
				white-space: nowrap;
				border: 0;
			"
			 data-i18n="create.upload_glb_file">Upload GLB file</label
		>
		<input
			type="file"
			id="glb-input"
			accept=".glb,model/gltf-binary"
			style="display: none"
			aria-describedby="glb-input-desc"
		/>
		<span id="glb-input-desc" hidden data-i18n="create.select_a_glb_or_gltf_2_0">Select a .glb or glTF 2.0 binary model file</span>
		<div
			class="status-toast"
			id="status-toast"
			role="status"
			aria-live="polite"
			aria-atomic="true"
			hidden
		></div>

		<script type="module" src="/src/create.js"></script>
		<script>
			(function () {
				try {
					const raw = localStorage.getItem('3dagent:auth-hint');
					if (raw) {
						const { authed, name } = JSON.parse(raw);
						if (authed) {
							const el = document.getElementById('nav-sign-in');
							if (el) {
								el.textContent = 'Dashboard';
								el.href = '/dashboard';
							}
							const myAgents = document.getElementById('nav-my-agents');
							if (myAgents) myAgents.hidden = false;
							const userEl = document.getElementById('nav-user');
							if (userEl && name) {
								userEl.textContent = name;
								userEl.hidden = false;
							}
						}
					}
				} catch (_) {}
			})();
		</script>
		<script type="module">
			import { wireSigninButton } from '/src/wallet-auth.js';
			const btn = document.getElementById('btn-wallet-signin');
			if (btn) wireSigninButton(btn);
		</script>
		<script src="/brand.js" defer></script>
		<div id="footer-container"></div>
		<script src="/footer.js" defer></script>
		<!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
	<script type="module" src="/i18n.js"></script>
</body>
</html>