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
/* ── Feature landing pages shared template ──────────────────────────────── */
/* Used by pages/features/*.html — /features/forge, /features/scan, etc. */
/* Pulls exclusively from the design tokens in style.css :root. */
/* ── Layout shell ─────────────────────────────────────────────────────── */
/* The page canvas has to come from the same token body uses. A hardcoded #000
here kept the background black while [data-theme="light"] flipped --ink to
near-black ink, which left the whole page dark-on-dark and unreadable for
anyone who picked the light theme. */
.fl-page {
display: flex;
flex-direction: column;
min-height: 100vh;
background: var(--bg-0);
color: var(--ink);
}
.fl-main {
flex: 1;
}
/* ── Section common ────────────────────────────────────────────────────── */
.fl-section {
max-width: 1100px;
margin: 0 auto;
padding: var(--space-2xl) var(--space-md);
}
@media (max-width: 768px) {
.fl-section {
padding: var(--space-xl) var(--space-md);
}
}
/* ── Hero ──────────────────────────────────────────────────────────────── */
.fl-hero {
position: relative;
overflow: hidden;
border-bottom: 1px solid var(--stroke);
}
.fl-hero::before {
content: '';
position: absolute;
inset: 0;
background:
radial-gradient(ellipse 900px 500px at 50% -60px, rgba(255,255,255,0.04) 0%, transparent 70%),
radial-gradient(ellipse 600px 300px at 20% 100%, rgba(255,255,255,0.02) 0%, transparent 60%);
pointer-events: none;
}
.fl-hero-inner {
max-width: 1100px;
margin: 0 auto;
padding: var(--space-2xl) var(--space-md) var(--space-xl);
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-xl);
align-items: center;
}
@media (max-width: 768px) {
.fl-hero-inner {
grid-template-columns: 1fr;
padding: var(--space-xl) var(--space-md);
}
}
.fl-hero-copy {
display: flex;
flex-direction: column;
gap: var(--space-md);
}
.fl-eyebrow {
display: inline-flex;
align-items: center;
gap: 0.5rem;
font-family: var(--font-mono);
font-size: var(--text-xs);
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--ink-dim);
border: 1px solid var(--stroke);
border-radius: var(--radius-pill);
padding: 0.3rem 0.75rem;
width: fit-content;
}
.fl-eyebrow-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--accent);
opacity: 0.7;
}
.fl-hero h1 {
font-family: var(--font-display);
font-size: clamp(1.8rem, 4.5vw, 3rem);
font-weight: 800;
line-height: 1.1;
letter-spacing: -0.025em;
color: var(--ink);
margin: 0;
}
.fl-hero-sub {
font-size: var(--text-lg);
line-height: 1.6;
color: var(--ink-dim);
margin: 0;
max-width: 46ch;
}
.fl-hero-actions {
display: flex;
flex-wrap: wrap;
gap: var(--space-sm);
margin-top: var(--space-xs);
}
/* Primary CTA button */
.fl-btn-primary {
display: inline-flex;
align-items: center;
gap: 0.4rem;
background: var(--accent);
/* Light theme remaps --accent to a real blue and --btn-primary-fg to white;
a hardcoded black here dropped the CTA to 4.06:1 on that fill. */
color: var(--btn-primary-fg, #0a0a0a);
font-family: var(--font-body);
font-size: var(--text-sm);
font-weight: 700;
letter-spacing: 0.02em;
border: none;
border-radius: var(--btn-radius);
padding: var(--space-sm) var(--space-lg);
cursor: pointer;
text-decoration: none;
transition: opacity var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
.fl-btn-primary:hover {
opacity: 0.88;
transform: translateY(-1px);
}
.fl-btn-primary:active {
opacity: 0.75;
transform: translateY(0);
}
.fl-btn-primary:focus-visible {
outline: 2px solid var(--focus-ring-color);
outline-offset: 3px;
}
/* Ghost / secondary button */
.fl-btn-ghost {
display: inline-flex;
align-items: center;
gap: 0.4rem;
background: var(--surface-2);
color: var(--ink);
font-family: var(--font-body);
font-size: var(--text-sm);
font-weight: 600;
border: 1px solid var(--stroke-strong);
border-radius: var(--btn-radius);
padding: var(--space-sm) var(--space-lg);
cursor: pointer;
text-decoration: none;
transition: background var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
.fl-btn-ghost:hover {
background: var(--surface-3);
border-color: var(--stroke-strong);
transform: translateY(-1px);
}
.fl-btn-ghost:active {
background: var(--surface-3);
transform: translateY(0);
}
.fl-btn-ghost:focus-visible {
outline: 2px solid var(--focus-ring-color);
outline-offset: 3px;
}
/* ── Hero preview pane ──────────────────────────────────────────────────── */
.fl-hero-preview {
position: relative;
border-radius: var(--radius-card);
border: 1px solid var(--stroke);
background: var(--surface-1);
overflow: hidden;
aspect-ratio: 4 / 3;
display: flex;
align-items: center;
justify-content: center;
}
@media (max-width: 768px) {
.fl-hero-preview {
aspect-ratio: 16 / 9;
order: -1;
}
}
/* The still render and the live viewer occupy the same box so the pane never
collapses or jumps between them. The still is the loading state and the
third-party-failure fallback; the viewer fades in over it once it is up. */
.fl-preview-still,
.fl-hero-preview model-viewer {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
background: transparent;
}
/* Captured at the shell's own 4/3 framing, so on a desktop pane the still and
the live render line up and the crossfade holds the avatar in place. */
.fl-preview-still {
object-fit: contain;
}
.fl-hero-preview model-viewer {
opacity: 0;
transition: opacity var(--duration-slow) var(--ease-standard);
--poster-color: transparent;
--progress-bar-color: var(--ink-dim);
}
.fl-hero-preview[data-state="ready"] model-viewer {
opacity: 1;
}
.fl-hero-preview[data-state="ready"] .fl-preview-still {
display: none;
}
/* A viewer that never came up must not sit on top of the still swallowing
drags that will never do anything. */
.fl-hero-preview[data-state="still"] model-viewer {
display: none;
}
/* camera-controls puts a tab stop inside model-viewer's shadow root, where it
picks up only the UA's near-black 1px outline: invisible on this surface, and
unreachable from here because a selector cannot cross the shadow boundary.
:focus-within does see that focus, so the ring goes on the pane instead. */
.fl-hero-preview:focus-within {
outline: 2px solid var(--focus-ring-color);
outline-offset: 2px;
}
.fl-preview-label {
position: absolute;
bottom: var(--space-sm);
left: var(--space-sm);
font-family: var(--font-mono);
font-size: var(--text-xs);
color: var(--ink-dim);
background: var(--surface-2);
border: 1px solid var(--stroke);
border-radius: var(--radius-pill);
padding: 0.2rem 0.6rem;
backdrop-filter: blur(8px);
max-width: calc(100% - var(--space-sm) * 2);
}
.fl-preview-state {
display: none;
}
.fl-hero-preview[data-state="loading"] .fl-preview-state[data-when="loading"],
.fl-hero-preview[data-state="ready"] .fl-preview-state[data-when="ready"],
.fl-hero-preview[data-state="still"] .fl-preview-state[data-when="still"] {
display: inline;
}
/* ── How it works ──────────────────────────────────────────────────────── */
.fl-how {
border-top: 1px solid var(--stroke);
}
.fl-section-label {
font-family: var(--font-mono);
font-size: var(--text-xs);
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--ink-dim);
margin-bottom: var(--space-md);
}
.fl-how h2 {
font-family: var(--font-display);
font-size: clamp(1.4rem, 3vw, 2rem);
font-weight: 700;
letter-spacing: -0.02em;
color: var(--ink);
margin: 0 0 var(--space-xl);
}
.fl-steps {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--space-md);
}
@media (max-width: 768px) {
.fl-steps {
grid-template-columns: 1fr;
gap: var(--space-sm);
}
}
.fl-step {
background: var(--surface-1);
border: 1px solid var(--stroke);
border-radius: var(--radius-card);
padding: var(--space-lg);
display: flex;
flex-direction: column;
gap: var(--space-sm);
transition: border-color var(--duration-base) var(--ease-standard), background var(--duration-base) var(--ease-standard);
}
.fl-step:hover {
border-color: var(--stroke-strong);
background: var(--surface-2);
}
.fl-step-num {
font-family: var(--font-mono);
font-size: var(--text-xs);
font-weight: 700;
color: var(--accent);
opacity: 0.5;
letter-spacing: 0.1em;
}
.fl-step h3 {
font-family: var(--font-display);
font-size: var(--text-lg);
font-weight: 700;
color: var(--ink);
margin: 0;
line-height: 1.3;
}
.fl-step p {
font-size: var(--text-base);
line-height: 1.6;
color: var(--ink-dim);
margin: 0;
}
/* ── Feature highlight cards (optional second preview) ─────────────────── */
.fl-highlights {
border-top: 1px solid var(--stroke);
}
.fl-highlights h2 {
font-family: var(--font-display);
font-size: clamp(1.4rem, 3vw, 2rem);
font-weight: 700;
letter-spacing: -0.02em;
color: var(--ink);
margin: 0 0 var(--space-xl);
}
.fl-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: var(--space-md);
}
.fl-card {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: var(--card-radius);
padding: var(--card-pad);
display: flex;
flex-direction: column;
gap: var(--space-sm);
transition: border-color var(--duration-base) var(--ease-standard);
}
.fl-card:hover {
border-color: var(--card-border-hover);
}
.fl-card-icon {
font-size: 1.5rem;
line-height: 1;
}
.fl-card h3 {
font-family: var(--font-display);
font-size: var(--text-lg);
font-weight: 700;
color: var(--ink);
margin: 0;
}
.fl-card p {
font-size: var(--text-base);
line-height: 1.6;
color: var(--ink-dim);
margin: 0;
}
/* ── Live demo / preview section ───────────────────────────────────────── */
.fl-demo {
border-top: 1px solid var(--stroke);
}
.fl-demo h2 {
font-family: var(--font-display);
font-size: clamp(1.4rem, 3vw, 2rem);
font-weight: 700;
letter-spacing: -0.02em;
color: var(--ink);
margin: 0 0 var(--space-md);
}
.fl-demo-wrap {
border: 1px solid var(--stroke);
border-radius: var(--radius-card);
background: var(--surface-1);
overflow: hidden;
}
.fl-demo-bar {
display: flex;
align-items: center;
gap: var(--space-sm);
padding: var(--space-sm) var(--space-md);
border-bottom: 1px solid var(--stroke);
background: var(--surface-2);
}
.fl-demo-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--stroke-strong);
}
.fl-demo-title {
font-family: var(--font-mono);
font-size: var(--text-xs);
color: var(--ink-dim);
}
.fl-demo-content {
position: relative;
min-height: 320px;
}
/* ── FAQ ───────────────────────────────────────────────────────────────── */
.fl-faq {
border-top: 1px solid var(--stroke);
}
.fl-faq h2 {
font-family: var(--font-display);
font-size: clamp(1.4rem, 3vw, 2rem);
font-weight: 700;
letter-spacing: -0.02em;
color: var(--ink);
margin: 0 0 var(--space-xl);
}
.fl-faq-list {
display: flex;
flex-direction: column;
gap: 0;
border: 1px solid var(--stroke);
border-radius: var(--radius-card);
overflow: hidden;
}
.fl-faq-item {
border-bottom: 1px solid var(--stroke);
}
.fl-faq-item:last-child {
border-bottom: none;
}
/* The question is the panel's heading, so it carries an <h3> for the document
outline. The heading itself contributes no box of its own. */
.fl-faq-h {
margin: 0;
font: inherit;
}
.fl-faq-q {
width: 100%;
background: var(--surface-1);
border: none;
color: var(--ink);
font-family: var(--font-body);
font-size: var(--text-base);
font-weight: 600;
line-height: 1.5;
text-align: left;
padding: var(--space-md) var(--space-lg);
cursor: pointer;
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-md);
transition: background var(--duration-fast) var(--ease-standard);
}
.fl-faq-q:hover {
background: var(--surface-2);
}
.fl-faq-q:focus-visible {
outline: 2px solid var(--focus-ring-color);
outline-offset: -2px;
}
.fl-faq-q[aria-expanded="true"] {
background: var(--surface-2);
}
.fl-faq-chevron {
flex-shrink: 0;
width: 16px;
height: 16px;
color: var(--ink-dim);
transition: transform var(--duration-base) var(--ease-standard);
}
.fl-faq-q[aria-expanded="true"] .fl-faq-chevron {
transform: rotate(180deg);
}
.fl-faq-a {
display: none;
padding: 0 var(--space-lg) var(--space-md);
font-size: var(--text-base);
line-height: 1.7;
color: var(--ink-dim);
background: var(--surface-1);
}
.fl-faq-a p {
margin: 0;
}
.fl-faq-link {
color: var(--ink);
}
.fl-faq-a.open {
display: block;
animation: fl-faq-reveal 0.22s ease both;
}
@keyframes fl-faq-reveal {
from {
opacity: 0;
transform: translateY(-4px);
}
to {
opacity: 1;
transform: none;
}
}
/* ── Final CTA band ────────────────────────────────────────────────────── */
.fl-cta-band {
border-top: 1px solid var(--stroke);
background: var(--surface-1);
}
.fl-cta-inner {
max-width: 1100px;
margin: 0 auto;
padding: var(--space-2xl) var(--space-md);
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: var(--space-md);
}
.fl-cta-inner h2 {
font-family: var(--font-display);
font-size: clamp(1.6rem, 3.5vw, 2.5rem);
font-weight: 800;
letter-spacing: -0.025em;
color: var(--ink);
margin: 0;
}
.fl-cta-inner p {
font-size: var(--text-lg);
line-height: 1.6;
color: var(--ink-dim);
margin: 0;
max-width: 48ch;
}
.fl-cta-actions {
display: flex;
flex-wrap: wrap;
gap: var(--space-sm);
justify-content: center;
margin-top: var(--space-xs);
}
/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.fl-breadcrumb {
padding: var(--space-md) var(--space-md) 0;
max-width: 1100px;
margin: 0 auto;
font-size: var(--text-sm);
color: var(--ink-dim);
display: flex;
align-items: center;
gap: var(--space-xs);
}
.fl-breadcrumb a {
color: var(--ink-dim);
text-decoration: none;
transition: color var(--duration-fast);
}
.fl-breadcrumb a:hover {
color: var(--ink);
}
.fl-breadcrumb-sep {
opacity: 0.4;
}
.fl-breadcrumb-current {
color: var(--ink);
}
/* ── Responsive overrides ──────────────────────────────────────────────── */
@media (max-width: 480px) {
.fl-hero h1 {
font-size: 1.7rem;
}
.fl-hero-sub {
font-size: var(--text-base);
}
.fl-cta-inner h2 {
font-size: 1.6rem;
}
.fl-demo-content {
min-height: 220px;
}
}
/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
.fl-btn-primary,
.fl-btn-ghost,
.fl-faq-chevron,
.fl-hero-preview model-viewer,
.fl-step {
transition: none;
}
.fl-faq-a.open {
animation: none;
}
}