Skip to content

The agent that turns websites into APIs!

Redesign marketing homepage with hand-crafted hero + section art

kalil0321d56cbe629fb4
diff --git a/website/.gitignore b/website/.gitignore
index b03b10c..c807649 100644
--- a/website/.gitignore
+++ b/website/.gitignore
@@ -31,4 +31,6 @@ next-env.d.ts
# cloudflare / opennext
.open-next/
.wrangler/
-cloudflare-env.d.ts
\ No newline at end of file
+cloudflare-env.d.ts
+# brainstorming visual-companion scratch
+/.superpowers/
diff --git a/website/public/illustrations/hero-isoB-0.webp b/website/public/illustrations/hero-isoB-0.webp
new file mode 100644
index 0000000..da75247
Binary files /dev/null and b/website/public/illustrations/hero-isoB-0.webp differ
diff --git a/website/src/app/(home)/page.tsx b/website/src/app/(home)/page.tsx
index 719c13c..2527604 100644
--- a/website/src/app/(home)/page.tsx
+++ b/website/src/app/(home)/page.tsx
@@ -1,12 +1,13 @@
import Link from 'next/link';
+import type { CSSProperties, ReactNode } from 'react';
import type { Metadata } from 'next';
import { ArrowRightIcon } from 'lucide-react';
import { appName, appTagline, gitConfig, githubUrl, pypiUrl, siteUrl } from '@/lib/shared';
-import { HeroCyclingPhrase } from '@/components/hero-cycling-phrase';
import { InstallCommand } from '@/components/install-command';
import { BuiltInTheOpen } from '@/components/built-in-the-open';
-import { FeatureMarquee } from '@/components/feature-marquee';
import { WorksWithAgents } from '@/components/works-with-agents';
+import { Reveal } from '@/components/reveal';
+import { StepBrowse, StepCapture, StepGenerate, StepReview } from '@/components/step-illustrations';
import { JsonLd } from '@/components/json-ld';
const homeDescription =
@@ -76,10 +77,7 @@ export default function HomePage() {
return (
<main className="flex-1">
<JsonLd data={softwareJsonLd} />
- <div className="flex flex-col h-[calc(100svh-3.5rem)] min-h-[640px]">
- <Hero />
- <FeatureMarquee />
- </div>
+ <Hero />
<HowItWorks />
<WorksWithAgents />
<BuiltInTheOpen />
@@ -91,21 +89,52 @@ export default function HomePage() {
/* ───────────────────────────── Hero ───────────────────────────── */
function Hero() {
+ /* A strip of matte scotch tape holding each note. */
+ const Tape = () => (
+ <span
+ aria-hidden
+ style={{ position: 'absolute', top: -9, left: '50%', transform: 'translateX(-50%) rotate(-3deg)', width: 58, height: 20, background: 'rgba(245,240,220,0.5)', border: '1px solid rgba(180,175,150,0.35)', boxShadow: '0 1px 2px rgba(0,0,0,0.08)' }}
+ />
+ );
+ const note = (bg: string, rot: number, w: number, d: number, children: ReactNode) => (
+ <div
+ className="la-note"
+ style={{ position: 'relative', background: bg, width: w, padding: '22px 20px 28px', boxShadow: '0 10px 22px rgba(0,0,0,0.20)', textAlign: 'center', '--r': `${rot}deg`, '--d': `${d}s` } as CSSProperties}
+ >
+ <Tape />
+ {children}
+ </div>
+ );
+
return (
- <section className="relative overflow-hidden flex-1 flex items-center">
- <span className="absolute top-10 right-10 hidden md:block font-display italic text-6xl text-fd-primary/45 select-none -rotate-12">*</span>
- <span className="absolute bottom-20 left-10 hidden md:block font-display italic text-4xl text-ink/20 select-none rotate-12">*</span>
+ <section className="relative overflow-hidden bg-cream min-h-[calc(100svh-3.5rem)] flex items-center justify-center px-6 sm:px-10 py-14">
+ <h1 className="sr-only">Turn websites into APIs.</h1>
- <div className="relative w-full mx-auto max-w-7xl px-6 lg:px-10 py-12">
- <div className="mx-auto max-w-5xl text-center">
- <InstallCommand />
+ <Reveal className="relative z-10">
+ <div className="flex flex-col items-center gap-12">
+ {/* Neo-brutalist print with the two notes taped on its corners. */}
+ <div className="la-rise">
+ <div className="relative" style={{ transform: 'rotate(-1.5deg)' }}>
+ <div style={{ width: 'clamp(260px, 62vw, 520px)', background: '#fff', padding: 12, border: '3px solid var(--color-ink)', boxShadow: '10px 10px 0 0 var(--color-fd-primary)' }}>
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img src="/illustrations/hero-isoB-0.webp" alt="Reverse API Engineer turning a website into a typed client" className="block h-auto w-full" />
+ </div>
+ <div className="absolute z-10" style={{ top: -26, left: -34 }}>
+ {note('#fff27a', -4, 240, 0.3,
+ <p className="font-display font-medium" style={{ fontSize: '1.9rem', lineHeight: 1, color: '#1f1f1f', letterSpacing: '-0.02em' }}>Turn websites</p>,
+ )}
+ </div>
+ <div className="absolute z-10" style={{ bottom: 24, right: -40 }}>
+ {note('#ffb3d1', 5, 250, 0.45,
+ <p className="font-display italic font-medium" style={{ fontSize: '1.9rem', lineHeight: 1, color: '#b3005f', letterSpacing: '-0.02em', fontVariationSettings: "'opsz' 144, 'SOFT' 100, 'WONK' 1" }}>into APIs.</p>,
+ )}
+ </div>
+ </div>
+ </div>
- <h1 className="hero-display mt-8">
- Browse a site.<br />
- <HeroCyclingPhrase />
- </h1>
+ {note('var(--color-fd-card)', 2, 360, 0.6, <InstallCommand />)}
- <div className="mt-10 inline-flex flex-wrap items-center justify-center gap-3">
+ <div className="la-rise inline-flex flex-wrap items-center justify-center gap-3" style={{ '--d': '0.7s' } as CSSProperties}>
<Link href="/docs" className="btn-primary">
Read the docs
<ArrowRightIcon className="size-4" />
@@ -116,54 +145,48 @@ function Hero() {
</Link>
</div>
</div>
- </div>
+ </Reveal>
</section>
);
}
/* ─────────────────────────── How it works ───────────────────────── */
+const HIW_STEPS = [
+ { Ill: StepBrowse, title: 'Browse', body: 'Open the CLI. Drive the browser, or let the agent.' },
+ { Ill: StepCapture, title: 'Capture', body: 'HAR records every request and response.' },
+ { Ill: StepGenerate, title: 'Generate', body: 'Your model writes a typed client.' },
+ { Ill: StepReview, title: 'Review', body: 'Audit the output, then commit it.' },
+];
+const HIW_TINT = ['#ffe1eb', '#d6efff', '#d5f1de', '#ffe7d4'];
+const HIW_ROT = ['-rotate-3', 'rotate-2', '-rotate-2', 'rotate-3'];
+
function HowItWorks() {
- const steps = [
- { num: '1', title: 'Browse', body: 'Open the CLI. Drive the browser yourself, or let the agent.' },
- { num: '2', title: 'Capture', body: 'HAR records every request, header, and response body.' },
- { num: '3', title: 'Generate', body: 'Your model reads the HAR and writes a typed client.' },
- { num: '4', title: 'Review', body: 'Audit the output, then commit it like any other code.' },
- ];
return (
<section className="bg-orange relative overflow-hidden min-h-[100svh] flex items-center">
- <div className="relative w-full mx-auto max-w-7xl px-6 lg:px-10 py-24 md:py-36">
+ <div className="relative w-full mx-auto max-w-7xl px-6 lg:px-10 py-24 md:py-32">
<div className="mx-auto max-w-2xl text-center">
<h2 className="section-display mt-3">How it works?</h2>
</div>
- {/* Alternating spine — steps zig-zag off a vertical center line */}
- <div className="relative mx-auto max-w-3xl mt-16 md:mt-20">
- <div className="absolute left-4 md:left-1/2 top-2 bottom-2 w-px -translate-x-1/2 bg-ink/15" />
- <ol className="flex flex-col gap-10 md:gap-14">
- {steps.map((s, i) => {
- const right = i % 2 === 1;
- return (
- <li
- key={s.num}
- className="relative pl-12 md:pl-0 md:grid md:grid-cols-2 md:gap-10"
- >
- <span className="absolute left-4 md:left-1/2 top-1.5 size-3 -translate-x-1/2 rounded-full bg-fd-primary ring-4 ring-[var(--color-orange)]" />
- <div
- className={
- right
- ? 'md:col-start-2 md:pl-10 md:text-left'
- : 'md:col-start-1 md:pr-10 md:text-right'
- }
- >
- <h3 className="font-display text-2xl tracking-tight text-ink">{s.title}</h3>
- <p className="mt-2 text-sm leading-relaxed text-ink-soft">{s.body}</p>
+ {/* Polaroid wall — each step is an instant photo, pinned with tape. */}
+ <Reveal>
+ <div className="mt-14 md:mt-16 flex flex-wrap items-start justify-center gap-7">
+ {HIW_STEPS.map(({ Ill, title, body }, i) => (
+ <div key={title} className="hiw-pol-wrap" style={{ '--d': `${i * 0.12}s` } as CSSProperties}>
+ <div className={`${HIW_ROT[i]} bg-white p-2.5 pb-0 shadow-[0_14px_30px_rgba(0,0,0,0.16)] transition-transform duration-200 hover:-translate-y-2 hover:rotate-0`} style={{ width: 184 }}>
+ <div className="grid h-36 place-items-center" style={{ background: HIW_TINT[i] }}>
+ <div className="w-[112px]"><Ill /></div>
</div>
- </li>
- );
- })}
- </ol>
- </div>
+ <div className="py-4 text-center">
+ <p className="font-display italic text-xl" style={{ color: '#1f1f1f', fontVariationSettings: "'opsz' 144, 'SOFT' 100, 'WONK' 1" }}>{title}</p>
+ <p className="mt-1 px-2 text-[11px] leading-snug" style={{ color: 'rgba(31,31,31,0.6)' }}>{body}</p>
+ </div>
+ </div>
+ </div>
+ ))}
+ </div>
+ </Reveal>
</div>
</section>
);
@@ -189,98 +212,75 @@ function FinalCTA() {
</span>
<div className="relative w-full mx-auto max-w-6xl px-6 lg:px-10 py-28 md:py-40">
- <div className="grid md:grid-cols-[1.1fr_1fr] gap-12 md:gap-16 items-center">
- {/* Left: headline + CTAs */}
- <div>
- <h2 className="hero-display text-left">
- Skip the<br /><em>scraping.</em>
- </h2>
- <p className="mt-8 max-w-md text-base md:text-lg text-ink-soft leading-relaxed">
- Install. Prompt. Get your Python client
- back.
- </p>
- <div className="mt-10 inline-flex flex-wrap items-center gap-3">
- <Link href="/docs/quick-start" className="btn-primary">
- Get started
- <ArrowRightIcon className="size-4" />
- </Link>
- <Link href={githubUrl} target="_blank" className="btn-secondary">
- <GithubIcon className="size-4" />
- View on GitHub
- </Link>
+ <Reveal>
+ <div className="grid md:grid-cols-[1.1fr_1fr] gap-12 md:gap-16 items-center">
+ {/* Left: headline + CTAs */}
+ <div className="la-rise">
+ <h2 className="hero-display text-left">
+ Skip the<br /><em>scraping.</em>
+ </h2>
+ <p className="mt-8 max-w-md text-base md:text-lg text-ink-soft leading-relaxed">
+ Install. Prompt. Get your typed client back.
+ </p>
+ <div className="mt-10 inline-flex flex-wrap items-center gap-3">
+ <Link href="/docs/quick-start" className="btn-primary">
+ Get started
+ <ArrowRightIcon className="size-4" />
+ </Link>
+ <Link href={githubUrl} target="_blank" className="btn-secondary">
+ <GithubIcon className="size-4" />
+ View on GitHub
+ </Link>
+ </div>
</div>
- </div>
- <BoardingPass />
- </div>
+ <PostItCard />
+ </div>
+ </Reveal>
</div>
</section>
);
}
-function BoardingPass() {
- const BARS = [4, 2, 5, 1, 3, 4, 2, 1, 3, 2, 5, 1, 3, 2];
+/* The "scraping pains you skip" note, resolving to the typed-client payoff. */
+function PostItBody() {
+ const pains = ['scraping', 'brittle selectors', 'guessing endpoints'];
+ return (
+ <>
+ <ul
+ className="font-display"
+ style={{ fontWeight: 500, fontSize: '1.35rem', lineHeight: 1.34, listStyle: 'none', padding: 0, margin: 0, fontVariationSettings: "'opsz' 144, 'SOFT' 50, 'WONK' 0" }}
+ >
+ {pains.map((p) => (
+ <li key={p} style={{ textDecoration: 'line-through', textDecorationColor: 'var(--color-fd-primary)', textDecorationThickness: '2px', color: 'rgba(31,31,31,0.5)' }}>
+ {p}
+ </li>
+ ))}
+ </ul>
+ <p
+ className="font-display"
+ style={{ fontWeight: 500, fontSize: '1.75rem', lineHeight: 1.1, color: '#1f1f1f', letterSpacing: '-0.02em', marginTop: 18, fontVariationSettings: "'opsz' 144, 'SOFT' 60, 'WONK' 1" }}
+ >
+ just a{' '}
+ <em style={{ fontStyle: 'italic', color: 'var(--color-fd-primary)', fontVariationSettings: "'opsz' 144, 'SOFT' 100, 'WONK' 1" }}>typed client.</em>
+ </p>
+ </>
+ );
+}
+
+/* Mint post-it, pinned with scotch tape — a fixed physical object on the
+ themed section, so it looks the same in light and dark. */
+function PostItCard() {
return (
<div
- style={{
- display: 'flex',
- borderRadius: 12,
- overflow: 'hidden',
- boxShadow: '0 16px 48px rgba(0,0,0,0.32), 0 4px 12px rgba(0,0,0,0.16)',
- fontFamily: 'var(--font-jetbrains-mono, monospace)',
- }}
+ className="justify-self-center"
+ style={{ position: 'relative', width: 'clamp(260px, 34vw, 340px)', background: '#c4edd0', padding: '40px 30px 34px', transform: 'rotate(-3deg)', boxShadow: '0 18px 40px rgba(0,0,0,0.26), 0 4px 10px rgba(0,0,0,0.14)' }}
>
- {/* Main body */}
- <div style={{ flex: 1, background: '#0d0a07', padding: '22px 22px 22px 20px' }}>
- <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'flex-start', marginBottom: 20 }}>
- <div>
- <p style={{ fontSize: 7, letterSpacing: '0.22em', color: 'rgba(255,247,240,0.3)', textTransform: 'uppercase', marginBottom: 6 }}>From</p>
- <p style={{ fontSize: 26, fontWeight: 800, color: 'rgba(255,247,240,0.9)', letterSpacing: '-0.04em', lineHeight: 1 }}>RAW</p>
- <p style={{ fontSize: 7, color: 'rgba(255,247,240,0.2)', letterSpacing: '0.15em', marginTop: 5 }}>HTTP CHAOS</p>
- </div>
- <div style={{ display: 'flex', alignItems: 'center', paddingTop: 14, gap: 4 }}>
- <div style={{ height: 1, width: 20, background: 'rgba(229,13,117,0.4)' }} />
- <span style={{ color: '#e50d75', fontSize: 18, lineHeight: 1 }}>→</span>
- </div>
- <div style={{ textAlign: 'right' }}>
- <p style={{ fontSize: 7, letterSpacing: '0.22em', color: 'rgba(255,247,240,0.3)', textTransform: 'uppercase', marginBottom: 6 }}>To</p>
- <p style={{ fontSize: 26, fontWeight: 800, color: '#e50d75', letterSpacing: '-0.04em', lineHeight: 1 }}>TYPED</p>
- <p style={{ fontSize: 7, color: 'rgba(255,247,240,0.2)', letterSpacing: '0.15em', marginTop: 5 }}>PYTHON CLIENT</p>
- </div>
- </div>
- <div style={{ display: 'flex', gap: 24, borderTop: '1px solid rgba(255,247,240,0.07)', paddingTop: 16 }}>
- {[['GATE', 'PY'], ['FLIGHT', 'rae-gen'], ['DURATION', '5 MIN']].map(([k, v]) => (
- <div key={k}>
- <p style={{ fontSize: 6.5, letterSpacing: '0.22em', color: 'rgba(255,247,240,0.26)', textTransform: 'uppercase', marginBottom: 5 }}>{k}</p>
- <p style={{ fontSize: 12, color: 'rgba(255,247,240,0.8)' }}>{v}</p>
- </div>
- ))}
- </div>
- </div>
-
- {/* Dashed divider */}
- <div style={{ position: 'relative', width: 22, background: '#0d0a07', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
- <div style={{ position: 'absolute', top: -10, left: 3, width: 16, height: 16, borderRadius: '50%', background: 'rgba(30,25,20,0.9)' }} />
- <div style={{ height: '78%', width: 0, borderLeft: '1.5px dashed rgba(255,247,240,0.09)' }} />
- <div style={{ position: 'absolute', bottom: -10, left: 3, width: 16, height: 16, borderRadius: '50%', background: 'rgba(30,25,20,0.9)' }} />
- </div>
-
- {/* Stub */}
- <div style={{ width: 96, background: '#14110e', padding: '22px 14px', display: 'flex', flexDirection: 'column', gap: 16, alignItems: 'center' }}>
- <div style={{ textAlign: 'center' }}>
- <p style={{ fontSize: 6.5, letterSpacing: '0.2em', color: 'rgba(255,247,240,0.26)', textTransform: 'uppercase', marginBottom: 5 }}>seat</p>
- <p style={{ fontSize: 26, fontWeight: 800, color: '#e50d75', lineHeight: 1 }}>A1</p>
- </div>
- <div style={{ textAlign: 'center' }}>
- <p style={{ fontSize: 6.5, letterSpacing: '0.2em', color: 'rgba(255,247,240,0.26)', textTransform: 'uppercase', marginBottom: 4 }}>class</p>
- <p style={{ fontSize: 10, color: 'rgba(255,247,240,0.6)', letterSpacing: '0.06em' }}>FIRST</p>
- </div>
- <div style={{ display: 'flex', gap: 2, alignItems: 'flex-end', marginTop: 'auto' }}>
- {BARS.map((h, i) => (
- <div key={i} style={{ width: 2.5, height: h * 4, background: 'rgba(255,247,240,0.4)', borderRadius: 1 }} />
- ))}
- </div>
- </div>
+ <span
+ aria-hidden
+ style={{ position: 'absolute', top: -11, left: '50%', transform: 'translateX(-50%) rotate(-3deg)', width: 70, height: 24, background: 'rgba(245,240,220,0.5)', border: '1px solid rgba(180,175,150,0.35)', boxShadow: '0 1px 2px rgba(0,0,0,0.08)' }}
+ />
+ <PostItBody />
</div>
);
}
diff --git a/website/src/app/global.css b/website/src/app/global.css
index 9840f13..93ff819 100644
--- a/website/src/app/global.css
+++ b/website/src/app/global.css
@@ -263,6 +263,197 @@ body {
color: var(--color-ink-soft);
}
+/* ─── Lab sticky-notes animations (N3) ──────────────────────────────────────
+ Notes drop in (la-note) then idle-sway; the CTA row rises in (la-rise).
+ Played when <Reveal> flips data-show to "true" on scroll-in. Disabled under
+ prefers-reduced-motion. --d = per-element delay, --r = resting rotation. */
+
+@keyframes la-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
+@keyframes la-drop {
+ 0% { opacity: 0; transform: translateY(-22px) rotate(var(--r, 0deg)); }
+ 100% { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)); }
+}
+@keyframes la-sway {
+ 0%, 100% { transform: rotate(var(--r, 0deg)); }
+ 50% { transform: rotate(calc(var(--r, 0deg) + 1.3deg)); }
+}
+
+[data-show="false"] .la-rise { opacity: 0; transform: translateY(18px); }
+[data-show="false"] .la-note { opacity: 0; }
+
+[data-show="true"] .la-rise { animation: la-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: var(--d, 0s); }
+[data-show="true"] .la-note {
+ animation:
+ la-drop 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) var(--d, 0s) both,
+ la-sway 4.6s ease-in-out calc(var(--d, 0s) + 0.55s) infinite;
+}
+
+@media (prefers-reduced-motion: reduce) {
+ [data-show] .la-rise, [data-show] .la-note {
+ animation: none !important;
+ opacity: 1 !important;
+ transform: none !important;
+ }
+}
+
+/* ─── Lab: same-UI animation variants ───────────────────────────────────────
+ The production "how it works" spine and the split-flap agent board, with
+ only the animation swapped per variant. Scroll-triggered (via [data-show])
+ for entrances; continuous/hover otherwise. Disabled under reduced-motion. */
+
+@keyframes lab-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
+
+/* SPINE v1 — draw: line draws down, dots pop, steps rise (scroll) */
+@keyframes sp-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
+[data-show="false"] .sp-v1-line { transform: scaleY(0); }
+[data-show="true"] .sp-v1-line { transform-origin: top; animation: sp-draw 0.9s cubic-bezier(0.16,1,0.3,1) both; }
+[data-show="false"] .sp-v1-dot { opacity: 0; transform: scale(0); }
+[data-show="true"] .sp-v1-dot { animation: lab-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) both; }
+[data-show="false"] .sp-v1-step { opacity: 0; transform: translateY(16px); }
+[data-show="true"] .sp-v1-step { animation: la-rise 0.6s cubic-bezier(0.16,1,0.3,1) both; }
+
+/* SPINE v2 — stagger: dots + steps fade/rise in sequence (scroll) */
+[data-show="false"] .sp-v2-dot, [data-show="false"] .sp-v2-step { opacity: 0; transform: translateY(14px); }
+[data-show="true"] .sp-v2-dot, [data-show="true"] .sp-v2-step { animation: la-rise 0.55s cubic-bezier(0.16,1,0.3,1) both; }
+
+/* SPINE v3 — fill: a pink line grows down forever; dots light as it passes */
+@keyframes sp-fill { 0% { transform: scaleY(0); } 80%, 100% { transform: scaleY(1); } }
+@keyframes sp-dotlight { 0%, 100% { opacity: 0.35; transform: scale(0.8); } 8%, 20% { opacity: 1; transform: scale(1.25); } }
+.sp-v3-fill { transform-origin: top; animation: sp-fill 5s ease-in-out infinite; }
+.sp-v3-dot { animation: sp-dotlight 5s ease-in-out infinite; }
+
+/* SPINE v4 — hover: steps dim until you hover their row */
+.sp-v4-step { opacity: 0.45; transition: opacity 0.25s ease; }
+.sp-v4-dot { transition: transform 0.25s ease, box-shadow 0.25s ease; }
+.sp-v4-row:hover .sp-v4-step { opacity: 1; }
+.sp-v4-row:hover .sp-v4-dot { transform: scale(1.5); box-shadow: 0 0 0 6px color-mix(in oklch, var(--color-fd-primary) 25%, transparent); }
+
+/* SPINE v5 — ripple: dots pulse down the spine forever */
+@keyframes sp-ripple { 0%, 70%, 100% { transform: scale(1); } 12% { transform: scale(1.6); } }
+.sp-v5-dot { animation: sp-ripple 3.4s ease-in-out infinite; }
+
+/* BOARD v1 — flip in (scroll) */
+@keyframes bd-flip { 0% { transform: rotateX(-90deg); opacity: 0; } 60% { transform: rotateX(12deg); opacity: 1; } 100% { transform: rotateX(0); } }
+[data-show="false"] .bd-v1-tile { opacity: 0; transform: rotateX(-90deg); }
+[data-show="true"] .bd-v1-tile { animation: bd-flip 0.5s cubic-bezier(0.3,1,0.4,1) both; }
+
+/* BOARD v2 — row cascade (scroll) */
+[data-show="false"] .bd-v2-row { opacity: 0; transform: translateY(14px); }
+[data-show="true"] .bd-v2-row { animation: la-rise 0.5s cubic-bezier(0.16,1,0.3,1) both; }
+
+/* BOARD v3 — live board: tiles re-flip on a loop */
+@keyframes bd-reflip { 0%, 86%, 100% { transform: rotateX(0); } 90% { transform: rotateX(-90deg); } 93% { transform: rotateX(0); } }
+.bd-v3-tile { animation: bd-reflip 6s ease-in-out infinite; }
+
+/* BOARD v4 — hover a row to flip its tiles */
+.bd-v4-tile { backface-visibility: hidden; }
+.bd-v4-row:hover .bd-v4-tile { animation: bd-flip 0.5s cubic-bezier(0.3,1,0.4,1) both; }
+
+/* BOARD v5 — sweep: tiles brighten left-to-right forever */
+@keyframes bd-sweep {
+ 0%, 100% { background-color: #1c1c1c; color: rgba(255,247,240,0.55); }
+ 12% { background-color: #3a2030; color: #fff7f0; }
+}
+.bd-v5-tile { animation: bd-sweep 4s linear infinite; }
+
+@media (prefers-reduced-motion: reduce) {
+ [data-show] .sp-v1-line, [data-show] .sp-v1-dot, [data-show] .sp-v1-step,
+ [data-show] .sp-v2-dot, [data-show] .sp-v2-step,
+ [data-show] .bd-v1-tile, [data-show] .bd-v2-row,
+ .sp-v3-fill, .sp-v3-dot, .sp-v5-dot, .bd-v3-tile, .bd-v5-tile {
+ animation: none !important;
+ opacity: 1 !important;
+ transform: none !important;
+ }
+ .sp-v4-step { opacity: 1 !important; }
+ .sp-v4-dot, .bd-v4-tile { transition: none !important; }
+}
+
+/* ─── HIW card iteration: flip on hover ─────────────────────────────────── */
+.hiw-flip { perspective: 1000px; }
+.hiw-flip-inner {
+ position: relative;
+ width: 100%;
+ height: 100%;
+ transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
+ transform-style: preserve-3d;
+}
+.hiw-flip:hover .hiw-flip-inner { transform: rotateY(180deg); }
+.hiw-flip-face {
+ position: absolute;
+ inset: 0;
+ backface-visibility: hidden;
+ -webkit-backface-visibility: hidden;
+}
+.hiw-flip-back { transform: rotateY(180deg); }
+@media (prefers-reduced-motion: reduce) {
+ .hiw-flip-inner { transition: none; }
+}
+
+/* ─── HIW polaroids — subtle motion ─────────────────────────────────────────
+ Polaroids fade + rise in on scroll (wrapper, so the card keeps its tilt);
+ the capture rec-dot pulses and the generate sparkle twinkles. */
+@keyframes hiw-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
+[data-show="false"] .hiw-pol-wrap { opacity: 0; transform: translateY(22px); }
+[data-show="true"] .hiw-pol-wrap { animation: hiw-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: var(--d, 0s); }
+
+/* SVG motion — each conveys the step's action (no pulsing dots). */
+@keyframes ill-cursor { from { transform: translate(0, 0); } to { transform: translate(7px, 6px); } }
+.ill-cursor { animation: ill-cursor 1.8s ease-in-out infinite alternate; }
+
+@keyframes ill-wave { to { stroke-dashoffset: -48; } }
+.ill-wave { stroke-dasharray: 4 4; animation: ill-wave 1.1s linear infinite; }
+
+@keyframes ill-spin { to { transform: rotate(360deg); } }
+.ill-spin { transform-box: fill-box; transform-origin: center; animation: ill-spin 9s linear infinite; }
+
+/* Generate — code lines write themselves on a loop. */
+@keyframes ill-write { 0%, 8% { stroke-dashoffset: 60; } 42%, 100% { stroke-dashoffset: 0; } }
+.ill-write { stroke-dasharray: 60; animation: ill-write 3.6s ease-in-out infinite; }
+
+@keyframes ill-mag { 0% { transform: translate(0, 0); } 50% { transform: translate(-24px, -12px); } 100% { transform: translate(0, 0); } }
+.ill-mag { animation: ill-mag 4.5s ease-in-out infinite; }
+
+@keyframes ill-draw { 0%, 15% { stroke-dashoffset: 40; } 45%, 100% { stroke-dashoffset: 0; } }
+.ill-check { stroke-dasharray: 40; animation: ill-draw 4.5s ease-in-out infinite; }
+
+@media (prefers-reduced-motion: reduce) {
+ [data-show] .hiw-pol-wrap { animation: none !important; opacity: 1 !important; transform: none !important; }
+ .ill-cursor, .ill-wave, .ill-spin, .ill-mag, .ill-check, .ill-write { animation: none !important; }
+ .ill-check, .ill-write { stroke-dasharray: none !important; }
+}
+
+/* ─── Lab: OSS section — same-UI animation variants ─────────────────────────
+ The "Open source · runs on your machine" joined card grid, animated.
+ Scroll entrances via [data-show]; hover otherwise. Reduced-motion safe. */
+@keyframes oss-fade { from { opacity: 0; } to { opacity: 1; } }
+[data-show="false"] .oss-fade { opacity: 0; }
+[data-show="true"] .oss-fade { animation: oss-fade 0.6s ease both; animation-delay: var(--d, 0s); }
+
+@keyframes oss-slide-l { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: none; } }
+@keyframes oss-slide-r { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
+@keyframes oss-slide-u { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
+[data-show="false"] .oss-sl { opacity: 0; transform: translateX(-34px); }
+[data-show="false"] .oss-su { opacity: 0; transform: translateY(26px); }
+[data-show="false"] .oss-sr { opacity: 0; transform: translateX(34px); }
+[data-show="true"] .oss-sl { animation: oss-slide-l 0.6s cubic-bezier(0.16,1,0.3,1) both; }
+[data-show="true"] .oss-su { animation: oss-slide-u 0.6s cubic-bezier(0.16,1,0.3,1) both; }
+[data-show="true"] .oss-sr { animation: oss-slide-r 0.6s cubic-bezier(0.16,1,0.3,1) both; }
+
+.oss-hov { position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease; }
+.oss-hov:hover { transform: translateY(-6px); box-shadow: 0 18px 36px -20px rgba(30,20,50,0.55); z-index: 10; }
+
+@keyframes oss-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
+[data-show="false"] .oss-wipe { clip-path: inset(0 100% 0 0); }
+[data-show="true"] .oss-wipe { animation: oss-wipe 0.9s cubic-bezier(0.16,1,0.3,1) both; }
+
+@media (prefers-reduced-motion: reduce) {
+ [data-show] .oss-fade, [data-show] .oss-sl, [data-show] .oss-su, [data-show] .oss-sr, [data-show] .oss-wipe {
+ animation: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important;
+ }
+ .oss-hov { transition: none !important; }
+}
+
/* ─── Display typography (Fraunces) ─────────────────────────────────────── */
.font-display {
diff --git a/website/src/components/built-in-the-open.tsx b/website/src/components/built-in-the-open.tsx
index 78aa267..85a5c4b 100644
--- a/website/src/components/built-in-the-open.tsx
+++ b/website/src/components/built-in-the-open.tsx
@@ -37,13 +37,19 @@ export function BuiltInTheOpen() {
<div
className="grid grid-cols-1 md:grid-cols-3 gap-px
bg-[rgba(30,20,50,0.14)] dark:bg-[rgba(248,244,255,0.08)]
- rounded-md overflow-hidden"
+ rounded-md"
>
- {CARDS.map((c) => (
+ {CARDS.map((c, i) => (
<div
key={c.id}
- className="bg-[#f2effa] dark:bg-[#1e1729]
- px-6 py-7 md:px-7 md:py-8 flex flex-col"
+ className={`oss-hov bg-[#f2effa] dark:bg-[#1e1729]
+ px-6 py-7 md:px-7 md:py-8 flex flex-col ${
+ i === 0
+ ? 'rounded-t-md md:rounded-tr-none md:rounded-bl-md'
+ : i === CARDS.length - 1
+ ? 'rounded-b-md md:rounded-bl-none md:rounded-tr-md'
+ : ''
+ }`}
>
<p
className="font-display italic text-xl leading-[1.15] tracking-[-0.02em]
diff --git a/website/src/components/reveal.tsx b/website/src/components/reveal.tsx
new file mode 100644
index 0000000..850fdab
--- /dev/null
+++ b/website/src/components/reveal.tsx
@@ -0,0 +1,41 @@
+'use client';
+
+import { useEffect, useRef, useState } from 'react';
+import type { ReactNode } from 'react';
+
+/* Flips data-show to "true" the first time it scrolls into view, so CSS
+ entrance animations (e.g. the polaroid rise, the sticky-note drop) play on
+ entry rather than on load. Reduced-motion is handled in the CSS. */
+export function Reveal({ children, className }: { children: ReactNode; className?: string }) {
+ const ref = useRef<HTMLDivElement>(null);
+ const [show, setShow] = useState(false);
+
+ useEffect(() => {
+ const el = ref.current;
+ if (!el) return;
+ if (typeof IntersectionObserver === 'undefined') {
+ setShow(true);
+ return;
+ }
+ const io = new IntersectionObserver(
+ (entries) => {
+ for (const e of entries) {
+ if (e.isIntersecting) {
+ setShow(true);
+ io.disconnect();
+ break;
+ }
+ }
+ },
+ { threshold: 0.2 },
+ );
+ io.observe(el);
+ return () => io.disconnect();
+ }, []);
+
+ return (
+ <div ref={ref} data-show={show ? 'true' : 'false'} className={className}>
+ {children}
+ </div>
+ );
+}
diff --git a/website/src/components/site-footer.tsx b/website/src/components/site-footer.tsx
index 9968af8..edd8269 100644
--- a/website/src/components/site-footer.tsx
+++ b/website/src/components/site-footer.tsx
@@ -10,15 +10,8 @@ const LINKS = [
export function SiteFooter() {
return (
- <footer
- style={{
- background: `
- radial-gradient(55% 70% at 100% 120%, rgba(229,13,117,0.28) 0%, transparent 60%),
- radial-gradient(45% 60% at 0% 110%, rgba(136,93,197,0.18) 0%, transparent 60%),
- #0d0a07
- `,
- }}
- >
+ <footer style={{ background: '#0d0a07' }}>
+
<div
style={{
padding: '60px 0 40px',
@@ -106,7 +99,7 @@ export function SiteFooter() {
href={`https://github.com/${gitConfig.user}`}
target="_blank"
style={{ color: 'inherit', textDecoration: 'underline', textUnderlineOffset: 3 }}
- className="hover:text-[rgba(255,247,240,0.6)] transition-colors"
+ className="hover:text-fd-primary transition-colors"
>
{gitConfig.user}
</Link>
diff --git a/website/src/components/step-illustrations.tsx b/website/src/components/step-illustrations.tsx
new file mode 100644
index 0000000..985ef81
--- /dev/null
+++ b/website/src/components/step-illustrations.tsx
@@ -0,0 +1,105 @@
+import type { ReactNode } from 'react';
+
+/* Spot illustrations for the four "how it works" steps, used as the photos
+ inside the polaroid frames. Colors are FIXED (not theme tokens) because a
+ printed photo looks the same under any lighting — only the wall behind it
+ (the section background) themes. Subtle motion comes from the `ill-*`
+ classes in global.css (reduced-motion safe). */
+
+const INK = '#241c14';
+const CARD = '#fffdf8';
+const PINK = '#e50d75';
+const ACCENT = '#ffe1eb';
+
+function Ink({ children, w = 1.6 }: { children: ReactNode; w?: number }) {
+ return (
+ <g fill="none" stroke={INK} strokeWidth={w} strokeLinecap="round" strokeLinejoin="round">
+ {children}
+ </g>
+ );
+}
+
+function Aster({ x, y, size = 22, className }: { x: number; y: number; size?: number; className?: string }) {
+ return (
+ <text x={x} y={y} className={className} fontFamily="var(--font-display)" fontStyle="italic" fontSize={size} fill={PINK} textAnchor="middle">
+ *
+ </text>
+ );
+}
+
+export function StepBrowse() {
+ return (
+ <svg viewBox="0 0 180 160" className="h-auto w-full" role="img" aria-label="Browse">
+ <rect x="22" y="26" width="136" height="98" rx="10" fill={CARD} stroke={INK} strokeWidth={1.6} />
+ <Ink>
+ <line x1="22" y1="46" x2="158" y2="46" />
+ <line x1="40" y1="64" x2="96" y2="64" opacity={0.4} />
+ <line x1="40" y1="78" x2="128" y2="78" opacity={0.4} />
+ <line x1="40" y1="92" x2="110" y2="92" opacity={0.4} />
+ </Ink>
+ <circle cx="34" cy="36" r="3" fill={PINK} />
+ <path className="ill-cursor" d="M104 96 L104 132 L114 122 L121 138 L127 135 L120 120 L134 120 Z" fill={CARD} stroke={INK} strokeWidth={1.6} strokeLinejoin="round" />
+ </svg>
+ );
+}
+
+export function StepCapture() {
+ return (
+ <svg viewBox="0 0 180 160" className="h-auto w-full" role="img" aria-label="Capture">
+ <rect x="34" y="20" width="112" height="120" rx="10" fill={CARD} stroke={INK} strokeWidth={1.6} />
+ <circle cx="124" cy="40" r="6" fill={PINK} />
+ <text x="46" y="44" fontFamily="var(--font-mono)" fontSize="11" fill={INK} opacity={0.55}>.har</text>
+ <Ink w={1.5}>
+ <line x1="50" y1="64" x2="60" y2="64" stroke={PINK} />
+ <line x1="66" y1="64" x2="130" y2="64" opacity={0.45} />
+ <line x1="50" y1="80" x2="60" y2="80" stroke={PINK} />
+ <line x1="66" y1="80" x2="118" y2="80" opacity={0.45} />
+ <line x1="50" y1="96" x2="60" y2="96" stroke={PINK} />
+ <line x1="66" y1="96" x2="126" y2="96" opacity={0.45} />
+ <polyline className="ill-wave" points="50,118 60,118 64,108 70,128 76,112 82,122 88,118 130,118" opacity={0.7} />
+ </Ink>
+ </svg>
+ );
+}
+
+export function StepGenerate() {
+ return (
+ <svg viewBox="0 0 180 160" className="h-auto w-full" role="img" aria-label="Generate">
+ <path d="M44 24 H118 L140 46 V138 H44 Z" fill={CARD} stroke={INK} strokeWidth={1.6} strokeLinejoin="round" />
+ <path d="M118 24 V46 H140" fill="none" stroke={INK} strokeWidth={1.6} strokeLinejoin="round" />
+ {/* code lines write themselves in sequence */}
+ <Ink w={1.5}>
+ <line className="ill-write" style={{ animationDelay: '0s' }} x1="58" y1="74" x2="74" y2="74" stroke={PINK} />
+ <line className="ill-write" style={{ animationDelay: '0.1s' }} x1="80" y1="74" x2="122" y2="74" opacity={0.45} />
+ <line className="ill-write" style={{ animationDelay: '0.45s' }} x1="68" y1="88" x2="112" y2="88" opacity={0.45} />
+ <line className="ill-write" style={{ animationDelay: '0.8s' }} x1="68" y1="102" x2="100" y2="102" stroke={PINK} />
+ <line className="ill-write" style={{ animationDelay: '1.15s' }} x1="58" y1="116" x2="92" y2="116" opacity={0.45} />
+ </Ink>
+ {/* static output spark */}
+ <Aster x={140} y={36} size={22} />
+ <Ink w={1.5}>
+ <line x1="150" y1="14" x2="154" y2="8" stroke={PINK} />
+ <line x1="160" y1="24" x2="168" y2="22" stroke={PINK} />
+ </Ink>
+ </svg>
+ );
+}
+
+export function StepReview() {
+ return (
+ <svg viewBox="0 0 180 160" className="h-auto w-full" role="img" aria-label="Review">
+ <path d="M40 24 H110 L132 46 V138 H40 Z" fill={CARD} stroke={INK} strokeWidth={1.6} strokeLinejoin="round" />
+ <path d="M110 24 V46 H132" fill="none" stroke={INK} strokeWidth={1.6} strokeLinejoin="round" />
+ <Ink w={1.5}>
+ <line x1="54" y1="66" x2="116" y2="66" opacity={0.4} />
+ <line x1="54" y1="80" x2="100" y2="80" opacity={0.4} />
+ <line x1="54" y1="94" x2="110" y2="94" opacity={0.4} />
+ </Ink>
+ <g className="ill-mag">
+ <circle cx="104" cy="104" r="22" fill={ACCENT} stroke={INK} strokeWidth={1.6} />
+ <line x1="120" y1="120" x2="140" y2="140" stroke={INK} strokeWidth={2.2} strokeLinecap="round" />
+ <polyline className="ill-check" points="94,104 101,112 116,96" fill="none" stroke={PINK} strokeWidth={1.8} strokeLinecap="round" strokeLinejoin="round" />
+ </g>
+ </svg>
+ );
+}
diff --git a/website/src/components/works-with-agents.tsx b/website/src/components/works-with-agents.tsx
index e596316..7e9a365 100644
--- a/website/src/components/works-with-agents.tsx
+++ b/website/src/components/works-with-agents.tsx
@@ -24,17 +24,18 @@ export function WorksWithAgents() {
<span>agent</span>
<span>status</span>
</div>
- {AGENTS.map((a) => (
+ {AGENTS.map((a, ai) => (
<div key={a.key} className="flex items-center gap-3">
<span className="flex size-8 shrink-0 items-center justify-center rounded bg-white/[0.06]">
<BrandIcon agent={a} className="size-4 text-white/85" />
</span>
{/* flap tiles spelling the agent name */}
- <div className="flex gap-px overflow-hidden">
+ <div className="flex gap-px" style={{ perspective: '420px' }}>
{a.name.toUpperCase().slice(0, 16).split('').map((ch, ci) => (
<span
key={ci}
- className="flex h-7 w-5 items-center justify-center rounded-[3px] bg-[#1c1c1c] font-mono text-[13px] text-[rgba(255,247,240,0.92)] shadow-[inset_0_-1px_0_rgba(0,0,0,0.6)]"
+ className="bd-v3-tile flex h-7 w-5 items-center justify-center rounded-[3px] bg-[#1c1c1c] font-mono text-[13px] text-[rgba(255,247,240,0.92)] shadow-[inset_0_-1px_0_rgba(0,0,0,0.6)]"
+ style={{ animationDelay: `${ai * 0.22 + ci * 0.05}s` }}
>
{ch === ' ' ? ' ' : ch}
</span>