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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
feat: pricing page overhaul, skill-royalty demo, avatar studio demo expansion, CSS refresh
nirholasa5b581791c31
diff --git a/pages/avatar-studio.html b/pages/avatar-studio.htmlindex 88640343d..240b630a2 100644--- a/pages/avatar-studio.html+++ b/pages/avatar-studio.html@@ -16,6 +16,7 @@<meta name="twitter:card" content="summary_large_image" /><link rel="stylesheet" href="/style.css" /><link rel="stylesheet" href="/fonts/fonts.css" />+ <link rel="stylesheet" href="/pricing.css" /><link rel="stylesheet" href="/mobile.css" /><style>@@ -786,6 +787,14 @@<div class="as-chips" id="as-chips" aria-label="Current outfit"></div><div class="as-panel" id="as-panel"></div><div class="as-status" id="as-status">Choose a style below to get started.</div>+ <a href="/pricing" class="upgrade-banner" style="margin:12px 16px;text-decoration:none;">+ <div class="upgrade-banner-icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"/></svg></div>+ <div class="upgrade-banner-text">+ <div class="upgrade-banner-title">Unlock unlimited avatars</div>+ <div class="upgrade-banner-desc">Pro gives you unlimited custom avatars, voice cloning, and priority rendering.</div>+ </div>+ <span class="upgrade-banner-btn">See plans</span>+ </a></aside></main><script src="/src/avatar-studio.js" type="module"></script>diff --git a/pages/aws-marketplace/welcome.html b/pages/aws-marketplace/welcome.htmlindex 0e5a9ecff..c6a62c747 100644--- a/pages/aws-marketplace/welcome.html+++ b/pages/aws-marketplace/welcome.html@@ -7,7 +7,7 @@<meta name="robots" content="noindex" /><link rel="icon" href="/favicon.ico" /><style>- :root { color-scheme: dark; --accent:#6a5cff; --accent2:#ff5ca8; --border:#22222e; --bg:#0b0b10; --panel:#14141c; --text:#e8e8f0; --muted:#8a8aa0; --green:#22c55e; --yellow:#f59e0b; }+ :root { color-scheme: dark; --accent:#ffffff; --accent2:#cccccc; --border:#222222; --bg:#000000; --panel:#141414; --text:#e8e8f0; --muted:#888888; --green:#22c55e; --yellow:#f59e0b; }* { box-sizing: border-box; margin: 0; padding: 0; }body { font: 15px/1.6 -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }header { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }@@ -31,7 +31,7 @@.sub { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 32px; }.sub strong { color: var(--text); }- .trial-banner { background: linear-gradient(135deg, rgba(106,92,255,0.15), rgba(255,92,168,0.1)); border: 1px solid rgba(106,92,255,0.35); border-radius: 14px; padding: 18px 22px; margin-bottom: 28px; font-size: 14px; line-height: 1.55; }+ .trial-banner { background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(204,204,204,0.06)); border: 1px solid rgba(255,255,255,0.2); border-radius: 14px; padding: 18px 22px; margin-bottom: 28px; font-size: 14px; line-height: 1.55; }.trial-banner strong { color: var(--text); display: block; margin-bottom: 4px; font-size: 15px; }/* ── auth form ── */@@ -39,7 +39,7 @@label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }input { width: 100%; padding: 11px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 14px; outline: none; transition: border-color 0.15s; }input:focus { border-color: var(--accent); }- input::placeholder { color: #555570; }+ input::placeholder { color: #555555; }.tabs { display: flex; gap: 0; border: 1px solid var(--border); border-radius: 11px; overflow: hidden; margin-bottom: 28px; }.tab { flex: 1; padding: 10px; background: var(--panel); color: var(--muted); font-size: 13px; font-weight: 500; border: none; cursor: pointer; transition: background 0.15s, color 0.15s; }@@ -70,7 +70,7 @@#state-error .btn { max-width: 260px; margin: 12px auto 0; display: block; }.feature-list { list-style: none; margin: 0 0 32px; }- .feature-list li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid #1c1c26; font-size: 14px; color: #cfcfdc; }+ .feature-list li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid #1c1c1c; font-size: 14px; color: #cfcfdc; }.feature-list li:last-child { border-bottom: none; }.feature-list li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 2px; }diff --git a/pages/aws/index.html b/pages/aws/index.htmlindex f0178223e..805f16626 100644--- a/pages/aws/index.html+++ b/pages/aws/index.html@@ -20,7 +20,7 @@<link rel="icon" href="/favicon.ico" /><style>- :root { color-scheme: dark; --accent:#6a5cff; --accent2:#ff5ca8; --border:#22222e; --bg:#0b0b10; --panel:#14141c; --panel2:#1a1a24; --text:#e8e8f0; --muted:#8a8aa0; --green:#22c55e; --aws:#ff9900; }+ :root { color-scheme: dark; --accent:#ffffff; --accent2:#cccccc; --border:#222222; --bg:#000000; --panel:#141414; --panel2:#1a1a1a; --text:#e8e8f0; --muted:#888888; --green:#22c55e; --aws:#ff9900; }* { box-sizing: border-box; margin: 0; padding: 0; }body { font: 16px/1.6 -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); min-height: 100vh; }@@ -37,7 +37,7 @@.partner-badge strong { color: var(--text); font-weight: 500; }h1 { font-size: clamp(36px, 6vw, 56px); letter-spacing: -0.03em; line-height: 1.05; font-weight: 600; margin-bottom: 20px; }- h1 .gradient { background: linear-gradient(110deg, var(--accent) 30%, var(--accent2) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }+ h1 .gradient { background: linear-gradient(110deg, #ffffff 30%, #cccccc 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }.lede { font-size: clamp(17px, 2vw, 19px); color: var(--muted); line-height: 1.55; max-width: 640px; margin-bottom: 40px; }.lede strong { color: var(--text); font-weight: 500; }@@ -56,7 +56,7 @@.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }.benefit { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }- .benefit .icon { width: 36px; height: 36px; border-radius: 9px; background: rgba(106,92,255,0.12); border: 1px solid rgba(106,92,255,0.25); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }+ .benefit .icon { width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }.benefit h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }.benefit p { font-size: 14px; color: var(--muted); line-height: 1.55; }@@ -137,42 +137,42 @@<div class="benefit-grid"><div class="benefit"><div class="icon">- <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#a99eff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2v20M2 12h20"/></svg>+ <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#cccccc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2v20M2 12h20"/></svg></div><h3>AWS credits eligible</h3><p>Use existing AWS credits and Activate funding against three.ws subscriptions.</p></div><div class="benefit"><div class="icon">- <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#a99eff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="6" width="20" height="14" rx="2"/><path d="M2 10h20M6 16h4"/></svg>+ <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#cccccc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="6" width="20" height="14" rx="2"/><path d="M2 10h20M6 16h4"/></svg></div><h3>Consolidated billing</h3><p>Usage rolls onto your AWS invoice under AWS Marketplace Software — no new vendor in procurement.</p></div><div class="benefit"><div class="icon">- <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#a99eff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>+ <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#cccccc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg></div><h3>EDP commit toward</h3><p>Marketplace spend counts toward your Enterprise Discount Program commitments.</p></div><div class="benefit"><div class="icon">- <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#a99eff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/></svg>+ <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#cccccc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/></svg></div><h3>Free trial included</h3><p>Try three.ws Community Edition with no commitment. Subscription activates only after the trial ends.</p></div><div class="benefit"><div class="icon">- <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#a99eff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="3"/><path d="M9 9h6v6H9z"/></svg>+ <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#cccccc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="3"/><path d="M9 9h6v6H9z"/></svg></div><h3>Runs on us-east-1</h3><p>three.ws production deploys to AWS us-east-1, registered in AWS MyApplications for unified cost monitoring.</p></div><div class="benefit"><div class="icon">- <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#a99eff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><path d="M14 2v6h6"/></svg>+ <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#cccccc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><path d="M14 2v6h6"/></svg></div><h3>Standard Contract</h3><p>three.ws subscribes under the AWS Standard Contract for Marketplace. Procurement-ready out of the box.</p>diff --git a/pages/community.html b/pages/community.htmlindex 28873e9e0..c00ca833f 100644--- a/pages/community.html+++ b/pages/community.html@@ -5,7 +5,7 @@<meta name="viewport" content="width=device-width, initial-scale=1.0" /><title>Community — three.ws</title><meta name="description" content="Join the three.ws community — follow builds, share agents, and connect with creators building the 3D agent layer of the internet." />- <meta name="theme-color" content="#0b0b10" />+ <meta name="theme-color" content="#000000" /><link rel="shortcut icon" href="/favicon.ico" /><link rel="apple-touch-icon" href="/pwa-192x192.png" />@@ -26,12 +26,12 @@<style>:root {color-scheme: dark;- --bg: #0b0b10;- --panel: #14141c;- --border: #22222e;+ --bg: #000000;+ --panel: #141414;+ --border: #222222;--text: #e8e8f0;- --muted: #8a8aa0;- --accent: #6a5cff;+ --muted: #888888;+ --accent: #ffffff;}* { box-sizing: border-box; }body {@@ -75,7 +75,7 @@gap: 12px;transition: border-color 0.15s;}- .card:hover { border-color: #33334a; }+ .card:hover { border-color: #333333; }.card h2 { margin: 0; font-size: 18px; font-weight: 600; }.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }.card .icon { font-size: 28px; }diff --git a/pages/marketplace.html b/pages/marketplace.htmlindex e9ef5f24f..572d83f5a 100644--- a/pages/marketplace.html+++ b/pages/marketplace.html@@ -245,7 +245,7 @@background:radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.14), transparent 65%),radial-gradient(circle at 50% 90%, rgba(168, 85, 247, 0.08), transparent 70%),- linear-gradient(180deg, #0b0b10, #050507);+ linear-gradient(180deg, #0a0a0a, #000000);color: rgba(244, 244, 245, 0.85);font-family: 'Space Grotesk', sans-serif;pointer-events: none;@@ -302,7 +302,7 @@font-size: 11px;letter-spacing: 0.18em;text-transform: uppercase;- color: #7dd3fc;+ color: #ffffff;font-weight: 600;display: inline-flex;align-items: center;@@ -346,7 +346,7 @@}.market-hero-cta {background: #fafafa;- color: #0a0a0a;+ color: #000000;border: 0;padding: 11px 18px;border-radius: 10px;@@ -391,7 +391,7 @@background: #fafafa;}.market-hero-dots button:focus-visible {- outline: 2px solid #7dd3fc;+ outline: 2px solid #ffffff;outline-offset: 3px;}@media (max-width: 880px) {@@ -426,7 +426,7 @@}.market-chip.active {background: #fafafa;- color: #0a0a0a;+ color: #000000;border-color: #fafafa;}@@ -456,9 +456,9 @@align-items: center;justify-content: center;background:- radial-gradient(circle at 50% 40%, rgba(125, 211, 252, 0.12), transparent 65%),+ radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.12), transparent 65%),radial-gradient(circle at 50% 95%, rgba(168, 85, 247, 0.08), transparent 70%),- linear-gradient(180deg, #0a0a0d, #050507);+ linear-gradient(180deg, #0a0a0a, #000000);pointer-events: none;transition: opacity 0.4s ease;}@@ -523,7 +523,7 @@inset: 0;z-index: 1500;background:- radial-gradient(ellipse at top, rgba(125, 211, 252, 0.06), transparent 60%),+ radial-gradient(ellipse at top, rgba(255, 255, 255, 0.06), transparent 60%),radial-gradient(ellipse at bottom, rgba(168, 85, 247, 0.05), transparent 60%),#050608;display: flex;@@ -579,7 +579,7 @@gap: 12px;margin: 14px 24px 0;padding: 10px 16px;- background: linear-gradient(90deg, rgba(168, 85, 247, 0.1), rgba(125, 211, 252, 0.06) 60%, transparent);+ background: linear-gradient(90deg, rgba(168, 85, 247, 0.1), rgba(255, 255, 255, 0.06) 60%, transparent);border: 1px solid rgba(168, 85, 247, 0.18);border-radius: 12px;font-size: 13px;@@ -636,8 +636,8 @@text-transform: uppercase;}.onchain-x402 {- background: rgba(125, 211, 252, 0.12);- color: #7dd3fc;+ background: rgba(255, 255, 255, 0.12);+ color: #ffffff;padding: 2px 8px;border-radius: 999px;font-size: 10px;@@ -666,8 +666,8 @@transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;}.market-card-avatar .card-tags .tag-pill:hover {- background: rgba(125, 211, 252, 0.18);- border-color: rgba(125, 211, 252, 0.4);+ background: rgba(255, 255, 255, 0.18);+ border-color: rgba(255, 255, 255, 0.4);color: #fafafa;}@@ -692,9 +692,9 @@white-space: nowrap;}.market-price-pill.free {- background: rgba(52, 211, 153, 0.16);- color: #34d399;- border-color: rgba(52, 211, 153, 0.28);+ background: rgba(255, 255, 255, 0.16);+ color: #ffffff;+ border-color: rgba(255, 255, 255, 0.28);}.market-price-pill.paid {background: rgba(253, 224, 71, 0.18);@@ -761,7 +761,7 @@max-width: 100%;}.market-card-avatar .byline a.card-author:hover {- color: #7dd3fc;+ color: #ffffff;text-decoration: underline;}.market-card-avatar .byline .card-author.muted {@@ -779,9 +779,9 @@margin-top: 2px;}.market-card-avatar .card-tags .tag-pill {- background: rgba(125, 211, 252, 0.06);- border: 1px solid rgba(125, 211, 252, 0.12);- color: #7dd3fc;+ background: rgba(255, 255, 255, 0.06);+ border: 1px solid rgba(255, 255, 255, 0.12);+ color: #ffffff;font-size: 10px;padding: 2px 7px;border-radius: 999px;@@ -858,7 +858,7 @@}.avatar-modal-stage {background:- radial-gradient(circle at 50% 60%, rgba(125, 211, 252, 0.06), transparent 70%),+ radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.06), transparent 70%),linear-gradient(180deg, #050505, #0a0a0a);min-height: 480px;position: relative;@@ -882,7 +882,7 @@font-size: 10px;letter-spacing: 0.18em;text-transform: uppercase;- color: #7dd3fc;+ color: #ffffff;font-weight: 600;}.avatar-modal-title {@@ -950,7 +950,7 @@font-family: 'Space Grotesk', sans-serif;}.avatar-modal-sale .sale-price.free {- color: #34d399;+ color: #ffffff;}.avatar-modal-sale label {display: flex;@@ -973,7 +973,7 @@}.avatar-modal-sale input[type="number"]:focus,.avatar-modal-sale input[type="text"]:focus {- border-color: #7dd3fc;+ border-color: #ffffff;}.avatar-modal-sale .sale-row {display: flex;@@ -1005,7 +1005,7 @@}.avatar-modal-sale button.sale-save {background: #fafafa;- color: #0a0a0a;+ color: #000000;}.avatar-modal-sale button.sale-buy {background: linear-gradient(180deg, #fde047, #facc15);@@ -1025,14 +1025,14 @@color: #a1a1aa;min-height: 14px;}- .avatar-modal-sale .sale-status.ok { color: #34d399; }+ .avatar-modal-sale .sale-status.ok { color: #ffffff; }.avatar-modal-sale .sale-status.err { color: #f43f5e; }.avatar-modal-sale .sale-hint {font-size: 11px;color: #71717a;line-height: 1.5;}- .avatar-modal-sale .sale-hint a { color: #7dd3fc; text-decoration: none; }+ .avatar-modal-sale .sale-hint a { color: #ffffff; text-decoration: none; }.avatar-modal-sale .sale-hint a:hover { text-decoration: underline; }.avatar-modal-actions button,.avatar-modal-actions a {@@ -1050,7 +1050,7 @@}.avatar-modal-actions .btn-primary {background: #fafafa;- color: #0a0a0a;+ color: #000000;border-color: #fafafa;}.avatar-modal-actions .btn-primary:hover {@@ -1137,8 +1137,8 @@color: #71717a;}.market-skill-card .skill-meta .cat-pill {- background: rgba(125, 211, 252, 0.1);- color: #7dd3fc;+ background: rgba(255, 255, 255, 0.1);+ color: #ffffff;padding: 2px 8px;border-radius: 999px;font-size: 10px;@@ -1152,14 +1152,14 @@font-weight: 500;}.market-skill-card.installed {- border-color: rgba(52, 211, 153, 0.35);- box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.08);+ border-color: rgba(255, 255, 255, 0.35);+ box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);}.market-skill-card .skill-installed-tag {display: inline-flex;align-items: center;gap: 4px;- color: #34d399;+ color: #ffffff;font-size: 11px;font-weight: 600;}@@ -1189,8 +1189,8 @@margin-left: 8px;}.market-skill-tools {- background: rgba(125, 211, 252, 0.04);- border: 1px solid rgba(125, 211, 252, 0.12);+ background: rgba(255, 255, 255, 0.04);+ border: 1px solid rgba(255, 255, 255, 0.12);border-radius: 10px;padding: 10px 12px;margin-top: 6px;@@ -1200,7 +1200,7 @@font-size: 11px;letter-spacing: 0.12em;text-transform: uppercase;- color: #7dd3fc;+ color: #ffffff;font-weight: 600;}.market-skill-tools ul {@@ -1273,7 +1273,7 @@font-size: 14px;}.market-skill-card .skill-price.free {- color: #34d399;+ color: #ffffff;}.market-skill-card .skill-price.paid {color: #fde047;@@ -1315,7 +1315,7 @@}.market-skill-card .skill-cta.purchase {background: #fafafa;- color: #0a0a0a;+ color: #000000;border-color: #fafafa;}@@ -1360,7 +1360,7 @@}.market-empty-cta-btn.primary {background: #fafafa;- color: #0a0a0a;+ color: #000000;border-color: #fafafa;font-weight: 600;}@@ -1368,7 +1368,7 @@background: #ffffff;}.market-empty-cta-btn:focus-visible {- outline: 2px solid #7dd3fc;+ outline: 2px solid #ffffff;outline-offset: 2px;}@@ -1384,7 +1384,7 @@.price-free {color: #a7f3d0;- background-color: rgba(52, 211, 153, 0.1);+ background-color: rgba(255, 255, 255, 0.1);}.price-paid {diff --git a/pages/pricing.html b/pages/pricing.htmlindex 856e93465..ab7d7918c 100644--- a/pages/pricing.html+++ b/pages/pricing.html@@ -2,118 +2,678 @@<html lang="en"><head><meta charset="utf-8" />- <meta name="viewport" content="width=device-width,initial-scale=1" />+ <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" /><title>Pricing · three.ws</title>- <meta name="description" content="three.ws is free during open beta. Embed 3D AI agents on any site, with no per-view or per-chat limits." />+ <meta name="description" content="Free during open beta. Pro and Enterprise plans for teams shipping 3D AI agents at scale. No view caps, no chat-turn limits." />+ <meta property="og:title" content="Pricing · three.ws" />+ <meta property="og:description" content="Free during open beta. Pro and Enterprise plans for teams shipping 3D AI agents at scale." />+ <meta property="og:url" content="https://three.ws/pricing" />+ <meta property="og:image" content="https://three.ws/og-image.png" />+ <meta name="twitter:card" content="summary_large_image" />+ <link rel="canonical" href="https://three.ws/pricing" /><link rel="icon" href="/favicon.ico" />- <style>- :root { color-scheme: dark; --accent:#6a5cff; --accent2:#ff5ca8; --border:#22222e; --bg:#0b0b10; --panel:#14141c; --text:#e8e8f0; --muted:#8a8aa0; }- * { box-sizing: border-box; }- body { font: 15px/1.6 -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; color:var(--text); margin:0; background:var(--bg); min-height:100vh; }- header { padding:18px 24px; border-bottom:1px solid var(--border); }- header a { color:#aaa; text-decoration:none; font-size:14px; }- .wrap { max-width: 960px; margin: 0 auto; padding: 64px 24px 96px; }- .eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px; }- h1 { font-size: clamp(36px, 5vw, 56px); margin: 0 0 14px; letter-spacing: -0.025em; line-height: 1.05; font-weight: 600; }- .sub { color:var(--muted); font-size:17px; margin: 0 0 48px; max-width: 620px; line-height: 1.55; }- .grid { display:grid; grid-template-columns: 1fr 1fr; gap:18px; }- @media (max-width: 720px) { .grid { grid-template-columns: 1fr; } h1 { font-size: 32px; } }- .card { background:var(--panel); border:1px solid var(--border); border-radius:18px; padding:32px 28px; display:flex; flex-direction:column; min-height: 380px; }- .card.featured { border-color:var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 24px 64px rgba(106,92,255,0.18); position:relative; }- .tag { position:absolute; top:-11px; right:22px; background:var(--accent); color:#fff; font-size:11px; padding:4px 11px; border-radius:99px; font-weight:600; letter-spacing:0.06em; text-transform: uppercase; }- .tier { font-size:12px; text-transform:uppercase; letter-spacing:0.12em; color:var(--muted); font-weight:600; }- .price { font-size:42px; margin:10px 0 4px; font-weight:600; letter-spacing:-0.02em; line-height: 1; }- .price small { font-size:14px; color:var(--muted); font-weight:400; margin-left: 4px; }- .feat { list-style:none; padding:0; margin:22px 0 0; }- .feat li { padding:9px 0; border-bottom:1px solid #1c1c26; color:#cfcfdc; font-size:14.5px; display:flex; align-items:flex-start; gap:10px; line-height: 1.5; }- .feat li:last-child { border-bottom:none; }- .feat li::before { content:"✓"; color:var(--accent); font-weight:700; flex-shrink: 0; }- .btn { padding:13px 18px; border-radius:11px; border:0; background:var(--accent); color:#fff; font-size:14px; font-weight:600; cursor:pointer; margin-top:auto; text-decoration: none; display: inline-block; text-align: center; transition: filter 0.15s; }- .btn:hover { filter:brightness(1.12); }- .btn.sec { background:#222230; color:var(--text); }- .btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }- .cta-row { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }- a { color:#9a8cff; }- .note { margin-top: 48px; padding: 20px 24px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; font-size: 14px; color: var(--muted); }- .note strong { color: var(--text); }- .faq { margin-top: 56px; }- .faq h2 { font-size: 22px; margin: 0 0 20px; letter-spacing: -0.01em; font-weight: 600; }- .faq details { padding: 16px 0; border-bottom: 1px solid var(--border); }- .faq summary { cursor: pointer; font-weight: 500; color: var(--text); font-size: 15px; list-style: none; }- .faq summary::after { content: "+"; float: right; color: var(--muted); font-size: 18px; line-height: 1; }- .faq details[open] summary::after { content: "−"; }- .faq details p { color: var(--muted); margin: 12px 0 0; line-height: 1.6; font-size: 14.5px; }- </style>+ <link rel="stylesheet" href="/style.css" />+ <link rel="stylesheet" href="/nav.css" />+ <link rel="stylesheet" href="/pricing.css" />+ <link rel="stylesheet" href="/footer.css" />+ <link rel="stylesheet" href="/fonts/fonts.css" /><link rel="stylesheet" href="/mobile.css" /></head><body>- <header><a href="/">← three.ws</a></header>- <div class="wrap">- <div class="eyebrow">Pricing · Open Beta</div>- <h1>Free during beta.<br/>Built for scale.</h1>- <p class="sub">three.ws is the 3D agent layer of the internet — drop one tag and embed a living 3D AI agent on any page. While we’re in open beta, every feature is free. No view caps, no chat-turn limits, no credit card required.</p>-- <div class="grid">- <div class="card">- <div class="tier">Free</div>- <div class="price">$0<small>/forever for hobby & open-source</small></div>- <ul class="feat">- <li>Unlimited <code><agent-3d></code> embeds during beta</li>- <li>Create unlimited avatars & agents</li>- <li>Voice, animation, mocap, and AR included</li>- <li>x402 paid skills (you keep 100% during beta)</li>- <li>Community support on Discord</li>- </ul>- <div class="cta-row">- <a class="btn" href="/create">Build your first agent</a>- <a class="btn ghost" href="/docs">Read the docs</a>+ <a href="#main-content" class="h-skip-link">Skip to main content</a>++ <header class="site-header" style="position:sticky;top:0;z-index:100;">+ <div style="display:flex;align-items:center;padding:0 var(--space-lg, 1.5rem);height:var(--header-h, 3.5rem);">+ <h1 style="margin:0;font-size:inherit;font-weight:inherit;">+ <a href="/" style="display:inline-flex;align-items:center;gap:0.6rem;text-decoration:none;color:#fff;">+ <img class="wordmark-logo" src="/three.svg" width="28" height="28" alt="" />+ <span class="wordmark-dot" aria-hidden="true"></span>+ <span style="font-family:'Space Grotesk','Inter',sans-serif;font-weight:600;font-size:0.95rem;">three.ws</span>+ </a>+ </h1>+ <div id="nav-container"></div>+ </div>+ </header>+ <script src="/nav.js"></script>++ <main id="main-content">++ <!-- ── HERO ────────────────────────────────────────────────────── -->+ <section class="pricing-hero">+ <div class="eyebrow"><span class="eyebrow-dot"></span><span>Pricing</span></div>+ <h1>Free to start.<br/><em>Scale when you’re ready.</em></h1>+ <p class="lead">Every feature is free during open beta — unlimited agents, embeds, voice, animation, and x402 payments. Pro and Enterprise unlock higher limits and dedicated support when you need them.</p>++ <div class="billing-toggle" id="billing-toggle">+ <span class="label-monthly is-active" data-period="monthly">Monthly</span>+ <div class="toggle-track" role="switch" aria-checked="false" aria-label="Toggle annual billing" tabindex="0">+ <div class="toggle-thumb"></div></div>+ <span class="label-annual" data-period="annual">Annual <span class="billing-save">Save 17%</span></span>+ </div>+ </section>++ <!-- ── TIERS ───────────────────────────────────────────────────── -->+ <div class="pricing-tiers" id="pricing-tiers">+ <div class="pricing-tier-card" data-tier="free">+ <div class="pricing-tier-name">Free</div>+ <div class="pricing-amount">$0<sub>/forever</sub></div>+ <div class="pricing-cycle-info">No credit card required</div>+ <ul class="pricing-features">+ <li>1 agent + 1 custom avatar</li>+ <li>Unlimited <agent-3d> embeds</li>+ <li>Default rig + 200 animation clips</li>+ <li>Voice chat & lipsync</li>+ <li>Public deploy at three.ws/<name></li>+ <li>x402 paid skills (0% platform fee)</li>+ <li>Community support</li>+ </ul>+ <a href="/create" class="pricing-cta">Start free</a></div>- <div class="card featured">- <div class="tag">Early access</div>- <div class="tier">For teams & enterprises</div>- <div class="price">Let’s talk</div>- <ul class="feat">- <li>Custom subdomain (<code>yourapp.three.ws</code>)</li>- <li>White-label embed & brand-locked themes</li>++ <div class="pricing-tier-card featured" data-tier="pro">+ <span class="pricing-popular">Most popular</span>+ <div class="pricing-tier-name">Pro</div>+ <div class="pricing-amount" data-monthly="$49" data-annual="$40">$49<sub>/mo</sub></div>+ <div class="pricing-cycle-info" data-monthly="Billed monthly" data-annual="$480/yr — billed annually">Billed monthly</div>+ <ul class="pricing-features">+ <li>Everything in Free</li>+ <li>Unlimited agents & custom avatars</li>+ <li>Custom voice cloning</li>+ <li>Animation studio + memory seeds</li>+ <li>Custom subdomain embed</li>+ <li>Priority CDN & GPU rendering</li>+ <li>Advanced analytics dashboard</li>+ <li>Priority email support & SLA</li>+ </ul>+ <a href="/login?plan=pro" class="pricing-cta primary">Choose Pro</a>+ </div>++ <div class="pricing-tier-card" data-tier="enterprise">+ <div class="pricing-tier-name">Enterprise</div>+ <div class="pricing-amount" style="font-size:36px;margin-top:6px;">Custom</div>+ <div class="pricing-cycle-info">Volume pricing · tailored SLA</div>+ <ul class="pricing-features">+ <li>Everything in Pro</li>+ <li>Self-hosted runtime option</li>+ <li>White-label embed & API</li>+ <li>On-chain identity (ERC-8004)</li>+ <li>Custom rigs & licensing</li><li>SSO, audit logs, embed-policy whitelisting</li>- <li>Usage analytics, custom voice cloning</li>- <li>SLA, priority support, design partnership</li>+ <li>Dedicated infrastructure & solutions engineer</li></ul>- <div class="cta-row">- <a class="btn" href="mailto:[email protected]?subject=three.ws%20for%20teams">Talk to us</a>- <a class="btn ghost" href="/discover">See live embeds</a>- </div>+ <a href="mailto:[email protected]?subject=three.ws%20Enterprise" class="pricing-cta">Contact sales</a></div></div>- <div class="note">- <strong>Already on the X-posting plan?</strong> Your subscription continues unchanged. Manage it at <a href="/x-pricing">/x-pricing</a>. New platform-wide pricing for embed volume, API calls, and creator payouts ships after open beta.- </div>+ <!-- ── 3D AVATAR CANVAS ────────────────────────────────────────── -->+ <canvas class="pricing-avatar-canvas" id="avatar-canvas"></canvas>++ <!-- ── FEATURE COMPARISON ──────────────────────────────────────── -->+ <section class="pricing-comparison">+ <h2>Compare every feature</h2>+ <table class="comparison-table">+ <thead>+ <tr>+ <th>Feature</th>+ <th>Free</th>+ <th class="featured-col">Pro</th>+ <th>Enterprise</th>+ </tr>+ </thead>+ <tbody>+ <tr class="section-row"><td colspan="4">Agents & avatars</td></tr>+ <tr>+ <td>Agents</td>+ <td class="val">1</td>+ <td class="val featured-col">Unlimited</td>+ <td class="val">Unlimited</td>+ </tr>+ <tr>+ <td>Custom avatars</td>+ <td class="val">1</td>+ <td class="val featured-col">Unlimited</td>+ <td class="val">Unlimited</td>+ </tr>+ <tr>+ <td>Animation clips</td>+ <td class="val">200</td>+ <td class="val featured-col">200 + custom</td>+ <td class="val">Unlimited + custom rigs</td>+ </tr>+ <tr>+ <td>Memory seeds</td>+ <td><span class="check"></span></td>+ <td class="featured-col"><span class="check yes"></span></td>+ <td><span class="check yes"></span></td>+ </tr>++ <tr class="section-row"><td colspan="4">Voice & lipsync</td></tr>+ <tr>+ <td>Voice chat</td>+ <td><span class="check yes"></span></td>+ <td class="featured-col"><span class="check yes"></span></td>+ <td><span class="check yes"></span></td>+ </tr>+ <tr>+ <td>TTS lipsync</td>+ <td><span class="check yes"></span></td>+ <td class="featured-col"><span class="check yes"></span></td>+ <td><span class="check yes"></span></td>+ </tr>+ <tr>+ <td>Custom voice cloning</td>+ <td><span class="check"></span></td>+ <td class="featured-col"><span class="check yes"></span></td>+ <td><span class="check yes"></span></td>+ </tr>++ <tr class="section-row"><td colspan="4">Embed & deploy</td></tr>+ <tr>+ <td><agent-3d> embeds</td>+ <td class="val">Unlimited</td>+ <td class="val featured-col">Unlimited</td>+ <td class="val">Unlimited</td>+ </tr>+ <tr>+ <td>Custom domain embeds</td>+ <td><span class="check"></span></td>+ <td class="featured-col"><span class="check yes"></span></td>+ <td><span class="check yes"></span></td>+ </tr>+ <tr>+ <td>White-label theming</td>+ <td><span class="check"></span></td>+ <td><span class="check"></span></td>+ <td><span class="check yes"></span></td>+ </tr>+ <tr>+ <td>Embed-policy whitelisting</td>+ <td><span class="check"></span></td>+ <td><span class="check"></span></td>+ <td><span class="check yes"></span></td>+ </tr>++ <tr class="section-row"><td colspan="4">Platform & infra</td></tr>+ <tr>+ <td>CDN delivery</td>+ <td class="val">Shared</td>+ <td class="val featured-col">Priority</td>+ <td class="val">Dedicated</td>+ </tr>+ <tr>+ <td>GPU rendering</td>+ <td class="val">Shared</td>+ <td class="val featured-col">Priority</td>+ <td class="val">Dedicated</td>+ </tr>+ <tr>+ <td>Analytics dashboard</td>+ <td class="val">Basic</td>+ <td class="val featured-col">Advanced</td>+ <td class="val">Custom</td>+ </tr>+ <tr>+ <td>Self-hosted runtime</td>+ <td><span class="check"></span></td>+ <td><span class="check"></span></td>+ <td><span class="check yes"></span></td>+ </tr>++ <tr class="section-row"><td colspan="4">Monetization & identity</td></tr>+ <tr>+ <td>x402 paid skills</td>+ <td><span class="check yes"></span></td>+ <td class="featured-col"><span class="check yes"></span></td>+ <td><span class="check yes"></span></td>+ </tr>+ <tr>+ <td>Platform fee</td>+ <td class="val">0% (beta)</td>+ <td class="val featured-col">2.9%</td>+ <td class="val">Custom</td>+ </tr>+ <tr>+ <td>On-chain identity (ERC-8004)</td>+ <td><span class="check"></span></td>+ <td><span class="check"></span></td>+ <td><span class="check yes"></span></td>+ </tr>++ <tr class="section-row"><td colspan="4">Support</td></tr>+ <tr>+ <td>Community (Discord)</td>+ <td><span class="check yes"></span></td>+ <td class="featured-col"><span class="check yes"></span></td>+ <td><span class="check yes"></span></td>+ </tr>+ <tr>+ <td>Priority email</td>+ <td><span class="check"></span></td>+ <td class="featured-col"><span class="check yes"></span></td>+ <td><span class="check yes"></span></td>+ </tr>+ <tr>+ <td>SLA guarantee</td>+ <td><span class="check"></span></td>+ <td class="featured-col"><span class="check yes"></span></td>+ <td><span class="check yes"></span></td>+ </tr>+ <tr>+ <td>Dedicated solutions engineer</td>+ <td><span class="check"></span></td>+ <td><span class="check"></span></td>+ <td><span class="check yes"></span></td>+ </tr>+ <tr>+ <td>SSO & audit logs</td>+ <td><span class="check"></span></td>+ <td><span class="check"></span></td>+ <td><span class="check yes"></span></td>+ </tr>+ </tbody>+ </table>+ </section>++ <!-- ── FAQ ─────────────────────────────────────────────────────── -->+ <section class="pricing-faq">+ <h2>Frequently asked questions</h2>- <div class="faq">- <h2>FAQ</h2><details>- <summary>What’s included in the free beta?</summary>- <p>Everything: unlimited avatars, unlimited agents, unlimited embeds, voice, animation, mocap, AR, x402 paid skills, the dashboard, and the API. We’re intentionally not metering anything during beta — we want to see how people actually use the platform before drawing pricing lines.</p>+ <summary>What's included in the free beta?</summary>+ <p>Everything: unlimited embeds, voice, animation, mocap, AR, x402 paid skills, the dashboard, and the API. We're intentionally not metering anything during beta — we want to see how people actually use the platform before drawing pricing lines.</p></details><details><summary>What happens when beta ends?</summary>- <p>A generous free tier will stay free forever for hobby and open-source projects. Paid tiers will be usage-based on embed views, chat turns, and API calls — priced to be cheaper than rolling your own. Existing users get 60 days’ notice and a grandfathered transition rate.</p>+ <p>A generous free tier stays free forever for hobby and open-source projects. Paid tiers add higher agent limits, custom domains, priority infrastructure, and dedicated support. Existing users get 60 days' notice and a grandfathered transition rate.</p></details><details><summary>Can I monetize my own agents?</summary>- <p>Yes. The x402 protocol lets you charge per skill invocation (per chat turn, per generation, per API call) in USDC on Solana. During beta you keep 100% of revenue. After beta there will be a small platform fee (target: 2.9%, similar to Stripe).</p>+ <p>Yes. The x402 protocol lets you charge per skill invocation (per chat turn, per generation, per API call) in USDC. During beta you keep 100% of revenue. After beta the platform fee is 2.9% on Pro and negotiable on Enterprise.</p></details><details><summary>Do I need crypto to use three.ws?</summary>- <p>No. The web component, dashboard, and API work without a wallet. Crypto unlocks: on-chain agent identity (ERC-8004), payable skills (x402), and creator payouts. If you don’t need those, the platform works like any other SaaS.</p>+ <p>No. The web component, dashboard, and API work without a wallet. Crypto unlocks: on-chain agent identity (ERC-8004), payable skills (x402), and creator payouts. If you don't need those, the platform works like any other SaaS.</p>+ </details>+ <details>+ <summary>Can I switch plans later?</summary>+ <p>Upgrade or downgrade any time from your dashboard. When upgrading, you're prorated for the remainder of the current billing cycle. When downgrading, the change takes effect at the start of the next cycle.</p></details><details><summary>What about enterprise pricing?</summary>- <p>Custom subdomain, SSO, audit logs, embed-policy whitelisting, white-label themes, and SLA. Email <a href="mailto:[email protected]">[email protected]</a> and we’ll set up a call.</p>+ <p>Custom subdomain, SSO, audit logs, embed-policy whitelisting, white-label themes, self-hosted runtime, and SLA. Email [email protected] and we'll set up a call within 24 hours.</p></details>- </div>- </div>+ <details>+ <summary>How does the annual discount work?</summary>+ <p>Annual billing saves 17% compared to monthly. You're billed once per year at the discounted rate. If you cancel mid-year, your access continues through the end of the paid period.</p>+ </details>+ </section>++ <!-- ── BOTTOM CTA ──────────────────────────────────────────────── -->+ <section class="pricing-bottom-cta">+ <div class="cta-card">+ <h2>Ready to give your<br/>AI agent a body?</h2>+ <p>Free during open beta. No credit card. Two lines of HTML.</p>+ <div class="cta-row">+ <a href="/create" class="pricing-cta primary">Build your first agent</a>+ <a href="/docs" class="pricing-cta">Read the docs</a>+ </div>+ </div>+ </section>++ <!-- ── FOOTER ──────────────────────────────────────────────────── -->+ <footer class="h-footer h-footer-horizon">+ <div class="h-footer-glow-line" aria-hidden="true"></div>+ <div class="h-footer-floor" aria-hidden="true"></div>+ <div class="h-footer-haze" aria-hidden="true"></div>+ <div class="h-footer-watermark" aria-hidden="true">three.ws</div>++ <div class="h-footer-cta">+ <div class="h-footer-newsletter">+ <h3>Stay in the loop</h3>+ <p>Get updates on new features, agent tooling, and protocol changes.</p>+ <form class="h-footer-newsletter-form" data-newsletter-form novalidate>+ <input+ type="email"+ class="h-footer-newsletter-input"+ name="email"+ placeholder="Enter your email"+ aria-label="Email address"+ autocomplete="email"+ required+ />+ <button type="submit" class="h-footer-newsletter-btn" aria-label="Subscribe">+ <svg viewBox="0 0 16 16" aria-hidden="true"><path fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" d="M2 8h11m0 0L9 4m4 4l-4 4" /></svg>+ </button>+ </form>+ <p class="h-footer-newsletter-msg" data-newsletter-msg aria-live="polite"></p>+ </div>+ <div class="h-footer-community">+ <h3>Join the community</h3>+ <p>Follow along for builds, demos, and conversations with the team.</p>+ <a class="h-footer-community-btn" href="https://x.com/trythreews" target="_blank" rel="noopener noreferrer">+ <svg viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" /></svg>+ Follow on X+ </a>+ </div>+ </div>+ <div class="h-footer-inner">+ <div class="h-footer-brand-col">+ <div class="h-footer-brand">+ <img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" />+ <span class="wordmark-dot" aria-hidden="true"></span>+ <span>three.ws</span>+ </div>+ <p class="h-footer-tagline">Give your AI a body.</p>+ <div class="h-footer-socials">+ <a class="h-footer-social" href="https://x.com/trythreews" target="_blank" rel="noopener noreferrer" aria-label="three.ws on X">+ <svg viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" /></svg>+ </a>+ <a class="h-footer-social" href="https://github.com/nirholas/three.ws" target="_blank" rel="noopener noreferrer" aria-label="three.ws on GitHub">+ <svg viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z" /></svg>+ </a>+ </div>+ </div>+ <nav class="h-footer-links" aria-label="Footer">+ <div class="h-footer-link-col">+ <h4 class="h-footer-link-heading">Product</h4>+ <a href="/create">Create</a>+ <a href="/studio">Studio</a>+ <a href="/widgets">Widgets</a>+ <a href="/discover">Discover</a>+ <a href="/pricing">Pricing</a>+ </div>+ <div class="h-footer-link-col">+ <h4 class="h-footer-link-heading">Developers</h4>+ <a href="/docs">Docs</a>+ <a href="https://github.com/nirholas/three.ws" target="_blank" rel="noopener noreferrer">GitHub</a>+ <a href="/dashboard/api">API</a>+ </div>+ <div class="h-footer-link-col">+ <h4 class="h-footer-link-heading">Resources</h4>+ <a href="/blog">Blog</a>+ <a href="/dashboard">Dashboard</a>+ <a href="/community">Community</a>+ </div>+ </nav>+ </div>+ <div class="h-footer-bottom">+ <p class="h-footer-legal">© 2026 three.ws — All rights reserved.</p>+ <div class="h-footer-legal-links">+ <a href="/legal/privacy">Privacy Policy</a>+ <a href="/legal/tos">Terms of Use</a>+ </div>+ </div>+ </footer>+ </main>++ <!-- ── Billing toggle ──────────────────────────────────────────────── -->+ <script>+ (function () {+ const toggle = document.getElementById('billing-toggle');+ if (!toggle) return;+ const track = toggle.querySelector('.toggle-track');+ const labelM = toggle.querySelector('.label-monthly');+ const labelA = toggle.querySelector('.label-annual');+ let annual = false;++ function apply() {+ toggle.classList.toggle('annual', annual);+ track.setAttribute('aria-checked', String(annual));+ labelM.classList.toggle('is-active', !annual);+ labelA.classList.toggle('is-active', annual);++ document.querySelectorAll('[data-monthly][data-annual]').forEach(el => {+ const val = annual ? el.dataset.annual : el.dataset.monthly;+ if (el.classList.contains('pricing-amount')) {+ el.innerHTML = val + '<sub>/mo</sub>';+ } else {+ el.textContent = val;+ }+ });+ }++ track.addEventListener('click', () => { annual = !annual; apply(); });+ track.addEventListener('keydown', e => {+ if (e.key === ' ' || e.key === 'Enter') { e.preventDefault(); annual = !annual; apply(); }+ });+ labelM.addEventListener('click', () => { annual = false; apply(); });+ labelA.addEventListener('click', () => { annual = true; apply(); });+ })();+ </script>++ <!-- ── 3D Avatar on pricing tiers ──────────────────────────────────── -->+ <script type="module">+ import * as THREE from 'three';+ import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';++ const canvas = document.getElementById('avatar-canvas');+ const tierCards = [...document.querySelectorAll('.pricing-tier-card')];+ if (!canvas || !tierCards.length) throw new Error('Missing pricing DOM');++ const renderer = new THREE.WebGLRenderer({ canvas, antialias: true, alpha: true });+ renderer.setPixelRatio(Math.min(devicePixelRatio, 2));+ renderer.outputColorSpace = THREE.SRGBColorSpace;+ renderer.toneMapping = THREE.ACESFilmicToneMapping;+ renderer.toneMappingExposure = 1.1;++ const scene = new THREE.Scene();+ const PX_PER_UNIT = 120;+ const camera = new THREE.OrthographicCamera(-1, 1, 1, -1, 0.1, 100);+ camera.position.z = 10;++ function updateFrustum() {+ const hw = window.innerWidth / PX_PER_UNIT / 2;+ const hh = window.innerHeight / PX_PER_UNIT / 2;+ camera.left = -hw; camera.right = hw;+ camera.top = hh; camera.bottom = -hh;+ camera.updateProjectionMatrix();+ }++ const _v3 = new THREE.Vector3();+ function domToWorld(sx, sy) {+ _v3.set((sx / window.innerWidth) * 2 - 1, -(sy / window.innerHeight) * 2 + 1, 0);+ _v3.unproject(camera);+ return { x: _v3.x, y: _v3.y };+ }++ let avatar = null, mixer = null, rootBone = null, baseRootPos = null;+ let phase = 'loading';+ let activeTier = null;++ function resize() {+ renderer.setSize(window.innerWidth, window.innerHeight, false);+ updateFrustum();+ if (avatar && activeTier && phase === 'idle') {+ const t = standOnTopOf(activeTier);+ avatar.position.set(t.x, t.y, 0);+ }+ }+ window.addEventListener('resize', resize);+ resize();++ scene.add(new THREE.AmbientLight(0xffffff, 0.6));+ const key = new THREE.DirectionalLight(0xfff4dc, 2.0); key.position.set(3, 6, 5); scene.add(key);+ const rim = new THREE.DirectionalLight(0x4060ff, 0.6); rim.position.set(-4, 3, -2); scene.add(rim);+ const fill = new THREE.DirectionalLight(0xffeedd, 0.4); fill.position.set(0, 2, 7); scene.add(fill);++ const actions = {};+ let currentAction = null;+ const FADE_S = 0.3;++ function setAnimation(name, { loop = true, hold = false } = {}) {+ const next = actions[name];+ if (!next || next === currentAction) return;+ next.reset();+ next.setLoop(loop ? THREE.LoopRepeat : THREE.LoopOnce, loop ? Infinity : 1);+ next.clampWhenFinished = hold;+ if (currentAction) next.crossFadeFrom(currentAction, FADE_S, false).play();+ else next.fadeIn(FADE_S).play();+ currentAction = next;+ }++ function standOnTopOf(tierEl) {+ const r = tierEl.getBoundingClientRect();+ return domToWorld(r.left + r.width / 2, r.top);+ }++ let walkT = 0, walkStart = null, walkEnd = null, walkDur = 0.85, walkPeakRise = 0;+ let onArrival = null;+ const WALK_SPEED = 5;++ function smoothstep(t) { return t * t * (3 - 2 * t); }++ function beginMove(tierEl) {+ if (activeTier) activeTier.classList.remove('is-active');+ activeTier = tierEl;+ activeTier.classList.add('is-active');+ }++ function walkToTier(tierEl) {+ if (!avatar || tierEl === activeTier) return;+ beginMove(tierEl);+ phase = 'walking';+ walkT = 0;+ walkStart = { x: avatar.position.x, y: avatar.position.y };+ walkEnd = standOnTopOf(tierEl);+ const dx = Math.abs(walkEnd.x - walkStart.x);+ walkDur = Math.max(0.4, dx / WALK_SPEED);+ const minX = Math.min(walkStart.x, walkEnd.x);+ const maxX = Math.max(walkStart.x, walkEnd.x);+ const baseY = Math.max(walkStart.y, walkEnd.y);+ let peakY = baseY;+ for (const tt of tierCards) {+ const tp = standOnTopOf(tt);+ if (tp.x > minX && tp.x < maxX && tp.y > peakY) peakY = tp.y;+ }+ walkPeakRise = peakY - baseY;+ setAnimation('walk', { loop: true });+ const dir = Math.sign(walkEnd.x - walkStart.x) || 0;+ avatar.rotation.y = dir * (Math.PI / 2);+ }++ const CTA_REACTION = { free: 'wave', pro: 'av-celebrating', enterprise: 'av-brag-claps' };+ const CTA_REACTION_MAX_MS = 3500;++ function landOnTier() {+ phase = 'idle';+ const snap = standOnTopOf(activeTier);+ avatar.position.set(snap.x, snap.y, 0);+ avatar.rotation.y = 0;+ setAnimation('idle', { loop: true });+ if (onArrival) { const cb = onArrival; onArrival = null; setTimeout(cb, 300); }+ }++ let hoverTimer = null, hoverPendingTier = null;+ function scheduleMove(tierEl) {+ if (!tierEl) { clearTimeout(hoverTimer); hoverPendingTier = null; return; }+ if (tierEl === activeTier) { clearTimeout(hoverTimer); hoverPendingTier = null; return; }+ if (tierEl === hoverPendingTier) return;+ clearTimeout(hoverTimer);+ hoverPendingTier = tierEl;+ hoverTimer = setTimeout(() => {+ hoverPendingTier = null;+ if (phase === 'walking') { setTimeout(() => scheduleMove(tierEl), 200); }+ else walkToTier(tierEl);+ }, 120);+ }++ function tierAtPoint(cx, cy) {+ for (const t of tierCards) {+ const r = t.getBoundingClientRect();+ if (cx >= r.left && cx <= r.right && cy >= r.top && cy <= r.bottom) return t;+ }+ return null;+ }++ const tiersGrid = document.getElementById('pricing-tiers');+ tiersGrid.addEventListener('mousemove', e => scheduleMove(tierAtPoint(e.clientX, e.clientY)));+ tiersGrid.addEventListener('mouseleave', () => scheduleMove(null));++ document.querySelectorAll('.pricing-cta').forEach(cta => {+ const tierEl = cta.closest('.pricing-tier-card');+ if (!tierEl) return;+ cta.addEventListener('click', e => {+ if (!avatar) return;+ const tierName = tierEl.dataset.tier;+ const reactionClip = CTA_REACTION[tierName] ?? 'wave';+ const fireReaction = () => {+ setAnimation(reactionClip, { loop: false, hold: true });+ const clipDur = actions[reactionClip]?.getClip().duration ?? 2.0;+ setTimeout(() => { if (phase === 'idle') setAnimation('idle', { loop: true }); }, Math.min(clipDur * 1000, CTA_REACTION_MAX_MS));+ };+ if (tierEl === activeTier && phase === 'idle') { fireReaction(); }+ else { onArrival = fireReaction; if (tierEl !== activeTier) walkToTier(tierEl); }+ });+ });++ let mouseNx = 0, mouseNy = 0;+ window.addEventListener('mousemove', e => {+ mouseNx = (e.clientX / window.innerWidth) * 2 - 1;+ mouseNy = (e.clientY / window.innerHeight) * 2 - 1;+ });++ const ro = new ResizeObserver(() => {+ if (avatar && activeTier && phase === 'idle') {+ const t = standOnTopOf(activeTier);+ avatar.position.set(t.x, t.y, 0);+ }+ });+ tierCards.forEach(t => ro.observe(t));++ const CLIPS = ['idle', 'walk', 'wave', 'av-celebrating', 'av-brag-claps'];++ new GLTFLoader().load('/avatars/cz.glb', gltf => {+ avatar = gltf.scene;+ avatar.traverse(n => {+ if (!rootBone && /^(Hips|Root|mixamorig:?Hips)$/i.test(n.name)) rootBone = n;+ });+ avatar.rotation.y = 0;+ scene.add(avatar);+ mixer = new THREE.AnimationMixer(avatar);++ Promise.all(CLIPS.map(name =>+ fetch(`/animations/clips/${name}.json`).then(r => r.json())+ )).then(jsons => {+ CLIPS.forEach((name, i) => { actions[name] = mixer.clipAction(THREE.AnimationClip.parse(jsons[i])); });+ if (rootBone) baseRootPos = rootBone.position.clone();+ const _r = renderer.render.bind(renderer);+ renderer.render = (sc, cam) => {+ try { if (rootBone && baseRootPos) rootBone.position.copy(baseRootPos); } catch (_) {}+ _r(sc, cam);+ };++ const pro = document.querySelector('[data-tier="pro"]');+ activeTier = pro;+ pro.classList.add('is-active');+ const start = standOnTopOf(pro);+ avatar.position.set(start.x, start.y, 0);+ setAnimation('idle', { loop: true });+ phase = 'idle';+ });+ });++ const clock = new THREE.Clock();+ (function tick() {+ requestAnimationFrame(tick);+ try {+ const dt = Math.min(clock.getDelta(), 0.05);+ mixer?.update(dt);+ if (phase === 'walking' && avatar && walkStart && walkEnd) {+ walkT += dt;+ const p = Math.min(walkT / walkDur, 1);+ const e = smoothstep(p);+ const x = walkStart.x + (walkEnd.x - walkStart.x) * e;+ const arc = walkPeakRise * 4 * p * (1 - p);+ const y = walkStart.y + (walkEnd.y - walkStart.y) * e + arc;+ avatar.position.set(x, y, 0);+ if (p >= 1) landOnTier();+ }+ camera.position.x += (mouseNx * 0.1 - camera.position.x) * 0.04;+ camera.position.y += (-mouseNy * 0.07 - camera.position.y) * 0.04;+ renderer.render(scene, camera);+ } catch (_) {}+ })();+ </script></body></html>diff --git a/pages/pump-visualizer.html b/pages/pump-visualizer.htmlindex d49db1dca..26b845178 100644--- a/pages/pump-visualizer.html+++ b/pages/pump-visualizer.html@@ -12,7 +12,7 @@<style>:root {--vz-bg: #05060a;- --vz-panel: rgba(12, 14, 22, 0.88);+ --vz-panel: rgba(10, 10, 10, 0.88);--vz-border: rgba(255, 255, 255, 0.10);--vz-text: #e8e8e8;--vz-muted: #888888;@@ -22,7 +22,7 @@}html, body { background: var(--vz-bg); color: var(--vz-text); overflow: hidden; height: 100%; }body { margin: 0; }- .site-header { position: relative; z-index: 20; background: rgba(5, 6, 10, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }+ .site-header { position: relative; z-index: 20; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }#vz-stage {position: fixed;@@ -264,7 +264,7 @@position: fixed;z-index: 15;pointer-events: none;- background: rgba(5, 6, 10, 0.95);+ background: rgba(0, 0, 0, 0.95);border: 1px solid var(--vz-border);border-radius: 8px;padding: 8px 12px;diff --git a/pages/voice.html b/pages/voice.htmlindex babba7263..505d4cfb6 100644--- a/pages/voice.html+++ b/pages/voice.html@@ -42,7 +42,7 @@color: #ffffff;}.vl-header p {- color: #8a8d9b;+ color: #888888;font-size: 15px;margin: 0;max-width: 56ch;@@ -69,7 +69,7 @@font-weight: 600;letter-spacing: 0.04em;text-transform: uppercase;- color: #8a8d9b;+ color: #888888;}.vl-card-body {padding: 20px;@@ -103,7 +103,7 @@}.vl-timer {font: 700 28px/1 'Space Grotesk', ui-monospace, monospace;- color: #e8eaf0;+ color: #e8e8e8;letter-spacing: 0.02em;opacity: 0;transition: opacity 0.2s;@@ -124,7 +124,7 @@bottom: 0;left: 0;height: 3px;- background: linear-gradient(90deg, #ffffff, #a78bfa);+ background: linear-gradient(90deg, #ffffff, #cccccc);width: 0%;transition: width 0.3s linear;z-index: 2;@@ -214,7 +214,7 @@.vl-btn:not(:disabled):active { transform: translateY(0); }.vl-btn-record {- background: #e8eaf0;+ background: #e8e8e8;color: #0a0a0a;padding: 14px 28px;font-size: 15px;@@ -251,12 +251,12 @@.vl-btn-primary {background: #ffffff;- color: #05060a;+ color: #000000;padding: 12px 22px;}.vl-btn-primary:not(:disabled):hover {background: #5dccff;- box-shadow: 0 0 0 4px rgba(61,193,255,0.15);+ box-shadow: 0 0 0 4px rgba(255,255,255,0.15);}.vl-btn-danger {@@ -376,7 +376,7 @@background: #070707;border: 1px solid #1e2035;border-radius: 9px;- color: #e8eaf0;+ color: #e8e8e8;font: inherit;font-size: 14px;outline: none;@@ -406,7 +406,7 @@width: 18px;height: 18px;border-radius: 50%;- border: 2.5px solid rgba(61,193,255,0.2);+ border: 2.5px solid rgba(255,255,255,0.2);border-top-color: #ffffff;animation: vl-spin 0.8s linear infinite;flex-shrink: 0;@@ -414,7 +414,7 @@@keyframes vl-spin { to { transform: rotate(360deg); } }.vl-cloning-text {font-size: 14px;- color: #8a8d9b;+ color: #888888;}/* Done state */@@ -428,8 +428,8 @@align-items: center;gap: 10px;padding: 14px 16px;- background: rgba(52,211,153,0.08);- border: 1px solid rgba(52,211,153,0.25);+ background: rgba(255,255,255,0.08);+ border: 1px solid rgba(255,255,255,0.25);border-radius: 10px;margin-bottom: 14px;}@@ -442,7 +442,7 @@align-items: center;justify-content: center;flex-shrink: 0;- color: #05060a;+ color: #000000;font-size: 13px;font-weight: 700;}@@ -485,7 +485,7 @@font-family: 'Space Grotesk', system-ui, sans-serif;font-size: 18px;font-weight: 600;- color: #e8eaf0;+ color: #e8e8e8;}/* ── Voice library grid ─────────────────────── */@@ -508,7 +508,7 @@.vl-voice-name {font-weight: 600;font-size: 14px;- color: #e8eaf0;+ color: #e8e8e8;}.vl-voice-meta {font-size: 11.5px;@@ -521,7 +521,7 @@font-family: ui-monospace, monospace;font-size: 11px;color: #ffffff;- background: rgba(61,193,255,0.08);+ background: rgba(255,255,255,0.08);padding: 2px 8px;border-radius: 4px;word-break: break-all;@@ -541,7 +541,7 @@}.vl-empty-title {font-weight: 600;- color: #8a8d9b;+ color: #888888;margin-bottom: 4px;}@@ -572,7 +572,7 @@background: #070707;border: 1px solid #1e2035;border-radius: 9px;- color: #e8eaf0;+ color: #e8e8e8;font: inherit;font-size: 14px;cursor: pointer;@@ -586,7 +586,7 @@background: #070707;border: 1px solid #1e2035;border-radius: 10px;- color: #e8eaf0;+ color: #e8e8e8;font: inherit;font-size: 14px;line-height: 1.55;@@ -604,7 +604,7 @@.vl-pg-sample {background: rgba(255,255,255,0.04);border: 1px solid #1a1a1a;- color: #8a8d9b;+ color: #888888;padding: 6px 12px;border-radius: 999px;font: 500 12px system-ui, sans-serif;@@ -612,8 +612,8 @@transition: background 0.12s, color 0.12s, border-color 0.12s;}.vl-pg-sample:hover {- background: rgba(61,193,255,0.08);- border-color: rgba(61,193,255,0.3);+ background: rgba(255,255,255,0.08);+ border-color: rgba(255,255,255,0.3);color: #ffffff;}.vl-pg-output {diff --git a/pages/x-pricing.html b/pages/x-pricing.htmlindex d12bbe750..21085e2ba 100644--- a/pages/x-pricing.html+++ b/pages/x-pricing.html@@ -6,7 +6,7 @@<title>Pricing · three.ws</title><link rel="icon" href="/favicon.ico" /><style>- :root { color-scheme: dark; --accent:#6a5cff; --accent2:#ff5ca8; --border:#22222e; --bg:#0b0b10; --panel:#14141c; }+ :root { color-scheme: dark; --accent:#ffffff; --accent2:#cccccc; --border:#222222; --bg:#000000; --panel:#141414; }* { box-sizing: border-box; }body { font: 15px/1.55 -apple-system, system-ui, Segoe UI, Roboto, sans-serif; color:#eee; margin:0; background:var(--bg); min-height:100vh; }.wrap { max-width: 880px; margin: 0 auto; padding: 56px 24px 80px; }@@ -21,22 +21,22 @@.price { font-size:38px; margin:8px 0 4px; font-weight:600; letter-spacing:-0.01em; }.price small { font-size:14px; color:#888; font-weight:400; }.feat { list-style:none; padding:0; margin:18px 0 0; }- .feat li { padding:8px 0; border-bottom:1px solid #1c1c26; color:#ccc; font-size:14px; display:flex; align-items:center; gap:8px; }+ .feat li { padding:8px 0; border-bottom:1px solid #1c1c1c; color:#ccc; font-size:14px; display:flex; align-items:center; gap:8px; }.feat li:last-child { border-bottom:none; }.feat li::before { content:"✓"; color:var(--accent); font-weight:600; }.btn { padding:12px 16px; border-radius:10px; border:0; background:var(--accent); color:#fff; font-size:14px; font-weight:600; cursor:pointer; margin-top:auto; }.btn:hover { filter:brightness(1.1); }- .btn.sec { background:#222230; color:#ddd; }+ .btn.sec { background:#222222; color:#ddd; }.btn:disabled { opacity:0.5; cursor:not-allowed; }- .checkout { display:none; margin-top:36px; padding:24px; border:1px solid var(--accent); border-radius:14px; background:rgba(106,92,255,0.06); }+ .checkout { display:none; margin-top:36px; padding:24px; border:1px solid var(--accent); border-radius:14px; background:rgba(255,255,255,0.04); }.checkout.show { display:block; }.qr { display:block; width:200px; height:200px; margin:16px 0; background:#fff; padding:10px; border-radius:10px; }- code.payurl { display:block; font-size:11px; word-break:break-all; padding:10px; background:#0f0f17; border:1px solid var(--border); border-radius:8px; color:#9a8cff; margin:10px 0; }+ code.payurl { display:block; font-size:11px; word-break:break-all; padding:10px; background:#0f0f0f; border:1px solid var(--border); border-radius:8px; color:#cccccc; margin:10px 0; }.muted { color:#888; font-size:13px; }.status { margin-top:12px; font-size:13px; }.ok { color:#4ade80; }.err { color:#ffb3b3; }- a { color:#9a8cff; }+ a { color:#cccccc; }header { padding:18px 24px; border-bottom:1px solid var(--border); }header a { color:#aaa; text-decoration:none; font-size:14px; }</style>@@ -85,7 +85,7 @@<code class="payurl" id="payurl"></code><a class="btn" id="open-link" href="#" target="_blank" rel="noopener" style="display:inline-block; text-align:center; text-decoration:none">Open in wallet</a><div class="muted" style="margin-top:14px">After paying, paste the transaction signature:</div>- <input id="txsig" placeholder="Transaction signature" style="width:100%; margin-top:6px; padding:9px 11px; background:#0f0f17; border:1px solid var(--border); border-radius:8px; color:#eee; font-size:13px; font-family:inherit" />+ <input id="txsig" placeholder="Transaction signature" style="width:100%; margin-top:6px; padding:9px 11px; background:#0f0f0f; border:1px solid var(--border); border-radius:8px; color:#eee; font-size:13px; font-family:inherit" /><button class="btn" id="confirm-btn" style="margin-top:10px">I've paid — confirm</button><div class="status" id="status"></div></div>diff --git a/public/app-demo.css b/public/app-demo.cssindex 9c95faead..d5884f49c 100644--- a/public/app-demo.css+++ b/public/app-demo.css@@ -6,7 +6,7 @@* Aesthetic sourced from /studio (public/studio/studio.css):* - bg #0a0a0f, panels #14141c on #2a2a36, radius 14px* - Inter 14/1.45, sticky 60px header with backdrop blur- * - accent #8b5cf6, active nav as filled purple pill+ * - accent #ffffff, active nav as filled white pill*/body.app-demo-body {@@ -100,9 +100,9 @@ body.app-demo-body .features-nav a:hover {body.app-demo-body .features-nav a.active,body.app-demo-body .features-nav a[aria-current='page'] {- color: #fff;- background: #8b5cf6;- border-color: #8b5cf6;+ color: #000000;+ background: #ffffff;+ border-color: #ffffff;}body.app-demo-body .features-nav a.active::after,@@ -245,9 +245,9 @@ body.app-demo-body .dropzone .upload-btn label {font: inherit;font-size: 0.85rem;font-weight: 500;- color: #fff;- background: #8b5cf6;- border: 1px solid #8b5cf6;+ color: #000000;+ background: #ffffff;+ border: 1px solid #ffffff;border-radius: 10px;box-shadow: none;letter-spacing: 0;@@ -257,13 +257,13 @@ body.app-demo-body .dropzone .upload-btn label {}body.app-demo-body .dropzone .upload-btn label:hover {- background: #7c4ef0;- border-color: #7c4ef0;+ background: #e8e8e8;+ border-color: #e8e8e8;}body.app-demo-body .dropzone .upload-btn label:active {- background: #6d3fe2;- border-color: #6d3fe2;+ background: #d4d4d4;+ border-color: #d4d4d4;}body.app-demo-body .dropzone .upload-btn svg {@@ -321,7 +321,7 @@ body.app-demo-body .auth-gate__inner {}body.app-demo-body .auth-gate__eyebrow {- color: #8b5cf6;+ color: #ffffff;letter-spacing: 0.06em;text-transform: uppercase;font-size: 0.72rem;@@ -363,14 +363,14 @@ body.app-demo-body .auth-gate__btn:hover {}body.app-demo-body .auth-gate__btn--primary {- color: #fff;- background: #8b5cf6;- border-color: #8b5cf6;+ color: #000000;+ background: #ffffff;+ border-color: #ffffff;}body.app-demo-body .auth-gate__btn--primary:hover {- background: #7c4ef0;- border-color: #7c4ef0;+ background: #e8e8e8;+ border-color: #e8e8e8;}body.app-demo-body .auth-gate__perks li {@@ -379,7 +379,7 @@ body.app-demo-body .auth-gate__perks li {}body.app-demo-body .auth-gate__perks li::before {- color: #8b5cf6;+ color: #ffffff;}/* ---------- Agent presence sidebar — soften into studio aesthetic ---------- */@@ -418,14 +418,14 @@ body.app-demo-body .agent-onboarding__btn {}body.app-demo-body .agent-onboarding__btn--primary {- color: #fff;- background: #8b5cf6;- border-color: #8b5cf6;+ color: #000000;+ background: #ffffff;+ border-color: #ffffff;}body.app-demo-body .agent-onboarding__btn--primary:hover {- background: #7c4ef0;- border-color: #7c4ef0;+ background: #e8e8e8;+ border-color: #e8e8e8;}/* ---------- Demo banner — tiny indicator so the user knows this isn't /app ---------- */@@ -442,9 +442,9 @@ body.app-demo-body::before {font-weight: 500;letter-spacing: 0.04em;text-transform: uppercase;- color: #c4b8ff;- background: rgba(139, 92, 246, 0.15);- border: 1px solid rgba(139, 92, 246, 0.4);+ color: rgba(255, 255, 255, 0.7);+ background: rgba(255, 255, 255, 0.15);+ border: 1px solid rgba(255, 255, 255, 0.4);border-radius: 999px;pointer-events: none;}diff --git a/public/brain.css b/public/brain.cssindex 586eeb1b1..9b9156a5f 100644--- a/public/brain.css+++ b/public/brain.css@@ -239,7 +239,7 @@ body {font-weight: 700;letter-spacing: -0.02em;margin: 0 0 8px;- background: linear-gradient(135deg, #3dc1ff 0%, #a78bfa 50%, #f472b6 100%);+ background: linear-gradient(135deg, #3dc1ff 0%, #ffffff 50%, #f472b6 100%);-webkit-background-clip: text;-webkit-text-fill-color: transparent;background-clip: text;@@ -431,7 +431,7 @@ body {font-weight: 500;}.br-chip-blue { background: rgba(61,193,255,0.1); color: #3dc1ff; border: 1px solid rgba(61,193,255,0.25); }-.br-chip-purple { background: rgba(167,139,250,0.1); color: #a78bfa; border: 1px solid rgba(167,139,250,0.25); }+.br-chip-purple { background: rgba(255,255,255,0.06); color: #ffffff; border: 1px solid rgba(255,255,255,0.15); }.br-chip-red { background: rgba(255,100,100,0.08); color: #ff8a8a; border: 1px solid rgba(255,100,100,0.2); }.br-chip-muted { background: rgba(255,255,255,0.04); color: #8a8faa; border: 1px solid #1e2035; }diff --git a/public/dashboard-classic/actions.html b/public/dashboard-classic/actions.htmlindex 907914717..7409255e3 100644--- a/public/dashboard-classic/actions.html+++ b/public/dashboard-classic/actions.html@@ -7,11 +7,11 @@<style>:root {color-scheme: dark;- --accent: #6a5cff;- --accent2: #ff5ca8;- --border: #22222e;+ --accent: #ffffff;+ --accent2: #cccccc;+ --border: #222222;--bg: #000;- --panel: #14141c;+ --panel: #141414;}* {box-sizing: border-box;diff --git a/public/dashboard-classic/agent-pumpfun.html b/public/dashboard-classic/agent-pumpfun.htmlindex 11d402ecb..789e44561 100644--- a/public/dashboard-classic/agent-pumpfun.html+++ b/public/dashboard-classic/agent-pumpfun.html@@ -8,15 +8,15 @@<style>:root {color-scheme: dark;- --accent: #6a5cff;- --accent2: #ff5ca8;+ --accent: #ffffff;+ --accent2: #cccccc;--ok: #4ade80;--warn: #fbbf24;--err: #f87171;- --border: #22222e;+ --border: #222222;--bg: #000;- --panel: #14141c;- --panel2: #1a1a24;+ --panel: #141414;+ --panel2: #1a1a1a;--muted: #888;}* {@@ -244,7 +244,7 @@}.btn.ghost {background: transparent;- border: 1px solid #22222e;+ border: 1px solid #222222;color: #ddd;}.btn.ghost:hover:not(:disabled) {@@ -411,7 +411,7 @@min-width: 80px;height: 12px;border-radius: 4px;- background: linear-gradient(90deg, #1a1a24 0%, #24242e 50%, #1a1a24 100%);+ background: linear-gradient(90deg, #1a1a1a 0%, #24242e 50%, #1a1a1a 100%);background-size: 200% 100%;animation: shimmer 1.2s linear infinite;vertical-align: middle;@@ -1597,7 +1597,7 @@const span = max - min || 1;const sx = (i) => (i / Math.max(1, xs.length - 1)) * (w - 16) + 8;const sy = (v) => h - 8 - ((v - min) / span) * (h - 16);- ctx.strokeStyle = '#6a5cff';+ ctx.strokeStyle = '#ffffff';ctx.lineWidth = 2;ctx.beginPath();ys.forEach((v, i) => {diff --git a/public/dashboard-classic/embed-policy.html b/public/dashboard-classic/embed-policy.htmlindex 68333d517..463cb3f06 100644--- a/public/dashboard-classic/embed-policy.html+++ b/public/dashboard-classic/embed-policy.html@@ -13,11 +13,11 @@<style>:root {color-scheme: dark;- --accent: #6a5cff;- --accent2: #ff5ca8;- --border: #22222e;+ --accent: #ffffff;+ --accent2: #cccccc;+ --border: #222222;--bg: #000;- --panel: #14141c;+ --panel: #141414;}* {box-sizing: border-box;@@ -169,7 +169,7 @@.btn.sec {background: #15151d;color: #ddd;- border-color: #22222e;+ border-color: #222222;}.btn.sec:hover:not(:disabled) {background: #1c1c26;diff --git a/public/dashboard-classic/index.html b/public/dashboard-classic/index.htmlindex eacd9d3a6..242221292 100644--- a/public/dashboard-classic/index.html+++ b/public/dashboard-classic/index.html@@ -11,11 +11,11 @@<style>:root {color-scheme: dark;- --accent: #6a5cff;- --accent2: #ff5ca8;- --border: #22222e;+ --accent: #ffffff;+ --accent2: #cccccc;+ --border: #222222;--bg: #000;- --panel: #14141c;+ --panel: #141414;}* {box-sizing: border-box;@@ -189,7 +189,7 @@margin-top: 8px;padding: 6px 12px;border-radius: 6px;- border: 1px solid #22222e;+ border: 1px solid #222222;background: #15151d;color: #ddd;font-size: 12px;@@ -249,7 +249,7 @@position: absolute;z-index: 80;min-width: 180px;- background: #14141c;+ background: #141414;border: 1px solid var(--border);border-radius: 10px;padding: 6px;@@ -330,7 +330,7 @@.load-more button {padding: 8px 18px;border-radius: 6px;- border: 1px solid #22222e;+ border: 1px solid #222222;background: #15151d;color: #ddd;font-size: 13px;@@ -380,7 +380,7 @@.btn.sec {background: #15151d;color: #ddd;- border-color: #22222e;+ border-color: #222222;}.btn.sec:hover:not(:disabled) {background: #1c1c26;@@ -599,7 +599,7 @@padding: 6px 10px;border-radius: 7px;border: 1px solid var(--border);- background: #1a1a24;+ background: #1a1a1a;color: #ddd;font-size: 12px;cursor: pointer;@@ -607,7 +607,7 @@}.widget-card .actions button:hover,.widget-card .actions a:hover {- background: #22222e;+ background: #222222;}.widget-card .actions .danger:hover {background: rgba(204, 64, 64, 0.18);@@ -761,7 +761,7 @@stroke-width: 2;}.spark .axis {- stroke: #22222e;+ stroke: #222222;stroke-width: 1;}details summary {@@ -902,7 +902,7 @@bottom: 24px;left: 50%;transform: translateX(-50%);- background: #1a1a24;+ background: #1a1a1a;border: 1px solid var(--border);padding: 10px 18px;border-radius: 99px;@@ -1049,13 +1049,13 @@padding: 5px 10px;border-radius: 7px;border: 1px solid var(--border);- background: #1a1a24;+ background: #1a1a1a;color: #ddd;font-size: 12px;cursor: pointer;}.clip-row .clip-actions button:hover {- background: #22222e;+ background: #222222;}.clip-row .clip-actions button.danger:hover {background: rgba(204, 64, 64, 0.18);@@ -1113,7 +1113,7 @@top: 4px;right: 6px;font-size: 11px;- color: #6a5cff;+ color: #ffffff;}.anim-upload {display: flex;diff --git a/public/dashboard-classic/portfolio-asset.html b/public/dashboard-classic/portfolio-asset.htmlindex 483dc5c19..e5be618ed 100644--- a/public/dashboard-classic/portfolio-asset.html+++ b/public/dashboard-classic/portfolio-asset.html@@ -8,8 +8,8 @@<style>:root {color-scheme: dark;- --accent: #6a5cff;- --accent2: #ff5ca8;+ --accent: #ffffff;+ --accent2: #cccccc;--ok: #2ed4a3;--warn: #ffb35c;--err: #ff6a6a;diff --git a/public/dashboard-classic/portfolio.html b/public/dashboard-classic/portfolio.htmlindex 541e40a14..abfdc665f 100644--- a/public/dashboard-classic/portfolio.html+++ b/public/dashboard-classic/portfolio.html@@ -12,8 +12,8 @@<style>:root {color-scheme: dark;- --accent: #6a5cff;- --accent2: #ff5ca8;+ --accent: #ffffff;+ --accent2: #cccccc;--ok: #2ed4a3;--warn: #ffb35c;--err: #ff6a6a;diff --git a/public/dashboard-classic/storage.html b/public/dashboard-classic/storage.htmlindex 50fd0e203..e4ca74833 100644--- a/public/dashboard-classic/storage.html+++ b/public/dashboard-classic/storage.html@@ -8,11 +8,11 @@<style>:root {color-scheme: dark;- --accent: #6a5cff;- --accent2: #ff5ca8;- --border: #22222e;+ --accent: #ffffff;+ --accent2: #cccccc;+ --border: #222222;--bg: #000;- --panel: #14141c;+ --panel: #141414;}* {box-sizing: border-box;@@ -166,7 +166,7 @@.btn.sec {background: #15151d;color: #ddd;- border-color: #22222e;+ border-color: #222222;}.btn.sec:hover:not(:disabled) {background: #1c1c26;diff --git a/public/dashboard-classic/wallets.html b/public/dashboard-classic/wallets.htmlindex b6c89c9f9..b1f883899 100644--- a/public/dashboard-classic/wallets.html+++ b/public/dashboard-classic/wallets.html@@ -8,11 +8,11 @@<style>:root {color-scheme: dark;- --accent: #6a5cff;- --accent2: #ff5ca8;- --border: #22222e;+ --accent: #ffffff;+ --accent2: #cccccc;+ --border: #222222;--bg: #000;- --panel: #14141c;+ --panel: #141414;}* {box-sizing: border-box;@@ -86,7 +86,7 @@.btn.sec {background: #15151d;color: #ddd;- border-color: #22222e;+ border-color: #222222;}.btn.sec:hover:not(:disabled) {background: #1c1c26;diff --git a/public/demos/agents/gemini-live.html b/public/demos/agents/gemini-live.htmlindex 20bd98294..bd55e7a6e 100644--- a/public/demos/agents/gemini-live.html+++ b/public/demos/agents/gemini-live.html@@ -25,7 +25,7 @@font: 800 clamp(28px, 3.5vw, 48px)/1.08 'Space Grotesk','Inter',sans-serif;letter-spacing: -0.03em; color: #fff; text-align: center;}- #overlay h2 em { color: #3dc1ff; font-style: normal; }+ #overlay h2 em { color: #ffffff; font-style: normal; }#overlay p {margin: 0; color: #555870; font-size: 15px;line-height: 1.7; max-width: 38ch; text-align: center;@@ -43,12 +43,12 @@font: 500 13px/1 'Inter', sans-serif; cursor: pointer;outline: none;}- #voice-select:focus { border-color: rgba(61, 193, 255,0.5); }+ #voice-select:focus { border-color: rgba(255,255,255,0.5); }#start-btn {margin-top: 4px;padding: 16px 44px; border: none; border-radius: 100px;- background: #3dc1ff; color: #04050d;+ background: #ffffff; color: #000000;font: 700 15px/1 'Space Grotesk','Inter',sans-serif;letter-spacing: 0.01em; cursor: pointer;transition: opacity 0.15s, transform 0.15s;@@ -60,7 +60,7 @@/* ── Stage copy ── */.stage { pointer-events: none; transition: opacity 0.4s; }.stage.hidden { opacity: 0; }- .stage h1 em { color: #3dc1ff; font-style: normal; }+ .stage h1 em { color: #ffffff; font-style: normal; }/* ── Controls bar ── */#controls {@@ -83,7 +83,7 @@outline: none;}#text-input::placeholder { color: #444860; }- #text-input:focus { border-color: rgba(61, 193, 255,0.4); }+ #text-input:focus { border-color: rgba(255,255,255,0.4); }#send-btn {background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);color: #ccc; border-radius: 10px; padding: 9px 14px;@@ -106,8 +106,8 @@.ctrl-btn:active { transform: scale(0.97); }#mic-btn {- background: #3dc1ff; color: #04050d;- box-shadow: 0 4px 0 0 #005a8a, 0 6px 20px rgba(61, 193, 255,0.22);+ background: #ffffff; color: #000000;+ box-shadow: 0 4px 0 0 #888888, 0 6px 20px rgba(255, 255, 255,0.22);}#mic-btn.recording {background: #ef4444; color: #fff;@@ -118,7 +118,7 @@background: rgba(255,255,255,0.06);border: 1px solid rgba(255,255,255,0.12); color: #ccc;}- #cam-btn.active { background: rgba(61, 193, 255,0.1); border-color: rgba(61, 193, 255,0.4); color: #3dc1ff; }+ #cam-btn.active { background: rgba(255, 255, 255,0.1); border-color: rgba(255, 255, 255,0.4); color: #ffffff; }#end-btn {background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); color: #f87171;@@ -132,7 +132,7 @@}#mic-level-fill {height: 100%; width: 0; border-radius: 2px;- background: #3dc1ff;+ background: #ffffff;transition: width 0.05s linear;}#mic-level.muted #mic-level-fill { background: #555870; }@@ -155,7 +155,7 @@width: 7px; height: 7px; border-radius: 50%;background: #555870; transition: background 0.3s; flex-shrink: 0;}- #status[data-state="idle"] #status-dot { background: #3dc1ff; }+ #status[data-state="idle"] #status-dot { background: #ffffff; }#status[data-state="listening"] #status-dot { background: #ef4444; animation: pulse 0.9s ease-in-out infinite alternate; }#status[data-state="thinking"] #status-dot { background: #a78bfa; animation: pulse 1.2s ease-in-out infinite alternate; }#status[data-state="speaking"] #status-dot { background: #34d399; animation: pulse 0.7s ease-in-out infinite alternate; }@@ -180,18 +180,18 @@}.tx-msg-user {align-self: flex-end;- background: rgba(125,211,252,0.09);- border: 1px solid rgba(125,211,252,0.2); color: #7dd3fc;+ background: rgba(255,255,255,0.09);+ border: 1px solid rgba(255,255,255,0.2); color: #ffffff;}.tx-msg-model {align-self: flex-start;background: rgba(255,255,255,0.04);border: 1px solid rgba(255,255,255,0.07); color: #ccc;}- .tx-msg-model.streaming { border-color: rgba(61, 193, 255,0.2); }+ .tx-msg-model.streaming { border-color: rgba(255, 255, 255,0.2); }/* Typing cursor on streaming model messages */.tx-msg-model.streaming::after {- content: '▌'; color: #3dc1ff; animation: blink-cursor 0.7s step-end infinite;+ content: '▌'; color: #ffffff; animation: blink-cursor 0.7s step-end infinite;}@keyframes blink-cursor { 50% { opacity: 0; } }diff --git a/public/demos/skill-royalty.html b/public/demos/skill-royalty.htmlindex 2a4a84c24..cc8d142fe 100644--- a/public/demos/skill-royalty.html+++ b/public/demos/skill-royalty.html@@ -3,82 +3,702 @@<head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />- <title>three.ws · Skill royalty distribution</title>- <meta- name="description"- content="Create an on-chain royalty split that pays skill authors automatically. Pull split contract on Base Sepolia testnet, real wallet signing, no mocks."- />+ <title>three.ws · Skill Earnings Split</title>+ <meta name="description" content="Configure how earnings from your skills are automatically divided. Every payment splits instantly — no manual distributions." /><meta name="robots" content="noindex" /><link rel="stylesheet" href="/style.css" /><link rel="stylesheet" href="/nav.css" /><style>- :root { color-scheme: dark; }- body { background: #05060a; color: #eee; font: 15px/1.5 -apple-system, system-ui, sans-serif; margin: 0; }- .stage { max-width: 1080px; margin: 0 auto; padding: 48px 24px 80px; }- .crumb a { color: #8a8d98; text-decoration: none; }- .crumb a:hover { color: #3dc1ff; }- h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.015em; margin: 14px 0 8px; }- .sub { color: #8a8d98; max-width: 72ch; margin: 0 0 26px; }- .sub code { background: #0f1018; padding: 1px 6px; border-radius: 5px; font-size: 12.5px; color: #3dc1ff; }- h2 { font-size: 18px; font-weight: 600; margin: 0 0 14px; letter-spacing: -0.01em; }- .card { background: #0f1018; border: 1.5px solid #1e1f2b; border-radius: 14px; padding: 22px; margin: 0 0 22px; }- .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }- label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #8a8d98; text-transform: uppercase; letter-spacing: 0.08em; flex: 1 1 240px; }- input[type=text], input[type=number] {- background: #07080d; border: 1px solid #1e1f2b; color: #eee;- padding: 9px 11px; border-radius: 9px; font: inherit;- }- button {- background: #3dc1ff; color: #0a0a0a; border: 0; border-radius: 9px;- padding: 9px 16px; font-weight: 600; cursor: pointer; font: inherit;- }- button.secondary { background: rgba(255,255,255,0.06); color: #eee; border: 1px solid #1e1f2b; }- button.tiny { padding: 5px 9px; font-size: 12px; border-radius: 7px; }- button:disabled { opacity: 0.35; cursor: not-allowed; }- .pill {- display: inline-flex; align-items: center; gap: 6px;- font-family: ui-monospace, monospace; font-size: 11.5px;- padding: 4px 9px; border-radius: 999px;- background: rgba(61, 193, 255,0.08); color: #3dc1ff;- border: 1px solid rgba(61, 193, 255,0.2);+ :root {+ color-scheme: dark;+ --bg: #03040a;+ --surface: #0a0b14;+ --surface-2: #0f1020;+ --border: #1e2035;+ --border-2: #2a2d47;+ --text: #e8eaf0;+ --text-2: #8a8faa;+ --text-3: #565870;+ --accent: #3dc1ff;+ --accent-glow: rgba(61, 193, 255, 0.15);+ --green: #4ade80;+ --orange: #fb923c;+ --red: #f87171;+ }++ *, *::before, *::after { box-sizing: border-box; }++ body {+ background: var(--bg);+ color: var(--text);+ font: 14px/1.6 -apple-system, system-ui, 'Segoe UI', sans-serif;+ margin: 0;+ }++ .page {+ max-width: 860px;+ margin: 0 auto;+ padding: 40px 20px 100px;+ }++ /* ── Page header ── */+ .page-header {+ margin-bottom: 36px;+ }+ .page-header .crumb {+ display: flex;+ align-items: center;+ gap: 8px;+ margin-bottom: 18px;+ }+ .page-header .crumb a {+ color: var(--text-3);+ text-decoration: none;+ font-size: 12px;+ letter-spacing: 0.04em;+ transition: color 0.15s;+ }+ .page-header .crumb a:hover { color: var(--accent); }+ .page-header h1 {+ font-size: 26px;+ font-weight: 700;+ letter-spacing: -0.02em;+ margin: 0 0 8px;+ color: var(--text);+ }+ .page-header .sub {+ color: var(--text-2);+ font-size: 14px;+ max-width: 66ch;+ margin: 0 0 14px;+ line-height: 1.65;+ }+ .net-badge {+ display: inline-flex;+ align-items: center;+ gap: 6px;+ font-size: 11px;+ color: var(--text-2);+ background: var(--surface);+ border: 1px solid var(--border);+ border-radius: 99px;+ padding: 3px 10px 3px 6px;+ letter-spacing: 0.04em;+ }+ .net-badge .dot {+ width: 7px;+ height: 7px;+ border-radius: 50%;+ background: var(--orange);+ flex-shrink: 0;+ }++ /* ── Step indicator ── */+ .steps-nav {+ display: flex;+ align-items: center;+ gap: 0;+ margin-bottom: 28px;+ background: var(--surface);+ border: 1px solid var(--border);+ border-radius: 12px;+ padding: 4px;+ overflow-x: auto;+ }+ .step-btn {+ display: flex;+ align-items: center;+ gap: 8px;+ padding: 8px 14px;+ border-radius: 9px;+ border: none;+ background: transparent;+ color: var(--text-3);+ font-size: 13px;+ font-weight: 500;+ cursor: default;+ white-space: nowrap;+ transition: background 0.2s, color 0.2s;+ flex: 1;+ justify-content: center;+ }+ .step-btn.active {+ background: var(--surface-2);+ color: var(--text);+ border: 1px solid var(--border-2);+ }+ .step-btn.done { color: var(--green); cursor: pointer; }+ .step-btn.done:hover { background: rgba(74, 222, 128, 0.06); }+ .step-btn .num {+ width: 22px;+ height: 22px;+ border-radius: 50%;+ background: var(--border);+ color: var(--text-3);+ font-size: 11px;+ font-weight: 700;+ display: flex;+ align-items: center;+ justify-content: center;+ flex-shrink: 0;+ transition: background 0.2s, color 0.2s;+ }+ .step-btn.active .num {+ background: var(--accent);+ color: #03040a;+ }+ .step-btn.done .num {+ background: rgba(74, 222, 128, 0.15);+ color: var(--green);+ }+ .step-sep {+ color: var(--border-2);+ font-size: 16px;+ padding: 0 2px;+ flex-shrink: 0;+ }++ /* ── Cards ── */+ .card {+ background: var(--surface);+ border: 1px solid var(--border);+ border-radius: 14px;+ padding: 24px;+ margin-bottom: 16px;+ }+ .card-title {+ font-size: 15px;+ font-weight: 600;+ margin: 0 0 4px;+ color: var(--text);+ letter-spacing: -0.01em;+ }+ .card-desc {+ font-size: 13px;+ color: var(--text-2);+ margin: 0 0 18px;+ line-height: 1.55;+ }++ /* ── Step panels ── */+ .step-panel {+ display: none;+ animation: fadeSlide 0.25s ease;+ }+ .step-panel.active { display: block; }+ @keyframes fadeSlide {+ from { opacity: 0; transform: translateY(6px); }+ to { opacity: 1; transform: translateY(0); }+ }++ /* ── Wallet bar ── */+ .wallet-bar {+ display: flex;+ align-items: center;+ gap: 10px;+ flex-wrap: wrap;+ }+ .btn {+ display: inline-flex;+ align-items: center;+ gap: 7px;+ padding: 9px 18px;+ border-radius: 9px;+ border: none;+ font: inherit;+ font-size: 13px;+ font-weight: 600;cursor: pointer;+ transition: opacity 0.15s, background 0.15s;+ white-space: nowrap;+ }+ .btn:disabled { opacity: 0.35; cursor: not-allowed; }+ .btn-primary {+ background: var(--accent);+ color: #03040a;+ }+ .btn-primary:not(:disabled):hover { background: #5dceff; }+ .btn-secondary {+ background: rgba(255,255,255,0.05);+ color: var(--text);+ border: 1px solid var(--border-2);+ }+ .btn-secondary:not(:disabled):hover { background: rgba(255,255,255,0.08); }+ .btn-ghost {+ background: transparent;+ color: var(--text-2);+ border: 1px solid var(--border);+ padding: 7px 12px;+ font-size: 12px;+ }+ .btn-ghost:not(:disabled):hover { color: var(--text); border-color: var(--border-2); }+ .btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 7px; }+ .btn-danger {+ background: rgba(248, 113, 113, 0.1);+ color: var(--red);+ border: 1px solid rgba(248, 113, 113, 0.25);+ }+ .btn-danger:not(:disabled):hover { background: rgba(248, 113, 113, 0.18); }++ .pill {+ display: inline-flex;+ align-items: center;+ gap: 5px;+ font-size: 12px;+ font-family: ui-monospace, monospace;+ padding: 4px 10px;+ border-radius: 99px;+ border: 1px solid var(--border-2);+ background: var(--surface-2);+ color: var(--text-2);}- .pill.bad { background: rgba(255,138,138,0.08); color: #ff8a8a; border-color: rgba(255,138,138,0.25); }- .pill.muted { background: rgba(255,255,255,0.04); color: #8a8d98; border-color: #1e1f2b; cursor: default; }+ .pill.connected { border-color: rgba(61,193,255,0.3); background: rgba(61,193,255,0.07); color: var(--accent); cursor: pointer; }+ .pill.connected:hover { background: rgba(61,193,255,0.12); }+ .pill.wrong-chain { border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.07); color: var(--red); }+ .pill.ok-chain { border-color: rgba(74,222,128,0.25); background: rgba(74,222,128,0.07); color: var(--green); }++ /* ── Notices ── */.notice {- padding: 11px 14px; border-radius: 10px; font-size: 13px; margin: 12px 0;- background: rgba(154,212,255,0.06); border: 1px solid rgba(154,212,255,0.2); color: #9ad4ff;- }- .notice.warn { background: rgba(255,196,87,0.07); border-color: rgba(255,196,87,0.3); color: #ffc457; }- .notice.err { background: rgba(255,138,138,0.07); border-color: rgba(255,138,138,0.3); color: #ff8a8a; }- .notice.ok { background: rgba(61, 193, 255,0.07); border-color: rgba(61, 193, 255,0.3); color: #3dc1ff; }- .log {- background: #07080d; border: 1px solid #1e1f2b; border-radius: 9px;- padding: 12px; font-family: ui-monospace, monospace; font-size: 12px;- line-height: 1.6; color: #8a8d98; max-height: 280px; overflow: auto; white-space: pre-wrap;- }- .log .ok { color: #3dc1ff; }- .log .err { color: #ff6b6b; }- .log .info { color: #66d9ef; }- .kv { display: grid; grid-template-columns: 160px 1fr; gap: 4px 14px; font-size: 12.5px; }- .kv dt { color: #8a8d98; font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; }- .kv dd { margin: 0; font-family: ui-monospace, monospace; color: #ddd; word-break: break-all; }- .kv dd a { color: #9ad4ff; }- table { width: 100%; border-collapse: collapse; font-size: 12.5px; }- th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #1e1f2b; vertical-align: middle; }- th { color: #8a8d98; font-weight: 500; text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.08em; }- td { font-family: ui-monospace, monospace; color: #ddd; word-break: break-word; }- td input[type=text] { width: 100%; }- td input[type=number] { width: 90px; }- td.actions { width: 60px; text-align: right; }- .sum-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13px; }- .sum-row .sum-good { color: #3dc1ff; }- .sum-row .sum-bad { color: #ff8a8a; }- .copy-addr { cursor: pointer; color: #9ad4ff; text-decoration: none; }- .copy-addr:hover { color: #3dc1ff; }- .full { flex-basis: 100%; }- footer.foot { color: #5b5d6b; font-size: 11.5px; margin-top: 30px; text-align: center; }- footer.foot a { color: #8a8d98; }+ padding: 10px 14px;+ border-radius: 9px;+ font-size: 13px;+ margin: 12px 0;+ line-height: 1.55;+ }+ .notice-info { background: rgba(61,193,255,0.06); border: 1px solid rgba(61,193,255,0.2); color: #9ad4ff; }+ .notice-warn { background: rgba(251,146,60,0.07); border: 1px solid rgba(251,146,60,0.25); color: var(--orange); }+ .notice-err { background: rgba(248,113,113,0.07); border: 1px solid rgba(248,113,113,0.25); color: var(--red); }+ .notice-ok { background: rgba(74,222,128,0.06); border: 1px solid rgba(74,222,128,0.2); color: var(--green); }++ /* ── Donut chart ── */+ .chart-wrap {+ display: flex;+ align-items: center;+ gap: 24px;+ padding: 20px;+ background: var(--surface-2);+ border: 1px solid var(--border);+ border-radius: 12px;+ margin-bottom: 20px;+ flex-wrap: wrap;+ }+ .donut-svg { flex-shrink: 0; }+ .donut-svg circle {+ transition: stroke-dashoffset 0.4s cubic-bezier(0.4,0,0.2,1),+ stroke-dasharray 0.4s cubic-bezier(0.4,0,0.2,1);+ }+ .chart-legend {+ flex: 1;+ min-width: 160px;+ display: flex;+ flex-direction: column;+ gap: 6px;+ }+ .legend-item {+ display: flex;+ align-items: center;+ gap: 8px;+ font-size: 12px;+ color: var(--text-2);+ cursor: pointer;+ padding: 4px 6px;+ border-radius: 6px;+ transition: background 0.15s;+ }+ .legend-item:hover { background: rgba(255,255,255,0.04); }+ .legend-item.highlighted { background: rgba(255,255,255,0.06); color: var(--text); }+ .legend-dot {+ width: 10px;+ height: 10px;+ border-radius: 50%;+ flex-shrink: 0;+ }+ .legend-addr { font-family: ui-monospace, monospace; flex: 1; }+ .legend-pct { font-weight: 600; font-family: ui-monospace, monospace; }+ .chart-center-label {+ font-size: 11px;+ fill: var(--text-3);+ text-anchor: middle;+ }+ .chart-center-pct {+ font-size: 18px;+ font-weight: 700;+ fill: var(--text);+ text-anchor: middle;+ }+ .chart-warn-overlay {+ font-size: 10px;+ fill: var(--orange);+ text-anchor: middle;+ }++ /* ── Sum bar ── */+ .sum-bar-wrap {+ margin-top: 16px;+ margin-bottom: 4px;+ }+ .sum-bar-track {+ height: 5px;+ border-radius: 99px;+ background: var(--border);+ overflow: hidden;+ margin-top: 6px;+ }+ .sum-bar-fill {+ height: 100%;+ border-radius: 99px;+ background: var(--accent);+ transition: width 0.35s cubic-bezier(0.4,0,0.2,1), background 0.25s;+ }+ .sum-bar-fill.overage { background: var(--red); }+ .sum-bar-fill.perfect { background: var(--green); }+ .sum-label {+ display: flex;+ justify-content: space-between;+ font-size: 12px;+ color: var(--text-2);+ }+ .sum-label .sum-val { font-weight: 600; font-family: ui-monospace, monospace; }+ .sum-label .sum-val.good { color: var(--green); }+ .sum-label .sum-val.bad { color: var(--red); }++ /* ── Recipients table ── */+ .recipients-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }+ .recipients-table th {+ font-size: 10.5px;+ text-transform: uppercase;+ letter-spacing: 0.08em;+ color: var(--text-3);+ font-weight: 500;+ padding: 0 10px 8px;+ text-align: left;+ }+ .recipients-table td { padding: 5px 6px; vertical-align: middle; }+ .recipients-table tbody tr { border-bottom: 1px solid var(--border); }+ .recipients-table tbody tr:last-child { border-bottom: none; }+ .r-dot-cell { width: 28px; }+ .r-dot {+ width: 12px;+ height: 12px;+ border-radius: 50%;+ flex-shrink: 0;+ display: block;+ margin: 0 auto;+ transition: transform 0.2s;+ }+ tr.row-highlighted .r-dot { transform: scale(1.4); }+ .r-addr-cell { min-width: 200px; }+ .r-addr-cell input {+ width: 100%;+ background: var(--bg);+ border: 1px solid var(--border);+ color: var(--text);+ padding: 7px 10px;+ border-radius: 8px;+ font: 13px/1 ui-monospace, monospace;+ transition: border-color 0.15s;+ }+ .r-addr-cell input:focus { outline: none; border-color: var(--accent); }+ .r-addr-cell input.invalid { border-color: rgba(248,113,113,0.5); }+ .r-pct-cell { width: 160px; }+ .r-pct-wrap {+ display: flex;+ align-items: center;+ gap: 6px;+ }+ .r-pct-wrap input[type=range] {+ flex: 1;+ -webkit-appearance: none;+ height: 4px;+ border-radius: 99px;+ background: var(--border-2);+ outline: none;+ }+ .r-pct-wrap input[type=range]::-webkit-slider-thumb {+ -webkit-appearance: none;+ width: 14px;+ height: 14px;+ border-radius: 50%;+ background: var(--accent);+ cursor: pointer;+ transition: transform 0.15s;+ }+ .r-pct-wrap input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }+ .r-pct-wrap input[type=number] {+ width: 56px;+ background: var(--bg);+ border: 1px solid var(--border);+ color: var(--text);+ padding: 6px 8px;+ border-radius: 7px;+ font: 12px/1 ui-monospace, monospace;+ text-align: right;+ }+ .r-pct-wrap input[type=number]:focus { outline: none; border-color: var(--accent); }+ .r-remove-cell { width: 36px; text-align: right; }+ .r-remove-btn {+ background: transparent;+ border: none;+ color: var(--text-3);+ cursor: pointer;+ font-size: 16px;+ line-height: 1;+ padding: 4px;+ border-radius: 5px;+ transition: color 0.15s, background 0.15s;+ }+ .r-remove-btn:hover:not(:disabled) { color: var(--red); background: rgba(248,113,113,0.1); }+ .r-remove-btn:disabled { opacity: 0.3; cursor: not-allowed; }++ .add-recipient-row {+ display: flex;+ align-items: center;+ gap: 8px;+ margin-top: 12px;+ }++ /* ── Deploy summary card ── */+ .deploy-summary {+ background: var(--surface-2);+ border: 1px solid var(--border);+ border-radius: 10px;+ padding: 14px 16px;+ margin-bottom: 16px;+ }+ .deploy-summary-row {+ display: flex;+ align-items: center;+ gap: 10px;+ padding: 5px 0;+ font-size: 13px;+ border-bottom: 1px solid var(--border);+ }+ .deploy-summary-row:last-child { border-bottom: none; }+ .deploy-summary-row .ds-dot {+ width: 9px;+ height: 9px;+ border-radius: 50%;+ flex-shrink: 0;+ }+ .deploy-summary-row .ds-addr {+ font-family: ui-monospace, monospace;+ color: var(--text-2);+ flex: 1;+ }+ .deploy-summary-row .ds-pct {+ font-family: ui-monospace, monospace;+ font-weight: 600;+ color: var(--text);+ }++ .contract-deployed-box {+ background: rgba(74,222,128,0.05);+ border: 1px solid rgba(74,222,128,0.2);+ border-radius: 10px;+ padding: 16px;+ margin: 14px 0;+ animation: successPulse 0.5s ease;+ }+ @keyframes successPulse {+ 0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.3); }+ 50% { box-shadow: 0 0 0 8px rgba(74,222,128,0); }+ 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }+ }+ .contract-deployed-box .label {+ font-size: 11px;+ text-transform: uppercase;+ letter-spacing: 0.08em;+ color: var(--green);+ margin-bottom: 6px;+ }+ .contract-addr-row {+ display: flex;+ align-items: center;+ gap: 8px;+ flex-wrap: wrap;+ }+ .contract-addr-row code {+ font-family: ui-monospace, monospace;+ font-size: 13px;+ color: var(--text);+ word-break: break-all;+ }+ .copy-btn {+ background: var(--surface-2);+ border: 1px solid var(--border-2);+ color: var(--text-2);+ padding: 4px 9px;+ border-radius: 6px;+ font-size: 11px;+ cursor: pointer;+ transition: background 0.15s, color 0.15s;+ }+ .copy-btn:hover { background: var(--border); color: var(--text); }+ .immutable-note {+ display: flex;+ align-items: center;+ gap: 7px;+ font-size: 12px;+ color: var(--text-3);+ margin-top: 10px;+ }++ /* ── Fund & Distribute ── */+ .fund-row {+ display: flex;+ gap: 10px;+ align-items: flex-end;+ flex-wrap: wrap;+ margin-bottom: 16px;+ }+ .form-field {+ display: flex;+ flex-direction: column;+ gap: 5px;+ }+ .form-field label {+ font-size: 11px;+ text-transform: uppercase;+ letter-spacing: 0.07em;+ color: var(--text-3);+ font-weight: 500;+ }+ .form-field input[type=number],+ .form-field input[type=text] {+ background: var(--bg);+ border: 1px solid var(--border);+ color: var(--text);+ padding: 8px 12px;+ border-radius: 8px;+ font: 13px/1 ui-monospace, monospace;+ transition: border-color 0.15s;+ }+ .form-field input:focus { outline: none; border-color: var(--accent); }++ .balance-display {+ font-size: 13px;+ color: var(--text-2);+ margin-bottom: 14px;+ }+ .balance-display .eth-val {+ font-family: ui-monospace, monospace;+ font-weight: 600;+ color: var(--text);+ }++ .payout-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 12px 0; }+ .payout-table th {+ font-size: 10.5px;+ text-transform: uppercase;+ letter-spacing: 0.07em;+ color: var(--text-3);+ font-weight: 500;+ padding: 0 10px 8px;+ text-align: left;+ border-bottom: 1px solid var(--border);+ }+ .payout-table td {+ padding: 9px 10px;+ border-bottom: 1px solid var(--border);+ vertical-align: middle;+ }+ .payout-table tbody tr:last-child td { border-bottom: none; }+ .payout-dot {+ width: 9px;+ height: 9px;+ border-radius: 50%;+ display: inline-block;+ margin-right: 7px;+ vertical-align: middle;+ }+ .payout-addr { font-family: ui-monospace, monospace; color: var(--text-2); }+ .payout-pct { font-family: ui-monospace, monospace; color: var(--text-2); }+ .payout-eth { font-family: ui-monospace, monospace; font-weight: 600; color: var(--text); }+ .you-badge {+ font-size: 10px;+ padding: 1px 6px;+ border-radius: 99px;+ background: rgba(61,193,255,0.1);+ color: var(--accent);+ border: 1px solid rgba(61,193,255,0.2);+ margin-left: 6px;+ }++ .action-row {+ display: flex;+ gap: 10px;+ flex-wrap: wrap;+ align-items: center;+ }++ /* ── Event log ── */+ .log-section { margin-top: 20px; }+ .log-toggle {+ display: flex;+ align-items: center;+ gap: 8px;+ cursor: pointer;+ padding: 10px 14px;+ background: var(--surface);+ border: 1px solid var(--border);+ border-radius: 10px;+ font-size: 12px;+ color: var(--text-3);+ user-select: none;+ transition: background 0.15s, border-color 0.15s;+ }+ .log-toggle:hover { background: var(--surface-2); border-color: var(--border-2); color: var(--text-2); }+ .log-toggle .chevron { transition: transform 0.2s; font-size: 10px; }+ .log-toggle.open .chevron { transform: rotate(180deg); }+ .log-body {+ margin-top: 8px;+ background: var(--surface);+ border: 1px solid var(--border);+ border-radius: 10px;+ overflow: hidden;+ max-height: 0;+ transition: max-height 0.3s ease;+ }+ .log-body.open { max-height: 320px; }+ .log-inner {+ max-height: 310px;+ overflow-y: auto;+ padding: 8px 0;+ }+ .log-event {+ display: flex;+ align-items: flex-start;+ gap: 10px;+ padding: 7px 14px;+ font-size: 12px;+ animation: slideUp 0.2s ease;+ border-bottom: 1px solid var(--border);+ }+ .log-event:last-child { border-bottom: none; }+ @keyframes slideUp {+ from { opacity: 0; transform: translateY(4px); }+ to { opacity: 1; transform: translateY(0); }+ }+ .log-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }+ .log-text { flex: 1; color: var(--text-2); line-height: 1.5; }+ .log-text a { color: var(--accent); text-decoration: none; }+ .log-text a:hover { text-decoration: underline; }+ .log-text.is-ok { color: var(--green); }+ .log-text.is-err { color: var(--red); }+ .log-time { color: var(--text-3); font-family: ui-monospace, monospace; font-size: 10.5px; flex-shrink: 0; }++ /* ── Footer ── */+ .page-footer {+ margin-top: 40px;+ text-align: center;+ font-size: 12px;+ color: var(--text-3);+ }+ .page-footer a { color: var(--text-2); text-decoration: none; }+ .page-footer a:hover { color: var(--accent); }++ /* ── Faucet notice ── */+ .faucet-notice a { color: var(--accent); }</style><script type="importmap">{@@ -94,108 +714,197 @@<body><header><div id="nav-container"></div></header>- <main class="stage">- <p class="crumb"><a href="/demos/">← lab</a></p>- <h1>three.ws · Skill royalty distribution</h1>- <p class="sub">- A royalty primitive for skill authors: deploy a single- <b>pull-split contract</b> on <b>Base Sepolia</b> (testnet, chainId- <code>84532</code>) that automatically slices every incoming ETH- payment by your configured percentages. Fund it once, then call- <code>distribute</code> — each author can withdraw their- share whenever. No backend, no custodial keys; you sign every- write yourself. The contract is immutable (no owner).- </p>-- <section class="card">- <h2>1. Wallet</h2>- <div class="row" id="wallet-row">- <button id="connect-btn">Connect wallet</button>- <span id="wallet-pill" class="pill muted" title="click to copy">not connected</span>- <span id="chain-pill" class="pill muted">no chain</span>- <button id="switch-btn" class="secondary" style="display:none">Switch to Base Sepolia</button>+ <main class="page">+ <div class="page-header">+ <div class="crumb">+ <a href="/demos/">← lab</a>+ <span style="color:var(--border-2)">·</span>+ <span style="color:var(--text-3);font-size:12px">Skill Earnings Split</span>+ </div>+ <h1>Skill Earnings Split</h1>+ <p class="sub">Configure how earnings from your skills are automatically divided. Every payment splits instantly — no manual distributions.</p>+ <div class="net-badge"><span class="dot"></span>Base Sepolia testnet</div>+ </div>++ <!-- wallet bar (always visible) -->+ <div class="card" style="margin-bottom:20px">+ <div class="wallet-bar">+ <button class="btn btn-primary btn-sm" id="connect-btn">Connect wallet</button>+ <span class="pill" id="wallet-pill">not connected</span>+ <span class="pill" id="chain-pill">no chain</span>+ <button class="btn btn-secondary btn-sm" id="switch-btn" style="display:none">Switch to Base Sepolia</button>+ <button class="btn btn-ghost btn-sm" id="forget-btn" style="display:none">Reset split</button></div>- <p class="notice">- You need a few drops of Base Sepolia ETH. Free at the- <a href="https://portal.cdp.coinbase.com/products/faucet" target="_blank" rel="noopener">Coinbase Base Sepolia faucet</a>,- the <a href="https://www.alchemy.com/faucets/base-sepolia" target="_blank" rel="noopener">Alchemy faucet</a>,+ <div class="notice notice-info faucet-notice" style="margin-top:12px;margin-bottom:0">+ Need testnet ETH? Use the+ <a href="https://portal.cdp.coinbase.com/products/faucet" target="_blank" rel="noopener">Coinbase faucet</a>,+ <a href="https://www.alchemy.com/faucets/base-sepolia" target="_blank" rel="noopener">Alchemy faucet</a>,or the <a href="https://faucets.chain.link/base-sepolia" target="_blank" rel="noopener">Chainlink faucet</a>.- </p>- <p class="notice warn" id="wallet-warn" style="display:none"></p>- </section>-- <section class="card">- <h2>2. Configure skill-author recipients</h2>- <p style="margin:0 0 10px;color:#8a8d98;font-size:13px">- Up to 10 rows. Percentages must sum to <b>100</b>. Distributor fee- is fixed at <code>0%</code> — nobody skims the pot.- </p>- <table id="recipients-tbl">- <thead>- <tr>- <th style="width:60px">#</th>- <th>Skill-author address (0x…)</th>- <th style="width:130px">Share %</th>- <th class="actions"></th>- </tr>- </thead>- <tbody id="recipients-body"></tbody>- </table>- <div class="sum-row">- <button id="add-row" class="secondary tiny" type="button">+ Add recipient</button>- <div id="sum-display">Sum: <span id="sum-val" class="sum-good">100.00</span> %</div></div>- </section>-- <section class="card">- <h2>3. Create Split contract</h2>- <p style="margin:0 0 10px;color:#8a8d98;font-size:13px">- Calls <code>SplitV2Client.createSplit({ splitType: 'pull', ownerAddress: 0x0 })</code>- on the official Split V2 factory at- <code id="factory-addr">…</code>.- </p>- <div class="row">- <button id="create-btn" disabled>Deploy immutable pull split</button>- <button id="forget-btn" class="secondary" style="display:none">Forget this split</button>+ <div class="notice notice-err" id="wallet-warn" style="display:none;margin-bottom:0"></div>+ </div>++ <!-- step navigator -->+ <nav class="steps-nav" id="steps-nav">+ <button class="step-btn active" data-step="0" id="step-btn-0">+ <span class="num">1</span> Recipients+ </button>+ <span class="step-sep">›</span>+ <button class="step-btn" data-step="1" id="step-btn-1">+ <span class="num">2</span> Deploy+ </button>+ <span class="step-sep">›</span>+ <button class="step-btn" data-step="2" id="step-btn-2">+ <span class="num">3</span> Fund & Distribute+ </button>+ <span class="step-sep">›</span>+ <button class="step-btn" data-step="3" id="step-btn-3">+ <span class="num">✓</span> Done+ </button>+ </nav>++ <!-- STEP 0: Recipients -->+ <div class="step-panel active" id="panel-0">+ <div class="card">+ <div class="card-title">Configure recipients</div>+ <div class="card-desc">Add addresses and set their percentage. Shares must total exactly 100%.</div>++ <!-- Donut chart -->+ <div class="chart-wrap" id="chart-wrap">+ <svg class="donut-svg" id="donut-svg" width="120" height="120" viewBox="0 0 120 120">+ <g id="donut-segments"></g>+ <text x="60" y="55" class="chart-center-pct" id="chart-center-pct">0%</text>+ <text x="60" y="70" class="chart-center-label" id="chart-center-label">allocated</text>+ </svg>+ <div class="chart-legend" id="chart-legend"></div>+ </div>++ <!-- Table -->+ <table class="recipients-table" id="recipients-table">+ <thead>+ <tr>+ <th class="r-dot-cell"></th>+ <th>Address</th>+ <th>Share</th>+ <th></th>+ </tr>+ </thead>+ <tbody id="recipients-body"></tbody>+ </table>++ <div class="add-recipient-row">+ <button class="btn btn-secondary btn-sm" id="add-row" type="button">+ Add recipient</button>+ <button class="btn btn-ghost btn-sm" id="add-my-wallet" type="button" style="display:none">+ Add my wallet</button>+ </div>++ <div class="sum-bar-wrap">+ <div class="sum-label">+ <span>Total allocation</span>+ <span class="sum-val" id="sum-val">0.00%</span>+ </div>+ <div class="sum-bar-track">+ <div class="sum-bar-fill" id="sum-bar-fill" style="width:0%"></div>+ </div>+ </div>++ <div style="margin-top:18px;display:flex;gap:10px;justify-content:flex-end">+ <button class="btn btn-primary" id="go-deploy-btn" disabled>Continue to Deploy →</button>+ </div>+ </div>+ </div>++ <!-- STEP 1: Deploy -->+ <div class="step-panel" id="panel-1">+ <div class="card">+ <div class="card-title">Create earnings split</div>+ <div class="card-desc">Deploy an immutable pull-split contract. Recipients are permanent — no owner can change them after deployment.</div>++ <div class="deploy-summary" id="deploy-summary"></div>++ <div id="split-deployed-area"></div>++ <div style="display:flex;gap:10px;align-items:center;flex-wrap:wrap">+ <button class="btn btn-primary" id="create-btn" disabled>Create earnings split</button>+ <span id="create-status" style="font-size:12px;color:var(--text-2)"></span>+ </div>++ <div style="margin-top:16px;display:flex;gap:10px;justify-content:space-between;align-items:center">+ <button class="btn btn-ghost btn-sm" id="back-to-recipients">← Back</button>+ <button class="btn btn-secondary btn-sm" id="go-fund-btn" style="display:none">Continue to Fund →</button>+ </div>+ </div>+ </div>++ <!-- STEP 2: Fund & Distribute -->+ <div class="step-panel" id="panel-2">+ <div class="card">+ <div class="card-title">Send a test payment</div>+ <div class="card-desc">Fund your split contract with a small ETH amount to verify payouts.</div>++ <div class="fund-row">+ <div class="form-field">+ <label>ETH amount</label>+ <input type="number" id="fund-amount" value="0.001" step="0.0001" min="0" style="width:140px" />+ </div>+ <div class="form-field" style="flex:1">+ <label>Split contract</label>+ <input type="text" id="fund-target" readonly placeholder="deploy a split first" />+ </div>+ <button class="btn btn-primary" id="fund-btn">Send payment</button>+ </div>+ <div id="fund-result"></div></div>- <div id="split-info" style="margin-top:14px"></div>- </section>-- <section class="card" id="fund-card" style="display:none">- <h2>4. Fund the split (test payment)</h2>- <div class="row">- <label>- ETH amount- <input type="number" id="fund-amount" value="0.001" step="0.0001" min="0" />- </label>- <label>- Recipient- <input type="text" id="fund-target" readonly />- </label>- <button id="fund-btn">Send test payment</button>++ <div class="card" style="margin-top:12px">+ <div class="card-title">Balance & projected payouts</div>++ <div class="balance-display">+ Current balance: <span class="eth-val" id="balance-display">—</span>+ <button class="btn btn-ghost btn-sm" id="refresh-btn" style="margin-left:10px">Refresh</button>+ </div>++ <div id="payout-table-wrap"></div>++ <div class="action-row" style="margin-top:14px">+ <button class="btn btn-primary" id="distribute-btn" disabled>Distribute to recipients</button>+ <button class="btn btn-secondary" id="withdraw-btn" style="display:none">Claim your share</button>+ </div></div>- <div id="fund-result" style="margin-top:12px"></div>- </section>-- <section class="card" id="inspect-card" style="display:none">- <h2>5. Inspect & distribute</h2>- <div class="row">- <button id="refresh-btn" class="secondary">Refresh balance</button>- <button id="distribute-btn">Distribute to recipients</button>- <button id="withdraw-btn" class="secondary" style="display:none">Withdraw your share</button>++ <div style="margin-top:12px">+ <button class="btn btn-ghost btn-sm" id="back-to-deploy">← Back to Deploy</button></div>- <div id="inspect-body" style="margin-top:14px"></div>- </section>+ </div>- <section class="card">- <h2>Log</h2>- <div class="log" id="log">ready.</div>- </section>+ <!-- STEP 3: Done -->+ <div class="step-panel" id="panel-3">+ <div class="card" style="text-align:center;padding:40px 24px">+ <div style="font-size:36px;margin-bottom:12px">⚡</div>+ <div class="card-title" style="font-size:18px;margin-bottom:8px">Your earnings split is live</div>+ <div class="card-desc" style="max-width:50ch;margin:0 auto 20px">Every payment to your split contract is automatically distributed to recipients. Share the contract address with collaborators.</div>+ <div id="done-contract-info"></div>+ <div style="margin-top:20px;display:flex;gap:10px;justify-content:center;flex-wrap:wrap">+ <button class="btn btn-secondary" id="go-fund-again">Test another payment</button>+ </div>+ </div>+ </div>- <footer class="foot">+ <!-- Transaction log -->+ <div class="log-section">+ <div class="log-toggle" id="log-toggle">+ <span>Transaction log</span>+ <span id="log-count" style="background:var(--border-2);padding:1px 7px;border-radius:99px;font-size:11px">0</span>+ <span style="flex:1"></span>+ <span class="chevron">▲</span>+ </div>+ <div class="log-body" id="log-body">+ <div class="log-inner" id="log-inner"></div>+ </div>+ </div>++ <footer class="page-footer">Powered by <a href="https://docs.splits.org/sdk/splits-v2" target="_blank" rel="noopener">0xSplits V2</a>- · Pull-split contract address per chain documented at- <a href="https://docs.splits.org/sdk/splits-v2#supported-chains" target="_blank" rel="noopener">docs.splits.org/sdk/splits-v2#supported-chains</a>.+ · Pull-split on <a href="https://sepolia.basescan.org" target="_blank" rel="noopener">Base Sepolia</a></footer></main>@@ -216,7 +925,7 @@import { SplitV2Client } from '@0xsplits/splits-sdk';import { NATIVE_TOKEN_ADDRESS, getSplitV2FactoryAddress } from '@0xsplits/splits-sdk/constants';- // --- constants ---+ // ── Constants ──const BASE_SEPOLIA_CHAIN_ID = 84532;const BASE_SEPOLIA_HEX = '0x14a34';const BASE_SEPOLIA_RPC = 'https://sepolia.base.org';@@ -224,172 +933,450 @@const SPLITS_APP_BASE = 'https://app.splits.org';const STORAGE_KEY = 'three-ws.skill-royalty.v1';const MAX_RECIPIENTS = 10;-- // SDK exports the canonical native-token sentinel; fall back to zero- // address only if (somehow) absent.const NATIVE = NATIVE_TOKEN_ADDRESS || '0x0000000000000000000000000000000000000000';- const $ = (id) => document.getElementById(id);- const log = $('log');- const logLine = (msg, cls = '') => {- const t = new Date().toTimeString().slice(0, 8);- log.innerHTML += `\n<span class="${cls}">[${t}] ${msg}</span>`;- log.scrollTop = log.scrollHeight;- };-- const escapeHtml = (s) =>- String(s ?? '').replace(/[&<>"']/g, (c) => ({- '&': '&', '<': '<', '>': '>', '"': '"', "'": ''',- })[c]);-- const shortAddr = (a) => (a ? `${a.slice(0, 6)}…${a.slice(-4)}` : '—');-- // Three deterministic example addresses for the default rows. These- // are well-known burn / vanity addresses on testnets; users should- // replace them before deploying anything meaningful.- const DEFAULT_RECIPIENTS = [- { address: '0x000000000000000000000000000000000000dEaD', percentAllocation: 50 },- { address: '0x000000000000000000000000000000000000bEEF', percentAllocation: 30 },- { address: '0x00000000000000000000000000000000DeaDBeef', percentAllocation: 20 },+ const SEGMENT_COLORS = [+ '#3dc1ff','#c8a96e','#69db7c','#ff9a3c',+ '#b47eff','#f87171','#74c0fc','#51cf66','#ffd43b','#ff6b9d',];- // --- state ---+ // ── State ──let publicClient = createPublicClient({ chain: baseSepolia, transport: http(BASE_SEPOLIA_RPC) });let walletClient = null;let splitsClient = null;let connectedAddress = null;let connectedChainId = null;- let recipients = [...DEFAULT_RECIPIENTS];- let splitAddress = null; // cached/created+ let recipients = [+ { address: '', percentAllocation: 50 },+ { address: '', percentAllocation: 50 },+ ];+ let splitAddress = null;+ let currentStep = 0;+ let splitBalance = 0n;+ let highlightedRow = null;++ // ── Utilities ──+ const $ = (id) => document.getElementById(id);+ const escHtml = (s) => String(s ?? '').replace(/[&<>"']/g, (c) => ({'&':'&','<':'<','>':'>','"':'"',"'":'''})[c]);+ const shortAddr = (a) => (a ? `${a.slice(0,6)}…${a.slice(-4)}` : '—');- // Factory address — used only for the on-page display.- try {- const factoryAddr = getSplitV2FactoryAddress(BASE_SEPOLIA_CHAIN_ID, 'pull');- $('factory-addr').textContent = factoryAddr;- } catch (_) {- $('factory-addr').textContent = '(pull factory)';+ // ── Log ──+ let logCount = 0;+ const LOG_ICONS = { connect:'🔗', deploy:'✓', fund:'→', distribute:'⚡', withdraw:'↓', error:'✕', info:'·' };+ function addLog(text, type = 'info', htmlText = null) {+ logCount++;+ $('log-count').textContent = logCount;+ const t = new Date().toTimeString().slice(0,8);+ const icon = LOG_ICONS[type] || '·';+ const cls = type === 'deploy' ? 'is-ok' : type === 'error' ? 'is-err' : '';+ const content = htmlText || escHtml(text);+ const el = document.createElement('div');+ el.className = 'log-event';+ el.innerHTML = `<span class="log-icon">${icon}</span><span class="log-text ${cls}">${content}</span><span class="log-time">${t}</span>`;+ const inner = $('log-inner');+ inner.insertBefore(el, inner.firstChild);+ // auto-open log when something happens+ openLog();+ }+ function openLog() {+ const toggle = $('log-toggle');+ const body = $('log-body');+ if (!toggle.classList.contains('open')) {+ toggle.classList.add('open');+ body.classList.add('open');+ }}+ $('log-toggle').addEventListener('click', () => {+ const toggle = $('log-toggle');+ const body = $('log-body');+ toggle.classList.toggle('open');+ body.classList.toggle('open');+ });- // --- localStorage cache ---+ // ── localStorage ──function loadCache() {- try {- const raw = localStorage.getItem(STORAGE_KEY);- if (!raw) return null;- return JSON.parse(raw);- } catch { return null; }+ try { const r = localStorage.getItem(STORAGE_KEY); return r ? JSON.parse(r) : null; } catch { return null; }}- function saveCache(obj) {- localStorage.setItem(STORAGE_KEY, JSON.stringify(obj));+ function saveCache(obj) { localStorage.setItem(STORAGE_KEY, JSON.stringify(obj)); }+ function clearCache() { localStorage.removeItem(STORAGE_KEY); }++ // ── Step navigation ──+ function goToStep(n) {+ currentStep = n;+ document.querySelectorAll('.step-panel').forEach((p, i) => {+ p.classList.toggle('active', i === n);+ });+ document.querySelectorAll('.step-btn').forEach((b, i) => {+ b.classList.remove('active', 'done');+ if (i === n) b.classList.add('active');+ else if (i < n) b.classList.add('done');+ });+ window.scrollTo({ top: 0, behavior: 'smooth' });}- function clearCache() {- localStorage.removeItem(STORAGE_KEY);++ $('go-deploy-btn').addEventListener('click', () => {+ renderDeploySummary();+ goToStep(1);+ });+ $('back-to-recipients').addEventListener('click', () => goToStep(0));+ $('back-to-deploy').addEventListener('click', () => goToStep(1));+ $('go-fund-btn').addEventListener('click', () => goToStep(2));+ $('go-fund-again').addEventListener('click', () => goToStep(2));++ document.querySelectorAll('.step-btn').forEach((b) => {+ b.addEventListener('click', () => {+ const s = parseInt(b.dataset.step);+ if (b.classList.contains('done')) goToStep(s);+ });+ });++ // ── Donut chart ──+ const DONUT_R = 44;+ const DONUT_CX = 60;+ const DONUT_CY = 60;+ const DONUT_CIRCUMFERENCE = 2 * Math.PI * DONUT_R;++ function renderChart() {+ const svg = $('donut-segments');+ const legend = $('chart-legend');+ const validRecips = recipients.filter(r => isAddress(r.address) && Number(r.percentAllocation) > 0);+ const sum = recipients.reduce((a, r) => a + (Number(r.percentAllocation) || 0), 0);+ const sumOk = Math.abs(sum - 100) < 0.001;++ // Update center text+ $('chart-center-pct').textContent = Math.round(sum) + '%';+ $('chart-center-label').textContent = sumOk ? 'ready' : 'allocated';+ $('chart-center-pct').setAttribute('fill', sumOk ? 'var(--green)' : sum > 100 ? 'var(--red)' : 'var(--text)');++ // Segments+ let offset = 0;+ // background circle+ const existing = svg.querySelectorAll('circle');+ existing.forEach(c => c.remove());++ // bg track+ const bg = document.createElementNS('http://www.w3.org/2000/svg', 'circle');+ bg.setAttribute('cx', DONUT_CX);+ bg.setAttribute('cy', DONUT_CY);+ bg.setAttribute('r', DONUT_R);+ bg.setAttribute('fill', 'none');+ bg.setAttribute('stroke', 'var(--border)');+ bg.setAttribute('stroke-width', '14');+ svg.appendChild(bg);++ if (validRecips.length === 0) {+ legend.innerHTML = '<div style="color:var(--text-3);font-size:12px;padding:4px 0">Add recipient addresses to see the split.</div>';+ return;+ }++ const scale = sumOk ? 1 : Math.min(1, 100 / sum);+ offset = -DONUT_CIRCUMFERENCE / 4; // start at top++ validRecips.forEach((r, i) => {+ const colorIdx = recipients.indexOf(r);+ const color = SEGMENT_COLORS[colorIdx % SEGMENT_COLORS.length];+ const pct = (Number(r.percentAllocation) || 0) * scale;+ const dash = (pct / 100) * DONUT_CIRCUMFERENCE;+ const gap = DONUT_CIRCUMFERENCE - dash;++ const circle = document.createElementNS('http://www.w3.org/2000/svg', 'circle');+ circle.setAttribute('cx', DONUT_CX);+ circle.setAttribute('cy', DONUT_CY);+ circle.setAttribute('r', DONUT_R);+ circle.setAttribute('fill', 'none');+ circle.setAttribute('stroke', color);+ circle.setAttribute('stroke-width', colorIdx === highlightedRow ? '18' : '14');+ circle.setAttribute('stroke-dasharray', `${dash} ${gap}`);+ circle.setAttribute('stroke-dashoffset', -offset);+ circle.style.transition = 'stroke-dashoffset 0.4s cubic-bezier(0.4,0,0.2,1), stroke-dasharray 0.4s cubic-bezier(0.4,0,0.2,1), stroke-width 0.2s';+ svg.appendChild(circle);++ offset += dash;+ });++ // Legend+ legend.innerHTML = recipients.map((r, i) => {+ const color = SEGMENT_COLORS[i % SEGMENT_COLORS.length];+ const pct = Number(r.percentAllocation) || 0;+ const addr = isAddress(r.address) ? shortAddr(r.address) : (r.address ? r.address.slice(0,10)+'…' : 'Address '+(i+1));+ const hl = highlightedRow === i ? 'highlighted' : '';+ return `<div class="legend-item ${hl}" data-row="${i}">+ <span class="legend-dot" style="background:${color}"></span>+ <span class="legend-addr">${escHtml(addr)}</span>+ <span class="legend-pct" style="color:${color}">${pct.toFixed(1)}%</span>+ </div>`;+ }).join('');++ legend.querySelectorAll('.legend-item').forEach(el => {+ el.addEventListener('click', () => {+ const ri = parseInt(el.dataset.row);+ highlightedRow = highlightedRow === ri ? null : ri;+ renderChart();+ renderRecipients();+ });+ });}- // --- recipients UI ---+ // ── Recipients ──function renderRecipients() {const tbody = $('recipients-body');- tbody.innerHTML = recipients.map((r, i) => `- <tr>- <td>${i + 1}</td>- <td><input type="text" data-i="${i}" data-f="address" value="${escapeHtml(r.address)}" spellcheck="false" placeholder="0x…" /></td>- <td><input type="number" data-i="${i}" data-f="percentAllocation" value="${r.percentAllocation}" min="0" max="100" step="0.01" /></td>- <td class="actions">- <button class="secondary tiny remove-row" data-i="${i}" type="button" ${recipients.length <= 1 ? 'disabled' : ''}>×</button>+ tbody.innerHTML = recipients.map((r, i) => {+ const color = SEGMENT_COLORS[i % SEGMENT_COLORS.length];+ const hl = highlightedRow === i ? 'row-highlighted' : '';+ const addrInvalid = r.address && !isAddress(r.address) ? 'invalid' : '';+ return `<tr data-row="${i}" class="${hl}">+ <td class="r-dot-cell"><span class="r-dot" style="background:${color}"></span></td>+ <td class="r-addr-cell">+ <input type="text" data-i="${i}" data-f="address" value="${escHtml(r.address)}" class="${addrInvalid}" spellcheck="false" placeholder="0x…" />+ </td>+ <td class="r-pct-cell">+ <div class="r-pct-wrap">+ <input type="range" data-i="${i}" data-f="pct-range" value="${r.percentAllocation}" min="0" max="100" step="0.5" style="accent-color:${color}" />+ <input type="number" data-i="${i}" data-f="percentAllocation" value="${r.percentAllocation}" min="0" max="100" step="0.5" />+ </div></td>- </tr>- `).join('');- tbody.querySelectorAll('input').forEach((el) => {- el.addEventListener('input', (e) => {- const i = Number(e.target.dataset.i);- const f = e.target.dataset.f;- const v = f === 'percentAllocation' ? Number(e.target.value) : e.target.value.trim();- recipients[i] = { ...recipients[i], [f]: v };+ <td class="r-remove-cell">+ <button class="r-remove-btn remove-row" data-i="${i}" type="button" ${recipients.length <= 1 ? 'disabled' : ''} title="Remove">×</button>+ </td>+ </tr>`;+ }).join('');++ tbody.querySelectorAll('input[data-f="address"]').forEach(el => {+ el.addEventListener('input', e => {+ const i = +e.target.dataset.i;+ recipients[i] = { ...recipients[i], address: e.target.value.trim() };+ renderChart();+ updateSum();+ });+ el.addEventListener('focus', e => {+ highlightedRow = +e.target.dataset.i;+ renderChart();+ renderRecipients();+ });+ });++ tbody.querySelectorAll('input[data-f="pct-range"]').forEach(el => {+ el.addEventListener('input', e => {+ const i = +e.target.dataset.i;+ const v = Number(e.target.value);+ recipients[i] = { ...recipients[i], percentAllocation: v };+ // sync number input+ const numInput = tbody.querySelector(`input[data-i="${i}"][data-f="percentAllocation"]`);+ if (numInput) numInput.value = v;+ renderChart();updateSum();});});- tbody.querySelectorAll('.remove-row').forEach((btn) => {++ tbody.querySelectorAll('input[data-f="percentAllocation"]').forEach(el => {+ el.addEventListener('input', e => {+ const i = +e.target.dataset.i;+ const v = Number(e.target.value);+ recipients[i] = { ...recipients[i], percentAllocation: v };+ // sync range input+ const rangeInput = tbody.querySelector(`input[data-i="${i}"][data-f="pct-range"]`);+ if (rangeInput) rangeInput.value = v;+ renderChart();+ updateSum();+ });+ el.addEventListener('focus', e => {+ highlightedRow = +e.target.dataset.i;+ renderChart();+ renderRecipients();+ });+ });++ tbody.querySelectorAll('.remove-row').forEach(btn => {btn.addEventListener('click', () => {- const i = Number(btn.dataset.i);+ const i = +btn.dataset.i;recipients.splice(i, 1);+ highlightedRow = null;renderRecipients();+ renderChart();updateSum();});});++ tbody.querySelectorAll('tr[data-row]').forEach(row => {+ row.addEventListener('mouseenter', () => {+ highlightedRow = +row.dataset.row;+ renderChart();+ });+ row.addEventListener('mouseleave', () => {+ // only clear if no focused input in this row+ if (!row.contains(document.activeElement)) {+ highlightedRow = null;+ renderChart();+ }+ });+ });+updateSum();}function updateSum() {const sum = recipients.reduce((a, r) => a + (Number(r.percentAllocation) || 0), 0);- const el = $('sum-val');const rounded = Math.round(sum * 100) / 100;- el.textContent = rounded.toFixed(2);- el.className = Math.abs(sum - 100) < 0.001 ? 'sum-good' : 'sum-bad';- updateCreateBtn();+ const el = $('sum-val');+ el.textContent = rounded.toFixed(2) + '%';+ el.className = 'sum-val ' + (Math.abs(sum - 100) < 0.001 ? 'good' : 'bad');++ const fill = $('sum-bar-fill');+ const pct = Math.min(100, rounded);+ fill.style.width = pct + '%';+ fill.className = 'sum-bar-fill' + (rounded > 100 ? ' overage' : Math.abs(sum - 100) < 0.001 ? ' perfect' : '');++ updateGoDeployBtn();+ }++ function updateGoDeployBtn() {+ const sum = recipients.reduce((a, r) => a + (Number(r.percentAllocation) || 0), 0);+ const allValid = recipients.every(r => isAddress(r.address) && Number(r.percentAllocation) > 0);+ const sumOk = Math.abs(sum - 100) < 0.001;+ $('go-deploy-btn').disabled = !(allValid && sumOk);}function updateCreateBtn() {const sum = recipients.reduce((a, r) => a + (Number(r.percentAllocation) || 0), 0);- const allValid = recipients.every((r) => isAddress(r.address) && Number(r.percentAllocation) > 0);+ const allValid = recipients.every(r => isAddress(r.address) && Number(r.percentAllocation) > 0);const sumOk = Math.abs(sum - 100) < 0.001;const chainOk = connectedChainId === BASE_SEPOLIA_CHAIN_ID;$('create-btn').disabled = !(allValid && sumOk && chainOk && walletClient);+ if (splitAddress) $('create-btn').disabled = true;}$('add-row').addEventListener('click', () => {- if (recipients.length >= MAX_RECIPIENTS) {- logLine(`max ${MAX_RECIPIENTS} recipients`, 'err');- return;- }+ if (recipients.length >= MAX_RECIPIENTS) { addLog(`max ${MAX_RECIPIENTS} recipients`, 'error'); return; }recipients.push({ address: '', percentAllocation: 0 });renderRecipients();+ renderChart();+ });++ $('add-my-wallet').addEventListener('click', () => {+ if (!connectedAddress) return;+ const already = recipients.some(r => r.address.toLowerCase() === connectedAddress.toLowerCase());+ if (already) { addLog('Your wallet is already in the list', 'info'); return; }+ if (recipients.length >= MAX_RECIPIENTS) { addLog(`max ${MAX_RECIPIENTS} recipients`, 'error'); return; }+ recipients.push({ address: connectedAddress, percentAllocation: 0 });+ renderRecipients();+ renderChart();+ updateSum();});renderRecipients();+ renderChart();- // --- wallet ---+ // ── Deploy summary ──+ function renderDeploySummary() {+ const el = $('deploy-summary');+ el.innerHTML = recipients.map((r, i) => {+ const color = SEGMENT_COLORS[i % SEGMENT_COLORS.length];+ return `<div class="deploy-summary-row">+ <span class="ds-dot" style="background:${color}"></span>+ <span class="ds-addr">${escHtml(isAddress(r.address) ? r.address : r.address)}</span>+ <span class="ds-pct">${Number(r.percentAllocation).toFixed(2)}%</span>+ </div>`;+ }).join('');+ updateCreateBtn();+ }++ // ── Split info ──+ function renderSplitDeployed() {+ if (!splitAddress) {+ $('split-deployed-area').innerHTML = '';+ $('go-fund-btn').style.display = 'none';+ return;+ }+ const baseScanUrl = `${BASESCAN_BASE}/address/${splitAddress}`;+ const splitsUrl = `${SPLITS_APP_BASE}/accounts/${splitAddress}/?chainId=${BASE_SEPOLIA_CHAIN_ID}`;+ $('split-deployed-area').innerHTML = `+ <div class="contract-deployed-box">+ <div class="label">Contract deployed</div>+ <div class="contract-addr-row">+ <code>${splitAddress}</code>+ <button class="copy-btn" id="copy-contract-addr">Copy</button>+ <a href="${baseScanUrl}" target="_blank" rel="noopener" style="font-size:12px;color:var(--accent);text-decoration:none">Basescan ↗</a>+ <a href="${splitsUrl}" target="_blank" rel="noopener" style="font-size:12px;color:var(--accent);text-decoration:none">splits.org ↗</a>+ </div>+ <div class="immutable-note">+ <span>🔒</span>+ <span>This split is immutable — recipients are permanent and cannot be changed.</span>+ </div>+ </div>+ `;+ $('copy-contract-addr').addEventListener('click', () => {+ navigator.clipboard.writeText(splitAddress);+ $('copy-contract-addr').textContent = 'Copied!';+ setTimeout(() => { if ($('copy-contract-addr')) $('copy-contract-addr').textContent = 'Copy'; }, 1500);+ });+ $('go-fund-btn').style.display = '';+ $('fund-target').value = splitAddress;+ updateDoneInfo();+ }++ function updateDoneInfo() {+ if (!splitAddress) return;+ const baseScanUrl = `${BASESCAN_BASE}/address/${splitAddress}`;+ $('done-contract-info').innerHTML = `+ <div class="contract-addr-row" style="justify-content:center">+ <code style="font-size:13px;word-break:break-all">${splitAddress}</code>+ <button class="copy-btn" id="copy-done-addr">Copy</button>+ <a href="${baseScanUrl}" target="_blank" rel="noopener" style="font-size:12px;color:var(--accent);text-decoration:none">View on Basescan ↗</a>+ </div>+ `;+ $('copy-done-addr').addEventListener('click', () => {+ navigator.clipboard.writeText(splitAddress);+ $('copy-done-addr').textContent = 'Copied!';+ setTimeout(() => { if ($('copy-done-addr')) $('copy-done-addr').textContent = 'Copy'; }, 1500);+ });+ }++ // ── Wallet ──function updateWalletUI() {const pill = $('wallet-pill');const chainPill = $('chain-pill');const switchBtn = $('switch-btn');const warn = $('wallet-warn');+ const addMyWallet = $('add-my-wallet');if (connectedAddress) {pill.textContent = shortAddr(connectedAddress);- pill.className = 'pill';+ pill.className = 'pill connected';pill.title = `${connectedAddress} — click to copy`;$('connect-btn').textContent = 'Reconnect';+ addMyWallet.style.display = '';} else {pill.textContent = 'not connected';- pill.className = 'pill muted';+ pill.className = 'pill';+ addMyWallet.style.display = 'none';}if (connectedChainId === BASE_SEPOLIA_CHAIN_ID) {chainPill.textContent = 'Base Sepolia · 84532';- chainPill.className = 'pill';+ chainPill.className = 'pill ok-chain';switchBtn.style.display = 'none';warn.style.display = 'none';} else if (connectedChainId != null) {chainPill.textContent = `wrong chain · ${connectedChainId}`;- chainPill.className = 'pill bad';+ chainPill.className = 'pill wrong-chain';switchBtn.style.display = '';- warn.textContent = `Your wallet is on chain ${connectedChainId}. This demo refuses to write on any chain other than Base Sepolia (84532). Click "Switch" above.`;+ warn.textContent = `Wallet is on chain ${connectedChainId}. Switch to Base Sepolia (84532) to continue.`;warn.style.display = '';} else {chainPill.textContent = 'no chain';- chainPill.className = 'pill muted';+ chainPill.className = 'pill';switchBtn.style.display = 'none';warn.style.display = 'none';}+ updateGoDeployBtn();updateCreateBtn();renderWithdrawButton();}async function rebuildClients() {if (!window.ethereum || !connectedAddress) {- walletClient = null;- splitsClient = null;- return;+ walletClient = null; splitsClient = null; return;}walletClient = createWalletClient({chain: baseSepolia,@@ -405,24 +1392,24 @@async function connect() {if (!window.ethereum) {- logLine('no injected wallet found — install MetaMask, Rabby, or similar.', 'err');+ addLog('No injected wallet found — install MetaMask or Rabby.', 'error');return;}try {- logLine('requesting accounts…', 'info');+ addLog('Requesting wallet access…', 'info');const accts = await window.ethereum.request({ method: 'eth_requestAccounts' });connectedAddress = accts[0] ? getAddress(accts[0]) : null;const chainHex = await window.ethereum.request({ method: 'eth_chainId' });connectedChainId = parseInt(chainHex, 16);await rebuildClients();- logLine(`connected ${connectedAddress} on chain ${connectedChainId}`, 'ok');+ addLog(`Connected ${shortAddr(connectedAddress)} on chain ${connectedChainId}`, 'connect');if (connectedChainId !== BASE_SEPOLIA_CHAIN_ID) {- logLine(`wrong chain (${connectedChainId}) — switch to Base Sepolia (84532) to continue.`, 'err');+ addLog(`Wrong chain (${connectedChainId}) — switch to Base Sepolia to continue.`, 'error');}updateWalletUI();hydrateFromCache();} catch (err) {- logLine(`connect failed: ${err.shortMessage || err.message}`, 'err');+ addLog(`Connect failed: ${err.shortMessage || err.message}`, 'error');}}@@ -447,18 +1434,16 @@}],});} catch (addErr) {- logLine(`add chain failed: ${addErr.message}`, 'err');- return;+ addLog(`Add chain failed: ${addErr.message}`, 'error'); return;}} else {- logLine(`switch chain failed: ${err.message}`, 'err');- return;+ addLog(`Switch chain failed: ${err.message}`, 'error'); return;}}const chainHex = await window.ethereum.request({ method: 'eth_chainId' });connectedChainId = parseInt(chainHex, 16);await rebuildClients();- logLine(`now on chain ${connectedChainId}`, connectedChainId === BASE_SEPOLIA_CHAIN_ID ? 'ok' : 'err');+ addLog(`Now on chain ${connectedChainId}`, connectedChainId === BASE_SEPOLIA_CHAIN_ID ? 'deploy' : 'error');updateWalletUI();}@@ -467,14 +1452,13 @@connectedChainId = parseInt(hex, 16);await rebuildClients();updateWalletUI();- logLine(`chainChanged → ${connectedChainId}`, 'info');+ addLog(`Chain changed → ${connectedChainId}`, 'info');});window.ethereum.on?.('accountsChanged', async (accts) => {connectedAddress = accts[0] ? getAddress(accts[0]) : null;await rebuildClients();updateWalletUI();- renderWithdrawButton();- logLine(`accountsChanged → ${connectedAddress || 'none'}`, 'info');+ addLog(`Account changed → ${shortAddr(connectedAddress)}`, 'info');});}@@ -483,39 +1467,58 @@$('wallet-pill').addEventListener('click', () => {if (!connectedAddress) return;navigator.clipboard.writeText(connectedAddress);- logLine(`copied ${connectedAddress}`, 'info');+ addLog(`Copied ${connectedAddress}`, 'info');});- // --- create split ---+ $('forget-btn').addEventListener('click', () => {+ clearCache();+ splitAddress = null;+ splitBalance = 0n;+ $('split-deployed-area').innerHTML = '';+ $('go-fund-btn').style.display = 'none';+ $('forget-btn').style.display = 'none';+ $('create-btn').disabled = false;+ $('create-status').textContent = '';+ $('fund-target').value = '';+ $('balance-display').textContent = '—';+ $('payout-table-wrap').innerHTML = '';+ $('distribute-btn').disabled = true;+ renderWithdrawButton();+ addLog('Split reset — you can deploy a new one.', 'info');+ goToStep(0);+ });++ // ── Create split ──$('create-btn').addEventListener('click', async () => {if (connectedChainId !== BASE_SEPOLIA_CHAIN_ID) {- logLine('refusing to write — wallet is not on Base Sepolia.', 'err');- return;+ addLog('Refusing — wallet is not on Base Sepolia.', 'error'); return;}if (!splitsClient) {- logLine('no splits client — connect wallet first.', 'err');- return;+ addLog('Connect wallet first.', 'error'); return;}+ const btn = $('create-btn');+ const status = $('create-status');try {- const checksummed = recipients.map((r) => ({+ const checksummed = recipients.map(r => ({address: getAddress(r.address),percentAllocation: Number(r.percentAllocation),}));- logLine(`creating pull split with ${checksummed.length} recipient(s)…`, 'info');- $('create-btn').disabled = true;- $('create-btn').textContent = 'Waiting for wallet…';+ addLog(`Deploying pull split with ${checksummed.length} recipient(s)…`, 'info');+ btn.disabled = true;+ btn.textContent = 'Waiting for wallet…';+ status.textContent = 'Check your wallet for a signature request…';const result = await splitsClient.createSplit({recipients: checksummed,distributorFeePercent: 0,totalAllocationPercent: 100,splitType: 'pull',- ownerAddress: zeroAddress, // immutable — no owner can update recipients+ ownerAddress: zeroAddress,creatorAddress: connectedAddress,});splitAddress = getAddress(result.splitAddress);- logLine(`✓ split deployed at ${splitAddress}`, 'ok');+ addLog(`Split deployed at ${splitAddress}`, 'deploy', `Split deployed at <a href="${BASESCAN_BASE}/address/${splitAddress}" target="_blank" rel="noopener">${splitAddress}</a>`);saveCache({splitAddress,recipients: checksummed,@@ -523,160 +1526,93 @@creator: connectedAddress,createdAt: Date.now(),});- renderSplitInfo();- showFundCard();- showInspectCard();- await refreshBalance();+ btn.textContent = 'Deployed ✓';+ status.textContent = '';+ $('forget-btn').style.display = '';+ renderSplitDeployed();+ refreshBalance();} catch (err) {- logLine(`create split failed: ${err.shortMessage || err.message}`, 'err');- } finally {- $('create-btn').textContent = 'Deploy immutable pull split';- updateCreateBtn();+ addLog(`Deploy failed: ${err.shortMessage || err.message}`, 'error');+ btn.disabled = false;+ btn.textContent = 'Create earnings split';+ status.textContent = '';}});- $('forget-btn').addEventListener('click', () => {- clearCache();- splitAddress = null;- $('split-info').innerHTML = '';- $('forget-btn').style.display = 'none';- $('fund-card').style.display = 'none';- $('inspect-card').style.display = 'none';- logLine('forgot cached split — you can deploy a new one.', 'info');- });-- function renderSplitInfo() {- if (!splitAddress) {- $('split-info').innerHTML = '';- $('forget-btn').style.display = 'none';- return;- }- $('forget-btn').style.display = '';- const baseScanUrl = `${BASESCAN_BASE}/address/${splitAddress}`;- const splitsUrl = `${SPLITS_APP_BASE}/accounts/${splitAddress}/?chainId=${BASE_SEPOLIA_CHAIN_ID}`;- $('split-info').innerHTML = `- <div class="notice ok">- Split contract is live and <b>immutable</b> on Base Sepolia.- </div>- <dl class="kv">- <dt>Address</dt>- <dd>- <a class="copy-addr" href="${baseScanUrl}" target="_blank" rel="noopener">${splitAddress}</a>- · <a href="${splitsUrl}" target="_blank" rel="noopener">view on app.splits.org</a>- </dd>- <dt>Type</dt>- <dd>pull · distributorFee 0% · owner ${zeroAddress}</dd>- <dt>Recipients</dt>- <dd>${recipients.length} address(es) — sum 100%</dd>- </dl>- `;- $('fund-target').value = splitAddress;- }-- // --- fund ---- function showFundCard() { $('fund-card').style.display = ''; }-+ // ── Fund ──$('fund-btn').addEventListener('click', async () => {if (connectedChainId !== BASE_SEPOLIA_CHAIN_ID) {- logLine('refusing to write — wallet is not on Base Sepolia.', 'err');- return;+ addLog('Refusing — wallet is not on Base Sepolia.', 'error'); return;}if (!walletClient || !splitAddress) {- logLine('connect wallet and create a split first.', 'err');- return;+ addLog('Connect wallet and deploy a split first.', 'error'); return;}const raw = $('fund-amount').value;let valueWei;try { valueWei = parseEther(String(raw)); } catch {- logLine(`invalid ETH amount: ${raw}`, 'err');- return;- }- if (valueWei <= 0n) {- logLine('amount must be > 0', 'err');- return;+ addLog(`Invalid ETH amount: ${raw}`, 'error'); return;}+ if (valueWei <= 0n) { addLog('Amount must be > 0', 'error'); return; }+ const btn = $('fund-btn');+ const result = $('fund-result');try {- $('fund-btn').disabled = true;- $('fund-btn').textContent = 'Waiting for wallet…';- logLine(`sending ${raw} ETH → ${splitAddress}…`, 'info');- const hash = await walletClient.sendTransaction({- to: splitAddress,- value: valueWei,- });- logLine(`tx submitted: ${hash}`, 'info');- $('fund-result').innerHTML = `- <div class="notice">- Tx submitted ·- <a href="${BASESCAN_BASE}/tx/${hash}" target="_blank" rel="noopener">${hash.slice(0, 14)}…</a>- · waiting 1 confirmation…- </div>- `;+ btn.disabled = true;+ btn.textContent = 'Waiting for wallet…';+ addLog(`Sending ${raw} ETH → ${shortAddr(splitAddress)}…`, 'info');+ result.innerHTML = `<div class="notice notice-info">Submitting transaction…</div>`;+ const hash = await walletClient.sendTransaction({ to: splitAddress, value: valueWei });+ addLog(`Tx submitted`, 'fund', `Payment submitted · <a href="${BASESCAN_BASE}/tx/${hash}" target="_blank" rel="noopener">${hash.slice(0,14)}…</a>`);+ result.innerHTML = `<div class="notice notice-info">Confirming… <a href="${BASESCAN_BASE}/tx/${hash}" target="_blank" rel="noopener">${hash.slice(0,14)}…</a></div>`;const receipt = await publicClient.waitForTransactionReceipt({ hash });- logLine(`✓ funded (block ${receipt.blockNumber}, status ${receipt.status})`, 'ok');- $('fund-result').innerHTML = `- <div class="notice ok">- ✓ ${escapeHtml(raw)} ETH sent to split ·- <a href="${BASESCAN_BASE}/tx/${hash}" target="_blank" rel="noopener">${hash.slice(0, 14)}…</a>- </div>- `;- showInspectCard();+ addLog(`Payment confirmed (block ${receipt.blockNumber})`, 'fund', `${raw} ETH sent to split · <a href="${BASESCAN_BASE}/tx/${hash}" target="_blank" rel="noopener">view tx</a>`);+ result.innerHTML = `<div class="notice notice-ok">✓ ${escHtml(raw)} ETH sent · <a href="${BASESCAN_BASE}/tx/${hash}" target="_blank" rel="noopener">view tx</a></div>`;await refreshBalance();} catch (err) {- logLine(`fund failed: ${err.shortMessage || err.message}`, 'err');- $('fund-result').innerHTML = `<div class="notice err">${escapeHtml(err.shortMessage || err.message)}</div>`;+ addLog(`Fund failed: ${err.shortMessage || err.message}`, 'error');+ result.innerHTML = `<div class="notice notice-err">${escHtml(err.shortMessage || err.message)}</div>`;} finally {- $('fund-btn').disabled = false;- $('fund-btn').textContent = 'Send test payment';+ btn.disabled = false;+ btn.textContent = 'Send payment';}});- // --- inspect & distribute ---- function showInspectCard() { $('inspect-card').style.display = ''; }-+ // ── Balance & payouts ──$('refresh-btn').addEventListener('click', () => refreshBalance());async function refreshBalance() {if (!splitAddress) return;try {- const bal = await publicClient.getBalance({ address: splitAddress });- renderInspect(bal);+ splitBalance = await publicClient.getBalance({ address: splitAddress });+ renderBalanceAndPayouts();} catch (err) {- logLine(`balance read failed: ${err.shortMessage || err.message}`, 'err');+ addLog(`Balance fetch failed: ${err.shortMessage || err.message}`, 'error');}}- function renderInspect(balanceWei) {- const ethStr = formatEther(balanceWei);- const cells = recipients.map((r) => {+ function renderBalanceAndPayouts() {+ const ethStr = formatEther(splitBalance);+ $('balance-display').textContent = ethStr + ' ETH';+ $('distribute-btn').disabled = splitBalance === 0n || !splitsClient;++ const rows = recipients.map((r, i) => {+ const color = SEGMENT_COLORS[i % SEGMENT_COLORS.length];const pct = Number(r.percentAllocation) || 0;- // projected payout = balance × pct / 100, integer division on bigint- const projWei = (balanceWei * BigInt(Math.round(pct * 1e6))) / BigInt(1e8);- const isUser = connectedAddress && r.address.toLowerCase() === connectedAddress.toLowerCase();- return `- <tr>- <td title="${escapeHtml(r.address)}">${shortAddr(r.address)}${isUser ? ' <span class="pill" style="font-size:10px;padding:1px 6px">you</span>' : ''}</td>- <td>${pct.toFixed(2)} %</td>- <td>${formatEther(projWei)} ETH</td>- </tr>- `;+ const projWei = (splitBalance * BigInt(Math.round(pct * 1e6))) / BigInt(1e8);+ const isUser = connectedAddress && isAddress(r.address) && r.address.toLowerCase() === connectedAddress.toLowerCase();+ return `<tr>+ <td><span class="payout-dot" style="background:${color}"></span><span class="payout-addr">${escHtml(shortAddr(r.address))}</span>${isUser ? '<span class="you-badge">you</span>' : ''}</td>+ <td class="payout-pct">${pct.toFixed(2)}%</td>+ <td class="payout-eth">${formatEther(projWei)} ETH</td>+ </tr>`;}).join('');- $('inspect-body').innerHTML = `- <dl class="kv">- <dt>Split address</dt>- <dd><a class="copy-addr" href="${BASESCAN_BASE}/address/${splitAddress}" target="_blank" rel="noopener">${splitAddress}</a></dd>- <dt>Current balance</dt>- <dd>${ethStr} ETH (${balanceWei.toString()} wei)</dd>- </dl>- <table style="margin-top:14px">++ $('payout-table-wrap').innerHTML = `+ <table class="payout-table"><thead><tr><th>Recipient</th><th>Share</th><th>Projected payout</th></tr></thead>- <tbody>${cells}</tbody>+ <tbody>${rows}</tbody></table>- <p style="margin-top:10px;color:#8a8d98;font-size:12px">- Pull splits route funds through the Splits Warehouse. After you- click <b>Distribute</b>, each recipient must call- <code>warehouse.withdraw</code> to claim. If your connected- wallet matches a recipient, a <b>Withdraw your share</b> button- appears below.+ <p style="margin-top:8px;font-size:12px;color:var(--text-3)">+ After distributing, each recipient must withdraw from the Splits Warehouse to receive funds in their wallet.</p>`;renderWithdrawButton();@@ -686,46 +1622,40 @@const btn = $('withdraw-btn');if (!btn || !splitAddress) return;const isRecipient = connectedAddress && recipients.some(- (r) => isAddress(r.address) && r.address.toLowerCase() === connectedAddress.toLowerCase(),+ r => isAddress(r.address) && r.address.toLowerCase() === connectedAddress.toLowerCase());btn.style.display = isRecipient ? '' : 'none';}+ // ── Distribute ──$('distribute-btn').addEventListener('click', async () => {if (connectedChainId !== BASE_SEPOLIA_CHAIN_ID) {- logLine('refusing to write — wallet is not on Base Sepolia.', 'err');- return;+ addLog('Refusing — wallet is not on Base Sepolia.', 'error'); return;}if (!splitsClient || !splitAddress) {- logLine('connect wallet and create a split first.', 'err');- return;+ addLog('Connect wallet and deploy a split first.', 'error'); return;}+ const btn = $('distribute-btn');try {- $('distribute-btn').disabled = true;- $('distribute-btn').textContent = 'Waiting for wallet…';- logLine('calling splitV2.distribute(NATIVE_TOKEN_ADDRESS)…', 'info');- const checksummed = recipients.map((r) => ({+ btn.disabled = true;+ btn.textContent = 'Waiting for wallet…';+ addLog('Calling distribute(NATIVE)…', 'info');+ const checksummed = recipients.map(r => ({address: getAddress(r.address),percentAllocation: Number(r.percentAllocation),}));- // We pass `splitFields` so the SDK does not need to query a- // subgraph (Base Sepolia subgraph requires an API key). The- // on-chain `ownership` is the bigint allocation; for total- // = 100% and PERCENTAGE_SCALE = 1e6, each recipient's- // ownership = pct * 1e4.const PERCENTAGE_SCALE = 1_000_000n;const splitFields = {distributorFeePercent: 0,- recipients: checksummed.map((r) => ({+ recipients: checksummed.map(r => ({recipient: { address: r.address },ownership: BigInt(Math.round(r.percentAllocation * 1e4)),percentAllocation: r.percentAllocation,})),};- // sanity-check totals match PERCENTAGE_SCALEconst total = splitFields.recipients.reduce((a, x) => a + x.ownership, 0n);if (total !== PERCENTAGE_SCALE) {- throw new Error(`internal: allocations ${total} ≠ 1e6 scale`);+ throw new Error(`Internal: allocations ${total} ≠ 1e6 scale`);}const res = await splitsClient.distribute({splitAddress,@@ -733,31 +1663,32 @@distributorAddress: connectedAddress,splitFields,});- logLine(`✓ distribute event emitted in tx ${res?.event?.transactionHash || ''}`.trim(), 'ok');+ const txHash = res?.event?.transactionHash || '';+ addLog('Funds distributed to recipients', 'distribute', `Funds distributed · ${txHash ? `<a href="${BASESCAN_BASE}/tx/${txHash}" target="_blank" rel="noopener">view tx</a>` : ''}`);await refreshBalance();+ // advance to done step+ goToStep(3);} catch (err) {- logLine(`distribute failed: ${err.shortMessage || err.message}`, 'err');+ addLog(`Distribute failed: ${err.shortMessage || err.message}`, 'error');} finally {- $('distribute-btn').disabled = false;- $('distribute-btn').textContent = 'Distribute to recipients';+ btn.disabled = false;+ btn.textContent = 'Distribute to recipients';}});+ // ── Withdraw ──$('withdraw-btn').addEventListener('click', async () => {if (connectedChainId !== BASE_SEPOLIA_CHAIN_ID) {- logLine('refusing to write — wallet is not on Base Sepolia.', 'err');- return;+ addLog('Refusing — wallet is not on Base Sepolia.', 'error'); return;}if (!walletClient || !connectedAddress) {- logLine('connect wallet first.', 'err');- return;+ addLog('Connect wallet first.', 'error'); return;}+ const btn = $('withdraw-btn');try {- $('withdraw-btn').disabled = true;- $('withdraw-btn').textContent = 'Waiting for wallet…';- logLine('calling warehouse.withdraw(self, NATIVE)…', 'info');- // Lazy-load WarehouseClient — keeps the createSplit happy- // path lean for users who never withdraw on this device.+ btn.disabled = true;+ btn.textContent = 'Waiting for wallet…';+ addLog('Withdrawing from Splits Warehouse…', 'info');const { WarehouseClient } = await import('@0xsplits/splits-sdk');const wh = new WarehouseClient({chainId: BASE_SEPOLIA_CHAIN_ID,@@ -768,38 +1699,43 @@ownerAddress: connectedAddress,tokenAddress: NATIVE,});- logLine(`✓ withdraw event ${res?.event?.transactionHash || ''}`.trim(), 'ok');+ const txHash = res?.event?.transactionHash || '';+ addLog('Withdrawal complete', 'withdraw', `Withdrawal complete · ${txHash ? `<a href="${BASESCAN_BASE}/tx/${txHash}" target="_blank" rel="noopener">view tx</a>` : ''}`);} catch (err) {- logLine(`withdraw failed: ${err.shortMessage || err.message}`, 'err');+ addLog(`Withdraw failed: ${err.shortMessage || err.message}`, 'error');} finally {- $('withdraw-btn').disabled = false;- $('withdraw-btn').textContent = 'Withdraw your share';+ btn.disabled = false;+ btn.textContent = 'Claim your share';}});- // --- cache hydration ---+ // ── Cache hydration ──function hydrateFromCache() {const c = loadCache();if (!c || c.chainId !== BASE_SEPOLIA_CHAIN_ID || !isAddress(c.splitAddress)) return;splitAddress = getAddress(c.splitAddress);if (Array.isArray(c.recipients) && c.recipients.length) {- recipients = c.recipients.map((r) => ({+ recipients = c.recipients.map(r => ({address: r.address,percentAllocation: Number(r.percentAllocation),}));renderRecipients();+ renderChart();+ updateSum();}- logLine(`restored cached split ${splitAddress}`, 'info');- renderSplitInfo();- showFundCard();- showInspectCard();+ addLog(`Restored split ${shortAddr(splitAddress)}`, 'info');+ $('forget-btn').style.display = '';+ $('create-btn').disabled = true;+ $('create-btn').textContent = 'Deployed ✓';+ renderDeploySummary();+ renderSplitDeployed();refreshBalance();+ goToStep(2);}- // Try to silently pre-detect an already-permitted account so the- // "Connect" button shows the connected state on page refresh.+ // ── Auto-detect session ──(async () => {- if (!window.ethereum) return;+ if (!window.ethereum) { hydrateFromCache(); return; }try {const accts = await window.ethereum.request({ method: 'eth_accounts' });if (accts && accts[0]) {@@ -809,10 +1745,8 @@await rebuildClients();updateWalletUI();hydrateFromCache();- logLine(`auto-restored session: ${connectedAddress} on chain ${connectedChainId}`, 'info');+ addLog(`Session restored: ${shortAddr(connectedAddress)} on chain ${connectedChainId}`, 'connect');} else {- // No connected account — still try to hydrate so the- // user can see their previous split address.hydrateFromCache();}} catch {diff --git a/public/gallery/gallery.css b/public/gallery/gallery.cssindex 1b1a2230d..1696f3231 100644--- a/public/gallery/gallery.css+++ b/public/gallery/gallery.css@@ -88,8 +88,8 @@ body.gallery-page {width: 7px;height: 7px;border-radius: 99px;- background: #34d399;- box-shadow: 0 0 12px rgba(52, 211, 153, 0.7);+ background: #ffffff;+ box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);}.gallery-title {diff --git a/public/gmgn.html b/public/gmgn.htmlindex e3ffa0b00..4fb16650f 100644--- a/public/gmgn.html+++ b/public/gmgn.html@@ -24,7 +24,7 @@<script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/4.0.0/model-viewer.min.js"></script><script defer src="/footer-newsletter.js"></script><style>- :root { color-scheme: dark; --accent: #6a5cff; --gmgn: #00c896; --border: #1f1f29; --bg: #0a0a0f; --panel: #14141c; --muted: #888; --header-h: 48px; }+ :root { color-scheme: dark; --accent: #ffffff; --gmgn: #00c896; --border: #1f1f1f; --bg: #000000; --panel: #141414; --muted: #888; --header-h: 48px; }* { box-sizing: border-box; }html, body { margin: 0; background: var(--bg); color: #eee; font: 14px/1.55 -apple-system, system-ui, Segoe UI, Roboto, sans-serif; }body.home-page { padding-top: var(--header-h); min-height: 100vh; display: flex; flex-direction: column; }@@ -40,16 +40,16 @@.status-pill { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--border); border-radius: 999px; background: transparent; cursor: default; }.pf-filterbar .ctl { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; row-gap: 6px; }.pf-filterbar label { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }- .pf-filterbar input[type="number"], .pf-filterbar select, .pf-filterbar button { background: #161620; color: #eee; border: 1px solid #2a2a36; border-radius: 6px; padding: 5px 9px; font-size: 12px; }+ .pf-filterbar input[type="number"], .pf-filterbar select, .pf-filterbar button { background: #161616; color: #eee; border: 1px solid #2a2a2a; border-radius: 6px; padding: 5px 9px; font-size: 12px; }.pf-filterbar input[type="number"].ctl-num { width: 86px; -moz-appearance: textfield; appearance: textfield; }.pf-filterbar input[type="number"].ctl-num::-webkit-outer-spin-button, .pf-filterbar input[type="number"].ctl-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }- .pf-filterbar .ctl-sep { width: 1px; height: 20px; background: #2a2a36; margin: 0 2px; }+ .pf-filterbar .ctl-sep { width: 1px; height: 20px; background: #2a2a2a; margin: 0 2px; }.pf-filterbar button { cursor: pointer; }- .pf-filterbar button:hover { background: #20202c; }+ .pf-filterbar button:hover { background: #202020; }.pf-filterbar button.toggle[data-on="0"] { color: var(--muted); }#ctl-avatar-wrap { display: inline-flex; align-items: center; gap: 6px; }#ctl-avatar-btn { display: inline-flex; align-items: center; gap: 8px; max-width: 240px; }- #ctl-avatar-btn .avatar-thumb { width: 22px; height: 22px; border-radius: 4px; background: #1a1a24 center/cover no-repeat; border: 1px solid #2a2a36; flex: 0 0 auto; }+ #ctl-avatar-btn .avatar-thumb { width: 22px; height: 22px; border-radius: 4px; background: #1a1a1a center/cover no-repeat; border: 1px solid #2a2a2a; flex: 0 0 auto; }#ctl-avatar-btn .avatar-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }#ctl-avatar-btn .avatar-caret { color: var(--muted); font-size: 10px; }@@ -61,38 +61,38 @@.pf-modal-head h2 { margin: 0; font-size: 14px; font-weight: 600; }.pf-modal-head .spacer { flex: 1; }.pf-modal-close { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 4px 8px; border-radius: 4px; }- .pf-modal-close:hover { background: #1f1f29; color: #eee; }- .pf-tabs { display: flex; gap: 2px; padding: 0 14px; border-bottom: 1px solid var(--border); background: #10101a; overflow-x: auto; }+ .pf-modal-close:hover { background: #1f1f1f; color: #eee; }+ .pf-tabs { display: flex; gap: 2px; padding: 0 14px; border-bottom: 1px solid var(--border); background: #101010; overflow-x: auto; }.pf-tab { background: transparent; border: 0; color: var(--muted); cursor: pointer; padding: 10px 14px; font-size: 13px; font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }.pf-tab:hover { color: #eee; }.pf-tab[aria-selected="true"] { color: #eee; border-bottom-color: var(--accent); }.pf-tab .badge { display: inline-block; margin-left: 6px; font-size: 10px; color: var(--muted); }.pf-toolbar { display: flex; gap: 8px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--border); }- .pf-toolbar input[type="search"] { flex: 1; background: #161620; color: #eee; border: 1px solid #2a2a36; border-radius: 6px; padding: 7px 10px; font-size: 13px; }+ .pf-toolbar input[type="search"] { flex: 1; background: #161616; color: #eee; border: 1px solid #2a2a2a; border-radius: 6px; padding: 7px 10px; font-size: 13px; }.pf-toolbar input[type="search"]:focus { outline: none; border-color: var(--accent); }.pf-toolbar .custom-row { display: flex; gap: 6px; align-items: center; }- .pf-toolbar .custom-row input { background: #161620; color: #eee; border: 1px solid #2a2a36; border-radius: 6px; padding: 7px 10px; font-size: 13px; width: 220px; }+ .pf-toolbar .custom-row input { background: #161616; color: #eee; border: 1px solid #2a2a2a; border-radius: 6px; padding: 7px 10px; font-size: 13px; width: 220px; }.pf-toolbar .custom-row button { background: var(--accent); border: 0; color: #fff; border-radius: 6px; padding: 7px 12px; font-size: 13px; cursor: pointer; }.pf-toolbar .custom-row button:hover { filter: brightness(1.1); }.pf-content { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 280px; }.pf-body { min-height: 0; overflow-y: auto; padding: 16px 18px; }- .pf-preview { border-left: 1px solid var(--border); background: #0d0d15; display: flex; flex-direction: column; min-height: 0; }- .pf-preview-stage { flex: 1; min-height: 0; position: relative; background: radial-gradient(ellipse at center, #1a1a26 0%, #0a0a12 70%); }+ .pf-preview { border-left: 1px solid var(--border); background: #0d0d0d; display: flex; flex-direction: column; min-height: 0; }+ .pf-preview-stage { flex: 1; min-height: 0; position: relative; background: radial-gradient(ellipse at center, #1a1a1a 0%, #0a0a0a 70%); }.pf-preview-stage model-viewer { width: 100%; height: 100%; --poster-color: transparent; background: transparent; }- .pf-preview-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #2a2a3a; font-size: 48px; pointer-events: none; }+ .pf-preview-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #2a2a2a; font-size: 48px; pointer-events: none; }.pf-preview-meta { padding: 12px 14px; border-top: 1px solid var(--border); }.pf-preview-meta .name { font-size: 13px; font-weight: 600; }.pf-preview-meta .sub { font-size: 11px; color: var(--muted); margin-top: 3px; }.pf-preview-meta .actions { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }- .pf-preview-meta .actions button { font-size: 11px; padding: 5px 10px; border-radius: 5px; background: #161620; border: 1px solid #2a2a36; color: #cbd5e1; cursor: pointer; }- .pf-preview-meta .actions button:hover { background: #20202c; }+ .pf-preview-meta .actions button { font-size: 11px; padding: 5px 10px; border-radius: 5px; background: #161616; border: 1px solid #2a2a2a; color: #cbd5e1; cursor: pointer; }+ .pf-preview-meta .actions button:hover { background: #202020; }.pf-preview-meta .actions .primary { background: var(--accent); border-color: var(--accent); color: #fff; }.pf-preview-meta .actions .primary:hover { filter: brightness(1.1); background: var(--accent); }.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }- .pf-card { position: relative; background: #161620; border: 1px solid #232330; border-radius: 8px; overflow: hidden; cursor: pointer; transition: border-color 0.15s, transform 0.1s; display: flex; flex-direction: column; text-align: left; padding: 0; color: #eee; font: inherit; }- .pf-card:hover, .pf-card:focus-visible { border-color: #3a3a4a; outline: none; }+ .pf-card { position: relative; background: #161616; border: 1px solid #232323; border-radius: 8px; overflow: hidden; cursor: pointer; transition: border-color 0.15s, transform 0.1s; display: flex; flex-direction: column; text-align: left; padding: 0; color: #eee; font: inherit; }+ .pf-card:hover, .pf-card:focus-visible { border-color: #3a3a3a; outline: none; }.pf-card[data-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }- .pf-card .thumb { aspect-ratio: 1/1; background: #0e0e16 center/cover no-repeat; border-bottom: 1px solid #232330; display: flex; align-items: center; justify-content: center; color: #2a2a3a; font-size: 32px; }+ .pf-card .thumb { aspect-ratio: 1/1; background: #0e0e0e center/cover no-repeat; border-bottom: 1px solid #232323; display: flex; align-items: center; justify-content: center; color: #2a2a2a; font-size: 32px; }.pf-card .meta { padding: 8px 10px; }.pf-card .name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.pf-card .sub { font-size: 10px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }@@ -103,7 +103,7 @@/* Layout */.pf-main { flex: 1; display: grid; grid-template-columns: 1fr 340px; overflow: hidden; }- #stage { position: relative; background: radial-gradient(ellipse at center 70%, #0f1a28 0%, #06080f 70%); display: flex; align-items: center; justify-content: center; overflow: hidden; }+ #stage { position: relative; background: radial-gradient(ellipse at center 70%, #0f1414 0%, #060606 70%); display: flex; align-items: center; justify-content: center; overflow: hidden; }#stage model-viewer { width: 100%; height: 100%; min-height: 340px; --poster-color: transparent; background: transparent; }#stage-overlay { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; pointer-events: none; }#stage-title { font-size: 18px; font-weight: 700; color: var(--gmgn); text-shadow: 0 0 20px rgba(0,200,150,0.4); margin-bottom: 6px; }@@ -111,10 +111,10 @@/* Feed sidebar */#side { display: flex; flex-direction: column; border-left: 1px solid var(--border); background: var(--panel); overflow: hidden; min-width: 260px; max-width: 480px; resize: horizontal; }- .side-header { display: flex; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); background: #10101a; cursor: move; user-select: none; gap: 8px; }+ .side-header { display: flex; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); background: #101010; cursor: move; user-select: none; gap: 8px; }.side-title { font-size: 13px; font-weight: 600; flex: 1; }.side-control-btn { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 6px; border-radius: 3px; }- .side-control-btn:hover { background: #1f1f29; color: #eee; }+ .side-control-btn:hover { background: #1f1f1f; color: #eee; }#side-content { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }#side-content h2 { margin: 0 0 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }@@ -126,11 +126,11 @@.feed-jump[data-visible="true"] { display: block; }/* Smart money event cards */- .ev-card { background: #0e0e18; border: 1px solid #1e1e2a; border-radius: 8px; padding: 10px 12px; font-size: 12px; transition: border-color 0.2s; cursor: default; }+ .ev-card { background: #0e0e0e; border: 1px solid #1e1e1e; border-radius: 8px; padding: 10px 12px; font-size: 12px; transition: border-color 0.2s; cursor: default; }.ev-card.replay { opacity: 0.65; }.ev-card.is-new { border-left: 3px solid var(--gmgn); }.ev-card.is-alert { border-left: 3px solid #f59e0b; }- .ev-card:hover { border-color: #2e2e3e; }+ .ev-card:hover { border-color: #2e2e2e; }.ev-card .ev-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }.ev-card .ev-symbol { font-size: 14px; font-weight: 700; color: #eee; }.ev-card .ev-name { color: var(--muted); font-size: 11px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }@@ -149,7 +149,7 @@.ev-card .ev-link:hover { text-decoration: underline; }/* Stats bar */- #stats-bar { display: flex; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: #0d0d15; font-size: 11px; flex-wrap: wrap; }+ #stats-bar { display: flex; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: #0d0d0d; font-size: 11px; flex-wrap: wrap; }.stat-item { display: flex; flex-direction: column; gap: 1px; }.stat-item .lbl { color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-size: 10px; }.stat-item .val { color: #eee; font-weight: 600; }diff --git a/public/marketplace-v2.css b/public/marketplace-v2.cssindex 5d82e5db5..f952375b8 100644--- a/public/marketplace-v2.css+++ b/public/marketplace-v2.css@@ -44,7 +44,7 @@ body.market-page > #footer-container {display: none;}.market-detail-avatar.has-3d {- background: radial-gradient(circle at 50% 60%, rgba(125, 211, 252, 0.06), transparent 70%),+ background: radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.06), transparent 70%),linear-gradient(180deg, #050505, #0d0d0d);}.market-detail-avatar.has-3d .d-avatar-fallback {@@ -128,7 +128,7 @@ body.market-page > #footer-container {}.market-preview-msg.user .market-preview-bubble {background: #fafafa;- color: #0a0a0a;+ color: #000000;border-color: #fafafa;}.market-preview-msg.assistant .market-preview-bubble {@@ -139,7 +139,7 @@ body.market-page > #footer-container {display: inline-block;margin-left: 2px;animation: mk-cursor-blink 0.9s infinite;- color: #7dd3fc;+ color: #ffffff;}@keyframes mk-cursor-blink {0%, 49% { opacity: 1; }@@ -165,7 +165,7 @@ body.market-page > #footer-container {}.market-preview-send {background: #fafafa;- color: #0a0a0a;+ color: #000000;border: 0;padding: 10px 18px;border-radius: 10px;@@ -267,7 +267,7 @@ body.market-page > #footer-container {font-size: 10px;letter-spacing: 0.18em;text-transform: uppercase;- color: #7dd3fc;+ color: #ffffff;font-weight: 600;}.creator-modal-title {diff --git a/public/marketplace.css b/public/marketplace.cssindex 941ecbcaa..5fe0c2c26 100644--- a/public/marketplace.css+++ b/public/marketplace.css@@ -498,7 +498,7 @@ body.market-page {.avatar-detail-load-bar {height: 100%;width: 0;- background: linear-gradient(90deg, #a78bfa, #6366f1);+ background: #ffffff;border-radius: 999px;transition: width 0.2s;}diff --git a/public/pay/calls/index.html b/public/pay/calls/index.htmlindex 139c422bc..2887672bd 100644--- a/public/pay/calls/index.html+++ b/public/pay/calls/index.html@@ -20,7 +20,7 @@--panel: #14161f; --panel-2: #1a1d29;--border: #232636; --border-strong: #2e3447;--text: #e6e8f0; --muted: #8a90a8;- --accent: #8b5cf6; --accent-2: #22d3ee;+ --accent: #ffffff; --accent-2: #22d3ee;--green: #22c55e; --orange: #f59e0b; --red: #ef4444;--mono: ui-monospace, "JetBrains Mono", "Fira Code", Menlo, monospace;}@@ -37,13 +37,13 @@padding: 16px 28px;display: flex; align-items: center; justify-content: space-between;gap: 16px; border-bottom: 1px solid var(--border);- background: linear-gradient(180deg, rgba(139,92,246,0.04), transparent);+ background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);}.brand { display: flex; align-items: center; gap: 12px; }.brand .logo {width: 32px; height: 32px;background: conic-gradient(from 230deg, var(--accent), var(--accent-2), var(--accent));- border-radius: 9px; box-shadow: 0 0 24px rgba(139, 92, 246, 0.5);+ border-radius: 9px; box-shadow: 0 0 24px rgba(255, 255, 255, 0.5);}.brand a { color: var(--text); }.brand .title { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }@@ -55,7 +55,7 @@padding: 24px 28px;border: 1px solid var(--border-strong);border-radius: 16px;- background: linear-gradient(180deg, rgba(34, 211, 238, 0.06), rgba(139, 92, 246, 0.04), var(--panel));+ background: linear-gradient(180deg, rgba(34, 211, 238, 0.06), rgba(255, 255, 255, 0.04), var(--panel));margin-bottom: 24px;}.hero .top { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }@@ -118,17 +118,17 @@margin-top: 32px; padding: 18px 22px;border: 1px solid var(--border);border-radius: 12px;- background: linear-gradient(180deg, rgba(139,92,246,0.08), transparent);+ background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent);display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;}.cta .text { font-size: 14px; }.cta .btn {display: inline-block;- background: var(--accent); color: #fff !important;+ background: var(--accent); color: #000000 !important;padding: 10px 18px; border-radius: 10px;font-weight: 600; font-size: 14px; text-decoration: none;}- .cta .btn:hover { background: #7c3aed; text-decoration: none; }+ .cta .btn:hover { background: #e0e0e0; text-decoration: none; }.skeleton { color: var(--muted); padding: 32px; text-align: center; font-family: var(--mono); font-size: 13px; }.err { color: var(--red); padding: 32px; text-align: center; font-family: var(--mono); font-size: 13px; }diff --git a/public/pay/index.html b/public/pay/index.htmlindex 971468c5e..9278b02ad 100644--- a/public/pay/index.html+++ b/public/pay/index.html@@ -27,7 +27,7 @@--border-strong: #2e3447;--text: #e6e8f0;--muted: #8a90a8;- --accent: #8b5cf6;+ --accent: #ffffff;--accent-2: #22d3ee;--green: #22c55e;--orange: #f59e0b;@@ -57,14 +57,14 @@justify-content: space-between;gap: 16px;border-bottom: 1px solid var(--border);- background: linear-gradient(180deg, rgba(139,92,246,0.04), transparent);+ background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);}.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }.brand .logo {width: 32px; height: 32px;background: conic-gradient(from 230deg, var(--accent), var(--accent-2), var(--accent));border-radius: 9px;- box-shadow: 0 0 24px rgba(139, 92, 246, 0.5);+ box-shadow: 0 0 24px rgba(255, 255, 255, 0.5);flex: 0 0 auto;}.brand .title { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; }@@ -169,7 +169,7 @@font-size: 12px; cursor: pointer;transition: border-color 0.15s, background 0.15s, transform 0.05s;}- .quick button:hover { border-color: var(--accent); background: rgba(139, 92, 246, 0.08); }+ .quick button:hover { border-color: var(--accent); background: rgba(255, 255, 255, 0.08); }.quick button:active { transform: translateY(1px); }.quick button:disabled { opacity: 0.4; cursor: not-allowed; }.input-row { display: flex; gap: 10px; align-items: stretch; }@@ -185,12 +185,12 @@}.input-row input:focus { border-color: var(--accent); }.input-row .send {- background: var(--accent); color: #fff;+ background: var(--accent); color: #000000;border: none; padding: 0 22px; border-radius: 10px;font-weight: 600; font-size: 14px; cursor: pointer;transition: background 0.15s, transform 0.05s;}- .input-row .send:hover { background: #7c3aed; }+ .input-row .send:hover { background: #e0e0e0; }.input-row .send:active { transform: translateY(1px); }.input-row .send:disabled { opacity: 0.5; cursor: not-allowed; }@@ -230,10 +230,10 @@}.step.active {border-color: var(--accent);- background: linear-gradient(180deg, rgba(139,92,246,0.06), var(--panel-2));+ background: linear-gradient(180deg, rgba(255,255,255,0.06), var(--panel-2));}.step.active .icon {- background: var(--accent); color: #fff; border-color: var(--accent);+ background: var(--accent); color: #000000; border-color: var(--accent);animation: spin 1.2s linear infinite;}@keyframes spin { to { transform: rotate(360deg); } }@@ -480,11 +480,11 @@.walkthrough .step-item .text { font-size: 13px; line-height: 1.5; }.walkthrough .step-item .text b { color: var(--accent-2); }.walkthrough button {- background: var(--accent); color: #fff; border: none;+ background: var(--accent); color: #000000; border: none;width: 100%; padding: 12px; border-radius: 10px;font-weight: 600; font-size: 14px; cursor: pointer;}- .walkthrough button:hover { background: #7c3aed; }+ .walkthrough button:hover { background: #e0e0e0; }/* Mobile polish */@media (max-width: 640px) {@@ -529,7 +529,7 @@transition: border-color 0.15s, background 0.15s;font-size: 12px;}- .agent-card:hover { border-color: var(--accent); background: rgba(139,92,246,0.06); }+ .agent-card:hover { border-color: var(--accent); background: rgba(255,255,255,0.06); }.agent-card.selected { border-color: var(--accent-2); background: rgba(34,211,238,0.07); }.agent-card .av {width: 24px; height: 24px; border-radius: 6px;@@ -574,8 +574,8 @@transition: border-color 0.15s;}.gen-modal button:hover { border-color: var(--accent); }- .gen-modal button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }- .gen-modal button.primary:hover { background: #7c3aed; }+ .gen-modal button.primary { background: var(--accent); color: #000000; border-color: var(--accent); }+ .gen-modal button.primary:hover { background: #e0e0e0; }.gen-modal .cancel { color: var(--muted); margin-top: 8px; font-size: 12px; text-align: center; cursor: pointer; }.gen-modal .cancel:hover { color: var(--text); }.gen-modal .spinner { font-size: 18px; animation: spin 1.2s linear infinite; }diff --git a/public/pricing.css b/public/pricing.cssnew file mode 100644index 000000000..ee8f8b97e--- /dev/null+++ b/public/pricing.css@@ -0,0 +1,828 @@+/* ── Pricing page ─────────────────────────────────────────────────────────── */++.pricing-hero {+ max-width: 1200px;+ margin: 0 auto;+ padding: calc(var(--header-h, 3.5rem) + 80px) 24px 0;+ text-align: center;+}++.pricing-hero .eyebrow {+ display: inline-flex;+ align-items: center;+ gap: 9px;+ font-family: var(--font-display, 'Space Grotesk', 'Inter', sans-serif);+ font-size: 11px;+ font-weight: 600;+ letter-spacing: 0.17em;+ text-transform: uppercase;+ color: rgba(255, 255, 255, 0.55);+ margin-bottom: 18px;+}++.pricing-hero .eyebrow-dot {+ width: 7px;+ height: 7px;+ border-radius: 50%;+ background: #fff;+ box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);+}++.pricing-hero h1 {+ font-family: var(--font-display, 'Space Grotesk', 'Inter', sans-serif);+ font-size: clamp(36px, 5vw, 62px);+ font-weight: 700;+ letter-spacing: -0.035em;+ line-height: 1.05;+ margin: 0 0 18px;+ color: #fff;+}++.pricing-hero h1 em {+ font-style: normal;+ color: rgba(255, 255, 255, 0.45);+}++.pricing-hero .lead {+ color: rgba(255, 255, 255, 0.45);+ font-size: 17px;+ max-width: 58ch;+ margin: 0 auto 44px;+ line-height: 1.6;+}++/* ── Billing toggle ────────────────────────────────────────────────────── */++.billing-toggle {+ display: inline-flex;+ align-items: center;+ gap: 14px;+ margin-bottom: 52px;+ font-size: 14px;+ font-weight: 500;+ color: rgba(255, 255, 255, 0.5);+}++.billing-toggle span {+ cursor: pointer;+ transition: color 0.2s;+}++.billing-toggle span.is-active {+ color: #fff;+}++.billing-toggle .toggle-track {+ position: relative;+ width: 46px;+ height: 24px;+ border-radius: 999px;+ background: rgba(255, 255, 255, 0.1);+ border: 1px solid rgba(255, 255, 255, 0.12);+ cursor: pointer;+ transition: background 0.2s, border-color 0.2s;+}++.billing-toggle .toggle-track:hover {+ border-color: rgba(255, 255, 255, 0.25);+}++.billing-toggle .toggle-thumb {+ position: absolute;+ top: 2px;+ left: 2px;+ width: 18px;+ height: 18px;+ border-radius: 50%;+ background: #fff;+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);+ transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);+}++.billing-toggle.annual .toggle-thumb {+ transform: translateX(22px);+}++.billing-toggle.annual .toggle-track {+ background: rgba(255, 255, 255, 0.15);+}++.billing-save {+ display: inline-block;+ padding: 2px 8px;+ margin-left: 4px;+ background: rgba(74, 222, 128, 0.12);+ color: #4ade80;+ border-radius: 999px;+ font-size: 11px;+ font-weight: 600;+ letter-spacing: 0.05em;+}++/* ── Tier cards ────────────────────────────────────────────────────────── */++.pricing-tiers {+ display: grid;+ grid-template-columns: repeat(3, 1fr);+ gap: 1px;+ max-width: 1100px;+ margin: 0 auto;+ padding: 0 24px;+ background: rgba(255, 255, 255, 0.06);+ border: 1px solid rgba(255, 255, 255, 0.06);+ border-radius: 18px;+ overflow: hidden;+}++.pricing-tier-card {+ background: rgba(10, 10, 10, 0.95);+ padding: 44px 36px;+ display: flex;+ flex-direction: column;+ position: relative;+ transition: background 0.2s;+}++.pricing-tier-card:hover {+ background: rgba(18, 18, 18, 0.95);+}++.pricing-tier-card.featured {+ background: rgba(18, 18, 18, 0.98);+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);+}++.pricing-tier-card.featured:hover {+ background: rgba(24, 24, 24, 0.98);+}++.pricing-popular {+ position: absolute;+ top: 18px;+ right: 18px;+ font-family: var(--font-mono, 'SF Mono', 'Fira Code', monospace);+ font-size: 10px;+ letter-spacing: 0.14em;+ text-transform: uppercase;+ background: #fff;+ color: #000;+ padding: 4px 10px;+ border-radius: 999px;+ font-weight: 700;+}++.pricing-tier-name {+ font-family: var(--font-mono, 'SF Mono', 'Fira Code', monospace);+ font-size: 11px;+ letter-spacing: 0.18em;+ text-transform: uppercase;+ color: rgba(255, 255, 255, 0.4);+ margin-bottom: 14px;+ font-weight: 600;+}++.pricing-amount {+ font-family: var(--font-display, 'Space Grotesk', 'Inter', sans-serif);+ font-size: 48px;+ font-weight: 700;+ letter-spacing: -0.03em;+ color: #fff;+ line-height: 1;+ margin-bottom: 6px;+}++.pricing-amount sub {+ font-size: 16px;+ font-weight: 400;+ color: rgba(255, 255, 255, 0.35);+ letter-spacing: 0;+}++.pricing-cycle-info {+ font-size: 13px;+ color: rgba(255, 255, 255, 0.35);+ margin-bottom: 32px;+ min-height: 20px;+}++.pricing-features {+ list-style: none;+ padding: 0;+ margin: 0 0 36px;+ flex: 1;+ display: flex;+ flex-direction: column;+ gap: 12px;+}++.pricing-features li {+ display: flex;+ align-items: flex-start;+ gap: 10px;+ font-size: 14px;+ color: rgba(255, 255, 255, 0.7);+ line-height: 1.45;+}++.pricing-features li::before {+ content: '';+ flex: 0 0 6px;+ height: 6px;+ margin-top: 7px;+ border-radius: 50%;+ background: rgba(255, 255, 255, 0.35);+}++.pricing-tier-card.featured .pricing-features li::before {+ background: #fff;+ box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);+}++.pricing-cta {+ display: flex;+ align-items: center;+ justify-content: center;+ width: 100%;+ padding: 14px 20px;+ border-radius: 12px;+ font-family: var(--font-body, 'Inter', sans-serif);+ font-size: 14px;+ font-weight: 600;+ text-decoration: none;+ cursor: pointer;+ border: 1px solid rgba(255, 255, 255, 0.1);+ background: rgba(255, 255, 255, 0.04);+ color: #fff;+ transition: background 0.15s, border-color 0.15s, transform 0.15s;+}++.pricing-cta:hover {+ background: rgba(255, 255, 255, 0.08);+ border-color: rgba(255, 255, 255, 0.2);+ transform: translateY(-1px);+}++.pricing-cta.primary {+ background: #fff;+ color: #000;+ border-color: transparent;+ box-shadow:+ 0 1px 0 rgba(255, 255, 255, 0.3) inset,+ 0 6px 20px -8px rgba(255, 255, 255, 0.15);+}++.pricing-cta.primary:hover {+ background: #f0f0f0;+ transform: translateY(-1px);+ box-shadow:+ 0 1px 0 rgba(255, 255, 255, 0.4) inset,+ 0 10px 28px -8px rgba(255, 255, 255, 0.2);+}++/* ── 3D Avatar overlay ─────────────────────────────────────────────────── */++.pricing-avatar-canvas {+ position: fixed;+ inset: 0;+ width: 100vw;+ height: 100vh;+ pointer-events: none;+ z-index: 50;+}++/* ── Feature comparison ────────────────────────────────────────────────── */++.pricing-comparison {+ max-width: 1100px;+ margin: 0 auto;+ padding: 100px 24px 0;+}++.pricing-comparison h2 {+ font-family: var(--font-display, 'Space Grotesk', 'Inter', sans-serif);+ font-size: clamp(26px, 3.5vw, 38px);+ font-weight: 700;+ letter-spacing: -0.025em;+ color: #fff;+ text-align: center;+ margin: 0 0 48px;+}++.comparison-table {+ width: 100%;+ border-collapse: collapse;+ font-size: 14px;+}++.comparison-table thead th {+ padding: 16px 20px;+ text-align: center;+ font-family: var(--font-display, 'Space Grotesk', 'Inter', sans-serif);+ font-size: 14px;+ font-weight: 600;+ color: rgba(255, 255, 255, 0.5);+ letter-spacing: 0.06em;+ text-transform: uppercase;+ border-bottom: 1px solid rgba(255, 255, 255, 0.08);+}++.comparison-table thead th:first-child {+ text-align: left;+ color: rgba(255, 255, 255, 0.3);+ font-weight: 500;+ text-transform: none;+ letter-spacing: 0;+}++.comparison-table thead th.featured-col {+ color: #fff;+}++.comparison-table tbody td {+ padding: 14px 20px;+ border-bottom: 1px solid rgba(255, 255, 255, 0.04);+ color: rgba(255, 255, 255, 0.55);+ text-align: center;+ vertical-align: middle;+}++.comparison-table tbody td:first-child {+ text-align: left;+ color: rgba(255, 255, 255, 0.7);+ font-weight: 500;+}++.comparison-table tbody tr:hover td {+ background: rgba(255, 255, 255, 0.02);+}++.comparison-table .section-row td {+ padding-top: 28px;+ font-family: var(--font-display, 'Space Grotesk', 'Inter', sans-serif);+ font-size: 12px;+ font-weight: 600;+ letter-spacing: 0.14em;+ text-transform: uppercase;+ color: rgba(255, 255, 255, 0.3);+ border-bottom: 1px solid rgba(255, 255, 255, 0.08);+}++.comparison-table .check {+ display: inline-block;+ width: 18px;+ height: 18px;+ border-radius: 50%;+ background: rgba(255, 255, 255, 0.06);+ position: relative;+}++.comparison-table .check::after {+ content: '';+ position: absolute;+ top: 5px;+ left: 6px;+ width: 5px;+ height: 8px;+ border: solid rgba(255, 255, 255, 0.5);+ border-width: 0 1.5px 1.5px 0;+ transform: rotate(45deg);+}++.comparison-table .check.yes::after {+ border-color: #fff;+}++.comparison-table .check.yes {+ background: rgba(255, 255, 255, 0.12);+}++.comparison-table .val {+ color: rgba(255, 255, 255, 0.6);+ font-weight: 500;+}++.comparison-table td.featured-col {+ background: rgba(255, 255, 255, 0.02);+}++/* ── FAQ ───────────────────────────────────────────────────────────────── */++.pricing-faq {+ max-width: 720px;+ margin: 0 auto;+ padding: 100px 24px 0;+}++.pricing-faq h2 {+ font-family: var(--font-display, 'Space Grotesk', 'Inter', sans-serif);+ font-size: clamp(26px, 3.5vw, 38px);+ font-weight: 700;+ letter-spacing: -0.025em;+ color: #fff;+ text-align: center;+ margin: 0 0 48px;+}++.pricing-faq details {+ padding: 18px 0;+ border-bottom: 1px solid rgba(255, 255, 255, 0.06);+}++.pricing-faq details:first-of-type {+ border-top: 1px solid rgba(255, 255, 255, 0.06);+}++.pricing-faq summary {+ cursor: pointer;+ font-weight: 500;+ color: rgba(255, 255, 255, 0.85);+ font-size: 15px;+ list-style: none;+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 16px;+ transition: color 0.15s;+}++.pricing-faq summary::-webkit-details-marker {+ display: none;+}++.pricing-faq summary:hover {+ color: #fff;+}++.pricing-faq summary::after {+ content: '+';+ flex-shrink: 0;+ width: 24px;+ height: 24px;+ display: flex;+ align-items: center;+ justify-content: center;+ border-radius: 50%;+ background: rgba(255, 255, 255, 0.06);+ color: rgba(255, 255, 255, 0.4);+ font-size: 16px;+ font-weight: 400;+ transition: background 0.15s, transform 0.2s;+}++.pricing-faq details[open] summary::after {+ content: '\2212';+ transform: rotate(180deg);+ background: rgba(255, 255, 255, 0.1);+}++.pricing-faq details p {+ color: rgba(255, 255, 255, 0.45);+ margin: 14px 0 0;+ line-height: 1.65;+ font-size: 14.5px;+ padding-right: 40px;+}++/* ── Bottom CTA ────────────────────────────────────────────────────────── */++.pricing-bottom-cta {+ max-width: 800px;+ margin: 0 auto;+ padding: 100px 24px 80px;+ text-align: center;+}++.pricing-bottom-cta .cta-card {+ padding: 64px 48px;+ border: 1px solid rgba(255, 255, 255, 0.08);+ border-radius: 18px;+ background: rgba(255, 255, 255, 0.02);+}++.pricing-bottom-cta .cta-card h2 {+ font-family: var(--font-display, 'Space Grotesk', 'Inter', sans-serif);+ font-size: clamp(24px, 3vw, 36px);+ font-weight: 700;+ letter-spacing: -0.025em;+ color: #fff;+ margin: 0 0 14px;+ line-height: 1.15;+}++.pricing-bottom-cta .cta-card p {+ color: rgba(255, 255, 255, 0.4);+ font-size: 16px;+ margin: 0 0 32px;+}++.pricing-bottom-cta .cta-row {+ display: flex;+ gap: 12px;+ justify-content: center;+ flex-wrap: wrap;+}++/* ── Inline pricing upgrade banner (used on avatar-studio, agent, dashboard) ── */++.upgrade-banner {+ display: flex;+ align-items: center;+ gap: 16px;+ padding: 14px 20px;+ margin: 16px 0;+ border: 1px solid rgba(255, 255, 255, 0.08);+ border-radius: 12px;+ background: rgba(255, 255, 255, 0.02);+ transition: background 0.15s, border-color 0.15s;+}++.upgrade-banner:hover {+ background: rgba(255, 255, 255, 0.04);+ border-color: rgba(255, 255, 255, 0.12);+}++.upgrade-banner-icon {+ flex-shrink: 0;+ width: 36px;+ height: 36px;+ border-radius: 10px;+ background: rgba(255, 255, 255, 0.06);+ display: flex;+ align-items: center;+ justify-content: center;+}++.upgrade-banner-icon svg {+ width: 18px;+ height: 18px;+ color: rgba(255, 255, 255, 0.6);+}++.upgrade-banner-text {+ flex: 1;+ min-width: 0;+}++.upgrade-banner-title {+ font-size: 13px;+ font-weight: 600;+ color: #fff;+ margin-bottom: 2px;+}++.upgrade-banner-desc {+ font-size: 12px;+ color: rgba(255, 255, 255, 0.4);+ line-height: 1.4;+}++.upgrade-banner-btn {+ flex-shrink: 0;+ padding: 8px 16px;+ border-radius: 8px;+ background: rgba(255, 255, 255, 0.08);+ border: 1px solid rgba(255, 255, 255, 0.1);+ color: #fff;+ font-size: 12px;+ font-weight: 600;+ text-decoration: none;+ transition: background 0.15s, border-color 0.15s;+ white-space: nowrap;+}++.upgrade-banner-btn:hover {+ background: rgba(255, 255, 255, 0.12);+ border-color: rgba(255, 255, 255, 0.2);+}++/* ── Compact pricing card (embeddable section for other pages) ─────── */++.pricing-embed-section {+ max-width: 1100px;+ margin: 0 auto;+ padding: 80px 24px;+}++.pricing-embed-section .section-eyebrow {+ font-family: var(--font-mono, 'SF Mono', 'Fira Code', monospace);+ font-size: 11px;+ letter-spacing: 0.16em;+ text-transform: uppercase;+ color: rgba(255, 255, 255, 0.35);+ margin-bottom: 14px;+ text-align: center;+}++.pricing-embed-section h2 {+ font-family: var(--font-display, 'Space Grotesk', 'Inter', sans-serif);+ font-size: clamp(26px, 3.5vw, 40px);+ font-weight: 700;+ letter-spacing: -0.03em;+ color: #fff;+ text-align: center;+ margin: 0 0 12px;+}++.pricing-embed-section .section-lead {+ color: rgba(255, 255, 255, 0.4);+ font-size: 16px;+ text-align: center;+ max-width: 52ch;+ margin: 0 auto 44px;+}++.pricing-embed-grid {+ display: grid;+ grid-template-columns: repeat(3, 1fr);+ gap: 1px;+ background: rgba(255, 255, 255, 0.06);+ border: 1px solid rgba(255, 255, 255, 0.06);+ border-radius: 16px;+ overflow: hidden;+}++.pricing-embed-card {+ background: rgba(10, 10, 10, 0.95);+ padding: 32px 28px;+ display: flex;+ flex-direction: column;+ position: relative;+ transition: background 0.15s;+}++.pricing-embed-card:hover {+ background: rgba(18, 18, 18, 0.95);+}++.pricing-embed-card.featured {+ background: rgba(18, 18, 18, 0.98);+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);+}++.pricing-embed-card .embed-tier-name {+ font-family: var(--font-mono, 'SF Mono', 'Fira Code', monospace);+ font-size: 10px;+ letter-spacing: 0.16em;+ text-transform: uppercase;+ color: rgba(255, 255, 255, 0.4);+ margin-bottom: 10px;+ font-weight: 600;+}++.pricing-embed-card .embed-price {+ font-family: var(--font-display, 'Space Grotesk', 'Inter', sans-serif);+ font-size: 32px;+ font-weight: 700;+ letter-spacing: -0.03em;+ color: #fff;+ line-height: 1;+ margin-bottom: 4px;+}++.pricing-embed-card .embed-price sub {+ font-size: 14px;+ font-weight: 400;+ color: rgba(255, 255, 255, 0.35);+}++.pricing-embed-card .embed-cycle {+ font-size: 12px;+ color: rgba(255, 255, 255, 0.3);+ margin-bottom: 20px;+}++.pricing-embed-card .embed-feats {+ list-style: none;+ padding: 0;+ margin: 0 0 24px;+ flex: 1;+ display: flex;+ flex-direction: column;+ gap: 8px;+}++.pricing-embed-card .embed-feats li {+ display: flex;+ align-items: flex-start;+ gap: 8px;+ font-size: 13px;+ color: rgba(255, 255, 255, 0.6);+ line-height: 1.4;+}++.pricing-embed-card .embed-feats li::before {+ content: '✓';+ color: rgba(255, 255, 255, 0.3);+ font-weight: 700;+ font-size: 11px;+ flex-shrink: 0;+ margin-top: 1px;+}++.pricing-embed-card.featured .embed-feats li::before {+ color: #fff;+}++.pricing-embed-card .embed-popular {+ position: absolute;+ top: 14px;+ right: 14px;+ font-size: 9px;+ font-weight: 700;+ letter-spacing: 0.1em;+ text-transform: uppercase;+ background: #fff;+ color: #000;+ padding: 3px 8px;+ border-radius: 999px;+}++.pricing-embed-cta {+ display: flex;+ justify-content: center;+ margin-top: 28px;+}++.pricing-embed-cta a {+ display: inline-flex;+ align-items: center;+ gap: 6px;+ color: rgba(255, 255, 255, 0.5);+ text-decoration: none;+ font-size: 14px;+ font-weight: 500;+ transition: color 0.15s;+}++.pricing-embed-cta a:hover {+ color: #fff;+}++.pricing-embed-cta a .arrow {+ transition: transform 0.15s;+}++.pricing-embed-cta a:hover .arrow {+ transform: translateX(3px);+}++/* ── Responsive ────────────────────────────────────────────────────────── */++@media (max-width: 860px) {+ .pricing-tiers {+ grid-template-columns: 1fr;+ }++ .pricing-embed-grid {+ grid-template-columns: 1fr;+ }++ .comparison-table {+ display: block;+ overflow-x: auto;+ -webkit-overflow-scrolling: touch;+ }++ .comparison-table thead th,+ .comparison-table tbody td {+ padding: 12px 14px;+ white-space: nowrap;+ }+}++@media (max-width: 560px) {+ .pricing-hero {+ padding-top: calc(var(--header-h, 3.5rem) + 48px);+ }++ .pricing-tier-card {+ padding: 32px 24px;+ }++ .pricing-comparison {+ padding-top: 64px;+ }++ .pricing-faq {+ padding-top: 64px;+ }++ .pricing-bottom-cta {+ padding: 64px 24px 48px;+ }++ .pricing-bottom-cta .cta-card {+ padding: 40px 24px;+ }++ .upgrade-banner {+ flex-direction: column;+ text-align: center;+ gap: 12px;+ }++ .upgrade-banner-btn {+ width: 100%;+ text-align: center;+ }+}diff --git a/public/pump-dashboard.css b/public/pump-dashboard.cssindex b06776e01..51e041569 100644--- a/public/pump-dashboard.css+++ b/public/pump-dashboard.css@@ -252,7 +252,7 @@ html.pump-dashboard-page body {.pd-status-chip .pd-dot.is-on {background: var(--pd-success);- box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.16);+ box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16);}.pd-status-chip .pd-dot.is-err {diff --git a/public/reputation/index.html b/public/reputation/index.htmlindex 8e1f6188a..507712063 100644--- a/public/reputation/index.html+++ b/public/reputation/index.html@@ -5,8 +5,8 @@<meta http-equiv="X-UA-Compatible" content="IE=edge" /><title>Agent Reputation — three.ws</title><meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />- <meta name="description" content="View and submit on-chain reviews for AI agents registered on three.ws." />- <meta name="theme-color" content="#0a0a0a" />+ <meta name="description" content="View and submit on-chain reviews for any AI agent or Ethereum address." />+ <meta name="theme-color" content="#09090f" /><!-- Importmap must parse before any module script or modulepreload link.Keep it as the first child of head so Vite's auto-injected@@ -36,495 +36,292 @@<style>/* ── Base ── */+ *, *::before, *::after { box-sizing: border-box; }body {- background: #0a0a0a;- color: #e5e5e5;+ background: #09090f;+ color: #e8e9f0;font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;- font-size: 16px;- line-height: 1.5;+ font-size: 15px;+ line-height: 1.55;overflow-y: auto;overflow-x: hidden;}+ h1,h2,h3 { font-family: 'Space Grotesk', -apple-system, sans-serif; font-weight: 700; letter-spacing: -0.03em; margin: 0; }+ a { color: #a78bfa; text-decoration: none; }+ a:hover { color: #c4b5fd; }+ button { font-family: inherit; }.rep-page-wrap {- max-width: 820px;+ max-width: 860px;margin: 0 auto;- padding: 2rem 1.5rem 4rem;+ padding: 2rem 1.5rem 5rem;min-height: 60vh;}- h1, h2, h3 {- font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;- font-weight: 600;- letter-spacing: -0.5px;- }- h1 { font-size: 2rem; }- h3 { font-size: 1.125rem; margin: 1.5rem 0 1rem; }- a { color: #a78bfa; text-decoration: none; }- a:hover { color: #c4b5fd; }-- /* ── Breadcrumb ── */- .rep-breadcrumb {- display: flex;- align-items: center;- gap: 0.5rem;- font-size: 0.8125rem;- color: rgba(229,229,229,0.45);- margin-bottom: 1.75rem;- }- .rep-breadcrumb a { color: rgba(229,229,229,0.45); }- .rep-breadcrumb a:hover { color: rgba(229,229,229,0.8); }- .rep-breadcrumb-sep { opacity: 0.4; }-- /* ── Header ── */- .rep-header {- display: flex;- align-items: flex-start;- justify-content: space-between;- gap: 1rem;- margin-bottom: 1.75rem;- padding-bottom: 1.5rem;- border-bottom: 1px solid rgba(255,255,255,0.06);- }- .rep-header-left { flex: 1 1 auto; }- .rep-header h1 { margin: 0 0 0.375rem 0; }- .rep-header-meta { color: rgba(229,229,229,0.55); font-size: 0.875rem; }-- .rep-header-actions {- display: flex;- gap: 0.5rem;- flex-shrink: 0;- align-items: flex-start;- }-- .rep-action-btn {- display: inline-flex;- align-items: center;- gap: 0.375rem;- padding: 0.45rem 0.85rem;- background: rgba(255,255,255,0.06);- border: 1px solid rgba(255,255,255,0.12);- border-radius: 6px;- color: rgba(229,229,229,0.7);- font-size: 0.8125rem;- font-weight: 500;- cursor: pointer;- transition: all 0.15s;- font-family: inherit;- text-decoration: none;- white-space: nowrap;- }- .rep-action-btn:hover { background: rgba(255,255,255,0.1); color: #e5e5e5; border-color: rgba(255,255,255,0.2); }- .rep-action-btn.copied { background: rgba(100,200,100,0.1); border-color: rgba(100,200,100,0.3); color: #86efac; }- .rep-tweet-btn:hover { background: rgba(255,255,255,0.08); color: #e5e5e5; }-- /* ── Stats ── */- .rep-stats {- display: grid;- grid-template-columns: repeat(3, 1fr);- gap: 1px;- margin-bottom: 2rem;- background: rgba(255,255,255,0.06);- border: 1px solid rgba(139,92,246,0.12);- border-radius: 10px;- overflow: hidden;- }- .rep-stat {- display: flex;- flex-direction: column;- gap: 0.35rem;- padding: 1.25rem 1.5rem;- background: rgba(139,92,246,0.03);- }- .rep-stat-label {- font-size: 0.6875rem;- text-transform: uppercase;- letter-spacing: 1.2px;- color: rgba(229,229,229,0.45);- font-weight: 700;- }- .rep-stat-value {- font-size: 2rem;- font-weight: 700;- color: #e5e5e5;- font-family: 'Space Grotesk', monospace;- line-height: 1;- }- .rep-stat-denom { font-size: 1rem; font-weight: 400; opacity: 0.5; }- .rep-stat-sub { font-size: 0.75rem; color: rgba(229,229,229,0.4); margin-top: 0.1rem; }- .rep-stars-stat { margin-top: 0.25rem; }-- /* ── Score meter ── */- .rep-score-meter {- height: 5px;- border-radius: 3px;- background: rgba(255,255,255,0.08);- overflow: hidden;- margin-top: 0.5rem;- }- .rep-score-meter-fill {- height: 100%;- border-radius: 3px;- transition: width 0.8s cubic-bezier(0.4,0,0.2,1);- }-- /* ── Stars SVG ── */- .rep-stars-row { display: inline-flex; gap: 2px; vertical-align: middle; }+ /* ── Stars ── */+ .rep-stars-row { display: inline-flex; gap: 2px; vertical-align: middle; line-height: 1; }.rep-star path { fill: currentColor; }.rep-star.filled { color: #fbbf24; }- .rep-star.empty { color: rgba(255,255,255,0.12); }-- /* ── Filter tabs ── */- .rep-filter-tabs {- display: flex;- gap: 0.25rem;- margin-bottom: 1.25rem;- border-bottom: 1px solid rgba(255,255,255,0.06);- padding-bottom: 0;- }- .rep-tab {- padding: 0.5rem 1rem;- background: none;- border: none;- border-bottom: 2px solid transparent;- color: rgba(229,229,229,0.5);- font-size: 0.875rem;- font-weight: 500;- cursor: pointer;- transition: all 0.15s;- font-family: inherit;- margin-bottom: -1px;- display: flex;- align-items: center;- gap: 0.4rem;- }- .rep-tab:hover { color: rgba(229,229,229,0.85); }- .rep-tab.active { color: #e5e5e5; border-bottom-color: #8b5cf6; }- .rep-tab-count {- font-size: 0.75rem;- background: rgba(255,255,255,0.08);- border-radius: 20px;- padding: 0.05rem 0.45rem;- font-weight: 600;- }- .rep-tab.active .rep-tab-count { background: rgba(139,92,246,0.25); color: #c4b5fd; }-- /* ── Reviews ── */- .rep-reviews { margin-bottom: 2rem; }- .rep-review-list { display: flex; flex-direction: column; gap: 0.75rem; }- .rep-empty { text-align: center; color: rgba(229,229,229,0.45); padding: 2.5rem 1rem; font-size: 0.9375rem; }-- .rep-review-item {- padding: 1rem 1.125rem;- background: rgba(255,255,255,0.02);- border: 1px solid rgba(255,255,255,0.06);- border-radius: 8px;- transition: background 0.15s, border-color 0.15s;- }- .rep-review-item:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }-- .rep-review-header {- display: flex;- justify-content: space-between;- align-items: center;- margin-bottom: 0.5rem;- gap: 0.75rem;- }- .rep-reviewer-info { display: flex; align-items: center; gap: 0.625rem; min-width: 0; }- .rep-reviewer {- font-size: 0.875rem;- font-weight: 500;- color: rgba(229,229,229,0.7);- font-family: 'JetBrains Mono', 'Courier New', monospace;- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;- }- .rep-review-right { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }- .rep-score-num { font-size: 0.75rem; color: rgba(229,229,229,0.35); font-family: 'Space Grotesk', monospace; }-- .rep-comment {- margin: 0.625rem 0;- color: rgba(229,229,229,0.8);- font-size: 0.9rem;- line-height: 1.65;- word-wrap: break-word;- white-space: pre-wrap;- }- .rep-review-footer {- display: flex;- gap: 0.75rem;- align-items: center;- font-size: 0.75rem;- color: rgba(229,229,229,0.3);- margin-top: 0.5rem;- }- .rep-review-footer a { color: rgba(167,139,250,0.7); }- .rep-review-footer a:hover { color: #a78bfa; }+ .rep-star.empty { color: rgba(255,255,255,0.1); }/* ── Identicon ── */.rep-identicon {- width: 28px;- height: 28px;border-radius: 50%;- background: hsl(var(--hue, 200), 50%, 35%);display: inline-flex;align-items: center;justify-content: center;- font-size: 0.625rem;- font-weight: 700;- color: rgba(255,255,255,0.9);+ font-size: 0.6rem;+ font-weight: 800;+ color: rgba(255,255,255,0.92);flex-shrink: 0;letter-spacing: 0;font-family: 'Space Grotesk', monospace;+ line-height: 1;}- /* ── Submit form ── */- .rep-submit-form {- margin-top: 2.5rem;- padding: 1.5rem;- background: rgba(139,92,246,0.04);- border: 1px solid rgba(139,92,246,0.1);- border-radius: 10px;- }- .rep-submit-form h3 { margin-top: 0; }-- .rep-form-group { margin-bottom: 1.5rem; }- .rep-form-group label {- display: block;- margin-bottom: 0.5rem;- font-weight: 500;- font-size: 0.875rem;- }- .rep-optional { font-weight: 400; color: rgba(229,229,229,0.4); font-size: 0.8125rem; }-- /* ── Star picker ── */- .rep-star-picker {- display: flex;- gap: 0.625rem;- flex-wrap: wrap;- }- .rep-star-pick {- display: flex;- flex-direction: column;+ /* ── Action buttons ── */+ .rep-action-btn {+ display: inline-flex;align-items: center;- gap: 0.375rem;- padding: 0.75rem 1rem;- background: rgba(255,255,255,0.04);+ gap: 0.35rem;+ padding: 0.4rem 0.75rem;+ background: rgba(255,255,255,0.05);border: 1px solid rgba(255,255,255,0.1);- border-radius: 8px;+ border-radius: 6px;+ color: rgba(232,233,240,0.65);+ font-size: 0.8rem;+ font-weight: 500;cursor: pointer;- transition: all 0.15s;- font-family: inherit;- flex: 1 1 80px;- min-width: 0;+ transition: background 0.15s, color 0.15s, border-color 0.15s;+ text-decoration: none;+ white-space: nowrap;}- .rep-star-pick:hover { background: rgba(251,191,36,0.07); border-color: rgba(251,191,36,0.25); }- .rep-star-pick.selected { background: rgba(251,191,36,0.1); border-color: rgba(251,191,36,0.4); }- .rep-star-label { font-size: 0.6875rem; color: rgba(229,229,229,0.5); font-weight: 500; white-space: nowrap; }- .rep-star-pick.selected .rep-star-label { color: #fbbf24; }+ .rep-action-btn:hover { background: rgba(255,255,255,0.09); color: #e8e9f0; border-color: rgba(255,255,255,0.18); }- textarea {- width: 100%;- padding: 0.75rem;- background: rgba(255,255,255,0.05);- border: 1px solid rgba(255,255,255,0.12);- border-radius: 6px;- color: #e5e5e5;- font-family: 'Inter', sans-serif;- font-size: 0.9375rem;- line-height: 1.5;- resize: vertical;+ /* ── Skeleton ── */+ @keyframes shimmer {+ 0% { background-position: -600px 0; }+ 100% { background-position: 600px 0; }}- textarea:focus { outline: none; background: rgba(255,255,255,0.08); border-color: rgba(139,92,246,0.35); }-- small { display: block; margin-top: 0.25rem; color: rgba(229,229,229,0.4); font-size: 0.75rem; }-- .rep-submit-btn {+ .rep-skel {+ border-radius: 6px;+ background: linear-gradient(90deg,rgba(255,255,255,0.04) 25%,rgba(255,255,255,0.09) 50%,rgba(255,255,255,0.04) 75%);+ background-size: 1200px 100%;+ animation: shimmer 1.5s infinite linear;+ }+ .rep-loading-header { margin-bottom: 2rem; }+ .rep-skel-lg { height: 2rem; width: 50%; margin-bottom: 0.75rem; }+ .rep-skel-sm { height: 0.85rem; width: 28%; }+ .rep-skel-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin: 1.5rem 0; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; overflow: hidden; }+ .rep-skel-stat { padding: 1.25rem 1.5rem; background: #0d0d15; }+ .rep-skel-val { height: 1.75rem; width: 55%; border-radius: 5px; margin-bottom: 0.5rem; }+ .rep-skel-lbl { height: 0.625rem; width: 75%; border-radius: 3px; }+ .rep-skel-cards { display: flex; flex-direction: column; gap: 0.625rem; }+ .rep-skel-card { padding: 1rem 1.25rem; border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; background: rgba(255,255,255,0.015); }+ .rep-skel-card-top { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 0.625rem; }+ .rep-skel-avatar { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }+ .rep-skel-name { height: 0.8rem; width: 130px; border-radius: 4px; }+ .rep-skel-body { height: 0.75rem; width: 80%; border-radius: 4px; }++ /* ── Search / landing ── */+ .rep-search-wrap { padding: 2rem 0 0; }+ .rep-search-hero { text-align: center; padding: 3rem 0 2.5rem; position: relative; }+ .rep-search-glow {+ position: absolute; inset: 0; pointer-events: none;+ background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(139,92,246,0.14) 0%, transparent 70%);+ }+ .rep-search-title { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.04em; background: linear-gradient(135deg, #e8e9f0 30%, rgba(139,92,246,0.8)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }+ .rep-search-sub { color: rgba(232,233,240,0.5); font-size: 1.0625rem; margin: 0.625rem 0 2rem; }++ .rep-search-form { max-width: 560px; margin: 0 auto 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }+ .rep-search-input-wrap { position: relative; }+ .rep-search-icon { position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%); color: rgba(232,233,240,0.3); pointer-events: none; }+ .rep-search-input {width: 100%;- padding: 0.875rem 1.5rem;- background: #8b5cf6;- border: 1px solid transparent;- color: #fff;- font-weight: 600;+ padding: 0.875rem 1rem 0.875rem 2.625rem;+ background: rgba(255,255,255,0.05);+ border: 1.5px solid rgba(255,255,255,0.1);+ border-radius: 10px;+ color: #e8e9f0;font-size: 0.9375rem;- border-radius: 6px;- cursor: pointer;- transition: all 0.15s;font-family: inherit;- }- .rep-submit-btn:hover:not(:disabled) { background: #7c3aed; }- .rep-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }-- .rep-form-hint { text-align: center; color: rgba(229,229,229,0.5); }- #rep-rating { display: none; }-- .rep-wallet-connected {- display: flex;- align-items: center;- gap: 0.625rem;- font-size: 0.875rem;- color: rgba(229,229,229,0.7);- margin-bottom: 1.25rem;+ transition: border-color 0.15s, background 0.15s;+ }+ .rep-search-input:focus { outline: none; border-color: rgba(139,92,246,0.5); background: rgba(255,255,255,0.07); }+ .rep-search-input::placeholder { color: rgba(232,233,240,0.3); }+ .rep-search-chain-row { display: flex; align-items: center; gap: 0.75rem; }+ .rep-chain-label { font-size: 0.8125rem; color: rgba(232,233,240,0.45); white-space: nowrap; flex-shrink: 0; }+ .rep-chain-select {+ flex: 1;padding: 0.625rem 0.875rem;- background: rgba(255,255,255,0.03);- border: 1px solid rgba(255,255,255,0.08);- border-radius: 6px;- }-- /* ── Feedback boxes ── */- .rep-error {- padding: 1.25rem 1.5rem;- background: rgba(255,80,80,0.06);- border: 1px solid rgba(255,80,80,0.2);- border-radius: 8px;- }- .rep-error h3 { margin: 0 0 0.5rem 0; color: rgba(255,200,200,0.9); }- .rep-error p { color: rgba(255,150,150,0.85); margin: 0; }- .rep-error button {- margin-top: 1rem;- padding: 0.5rem 1.25rem;- background: rgba(255,100,100,0.15);- border: 1px solid rgba(255,100,100,0.3);- color: #ffc8c8;- border-radius: 4px;- cursor: pointer;- font-weight: 500;- font-family: inherit;- }-- .rep-success {- display: flex;- align-items: center;- gap: 0.75rem;- padding: 1rem 1.25rem;- background: rgba(100,200,100,0.08);- border: 1px solid rgba(100,200,100,0.25);+ background: rgba(255,255,255,0.05);+ border: 1.5px solid rgba(255,255,255,0.09);border-radius: 8px;- color: #86efac;- font-size: 0.9375rem;- }- .rep-success a { color: #86efac; text-decoration: underline; text-underline-offset: 2px; }-- .rep-info-box {- padding: 0.75rem 1rem;- background: rgba(255,255,255,0.04);- border: 1px solid rgba(255,255,255,0.1);- border-radius: 6px;+ color: #e8e9f0;font-size: 0.875rem;- color: rgba(229,229,229,0.6);- }-- .rep-unsupported-chain {- padding: 2rem;- background: rgba(255,200,50,0.05);- border: 1px solid rgba(255,200,50,0.15);- border-radius: 8px;- }-- /* ── Lookup form ── */- .rep-lookup-wrap {- display: flex;- flex-direction: column;- align-items: center;- padding: 3rem 0 2rem;- text-align: center;- }- .rep-lookup-wrap h1 { margin-bottom: 0.5rem; }- .rep-lookup-sub { color: rgba(229,229,229,0.5); font-size: 0.9375rem; margin-bottom: 2rem; }-- .rep-lookup-form {- width: 100%;- max-width: 420px;- padding: 2rem;- background: rgba(139,92,246,0.04);- border: 1px solid rgba(139,92,246,0.12);- border-radius: 10px;- text-align: left;- }- .rep-lookup-form select,- .rep-lookup-form input[type="number"] {- width: 100%;- padding: 0.75rem;- background: rgba(255,255,255,0.05);- border: 1px solid rgba(255,255,255,0.12);- border-radius: 6px;- color: #e5e5e5;- font-family: 'Inter', sans-serif;- font-size: 0.9375rem;+ font-family: inherit;+ cursor: pointer;appearance: none;- -webkit-appearance: none;- }- .rep-lookup-form select {- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='rgba(229,229,229,0.4)' d='M6 8L0 0h12z'/%3E%3C/svg%3E");- background-repeat: no-repeat;- background-position: right 0.75rem center;- padding-right: 2rem;- }- .rep-lookup-form select:focus,- .rep-lookup-form input[type="number"]:focus {- outline: none;- background-color: rgba(255,255,255,0.08);- border-color: rgba(139,92,246,0.4);- }- .rep-lookup-form label { color: rgba(229,229,229,0.7); display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.875rem; }-- /* ── Skeleton ── */- @keyframes shimmer {- 0% { background-position: -400px 0; }- 100% { background-position: 400px 0; }- }- .rep-skel {- background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);- background-size: 800px 100%;- animation: shimmer 1.4s infinite linear;- border-radius: 4px;}- .rep-skel-header { margin-bottom: 1.75rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.06); }- .rep-skel-title { height: 2.2rem; width: 55%; border-radius: 6px; margin-bottom: 0.625rem; }- .rep-skel-meta { height: 0.875rem; width: 30%; border-radius: 4px; }-- .rep-skel-stats {- display: grid;- grid-template-columns: repeat(3, 1fr);- gap: 1px;- margin-bottom: 2rem;- border: 1px solid rgba(255,255,255,0.06);+ .rep-chain-select:focus { outline: none; border-color: rgba(139,92,246,0.45); }+ .rep-search-btn {+ padding: 0.875rem;+ background: #7c3aed;+ border: none;border-radius: 10px;- overflow: hidden;- }- .rep-skel-stat { padding: 1.25rem 1.5rem; background: rgba(139,92,246,0.03); }- .rep-skel-stat-val { height: 2rem; width: 60%; border-radius: 5px; margin-bottom: 0.5rem; }- .rep-skel-stat-lbl { height: 0.625rem; width: 80%; border-radius: 3px; }-- .rep-skel-reviews { display: flex; flex-direction: column; gap: 0.75rem; }- .rep-skeleton-card {- padding: 1rem 1.125rem;- border: 1px solid rgba(255,255,255,0.06);- border-radius: 8px;- display: flex;- flex-direction: column;- gap: 0.625rem;+ color: #fff;+ font-size: 0.9375rem;+ font-weight: 600;+ cursor: pointer;+ transition: background 0.15s;+ }+ .rep-search-btn:hover { background: #6d28d9; }++ .rep-search-examples { display: flex; align-items: center; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-top: 0.75rem; }+ .rep-examples-label { font-size: 0.8125rem; color: rgba(232,233,240,0.35); }+ .rep-example-chip {+ padding: 0.3rem 0.65rem;+ background: rgba(139,92,246,0.08);+ border: 1px solid rgba(139,92,246,0.2);+ border-radius: 999px;+ color: rgba(167,139,250,0.85);+ font-size: 0.8rem;+ cursor: pointer;+ transition: background 0.15s, color 0.15s;+ font-family: inherit;}- .rep-skel-row { display: flex; align-items: center; gap: 0.625rem; }- .rep-skel-avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }- .rep-skel-name { height: 0.875rem; width: 140px; border-radius: 4px; }- .rep-skel-badge { height: 1.25rem; width: 60px; border-radius: 20px; margin-left: auto; }- .rep-skel-line { height: 0.8125rem; border-radius: 4px; }+ .rep-example-chip:hover { background: rgba(139,92,246,0.14); color: #c4b5fd; }++ .rep-info-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 2.5rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; overflow: hidden; }+ .rep-info-card { padding: 1.25rem 1.5rem; background: #0c0c14; display: flex; align-items: flex-start; gap: 0.875rem; }+ .rep-info-card svg { flex-shrink: 0; margin-top: 2px; }+ .rep-info-card strong { font-size: 0.9375rem; display: block; margin-bottom: 0.25rem; }+ .rep-info-card p { font-size: 0.8125rem; color: rgba(232,233,240,0.5); margin: 0; line-height: 1.5; }++ /* ── Profile ── */+ .rep-profile { display: flex; flex-direction: column; gap: 1.75rem; }+ .rep-profile-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.06); }+ .rep-profile-identity { display: flex; align-items: flex-start; gap: 1rem; min-width: 0; }+ .rep-ens-name { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }+ .rep-address-display { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; }+ .rep-address-code { font-size: 0.8rem; color: rgba(232,233,240,0.5); font-family: 'JetBrains Mono', ui-monospace, monospace; overflow-wrap: break-word; word-break: break-all; }+ .rep-copy-addr { background: none; border: none; color: rgba(232,233,240,0.35); cursor: pointer; padding: 0 0.25rem; transition: color 0.15s; flex-shrink: 0; }+ .rep-copy-addr:hover { color: rgba(232,233,240,0.8); }+ .rep-profile-meta { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }+ .rep-agent-tag { font-size: 0.75rem; padding: 0.2rem 0.6rem; background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.25); border-radius: 999px; color: #a78bfa; }+ .rep-explorer-link { font-size: 0.75rem; color: rgba(232,233,240,0.4); }+ .rep-explorer-link:hover { color: #a78bfa; }+ .rep-profile-actions { display: flex; gap: 0.5rem; flex-shrink: 0; flex-wrap: wrap; }++ /* ── Stats grid ── */+ .rep-stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; overflow: hidden; }+ .rep-stat-card { padding: 1.375rem 1.5rem; background: #0c0c14; display: flex; flex-direction: column; gap: 0.375rem; }+ .rep-stat-label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 1.1px; color: rgba(232,233,240,0.4); font-weight: 700; }+ .rep-stat-value { font-size: 2.25rem; font-weight: 800; line-height: 1; font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.04em; }+ .rep-stat-denom { font-size: 1rem; font-weight: 400; opacity: 0.35; }+ .rep-stat-sub { font-size: 0.75rem; color: rgba(232,233,240,0.35); }+ .rep-stars-display { margin-top: 0.25rem; }+ .rep-no-data { font-size: 0.8125rem; color: rgba(232,233,240,0.25); font-style: italic; }++ /* ── Distribution bar ── */+ .rep-dist-mini { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.25rem; }+ .rep-dist-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.6875rem; }+ .rep-dist-bar-wrap { flex: 1; height: 5px; background: rgba(255,255,255,0.07); border-radius: 3px; overflow: hidden; }+ .rep-dist-bar-fill { height: 100%; background: #7c3aed; border-radius: 3px; transition: width 0.6s ease; }+ .rep-dist-num { color: rgba(232,233,240,0.4); min-width: 16px; text-align: right; }++ /* ── ERC-8004 badge ── */+ .rep-erc8004-badge { display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1rem; background: rgba(139,92,246,0.06); border: 1px solid rgba(139,92,246,0.15); border-radius: 8px; font-size: 0.8125rem; color: rgba(232,233,240,0.6); }+ .rep-erc8004-link { color: #a78bfa; margin-left: auto; }++ /* ── Reviews section ── */+ .rep-reviews-section { display: flex; flex-direction: column; gap: 1rem; }+ .rep-tabs { display: flex; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 0; }+ .rep-tab { padding: 0.5rem 1rem; background: none; border: none; border-bottom: 2px solid transparent; color: rgba(232,233,240,0.45); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: color 0.15s; margin-bottom: -1px; display: flex; align-items: center; gap: 0.4rem; font-family: inherit; }+ .rep-tab:hover { color: rgba(232,233,240,0.8); }+ .rep-tab.active { color: #e8e9f0; border-bottom-color: #7c3aed; }+ .rep-tab-badge { font-size: 0.7rem; background: rgba(255,255,255,0.07); border-radius: 20px; padding: 0.05rem 0.4rem; font-weight: 600; }+ .rep-tab.active .rep-tab-badge { background: rgba(124,58,237,0.25); color: #c4b5fd; }++ .rep-review-list { display: flex; flex-direction: column; gap: 0.625rem; margin-top: 0.5rem; }+ .rep-review-card { padding: 1rem 1.125rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; transition: background 0.15s, border-color 0.15s; }+ .rep-review-card:hover { background: rgba(255,255,255,0.035); border-color: rgba(255,255,255,0.1); }+ .rep-review-top { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }+ .rep-reviewer-row { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }+ .rep-reviewer-addr { font-size: 0.8rem; font-family: 'JetBrains Mono', ui-monospace, monospace; color: rgba(232,233,240,0.55); }+ .rep-review-meta-right { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }+ .rep-score-badge { font-size: 0.7rem; color: rgba(232,233,240,0.3); font-family: 'Space Grotesk', monospace; }+ .rep-review-comment { margin: 0.625rem 0 0; font-size: 0.875rem; color: rgba(232,233,240,0.75); line-height: 1.6; word-wrap: break-word; white-space: pre-wrap; }+ .rep-review-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 0.625rem; font-size: 0.75rem; color: rgba(232,233,240,0.25); }+ .rep-review-links { display: flex; gap: 0.75rem; }+ .rep-review-links a { color: rgba(167,139,250,0.6); }+ .rep-review-links a:hover { color: #a78bfa; }++ /* ── Empty state ── */+ .rep-empty-state { text-align: center; padding: 3rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.875rem; }+ .rep-empty-state p { color: rgba(232,233,240,0.4); margin: 0; font-size: 0.9375rem; }++ /* ── Submit card ── */+ .rep-submit-card { padding: 1.75rem; background: rgba(124,58,237,0.04); border: 1px solid rgba(124,58,237,0.12); border-radius: 12px; }+ .rep-submit-header { margin-bottom: 1.5rem; }+ .rep-submit-title { font-size: 1.125rem; margin-bottom: 0.25rem; }+ .rep-submit-sub { font-size: 0.8125rem; color: rgba(232,233,240,0.4); margin: 0.25rem 0 0; }++ .rep-connect-btn { width: 100%; padding: 0.875rem; background: rgba(124,58,237,0.12); border: 1.5px dashed rgba(124,58,237,0.3); border-radius: 10px; color: #a78bfa; font-size: 0.9375rem; font-weight: 600; cursor: pointer; transition: background 0.15s; display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: inherit; }+ .rep-connect-btn:hover { background: rgba(124,58,237,0.18); }+ .rep-connect-btn:disabled { opacity: 0.5; cursor: not-allowed; }++ .rep-wallet-info { margin-bottom: 1.25rem; }+ .rep-connected-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.875rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: 8px; font-size: 0.875rem; color: rgba(232,233,240,0.7); }+ .rep-chain-tag { font-size: 0.7rem; padding: 0.15rem 0.5rem; background: rgba(34,209,122,0.1); border: 1px solid rgba(34,209,122,0.2); border-radius: 999px; color: #22d17a; }++ .rep-form-section { margin-bottom: 1.25rem; }+ .rep-form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.625rem; color: rgba(232,233,240,0.85); }+ .rep-optional { font-weight: 400; color: rgba(232,233,240,0.35); font-size: 0.8125rem; }++ .rep-star-picker { display: grid; grid-template-columns: repeat(5,1fr); gap: 0.5rem; }+ .rep-star-btn { display: flex; flex-direction: column-reverse; align-items: center; gap: 0.375rem; padding: 0.75rem 0.5rem; background: rgba(255,255,255,0.03); border: 1.5px solid rgba(255,255,255,0.08); border-radius: 8px; cursor: pointer; transition: background 0.15s, border-color 0.15s; }+ .rep-star-btn:hover { background: rgba(251,191,36,0.06); border-color: rgba(251,191,36,0.2); }+ .rep-star-btn.selected { background: rgba(251,191,36,0.09); border-color: rgba(251,191,36,0.35); }+ .rep-star-btn-label { font-size: 0.625rem; color: rgba(232,233,240,0.4); font-weight: 500; white-space: nowrap; text-align: center; }+ .rep-star-btn.selected .rep-star-btn-label { color: #fbbf24; }++ .rep-textarea { width: 100%; padding: 0.75rem; background: rgba(255,255,255,0.04); border: 1.5px solid rgba(255,255,255,0.09); border-radius: 8px; color: #e8e9f0; font-family: inherit; font-size: 0.9375rem; line-height: 1.55; resize: vertical; transition: border-color 0.15s; }+ .rep-textarea:focus { outline: none; border-color: rgba(124,58,237,0.45); background: rgba(255,255,255,0.06); }+ .rep-char-count { font-size: 0.75rem; color: rgba(232,233,240,0.3); text-align: right; margin-top: 0.375rem; }++ .rep-form-status { padding: 0.75rem 1rem; border-radius: 7px; font-size: 0.875rem; margin-bottom: 0.75rem; }+ .rep-form-status--info { background: rgba(61,193,255,0.07); border: 1px solid rgba(61,193,255,0.2); color: #9ad4ff; }+ .rep-form-status--error { background: rgba(255,90,90,0.07); border: 1px solid rgba(255,90,90,0.2); color: #fca5a5; }++ .rep-submit-btn-primary { width: 100%; padding: 0.875rem; background: #7c3aed; border: none; border-radius: 9px; color: #fff; font-size: 0.9375rem; font-weight: 700; cursor: pointer; transition: background 0.15s; font-family: inherit; }+ .rep-submit-btn-primary:hover:not(:disabled) { background: #6d28d9; }+ .rep-submit-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }+ .rep-submit-note { font-size: 0.8rem; color: rgba(232,233,240,0.35); margin: 0.75rem 0 0; text-align: center; }+ .rep-submit-note a { color: rgba(167,139,250,0.7); }++ .rep-success-card { display: flex; align-items: flex-start; gap: 0.875rem; padding: 1rem 1.25rem; background: rgba(34,209,122,0.07); border: 1px solid rgba(34,209,122,0.2); border-radius: 9px; }+ .rep-success-card strong { display: block; color: #22d17a; margin-bottom: 0.25rem; }+ .rep-success-links { display: flex; gap: 1rem; }+ .rep-success-links a { font-size: 0.8125rem; color: rgba(34,209,122,0.8); }++ /* ── Error ── */+ .rep-error-card { padding: 1.75rem; background: rgba(255,90,90,0.06); border: 1px solid rgba(255,90,90,0.15); border-radius: 12px; }+ .rep-error-card strong { color: rgba(252,165,165,0.9); display: block; margin-bottom: 0.5rem; font-size: 1.0625rem; }+ .rep-error-card p { color: rgba(252,165,165,0.7); margin: 0 0 1rem; }+ .rep-back-link { font-size: 0.875rem; color: rgba(167,139,250,0.8); }/* ── Responsive ── */- @media (max-width: 640px) {- .rep-page-wrap { padding: 1.25rem 1rem 3rem; }- .rep-stats { grid-template-columns: 1fr 1fr; }- .rep-stat:last-child { grid-column: span 2; }- .rep-stat { padding: 1rem; }- .rep-stat-value { font-size: 1.5rem; }- .rep-header { flex-direction: column; gap: 0.75rem; }- .rep-header-actions { align-self: flex-start; }- .rep-review-header { flex-wrap: wrap; }- .rep-star-picker { gap: 0.375rem; }- .rep-star-pick { padding: 0.625rem 0.625rem; flex: 1 1 60px; }- .rep-star-label { display: none; }+ @media (max-width: 680px) {+ .rep-search-title { font-size: 1.875rem; }+ .rep-stats-grid { grid-template-columns: 1fr 1fr; }+ .rep-stat-card:last-child { grid-column: span 2; }+ .rep-info-cards { grid-template-columns: 1fr; }+ .rep-profile-header { flex-direction: column; }+ .rep-star-picker { grid-template-columns: repeat(5,1fr); gap: 0.25rem; }+ .rep-star-btn-label { display: none; }+ .rep-page-wrap { padding: 1.5rem 1rem 4rem; }+ .rep-stat-value { font-size: 1.75rem; }}</style></head>@@ -641,6 +438,7 @@<div class="h-footer-link-col"><h4 class="h-footer-link-heading">Resources</h4><a href="/dashboard">Dashboard</a>+ <a href="/reputation">Reputation</a></div></nav></div>diff --git a/public/reputation/reputation.js b/public/reputation/reputation.jsindex 7babf4645..19c442df7 100644--- a/public/reputation/reputation.js+++ b/public/reputation/reputation.js@@ -597,7 +597,7 @@ function showSearchForm(appEl) {<div class="rep-info-cards"><div class="rep-info-card">- <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#8b5cf6" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>+ <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#ffffff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg><div><strong>On-chain reviews</strong><p>Attestations are signed transactions — permanent, public, and tamper-proof.</p>@@ -779,7 +779,7 @@ async function renderProfile(appEl, { address, chainId }) {${erc8004Rep && erc8004Rep.count > 0 ? `<div class="rep-erc8004-badge">- <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#8b5cf6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>ERC-8004 registry: ${erc8004Rep.count} vote${erc8004Rep.count !== 1 ? 's' : ''} · avg ${erc8004Rep.average.toFixed(1)}/100<a href="/reputation?agent=${chainId}:${agentId}" class="rep-erc8004-link">View ERC-8004 ↗</a></div>diff --git a/public/studio/studio.js b/public/studio/studio.jsindex 061bdeb75..a603c9dec 100644--- a/public/studio/studio.js+++ b/public/studio/studio.js@@ -83,7 +83,7 @@ const DEMO_WIDGET_IDS = Object.freeze({const BRAND_DEFAULTS = Object.freeze({background: '#0a0a0a',- accent: '#8b5cf6',+ accent: '#ffffff',caption: '',showControls: true,autoRotate: true,diff --git a/public/style.css b/public/style.cssindex 4f8643691..c5b455741 100644--- a/public/style.css+++ b/public/style.css@@ -220,7 +220,7 @@ body {background: linear-gradient(90deg,rgba(167, 139, 250, 0.9),- rgba(139, 92, 246, 0.9)+ rgba(255, 255, 255, 0.9));border-radius: inherit;transition: width 0.18s ease-out;@@ -280,8 +280,8 @@ body {/* Drag-over highlight — lifts when a file is hovering anywhere on the page */body.is-dragover .dropzone {- background: linear-gradient(180deg, rgba(139, 92, 246, 0.16), rgba(139, 92, 246, 0.08));- border-top-color: rgba(139, 92, 246, 0.5);+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));+ border-top-color: rgba(255, 255, 255, 0.5);}.placeholder {@@ -400,8 +400,8 @@ header h1 .wordmark-dot {width: 8px;height: 8px;border-radius: 50%;- background: linear-gradient(135deg, #a78bfa 0%, #6366f1 100%);- box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);+ background: #ffffff;+ box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);display: inline-block;}@@ -453,7 +453,7 @@ header h1 .wordmark-logo {width: 18px;height: 2px;border-radius: 2px;- background: linear-gradient(90deg, #a78bfa, #6366f1);+ background: #ffffff;}.nav-sign-in {@@ -623,7 +623,7 @@ header h1 .wordmark-logo {.gui-toggle--active {color: #fff;background: var(--accent-soft);- border-color: rgba(139, 92, 246, 0.45);+ border-color: rgba(255, 255, 255, 0.45);}.gui-toggle__label {@@ -666,7 +666,7 @@ header h1 .wordmark-logo {.ar-btn--active {color: #fff;background: var(--accent-soft);- border-color: rgba(139, 92, 246, 0.45);+ border-color: rgba(255, 255, 255, 0.45);}.ar-btn__label {@@ -1071,7 +1071,7 @@ footer .separator {border: 2px solid rgba(255, 255, 255, 0.08);border-top-color: rgba(167, 139, 250, 0.9);border-right-color: rgba(167, 139, 250, 0.4);- box-shadow: 0 0 24px rgba(139, 92, 246, 0.25);+ box-shadow: 0 0 24px rgba(255, 255, 255, 0.25);-webkit-animation: sk-spin 0.9s linear infinite;animation: sk-spin 0.9s linear infinite;}@@ -1173,8 +1173,8 @@ footer .separator {}.price-free {- color: #a7f3d0;- background-color: rgba(52, 211, 153, 0.1);+ color: #e0e0e0;+ background-color: rgba(255, 255, 255, 0.1);}.price-paid {@@ -1194,8 +1194,8 @@ footer .separator {}.price-free {- color: #a7f3d0;- background-color: rgba(52, 211, 153, 0.1);+ color: #e0e0e0;+ background-color: rgba(255, 255, 255, 0.1);}.price-paid {@@ -1590,7 +1590,7 @@ body.explore-page {body.deploy-page {background:radial-gradient(900px 500px at 80% -10%, rgba(99, 102, 241, 0.12), transparent 60%),- radial-gradient(700px 400px at 10% 5%, rgba(139, 92, 246, 0.10), transparent 60%),+ radial-gradient(700px 400px at 10% 5%, rgba(255, 255, 255, 0.10), transparent 60%),#070710;}@@ -2417,8 +2417,8 @@ body.deploy-page {letter-spacing: 0.06em;text-transform: uppercase;color: rgba(255, 255, 255, 0.7);- background: rgba(139, 92, 246, 0.12);- border: 1px solid rgba(139, 92, 246, 0.35);+ background: rgba(255, 255, 255, 0.12);+ border: 1px solid rgba(255, 255, 255, 0.35);border-radius: 999px;}@@ -2426,7 +2426,7 @@ body.deploy-page {width: 6px;height: 6px;border-radius: 50%;- background: #a78bfa;+ background: #ffffff;box-shadow: 0 0 12px rgba(167, 139, 250, 0.9);}@@ -2554,7 +2554,7 @@ body.deploy-page {width: 100%;aspect-ratio: 1;margin-bottom: var(--space-sm);- background: radial-gradient(60% 60% at 50% 40%, rgba(139, 92, 246, 0.18), rgba(0, 0, 0, 0));+ background: radial-gradient(60% 60% at 50% 40%, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0));border: 1px solid rgba(255, 255, 255, 0.07);border-radius: 12px;overflow: hidden;@@ -2746,10 +2746,10 @@ body.deploy-page {}.deploy-step--active .erc8004-step-num {- background: linear-gradient(135deg, #8b5cf6, #6366f1) !important;- border-color: rgba(139, 92, 246, 0.8);- color: #fff;- box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);+ background: linear-gradient(135deg, #ffffff, #ffffff) !important;+ border-color: rgba(255, 255, 255, 0.8);+ color: #000000;+ box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);}.deploy-step--done .erc8004-step-num {@@ -2800,9 +2800,9 @@ body.deploy-page {}.deploy-wizard .erc8004-input:focus {- border-color: rgba(139, 92, 246, 0.55);+ border-color: rgba(255, 255, 255, 0.55);background: rgba(255, 255, 255, 0.05);- box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);+ box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);}.deploy-wizard .erc8004-wizard-nav {@@ -2814,14 +2814,14 @@ body.deploy-page {.deploy-wizard .erc8004-btn--primary {padding: 10px 18px;font-weight: 500;- background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(99, 102, 241, 0.8));- border-color: rgba(139, 92, 246, 0.6);+ background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(99, 102, 241, 0.8));+ border-color: rgba(255, 255, 255, 0.6);box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);}.deploy-wizard .erc8004-btn--primary:hover:not(:disabled) {- background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(99, 102, 241, 0.95));- border-color: rgba(139, 92, 246, 0.75);+ background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(99, 102, 241, 0.95));+ border-color: rgba(255, 255, 255, 0.75);}@media (max-width: 900px) {@@ -2980,12 +2980,12 @@ body.deploy-page {width: 100%;justify-content: center;padding: var(--space-sm) var(--space-md);- background: rgba(139, 92, 246, 0.25);- border-color: rgba(139, 92, 246, 0.45);+ background: rgba(255, 255, 255, 0.25);+ border-color: rgba(255, 255, 255, 0.45);}.erc8004-btn--register:hover:not(:disabled) {- background: rgba(139, 92, 246, 0.45);+ background: rgba(255, 255, 255, 0.45);}.erc8004-btn--view {@@ -3136,7 +3136,7 @@ body.deploy-page {}.erc8004-btn--primary {- background: rgba(139, 92, 246, 0.35);+ background: rgba(255, 255, 255, 0.35);border-color: rgba(99, 102, 241, 0.5);}@@ -3613,7 +3613,7 @@ body.deploy-page {align-items: center;gap: var(--space-xs);padding: var(--space-sm) var(--space-md);- background: linear-gradient(180deg, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0.1));+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.1));border: 1px solid rgba(167, 139, 250, 0.42);border-radius: var(--radius-md);color: #fff;@@ -3632,7 +3632,7 @@ body.deploy-page {}.create-avatar-btn:hover {- background: linear-gradient(180deg, rgba(139, 92, 246, 0.36), rgba(139, 92, 246, 0.16));+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.16));border-color: rgba(167, 139, 250, 0.7);}@@ -4376,7 +4376,7 @@ body[data-viewer-mode='explore'] #layout-switch {}.agent-timeline-empty-icon {- color: rgba(139, 92, 246, 0.4);+ color: rgba(255, 255, 255, 0.4);margin-bottom: 2px;}@@ -4819,7 +4819,7 @@ body[data-viewer-mode='explore'] #layout-switch {.anim-btn--active .anim-btn__key {color: #fff;- background: rgba(139, 92, 246, 0.35);+ background: rgba(255, 255, 255, 0.35);}.anim-btn:hover:not(:disabled) {@@ -4830,13 +4830,13 @@ body[data-viewer-mode='explore'] #layout-switch {.anim-btn--active {background: var(--accent-soft);- border-color: rgba(139, 92, 246, 0.5);+ border-color: rgba(255, 255, 255, 0.5);color: #fff;- box-shadow: 0 0 16px rgba(139, 92, 246, 0.18);+ box-shadow: 0 0 16px rgba(255, 255, 255, 0.18);}.anim-btn--active:hover {- background: rgba(139, 92, 246, 0.28);+ background: rgba(255, 255, 255, 0.28);}.anim-btn--loading {@@ -5452,7 +5452,7 @@ body[data-viewer-mode='main'][data-authed='false'] .auth-gate {box-shadow:0 20px 50px rgba(0, 0, 0, 0.55),0 1px 0 rgba(255, 255, 255, 0.04) inset,- 0 -40px 80px -40px rgba(139, 92, 246, 0.35) inset;+ 0 -40px 80px -40px rgba(255, 255, 255, 0.35) inset;color: rgba(255, 255, 255, 0.92);overflow: hidden;}@@ -5553,18 +5553,18 @@ body[data-viewer-mode='main'][data-authed='false'] .auth-gate {}.agent-onboarding__btn--primary {- background: linear-gradient(180deg, rgba(139, 92, 246, 0.95), rgba(124, 58, 237, 0.95));- border-color: rgba(167, 139, 250, 0.7);- color: #fff;+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95));+ border-color: rgba(255, 255, 255, 0.7);+ color: #000000;box-shadow:- 0 4px 14px rgba(139, 92, 246, 0.32),+ 0 4px 14px rgba(255, 255, 255, 0.32),0 1px 0 rgba(255, 255, 255, 0.15) inset;}.agent-onboarding__btn--primary:hover {- background: linear-gradient(180deg, rgba(151, 109, 255, 1), rgba(139, 92, 246, 1));- border-color: rgba(167, 139, 250, 0.9);- color: #fff;+ background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 1));+ border-color: rgba(255, 255, 255, 0.9);+ color: #000000;}@media (max-width: 700px) {@@ -5587,7 +5587,7 @@ body[data-viewer-mode='main'][data-authed='false'] .auth-gate {box-shadow:0 20px 60px rgba(0, 0, 0, 0.55),0 1px 0 rgba(255, 255, 255, 0.05) inset,- 0 -20px 40px -20px rgba(139, 92, 246, 0.25) inset;+ 0 -20px 40px -20px rgba(255, 255, 255, 0.25) inset;overflow: hidden;}@@ -5612,8 +5612,8 @@ body[data-viewer-mode='main'][data-authed='false'] .auth-gate {margin-bottom: var(--space-sm);padding: 0.18rem 0.5rem;border-radius: 999px;- background: rgba(139, 92, 246, 0.1);- border: 1px solid rgba(139, 92, 246, 0.25);+ background: rgba(255, 255, 255, 0.1);+ border: 1px solid rgba(255, 255, 255, 0.25);}.auth-gate__lock {@@ -6081,7 +6081,7 @@ body[data-viewer-mode='main'][data-authed='false'] .auth-gate {padding: 6px 14px;border-radius: 20px;background: rgba(99, 102, 241, 0.15);- border: 1px solid rgba(139, 92, 246, 0.35);+ border: 1px solid rgba(255, 255, 255, 0.35);color: #a5b4fc;font-size: 12px;font-weight: 500;@@ -6106,7 +6106,7 @@ body[data-viewer-mode='main'][data-authed='false'] .auth-gate {}.erc8004-hero-accent {- background: linear-gradient(90deg, #6366f1, #a78bfa);+ background: #ffffff;-webkit-background-clip: text;background-clip: text;color: transparent;@@ -6265,7 +6265,7 @@ body[data-viewer-mode='main'][data-authed='false'] .auth-gate {.erc8004-progress-fill {height: 100%;- background: linear-gradient(90deg, #6366f1, #a78bfa);+ background: #ffffff;transition: width 0.3s;width: 0;}@@ -6357,8 +6357,8 @@ body[data-viewer-mode='main'][data-authed='false'] .auth-gate {align-items: flex-start;gap: var(--space-sm);padding: var(--space-sm) var(--space-md);- background: rgba(139, 92, 246, 0.08);- border: 1px solid rgba(139, 92, 246, 0.25);+ background: rgba(255, 255, 255, 0.08);+ border: 1px solid rgba(255, 255, 255, 0.25);border-radius: var(--radius-md);font-size: var(--text-sm);color: #fff;@@ -6514,7 +6514,7 @@ body[data-viewer-mode='main'][data-authed='false'] .auth-gate {.erc8004-export-opt:hover {background: rgba(99, 102, 241, 0.1);- border-color: rgba(139, 92, 246, 0.35);+ border-color: rgba(255, 255, 255, 0.35);}.erc8004-export-emoji {@@ -6626,7 +6626,7 @@ body[data-viewer-mode='main'][data-authed='false'] .auth-gate {}.erc8004-embed-tabs .erc8004-tab.is-active {color: #fff;- border-bottom-color: var(--accent, #8b5cf6);+ border-bottom-color: var(--accent, #ffffff);}.erc8004-embed-panels {padding: var(--space-md) 0;@@ -7084,9 +7084,9 @@ textarea.erc8004-code {border-color: rgba(255, 255, 255, 0.12);}.explore-badge--avatar {- background: rgba(139, 92, 246, 0.15);+ background: rgba(255, 255, 255, 0.15);color: #c4b5fd;- border-color: rgba(139, 92, 246, 0.4);+ border-color: rgba(255, 255, 255, 0.4);}.explore-card-desc {margin: 0;@@ -7952,13 +7952,13 @@ body[data-layout='next'] .next-drawer__body .dg.main {border-color: rgba(255, 255, 255, 0.18);}.next-icon-btn:focus-visible {- outline: 2px solid rgba(139, 92, 246, 0.6);+ outline: 2px solid rgba(255, 255, 255, 0.6);outline-offset: 2px;}.next-icon-btn--active {- background: rgba(139, 92, 246, 0.22);+ background: rgba(255, 255, 255, 0.22);color: #fff;- border-color: rgba(139, 92, 246, 0.5);+ border-color: rgba(255, 255, 255, 0.5);}.next-icon-btn--has-actions::after {content: '';@@ -8409,8 +8409,8 @@ body[data-layout='next'] .next-chrome::after {border-color: rgba(255, 255, 255, 0.14);}.next-grid__item--active {- background: rgba(139, 92, 246, 0.2);- border-color: rgba(139, 92, 246, 0.5);+ background: rgba(255, 255, 255, 0.2);+ border-color: rgba(255, 255, 255, 0.5);color: #fff;}.next-grid__icon {diff --git a/public/tutorials-manifest.js b/public/tutorials-manifest.jsindex 70edde3f2..67a91e7b5 100644--- a/public/tutorials-manifest.js+++ b/public/tutorials-manifest.js@@ -261,17 +261,17 @@label: 'Easy',eyebrow: 'No-code · 5–10 min',blurb: 'Copy-paste and click. Zero code. If you can edit an HTML file (or use a CMS), you can do these.',- accent: '#34d399',- accentSoft: 'rgba(52, 211, 153, 0.16)',- accentBorder: 'rgba(52, 211, 153, 0.32)',+ accent: '#ffffff',+ accentSoft: 'rgba(255, 255, 255, 0.16)',+ accentBorder: 'rgba(255, 255, 255, 0.32)',},middle: {label: 'Middle',eyebrow: 'HTML & JS · 15–40 min',blurb: 'You write some code. Comfortable with HTML and a bit of JavaScript? Start here.',- accent: '#a78bfa',- accentSoft: 'rgba(167, 139, 250, 0.16)',- accentBorder: 'rgba(167, 139, 250, 0.32)',+ accent: '#cccccc',+ accentSoft: 'rgba(255, 255, 255, 0.16)',+ accentBorder: 'rgba(255, 255, 255, 0.32)',},advanced: {label: 'Advanced',diff --git a/public/wallet-connect.css b/public/wallet-connect.cssindex c33164ac9..6cb92ea45 100644--- a/public/wallet-connect.css+++ b/public/wallet-connect.css@@ -26,7 +26,7 @@.cwb-btn:hover:not(:disabled) {background: #22222e;- border-color: #6a5cff;+ border-color: #ffffff;}.cwb-btn:disabled {diff --git a/public/widgets-gallery/gallery.js b/public/widgets-gallery/gallery.jsindex cbf129974..0d3e7cd72 100644--- a/public/widgets-gallery/gallery.js+++ b/public/widgets-gallery/gallery.js@@ -190,7 +190,7 @@ function renderShowcase(w) {// Customizer state — mutated by inputs, read by snippet + iframe builders.const state = {size: 'M',- accent: TYPE_COLORS[w.type] || '#8b5cf6',+ accent: TYPE_COLORS[w.type] || '#ffffff',mint:w.type === 'live-trades-canvas'? 'So11111111111111111111111111111111111111112'@@ -491,7 +491,7 @@ function renderShowcase(w) {resetBtn.textContent = 'Reset';resetBtn.addEventListener('click', () => {state.size = 'M';- state.accent = TYPE_COLORS[w.type] || '#8b5cf6';+ state.accent = TYPE_COLORS[w.type] || '#ffffff';state.mint = defaultMint(w.type);state.kind = 'all';accentInput.value = state.accent;diff --git a/src/agent-edit.js b/src/agent-edit.jsindex ff04ff1ca..c70437b2d 100644--- a/src/agent-edit.js+++ b/src/agent-edit.js@@ -1,6 +1,7 @@import { AvatarCreator } from './avatar-creator.js';import { saveRemoteGlbToAccount } from './account.js';import { apiFetch } from './api.js';+import { openAvatarPicker } from './avatar-gallery-picker.js';const API_BASE = '/api';const params = new URLSearchParams(location.search);@@ -119,8 +120,8 @@ function showBanner(msg) {el = document.createElement('div');el.id = 'avatar-origin-banner';el.style.cssText =- 'padding:10px 20px;background:rgba(125,211,252,.1);border-bottom:1px solid rgba(125,211,252,.25);' +- 'color:#7dd3fc;font-size:13px;font-weight:500;';+ 'padding:10px 20px;background:rgba(255,255,255,.1);border-bottom:1px solid rgba(255,255,255,.25);' ++ 'color:#ffffff;font-size:13px;font-weight:500;';document.body.prepend(el);}el.textContent = msg;@@ -390,6 +391,10 @@ function openAvatarCreateMenu() {<span class="acm-title">Upload GLB</span><span class="acm-sub">Bring your own model</span></button>+ <button type="button" role="menuitem" data-source="gallery">+ <span class="acm-title">Browse public gallery</span>+ <span class="acm-sub">Pick from community avatars</span>+ </button>`;document.body.appendChild(menu);@@ -415,11 +420,28 @@ function openAvatarCreateMenu() {btn.addEventListener('click', () => {const src = btn.dataset.source;close();- startAvatarCreate(src);+ if (src === 'gallery') {+ openGalleryPicker();+ } else {+ startAvatarCreate(src);+ }});});}+async function openGalleryPicker() {+ const picked = await openAvatarPicker({+ source: 'both',+ title: 'Choose an avatar for this agent',+ selectedId: agentData?.avatar_id || '',+ showModes: false,+ ctaLabel: 'Use this avatar',+ });+ if (picked) {+ await selectAvatar(picked.id);+ }+}+function startAvatarCreate(source) {if (source === 'upload') {triggerHiddenGlbInput();diff --git a/src/app.js b/src/app.jsindex 6ce54214e..d377434c1 100644--- a/src/app.js+++ b/src/app.js@@ -1374,7 +1374,7 @@ class App {const el = document.createElement('div');el.style.cssText ='position:fixed;inset:0;display:grid;place-items:center;background:#0a0a0a;color:#e0e0e0;font-family:Inter,system-ui,sans-serif;text-align:center;padding:2rem;z-index:9999';- el.innerHTML = `<div><h1 style="font-weight:300;margin:0 0 0.5rem">Widget unavailable</h1><p style="opacity:0.7;margin:0">${message.replace(/[<>&"]/g, '')}</p><p style="margin-top:1.5rem"><a href="/" style="color:#8b5cf6">Open viewer</a> · <a href="/widgets" style="color:#8b5cf6">Browse gallery</a></p></div>`;+ el.innerHTML = `<div><h1 style="font-weight:300;margin:0 0 0.5rem">Widget unavailable</h1><p style="opacity:0.7;margin:0">${message.replace(/[<>&"]/g, '')}</p><p style="margin-top:1.5rem"><a href="/" style="color:#ffffff">Open viewer</a> · <a href="/widgets" style="color:#ffffff">Browse gallery</a></p></div>`;document.body.appendChild(el);}diff --git a/src/avatar-studio-demo.js b/src/avatar-studio-demo.jsindex 4615229dd..b6168b4fd 100644--- a/src/avatar-studio-demo.js+++ b/src/avatar-studio-demo.js@@ -15,6 +15,7 @@ import {applyMorphsToRoot,renderSculptPanel,} from './avatar-sculpt.js';+const BASE_GLB = '/avatars/default.glb';const PRESETS_URL = '/accessories/presets.json';@@ -31,8 +32,10 @@ const $$ = (sel) => document.querySelectorAll(sel);// ── Boot ──────────────────────────────────────────────────────────────────────async function boot() {+ const presetsRes = await fetch(PRESETS_URL);+ if (!presetsRes.ok) throw new Error(`Failed to load presets: ${presetsRes.status}`);const [presetsData] = await Promise.all([- fetch(PRESETS_URL).then((r) => r.json()),+ presetsRes.json(),mountScene(),]);presets = presetsData;@@ -44,6 +47,7 @@ async function boot() {wireAnimationSelect();wireExport();wireResetAll();+ wirePresetInteraction();renderActiveTab();renderChips();@@ -60,7 +64,6 @@ async function mountScene() {}// ── AccessoryManager adapter ──────────────────────────────────────────────────-// AccessoryManager expects a viewer-like object with .content and .invalidate().function wireAccessoryManager() {const viewerAdapter = {@@ -121,11 +124,11 @@ async function wireAnimationSelect() {return;}- const names = emotes.listNames?.() || [];- for (const name of names) {+ const defs = emotes.getAllDefs();+ for (const def of defs) {const opt = document.createElement('option');- opt.value = name;- opt.textContent = name;+ opt.value = def.name;+ opt.textContent = def.label || def.name;select.appendChild(opt);}@@ -133,7 +136,7 @@ async function wireAnimationSelect() {const val = select.value;if (!val) return;scene.playEmote(val);- setTimeout(() => { select.value = ''; }, 2000);+ select.value = '';});}@@ -190,6 +193,51 @@ function wireResetAll() {});}+// ── Preset interaction (event delegation) ─────────────────────────────────────+// Wired once on #as-tab-content. Hover → live preview. Click → commit.++let _hoverPreview = null;++function wirePresetInteraction() {+ const container = $('#as-tab-content');++ container.addEventListener('click', async (e) => {+ const card = e.target.closest('.as-preset-card');+ if (!card) return;+ try {+ await handlePresetClick(card);+ } catch (err) {+ console.warn('[studio] preset click failed:', err);+ setStatus(`Failed: ${err.message}`);+ }+ });++ container.addEventListener('pointerenter', async (e) => {+ const card = e.target.closest('.as-preset-card');+ if (!card) return;+ const id = card.dataset.presetId;+ const preset = presets.find((p) => p.id === id);+ if (!preset) return;+ _hoverPreview = id;+ try {+ await accessoryMgr.applyPreset(preset);+ } catch (err) {+ console.warn('[studio] hover preview failed:', err);+ }+ }, true);++ container.addEventListener('pointerleave', async (e) => {+ const card = e.target.closest('.as-preset-card');+ if (!card || !_hoverPreview) return;+ _hoverPreview = null;+ try {+ await revertToCommitted();+ } catch (err) {+ console.warn('[studio] revert failed:', err);+ }+ }, true);+}+// ── Tab rendering ─────────────────────────────────────────────────────────────function renderActiveTab() {@@ -217,50 +265,23 @@ function renderPresetTab(container, kind) {container.innerHTML = `<div class="as-preset-grid">${items.map((p) => `- <div class="as-preset-card ${isActive(p) ? 'active' : ''}" data-preset-id="${esc(p.id)}">+ <div class="as-preset-card ${isActive(p) ? 'active' : ''}"+ data-preset-id="${esc(p.id)}" role="button" tabindex="0"><div class="as-preset-icon">${p.thumbnail- ? `<img src="${esc(p.thumbnail)}" alt="" loading="lazy" onerror="this.replaceWith(document.createTextNode('${iconFallback[p.kind] || '?'}'))">`- : iconFallback[p.kind] || '?'}+ ? `<img src="${esc(p.thumbnail)}" alt="${esc(p.name)}" loading="lazy">`+ : `<span>${iconFallback[p.kind] || '?'}</span>`}</div><span class="as-preset-name">${esc(p.name)}</span></div>`).join('')}</div>`;-- container.addEventListener('click', handlePresetClick);- container.addEventListener('pointerenter', handlePresetHover, true);- container.addEventListener('pointerleave', handlePresetLeave, true);}-// ── Preset interaction ────────────────────────────────────────────────────────-// Hover → live preview (temporary). Click → commit. Leave → revert to committed.+// ── Preset commit logic ───────────────────────────────────────────────────────-let _hoverPreview = null;--async function handlePresetHover(e) {- const card = e.target.closest('.as-preset-card');- if (!card) return;- const id = card.dataset.presetId;- const preset = presets.find((p) => p.id === id);- if (!preset) return;-- _hoverPreview = id;- await accessoryMgr.applyPreset(preset);-}--async function handlePresetLeave(e) {- const card = e.target.closest('.as-preset-card');- if (!card || !_hoverPreview) return;-- _hoverPreview = null;- await revertToCommitted();-}--async function handlePresetClick(e) {- const card = e.target.closest('.as-preset-card');- if (!card) return;+async function handlePresetClick(card) {const id = card.dataset.presetId;const preset = presets.find((p) => p.id === id);if (!preset) return;@@ -328,6 +349,36 @@ async function revertToCommitted() {// ── Sculpt tab ────────────────────────────────────────────────────────────────+const AE_TO_AS_MAP = [+ ['ae-sculpt-group', 'as-sculpt-group'],+ ['ae-sculpt-row', 'as-sculpt-row'],+ ['ae-sculpt-head', 'as-sculpt-head'],+ ['ae-sculpt-rows', 'as-sculpt-rows'],+ ['ae-sculpt-label', 'as-sculpt-label'],+ ['ae-sculpt-name', 'as-sculpt-name'],+ ['ae-sculpt-meta', 'as-sculpt-meta'],+ ['ae-sculpt-value', 'as-sculpt-value'],+ ['ae-sculpt-count', 'as-sculpt-count'],+ ['ae-sculpt-mirror', 'as-sculpt-mirror'],+ ['ae-sculpt-note', 'as-sculpt-note'],+ ['ae-sculpt-capture', 'as-btn as-btn-ghost as-btn-sm'],+ ['ae-sculpt-reset', 'as-btn as-btn-ghost as-btn-sm'],+ ['ae-blend-canvas', 'as-blend-canvas'],+ ['ae-blend-puck', 'as-blend-puck'],+ ['ae-blend-label', 'as-blend-label'],+ ['ae-blend-group', 'as-blend-group'],+ ['ae-blend-body', 'as-sculpt-rows'],+ ['ae-blend-desc', 'as-blend-desc'],+ ['ae-btn', 'as-btn as-btn-ghost as-btn-sm'],+ ['ae-face-backdrop', 'as-face-backdrop'],+ ['ae-face-dialog', 'as-face-dialog'],+ ['ae-face-close', 'as-face-close'],+ ['ae-face-lede', 'as-face-lede'],+ ['ae-face-stage', 'as-face-stage'],+ ['ae-face-status', 'as-face-status'],+ ['ae-face-actions', 'as-face-actions'],+];+function renderSculptTab(container) {renderSculptPanel({container,@@ -336,26 +387,18 @@ function renderSculptTab(container) {onDirty: () => {},});- container.querySelectorAll('.ae-sculpt-group').forEach((el) => {- el.classList.add('as-sculpt-group');- });- container.querySelectorAll('.ae-sculpt-row').forEach((el) => {- el.classList.add('as-sculpt-row');- });- container.querySelectorAll('.ae-sculpt-head').forEach((el) => {- el.classList.add('as-sculpt-head');- });- container.querySelectorAll('.ae-blend-canvas').forEach((el) => {- el.classList.add('as-blend-canvas');- });- container.querySelectorAll('.ae-blend-puck').forEach((el) => {- el.classList.add('as-blend-puck');- });- container.querySelectorAll('.ae-blend-label').forEach((el) => {- el.classList.add('as-blend-label');- });- container.querySelectorAll('.ae-btn').forEach((el) => {- el.classList.add('as-btn', 'as-btn-ghost', 'as-btn-sm');+ for (const [aeClass, asClasses] of AE_TO_AS_MAP) {+ container.querySelectorAll(`.${aeClass}`).forEach((el) => {+ el.classList.add(...asClasses.split(' '));+ });+ }++ document.querySelectorAll(`.ae-face-backdrop`).forEach((el) => {+ for (const [aeClass, asClasses] of AE_TO_AS_MAP) {+ el.querySelectorAll(`.${aeClass}`).forEach((child) => {+ child.classList.add(...asClasses.split(' '));+ });+ }});}@@ -420,6 +463,13 @@ function esc(s) {.replace(/'/g, ''');}+// ── Teardown ──────────────────────────────────────────────────────────────────++window.addEventListener('pagehide', () => {+ idle?.dispose();+ scene?.unmount();+});+// ── Init ──────────────────────────────────────────────────────────────────────boot().catch((err) => {diff --git a/src/brain.js b/src/brain.jsindex 54df1535d..860183d33 100644--- a/src/brain.js+++ b/src/brain.js@@ -2,12 +2,16 @@// ── Provider registry ────────────────────────────────────────────────────────const PROVIDERS = [- { key: 'anthropic', label: 'Claude Sonnet 4.6', short: 'Claude', network: 'Anthropic', color: '#c8a96e', ctx: '200K', tier: '$$' },- { key: 'openai', label: 'GPT-4o-mini', short: 'GPT-4o-mini', network: 'OpenAI', color: '#74c0fc', ctx: '128K', tier: '$' },- { key: 'qwen-plus', label: 'Qwen Plus', short: 'Qwen+', network: 'DashScope', color: '#69db7c', ctx: '131K', tier: '$' },- { key: 'qwen-vl-max', label: 'Qwen VL Max', short: 'Qwen-VL', network: 'DashScope', color: '#51cf66', ctx: '32K', tier: '$$' },- { key: 'modelscope-qwen', label: 'Qwen3-Coder 480B', short: 'Qwen3-Code', network: 'ModelScope', color: '#40c057', ctx: '32K', tier: '$$$' },- { key: 'groq-llama', label: 'Llama 3.3 70B', short: 'Llama 3.3', network: 'Groq', color: '#ff9a3c', ctx: '128K', tier: 'Fast' },+ { key: 'claude-opus-4-7', label: 'Claude Opus 4.7', short: 'Opus 4.7', network: 'Anthropic', color: '#c8a96e', ctx: '200K', tier: 'Flagship' },+ { key: 'claude-sonnet-4-6', label: 'Claude Sonnet 4.6', short: 'Sonnet 4.6', network: 'Anthropic', color: '#d4b87a', ctx: '200K', tier: 'Balanced' },+ { key: 'claude-haiku-4-5', label: 'Claude Haiku 4.5', short: 'Haiku 4.5', network: 'Anthropic', color: '#e0c88a', ctx: '200K', tier: 'Fast' },+ { key: 'gpt-4o', label: 'GPT-4o', short: 'GPT-4o', network: 'OpenAI', color: '#74c0fc', ctx: '128K', tier: 'Flagship' },+ { key: 'gpt-4o-mini', label: 'GPT-4o-mini', short: 'GPT-4o-mini', network: 'OpenAI', color: '#90ccfc', ctx: '128K', tier: 'Fast' },+ { key: 'o3-mini', label: 'o3-mini', short: 'o3-mini', network: 'OpenAI', color: '#5cb0f4', ctx: '128K', tier: 'Reasoning' },+ { key: 'groq-llama', label: 'Llama 3.3 70B', short: 'Llama 3.3', network: 'Groq', color: '#ff9a3c', ctx: '128K', tier: 'Fast' },+ { key: 'qwen-plus', label: 'Qwen Plus', short: 'Qwen+', network: 'DashScope', color: '#69db7c', ctx: '131K', tier: 'Balanced' },+ { key: 'modelscope-qwen', label: 'Qwen3-Coder 480B', short: 'Qwen3-Code', network: 'ModelScope', color: '#40c057', ctx: '32K', tier: 'Flagship' },+ { key: 'deepseek-r1', label: 'DeepSeek R1', short: 'DeepSeek', network: 'DeepSeek', color: '#b197fc', ctx: '64K', tier: 'Reasoning' },];const PMAP = new Map(PROVIDERS.map(p => [p.key, p]));@@ -37,8 +41,8 @@ const state = {personaEnabled: true,playMode: 'compare',- focusKey: 'anthropic',- active: new Set(['anthropic', 'openai', 'qwen-plus', 'groq-llama']),+ focusKey: 'claude-sonnet-4-6',+ active: new Set(['claude-sonnet-4-6', 'gpt-4o-mini', 'groq-llama', 'deepseek-r1']),sessions: [],currentId: null,streaming: false,@@ -571,6 +575,7 @@ async function streamProvider(provKey, messages, system, { onChunk, onDone, onErconst reader = res.body.getReader();const decoder = new TextDecoder();let buf = '';+ let gotDone = false;const t0 = performance.now();try {@@ -590,14 +595,18 @@ async function streamProvider(provKey, messages, system, { onChunk, onDone, onErif (evType === 'message' && data && data !== '[DONE]') {try { onChunk?.(JSON.parse(data)); } catch {}} else if (evType === 'done') {- try { onDone?.({ elapsedMs: JSON.parse(data).elapsedMs, usage: JSON.parse(data).usage }); } catch {}+ gotDone = true;+ try {+ const info = JSON.parse(data);+ onDone?.({ elapsedMs: info.elapsedMs, usage: info.usage });+ } catch {}} else if (evType === 'error') {try { onError?.(JSON.parse(data).message || 'upstream error'); } catch {}}}}} finally {- onDone?.({ elapsedMs: Math.round(performance.now() - t0), usage: null });+ if (!gotDone) onDone?.({ elapsedMs: Math.round(performance.now() - t0), usage: null });}}diff --git a/src/dashboard-next/pages/avatars.js b/src/dashboard-next/pages/avatars.jsindex 940eb25dd..d859d7414 100644--- a/src/dashboard-next/pages/avatars.js+++ b/src/dashboard-next/pages/avatars.js@@ -8,6 +8,7 @@import { mountShell } from '../shell.js';import { requireUser, get, patch, del, esc, relTime, ApiError } from '../api.js';import { openSelfieModal } from '../../selfie-modal.js';+import { openAvatarPicker } from '../../avatar-gallery-picker.js';const PAGE_SIZE = 24;const VISIBILITIES = ['public', 'unlisted', 'private'];@@ -44,6 +45,7 @@ const state = {<a href="/create/selfie" role="menuitem">Full selfie flow</a><a href="/create" role="menuitem">Upload a GLB</a><a href="/marketplace" role="menuitem">From an existing avatar</a>+ <button type="button" role="menuitem" data-browse-gallery>Browse public gallery</button></div></div></div>@@ -182,6 +184,19 @@ function wireNewMenu(root) {}});}++ const browseGallery = pop.querySelector('[data-browse-gallery]');+ if (browseGallery) {+ browseGallery.addEventListener('click', async () => {+ close();+ const picked = await openAvatarPicker({+ source: 'public',+ title: 'Browse public avatars',+ showModes: true,+ ctaLabel: 'Copy to clipboard',+ });+ });+ }}// ── Filtering / rendering ────────────────────────────────────────────────diff --git a/src/editor/publish.js b/src/editor/publish.jsindex 8076991be..c5153ca59 100644--- a/src/editor/publish.js+++ b/src/editor/publish.js@@ -23,7 +23,7 @@ const TURNTABLE_DEFAULTS = Object.freeze({autoRotate: true,showControls: true,background: '#0a0a0a',- accent: '#8b5cf6',+ accent: '#ffffff',});export class AuthRequiredError extends Error {diff --git a/src/face-mocap-overlay.js b/src/face-mocap-overlay.jsindex 376a8657b..fe07c670d 100644--- a/src/face-mocap-overlay.js+++ b/src/face-mocap-overlay.js@@ -19,14 +19,14 @@ import { Matrix4, Vector3 } from 'three';// Three.ws brand palette — the rest of the lab uses these exact values.const COLORS = {- dot: '#d6ff3d',- wire: 'rgba(214,255,61,0.18)',+ dot: '#ffffff',+ wire: 'rgba(255,255,255,0.18)',lips: '#ff5e7e',eye: '#7fc4ff',brow: '#ffd23d',iris: '#ffffff',axisX: '#ff5e7e',- axisY: '#d6ff3d',+ axisY: '#ffffff',axisZ: '#7fc4ff',};diff --git a/src/marketplace.js b/src/marketplace.jsindex 6be9171a3..a531c3171 100644--- a/src/marketplace.js+++ b/src/marketplace.js@@ -2010,7 +2010,7 @@ function renderPurchaseCard(p) {const isTrial = p.kind === 'trial' || p.status === 'trial';const kindBadge = isTrial? `<span class="stat-pill" style="color:#86efac">Trial${p.trial_remaining != null ? ` (${p.trial_remaining} left)` : ''}</span>`- : `<span class="stat-pill" style="color:#7dd3fc">Owned</span>`;+ : `<span class="stat-pill" style="color:#ffffff">Owned</span>`;const hasReceipt = !isTrial;const thumb = p.agent_thumbnail? `<div class="avatar avatar-img" style="background-image:url('${escapeHtml(p.agent_thumbnail)}');width:36px;height:36px;border-radius:8px;flex-shrink:0"></div>`diff --git a/src/voice-lab.js b/src/voice-lab.jsindex efcc7b4f4..285cc1a45 100644--- a/src/voice-lab.js+++ b/src/voice-lab.js@@ -87,6 +87,19 @@ const BAR_COUNT = 64;let idlePhase = 0;let smoothBars = new Float32Array(BAR_COUNT);+function roundRect(x, y, w, h, r) {+ if (ctx.roundRect) {+ ctx.roundRect(x, y, w, h, r);+ } else {+ ctx.moveTo(x + r, y);+ ctx.arcTo(x + w, y, x + w, y + h, r);+ ctx.arcTo(x + w, y + h, x, y + h, r);+ ctx.arcTo(x, y + h, x, y, r);+ ctx.arcTo(x, y, x + w, y, r);+ ctx.closePath();+ }+}+function lerpColor(t) {const r = Math.round(61 + t * (167 - 61));const g = Math.round(193 + t * (139 - 193));@@ -115,10 +128,10 @@ function drawIdle() {ctx.fillStyle = barColors[i] + alpha + ')';ctx.beginPath();- ctx.roundRect(x, centerY - h, barW, h, 2);+ roundRect(x, centerY - h, barW, h, 2);ctx.fill();ctx.beginPath();- ctx.roundRect(x, centerY + 1, barW, h, 2);+ roundRect(x, centerY + 1, barW, h, 2);ctx.fill();}}@@ -153,10 +166,10 @@ function drawLive() {ctx.fillStyle = barColors[i] + alpha + ')';ctx.beginPath();- ctx.roundRect(x, centerY - h, barW, h, 2);+ roundRect(x, centerY - h, barW, h, 2);ctx.fill();ctx.beginPath();- ctx.roundRect(x, centerY + 1, barW, h, 2);+ roundRect(x, centerY + 1, barW, h, 2);ctx.fill();}diff --git a/src/voice/voice-clone-modal.js b/src/voice/voice-clone-modal.jsindex 392550728..9d957ccba 100644--- a/src/voice/voice-clone-modal.js+++ b/src/voice/voice-clone-modal.js@@ -143,7 +143,7 @@ function injectStylesOnce() {font-size: 10px;letter-spacing: 0.18em;text-transform: uppercase;- color: #7dd3fc;+ color: #ffffff;margin-bottom: 4px;}.tws-vcm-title {diff --git a/src/widget-types.js b/src/widget-types.jsindex dcc585955..9d074826b 100644--- a/src/widget-types.js+++ b/src/widget-types.js@@ -62,7 +62,7 @@ export const WIDGET_TYPE_KEYS = Object.keys(WIDGET_TYPES);export const BRAND_DEFAULTS = Object.freeze({background: '#0a0a0a',- accent: '#8b5cf6',+ accent: '#ffffff',caption: '',showControls: true,autoRotate: true,diff --git a/src/widgets/animation-gallery.js b/src/widgets/animation-gallery.jsindex 3bd464cf9..cc5be93b2 100644--- a/src/widgets/animation-gallery.js+++ b/src/widgets/animation-gallery.js@@ -309,12 +309,12 @@ function _injectStyles() {background: rgba(255, 255, 255, 0.06);}.anim-gallery-item.is-active {- background: rgba(139, 92, 246, 0.22);+ background: rgba(255, 255, 255, 0.22);color: #fff;- box-shadow: inset 3px 0 0 #8b5cf6;+ box-shadow: inset 3px 0 0 #ffffff;}.anim-gallery-item:focus-visible {- outline: 2px solid #8b5cf6;+ outline: 2px solid #ffffff;outline-offset: -2px;}.anim-gallery-empty {diff --git a/src/widgets/hotspot-tour.js b/src/widgets/hotspot-tour.jsindex e25f667cf..9da94fcb2 100644--- a/src/widgets/hotspot-tour.js+++ b/src/widgets/hotspot-tour.js@@ -259,7 +259,7 @@ function _injectStyles() {}.hotspot-marker:hover,.hotspot-marker.is-active {- background: rgba(139, 92, 246, 0.85);+ background: rgba(255, 255, 255, 0.85);border-color: rgba(255, 255, 255, 0.4);}.hotspot-marker-dot {@@ -268,7 +268,7 @@ function _injectStyles() {width: 44px;height: 44px;border-radius: 999px;- background: rgba(139, 92, 246, 0.9);+ background: rgba(255, 255, 255, 0.9);color: #fff;font-weight: 600;font-size: 13px;@@ -276,7 +276,7 @@ function _injectStyles() {}.hotspot-marker.is-active .hotspot-marker-dot {background: #fff;- color: #8b5cf6;+ color: #ffffff;}.hotspot-marker-label {text-overflow: ellipsis;diff --git a/vite.config.js b/vite.config.jsindex 57ca1e20e..c5b171b9d 100644--- a/vite.config.js+++ b/vite.config.js@@ -204,6 +204,7 @@ const appConfig = {'agent-next': resolve(__dirname, 'pages/agent-next.html'),'discover-next': resolve(__dirname, 'pages/discover-next.html'),'avatar-studio-demo': resolve(__dirname, 'pages/avatar-studio-demo.html'),+ 'gallery-picker': resolve(__dirname, 'pages/gallery-picker.html'),xr: resolve(__dirname, 'pages/xr.html'),walk: resolve(__dirname, 'pages/walk.html'),'walk-embed': resolve(__dirname, 'pages/walk-embed.html'),@@ -407,6 +408,8 @@ const appConfig = {'/discover/': resolve(root, 'public/discover/index.html'),'/gallery': resolve(root, 'public/gallery/index.html'),'/gallery/': resolve(root, 'public/gallery/index.html'),+ '/gallery-picker': resolve(root, 'pages/gallery-picker.html'),+ '/gallery-picker/': resolve(root, 'pages/gallery-picker.html'),'/marketplace': resolve(root, 'pages/marketplace.html'),'/marketplace/': resolve(root, 'pages/marketplace.html'),'/pay': resolve(root, 'public/pay/index.html'),