Skip to content

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

feat(multiplayer): add join and ready buttons, enhance lobby UI

nirholas9d3c6ac140d3
diff --git a/home.html b/home.html
index 9b7e17d4e..0e0a7a027 100644
--- a/home.html
+++ b/home.html
@@ -158,6 +158,18 @@
><span class="nav-mi-sub">DCA + subscriptions</span></a
>
</li>
+ <li role="none">
+ <a href="/pump-live.html" role="menuitem"
+ ><span class="nav-mi-title">Live launches</span
+ ><span class="nav-mi-sub">Real-time mint feed</span></a
+ >
+ </li>
+ <li role="none">
+ <a href="/pump-dashboard.html" role="menuitem"
+ ><span class="nav-mi-title">Pump Dashboard</span
+ ><span class="nav-mi-sub">Watches · scanner · quotes</span></a
+ >
+ </li>
<li role="none">
<a href="/docs#solana" role="menuitem"
><span class="nav-mi-title">Solana SDK</span
diff --git a/public/home.css b/public/home.css
new file mode 100644
index 000000000..e452bf0e0
--- /dev/null
+++ b/public/home.css
@@ -0,0 +1,2844 @@
+/* ── Home page marketing styles ── */
+
+/* ── Custom cursor ───────────────────────────────────────────────────────── */
+
+@media (hover: hover) {
+ body {
+ cursor: none;
+ }
+
+ .cursor {
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 10px;
+ height: 10px;
+ border-radius: 50%;
+ background: rgba(255, 215, 106, 0.9);
+ box-shadow:
+ 0 0 16px rgba(255, 215, 106, 0.7),
+ 0 0 36px rgba(255, 215, 106, 0.3);
+ pointer-events: none;
+ z-index: 99999;
+ will-change: transform;
+ mix-blend-mode: screen;
+ transition:
+ width 0.2s ease,
+ height 0.2s ease,
+ background 0.2s ease,
+ box-shadow 0.2s ease;
+ }
+
+ .cursor--hover {
+ width: 36px;
+ height: 36px;
+ background: rgba(255, 215, 106, 0.12);
+ border: 1px solid rgba(255, 215, 106, 0.55);
+ box-shadow: none;
+ }
+}
+
+/* ── Three.js canvas viewers (hero + Act 2) ─────────────────────────────── */
+
+#hero-avatar.h-avatar-viewer,
+#home-act2-canvas.h-avatar-viewer {
+ display: block;
+ width: 100%;
+ height: 100%;
+ background: transparent;
+ cursor: pointer;
+}
+
+/* ── Fluid canvas ────────────────────────────────────────────────────────── */
+
+.h-fluid-canvas {
+ position: absolute;
+ inset: 0;
+ width: 100%;
+ height: 100%;
+ pointer-events: none;
+}
+
+/* ── Premium sticky header (warm, blurred) ───────────────────────────────── */
+
+.home-page header {
+ position: fixed !important;
+ top: 0;
+ left: 0;
+ right: 0;
+ z-index: 200 !important;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 0.9rem clamp(1rem, 4vw, 2rem);
+ height: auto;
+ line-height: normal;
+ overflow: visible;
+ white-space: normal;
+ background: linear-gradient(
+ to bottom,
+ rgba(10, 8, 6, 0.78) 0%,
+ rgba(10, 8, 6, 0.3) 75%,
+ transparent 100%
+ );
+ backdrop-filter: blur(14px) saturate(140%);
+ -webkit-backdrop-filter: blur(14px) saturate(140%);
+ border-bottom: 1px solid rgba(255, 215, 106, 0.06);
+ transition:
+ background 0.3s ease,
+ border-color 0.3s ease;
+}
+
+.home-page header h1 {
+ margin: 0;
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+ font-size: 1.12rem;
+ font-weight: 700;
+ letter-spacing: -0.01em;
+}
+
+.home-page header h1 a {
+ color: #fff;
+ text-decoration: none;
+ display: inline-flex;
+ align-items: center;
+ gap: 0.45rem;
+}
+
+.home-page header h1 a .wordmark-dot {
+ width: 8px;
+ height: 8px;
+ border-radius: 50%;
+ background: linear-gradient(135deg, #ffd76a, #ff8f4d);
+ box-shadow: 0 0 12px rgba(255, 143, 77, 0.6);
+}
+
+.home-page header h1 a .wordmark-logo {
+ width: 28px;
+ height: 28px;
+ display: inline-block;
+}
+
+/* ── Loading flash on page reveal ────────────────────────────────────────── */
+
+@keyframes h-page-in {
+ from {
+ opacity: 0;
+ }
+ to {
+ opacity: 1;
+ }
+}
+
+.home-page main {
+ animation: h-page-in 0.6s ease both;
+}
+
+/* ── Trust strip ─────────────────────────────────────────────────────────── */
+
+.h-trust-strip {
+ position: relative;
+ z-index: 30;
+ background:
+ radial-gradient(ellipse at 50% 50%, rgba(255, 175, 60, 0.06) 0%, transparent 60%),
+ linear-gradient(180deg, rgba(26, 14, 8, 0.6) 0%, rgba(8, 7, 11, 0.6) 100%);
+ border-top: 1px solid rgba(255, 175, 60, 0.12);
+ border-bottom: 1px solid rgba(255, 175, 60, 0.12);
+ padding: 1.8rem var(--space-lg);
+}
+
+.h-trust-inner {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ flex-wrap: wrap;
+ gap: 1.5rem 2rem;
+ max-width: 900px;
+ margin: 0 auto;
+}
+
+.h-trust-item {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 0.2rem;
+}
+
+.h-trust-num {
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+ font-size: 1.4rem;
+ font-weight: 700;
+ background: linear-gradient(135deg, #ffd76a 0%, #ff8f4d 100%);
+ -webkit-background-clip: text;
+ background-clip: text;
+ color: transparent;
+ letter-spacing: -0.015em;
+}
+
+.h-trust-label {
+ font-size: 0.7rem;
+ font-weight: 500;
+ letter-spacing: 0.1em;
+ text-transform: uppercase;
+ color: rgba(255, 255, 255, 0.5);
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+}
+
+.h-trust-sep {
+ color: rgba(255, 255, 255, 0.15);
+ font-size: 1.4rem;
+}
+
+/* ── Pillars transition band (docs.pai.direct style) ───────────────────── */
+
+.h-pillars {
+ position: relative;
+ z-index: 30;
+ background:
+ linear-gradient(
+ 180deg,
+ rgba(8, 7, 11, 0) 0%,
+ rgba(8, 7, 11, 1) 25%,
+ rgba(8, 7, 11, 1) 100%
+ ),
+ radial-gradient(ellipse at 50% 0%, rgba(255, 175, 60, 0.08) 0%, transparent 60%);
+ padding: clamp(4rem, 9vh, 7rem) clamp(1.25rem, 4vw, 2rem);
+}
+
+.h-pillars-inner {
+ display: grid;
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ gap: clamp(2rem, 4vw, 3.5rem);
+ max-width: 1180px;
+ margin: 0 auto;
+}
+
+.h-pillar h3 {
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+ font-size: 1.15rem;
+ font-weight: 700;
+ color: #fff;
+ letter-spacing: -0.005em;
+ line-height: 1.25;
+ margin: 0 0 0.85rem;
+}
+
+.h-pillar p {
+ font-size: 0.95rem;
+ line-height: 1.65;
+ color: rgba(255, 255, 255, 0.55);
+ margin: 0;
+ max-width: 32em;
+}
+
+@media (max-width: 880px) {
+ .h-pillars-inner {
+ grid-template-columns: 1fr;
+ gap: 2rem;
+ }
+}
+
+/* ── Bento feature grid ──────────────────────────────────────────────────── */
+
+.h-bento-section {
+ position: relative;
+ z-index: 30;
+ background:
+ radial-gradient(ellipse at 0% 0%, rgba(255, 175, 60, 0.05) 0%, transparent 50%),
+ radial-gradient(ellipse at 100% 100%, rgba(140, 80, 220, 0.05) 0%, transparent 50%), #06070b;
+ padding: clamp(5rem, 10vh, 9rem) var(--space-lg);
+ max-width: 1200px;
+ margin: 0 auto;
+}
+
+.h-bento-header {
+ text-align: center;
+ margin-bottom: 4rem;
+ max-width: 720px;
+ margin-left: auto;
+ margin-right: auto;
+}
+
+.h-bento-header .h-section-title {
+ margin-bottom: 0.5rem;
+}
+
+.h-bento-grid {
+ display: grid;
+ grid-template-columns: 2fr 1fr;
+ grid-auto-rows: auto;
+ gap: 1rem;
+}
+
+.h-bento-card {
+ background: rgba(255, 255, 255, 0.025);
+ border: 1px solid rgba(255, 255, 255, 0.06);
+ border-radius: 8px;
+ overflow: hidden;
+ transition:
+ border-color 0.3s ease,
+ transform 0.3s ease;
+ display: flex;
+ flex-direction: column;
+}
+
+.h-bento-card:hover {
+ border-color: rgba(255, 255, 255, 0.12);
+ transform: translateY(-2px);
+}
+
+.h-bento-card--lg {
+ grid-column: 1;
+ grid-row: 1 / span 4;
+ display: grid;
+ grid-template-rows: 1fr auto auto;
+}
+
+.h-bento-visual {
+ position: relative;
+ min-height: 360px;
+ background: rgba(255, 255, 255, 0.02);
+}
+
+.h-bento-visual model-viewer {
+ width: 100%;
+ height: 100%;
+ min-height: 360px;
+ background: transparent;
+ --poster-color: transparent;
+}
+
+.h-bento-cz-canvas {
+ position: absolute;
+ inset: 0;
+ width: 100%;
+ height: 100%;
+ display: block;
+ cursor: grab;
+}
+
+.h-bento-anim-panel {
+ border-top: 1px solid rgba(255, 255, 255, 0.06);
+ border-bottom: 1px solid rgba(255, 255, 255, 0.06);
+ background: rgba(0, 0, 0, 0.28);
+ padding: 0.7rem 1rem 0.6rem;
+ display: flex;
+ flex-direction: column;
+ gap: 0.45rem;
+}
+
+.h-bento-anim-header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+}
+
+.h-bento-anim-title {
+ font-size: 0.62rem;
+ font-weight: 600;
+ letter-spacing: 0.14em;
+ text-transform: uppercase;
+ color: rgba(255, 255, 255, 0.4);
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+}
+
+.h-bento-anim-stop {
+ background: none;
+ border: none;
+ color: rgba(255, 255, 255, 0.35);
+ font-size: 0.85rem;
+ cursor: pointer;
+ padding: 2px 6px;
+ border-radius: 4px;
+ transition:
+ color 0.2s,
+ background 0.2s;
+ line-height: 1;
+}
+
+.h-bento-anim-stop:hover {
+ color: #f87171;
+ background: rgba(248, 113, 113, 0.1);
+}
+
+.h-bento-anim-grid {
+ display: flex;
+ gap: 0.4rem;
+ overflow-x: auto;
+ scrollbar-width: thin;
+ scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
+ padding-bottom: 4px;
+}
+
+.h-bento-anim-grid::-webkit-scrollbar {
+ height: 4px;
+}
+.h-bento-anim-grid::-webkit-scrollbar-thumb {
+ background: rgba(255, 255, 255, 0.12);
+ border-radius: 2px;
+}
+
+.h-bento-anim-btn {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 2px;
+ padding: 0.45rem 0.55rem;
+ min-width: 56px;
+ background: rgba(255, 255, 255, 0.04);
+ border: 1px solid rgba(255, 255, 255, 0.08);
+ border-radius: 8px;
+ color: rgba(255, 255, 255, 0.6);
+ font-family: inherit;
+ cursor: pointer;
+ transition: all 0.18s ease;
+ flex-shrink: 0;
+}
+
+.h-bento-anim-btn:hover:not(:disabled) {
+ background: rgba(255, 255, 255, 0.08);
+ border-color: rgba(255, 255, 255, 0.18);
+ color: #fff;
+}
+
+.h-bento-anim-btn--active {
+ background: rgba(167, 139, 250, 0.18);
+ border-color: rgba(167, 139, 250, 0.5);
+ color: #fff;
+ box-shadow: 0 0 14px rgba(167, 139, 250, 0.18);
+}
+
+.h-bento-anim-btn--loading {
+ opacity: 0.4;
+ cursor: wait;
+}
+
+.h-bento-anim-btn__icon {
+ font-size: 1.15rem;
+ line-height: 1;
+}
+
+.h-bento-anim-btn__label {
+ font-size: 9px;
+ font-weight: 500;
+ letter-spacing: 0.03em;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ max-width: 64px;
+}
+
+.h-bento-body {
+ padding: 1.4rem 1.6rem;
+ display: flex;
+ flex-direction: column;
+ gap: 0.5rem;
+ flex: 1;
+}
+
+.h-bento-tag {
+ display: inline-block;
+ font-size: 0.65rem;
+ font-weight: 600;
+ letter-spacing: 0.14em;
+ text-transform: uppercase;
+ color: rgba(255, 215, 106, 0.8);
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+ margin-bottom: 0.2rem;
+}
+
+.h-bento-tag--mint {
+ color: rgba(110, 231, 183, 0.8);
+}
+.h-bento-tag--violet {
+ color: rgba(167, 139, 250, 0.8);
+}
+
+.h-bento-card h3 {
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+ font-size: 1.1rem;
+ font-weight: 600;
+ color: #fff;
+ margin: 0;
+ line-height: 1.25;
+}
+
+.h-bento-card p {
+ font-size: 0.85rem;
+ color: rgba(255, 255, 255, 0.48);
+ line-height: 1.55;
+ margin: 0;
+ flex: 1;
+}
+
+.h-bento-code {
+ margin-top: 0.75rem;
+ background: rgba(0, 0, 0, 0.4);
+ border: 1px solid rgba(255, 255, 255, 0.05);
+ border-radius: 8px;
+ padding: 0.7rem 0.9rem;
+ font-family: 'JetBrains Mono', monospace;
+ font-size: 0.7rem;
+ color: rgba(255, 255, 255, 0.55);
+ line-height: 1.6;
+}
+
+.h-bento-id {
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+ margin-top: 0.75rem;
+ padding: 0.5rem 0.8rem;
+ background: rgba(110, 231, 183, 0.06);
+ border: 1px solid rgba(110, 231, 183, 0.15);
+ border-radius: 6px;
+}
+
+.h-bento-emotions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.35rem;
+ margin-top: 0.5rem;
+}
+
+.h-bento-emotions span {
+ font-size: 0.68rem;
+ color: rgba(167, 139, 250, 0.65);
+ font-family: 'Space Grotesk', sans-serif;
+ border: 1px solid rgba(167, 139, 250, 0.2);
+ border-radius: 4px;
+ padding: 0.2rem 0.55rem;
+}
+
+/* ── Developer section ───────────────────────────────────────────────────── */
+
+.h-dev-section {
+ position: relative;
+ z-index: 30;
+ background: rgba(255, 255, 255, 0.018);
+ border-top: 1px solid rgba(255, 255, 255, 0.05);
+ padding: clamp(4rem, 8vh, 7rem) var(--space-lg);
+}
+
+.h-dev-inner {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: var(--space-2xl);
+ align-items: center;
+ max-width: 1080px;
+ margin: 0 auto;
+}
+
+.h-dev-text {
+ display: flex;
+ flex-direction: column;
+ gap: 1rem;
+}
+
+.h-dev-text h2 {
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+ font-size: clamp(1.8rem, 3vw, 2.6rem);
+ font-weight: 700;
+ color: #fff;
+ line-height: 1.1;
+ letter-spacing: -0.02em;
+ margin: 0;
+}
+
+.h-dev-sub {
+ font-size: var(--text-base);
+ color: rgba(255, 255, 255, 0.5);
+ line-height: 1.6;
+ margin: 0;
+}
+
+.h-dev-sub code {
+ font-family: 'JetBrains Mono', monospace;
+ font-size: 0.88em;
+ color: rgba(255, 215, 106, 0.8);
+ background: rgba(255, 215, 106, 0.08);
+ padding: 0.1em 0.4em;
+ border-radius: 4px;
+}
+
+.h-dev-links {
+ display: flex;
+ gap: 1.5rem;
+ flex-wrap: wrap;
+}
+
+.h-dev-code {
+ background: #0a0a0e;
+ border: 1px solid rgba(255, 255, 255, 0.07);
+ border-radius: 8px;
+ overflow: hidden;
+}
+
+.h-dev-code-bar {
+ display: flex;
+ align-items: center;
+ gap: 0.4rem;
+ padding: 0.7rem 1rem;
+ background: rgba(255, 255, 255, 0.03);
+ border-bottom: 1px solid rgba(255, 255, 255, 0.05);
+}
+
+.h-dev-code-dot {
+ width: 10px;
+ height: 10px;
+ border-radius: 50%;
+ background: rgba(255, 255, 255, 0.12);
+}
+
+.h-dev-code-filename {
+ font-family: 'JetBrains Mono', monospace;
+ font-size: 0.7rem;
+ color: rgba(255, 255, 255, 0.3);
+ margin-left: 0.5rem;
+}
+
+.h-dev-pre {
+ margin: 0;
+ padding: 1.4rem 1.6rem;
+ overflow-x: auto;
+}
+
+.h-dev-pre code {
+ font-family: 'JetBrains Mono', monospace;
+ font-size: 0.82rem;
+ line-height: 1.75;
+ color: rgba(255, 255, 255, 0.55);
+}
+
+.h-dev-pre .c {
+ color: rgba(255, 255, 255, 0.22);
+}
+.h-dev-pre .tag {
+ color: rgba(125, 200, 255, 0.85);
+}
+.h-dev-pre .attr {
+ color: rgba(168, 220, 140, 0.85);
+}
+.h-dev-pre .val {
+ color: rgba(255, 200, 100, 0.8);
+}
+
+/* ── CTA inner wrapper ───────────────────────────────────────────────────── */
+
+.h-cta-inner {
+ max-width: 600px;
+ margin: 0 auto;
+ text-align: center;
+}
+
+/* ── Footer: "The Horizon" ──────────────────────────────────────────────── */
+
+.h-footer-horizon {
+ position: relative;
+ overflow: hidden;
+ min-height: 360px;
+ padding: 4rem 2rem 2rem !important;
+ border-top: none !important;
+ background: linear-gradient(180deg, #0a0a0a 0%, #050505 60%, #000 100%) !important;
+ isolation: isolate;
+}
+
+.h-footer-glow-line {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ height: 1px;
+ background: linear-gradient(
+ 90deg,
+ transparent 0%,
+ rgba(255, 255, 255, 0) 10%,
+ rgba(255, 255, 255, 0.75) 50%,
+ rgba(255, 255, 255, 0) 90%,
+ transparent 100%
+ );
+ box-shadow:
+ 0 0 10px rgba(255, 255, 255, 0.35),
+ 0 0 24px rgba(255, 255, 255, 0.18);
+ z-index: 2;
+}
+
+.h-footer-floor {
+ position: absolute;
+ left: -10%;
+ right: -10%;
+ bottom: -40%;
+ height: 90%;
+ background-image:
+ linear-gradient(to right, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
+ linear-gradient(to bottom, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
+ background-size: 64px 64px;
+ transform: perspective(600px) rotateX(62deg);
+ transform-origin: 50% 0%;
+ mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 95%);
+ -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 95%);
+ z-index: 1;
+ animation: hFloorScroll 12s linear infinite;
+}
+
+@keyframes hFloorScroll {
+ 0% {
+ background-position: 0 0;
+ }
+ 100% {
+ background-position: 0 64px;
+ }
+}
+
+.h-footer-haze {
+ position: absolute;
+ inset: 0;
+ background:
+ radial-gradient(60% 70% at 30% 110%, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
+ radial-gradient(55% 70% at 75% 110%, rgba(255, 255, 255, 0.07) 0%, transparent 60%);
+ filter: blur(40px);
+ z-index: 1;
+ pointer-events: none;
+}
+
+.h-footer-watermark {
+ position: absolute;
+ left: 50%;
+ bottom: -0.15em;
+ transform: translateX(-50%);
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+ font-weight: 700;
+ font-size: clamp(7rem, 22vw, 22rem);
+ line-height: 0.85;
+ letter-spacing: -0.04em;
+ white-space: nowrap;
+ background: linear-gradient(
+ 180deg,
+ rgba(255, 255, 255, 0.12) 0%,
+ rgba(255, 255, 255, 0.04) 60%,
+ rgba(255, 255, 255, 0) 100%
+ );
+ -webkit-background-clip: text;
+ background-clip: text;
+ color: transparent;
+ pointer-events: none;
+ z-index: 2;
+ user-select: none;
+}
+
+.h-footer-avatar {
+ position: absolute;
+ right: 2%;
+ bottom: 0;
+ width: 200px;
+ height: 200px;
+ z-index: 3;
+ pointer-events: none;
+ filter: grayscale(1) drop-shadow(0 0 18px rgba(255, 255, 255, 0.3));
+}
+
+.h-footer-avatar model-viewer {
+ width: 100%;
+ height: 100%;
+ background: transparent;
+ --poster-color: transparent;
+}
+
+.h-footer-inner {
+ position: relative;
+ z-index: 4;
+ display: flex;
+ align-items: flex-start;
+ justify-content: space-between;
+ flex-wrap: wrap;
+ gap: 2rem;
+ max-width: 1080px;
+ margin: 0 auto 4rem;
+}
+
+.h-footer-brand-col {
+ display: flex;
+ flex-direction: column;
+ gap: 0.4rem;
+}
+
+.h-footer-brand {
+ display: flex;
+ align-items: center;
+ gap: 0.4rem;
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+ font-size: 1.1rem;
+ font-weight: 600;
+ color: #fff;
+}
+
+.h-footer-tagline {
+ font-family: 'Inter', sans-serif;
+ font-size: 0.85rem;
+ color: rgba(255, 255, 255, 0.45);
+ margin: 0;
+ letter-spacing: 0.01em;
+}
+
+.h-footer-links {
+ display: grid;
+ grid-template-columns: repeat(2, auto);
+ gap: 0.6rem 2.5rem;
+}
+
+.h-footer-links a {
+ position: relative;
+ color: rgba(255, 255, 255, 0.45);
+ text-decoration: none;
+ font-size: var(--text-sm);
+ transition:
+ color 0.2s ease,
+ text-shadow 0.2s ease;
+}
+
+.h-footer-links a:hover {
+ color: #fff;
+ text-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
+}
+
+.h-footer-bottom {
+ position: relative;
+ z-index: 4;
+ max-width: 1080px;
+ margin: 0 auto;
+ padding-top: 1.5rem;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 1rem;
+ flex-wrap: wrap;
+ border-top: 1px solid rgba(255, 255, 255, 0.06);
+}
+
+.h-footer-legal {
+ margin: 0;
+ font-family: 'Inter', sans-serif;
+ font-size: 0.78rem;
+ font-weight: 400;
+ color: rgba(255, 255, 255, 0.42);
+ letter-spacing: 0.005em;
+}
+
+.h-footer-badges {
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+ flex-wrap: wrap;
+}
+
+.h-footer-badge {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.4rem;
+ padding: 0.32rem 0.7rem;
+ border-radius: 6px;
+ border: 1px solid rgba(255, 255, 255, 0.09);
+ background: rgba(255, 255, 255, 0.025);
+ color: rgba(255, 255, 255, 0.62);
+ font-family: 'Inter', sans-serif;
+ font-size: 0.72rem;
+ font-weight: 500;
+ letter-spacing: 0.01em;
+ text-decoration: none;
+ transition:
+ color 0.2s ease,
+ border-color 0.2s ease,
+ background 0.2s ease,
+ transform 0.2s ease;
+}
+
+.h-footer-badge:hover {
+ color: #fff;
+ border-color: rgba(255, 255, 255, 0.18);
+ background: rgba(255, 255, 255, 0.05);
+ transform: translateY(-1px);
+}
+
+.h-footer-badge svg {
+ width: 12px;
+ height: 12px;
+ flex-shrink: 0;
+}
+
+.h-footer-status-dot {
+ width: 6px;
+ height: 6px;
+ border-radius: 50%;
+ background: #4ade80;
+ box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
+ flex-shrink: 0;
+ animation: hStatusPulse 2.4s ease-in-out infinite;
+}
+
+@keyframes hStatusPulse {
+ 0%,
+ 100% {
+ opacity: 1;
+ box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
+ }
+ 50% {
+ opacity: 0.55;
+ box-shadow: 0 0 4px rgba(74, 222, 128, 0.35);
+ }
+}
+
+@media (max-width: 720px) {
+ .h-footer-horizon {
+ min-height: 320px;
+ padding: 3rem 1.25rem 1.5rem !important;
+ }
+ .h-footer-inner {
+ flex-direction: column;
+ gap: 1.5rem;
+ margin-bottom: 3rem;
+ }
+ .h-footer-links {
+ grid-template-columns: repeat(2, 1fr);
+ gap: 0.5rem 1rem;
+ }
+ .h-footer-bottom {
+ flex-direction: column;
+ align-items: flex-start;
+ gap: 0.75rem;
+ }
+ .h-footer-avatar {
+ width: 90px;
+ height: 90px;
+ right: 5%;
+ bottom: 18%;
+ }
+}
+
+/* ── Responsive: bento and dev ───────────────────────────────────────────── */
+
+@media (max-width: 900px) {
+ .h-bento-grid {
+ grid-template-columns: 1fr 1fr;
+ }
+ .h-bento-card--lg {
+ grid-column: span 2;
+ grid-row: auto;
+ }
+ .h-dev-inner {
+ grid-template-columns: 1fr;
+ }
+}
+
+@media (max-width: 600px) {
+ .h-bento-grid {
+ grid-template-columns: 1fr;
+ }
+ .h-bento-card--lg {
+ grid-column: span 1;
+ grid-row: auto;
+ }
+ .h-trust-inner {
+ gap: 1rem;
+ }
+ .h-footer-inner {
+ flex-direction: column;
+ align-items: flex-start;
+ }
+}
+
+.home-page {
+ overflow-y: auto;
+ overflow-x: hidden;
+ height: 100%;
+ scroll-behavior: smooth;
+}
+
+/* ── Parallax scroll container ──────────────────────────────────────────── */
+
+.home-parallax {
+ position: relative;
+ height: 100vh;
+ width: 100vw;
+ overflow-x: hidden;
+ overflow-y: auto;
+ overscroll-behavior-y: none;
+ perspective: 2.4rem;
+ perspective-origin: 50% 0%;
+ scroll-behavior: smooth;
+ scrollbar-width: none;
+}
+
+.home-parallax::-webkit-scrollbar {
+ width: 0;
+ height: 0;
+}
+
+/* ── Hero parallax act ───────────────────────────────────────────────────── */
+
+.h-hero-act {
+ position: relative;
+ height: 130vh;
+ overflow: hidden;
+ isolation: isolate;
+}
+
+/* ── Parallax depth layers ───────────────────────────────────────────────── */
+
+.h-layer {
+ position: absolute;
+ inset: 0;
+ width: 100%;
+ height: 100%;
+ pointer-events: none;
+ z-index: calc(10 - var(--depth, 0));
+}
+
+/* ── Nebula background ───────────────────────────────────────────────────── */
+
+.h-layer-nebula {
+ position: absolute;
+ inset: 0;
+ background:
+ radial-gradient(ellipse at 22% 25%, rgba(255, 175, 60, 0.22) 0%, transparent 60%),
+ radial-gradient(ellipse at 78% 65%, rgba(255, 100, 180, 0.13) 0%, transparent 55%),
+ radial-gradient(ellipse at 50% 100%, rgba(140, 80, 220, 0.12) 0%, transparent 70%),
+ linear-gradient(180deg, #1a0e08 0%, #08070b 100%);
+}
+
+/* ── Star canvas ─────────────────────────────────────────────────────────── */
+
+.h-star-canvas {
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 200%;
+ pointer-events: none;
+ animation: h-star-drift 120s linear infinite;
+}
+
+@keyframes h-star-drift {
+ from {
+ transform: translateY(0);
+ }
+ to {
+ transform: translateY(-50%);
+ }
+}
+
+/* ── Ghost model (depth 3) ───────────────────────────────────────────────── */
+
+.h-ghost-model {
+ position: absolute;
+ inset: 0;
+ width: 100%;
+ height: 100%;
+ background: transparent;
+ --poster-color: transparent;
+ opacity: 0.1;
+ filter: blur(0.5px);
+ pointer-events: none;
+}
+
+/* ── Vignette ────────────────────────────────────────────────────────────── */
+
+.h-vignette {
+ position: absolute;
+ inset: 0;
+ background: radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(6, 7, 11, 0.7) 100%);
+ pointer-events: none;
+}
+
+/* ── CZ click + idle trick animations ───────────────────────────────────── */
+
+/* applied to model-viewer only — ring/glow/badge stay put as a stable frame,
+ so the avatar visibly moves *inside* its container, not the whole page. */
+.h-avatar-viewer.cz-fall,
+.h-avatar-viewer.cz-spin,
+.h-avatar-viewer.cz-pushup,
+.h-avatar-viewer.cz-jump,
+.h-avatar-viewer.cz-dance {
+ transform-origin: 50% 95%;
+}
+
+.h-avatar-viewer.cz-fall {
+ animation: cz-fall 1.4s cubic-bezier(0.4, 1.6, 0.6, 1) both;
+}
+.h-avatar-viewer.cz-spin {
+ animation: cz-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) both;
+}
+.h-avatar-viewer.cz-pushup {
+ animation: cz-pushup 1.8s ease-in-out both;
+}
+.h-avatar-viewer.cz-jump {
+ animation: cz-jump 0.9s cubic-bezier(0.3, 1.4, 0.6, 1) both;
+}
+.h-avatar-viewer.cz-dance {
+ animation: cz-dance 2s ease-in-out both;
+}
+
+@keyframes cz-fall {
+ 0% {
+ transform: rotate(0deg);
+ }
+ 35% {
+ transform: rotate(-22deg);
+ }
+ 55% {
+ transform: rotate(-22deg);
+ }
+ 78% {
+ transform: rotate(-18deg);
+ }
+ 100% {
+ transform: rotate(0deg);
+ }
+}
+
+@keyframes cz-spin {
+ 0% {
+ transform: rotateY(0) scale(1);
+ }
+ 50% {
+ transform: rotateY(180deg) scale(0.97);
+ }
+ 100% {
+ transform: rotateY(360deg) scale(1);
+ }
+}
+
+@keyframes cz-pushup {
+ 0%,
+ 100% {
+ transform: translateY(0);
+ }
+ 25% {
+ transform: translateY(8px) scale(1, 0.97);
+ }
+ 50% {
+ transform: translateY(0);
+ }
+ 75% {
+ transform: translateY(8px) scale(1, 0.97);
+ }
+}
+
+@keyframes cz-jump {
+ 0%,
+ 100% {
+ transform: translateY(0) scale(1, 1);
+ }
+ 30% {
+ transform: translateY(0) scale(1.05, 0.93);
+ }
+ 60% {
+ transform: translateY(-32px) scale(0.96, 1.06);
+ }
+ 85% {
+ transform: translateY(0) scale(1.04, 0.96);
+ }
+}
+
+@keyframes cz-dance {
+ 0%,
+ 100% {
+ transform: rotate(0) translateX(0);
+ }
+ 15% {
+ transform: rotate(4deg) translateX(-6px) translateY(-2px);
+ }
+ 40% {
+ transform: rotate(-5deg) translateX(6px) translateY(-1px);
+ }
+ 65% {
+ transform: rotate(3deg) translateX(-4px) translateY(-3px);
+ }
+ 85% {
+ transform: rotate(-2deg) translateX(4px) translateY(0);
+ }
+}
+
+/* ── Avatar centered in its depth-1 parallax layer ─────────────────────── */
+
+.h-avatar-stage {
+ position: absolute;
+ inset: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ pointer-events: none;
+}
+
+.h-avatar-wrap {
+ position: relative;
+ width: clamp(340px, 42vw, 560px);
+ aspect-ratio: 1;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ pointer-events: auto;
+}
+
+/* ── Sticky text pinned bottom-left (same as features page act-content) ─── */
+
+.h-hero-text {
+ position: sticky;
+ top: 0;
+ height: 100vh;
+ margin-bottom: -100vh;
+ z-index: 20;
+ display: flex;
+ flex-direction: column;
+ justify-content: flex-end;
+ padding: 0 var(--space-lg) clamp(2.5rem, 6vh, 5rem);
+ pointer-events: none;
+ max-width: 640px;
+}
+
+.h-hero-text > * {
+ pointer-events: auto;
+}
+
+/* ── Scroll-driven float on the avatar wrap ─────────────────────────────── */
+
+@supports (animation-timeline: scroll()) {
+ .h-avatar-wrap {
+ animation: hero-avatar-float linear both;
+ animation-timeline: scroll(nearest);
+ animation-range: 0vh 160vh;
+ }
+
+ @keyframes hero-avatar-float {
+ 0% {
+ transform: translateY(0) scale(1);
+ }
+ 60% {
+ transform: translateY(-24px) scale(1.03);
+ }
+ 100% {
+ transform: translateY(-56px) scale(0.94);
+ opacity: 0.3;
+ }
+ }
+
+ .h-layer {
+ animation: h-layer-parallax linear both;
+ animation-timeline: view();
+ animation-range: entry 0% exit 100%;
+ }
+
+ @keyframes h-layer-parallax {
+ from {
+ transform: translateY(calc(var(--depth, 0) * 30px));
+ }
+ to {
+ transform: translateY(calc(var(--depth, 0) * -30px));
+ }
+ }
+}
+
+/* ── Acts 2 & 3 base ────────────────────────────────────────────────────── */
+
+.h-act {
+ position: relative;
+ height: 130vh;
+ overflow: hidden;
+ isolation: isolate;
+}
+
+.h-act-warp {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ height: 28vh;
+ pointer-events: none;
+ z-index: 25;
+}
+
+.h-act-warp--amber {
+ background: linear-gradient(
+ to bottom,
+ rgba(6, 7, 11, 1) 0%,
+ rgba(255, 180, 60, 0.04) 60%,
+ transparent 100%
+ );
+}
+
+.h-act-warp--mint {
+ background: linear-gradient(
+ to bottom,
+ rgba(6, 7, 11, 1) 0%,
+ rgba(110, 231, 183, 0.04) 60%,
+ transparent 100%
+ );
+}
+
+/* ── Act layer backgrounds ───────────────────────────────────────────────── */
+
+.h-layer-bg {
+ position: absolute;
+ inset: 0;
+}
+
+.h-layer-bg--amber {
+ background:
+ radial-gradient(ellipse at 70% 30%, rgba(255, 180, 60, 0.15) 0%, transparent 55%),
+ radial-gradient(ellipse at 20% 75%, rgba(255, 215, 106, 0.08) 0%, transparent 55%),
+ linear-gradient(180deg, #0c0a06 0%, #06070b 100%);
+}
+
+.h-layer-bg--mint {
+ background:
+ radial-gradient(ellipse at 30% 40%, rgba(110, 231, 183, 0.12) 0%, transparent 55%),
+ radial-gradient(ellipse at 70% 60%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
+ radial-gradient(ellipse at 80% 75%, rgba(255, 215, 106, 0.04) 0%, transparent 55%),
+ linear-gradient(180deg, #060e14 0%, #06070b 100%);
+}
+
+/* ── Act depth orbs ──────────────────────────────────────────────────────── */
+
+.h-layer-orb {
+ position: absolute;
+ width: clamp(400px, 55vw, 800px);
+ aspect-ratio: 1;
+ border-radius: 50%;
+ filter: blur(80px);
+ opacity: 0.55;
+}
+
+.h-layer-orb--amber {
+ background: radial-gradient(circle, #ffb347, transparent 70%);
+ top: 12%;
+ left: 8%;
+}
+
+.h-layer-orb--mint {
+ background: radial-gradient(
+ circle,
+ color-mix(in srgb, #6ee7b7 60%, #38bdf8 40%),
+ transparent 70%
+ );
+ top: 18%;
+ right: 8%;
+}
+
+/* ── Floating word glyphs (Act 2 depth 4) ───────────────────────────────── */
+
+.h-layer-words {
+ position: absolute;
+ inset: 0;
+ width: 100%;
+ height: 100%;
+}
+
+/* ── Chain ribbon (Act 3 depth 4) ────────────────────────────────────────── */
+
+.h-layer-chains {
+ position: absolute;
+ inset: 0;
+ display: flex;
+ flex-wrap: wrap;
+ align-content: center;
+ justify-content: center;
+ gap: 1.5rem 2.5rem;
+ padding: 6rem 4rem;
+}
+
+.h-layer-chains .chain-pill {
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+ font-size: 17px;
+ font-weight: 600;
+ letter-spacing: 0.08em;
+ color: rgba(110, 231, 183, 0.18);
+ text-transform: uppercase;
+ border: 1px solid rgba(110, 231, 183, 0.1);
+ border-radius: 6px;
+ padding: 0.4rem 1rem;
+ white-space: nowrap;
+}
+
+/* ── Readability backdrop behind Act 3 sticky text ──────────────────────── */
+
+.h-act--deploy .h-act-text::before {
+ content: '';
+ position: absolute;
+ inset: -2rem -2rem -2rem -2rem;
+ background: linear-gradient(
+ 100deg,
+ rgba(4, 12, 20, 0.96) 0%,
+ rgba(4, 12, 20, 0.88) 45%,
+ rgba(4, 12, 20, 0.45) 75%,
+ transparent 100%
+ );
+ z-index: -1;
+ pointer-events: none;
+ border-radius: 0 24px 24px 0;
+}
+
+/* ── Hero avatar traversing mode (falling animation) ────────────────────── */
+
+.h-avatar-wrap--traversing {
+ position: absolute !important;
+ inset: 0 !important;
+ width: 100% !important;
+ height: 100% !important;
+ aspect-ratio: unset !important;
+ border-radius: 0 !important;
+ pointer-events: none;
+}
+
+.h-avatar-wrap--traversing #hero-avatar {
+ border-radius: 0 !important;
+}
+
+.h-avatar-wrap--traversing .h-avatar-ring,
+.h-avatar-wrap--traversing .h-avatar-glow,
+.h-avatar-wrap--traversing .h-avatar-badge {
+ display: none;
+}
+
+/* ── Ghost avatar (Act 3, depth 1) ──────────────────────────────────────── */
+
+.h-avatar-wrap--ghost {
+ opacity: 0.18;
+ filter: blur(0.5px) hue-rotate(150deg) saturate(0.5);
+ pointer-events: none;
+}
+
+.h-avatar-stage--trio {
+ flex-direction: row;
+ align-items: flex-end;
+ justify-content: center;
+ gap: 4vw;
+ padding-bottom: 4vh;
+}
+
+.h-avatar-wrap--trio {
+ width: clamp(140px, 20vw, 300px);
+ aspect-ratio: 2 / 3;
+}
+
+.h-avatar-viewer--tall {
+ border-radius: 8px;
+ display: block;
+ width: 100%;
+ height: 100%;
+}
+
+/* ── Sticky act text (same as h-hero-text but for acts 2/3) ─────────────── */
+
+.h-act-text {
+ position: sticky;
+ top: 0;
+ height: 100vh;
+ margin-bottom: -100vh;
+ z-index: 20;
+ display: flex;
+ flex-direction: column;
+ justify-content: flex-end;
+ padding: 0 var(--space-lg) clamp(2.5rem, 6vh, 5rem);
+ pointer-events: none;
+ max-width: 640px;
+}
+
+.h-act-text > * {
+ pointer-events: auto;
+}
+
+.h-act-eyebrow {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.5rem;
+ font-size: 13px;
+ font-weight: 500;
+ letter-spacing: 0.12em;
+ text-transform: uppercase;
+ color: rgba(255, 255, 255, 0.65);
+ margin-bottom: 1rem;
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+}
+
+.h-act-dot {
+ width: 6px;
+ height: 6px;
+ border-radius: 50%;
+ background: var(--features-gold, #ffd76a);
+ box-shadow: 0 0 12px var(--features-gold, #ffd76a);
+}
+
+.h-act-dot--mint {
+ background: #6ee7b7;
+ box-shadow: 0 0 12px #6ee7b7;
+}
+
+.h-act-title {
+ font-size: clamp(2rem, 5.5vw, 4rem);
+ font-weight: 600;
+ line-height: 1.05;
+ letter-spacing: -0.02em;
+ margin: 0 0 1rem;
+ color: #fff;
+}
+
+.h-act-title em {
+ font-style: italic;
+ font-weight: 500;
+ color: #ffd76a;
+}
+
+.h-act-title--mint em {
+ color: #6ee7b7;
+}
+
+.h-act-lede {
+ font-size: clamp(1rem, 1.4vw, 1.15rem);
+ line-height: 1.55;
+ color: rgba(255, 255, 255, 0.68);
+ max-width: 52ch;
+ margin: 0 0 1.4rem;
+}
+
+.h-act-cta {
+ display: flex;
+ gap: 0.75rem;
+ flex-wrap: wrap;
+ margin-top: 0.5rem;
+}
+
+/* ── Avatar picker ───────────────────────────────────────────────────────── */
+
+.h-avatar-picker {
+ display: flex;
+ gap: 0.5rem;
+ margin-bottom: 1rem;
+}
+
+.h-av-opt {
+ padding: 0.45rem 1.1rem;
+ background: rgba(255, 255, 255, 0.04);
+ border: 1px solid rgba(255, 255, 255, 0.12);
+ border-radius: 6px;
+ color: rgba(255, 255, 255, 0.65);
+ font-size: 13px;
+ font-weight: 500;
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+ cursor: pointer;
+ transition: all 0.2s ease;
+}
+
+.h-av-opt[aria-pressed='true'] {
+ background: rgba(255, 215, 106, 0.16);
+ border-color: #ffd76a;
+ color: #ffd76a;
+}
+
+.h-av-opt:hover {
+ border-color: rgba(255, 255, 255, 0.3);
+ color: #fff;
+}
+
+/* ── Animation chips ─────────────────────────────────────────────────────── */
+
+.h-anim-chips {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.5rem;
+ margin-bottom: 1.2rem;
+}
+
+.h-anim-chip {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.35rem;
+ padding: 0.5rem 0.9rem;
+ background: rgba(255, 255, 255, 0.04);
+ border: 1px solid rgba(255, 215, 106, 0.2);
+ border-radius: 6px;
+ color: rgba(255, 255, 255, 0.8);
+ font-size: 13px;
+ font-weight: 500;
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+ cursor: pointer;
+ transition: all 0.15s ease;
+}
+
+.h-anim-chip:hover,
+.h-anim-chip[data-active='true'] {
+ background: rgba(255, 215, 106, 0.16);
+ border-color: #ffd76a;
+ color: #ffd76a;
+}
+
+.h-anim-chip[hidden] {
+ display: none;
+}
+
+/* ── Deploy form ─────────────────────────────────────────────────────────── */
+
+.h-deploy-form {
+ display: flex;
+ flex-direction: column;
+ gap: 1rem;
+ max-width: 400px;
+}
+
+.h-form-row {
+ display: flex;
+ flex-direction: column;
+ gap: 0.35rem;
+}
+
+.h-form-label {
+ font-size: 11px;
+ font-weight: 500;
+ letter-spacing: 0.12em;
+ text-transform: uppercase;
+ color: rgba(255, 255, 255, 0.42);
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+}
+
+.h-form-input,
+.h-form-select {
+ background: rgba(255, 255, 255, 0.04);
+ border: 1px solid rgba(110, 231, 183, 0.25);
+ border-radius: 8px;
+ padding: 0.7rem 1rem;
+ color: #fff;
+ font-size: 15px;
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+ outline: none;
+ transition: border-color 0.2s ease;
+ width: 100%;
+}
+
+.h-form-input:focus,
+.h-form-select:focus {
+ border-color: #6ee7b7;
+ background: rgba(110, 231, 183, 0.04);
+}
+
+.h-form-input::placeholder {
+ color: rgba(255, 255, 255, 0.22);
+}
+
+.h-form-select option {
+ background: #0a120e;
+ color: #fff;
+}
+
+.h-deploy-stats {
+ display: flex;
+ gap: 2rem;
+ padding: 0.5rem 0;
+}
+
+.h-stat-label {
+ display: block;
+ font-size: 10px;
+ letter-spacing: 0.14em;
+ text-transform: uppercase;
+ color: rgba(255, 255, 255, 0.38);
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+ margin-bottom: 0.2rem;
+}
+
+.h-stat-val {
+ display: block;
+ font-size: 1.15rem;
+ font-weight: 600;
+ color: #6ee7b7;
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+}
+
+.h-btn-deploy {
+ background: #6ee7b7 !important;
+ color: #04201a !important;
+ border-color: #6ee7b7 !important;
+ width: fit-content;
+}
+
+/* ── Flat sections below hero need explicit bg to cover star layer ───────── */
+
+.home-parallax .h-section,
+.home-parallax .h-section-dark,
+.home-parallax .h-cta-section,
+.home-parallax .h-footer {
+ position: relative;
+ z-index: 30;
+ background: #06070b;
+}
+
+.home-parallax .h-section-dark {
+ background: rgba(255, 255, 255, 0.018);
+}
+
+/* ── Skip to content (a11y) ── */
+
+.h-skip-link {
+ position: absolute;
+ top: 0;
+ left: 0;
+ padding: 0.6rem 1rem;
+ background: #fff;
+ color: #000;
+ font-size: var(--text-sm);
+ font-weight: 500;
+ text-decoration: none;
+ border-radius: 0 0 var(--radius-sm) 0;
+ transform: translateY(-110%);
+ transition: transform 0.18s ease;
+ z-index: 9999;
+}
+
+.h-skip-link:focus {
+ transform: translateY(0);
+ outline: 2px solid #ffd76a;
+ outline-offset: 2px;
+}
+
+/* ── Focus-visible outlines (a11y) ── */
+
+.home-page a:focus-visible,
+.home-page button:focus-visible,
+.home-nav a:focus-visible,
+.h-btn-primary:focus-visible,
+.h-btn-ghost:focus-visible,
+.h-feature-link:focus-visible,
+.h-footer a:focus-visible {
+ outline: 2px solid #ffd76a;
+ outline-offset: 3px;
+ border-radius: var(--radius-sm);
+}
+
+.home-main {
+ width: 100%;
+}
+
+/* ── Nav ── */
+
+.home-nav {
+ margin-left: auto;
+ display: flex;
+ align-items: center;
+ gap: var(--space-lg);
+ -webkit-app-region: no-drag;
+}
+
+.home-nav a {
+ color: rgba(255, 255, 255, 0.6);
+ text-decoration: none;
+ font-size: 0.92rem;
+ font-weight: 500;
+ letter-spacing: 0.005em;
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+ transition: color 0.2s ease;
+}
+
+.home-nav a:hover {
+ color: #fff;
+}
+
+.home-nav .nav-cta {
+ padding: 0.5rem 1.2rem;
+ background: linear-gradient(135deg, #ffd76a 0%, #ff8f4d 100%);
+ color: #1a0f08;
+ border-radius: 6px;
+ font-weight: 600;
+ font-size: 0.9rem;
+ box-shadow: 0 4px 18px -6px rgba(255, 143, 77, 0.6);
+ transition:
+ transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1),
+ box-shadow 0.25s ease;
+}
+
+.home-nav .nav-cta:hover {
+ transform: translateY(-1px) scale(1.03);
+ box-shadow: 0 8px 24px -6px rgba(255, 143, 77, 0.8);
+ color: #1a0f08;
+}
+
+.home-nav .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: 0.85rem;
+ color: rgba(255, 255, 255, 0.55);
+ max-width: 140px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.home-nav .nav-user::before {
+ content: '';
+ width: 6px;
+ height: 6px;
+ border-radius: 50%;
+ background: #4ade80;
+ flex-shrink: 0;
+}
+
+.home-nav .nav-user:hover {
+ color: rgba(255, 255, 255, 0.85);
+ border-color: rgba(255, 255, 255, 0.2);
+ background: rgba(255, 255, 255, 0.07);
+}
+
+/* ── Dropdown nav ── */
+.home-nav .nav-root,
+.home-nav .nav-menu {
+ list-style: none !important;
+ margin: 0;
+ padding: 0;
+}
+
+.home-nav .nav-root {
+ display: flex !important;
+ align-items: center;
+ gap: var(--space-lg);
+}
+
+.home-nav .nav-item {
+ position: relative;
+ display: block;
+}
+
+.home-nav .nav-item[hidden] {
+ display: none !important;
+}
+
+.home-nav .nav-menu li {
+ display: block;
+ margin: 0;
+ padding: 0;
+}
+
+.home-nav .nav-trigger {
+ display: inline-flex;
+ align-items: center;
+ gap: 4px;
+ background: none;
+ border: 0;
+ padding: 0;
+ cursor: pointer;
+ color: rgba(255, 255, 255, 0.6);
+ font: inherit;
+ font-size: 0.92rem;
+ font-weight: 500;
+ letter-spacing: 0.005em;
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+ transition: color 0.2s ease;
+}
+
+.home-nav .nav-trigger:hover,
+.home-nav .nav-trigger[aria-expanded='true'] {
+ color: #fff;
+}
+
+.home-nav .nav-caret {
+ font-size: 0.7em;
+ opacity: 0.7;
+ transition: transform 0.2s ease;
+}
+
+.home-nav .nav-trigger[aria-expanded='true'] .nav-caret {
+ transform: rotate(180deg);
+}
+
+.home-nav .nav-menu {
+ position: absolute;
+ top: calc(100% + 14px);
+ left: -12px;
+ min-width: 240px;
+ margin: 0;
+ padding: 8px;
+ list-style: none;
+ background: rgba(14, 12, 22, 0.92);
+ backdrop-filter: blur(18px) saturate(140%);
+ -webkit-backdrop-filter: blur(18px) saturate(140%);
+ border: 1px solid rgba(255, 255, 255, 0.08);
+ border-radius: 12px;
+ box-shadow:
+ 0 20px 40px -12px rgba(0, 0, 0, 0.6),
+ 0 4px 12px -4px rgba(0, 0, 0, 0.5);
+ opacity: 0;
+ transform: translateY(-6px);
+ pointer-events: none;
+ transition:
+ opacity 0.18s ease,
+ transform 0.18s ease;
+ z-index: 1000;
+}
+
+.home-nav .nav-trigger[aria-expanded='true'] + .nav-menu {
+ opacity: 1;
+ transform: translateY(0);
+ pointer-events: auto;
+}
+
+.home-nav .nav-menu a {
+ display: flex;
+ flex-direction: column;
+ gap: 2px;
+ padding: 10px 12px;
+ border-radius: 8px;
+ color: rgba(255, 255, 255, 0.85);
+ text-decoration: none;
+ transition:
+ background 0.15s ease,
+ color 0.15s ease;
+}
+
+.home-nav .nav-menu a:hover,
+.home-nav .nav-menu a:focus-visible {
+ background: rgba(255, 255, 255, 0.06);
+ color: #fff;
+}
+
+.home-nav .nav-mi-title {
+ font-size: 0.92rem;
+ font-weight: 500;
+ letter-spacing: 0.005em;
+}
+
+.home-nav .nav-mi-sub {
+ font-size: 0.78rem;
+ color: rgba(255, 255, 255, 0.45);
+ font-weight: 400;
+}
+
+.home-nav .nav-menu a:hover .nav-mi-sub,
+.home-nav .nav-menu a:focus-visible .nav-mi-sub {
+ color: rgba(255, 255, 255, 0.65);
+}
+
+@media (max-width: 900px) {
+ .home-nav .nav-root {
+ gap: var(--space-md);
+ flex-wrap: wrap;
+ justify-content: flex-end;
+ }
+ .home-nav .nav-menu {
+ left: auto;
+ right: 0;
+ }
+}
+
+/* ── Scroll reveal ── */
+
+.h-reveal {
+ opacity: 0;
+ transform: translateY(20px);
+ transition:
+ opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
+ transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
+}
+
+.h-reveal.revealed {
+ opacity: 1;
+ transform: translateY(0);
+}
+
+/* ── Hero ── */
+
+.h-hero {
+ position: relative;
+ display: grid;
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
+ align-items: center;
+ gap: var(--space-2xl);
+ min-height: 100vh;
+ max-width: 1280px;
+ margin: 0 auto;
+ padding: calc(var(--space-2xl) + 2rem) var(--space-lg) var(--space-2xl);
+ overflow: hidden;
+ isolation: isolate;
+}
+
+.h-hero-bg {
+ position: absolute;
+ inset: 0;
+ pointer-events: none;
+ z-index: 0;
+ overflow: hidden;
+}
+
+.h-hero-grid {
+ position: absolute;
+ inset: -1px;
+ background-image:
+ linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
+ linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
+ background-size: 64px 64px;
+ mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
+ -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
+}
+
+.h-hero-mesh {
+ position: absolute;
+ inset: -20%;
+ background:
+ radial-gradient(40% 50% at 72% 38%, rgba(255, 200, 60, 0.13) 0%, transparent 60%),
+ radial-gradient(35% 45% at 20% 72%, rgba(80, 200, 255, 0.08) 0%, transparent 65%),
+ radial-gradient(55% 40% at 50% 100%, rgba(120, 80, 255, 0.05) 0%, transparent 60%);
+ filter: blur(40px);
+ animation: hMeshDrift 20s ease-in-out infinite alternate;
+}
+
+@keyframes hMeshDrift {
+ 0% {
+ transform: translate3d(0, 0, 0) scale(1);
+ }
+ 50% {
+ transform: translate3d(-2%, 1.5%, 0) scale(1.04);
+ }
+ 100% {
+ transform: translate3d(2%, -1%, 0) scale(1.02);
+ }
+}
+
+.h-hero-glow-a {
+ position: absolute;
+ width: 700px;
+ height: 700px;
+ border-radius: 50%;
+ background: radial-gradient(circle, rgba(255, 200, 60, 0.11) 0%, transparent 65%);
+ top: 38%;
+ right: -6%;
+ transform: translateY(-50%);
+ filter: blur(18px);
+ animation: hBreath 6s ease-in-out infinite;
+}
+
+.h-hero-glow-b {
+ position: absolute;
+ width: 400px;
+ height: 400px;
+ border-radius: 50%;
+ background: radial-gradient(circle, rgba(80, 220, 255, 0.07) 0%, transparent 65%);
+ bottom: -8%;
+ left: -2%;
+ filter: blur(18px);
+ animation: hBreathB 9s ease-in-out infinite;
+}
+
+@keyframes hBreath {
+ 0%,
+ 100% {
+ opacity: 0.85;
+ transform: translateY(-50%) scale(1);
+ }
+ 50% {
+ opacity: 1;
+ transform: translateY(-50%) scale(1.06);
+ }
+}
+
+@keyframes hBreathB {
+ 0%,
+ 100% {
+ opacity: 0.7;
+ transform: scale(1);
+ }
+ 50% {
+ opacity: 1;
+ transform: scale(1.09);
+ }
+}
+
+/* ── Hero content ── */
+
+.h-hero-content {
+ position: relative;
+ z-index: 2;
+}
+
+.h-eyebrow {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.6rem;
+ padding: 0.5rem 1.1rem;
+ background: rgba(255, 175, 60, 0.08);
+ border: 1px solid rgba(255, 175, 60, 0.25);
+ border-radius: 6px;
+ font-size: 0.85rem;
+ color: rgba(255, 220, 150, 0.9);
+ letter-spacing: 0.01em;
+ margin-bottom: var(--space-lg);
+ backdrop-filter: blur(12px);
+ -webkit-backdrop-filter: blur(12px);
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+ font-weight: 500;
+}
+
+.h-eyebrow-dot {
+ width: 6px;
+ height: 6px;
+ border-radius: 50%;
+ background: #4ade80;
+ box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
+ animation: hDotPulse 2.4s ease-out infinite;
+}
+
+@keyframes hDotPulse {
+ 0% {
+ box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
+ }
+ 70% {
+ box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
+ }
+ 100% {
+ box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
+ }
+}
+
+.h-title {
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+ font-size: clamp(3.2rem, 8.5vw, 6.4rem);
+ font-weight: 700;
+ color: #fff;
+ line-height: 0.98;
+ margin: 0 0 var(--space-lg);
+ letter-spacing: -0.04em;
+ text-wrap: balance;
+}
+
+.h-title em {
+ font-style: normal;
+ background: linear-gradient(100deg, #ffd76a 0%, #ff8f4d 25%, #ff5ea0 55%, #b96bff 85%);
+ background-size: 220% 100%;
+ -webkit-background-clip: text;
+ background-clip: text;
+ color: transparent;
+ animation: hTitleShimmer 6s ease-in-out infinite;
+}
+
+@keyframes hTitleShimmer {
+ 0%,
+ 100% {
+ background-position: 0% 50%;
+ }
+ 50% {
+ background-position: 100% 50%;
+ }
+}
+
+.h-subtitle {
+ font-size: clamp(1.1rem, 1.4vw, 1.32rem);
+ color: rgba(255, 255, 255, 0.72);
+ font-weight: 400;
+ line-height: 1.55;
+ max-width: 32em;
+ margin: 0 0 var(--space-xl);
+}
+
+.h-cta-row {
+ display: flex;
+ gap: var(--space-md);
+ flex-wrap: wrap;
+ margin-bottom: var(--space-xl);
+}
+
+.h-btn-primary {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.55em;
+ padding: 0.95rem 1.85rem;
+ background: linear-gradient(135deg, #ffd76a 0%, #ff8f4d 100%);
+ color: #1a0f08;
+ font-size: 0.95rem;
+ font-weight: 600;
+ border-radius: 8px;
+ text-decoration: none;
+ letter-spacing: 0.005em;
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+ transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
+ box-shadow:
+ 0 6px 24px -8px rgba(255, 143, 77, 0.55),
+ 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
+}
+
+.h-btn-primary:hover {
+ transform: translateY(-2px) scale(1.02);
+ box-shadow:
+ 0 12px 32px -8px rgba(255, 143, 77, 0.7),
+ 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
+}
+
+.h-btn-primary .arrow {
+ transition: transform 0.25s ease;
+}
+
+.h-btn-primary:hover .arrow {
+ transform: translateX(3px);
+}
+
+.h-btn-ghost {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.4em;
+ padding: 0.95rem 1.6rem;
+ color: rgba(255, 255, 255, 0.85);
+ font-size: 0.95rem;
+ font-weight: 500;
+ text-decoration: none;
+ letter-spacing: 0.005em;
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+ border: 1px solid rgba(255, 255, 255, 0.18);
+ border-radius: 8px;
+ transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
+ background: rgba(255, 255, 255, 0.03);
+ backdrop-filter: blur(8px);
+ -webkit-backdrop-filter: blur(8px);
+}
+
+.h-btn-ghost:hover {
+ color: #fff;
+ border-color: rgba(255, 215, 106, 0.5);
+ background: rgba(255, 215, 106, 0.06);
+ transform: translateY(-1px);
+}
+
+.h-standards {
+ list-style: none;
+ padding: 0;
+ margin: 0;
+ display: flex;
+ flex-wrap: wrap;
+ gap: var(--space-md) var(--space-lg);
+ font-family: 'JetBrains Mono', monospace;
+ font-size: 0.68rem;
+ color: rgba(255, 255, 255, 0.3);
+ letter-spacing: 0.14em;
+ text-transform: uppercase;
+}
+
+.h-standards li {
+ position: relative;
+}
+
+.h-standards li + li::before {
+ content: '';
+ position: absolute;
+ left: calc(var(--space-lg) * -0.5);
+ top: 50%;
+ width: 2px;
+ height: 2px;
+ border-radius: 50%;
+ background: rgba(255, 255, 255, 0.2);
+ transform: translateY(-50%);
+}
+
+/* ── Hero avatar column ── */
+
+.h-hero-visual {
+ position: relative;
+ z-index: 1;
+ width: 100%;
+ aspect-ratio: 1 / 1;
+ max-width: 600px;
+ justify-self: end;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+.h-avatar-viewer {
+ width: 100%;
+ height: 100%;
+ background: transparent;
+ --poster-color: transparent;
+ border-radius: 50%;
+ outline: none;
+ position: relative;
+ z-index: 2;
+}
+
+.h-avatar-ring {
+ position: absolute;
+ inset: 4%;
+ border-radius: 50%;
+ background: conic-gradient(
+ from 140deg,
+ rgba(255, 200, 60, 0) 0deg,
+ rgba(255, 200, 60, 0.55) 60deg,
+ rgba(255, 100, 180, 0.4) 180deg,
+ rgba(157, 140, 255, 0.35) 260deg,
+ rgba(255, 200, 60, 0) 360deg
+ );
+ filter: blur(1px);
+ opacity: 0.9;
+ animation: hRingSpin 30s linear infinite;
+ mask: radial-gradient(circle, transparent 56%, #000 57%, #000 64%, transparent 65%);
+ -webkit-mask: radial-gradient(circle, transparent 56%, #000 57%, #000 64%, transparent 65%);
+ pointer-events: none;
+ z-index: 1;
+}
+
+@keyframes hRingSpin {
+ to {
+ transform: rotate(360deg);
+ }
+}
+
+.h-avatar-glow {
+ position: absolute;
+ inset: 8%;
+ border-radius: 50%;
+ background:
+ radial-gradient(circle at 50% 50%, rgba(255, 200, 60, 0.12) 0%, transparent 60%),
+ radial-gradient(circle at 40% 70%, rgba(125, 249, 255, 0.07) 0%, transparent 55%);
+ box-shadow: 0 40px 120px -20px rgba(255, 200, 60, 0.16);
+ animation: hBreath 5s ease-in-out infinite;
+ pointer-events: none;
+ z-index: 0;
+}
+
+.h-avatar-badge {
+ position: absolute;
+ bottom: 9%;
+ right: 0;
+ display: inline-flex;
+ align-items: center;
+ gap: 0.6em;
+ padding: 0.5rem 0.9rem;
+ background: rgba(10, 10, 14, 0.72);
+ border: 1px solid rgba(255, 255, 255, 0.07);
+ border-radius: var(--radius-lg);
+ font-family: 'JetBrains Mono', monospace;
+ font-size: 0.68rem;
+ color: rgba(255, 255, 255, 0.75);
+ backdrop-filter: blur(12px);
+ -webkit-backdrop-filter: blur(12px);
+ z-index: 3;
+ box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
+}
+
+.h-avatar-badge-label {
+ color: rgba(255, 215, 0, 0.65);
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ font-size: 0.58rem;
+}
+
+.h-scroll-hint {
+ position: absolute;
+ bottom: var(--space-lg);
+ left: 50%;
+ transform: translateX(-50%);
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 0.5rem;
+ font-family: 'JetBrains Mono', monospace;
+ font-size: 0.58rem;
+ color: rgba(255, 255, 255, 0.22);
+ letter-spacing: 0.25em;
+ text-transform: uppercase;
+ z-index: 2;
+ pointer-events: none;
+}
+
+.h-scroll-line {
+ width: 1px;
+ height: 32px;
+ background: linear-gradient(to bottom, rgba(255, 255, 255, 0.28), transparent);
+ animation: hScrollLine 2.2s ease-in-out infinite;
+ transform-origin: top;
+}
+
+@keyframes hScrollLine {
+ 0% {
+ transform: scaleY(0);
+ opacity: 0;
+ }
+ 40% {
+ opacity: 1;
+ }
+ 100% {
+ transform: scaleY(1);
+ opacity: 0;
+ }
+}
+
+/* ── Section base ── */
+
+.h-section {
+ padding: var(--space-2xl) var(--space-lg);
+ max-width: 1080px;
+ margin: 0 auto;
+}
+
+.h-section-dark {
+ max-width: none;
+ background: rgba(255, 255, 255, 0.018);
+ border-top: 1px solid rgba(255, 255, 255, 0.04);
+ border-bottom: 1px solid rgba(255, 255, 255, 0.04);
+ padding: var(--space-2xl) var(--space-lg);
+}
+
+.h-section-dark > .h-section-inner {
+ max-width: 1080px;
+ margin: 0 auto;
+}
+
+.h-section-label {
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+ font-size: 0.78rem;
+ color: rgba(255, 175, 60, 0.85);
+ letter-spacing: 0.18em;
+ text-transform: uppercase;
+ margin: 0 0 1rem;
+ text-align: center;
+ font-weight: 600;
+}
+
+.h-section-title {
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+ font-size: clamp(2.2rem, 4.2vw, 3.6rem);
+ font-weight: 700;
+ color: #fff;
+ line-height: 1.05;
+ margin: 0 0 var(--space-md);
+ text-align: center;
+ letter-spacing: -0.03em;
+ text-wrap: balance;
+}
+
+.h-section-sub {
+ font-size: var(--text-base);
+ color: rgba(255, 255, 255, 0.4);
+ font-weight: 300;
+ text-align: center;
+ max-width: 36em;
+ margin: 0 auto var(--space-2xl);
+ line-height: var(--leading-normal);
+}
+
+/* ── Steps ── */
+
+.h-steps {
+ display: grid;
+ grid-template-columns: repeat(3, 1fr);
+ gap: var(--space-xl);
+ position: relative;
+}
+
+.h-steps::before {
+ content: '';
+ position: absolute;
+ top: 1.8rem;
+ left: calc(33.333% + 1rem);
+ right: calc(33.333% + 1rem);
+ height: 1px;
+ background: linear-gradient(to right, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.08));
+}
+
+.h-step {
+ padding: var(--space-lg);
+ border: 1px solid rgba(255, 255, 255, 0.06);
+ border-radius: var(--radius-lg);
+ transition:
+ border-color 0.3s ease,
+ transform 0.3s ease;
+ position: relative;
+}
+
+.h-step:hover {
+ border-color: rgba(255, 255, 255, 0.12);
+ transform: translateY(-2px);
+}
+
+.h-step-num {
+ font-family: 'JetBrains Mono', monospace;
+ font-size: var(--text-2xl);
+ font-weight: 600;
+ color: rgba(255, 215, 0, 0.13);
+ line-height: 1;
+ margin-bottom: var(--space-sm);
+}
+
+.h-step h3 {
+ color: #fff;
+ font-size: var(--text-lg);
+ font-weight: 500;
+ margin: 0 0 var(--space-xs);
+}
+
+.h-step p {
+ color: rgba(255, 255, 255, 0.42);
+ font-size: var(--text-sm);
+ line-height: var(--leading-normal);
+ margin: 0;
+}
+
+/* ── Feature rows (alternating, Avaturn-style) ── */
+
+.h-feature {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: var(--space-2xl);
+ align-items: center;
+ padding: var(--space-2xl) var(--space-lg);
+ max-width: 1080px;
+ margin: 0 auto;
+}
+
+.h-feature.h-feature-flip {
+ direction: rtl;
+}
+
+.h-feature.h-feature-flip > * {
+ direction: ltr;
+}
+
+.h-feature-text h3 {
+ font-size: clamp(1.5rem, 2.5vw, 2.2rem);
+ font-weight: 600;
+ color: #fff;
+ line-height: 1.1;
+ margin: 0 0 var(--space-md);
+ letter-spacing: -0.02em;
+}
+
+.h-feature-text p {
+ font-size: var(--text-base);
+ color: rgba(255, 255, 255, 0.45);
+ font-weight: 300;
+ line-height: var(--leading-normal);
+ margin: 0 0 var(--space-lg);
+}
+
+.h-feature-link {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.4em;
+ font-size: var(--text-sm);
+ color: rgba(255, 215, 0, 0.75);
+ text-decoration: none;
+ letter-spacing: 0.02em;
+ transition:
+ color 0.2s ease,
+ gap 0.2s ease;
+}
+
+.h-feature-link:hover {
+ color: #ffd76a;
+ gap: 0.7em;
+}
+
+.h-feature-visual {
+ border-radius: var(--radius-lg);
+ background: rgba(255, 255, 255, 0.02);
+ border: 1px solid rgba(255, 255, 255, 0.06);
+ overflow: hidden;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ min-height: 280px;
+ position: relative;
+}
+
+.h-feature-visual model-viewer {
+ width: 100%;
+ height: 320px;
+ background: transparent;
+ --poster-color: transparent;
+}
+
+/* Widget preview card */
+.h-widget-preview {
+ padding: var(--space-lg);
+ width: 100%;
+}
+
+.h-widget-card {
+ background: rgba(255, 255, 255, 0.03);
+ border: 1px solid rgba(255, 255, 255, 0.07);
+ border-radius: var(--radius-lg);
+ padding: var(--space-md);
+ margin-bottom: var(--space-sm);
+}
+
+.h-widget-card-label {
+ font-family: 'JetBrains Mono', monospace;
+ font-size: 0.65rem;
+ color: rgba(255, 215, 0, 0.6);
+ letter-spacing: 0.12em;
+ text-transform: uppercase;
+ margin-bottom: var(--space-xs);
+}
+
+.h-widget-card-title {
+ color: #fff;
+ font-size: var(--text-sm);
+ font-weight: 500;
+ margin-bottom: var(--space-xs);
+}
+
+.h-widget-card-desc {
+ color: rgba(255, 255, 255, 0.35);
+ font-size: 0.75rem;
+}
+
+.h-embed-code {
+ background: #0a0a0a;
+ border: 1px solid rgba(255, 255, 255, 0.05);
+ border-radius: var(--radius-sm);
+ padding: var(--space-sm) var(--space-md);
+ font-family: 'JetBrains Mono', monospace;
+ font-size: 0.68rem;
+ color: rgba(255, 255, 255, 0.45);
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ margin-top: var(--space-sm);
+}
+
+.h-embed-code .tag {
+ color: rgba(125, 200, 255, 0.8);
+}
+.h-embed-code .attr {
+ color: rgba(168, 204, 140, 0.8);
+}
+
+/* Identity card */
+.h-identity-card {
+ padding: var(--space-lg);
+ width: 100%;
+}
+
+.h-id-header {
+ display: flex;
+ align-items: center;
+ gap: var(--space-sm);
+ margin-bottom: var(--space-md);
+}
+
+.h-id-dot {
+ width: 8px;
+ height: 8px;
+ border-radius: 50%;
+ background: #4ade80;
+}
+
+.h-id-title {
+ font-family: 'JetBrains Mono', monospace;
+ font-size: 0.7rem;
+ color: rgba(255, 255, 255, 0.5);
+ letter-spacing: 0.08em;
+}
+
+.h-id-row {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: var(--space-xs) 0;
+ border-bottom: 1px solid rgba(255, 255, 255, 0.04);
+ font-size: 0.75rem;
+}
+
+.h-id-row:last-child {
+ border-bottom: none;
+}
+
+.h-id-key {
+ font-family: 'JetBrains Mono', monospace;
+ color: rgba(255, 255, 255, 0.3);
+ letter-spacing: 0.05em;
+}
+
+.h-id-val {
+ color: rgba(255, 255, 255, 0.65);
+ font-family: 'JetBrains Mono', monospace;
+ font-size: 0.7rem;
+}
+
+.h-id-val.gold {
+ color: rgba(255, 215, 0, 0.7);
+}
+
+/* ── Final CTA ── */
+
+.h-cta-section {
+ position: relative;
+ z-index: 30;
+ text-align: center;
+ padding: clamp(5rem, 12vh, 10rem) var(--space-lg);
+ background:
+ radial-gradient(ellipse at 50% 0%, rgba(255, 175, 60, 0.18) 0%, transparent 50%),
+ radial-gradient(ellipse at 50% 100%, rgba(140, 80, 220, 0.12) 0%, transparent 50%),
+ linear-gradient(180deg, rgba(26, 14, 8, 0.6) 0%, #06070b 80%);
+ overflow: hidden;
+}
+
+.h-cta-section::before {
+ content: '';
+ position: absolute;
+ top: 0;
+ left: 50%;
+ width: 1px;
+ height: 60px;
+ background: linear-gradient(to bottom, transparent, rgba(255, 175, 60, 0.6), transparent);
+ transform: translateX(-50%);
+}
+
+.h-cta-section h2 {
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+ font-size: clamp(2.6rem, 6vw, 4.6rem);
+ font-weight: 700;
+ color: #fff;
+ line-height: 1;
+ margin: 0 0 1.2rem;
+ letter-spacing: -0.035em;
+ text-wrap: balance;
+}
+
+.h-cta-section p {
+ font-size: 1.15rem;
+ color: rgba(255, 255, 255, 0.6);
+ margin: 0 0 2rem;
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+}
+
+.h-cta-row-center {
+ display: flex;
+ gap: var(--space-md);
+ justify-content: center;
+ flex-wrap: wrap;
+}
+
+/* ── Footer base (overridden by .h-footer-horizon above) ── */
+
+.h-footer {
+ position: static;
+ padding: var(--space-xl) var(--space-lg);
+ pointer-events: auto;
+}
+
+/* ── Responsive ── */
+
+@media (prefers-reduced-motion: reduce) {
+ .h-hero-mesh,
+ .h-hero-glow-a,
+ .h-hero-glow-b,
+ .h-avatar-ring,
+ .h-avatar-glow,
+ .h-eyebrow-dot,
+ .h-title em,
+ .h-scroll-line,
+ .h-star-canvas {
+ animation: none !important;
+ }
+
+ .home-parallax {
+ perspective: none;
+ height: auto;
+ overflow: visible;
+ }
+
+ .h-hero-act {
+ height: auto;
+ min-height: 100vh;
+ }
+
+ .h-layer {
+ transform: none;
+ animation: none;
+ }
+
+ .h-hero-text {
+ position: relative;
+ height: auto;
+ margin-bottom: 0;
+ }
+}
+
+@media screen and (max-width: 768px) {
+ .home-parallax {
+ perspective: none;
+ height: auto;
+ overflow: visible;
+ }
+
+ .h-hero-act {
+ height: auto;
+ min-height: 100vh;
+ }
+
+ .h-layer {
+ transform: none;
+ animation: none;
+ position: absolute;
+ }
+
+ .h-avatar-stage {
+ position: relative;
+ height: 55vw;
+ min-height: 280px;
+ }
+
+ .h-avatar-wrap {
+ width: clamp(240px, 70vw, 360px);
+ }
+
+ .h-hero-text {
+ position: relative;
+ height: auto;
+ margin-bottom: 0;
+ padding: var(--space-lg) var(--space-md) var(--space-xl);
+ text-align: center;
+ }
+
+ .h-cta-row {
+ justify-content: center;
+ }
+
+ .h-standards {
+ justify-content: center;
+ }
+
+ .h-cta-row {
+ justify-content: center;
+ }
+
+ .h-standards {
+ justify-content: center;
+ }
+
+ .h-steps {
+ grid-template-columns: 1fr;
+ gap: var(--space-md);
+ }
+
+ .h-steps::before {
+ display: none;
+ }
+
+ .h-feature {
+ grid-template-columns: 1fr;
+ gap: var(--space-lg);
+ padding: var(--space-xl) var(--space-md);
+ }
+
+ .h-feature.h-feature-flip {
+ direction: ltr;
+ }
+
+ .h-section {
+ padding: var(--space-xl) var(--space-md);
+ }
+
+ .h-section-dark {
+ padding: var(--space-xl) var(--space-md);
+ }
+
+ .h-scroll-hint {
+ display: none;
+ }
+}
diff --git a/public/pumpfun.html b/public/pumpfun.html
index 5711acac5..f358631bc 100644
--- a/public/pumpfun.html
+++ b/public/pumpfun.html
@@ -818,26 +818,41 @@
const current = Number(ev.usd_market_cap ?? ev.market_cap_usd ?? ev.market_cap) || 0;
const mult = initial && current ? current / initial : 1;
const dur = Math.min(9000, Math.max(4500, 4500 + Math.log10(Math.max(mult, 1)) * 1500));
+ const mcPart = current > 0 ? ` at ${formatMcSpoken(current)} market cap` : '';
+ const ageWord = ev.age ? ` after ${ageWordSpoken(ev.age)}` : '';
+ const launchesPart = ev.creator_launches && ev.creator_launches > 1
+ ? ` Dev's ${ordinalSpoken(ev.creator_launches)} launch.`
+ : '';
return {
emote: { trigger: 'celebration', weight: 0.95 },
gesture: { name: 'rumba', duration: dur },
- speak: { text: `Migration: ${sym} bonded to PumpAMM.`, sentiment: 0.7 },
+ speak: { text: `${sym} bonded to PumpAMM${mcPart}${ageWord}.${launchesPart}`, sentiment: 0.7 },
priority: 90,
};
}
if (kind === 'claim') {
- if (ev.fake_claim) return {
- emote: { trigger: 'concern', weight: 0.75 },
- gesture: { name: 'shake', duration: 1500 },
- priority: 70,
- };
+ if (ev.fake_claim) {
+ const who = ev.github_user ? '@' + ev.github_user : shortAddrLocal(ev.claimer);
+ return {
+ emote: { trigger: 'concern', weight: 0.75 },
+ gesture: { name: 'shake', duration: 1500 },
+ speak: { text: `Fake claim from ${who}.`, sentiment: -0.6 },
+ priority: 70,
+ };
+ }
if (ev.first_time_claim) {
- const linked = !!(ev.github_user || ev.github_repo);
+ const linked = !!(ev.github_user || ev.github_repo || ev.github_account_age_days != null);
const verified = ev.verified ?? ev.signal_verified;
const name = linked ? (verified ? 'thriller' : 'silly') : 'celebrate';
+ const sym = ev.token_symbol || ev.symbol;
+ const who = linked ? '@' + ev.github_user : shortAddrLocal(ev.claimer || ev.creator);
return {
emote: { trigger: 'celebration', weight: 0.95 },
gesture: { name, duration: 5000 },
+ speak: {
+ text: `First-time claim by ${who}${sym ? ' on $' + sym : ''}${ev.ai_take ? ' — ' + ev.ai_take : ''}.`,
+ sentiment: 0.75,
+ },
priority: 85,
};
}
@@ -889,6 +904,13 @@
return ev?.mint === params.mint || ev?.token_mint === params.mint;
}
+ function shortAddrLocal(s) {
+ const str = String(s || '');
+ if (!str) return 'unknown';
+ if (str.length <= 12) return str;
+ return `${str.slice(0, 4)}…${str.slice(-4)}`;
+ }
+
function fmtUsd(n) {
if (n == null) return '';
return '$' + Number(n).toLocaleString(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2 });
@@ -897,6 +919,33 @@
if (n == null) return '';
return Number(n).toFixed(3) + ' SOL';
}
+ // Speech-friendly market-cap formatter — "$245k", "$1.2 million", "$24 thousand".
+ function formatMcSpoken(n) {
+ n = Number(n);
+ if (!isFinite(n) || n <= 0) return '';
+ if (n >= 1_000_000_000) return `$${(n / 1_000_000_000).toFixed(1)} billion`;
+ if (n >= 1_000_000) return `$${(n / 1_000_000).toFixed(1)} million`;
+ if (n >= 1_000) return `$${Math.round(n / 1_000)} thousand`;
+ return `$${Math.round(n)}`;
+ }
+ // Convert a compact age tag like "3m" / "2h" / "1d" into spoken words
+ // the TTS layer reads naturally ("3 minutes", "2 hours").
+ function ageWordSpoken(age) {
+ const m = String(age || '').match(/^(\d+)([smhd])$/);
+ if (!m) return age || '';
+ const n = Number(m[1]);
+ const unit = { s: 'second', m: 'minute', h: 'hour', d: 'day' }[m[2]];
+ return `${n} ${unit}${n === 1 ? '' : 's'}`;
+ }
+ function ordinalSpoken(n) {
+ const i = Math.abs(Math.floor(Number(n) || 0));
+ if (i === 1) return 'first';
+ if (i === 2) return 'second';
+ if (i === 3) return 'third';
+ const s = ['th', 'st', 'nd', 'rd'];
+ const v = i % 100;
+ return i + (s[(v - 20) % 10] || s[v] || s[0]);
+ }
function timeAgo(ts) {
if (!ts) return '';
const s = Math.floor(Date.now() / 1000) - ts;
diff --git a/publish/src/app.js b/publish/src/app.js
index 48f2dc6c9..294312e40 100644
--- a/publish/src/app.js
+++ b/publish/src/app.js
@@ -1127,9 +1127,14 @@ class App {
}
_postToParent(msg) {
- if (window.parent && window.parent !== window) {
- window.parent.postMessage(msg, '*');
+ if (!window.parent || window.parent === window) return;
+ if (!this._parentOrigin) {
+ try {
+ if (document.referrer) this._parentOrigin = new URL(document.referrer).origin;
+ } catch {}
}
+ if (!this._parentOrigin) return;
+ window.parent.postMessage(msg, this._parentOrigin);
}
_initNichAgent() {
diff --git a/publish/src/embed-host-bridge.js b/publish/src/embed-host-bridge.js
index 8aa263bc7..523c9c338 100644
--- a/publish/src/embed-host-bridge.js
+++ b/publish/src/embed-host-bridge.js
@@ -196,6 +196,6 @@ export class EmbedHostBridge {
this._pending.clear();
this._outQueue = [];
this._evtBuffer = [];
- this._rejectReady?.(new Error('EmbedHostBridge: destroyed'));
+ if (!this._ready) this._rejectReady?.(new Error('EmbedHostBridge: destroyed'));
}
}
diff --git a/rider/src/components/menu-mode.js b/rider/src/components/menu-mode.js
index 37773ee02..6ae675823 100644
--- a/rider/src/components/menu-mode.js
+++ b/rider/src/components/menu-mode.js
@@ -27,6 +27,37 @@ AFRAME.registerComponent('multiplayer-button', {
}
});
+/**
+ * Click prompts for a 4-char room code and dispatches mpjoin.
+ * Falls back to window.prompt — works in 2D viewer + Quest browser.
+ */
+AFRAME.registerComponent('multiplayer-join-button', {
+ init: function () {
+ this.el.addEventListener('click', () => {
+ const code = window.prompt('Enter 4-letter room code:');
+ if (!code) { return; }
+ const normalized = code.toUpperCase().trim().slice(0, 4);
+ this.el.sceneEl.emit('mpcodeinput', normalized, false);
+ this.el.sceneEl.emit('mpjoin', { code: normalized }, false);
+ });
+ }
+});
+
+/**
+ * Click toggles the local player's ready flag.
+ */
+AFRAME.registerComponent('multiplayer-ready-button', {
+ init: function () {
+ this.el.addEventListener('click', () => {
+ const sceneEl = this.el.sceneEl;
+ const state = sceneEl.systems.state.state;
+ const me = state.multiplayer.players.find(p => p.uid === state.multiplayer.uid);
+ const next = me ? !me.ready : true;
+ sceneEl.emit('mpready', { value: next }, false);
+ });
+ }
+});
+
AFRAME.registerComponent('menu-mode', {
schema: {
colorScheme: {default: 'default'},
diff --git a/rider/src/components/multiplayer.js b/rider/src/components/multiplayer.js
index 341cde354..cc8efcfaf 100644
--- a/rider/src/components/multiplayer.js
+++ b/rider/src/components/multiplayer.js
@@ -63,6 +63,14 @@ AFRAME.registerComponent('multiplayer', {
sceneEl.addEventListener('songcomplete', this.onSongComplete);
// Capture phase so we read menuSelectedChallenge before the state handler clears it.
sceneEl.addEventListener('playbuttonclick', this.onPlayButtonClick, true);
+
+ const autoJoin = AFRAME.utils.getUrlParameter('mpjoin');
+ if (autoJoin) {
+ setTimeout(() => {
+ sceneEl.emit('mpopen', null, false);
+ sceneEl.emit('mpjoin', { code: autoJoin }, false);
+ }, 250);
+ }
},
_ensureClient: function () {
diff --git a/rider/src/scene.html b/rider/src/scene.html
index af3913155..389f6ff54 100644
--- a/rider/src/scene.html
+++ b/rider/src/scene.html
@@ -31,6 +31,7 @@
inspector="url: http://localhost:3333/dist/aframe-inspector.js"
{% endif %}
leaderboard="apiKey: {{ firekey }}; authDomain: {{ firestore }}.firebaseapp.com; databaseURL: https://{{ firestore }}.firebaseio.com; projectId: {{ firestore }}; storageBucket: {{ firestore }}.appspot.com; messagingSenderId: 172125624222"
+ multiplayer="apiKey: {{ firekey }}; authDomain: {{ firestore }}.firebaseapp.com; databaseURL: https://{{ firestore }}.firebaseio.com; projectId: {{ firestore }}; storageBucket: {{ firestore }}.appspot.com; messagingSenderId: 172125624222"
loading-screen="backgroundColor: #000"
pool__beat-arrow-blue="mixin: arrowBlueBeat; size: 30; container: #beatContainer; dynamic: true"
pool__beat-arrow-red="mixin: arrowRedBeat; size: 30; container: #beatContainer; dynamic: true"
@@ -86,6 +87,7 @@
<require path="templates/modes.html"></require>
<require path="templates/victory.html"></require>
<require path="templates/leaderboard.html"></require>
+ <require path="templates/multiplayerLobby.html"></require>
<require path="templates/news.html"></require>
<a-mixin
diff --git a/rider/src/templates/menu.html b/rider/src/templates/menu.html
index b78aeb507..c50afd9bd 100644
--- a/rider/src/templates/menu.html
+++ b/rider/src/templates/menu.html
@@ -1,6 +1,5 @@
<!-- Macro is a templating function. It is rendered into the HTML below with searchResults(). -->
{% macro searchResults () %}
-<!-- TODO: Sort the layout based on the IDs. -->
<a-entity id="searchResultList"
bind-for="for: item; in: searchResultsPage; key: id; template: #searchResultTemplate; updateInPlace: true; pool: 6; delay: 25"
layout="type: box; columns: 1; marginRow: -0.2; orderAttribute: data-index" search-result-list position="0 0.644 0">
@@ -150,7 +149,7 @@
</a-entity>
<a-entity id="playButton"
- bind__visible-raycastable="menuActive && !!menuSelectedChallenge.id && !genreMenuOpen && !difficultyFilterMenuOpen && !isIOS && !hasSongLoadError"
+ bind__visible-raycastable="menuActive && !!menuSelectedChallenge.id && !genreMenuOpen && !difficultyFilterMenuOpen && !isIOS && !hasSongLoadError && mpHostControl"
geometry="primitive: plane; width: 0.7; height: 0.25"
play-sound="event: mouseenter; sound: #hoverSound; volume: 0.03"
play-sound__click="event: click; sound: #confirmSound; volume: 0.25" position="0 -0.561 0"
diff --git a/rider/src/templates/modes.html b/rider/src/templates/modes.html
index 805d94a93..8c6319e51 100644
--- a/rider/src/templates/modes.html
+++ b/rider/src/templates/modes.html
@@ -86,6 +86,30 @@
{{ mode(0, 'punch', 'punch', '#modePunchImg', 'Punch the beats, mind\ncolor.\n\nAvoid all things yellow.\n\nPunch harder\n for better score.', true) }}
{{ mode(1, 'ride', 'ride', '#modeRideImg', 'Relax and enjoy the ride.\n\nTake a quick breather.\n\nNo score!', true) }}
{{ mode(2, 'classic', 'classic', '#modeClassicImg', 'Cut the beats, mind\ncolor and direction.\n\nAvoid all things yellow.\n\nSwing fast and accurate\nfor better score.', true) }}
+
+ <a-entity
+ id="modeMultiplayer"
+ class="modeItem"
+ multiplayer-button
+ position="0 -1.50 0">
+ <a-entity
+ bind-toggle__raycastable="menuActive && hasVR"
+ position="0 0 -0.01"
+ geometry="primitive: plane; width: 3; height: 0.55"
+ material="shader: panelShader; brightness: 0.1; ratio: 5.5; borderWidth: 0.002"
+ mixin="modeBackgroundHover modeBackgroundSelect"></a-entity>
+ <a-entity
+ mixin="font"
+ text="align: left; value: MULTIPLAYER; lineHeight: 45; width: 2.6; color: #FFF"
+ render-order="menutext"
+ position="-1.0 0.00 0"></a-entity>
+ <a-entity
+ mixin="font"
+ bind__text="color: colorPrimary"
+ text="value: Race a friend in real time.\nCreate a room or join with a code.; width: 1.6; lineHeight: 47"
+ render-order="menutext"
+ position="0.50 0.00 0"></a-entity>
+ </a-entity>
</a-entity>
<a-entity
diff --git a/rider/src/templates/multiplayerLobby.html b/rider/src/templates/multiplayerLobby.html
new file mode 100644
index 000000000..e160089f6
--- /dev/null
+++ b/rider/src/templates/multiplayerLobby.html
@@ -0,0 +1,223 @@
+<!--
+ Multiplayer lobby panel. Visible while menuActive and multiplayer.lobbyOpen.
+ Sits in front of the main menu so users can still pick songs (host) while
+ seeing the room status.
+-->
+<a-entity
+ id="multiplayerLobby"
+ bind__visible="mpLobbyVisible"
+ position="0 1.55 -1.4"
+ rotation="0 0 0"
+ render-order="menu">
+
+ <!-- Background panel -->
+ <a-entity
+ id="mpLobbyBg"
+ bind-toggle__raycastable="mpLobbyVisible"
+ geometry="primitive: plane; width: 1.6; height: 1.05"
+ material="shader: panelShader; brightness: 0.18; ratio: 1.52; borderWidth: 0.005; borderRadius: 0.04"
+ render-order="menu"
+ position="0 0 -0.02"></a-entity>
+
+ <!-- Title -->
+ <a-entity
+ mixin="font"
+ text="align: center; value: MULTIPLAYER; width: 1.4; lineHeight: 50; color: #FFF"
+ render-order="menutext"
+ position="0 0.45 0"></a-entity>
+
+ <!-- Room code display -->
+ <a-entity
+ mixin="font"
+ bind__text="value: mpRoomCodeText; color: colorSecondaryBright"
+ text="align: center; width: 1.4; lineHeight: 80"
+ render-order="menutext"
+ position="0 0.30 0"></a-entity>
+
+ <!-- Status / instructions line -->
+ <a-entity
+ mixin="font"
+ bind__text="value: mpStatusText; color: colorPrimary"
+ text="align: center; width: 1.4; wrapCount: 36"
+ render-order="menutext"
+ position="0 0.18 0"></a-entity>
+
+ <!-- Player list -->
+ <a-entity position="0 -0.05 0">
+ <a-entity
+ mixin="font"
+ text="align: left; value: PLAYERS; width: 1.0; lineHeight: 60; color: #888"
+ render-order="menutext"
+ position="-0.55 0.10 0"></a-entity>
+ <a-entity
+ mixin="font"
+ bind__text="value: multiplayer.opponentText || 'You'"
+ text="align: left; width: 1.0; lineHeight: 50; color: #FFF"
+ render-order="menutext"
+ position="-0.55 0.00 0"></a-entity>
+ <a-entity
+ mixin="font"
+ bind__text="value: multiplayer.opponentScores"
+ text="align: right; width: 1.0; lineHeight: 50; color: #FFF"
+ render-order="menutext"
+ position="0.55 0.00 0"></a-entity>
+ </a-entity>
+
+ <!-- Action buttons row (idle: create / join input; in-room: leave) -->
+ <a-entity position="0 -0.36 0">
+
+ <!-- CREATE button: visible when no room joined -->
+ <a-entity
+ class="mpBtn"
+ bind__visible="!multiplayer.roomCode"
+ bind-toggle__raycastable="mpLobbyVisible && !multiplayer.roomCode"
+ position="-0.40 0 0"
+ mixin="modeBackgroundHover"
+ geometry="primitive: plane; width: 0.65; height: 0.18"
+ material="shader: panelShader; brightness: 0.25; ratio: 3.6; borderWidth: 0.004"
+ proxy-event="event: click; as: mpcreate; to: a-scene"
+ play-sound__click="event: click; sound: #confirmSound; volume: 0.1">
+ <a-entity
+ mixin="font"
+ text="align: center; value: CREATE ROOM; width: 0.6; lineHeight: 60; color: #FFF"
+ render-order="menutext"
+ position="0 0 0.001"></a-entity>
+ </a-entity>
+
+ <!-- JOIN button: visible when no room joined; uses last typed code -->
+ <a-entity
+ class="mpBtn"
+ bind__visible="!multiplayer.roomCode"
+ bind-toggle__raycastable="mpLobbyVisible && !multiplayer.roomCode"
+ position="0.40 0 0"
+ mixin="modeBackgroundHover"
+ geometry="primitive: plane; width: 0.65; height: 0.18"
+ material="shader: panelShader; brightness: 0.25; ratio: 3.6; borderWidth: 0.004"
+ multiplayer-join-button
+ play-sound__click="event: click; sound: #confirmSound; volume: 0.1">
+ <a-entity
+ mixin="font"
+ bind__text="value: multiplayer.joinCodeInput ? ('JOIN ' + multiplayer.joinCodeInput) : 'JOIN ROOM'"
+ text="align: center; width: 0.6; lineHeight: 60; color: #FFF"
+ render-order="menutext"
+ position="0 0 0.001"></a-entity>
+ </a-entity>
+
+ <!-- READY toggle when in lobby -->
+ <a-entity
+ class="mpBtn"
+ bind__visible="!!multiplayer.roomCode && multiplayer.status === 'lobby'"
+ bind-toggle__raycastable="!!multiplayer.roomCode && multiplayer.status === 'lobby'"
+ position="-0.40 0 0"
+ mixin="modeBackgroundHover"
+ geometry="primitive: plane; width: 0.65; height: 0.18"
+ material="shader: panelShader; brightness: 0.25; ratio: 3.6; borderWidth: 0.004"
+ multiplayer-ready-button
+ play-sound__click="event: click; sound: #confirmSound; volume: 0.1">
+ <a-entity
+ mixin="font"
+ text="align: center; value: READY; width: 0.6; lineHeight: 60; color: #FFF"
+ render-order="menutext"
+ position="0 0 0.001"></a-entity>
+ </a-entity>
+
+ <!-- LEAVE: visible when in a room -->
+ <a-entity
+ class="mpBtn"
+ bind__visible="!!multiplayer.roomCode"
+ bind-toggle__raycastable="!!multiplayer.roomCode"
+ position="0.40 0 0"
+ mixin="modeBackgroundHover"
+ geometry="primitive: plane; width: 0.65; height: 0.18"
+ material="shader: panelShader; brightness: 0.18; ratio: 3.6; borderWidth: 0.004"
+ proxy-event="event: click; as: mpleave; to: a-scene"
+ play-sound__click="event: click; sound: #confirmSound; volume: 0.1">
+ <a-entity
+ mixin="font"
+ text="align: center; value: LEAVE; width: 0.6; lineHeight: 60; color: #888"
+ render-order="menutext"
+ position="0 0 0.001"></a-entity>
+ </a-entity>
+
+ </a-entity>
+
+ <!-- Close MP mode entirely -->
+ <a-entity
+ class="mpBtn"
+ bind__visible="mpLobbyVisible"
+ bind-toggle__raycastable="mpLobbyVisible && !multiplayer.roomCode"
+ position="0 -0.50 0"
+ proxy-event="event: click; as: mpclose; to: a-scene">
+ <a-entity
+ mixin="font"
+ text="align: center; value: < back to modes; width: 1.2; lineHeight: 60; color: #555"
+ render-order="menutext"></a-entity>
+ </a-entity>
+</a-entity>
+
+
+<!-- In-game opponent HUD: small panel on the side showing live opponent scores. -->
+<a-entity
+ id="mpHud"
+ bind__visible="mpHudVisible"
+ position="-1.35 1.55 -1.0"
+ rotation="0 30 0"
+ render-order="menu">
+ <a-entity
+ geometry="primitive: plane; width: 0.7; height: 0.45"
+ material="shader: panelShader; brightness: 0.1; ratio: 1.55; borderWidth: 0.002"
+ position="0 0 -0.01"></a-entity>
+ <a-entity
+ mixin="font"
+ text="align: left; value: OPPONENTS; width: 0.6; lineHeight: 70; color: #888"
+ position="-0.27 0.18 0"></a-entity>
+ <a-entity
+ mixin="font"
+ bind__text="value: multiplayer.opponentText; color: colorPrimary"
+ text="align: left; width: 0.6; lineHeight: 60"
+ position="-0.27 0.05 0"></a-entity>
+ <a-entity
+ mixin="font"
+ bind__text="value: multiplayer.opponentScores"
+ text="align: right; width: 0.6; lineHeight: 60; color: #FFF"
+ position="0.27 0.05 0"></a-entity>
+</a-entity>
+
+
+<!-- Multiplayer results overlay on victory screen. -->
+<a-entity
+ id="mpResults"
+ bind__visible="mpResultsVisible"
+ position="0 1.05 -1.6"
+ render-order="menu">
+ <a-entity
+ geometry="primitive: plane; width: 1.4; height: 0.5"
+ material="shader: panelShader; brightness: 0.18; ratio: 2.8; borderWidth: 0.004"
+ position="0 0 -0.02"></a-entity>
+ <a-entity
+ mixin="font"
+ text="align: center; value: ROOM RESULTS; width: 1.2; lineHeight: 60; color: #FFF"
+ position="0 0.18 0"></a-entity>
+ <a-entity
+ mixin="font"
+ bind__text="value: multiplayer.opponentText"
+ text="align: left; width: 1.2; lineHeight: 50; color: #FFF"
+ position="-0.55 0.02 0"></a-entity>
+ <a-entity
+ mixin="font"
+ bind__text="value: multiplayer.opponentScores"
+ text="align: right; width: 1.2; lineHeight: 50; color: #FFF"
+ position="0.55 0.02 0"></a-entity>
+ <a-entity
+ bind__visible="multiplayer.isHost"
+ bind-toggle__raycastable="multiplayer.isHost && mpResultsVisible"
+ position="0 -0.18 0"
+ geometry="primitive: plane; width: 0.7; height: 0.12"
+ material="shader: panelShader; brightness: 0.25; ratio: 5.8; borderWidth: 0.003"
+ proxy-event="event: click; as: mprematch; to: a-scene">
+ <a-entity
+ mixin="font"
+ text="align: center; value: REMATCH; width: 0.6; lineHeight: 70; color: #FFF"
+ position="0 0 0.001"></a-entity>
+ </a-entity>
+</a-entity>
diff --git a/scripts/test-pages.mjs b/scripts/test-pages.mjs
index 1829e4a3b..555c47c20 100644
--- a/scripts/test-pages.mjs
+++ b/scripts/test-pages.mjs
@@ -66,6 +66,8 @@ const ROUTES = [
'/settings',
'/admin',
'/pumpfun',
+ '/pump-live.html',
+ '/pump-dashboard.html',
'/strategy-lab',
// Legal
diff --git a/specs/EMBED_SPEC.md b/specs/EMBED_SPEC.md
index 9efb11bd3..08dd76c9f 100644
--- a/specs/EMBED_SPEC.md
+++ b/specs/EMBED_SPEC.md
@@ -329,6 +329,31 @@ The loader script and the element respect `Content-Security-Policy`:
- IPFS gateways are configurable via `<meta name="agent-3d-gateways">`.
- WASM decoders (DRACO, KTX2) hosted at known-stable CDN paths; a self-hosted mode is supported.
+## Bridge origin model (MUST)
+
+The host ↔ iframe bridge enforces strict origin checks on **every** outbound and inbound `postMessage`. Wildcards (`'*'`) are not allowed.
+
+**Host (parent) side**
+
+- `Agent3D.connect(iframe, opts)` derives the iframe origin from `iframe.src`. If the URL has no resolvable origin, `connect()` throws — pass `opts.origin` to override.
+- `EmbedHostBridge` requires an explicit `allowedOrigin`; passing `'*'` (or omitting it) throws.
+- All host → iframe messages target the resolved origin verbatim.
+- Inbound messages are dropped unless `event.source === iframe.contentWindow` **and** `event.origin === allowedOrigin`.
+
+**Iframe (child) side**
+
+- The iframe seeds `parentOrigin` from `document.referrer` for the initial `agent:ready` announcement.
+- The first authenticated host message (matching `agentId` + envelope shape) **locks** `parentOrigin` to `event.origin`. Any later message from a different origin is dropped.
+- All child → parent messages target `parentOrigin`. If the origin cannot be derived, the message is dropped (with a `console.warn`) rather than broadcast with `'*'`.
+
+**Embed-policy interaction**
+
+- `agent_identities.embed_policy.origins` (allowlist/denylist) gates *whether* the iframe loads at all. Once it does, the bridge enforces origin equality on top — the policy and the bridge work together: a denied origin never reaches the bridge, and an allowed origin is still locked to a single value per iframe lifetime.
+
+**Migrating from pre-v1 hosts**
+
+- Pre-v1 hosts that posted with `'*'` continue to work, because the iframe locks to whatever origin those messages arrive on (assuming they reach the iframe at all under modern browser policies). They do **not** benefit from the strict outbound checks until they migrate to `Agent3D.connect()` or `EmbedHostBridge`.
+
## Progressive enhancement
If the script fails to load, the element falls back to:
diff --git a/src/embed-host-bridge.js b/src/embed-host-bridge.js
index 8aa263bc7..523c9c338 100644
--- a/src/embed-host-bridge.js
+++ b/src/embed-host-bridge.js
@@ -196,6 +196,6 @@ export class EmbedHostBridge {
this._pending.clear();
this._outQueue = [];
this._evtBuffer = [];
- this._rejectReady?.(new Error('EmbedHostBridge: destroyed'));
+ if (!this._ready) this._rejectReady?.(new Error('EmbedHostBridge: destroyed'));
}
}
diff --git a/src/widgets/pumpfun-feed.js b/src/widgets/pumpfun-feed.js
index dbd0c24d6..01e33268a 100644
--- a/src/widgets/pumpfun-feed.js
+++ b/src/widgets/pumpfun-feed.js
@@ -101,7 +101,9 @@ export async function mountPumpfunFeed(viewer, config, container, ctx = {}) {
if (!ev) return;
if (!matchesFocus(ev)) return;
addCard(stack, renderClaim(ev), maxCards);
- react('claim', ev);
+ // Replayed (buffered backfill) events render but skip reactions — the
+ // agent shouldn't dance to news that's already minutes old.
+ if (!ev.replay) react('claim', ev);
});
es.addEventListener('graduation', (msg) => {
@@ -109,7 +111,7 @@ export async function mountPumpfunFeed(viewer, config, container, ctx = {}) {
if (!ev) return;
if (!matchesFocus(ev)) return;
addCard(stack, renderGraduation(ev), maxCards);
- react('graduation', ev);
+ if (!ev.replay) react('graduation', ev);
});
es.addEventListener('mint', (msg) => {
@@ -119,7 +121,7 @@ export async function mountPumpfunFeed(viewer, config, container, ctx = {}) {
// Mints don't render their own card in this widget (the card stack is
// claim/graduation focused), but they should still tickle the avatar
// when something notable lands.
- react('mint', ev);
+ if (!ev.replay) react('mint', ev);
});
es.addEventListener('error', () => {
diff --git a/tests/embed-bridge-origin.test.js b/tests/embed-bridge-origin.test.js
new file mode 100644
index 000000000..5cb437d92
--- /dev/null
+++ b/tests/embed-bridge-origin.test.js
@@ -0,0 +1,223 @@
+// Origin-lockdown contract for the host ↔ iframe bridge.
+//
+// Covers:
+// 1. EmbedHostBridge constructor refuses missing / wildcard allowedOrigin
+// 2. EmbedHostBridge ignores incoming messages from other origins
+// 3. EmbedActionBridge (iframe side) refuses to post to '*' and locks
+// parentOrigin to the first valid host message
+// 4. public/embed-sdk.js Agent3D.connect rejects iframes with unresolvable
+// origin and never targets '*'
+
+import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest';
+import { EmbedHostBridge } from '../src/embed-host-bridge.js';
+import { EmbedActionBridge } from '../src/embed-action-bridge.js';
+
+// ── Tiny fakes ──────────────────────────────────────────────────────────────
+
+function makeFakeWindow() {
+ const listeners = new Map();
+ const win = {
+ _listeners: listeners,
+ _postedToParent: [],
+ document: { referrer: 'https://host.example/' },
+ location: { origin: 'https://iframe.example' },
+ addEventListener(type, fn) {
+ if (!listeners.has(type)) listeners.set(type, new Set());
+ listeners.get(type).add(fn);
+ },
+ removeEventListener(type, fn) {
+ listeners.get(type)?.delete(fn);
+ },
+ dispatch(type, event) {
+ for (const fn of listeners.get(type) || []) fn(event);
+ },
+ };
+ win.parent = {
+ postMessage(data, targetOrigin) {
+ win._postedToParent.push({ data, targetOrigin });
+ },
+ };
+ return win;
+}
+
+function makeFakeIframe(src = 'https://iframe.example/agent/abc/embed') {
+ const contentWindow = {
+ _received: [],
+ postMessage(data, targetOrigin) {
+ contentWindow._received.push({ data, targetOrigin });
+ },
+ };
+ return {
+ tagName: 'IFRAME',
+ src,
+ contentWindow,
+ };
+}
+
+// Minimal stand-in for AgentProtocol — only `on`/`off`/`emit` are exercised.
+function makeProtocol() {
+ const handlers = new Set();
+ return {
+ on(_evt, fn) { handlers.add(fn); },
+ off(_evt, fn) { handlers.delete(fn); },
+ emit(action) { for (const fn of handlers) fn(action); },
+ };
+}
+
+// ── EmbedHostBridge ─────────────────────────────────────────────────────────
+
+describe('EmbedHostBridge — allowedOrigin enforcement', () => {
+ let originalWindow;
+
+ beforeEach(() => {
+ originalWindow = globalThis.window;
+ globalThis.window = {
+ _listeners: new Map(),
+ addEventListener(t, fn) {
+ if (!this._listeners.has(t)) this._listeners.set(t, new Set());
+ this._listeners.get(t).add(fn);
+ },
+ removeEventListener(t, fn) { this._listeners.get(t)?.delete(fn); },
+ dispatch(t, ev) { for (const fn of this._listeners.get(t) || []) fn(ev); },
+ };
+ });
+
+ afterEach(() => { globalThis.window = originalWindow; });
+
+ it('throws when allowedOrigin is missing', () => {
+ expect(() => new EmbedHostBridge({
+ iframe: makeFakeIframe(),
+ agentId: 'a1',
+ })).toThrow(/allowedOrigin/);
+ });
+
+ it('throws when allowedOrigin is "*"', () => {
+ expect(() => new EmbedHostBridge({
+ iframe: makeFakeIframe(),
+ agentId: 'a1',
+ allowedOrigin: '*',
+ })).toThrow(/wildcard/i);
+ });
+
+ it('drops messages from other origins', async () => {
+ const iframe = makeFakeIframe();
+ const bridge = new EmbedHostBridge({
+ iframe,
+ agentId: 'a1',
+ allowedOrigin: 'https://iframe.example',
+ });
+ bridge.ready.catch(() => {}); // we destroy before handshake completes
+ // Inject a fake "ready" event from a foreign origin — must NOT trigger handshake.
+ window.dispatch('message', {
+ source: iframe.contentWindow,
+ origin: 'https://evil.example',
+ data: { v: 1, source: 'agent-3d', kind: 'event', op: 'ready', payload: {} },
+ });
+ // No ping was sent because the foreign-origin "ready" was dropped.
+ expect(iframe.contentWindow._received).toHaveLength(0);
+ bridge.destroy();
+ });
+
+ it('completes handshake on a same-origin ready/pong', async () => {
+ const iframe = makeFakeIframe();
+ const bridge = new EmbedHostBridge({
+ iframe,
+ agentId: 'a1',
+ allowedOrigin: 'https://iframe.example',
+ });
+ window.dispatch('message', {
+ source: iframe.contentWindow,
+ origin: 'https://iframe.example',
+ data: { v: 1, source: 'agent-3d', kind: 'event', op: 'ready', payload: {} },
+ });
+ // Handshake step 1 — host sent ping
+ expect(iframe.contentWindow._received).toHaveLength(1);
+ const ping = iframe.contentWindow._received[0];
+ expect(ping.targetOrigin).toBe('https://iframe.example');
+ expect(ping.data.op).toBe('ping');
+
+ // Reply with pong from the iframe — handshake completes
+ window.dispatch('message', {
+ source: iframe.contentWindow,
+ origin: 'https://iframe.example',
+ data: {
+ v: 1, source: 'agent-3d', kind: 'response', op: 'pong',
+ inReplyTo: ping.data.id, payload: { capabilities: ['speak'] },
+ },
+ });
+ await expect(bridge.ready).resolves.toMatchObject({ agentId: 'a1' });
+ bridge.destroy();
+ });
+});
+
+// ── EmbedActionBridge (iframe side) ─────────────────────────────────────────
+
+describe('EmbedActionBridge — origin lockdown (iframe side)', () => {
+ it('seeds parent origin from referrer and posts ready without "*"', () => {
+ const win = makeFakeWindow();
+ const bridge = new EmbedActionBridge({
+ protocol: makeProtocol(),
+ manifest: { id: { agentId: 'a1' } },
+ window: win,
+ });
+ bridge.start();
+ expect(win._postedToParent).toHaveLength(1);
+ expect(win._postedToParent[0].targetOrigin).toBe('https://host.example');
+ expect(win._postedToParent[0].targetOrigin).not.toBe('*');
+ bridge.stop();
+ });
+
+ it('locks parent origin to the first valid host message', () => {
+ const win = makeFakeWindow();
+ const bridge = new EmbedActionBridge({
+ protocol: makeProtocol(),
+ manifest: { id: { agentId: 'a1' } },
+ window: win,
+ });
+ bridge.start();
+ win._postedToParent.length = 0;
+
+ // First valid host message arrives from a *different* origin than the
+ // referrer — the bridge should lock onto it for subsequent posts.
+ win.dispatch('message', {
+ source: win.parent,
+ origin: 'https://other-host.example',
+ data: { v: 1, source: 'agent-host', kind: 'request', op: 'ping', id: 'p1' },
+ });
+
+ // Reply (pong) was sent — must target the locked origin.
+ expect(win._postedToParent).toHaveLength(1);
+ expect(win._postedToParent[0].targetOrigin).toBe('https://other-host.example');
+
+ // A subsequent message from yet another origin must be ignored.
+ win._postedToParent.length = 0;
+ win.dispatch('message', {
+ source: win.parent,
+ origin: 'https://evil.example',
+ data: { v: 1, source: 'agent-host', kind: 'request', op: 'ping', id: 'p2' },
+ });
+ expect(win._postedToParent).toHaveLength(0);
+ bridge.stop();
+ });
+
+ it('drops outbound posts when no parent origin is known', () => {
+ const win = makeFakeWindow();
+ win.document.referrer = ''; // no seed
+ win.parent = win; // simulate top-level (not actually iframed)
+ const warn = vi.spyOn(console, 'warn').mockImplementation(() => {});
+ // Restore parent to a proper poster but keep referrer empty for the seed.
+ win.parent = {
+ postMessage(data, targetOrigin) { win._postedToParent.push({ data, targetOrigin }); },
+ };
+ const bridge = new EmbedActionBridge({
+ protocol: makeProtocol(),
+ manifest: { id: { agentId: 'a1' } },
+ window: win,
+ });
+ bridge.start();
+ expect(win._postedToParent).toHaveLength(0);
+ expect(warn).toHaveBeenCalled();
+ warn.mockRestore();
+ bridge.stop();
+ });
+});
diff --git a/tests/pumpkit-helpers.test.js b/tests/pumpkit-helpers.test.js
new file mode 100644
index 000000000..25f1cc7ff
--- /dev/null
+++ b/tests/pumpkit-helpers.test.js
@@ -0,0 +1,161 @@
+// Tests for the pumpkit-derived helpers under api/_lib/{solana,format}.
+
+import { describe, it, expect, vi } from 'vitest';
+
+import {
+ PUMP_PROGRAM_ID,
+ PUMP_AMM_PROGRAM_ID,
+ PUMP_FEE_PROGRAM_ID,
+ WSOL_MINT,
+ MONITORED_PROGRAM_IDS,
+ CREATE_V2_DISCRIMINATOR,
+ TRADE_EVENT_DISCRIMINATOR,
+ matchDiscriminator,
+} from '../api/_lib/solana/programs.js';
+
+import { deriveWsUrl, RpcFallback, createRpcFallback } from '../api/_lib/solana/rpc-fallback.js';
+
+import {
+ link, bold, code, italic,
+ solscanTx, solscanAccount, pumpFunToken, dexScreenerToken,
+ shortenAddress, formatSol, formatUsdc, formatNumber, formatCompact, urls,
+} from '../api/_lib/format/links.js';
+
+import { loadPumpIdl, loadPumpAmmIdl, loadPumpFeesIdl, loadAllPumpIdls } from '../api/_lib/solana/idl.js';
+
+describe('solana/programs', () => {
+ it('exposes canonical mainnet program IDs', () => {
+ expect(PUMP_PROGRAM_ID).toBe('6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P');
+ expect(PUMP_AMM_PROGRAM_ID).toBe('pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA');
+ expect(PUMP_FEE_PROGRAM_ID).toBe('pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ');
+ expect(WSOL_MINT).toBe('So11111111111111111111111111111111111111112');
+ expect(MONITORED_PROGRAM_IDS).toHaveLength(3);
+ expect(Object.isFrozen(MONITORED_PROGRAM_IDS)).toBe(true);
+ });
+
+ it('discriminators are 8-byte buffers', () => {
+ expect(CREATE_V2_DISCRIMINATOR).toHaveLength(8);
+ expect(TRADE_EVENT_DISCRIMINATOR).toHaveLength(8);
+ });
+
+ it('matchDiscriminator identifies known instruction prefixes', () => {
+ const padded = Buffer.concat([CREATE_V2_DISCRIMINATOR, Buffer.alloc(16)]);
+ expect(matchDiscriminator(padded)).toBe('create_v2');
+ expect(matchDiscriminator(TRADE_EVENT_DISCRIMINATOR)).toBe('trade_event');
+ expect(matchDiscriminator(Buffer.from([0, 1, 2, 3, 4, 5, 6, 7]))).toBeNull();
+ expect(matchDiscriminator(Buffer.from([0, 1, 2]))).toBeNull();
+ expect(matchDiscriminator(null)).toBeNull();
+ });
+});
+
+describe('solana/rpc-fallback', () => {
+ it('deriveWsUrl swaps protocols', () => {
+ expect(deriveWsUrl('https://rpc.example.com/solana')).toBe('wss://rpc.example.com/solana');
+ expect(deriveWsUrl('http://localhost:8899')).toBe('ws://localhost:8899');
+ });
+
+ it('throws when constructed without a primary url', () => {
+ expect(() => new RpcFallback({})).toThrow(/primary url/i);
+ });
+
+ it('createRpcFallback returns a working instance', () => {
+ const r = createRpcFallback({ url: 'https://example.com', fallbackUrls: ['https://b.example.com'] });
+ expect(r).toBeInstanceOf(RpcFallback);
+ expect(r.currentUrl).toBe('https://example.com');
+ });
+
+ it('withFallback returns the fn result and reports success', async () => {
+ const r = new RpcFallback({ url: 'https://a' });
+ const res = await r.withFallback(async () => 42);
+ expect(res).toBe(42);
+ expect(r.failCounts[0]).toBe(0);
+ });
+
+ it('withFallback rotates after retryable errors', async () => {
+ const r = new RpcFallback({ url: 'https://a', fallbackUrls: ['https://b'] });
+ const seen = [];
+ const res = await r.withFallback(async () => {
+ seen.push(r.currentUrl);
+ if (r.currentUrl === 'https://a') throw new Error('fetch failed');
+ return 'ok';
+ }).catch((e) => e);
+ expect(seen[0]).toBe('https://a');
+ // after enough failures it should rotate to b and succeed
+ expect(res).toBe('ok');
+ });
+
+ it('withFallback re-throws non-retryable errors immediately', async () => {
+ const r = new RpcFallback({ url: 'https://a', fallbackUrls: ['https://b'] });
+ await expect(r.withFallback(async () => { throw new Error('403 forbidden'); })).rejects.toThrow(/403/);
+ });
+});
+
+describe('format/links', () => {
+ it('produces escaped HTML anchors', () => {
+ expect(link('Hello & World', 'https://x.test/?a=1&b=2'))
+ .toBe('<a href="https://x.test/?a=1&amp;b=2">Hello &amp; World</a>');
+ });
+
+ it('bold/code/italic wrap text', () => {
+ expect(bold('x')).toBe('<b>x</b>');
+ expect(code('x')).toBe('<code>x</code>');
+ expect(italic('x')).toBe('<i>x</i>');
+ });
+
+ it('solscan/pumpfun/dexscreener link helpers point at the right hosts', () => {
+ expect(solscanTx('SIG')).toContain('solscan.io/tx/SIG');
+ expect(solscanAccount('AAAABBBBCCCCDDDDEEEE').toString()).toContain('solscan.io/account/AAAABBBBCCCCDDDDEEEE');
+ expect(pumpFunToken('MINT')).toContain('pump.fun/coin/MINT');
+ expect(dexScreenerToken('MINT')).toContain('dexscreener.com/solana/MINT');
+ expect(urls.solscanTx('S')).toBe('https://solscan.io/tx/S');
+ });
+
+ it('shortenAddress only abbreviates long strings', () => {
+ expect(shortenAddress('short')).toBe('short');
+ expect(shortenAddress('AAAABBBBCCCCDDDD')).toBe('AAAA...DDDD');
+ expect(shortenAddress('AAAABBBBCCCCDDDD', 2)).toBe('AA...DD');
+ });
+
+ it('formatSol scales lamports to SOL with adaptive precision', () => {
+ expect(formatSol(0)).toBe('0.00 SOL');
+ expect(formatSol(100_000_000)).toBe('0.1000 SOL');
+ expect(formatSol(2_500_000_000)).toBe('2.50 SOL');
+ expect(formatSol(1_500_000_000n)).toBe('1.50 SOL');
+ });
+
+ it('formatUsdc renders 6-decimal base units as dollars', () => {
+ expect(formatUsdc(1_500_000)).toBe('$1.50');
+ expect(formatUsdc(1_234_567_890)).toBe('$1,234.57');
+ });
+
+ it('formatCompact uses K/M/B/T suffixes', () => {
+ expect(formatCompact(999)).toBe('999.00');
+ expect(formatCompact(1_500)).toBe('1.50K');
+ expect(formatCompact(1_500_000)).toBe('1.50M');
+ expect(formatCompact(1_500_000_000)).toBe('1.50B');
+ expect(formatCompact(1_500_000_000_000)).toBe('1.50T');
+ });
+
+ it('formatNumber adds thousands separators', () => {
+ expect(formatNumber(1234567)).toBe('1,234,567');
+ });
+});
+
+describe('solana/idl', () => {
+ it('loads each Pump IDL with the expected program metadata', () => {
+ const pump = loadPumpIdl();
+ expect(pump.address || pump.metadata?.address || pump.metadata?.name || pump.name).toBeTruthy();
+ const all = loadAllPumpIdls();
+ expect(all).toHaveProperty('pump');
+ expect(all).toHaveProperty('pump_amm');
+ expect(all).toHaveProperty('pump_fees');
+ expect(loadPumpAmmIdl()).toBe(all.pump_amm);
+ expect(loadPumpFeesIdl()).toBe(all.pump_fees);
+ });
+
+ it('IDLs cache on repeated calls', () => {
+ const a = loadPumpIdl();
+ const b = loadPumpIdl();
+ expect(a).toBe(b);
+ });
+});
diff --git a/three-ws-issue.md b/three-ws-issue.md
new file mode 100644
index 000000000..733398e2b
--- /dev/null
+++ b/three-ws-issue.md
@@ -0,0 +1,86 @@
+# three.ws endpoint issue
+
+## Problem
+
+Your x402 endpoint at `https://three.ws/api/mcp` returns a valid 402 challenge but fails when processing payments.
+
+**What works:**
+
+```
+GET https://three.ws/api/mcp → 402 (correct)
+```
+
+Returns proper x402 payment requirements for both Solana and Base.
+
+**What fails:**
+When a client sends a signed payment via `X-PAYMENT` header, the server returns:
+
+```
+"facilitator /verify 500: No facilitator registered for scheme: exact and network: base"
+```
+
+This means your x402 middleware can issue 402 challenges but has no facilitator configured to verify incoming payments on-chain.
+
+## How to fix
+
+You need to point your x402 middleware at a working facilitator. The public Coinbase facilitator works:
+
+```
+https://facilitator.payai.network
+```
+
+### If you're using `@x402/server` (Node/Express)
+
+```js
+import { x402 } from '@x402/server';
+
+app.use(x402({
+ payTo: '0x0C70c0e8453C5667739E41acdF6eC5787B8ff542',
+ facilitatorUrl: 'https://facilitator.payai.network', // ← add this
+ network: 'base',
+ // ... your other config
+}));
+```
+
+### If you're using `@x402/next` (Next.js/Vercel)
+
+```js
+import { paymentMiddleware } from '@x402/next';
+
+export default paymentMiddleware({
+ payTo: '0x0C70c0e8453C5667739E41acdF6eC5787B8ff542',
+ facilitatorUrl: 'https://facilitator.payai.network', // ← add this
+ network: 'base',
+ // ... your other config
+});
+```
+
+### If you support multiple networks (Solana + Base)
+
+The same facilitator handles both:
+
+```js
+facilitatorUrl: 'https://facilitator.payai.network'
+```
+
+No separate setup needed — it supports `exact` scheme on both `base` and `solana`.
+
+## How we verified
+
+```bash
+# Your 402 challenge works fine
+curl -s https://three.ws/api/mcp
+# → 402 with valid accepts array (solana + base)
+
+# But payment verification fails
+curl -s -X POST https://three.ws/api/mcp \
+ -H "X-PAYMENT: <signed-payment>" \
+ -d '{}'
+# → "No facilitator registered for scheme: exact and network: base"
+
+# The public facilitator at payai.network works
+curl -s -X POST https://facilitator.payai.network/verify \
+ -H "Content-Type: application/json" \
+ -d '{"paymentPayload":{...},"paymentRequirements":{...}}'
+# → proper validation response (not "unsupported network")
+```
diff --git a/vite.config.js b/vite.config.js
index 045fef9d6..b3dc7b2d0 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -56,6 +56,8 @@ const appConfig = {
'agent-embed': resolve(__dirname, 'agent-embed.html'),
'agent-detail': resolve(__dirname, 'agent-detail.html'),
'a-embed': resolve(__dirname, 'a-embed.html'),
+ 'pump-live': resolve(__dirname, 'pump-live.html'),
+ 'pump-dashboard': resolve(__dirname, 'pump-dashboard.html'),
studio: resolve(__dirname, 'public/studio/index.html'),
features: resolve(__dirname, 'public/features/index.html'),
reputation: resolve(__dirname, 'public/reputation/index.html'),