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
chore: nav/marketplace polish, README trim, Playwright cold-start budget
nirholasc2dbec3b7c8e
diff --git a/README.md b/README.mdindex 7a227ae38..40ee32daf 100644--- a/README.md+++ b/README.md@@ -31,102 +31,16 @@ https://github.com/user-attachments/assets/d52515d1-cb04-4dd6-98bd-fef233312dc4- [Memory](#memory)- [Web Component & Embedding](#web-component--embedding)- [Widget System](#widget-system)-## API Reference--The backend API is composed of Vercel serverless functions located in the `api/` directory. Key endpoints include:-- `api/agents.js`: CRUD operations for agents.-- `api/chat.js`: Handles LLM chat interactions.-- `api/mcp.js`: The Model Context Protocol (MCP) endpoint.-- `api/auth/`: User authentication and session management.-- `api/payments/`: Payment processing.-- `api/agent-actions.js`: Records agent actions.-- `api/agent-memory.js`: Manages agent memory.--An OpenAPI 3.1 specification is available at `/openapi.json`.-------## Authentication & OAuth 2.1--The platform includes a full OAuth 2.1 server for secure authentication and authorization. Key features include:-- **Email & Wallet Sign-in**: Users can register and sign in with email or a crypto wallet (SIWE).-- **OAuth 2.1 Flow**: Standard authorization code flow with PKCE.-- **API Keys**: Developers can generate API keys with specific scopes and expiry dates.-------## Build & Deployment--The project is deployed on Vercel. The `package.json` file contains several scripts for building and deploying the application:-- `npm run dev`: Starts the local development server.-- `npm run build`: Builds the main application.-- `npm run build:lib`: Builds the distributable library.-- `npm run build:chat`: Builds the Svelte-based chat component.-- `npm run build:rider`: Builds the `rider` sub-project.-- `npm run build:all`: Runs all build scripts in parallel.-- `npm run install:sdk`: Installs and builds the `agent-payments-sdk`.-- `npm run deploy`: Deploys the project to Vercel.-------## Claude CLI--The `scripts/claude.sh` script is a command-line interface (CLI) to help manage the agent and SDKs. You can run it directly or via `npm run claude`.--**Usage:**-```bash-# Using npm-npm run claude -- [COMMAND]--# Direct execution-./scripts/claude.sh [COMMAND]-```--**Commands:**--| Command | Description |-| --- | --- |-| `install-sdk` | Installs and builds the `@pump-fun/agent-payments-sdk`. |-| `validate-cards` | Validates the agent definition cards in `src/agents/`. |-| `db-migrate` | Applies database migrations from `scripts/migrations/`. |-| `db-status` | Checks the status of database migrations. |-| `pump-smoke-test` | Runs a smoke test for the pump.fun integration. |-| `seed-skills` | Seeds the skills from the `skills-manifest.js` file. |-| `test` | Runs the full test suite. |-| `format` | Formats the codebase using Prettier. |-| `clean` | Cleans up all build artifacts and `dist/` folders. |-| `deploy` | Deploys the project to Vercel (requires confirmation). |-| `deploy-agent <name>` | Packages a specified agent into a distributable zip file. |-| `help` | Shows this help message, listing all available commands. |-------## Environment Variables--The following environment variables are required. Copy `.env.example` to `.env.local` and provide the values.--| Variable | Description |-| --- | --- |-| `PUBLIC_APP_ORIGIN` | Public URL of the application. |-| `DATABASE_URL` | Connection string for the Neon Postgres database. |-| `S3_ENDPOINT` | Endpoint for the S3-compatible storage bucket. |-| `S3_ACCESS_KEY_ID` | Access key ID for the S3 bucket. |-| `S3_SECRET_ACCESS_KEY` | Secret access key for the S3 bucket. |-| `S3_BUCKET` | Name of the S3 bucket. |-| `S3_PUBLIC_DOMAIN` | Public CDN base URL for the S3 bucket. |-| `UPSTASH_REDIS_REST_URL` | URL for the Upstash Redis instance. |-| `UPSTASH_REDIS_REST_TOKEN` | Token for the Upstash Redis instance. |-| `JWT_SECRET` | Secret key for signing JWTs. |-| `ANTHROPIC_API_KEY` | API key for the Anthropic (Claude) LLM. |-| `OPENROUTER_API_KEY` | API key for the OpenRouter free model proxy. |-| `VITE_CHARACTER_STUDIO_URL` | Origin where the Character Studio avatar builder iframe is hosted. Defaults to `http://localhost:5173` in dev. |-| `VITE_PRIVY_APP_ID` | Privy app ID for client-side wallet authentication. |-| `PRIVY_APP_ID` | Privy app ID for server-side token verification. |-| `AVATURN_API_KEY` | API key for the Avaturn photo-to-avatar pipeline. |-| `AGENT_RELAYER_KEY` | Private key for the ERC-7710 delegation relayer. |-| `AGENT_RELAYER_ADDRESS` | Public address of the relayer. |-| `RPC_URL_<CHAINID>` | RPC URLs for different blockchain networks. |+- [API Reference](#api-reference)+- [Authentication & OAuth 2.1](#authentication--oauth-21)+- [MCP Server](#mcp-server)+- [On-Chain Identity (ERC-8004)](#on-chain-identity-erc-8004)+- [Pump.fun Integration](#pumpfun-integration)+- [Database Schema](#database-schema)+- [Build & Deployment](#build--deployment)+- [Environment Variables](#environment-variables)- [Cloud Marketplaces](#cloud-marketplaces)+- [Ecosystem Directories](#ecosystem-directories)- [Testing](#testing)- [Contributing](#contributing)- [Contributors](#contributors)@@ -293,6 +207,21 @@ If you want to support the project — compute credits, grants, partnerships, or- Composable skill system — install skills from IPFS, Arweave, or HTTP; each skill is a self-contained bundle with a description, tool definitions, and async handlers- Weighted emotion blending (celebration, concern, curiosity, empathy, patience) driven by protocol events, not a finite-state machine- Web Speech API for STT/TTS out of the box; ElevenLabs integration for production-quality voice+- **Talk mode** with audio-driven ARKit-52 lip-sync — TTS audio is analysed in real time and drives 52 standard blendshapes on the avatar+- Anonymous Groq-powered chat for unauthenticated visitors; owner-card gating when an agent has a paying author++**x402 Payments & Bazaar**+- Native [x402](https://x402.org) paid endpoints on Base, BSC, and Solana — agents pay other agents in USDC for API calls, asset downloads, and skill royalties+- Coinbase CDP facilitator on Base mainnet; direct-scheme payments on BSC+- Permit2 gas-sponsoring siblings on every CDP-settled endpoint (buyer signs, relayer pays gas)+- SKU catalog + Stripe-style checkout at `/dashboard/x402`; receipts ledger with admin tooling+- Subscriptions, idempotency tokens, offer receipts, paid asset download, and a bazaar listing/search API+- SIWX (Sign-In with X-chain) server for auth-gated paid endpoints+- Listed on [x402scan](https://www.x402scan.com/server/17cbd874-52ac-4920-a020-b22ff2489a07) and the [MCP Registry](https://registry.modelcontextprotocol.io/?q=three.ws)++**A2A — Agent-to-Agent Protocol**+- A2A client + server, MCP bridge, DID resolution, spending ledger, receipts storage+- Agents transact autonomously via their delegated signer wallets and EIP-7710 permissions**Identity & On-Chain**- ERC-8004 smart contracts (IdentityRegistry, ReputationRegistry, ValidationRegistry) deployable on any EVM chain@@ -304,16 +233,27 @@ If you want to support the project — compute credits, grants, partnerships, or**Embedding & Distribution**- `<agent-3d>` custom element — drop it anywhere with no framework dependency- Five widget variants: turntable, animation gallery, talking agent, ERC-8004 passport card, hotspot tour-- Widget Studio — point-and-click embed code generator+- Widget Studio + WYSIWYG **Embed Editor** at `/embed-editor` — pick an avatar, animation, framing, and background, copy the snippet+- **Launchpad** at `/launchpad` — hosted public launch pages at `/p/[slug]` for tokens, agents, and drops- Open Graph metadata and oEmbed support for rich social previews when links are shared- Versioned CDN bundles at `/agent-3d/x.y.z/agent-3d.js`+**Multi-User 3D**+- **The Club** at `/club` — multiplayer venue with rigged dancers, audio tracks, tips, leaderboard, payouts cron, perf-aware renderer that auto-downgrades on slow frames+- **Walk** at `/walk` — authoritative multiplayer walk scene backed by a Colyseus server in `multiplayer/` (deployable on Fly.io)+- **Pose Studio** at `/pose-studio` — author and export reusable avatar poses+**Backend & Integrations**- OAuth 2.1 server (RFC 6749 + PKCE, RFC 7591 dynamic registration, RFC 7009 revocation, RFC 7662 introspection, RFC 8414 discovery)- Developer API keys with scope and expiry-- MCP (Model Context Protocol) over HTTP with JSON-RPC 2.0 for tool-calling from external AI systems-- Avaturn (photo-to-avatar), Character Studio (in-browser builder), and Privy (embedded wallet) integrations+- MCP (Model Context Protocol) over HTTP with JSON-RPC 2.0 for tool-calling from external AI systems; A2A bridge exposes paid tools as x402 endpoints+- Avaturn (photo-to-avatar), Character Studio (in-browser builder), Avatar Studio (rebranded marketplace), and Privy (embedded wallet) integrations+- Replicate-backed avatar regeneration provider for photo-to-avatar workflows+- Native selfie reconstruction pipeline (Phase 1) + Livepeer inference network (Phase 4) wired into the agent runtime- DCA strategy execution and on-chain subscription scheduling via cron jobs+- News CMS at `/admin/news` with multi-destination syndication (WebSub, Dev.to, Medium, HackerNoon, CMC handoff)+- Solana Mobile (Seeker) MWA wallet wired into the web app + Solana Mobile dApp Store release pipeline+- Hardened API surface: SSRF guard, CSRF gates, header-origin pinning, fail-closed crons- OpenAPI 3.1 spec generated at `/openapi.json`---@@ -335,11 +275,17 @@ A map of every user-facing route. Full detail (source files, feature description| **Agent (Platform)** | `/agent/[id]`, `/agent/[id]/embed`, `/agent/[id]/edit` | Agent chat, chromeless embed, manifest editor || **Agent (On-Chain)** | `/a/[chain]/[id]`, `/a/sol/[asset]` | ERC-8004 and Metaplex Core passports || **Profile** | `/profile`, `/u/[username]`, `/avatars/[id]` | User and avatar public pages |-| **Dashboard** | `/dashboard`, `/dashboard/actions`, `/dashboard/wallets`, `/dashboard/usage`, … | Account management and settings |-| **Studio / Tools** | `/studio`, `/hydrate`, `/validation`, `/strategy-lab` | Widget Studio, on-chain import, glTF validator, DCA |+| **Dashboard** | `/dashboard`, `/dashboard/actions`, `/dashboard/wallets`, `/dashboard/usage`, `/dashboard/x402` | Account management, settings, and x402 receipts/payouts |+| **Studio / Tools** | `/studio`, `/embed-editor`, `/pose-studio`, `/hydrate`, `/validation`, `/strategy-lab` | Widget Studio, WYSIWYG embed editor, pose authoring, on-chain import, glTF validator, DCA || **Widgets** | `/widgets`, `/w/[id]` | Widget gallery and public widget pages (OG + oEmbed) |+| **Launchpad** | `/launchpad`, `/p/[slug]` | Launchpad Studio + hosted launch pages (token, agent, drop campaigns) |+| **Club** | `/club` | Multiplayer 3D venue — tips, leaderboard, audio tracks, perf-aware renderer |+| **Walk** | `/walk` | Authoritative multiplayer walk scene (Colyseus on Fly.io) |+| **Bazaar (x402)** | `/x402`, `/x402-discover`, `/x402-pay` | Paid-API marketplace, discovery, Stripe-style checkout || **Artifacts** | `/artifact`, `/artifact/snippet`, `/artifact-example` | Claude Artifact viewer |-| **Solana / DeFi** | `/pumpfun`, `/vanity-wallet` | Token launcher, vanity address grinder |+| **Solana / DeFi** | `/pumpfun`, `/pump-visualizer`, `/vanity-wallet` | pump.fun launcher, live token visualizer, WASM vanity grinder |+| **Mobile (Seeker)** | Solana Mobile dApp Store | MWA wallet wired into the web app + Seeker release pipeline |+| **News / Blog** | `/news`, `/admin/news` | News feed + local-only CMS, syndicated via WebSub / Dev.to / Medium / HackerNoon || **Admin / Rep** | `/admin`, `/reputation` | Staff admin, reputation registry || **Experiments** | `/rider` | A-Frame WebVR music visualization || **Integrations** | `/cz`, `/lobehub/iframe` | CZ demo, LobeHub plugin |@@ -473,12 +419,6 @@ The application will be available at `http://localhost:3000`.----## Contributing--We welcome contributions from the community! Please read our [contributing guidelines](CONTRIBUTING.md) to get started.------## ExamplesCopy-paste ready snippets for the most common use cases. Swap in your own GLB URL and go.@@ -672,7 +612,7 @@ For anything beyond a quick one-liner, define the agent in a manifest file and r"skills": [{ "uri": "https://cdn.three.ws/skills/wave/" }]-} The script automatically initializes widgets, even those added dynamically after the page loads.+}``````html@@ -747,42 +687,6 @@ For sandboxed iframes use the widget embed path instead — it runs in its own b----## Pump.fun Integration--This project includes a significant integration with [pump.fun](https://pump.fun), a platform for launching tokens on Solana. Key features include:-- **Token Launcher**: A UI for creating and launching new tokens on pump.fun, available at `public/pumpfun.html`.-- **Live Dashboard**: Real-time tracking of pump.fun tokens can be found in `pump-live.html`.-- **Skills**: The `pump-fun-skills/` directory contains agent skills for interacting with pump.fun.-------## SDKs--The project contains several SDKs to interact with various services:-- **`agent-payments-sdk/`**: Manages payments for agent-related services.-- **`solana-agent-sdk/`**: Provides tools for interacting with the Solana blockchain.-- **`sdk/`**: A general-purpose SDK with shared utilities.-------## Workers--The `workers/` directory contains code for background workers that handle tasks such as scheduled jobs and data processing.-------## Scripts and Tooling--The `scripts/` directory includes various utility scripts:-- `seed-skills.js`: Seeds the database with an initial set of agent skills.-- `apply-migrations.mjs`: Manages and applies database migrations.-- `publish-lib.mjs`: Publishes the library to npm.-- `download-animations.mjs`: Fetches and updates animation files.-- `build-animations.mjs`: Builds animation assets.-```------## The Agent System### Event Bus (Agent Protocol)@@ -1292,6 +1196,16 @@ Full design and configuration in [docs/solana-pumpfun.md](docs/solana-pumpfun.md---+## Pump.fun Integration++Beyond the Solana reputation signals described above, the platform also ships consumer-facing pump.fun tooling:++- **Token Launcher** — UI for creating and launching new tokens, at [public/pumpfun.html](public/pumpfun.html).+- **Live Dashboard** — real-time tracker for new tokens, at [pump-live.html](pump-live.html).+- **Skills** — the [pump-fun-skills/](pump-fun-skills/) directory contains agent skills for reading and acting on pump.fun.++---+## Database SchemaThe Postgres schema (`api/_lib/schema.sql`) is fully idempotent — all migrations use `CREATE TABLE IF NOT EXISTS` patterns. Safe to re-run on any environment.@@ -1360,15 +1274,47 @@ plan_quotas (plan, max_avatars, max_bytes_per_avatar, max_total_bytes)| `npm run build` | Production build to `dist/` || `npm run build:lib` | Build `<agent-3d>` web component library to `dist-lib/` || `npm run build:artifact` | Build standalone Claude artifact viewer bundle |-| `npm run build:all` | build + build:lib + publish:lib |+| `npm run build:all` | Chat build, then `build` + `build:lib` + `build:rider` in parallel || `npm run publish:lib` | Publish versioned CDN bundles to `/agent-3d/` |-| `npm run test` | Run Vitest suite |+| `npm run test` | Vitest unit suite + Playwright end-to-end suite |+| `npm run test:e2e` | Playwright end-to-end suite only || `npm run verify` | Prettier check + Vite build (pre-deploy gate) || `npm run format` | Prettier write (entire repo) |-| `npm run deploy` | build:all + vercel --prod |-| `npm run clean` | Remove dist/ and dist-lib/ |+| `npm run deploy` | `build:all` → `check:dist` → `vercel --prod` |+| `npm run clean` | Remove `dist/` and `dist-lib/` || `npm run fetch-animations` | Download animation clip assets || `npm run generate-icons` | Generate PWA icon set |+| `npm run db:migrate` | Apply Postgres migrations from `scripts/migrations/` |+| `npm run db:status` | Show pending Postgres migrations |+| `npm run seed:skills` | Seed the skills registry from `skills-manifest.js` |+| `npm run install:sdk` | Install + build `agent-payments-sdk` and link it locally |+| `npm run validate:cards` | Validate agent definition cards in `src/agents/` |+| `npm run pump:smoke` | Run the pump.fun lifecycle smoke test |++### Claude CLI++`scripts/claude.sh` (aliased as `npm run claude`) wraps the npm scripts above with confirmation prompts on destructive commands (`deploy`, `db-migrate`). Useful when you want guard-rails or a single entry point for an agent to drive.++```bash+npm run claude -- <command>+# or+./scripts/claude.sh <command>+```++| Command | Wraps |+|---|---|+| `install-sdk` | `npm run install:sdk` |+| `validate-cards` | `npm run validate:cards` |+| `db-migrate` | `npm run db:migrate` (with confirmation) |+| `db-status` | `npm run db:status` |+| `pump-smoke-test` | `npm run pump:smoke` |+| `seed-skills` | `npm run seed:skills` |+| `test` | `npm run test` |+| `format` | `npm run format` |+| `clean` | `npm run clean` |+| `deploy` | `npm run deploy` (with confirmation) |+| `deploy-agent <name>` | Packages an agent into a distributable zip |+| `help` | List all commands |### Vercel Deployment@@ -1563,4 +1509,4 @@ The three.js library (`node_modules/three`) is MIT licensed. The gltf-validator----*Built with [three.js](https://three.ws), [Claude](https://claude.ai), and a belief that AI deserves a body.*+*Built with [three.js](https://threejs.org), [Claude](https://claude.ai), and a belief that AI deserves a body.*diff --git a/nav-inspect.mjs b/nav-inspect.mjsnew file mode 100644index 000000000..e094ff1e6--- /dev/null+++ b/nav-inspect.mjs@@ -0,0 +1,44 @@+import { chromium } from 'playwright';+const browser = await chromium.launch();+const page = await browser.newPage({ viewport: { width: 1440, height: 900 } });+await page.goto('http://localhost:3000/marketplace', { waitUntil: 'networkidle' });+await page.waitForSelector('.home-nav .nav-cta', { timeout: 5000 });++const cta = await page.locator('.home-nav .nav-cta').first();+const box = await cta.boundingBox();+const styles = await cta.evaluate((el) => {+ const cs = getComputedStyle(el);+ return {+ background: cs.background,+ backgroundImage: cs.backgroundImage,+ color: cs.color,+ padding: cs.padding,+ borderRadius: cs.borderRadius,+ boxShadow: cs.boxShadow,+ fontSize: cs.fontSize,+ fontWeight: cs.fontWeight,+ };+});+console.log('CTA box:', box);+console.log('CTA computed styles:', JSON.stringify(styles, null, 2));++// also dump header background+const header = await page.locator('.site-header').first();+const hs = await header.evaluate((el) => {+ const cs = getComputedStyle(el);+ return {+ background: cs.background,+ backdropFilter: cs.backdropFilter,+ borderBottom: cs.borderBottom,+ };+});+console.log('Header styles:', JSON.stringify(hs, null, 2));++// take focused screenshot of CTA+if (box) {+ await page.screenshot({ path: '/tmp/cta-zoom.png', clip: { x: box.x - 20, y: box.y - 20, width: box.width + 60, height: box.height + 40 } });+}++// take a full nav screenshot scaled up+await page.screenshot({ path: '/tmp/nav-full.png', clip: { x: 0, y: 0, width: 1440, height: 120 } });+await browser.close();diff --git a/nav-screenshot.mjs b/nav-screenshot.mjsnew file mode 100644index 000000000..bd4808737--- /dev/null+++ b/nav-screenshot.mjs@@ -0,0 +1,43 @@+import { chromium } from 'playwright';++const browser = await chromium.launch();+const ctx = await browser.newContext({ viewport: { width: 1440, height: 900 } });+const page = await ctx.newPage();++const errors = [];+page.on('pageerror', (e) => errors.push('pageerror: ' + e.message));+page.on('console', (msg) => {+ if (msg.type() === 'error') errors.push('console.error: ' + msg.text());+});++await page.goto('http://localhost:3000/marketplace', { waitUntil: 'networkidle', timeout: 30000 });++// wait for nav to be injected+await page.waitForSelector('.home-nav .nav-root', { timeout: 5000 });+await page.waitForTimeout(800);++// full header screenshot+await page.screenshot({ path: '/tmp/marketplace-nav.png', clip: { x: 0, y: 0, width: 1440, height: 80 } });++// open the Build dropdown+const buildBtn = await page.locator('.home-nav .nav-trigger', { hasText: 'Build' }).first();+await buildBtn.click();+await page.waitForTimeout(300);+await page.screenshot({ path: '/tmp/marketplace-nav-build-open.png', clip: { x: 0, y: 0, width: 1440, height: 400 } });++// Hover on Marketplace link+await page.locator('.home-nav a', { hasText: 'Marketplace' }).first().hover();+await page.waitForTimeout(250);+await page.screenshot({ path: '/tmp/marketplace-nav-hover.png', clip: { x: 0, y: 0, width: 1440, height: 80 } });++// mobile+await page.setViewportSize({ width: 390, height: 800 });+await page.waitForTimeout(300);+await page.screenshot({ path: '/tmp/marketplace-nav-mobile.png', clip: { x: 0, y: 0, width: 390, height: 80 } });+const burger = await page.locator('.home-nav .nav-burger').first();+await burger.click();+await page.waitForTimeout(300);+await page.screenshot({ path: '/tmp/marketplace-nav-mobile-open.png', clip: { x: 0, y: 0, width: 390, height: 800 } });++console.log('errors:', JSON.stringify(errors, null, 2));+await browser.close();diff --git a/playwright.config.js b/playwright.config.jsindex 8faf8c01c..526c9887f 100644--- a/playwright.config.js+++ b/playwright.config.js@@ -3,9 +3,15 @@ import { defineConfig } from '@playwright/test';// Playwright config for the /club smoke. Drives a real Chromium against the// Vite dev server. Kept separate from Vitest (which only globs *.test.js) by// using the `.spec.js` suffix in `tests/e2e/`.+//+// Cold-start budget: a fresh Vite dev server needs ~30s to come up and the+// first /club hit then transforms the full three.js module graph (~30–60s+// on a CI box). The first test sets a 180s test timeout; we mirror that on+// the webServer health check so playwright doesn't kill the server before+// the cold transform finishes and bring down the next two tests with it.export default defineConfig({testDir: 'tests/e2e',- timeout: 60_000,+ timeout: 120_000,retries: 1,fullyParallel: false,use: {@@ -18,7 +24,9 @@ export default defineConfig({webServer: {command: 'npm run dev',url: 'http://localhost:3000',- timeout: 60_000,+ timeout: 180_000,reuseExistingServer: !process.env.CI,+ stdout: 'pipe',+ stderr: 'pipe',},});diff --git a/public/marketplace.css b/public/marketplace.cssindex 28e4f8d4b..dfc44fae8 100644--- a/public/marketplace.css+++ b/public/marketplace.css@@ -26,6 +26,17 @@ body.market-page {-webkit-font-smoothing: antialiased;}+/* The global /style.css (loaded for every page so the 3D viewer renders+ full-bleed) sets `html, body { height: 100%; overflow: hidden }`. That+ pins the marketplace to the viewport and kills page scroll. This file+ is only linked from marketplace.html, so unscoping html/body here just+ restores normal document scrolling on marketplace routes. */+html,+body.market-page {+ height: auto;+ overflow: visible;+}+body.market-page {display: grid;grid-template-columns: 240px 1fr;diff --git a/public/nav.css b/public/nav.cssindex 3893e05ea..8edddeedf 100644--- a/public/nav.css+++ b/public/nav.css@@ -1,21 +1,101 @@/* ── Shared nav styles for .home-nav (used wherever nav.js is loaded) ── */+/* ── Site header: refined glass bar with a soft gradient hairline ───── */++.site-header {+ position: relative;+ background:+ radial-gradient(120% 180% at 50% -40%, rgba(139, 92, 246, 0.18), transparent 55%),+ linear-gradient(180deg, rgba(10, 8, 18, 0.78) 0%, rgba(6, 6, 12, 0.82) 100%);+ backdrop-filter: blur(22px) saturate(160%);+ -webkit-backdrop-filter: blur(22px) saturate(160%);+ border-bottom: 1px solid rgba(255, 255, 255, 0.06);+ box-shadow:+ 0 1px 0 rgba(255, 255, 255, 0.04) inset,+ 0 8px 28px -16px rgba(0, 0, 0, 0.7);+}++/* Soft gradient hairline that lives on top of the header's border —+ adds a tiny bit of color without screaming. */+.site-header::after {+ content: '';+ position: absolute;+ left: 0;+ right: 0;+ bottom: -1px;+ height: 1px;+ background: linear-gradient(+ 90deg,+ transparent 0%,+ rgba(167, 139, 250, 0.45) 30%,+ rgba(99, 102, 241, 0.4) 55%,+ rgba(34, 211, 238, 0.35) 78%,+ transparent 100%+ );+ pointer-events: none;+ opacity: 0.55;+}++/* ── Brand ──────────────────────────────────────────────────────────── */++.site-header-brand {+ position: relative;+}++.site-header-brand > a {+ display: inline-flex;+ align-items: center;+ gap: 0.6rem;+ padding: 4px 8px 4px 4px;+ border-radius: 10px;+ transition: background 0.18s ease, transform 0.18s ease;+}++.site-header-brand > a:hover {+ background: rgba(255, 255, 255, 0.035);+ transform: translateY(-0.5px);+}+.site-header-brand .wordmark-logo {width: 28px;height: 28px;display: inline-block;vertical-align: middle;+ filter: drop-shadow(0 2px 12px rgba(139, 92, 246, 0.35));+ transition: filter 0.25s ease;+}++.site-header-brand > a:hover .wordmark-logo {+ filter: drop-shadow(0 2px 16px rgba(167, 139, 250, 0.6));}.site-header-brand .wordmark-dot {- width: 8px;- height: 8px;+ width: 7px;+ height: 7px;border-radius: 50%;- background: linear-gradient(135deg, #a78bfa 0%, #6366f1 100%);- box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);+ background: radial-gradient(circle at 30% 30%, #c4b5fd 0%, #8b5cf6 55%, #6366f1 100%);+ box-shadow:+ 0 0 0 1px rgba(167, 139, 250, 0.18),+ 0 0 14px rgba(139, 92, 246, 0.75);display: inline-block;+ animation: brand-dot-pulse 3.4s ease-in-out infinite;}+@keyframes brand-dot-pulse {+ 0%, 100% {+ box-shadow:+ 0 0 0 1px rgba(167, 139, 250, 0.18),+ 0 0 12px rgba(139, 92, 246, 0.6);+ }+ 50% {+ box-shadow:+ 0 0 0 1px rgba(167, 139, 250, 0.3),+ 0 0 18px rgba(139, 92, 246, 0.95);+ }+}++/* ── Home nav root ──────────────────────────────────────────────────── */+.home-nav {margin-left: auto;display: flex;@@ -25,7 +105,7 @@}.home-nav a {- color: rgba(255, 255, 255, 0.6);+ color: rgba(244, 244, 248, 0.7);text-decoration: none;font-size: 0.92rem;font-weight: 500;@@ -38,39 +118,78 @@color: #fff;}+/* ── CTA — refined warm gradient with a soft ambient glow ──────────── */+.home-nav .nav-cta {- padding: 0.5rem 1.2rem;- background: linear-gradient(135deg, #ffd76a 0%, #ff8f4d 100%);+ position: relative;+ padding: 0.5rem 1.15rem;+ background: linear-gradient(135deg, #ffd76a 0%, #ff8f4d 60%, #ec4899 130%);color: #1a0f08;- border-radius: 6px;+ border-radius: 999px;font-weight: 600;- font-size: 0.9rem;- box-shadow: 0 4px 18px -6px rgba(255, 143, 77, 0.6);+ font-size: 0.88rem;+ letter-spacing: 0.01em;+ box-shadow:+ 0 1px 0 rgba(255, 255, 255, 0.35) inset,+ 0 -1px 0 rgba(120, 53, 15, 0.25) inset,+ 0 6px 22px -8px rgba(255, 143, 77, 0.55),+ 0 0 0 1px rgba(255, 215, 106, 0.25);transition:transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1),- box-shadow 0.25s ease;+ box-shadow 0.25s ease,+ filter 0.25s ease;+}++/* Subtle shine sweep on hover */+.home-nav .nav-cta::after {+ content: '';+ position: absolute;+ inset: 0;+ border-radius: inherit;+ background: linear-gradient(+ 120deg,+ transparent 0%,+ rgba(255, 255, 255, 0.4) 45%,+ transparent 65%+ );+ transform: translateX(-120%);+ transition: transform 0.6s ease;+ pointer-events: none;}.home-nav .nav-cta:hover {- transform: translateY(-1px) scale(1.03);- box-shadow: 0 8px 24px -6px rgba(255, 143, 77, 0.8);+ transform: translateY(-1px);+ box-shadow:+ 0 1px 0 rgba(255, 255, 255, 0.45) inset,+ 0 -1px 0 rgba(120, 53, 15, 0.3) inset,+ 0 12px 28px -8px rgba(255, 143, 77, 0.7),+ 0 0 0 1px rgba(255, 215, 106, 0.4);+ filter: saturate(1.05);color: #1a0f08;}+.home-nav .nav-cta:hover::after {+ transform: translateX(120%);+}++/* ── User chip (signed-in name) ────────────────────────────────────── */+.home-nav .nav-user {display: inline-flex;align-items: center;gap: 6px;- padding: 4px 10px;- border-radius: 20px;+ padding: 4px 12px;+ border-radius: 999px;border: 1px solid rgba(255, 255, 255, 0.1);- background: rgba(255, 255, 255, 0.04);+ background:+ linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));font-size: 0.85rem;- color: rgba(255, 255, 255, 0.55);+ color: rgba(255, 255, 255, 0.7);max-width: 140px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;+ transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;}.home-nav .nav-user::before {@@ -79,22 +198,24 @@height: 6px;border-radius: 50%;background: #4ade80;+ box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);flex-shrink: 0;}.home-nav .nav-user:hover {- color: rgba(255, 255, 255, 0.85);- border-color: rgba(255, 255, 255, 0.2);- background: rgba(255, 255, 255, 0.07);+ color: #fff;+ border-color: rgba(255, 255, 255, 0.22);+ background:+ linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));}.home-nav a:focus-visible {- outline: 2px solid #ffd76a;+ outline: 2px solid rgba(167, 139, 250, 0.7);outline-offset: 3px;- border-radius: 4px;+ border-radius: 6px;}-/* ── Badge ── */+/* ── Badges & pills ─────────────────────────────────────────────────── */.home-nav .nav-badge {display: inline-block;@@ -102,11 +223,12 @@margin-left: 6px;background: linear-gradient(135deg, #8b5cf6, #22d3ee);color: #0a0b10;- border-radius: 4px;+ border-radius: 999px;font-size: 9px;font-weight: 700;- letter-spacing: 0.06em;+ letter-spacing: 0.08em;vertical-align: 1px;+ box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);}.home-nav .nav-link-with-badge {@@ -120,10 +242,10 @@display: inline-block;padding: 1px 6px;margin-left: 6px;- background: rgba(255, 255, 255, 0.08);- color: rgba(255, 255, 255, 0.65);+ background: rgba(255, 255, 255, 0.06);+ color: rgba(255, 255, 255, 0.7);border: 1px solid rgba(255, 255, 255, 0.14);- border-radius: 4px;+ border-radius: 999px;font-size: 9px;font-weight: 600;letter-spacing: 0.08em;@@ -145,7 +267,7 @@list-style: none;}-/* ── Hamburger button (desktop: hidden) ── */+/* ── Hamburger button (desktop: hidden) ─────────────────────────────── */.home-nav .nav-burger {display: none;@@ -158,22 +280,22 @@padding: 0;background: none;border: 1px solid rgba(255, 255, 255, 0.12);- border-radius: 7px;+ border-radius: 10px;cursor: pointer;-webkit-app-region: no-drag;transition: border-color 0.2s ease, background 0.2s ease;}.home-nav .nav-burger:hover {- border-color: rgba(255, 255, 255, 0.28);- background: rgba(255, 255, 255, 0.05);+ border-color: rgba(167, 139, 250, 0.4);+ background: rgba(139, 92, 246, 0.08);}.home-nav .nav-burger-bar {display: block;width: 18px;height: 2px;- background: rgba(255, 255, 255, 0.7);+ background: rgba(255, 255, 255, 0.75);border-radius: 2px;transition: transform 0.22s ease, opacity 0.22s ease, width 0.22s ease;}@@ -189,7 +311,7 @@transform: translateY(-7px) rotate(-45deg);}-/* ── Dropdown nav ── */+/* ── Nav root + items ──────────────────────────────────────────────── */.home-nav .nav-root,.home-nav .nav-menu {@@ -201,7 +323,7 @@.home-nav .nav-root {display: flex !important;align-items: center;- gap: var(--space-lg, 1.5rem);+ gap: 0.35rem;}.home-nav .nav-item {@@ -219,66 +341,102 @@padding: 0;}+/* Top-level nav links — pill-shape on hover, animated underline glow */+.home-nav .nav-item > a,.home-nav .nav-trigger {+ position: relative;display: inline-flex;align-items: center;gap: 4px;background: none;border: 0;- padding: 0;+ padding: 0.45rem 0.75rem;+ border-radius: 10px;cursor: pointer;- color: rgba(255, 255, 255, 0.6);+ color: rgba(244, 244, 248, 0.65);font: inherit;font-size: 0.92rem;font-weight: 500;letter-spacing: 0.005em;font-family: 'Space Grotesk', 'Inter', sans-serif;- transition: color 0.2s ease;+ transition: color 0.18s ease, background 0.18s ease;}+.home-nav .nav-item > a:hover,.home-nav .nav-trigger:hover,.home-nav .nav-trigger[aria-expanded='true'] {color: #fff;+ background: rgba(255, 255, 255, 0.04);+}++/* Soft gradient underline on hover/open (top-level only) */+.home-nav .nav-item > a:not(.nav-cta):not(.nav-user)::after,+.home-nav .nav-trigger::after {+ content: '';+ position: absolute;+ left: 50%;+ right: 50%;+ bottom: 2px;+ height: 1.5px;+ background: linear-gradient(90deg, #a78bfa, #6366f1, #22d3ee);+ border-radius: 2px;+ opacity: 0;+ transition: left 0.25s ease, right 0.25s ease, opacity 0.2s ease;+ pointer-events: none;+}++.home-nav .nav-item > a:not(.nav-cta):not(.nav-user):hover::after,+.home-nav .nav-trigger:hover::after,+.home-nav .nav-trigger[aria-expanded='true']::after {+ left: 12px;+ right: 12px;+ opacity: 0.9;}.home-nav .nav-caret {font-size: 0.7em;opacity: 0.7;- transition: transform 0.2s ease;+ transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);}.home-nav .nav-trigger[aria-expanded='true'] .nav-caret {transform: rotate(180deg);}+/* ── Dropdown menus ────────────────────────────────────────────────── */+.home-nav .nav-menu {position: absolute;- top: calc(100% + 14px);- left: -12px;- min-width: 240px;+ top: calc(100% + 12px);+ left: -8px;+ min-width: 248px;margin: 0;padding: 8px;list-style: none;- background: rgba(14, 12, 22, 0.94);- backdrop-filter: blur(20px) saturate(150%);- -webkit-backdrop-filter: blur(20px) saturate(150%);+ background:+ radial-gradient(120% 100% at 0% 0%, rgba(139, 92, 246, 0.14), transparent 55%),+ linear-gradient(180deg, rgba(18, 14, 28, 0.96), rgba(10, 8, 16, 0.96));+ backdrop-filter: blur(24px) saturate(160%);+ -webkit-backdrop-filter: blur(24px) saturate(160%);border: 1px solid rgba(255, 255, 255, 0.08);- border-radius: 12px;+ border-radius: 14px;box-shadow:- 0 20px 40px -12px rgba(0, 0, 0, 0.65),- 0 4px 12px -4px rgba(0, 0, 0, 0.5);+ 0 1px 0 rgba(255, 255, 255, 0.05) inset,+ 0 24px 48px -12px rgba(0, 0, 0, 0.7),+ 0 8px 16px -8px rgba(99, 102, 241, 0.18);opacity: 0;- transform: translateY(-6px);+ transform: translateY(-6px) scale(0.98);+ transform-origin: top left;pointer-events: none;transition:opacity 0.18s ease,- transform 0.18s ease;+ transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);z-index: 1000;}.home-nav .nav-trigger[aria-expanded='true'] + .nav-menu {opacity: 1;- transform: translateY(0);+ transform: translateY(0) scale(1);pointer-events: auto;}@@ -287,50 +445,57 @@flex-direction: column;gap: 2px;padding: 10px 12px;- border-radius: 8px;- color: rgba(255, 255, 255, 0.85);+ border-radius: 9px;+ color: rgba(255, 255, 255, 0.88);text-decoration: none;transition:background 0.15s ease,- color 0.15s ease;+ color 0.15s ease,+ transform 0.15s ease;}.home-nav .nav-menu a:hover,.home-nav .nav-menu a:focus-visible {- background: rgba(255, 255, 255, 0.06);+ background:+ linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(99, 102, 241, 0.06));color: #fff;+ transform: translateX(2px);}.home-nav .nav-mi-title {font-size: 0.92rem;font-weight: 500;letter-spacing: 0.005em;+ display: inline-flex;+ align-items: center;+ gap: 6px;}.home-nav .nav-mi-sub {font-size: 0.78rem;- color: rgba(255, 255, 255, 0.45);+ color: rgba(255, 255, 255, 0.5);font-weight: 400;}.home-nav .nav-menu a:hover .nav-mi-sub,.home-nav .nav-menu a:focus-visible .nav-mi-sub {- color: rgba(255, 255, 255, 0.65);+ color: rgba(255, 255, 255, 0.72);}-/* ── Tablet: tighten gap, flip dropdowns right-aligned ── */+/* ── Tablet: tighten gap, flip dropdowns right-aligned ─────────────── */@media (min-width: 769px) and (max-width: 1024px) {.home-nav .nav-root {- gap: var(--space-md, 1rem);+ gap: 0.1rem;}.home-nav .nav-menu {left: auto;right: 0;+ transform-origin: top right;}}-/* ── Mobile: hamburger + slide-down panel ── */+/* ── Mobile: hamburger + slide-down panel ──────────────────────────── */@media (max-width: 768px) {.home-nav {@@ -355,25 +520,28 @@align-items: stretch !important;gap: 2px !important;padding: 10px;- background: rgba(14, 12, 22, 0.97);- backdrop-filter: blur(24px) saturate(150%);- -webkit-backdrop-filter: blur(24px) saturate(150%);+ background:+ radial-gradient(120% 70% at 100% 0%, rgba(139, 92, 246, 0.16), transparent 55%),+ linear-gradient(180deg, rgba(18, 14, 28, 0.97), rgba(10, 8, 16, 0.97));+ backdrop-filter: blur(24px) saturate(160%);+ -webkit-backdrop-filter: blur(24px) saturate(160%);border: 1px solid rgba(255, 255, 255, 0.08);border-radius: 14px;box-shadow:+ 0 1px 0 rgba(255, 255, 255, 0.05) inset,0 24px 48px -12px rgba(0, 0, 0, 0.7),- 0 8px 16px -8px rgba(0, 0, 0, 0.5);+ 0 8px 16px -8px rgba(99, 102, 241, 0.2);z-index: 999;}.home-nav .nav-root.is-open {display: flex !important;- animation: nav-mobile-in 0.18s ease forwards;+ animation: nav-mobile-in 0.2s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;}@keyframes nav-mobile-in {- from { opacity: 0; transform: translateY(-8px); }- to { opacity: 1; transform: translateY(0); }+ from { opacity: 0; transform: translateY(-8px) scale(0.98); }+ to { opacity: 1; transform: translateY(0) scale(1); }}.home-nav .nav-item {@@ -386,17 +554,23 @@align-items: center;width: 100%;padding: 10px 12px;- border-radius: 8px;+ border-radius: 9px;font-size: 0.95rem;- color: rgba(255, 255, 255, 0.75);+ color: rgba(255, 255, 255, 0.78);transition: background 0.15s ease, color 0.15s ease;box-sizing: border-box;}+ /* No gradient underline on mobile — accordions read better as solid rows */+ .home-nav .nav-item > a::after,+ .home-nav .nav-trigger::after {+ display: none;+ }+.home-nav .nav-item > a:hover,.home-nav .nav-trigger:hover,.home-nav .nav-trigger[aria-expanded='true'] {- background: rgba(255, 255, 255, 0.05);+ background: rgba(139, 92, 246, 0.1);color: #fff;}@@ -412,7 +586,7 @@pointer-events: auto !important;display: none;min-width: 0;- padding: 2px 0 2px 12px;+ padding: 2px 0 4px 12px;background: none;backdrop-filter: none;-webkit-backdrop-filter: none;@@ -430,11 +604,16 @@border-radius: 7px;}+ .home-nav .nav-menu a:hover {+ transform: none;+ }+.home-nav .nav-cta {display: block;text-align: center;margin-top: 6px;- padding: 10px 16px;+ padding: 11px 16px;+ border-radius: 12px;}.home-nav .nav-user {