Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

feat(web): launch rooms landing page

Gus9173d82a6d9b
diff --git a/src/web/src/app/(auth)/layout.tsx b/src/web/src/app/(auth)/layout.tsx
index 53aaf2413..cf46ce7fb 100644
--- a/src/web/src/app/(auth)/layout.tsx
+++ b/src/web/src/app/(auth)/layout.tsx
@@ -4,7 +4,7 @@ import { getSession } from "@/lib/session";
export const metadata: Metadata = {
title: "Sign In",
- description: "Sign in to manage your Your Personal Company on Alook.",
+ description: "Rooms for people and agents.",
openGraph: {
images: [{ url: "/og?title=Sign In", width: 1200, height: 630 }],
},
diff --git a/src/web/src/app/(auth)/sign-in/sign-in-client.tsx b/src/web/src/app/(auth)/sign-in/sign-in-client.tsx
index 25bc7e89c..4af85cb69 100644
--- a/src/web/src/app/(auth)/sign-in/sign-in-client.tsx
+++ b/src/web/src/app/(auth)/sign-in/sign-in-client.tsx
@@ -297,7 +297,7 @@ const galleryScenes: { scene: LandingScene; label: string; description: string }
},
{
scene: "machine",
- label: "Bring your own workspaces",
+ label: "Bring your own agents",
description: "Use your own computer and existing agent subscriptions.",
},
{
diff --git a/src/web/src/app/landing-legacy/page.tsx b/src/web/src/app/landing-legacy/page.tsx
new file mode 100644
index 000000000..0303540b3
--- /dev/null
+++ b/src/web/src/app/landing-legacy/page.tsx
@@ -0,0 +1,22 @@
+import type { Metadata } from "next";
+import dynamic from "next/dynamic";
+import { getSession } from "@/lib/session";
+
+const HomePage = dynamic(
+ () => import("@/components/home/home-page").then((module) => ({ default: module.HomePage })),
+ { ssr: true },
+);
+
+export const metadata: Metadata = {
+ title: { absolute: "Alook — Legacy landing" },
+ description: "The previous Alook landing page, preserved for reference.",
+ robots: {
+ index: false,
+ follow: false,
+ },
+};
+
+export default async function Page() {
+ const session = await getSession();
+ return <HomePage isLoggedIn={!!session} />;
+}
diff --git a/src/web/src/app/layout.tsx b/src/web/src/app/layout.tsx
index 06b1a4d2c..258ad9c14 100644
--- a/src/web/src/app/layout.tsx
+++ b/src/web/src/app/layout.tsx
@@ -54,7 +54,7 @@ const literata = Literata({
const SITE_URL = "https://alook.ai";
-const OG_IMAGE_URL = "/og?title=Your Personal Company";
+const OG_IMAGE_URL = "/og?title=Rooms%20for%20people%20and%20agents";
export const viewport: Viewport = {
width: "device-width",
@@ -72,11 +72,11 @@ export const viewport: Viewport = {
export const metadata: Metadata = {
metadataBase: new URL(SITE_URL),
title: {
- default: "Alook — Personal Company",
+ default: "Alook — Rooms for people and agents",
template: "%s — Alook",
},
description:
- "Your AI agents, always on. Give them an email, let them work for you around the clock.",
+ "Rooms for people and agents. Bring the agents you already use into Alook, running from your own machine.",
icons: {
icon: [
{
@@ -92,25 +92,25 @@ export const metadata: Metadata = {
openGraph: {
type: "website",
siteName: "Alook",
- title: "Alook — Personal Company",
+ title: "Alook — Rooms for people and agents",
description:
- "Your AI agents, always on. Give them an email, let them work for you around the clock.",
+ "Rooms for people and agents. Bring the agents you already use into Alook, running from your own machine.",
url: SITE_URL,
images: [
{
url: OG_IMAGE_URL,
width: 1200,
height: 630,
- alt: "Alook — Your Personal Company",
+ alt: "Alook — Rooms for people and agents",
},
],
},
twitter: {
card: "summary_large_image",
site: "@alook_ai",
- title: "Alook — Your Personal Company",
+ title: "Alook — Rooms for people and agents",
description:
- "Your AI agents, always on. Give them an email, let them work for you around the clock.",
+ "Rooms for people and agents. Bring the agents you already use into Alook, running from your own machine.",
images: [OG_IMAGE_URL],
},
alternates: {
@@ -157,7 +157,7 @@ export default function RootLayout({
name: "Alook",
url: SITE_URL,
description:
- "Your AI agents, always on. Give them an email, let them work for you around the clock.",
+ "Rooms for people and agents, with the agents you already use running from your own machine.",
applicationCategory: "DeveloperApplication",
operatingSystem: "All",
offers: {
diff --git a/src/web/src/app/og/route.tsx b/src/web/src/app/og/route.tsx
index 82cd29368..73aee1519 100644
--- a/src/web/src/app/og/route.tsx
+++ b/src/web/src/app/og/route.tsx
@@ -51,17 +51,17 @@ function TypewriterIllustration() {
}}
>
<div style={{ display: "flex", fontSize: 11, color: "#8a7e6e", marginBottom: 4 }}>
+ HOME / FAMILY-PLANS
</div>
<div style={{ display: "flex", fontSize: 11, color: "#8a7e6e", marginBottom: 4 }}>
+ Maya joined the room.
</div>
<div style={{ display: "flex", fontSize: 11, color: "#8a7e6e" }}>
- Subject: Good morning!
+ A note for Alli#8145
</div>
</div>
<div style={{ display: "flex", fontSize: 12, color: "#8a7e6e", lineHeight: 1.5 }}>
- Your agents are always on. I handled everything overnight.
+ Maya and Alli now share this channel. Gus can catch up when he returns.
</div>
</div>
@@ -129,7 +129,7 @@ function TypewriterIllustration() {
export async function GET(request: NextRequest) {
try {
const { searchParams } = request.nextUrl;
- const title = searchParams.get("title") || "Your Personal Company";
+ const title = searchParams.get("title") || "Rooms for people and agents.";
const fontData = await loadFont();
@@ -164,7 +164,7 @@ export async function GET(request: NextRequest) {
{title}
</div>
<div style={{ display: "flex", fontSize: 22, color: "#8a7e6e", marginTop: 20 }}>
- AI agents that collaborate, stay always on, and learn.
+ Alook is where your local agents and humans share the same room.
</div>
</div>
diff --git a/src/web/src/app/page.tsx b/src/web/src/app/page.tsx
index 3ddbb9a9d..35065d4b1 100644
--- a/src/web/src/app/page.tsx
+++ b/src/web/src/app/page.tsx
@@ -1,59 +1,34 @@
import type { Metadata } from "next";
-import dynamic from "next/dynamic";
+import { LandingPage } from "@/components/home/landing-page";
import { getSession } from "@/lib/session";
-
-const HomePage = dynamic(() => import("@/components/home/home-page").then(m => ({ default: m.HomePage })), {
- ssr: true,
-});
+const title = "Alook — Rooms for people and agents";
+const description =
+ "Rooms for people and agents. Bring the agents you already use into Alook, running from your own machine.";
+const image = "/og?title=Rooms%20for%20people%20and%20agents";
export const metadata: Metadata = {
- title: "Alook — Your Personal Company",
- description:
- "Run your personal company with AI agents that collaborate, stay always on, and learn from every task. Give each agent an email, assign roles, and let them work for you around the clock.",
+ title: { absolute: title },
+ description,
alternates: { canonical: "https://alook.ai" },
-};
-
-const faqJsonLd = {
- "@context": "https://schema.org",
- "@type": "FAQPage",
- mainEntity: [
- {
- "@type": "Question",
- name: "What is Alook?",
- acceptedAnswer: {
- "@type": "Answer",
- text: "Alook is the orchestration layer for your personal company. It lets you define roles, assign AI agents, and keep them collaborating, always on, and self-learning — like running a company with an AI workforce.",
- },
- },
- {
- "@type": "Question",
- name: "How do I communicate with my AI agents?",
- acceptedAnswer: {
- "@type": "Answer",
- text: "Each agent gets its own @alook.ai email address. You can send instructions via email, and agents collaborate on tasks and reply. You can also manage your company through the Alook dashboard.",
- },
- },
- {
- "@type": "Question",
- name: "Is Alook free to use?",
- acceptedAnswer: {
- "@type": "Answer",
- text: "Yes, Alook offers a free tier to get started with Your Personal Company.",
- },
- },
- ],
+ openGraph: {
+ type: "website",
+ siteName: "Alook",
+ title,
+ description,
+ url: "https://alook.ai",
+ images: [{ url: image, width: 1200, height: 630, alt: title }],
+ },
+ twitter: {
+ card: "summary_large_image",
+ site: "@alook_ai",
+ title,
+ description,
+ images: [image],
+ },
};
export default async function Page() {
const session = await getSession();
- return (
- <>
- <script
- type="application/ld+json"
- dangerouslySetInnerHTML={{ __html: JSON.stringify(faqJsonLd) }}
- />
- <HomePage isLoggedIn={!!session} />
- </>
- );
+ return <LandingPage isLoggedIn={!!session} />;
}
diff --git a/src/web/src/components/community/profile-card.tsx b/src/web/src/components/community/profile-card.tsx
index 261ade0e9..b8a8e34c9 100644
--- a/src/web/src/components/community/profile-card.tsx
+++ b/src/web/src/components/community/profile-card.tsx
@@ -36,7 +36,7 @@ export function resolveCardStatus(
// `initialStatusEmoji` / `initialStatusText` props are a first-paint seed for
// users the overlay has never seen a WS event for; once the overlay has an
// entry, it wins. See plans/profile-card-status-overlay.md.
-export function ProfileCard({ data, x, y, bp, onClose, onMessage, isSelf, onUpdateStatus, initialStatusEmoji, initialStatusText }: {
+export function ProfileCard({ data, x, y, bp, onClose, onMessage, isSelf, onUpdateStatus, initialStatusEmoji, initialStatusText, embedded }: {
data: Profile
x: number
y: number
@@ -49,6 +49,9 @@ export function ProfileCard({ data, x, y, bp, onClose, onMessage, isSelf, onUpda
onUpdateStatus?: (emoji: string | null, text: string | null) => void
initialStatusEmoji?: string | null
initialStatusText?: string | null
+ // Static card surface for contexts such as product previews. The regular
+ // profile interaction still uses the anchored popover / mobile sheet.
+ embedded?: boolean
}) {
const [msg, setMsg] = useState("")
const [open, setOpen] = useState(true)
@@ -195,6 +198,9 @@ export function ProfileCard({ data, x, y, bp, onClose, onMessage, isSelf, onUpda
</>
)
+ if (embedded)
+ return <div data-testid={tid.profileCard} className="w-full overflow-hidden rounded-xl border border-border bg-popover p-2 shadow-(--e2)">{card}</div>
+
// mobile: bottom sheet (intentional mobile UX, kept manual)
if (mobile)
return (
diff --git a/src/web/src/components/home/hero-avatar-swarm.module.css b/src/web/src/components/home/hero-avatar-swarm.module.css
new file mode 100644
index 000000000..0ce384ac7
--- /dev/null
+++ b/src/web/src/components/home/hero-avatar-swarm.module.css
@@ -0,0 +1,212 @@
+.swarm {
+ --swarm-ground: 78%;
+
+ position: absolute;
+ z-index: 5;
+ inset: 0;
+ overflow: hidden;
+ pointer-events: none;
+}
+
+.runner {
+ position: absolute;
+ top: calc(var(--swarm-ground) - var(--avatar-size) + var(--avatar-ground-offset));
+ left: var(--avatar-start-x);
+ width: var(--avatar-size);
+ height: var(--avatar-size);
+ opacity: 0;
+ will-change: transform, opacity;
+ animation: avatar-travel var(--avatar-duration) var(--avatar-delay) linear forwards;
+}
+
+.face,
+.shadow {
+ position: absolute;
+ left: 0;
+ display: block;
+ width: 100%;
+ animation-delay: var(--avatar-delay);
+ animation-duration: var(--avatar-duration);
+ animation-fill-mode: forwards;
+ animation-timing-function: linear;
+}
+
+.face {
+ bottom: 0;
+ height: 100%;
+ filter: drop-shadow(0 7px 9px color-mix(in oklch, var(--landing-text), transparent 78%));
+ transform: rotate(var(--avatar-tilt));
+ transform-origin: center bottom;
+ will-change: transform;
+}
+
+.shadow {
+ bottom: -5px;
+ height: 6px;
+ border-radius: 50%;
+ background: color-mix(in oklch, var(--landing-text), transparent 82%);
+ filter: blur(1.5px);
+ transform-origin: center;
+ will-change: opacity, transform;
+}
+
+.runner[data-path="bound"] .face {
+ animation-name: hop-bound;
+}
+
+.runner[data-path="bound"] .shadow {
+ animation-name: shadow-bound;
+}
+
+.runner[data-path="skip"] .face {
+ animation-name: hop-skip;
+}
+
+.runner[data-path="skip"] .shadow {
+ animation-name: shadow-skip;
+}
+
+.runner[data-path="scurry"] .face {
+ animation-name: hop-scurry;
+}
+
+.runner[data-path="scurry"] .shadow {
+ animation-name: shadow-scurry;
+}
+
+@keyframes avatar-travel {
+ 0% {
+ opacity: 0;
+ transform: translate3d(-26px, 0, 0);
+ }
+ 3% {
+ opacity: 1;
+ }
+ 18% {
+ transform: translate3d(15vw, 0, 0);
+ }
+ 21% {
+ transform: translate3d(16vw, 0, 0);
+ }
+ 40% {
+ transform: translate3d(37vw, 0, 0);
+ }
+ 43% {
+ transform: translate3d(38vw, 0, 0);
+ }
+ 62% {
+ transform: translate3d(60vw, 0, 0);
+ }
+ 65% {
+ transform: translate3d(61vw, 0, 0);
+ }
+ 82% {
+ transform: translate3d(82vw, 0, 0);
+ }
+ 85% {
+ transform: translate3d(83vw, 0, 0);
+ }
+ 100% {
+ opacity: 1;
+ transform: translate3d(calc(100vw + 150px), 0, 0);
+ }
+}
+
+@keyframes hop-bound {
+ 0%, 18%, 40%, 62%, 82%, 100% {
+ transform: translateY(0) scale(1.15, 0.82) rotate(var(--avatar-tilt));
+ }
+ 3%, 21%, 43%, 65%, 85% {
+ transform: translateY(-10px) scale(0.84, 1.18) rotate(var(--avatar-tilt));
+ }
+ 10%, 30%, 52%, 74%, 93% {
+ transform: translateY(var(--avatar-hop)) scale(1) rotate(var(--avatar-tilt));
+ }
+ 15%, 36%, 58%, 78%, 97% {
+ transform: translateY(-8px) scale(0.96, 1.05) rotate(var(--avatar-tilt));
+ }
+}
+
+@keyframes hop-skip {
+ 0%, 22%, 48%, 73%, 100% {
+ transform: translateY(0) scale(1.18, 0.8) rotate(var(--avatar-tilt));
+ }
+ 4%, 26%, 52%, 77% {
+ transform: translateY(-12px) scale(0.82, 1.2) rotate(var(--avatar-tilt));
+ }
+ 13%, 37%, 63%, 88% {
+ transform: translateY(var(--avatar-hop)) scale(1) rotate(var(--avatar-tilt));
+ }
+ 19%, 44%, 69%, 95% {
+ transform: translateY(-7px) scale(0.95, 1.06) rotate(var(--avatar-tilt));
+ }
+}
+
+@keyframes hop-scurry {
+ 0%, 15%, 31%, 47%, 64%, 81%, 100% {
+ transform: translateY(0) scale(1.2, 0.78) rotate(var(--avatar-tilt));
+ }
+ 3%, 18%, 34%, 50%, 67%, 84% {
+ transform: translateY(-7px) scale(0.8, 1.22) rotate(var(--avatar-tilt));
+ }
+ 8%, 24%, 40%, 57%, 74%, 91% {
+ transform: translateY(var(--avatar-hop)) scale(1) rotate(var(--avatar-tilt));
+ }
+ 13%, 29%, 45%, 62%, 79%, 97% {
+ transform: translateY(-5px) scale(0.94, 1.07) rotate(var(--avatar-tilt));
+ }
+}
+
+@keyframes shadow-bound {
+ 0%, 18%, 40%, 62%, 82%, 100% {
+ opacity: 0.42;
+ transform: scaleX(1);
+ }
+ 10%, 30%, 52%, 74%, 93% {
+ opacity: 0.1;
+ transform: scaleX(0.42);
+ }
+}
+
+@keyframes shadow-skip {
+ 0%, 22%, 48%, 73%, 100% {
+ opacity: 0.44;
+ transform: scaleX(1.08);
+ }
+ 13%, 37%, 63%, 88% {
+ opacity: 0.08;
+ transform: scaleX(0.36);
+ }
+}
+
+@keyframes shadow-scurry {
+ 0%, 15%, 31%, 47%, 64%, 81%, 100% {
+ opacity: 0.38;
+ transform: scaleX(0.92);
+ }
+ 8%, 24%, 40%, 57%, 74%, 91% {
+ opacity: 0.13;
+ transform: scaleX(0.5);
+ }
+}
+
+@media (max-width: 639px) {
+ .swarm {
+ --swarm-ground: 75%;
+ }
+
+ .runner {
+ left: calc(var(--avatar-start-x) - 64%);
+ }
+
+ .face > * {
+ transform: scale(0.82);
+ transform-origin: center bottom;
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .swarm {
+ display: none;
+ }
+}
diff --git a/src/web/src/components/home/hero-avatar-swarm.tsx b/src/web/src/components/home/hero-avatar-swarm.tsx
new file mode 100644
index 000000000..aa84a77d2
--- /dev/null
+++ b/src/web/src/components/home/hero-avatar-swarm.tsx
@@ -0,0 +1,69 @@
+import type { CSSProperties } from "react"
+import { Avatar } from "@/components/community/avatar"
+import styles from "./hero-avatar-swarm.module.css"
+
+type SwarmAvatar = {
+ name: string
+ seed: string
+ size: number
+ startX: string
+ groundOffset: string
+ delay: string
+ duration: string
+ hop: string
+ tilt: string
+ path: "bound" | "skip" | "scurry"
+}
+
+const HERO_SWARM_AVATARS: readonly SwarmAvatar[] = [
+ { name: "Maya", seed: "maya", size: 38, startX: "53%", groundOffset: "0px", delay: "2.64s", duration: "5.6s", hop: "-54px", tilt: "-8deg", path: "bound" },
+ { name: "Alli", seed: "alli", size: 34, startX: "47%", groundOffset: "3px", delay: "2.7s", duration: "6.4s", hop: "-38px", tilt: "7deg", path: "scurry" },
+ { name: "Tracy", seed: "tracy", size: 30, startX: "61%", groundOffset: "-2px", delay: "2.73s", duration: "5s", hop: "-66px", tilt: "5deg", path: "skip" },
+ { name: "Gus", seed: "gus", size: 42, startX: "44%", groundOffset: "2px", delay: "2.91s", duration: "6.9s", hop: "-46px", tilt: "-5deg", path: "bound" },
+ { name: "Shelly", seed: "shelly", size: 28, startX: "57%", groundOffset: "1px", delay: "2.94s", duration: "5.2s", hop: "-31px", tilt: "10deg", path: "scurry" },
+ { name: "Ruthann", seed: "ruthann", size: 36, startX: "50%", groundOffset: "-3px", delay: "3.02s", duration: "6s", hop: "-72px", tilt: "-9deg", path: "skip" },
+ { name: "Nova", seed: "nova", size: 26, startX: "64%", groundOffset: "2px", delay: "3.46s", duration: "4.6s", hop: "-36px", tilt: "6deg", path: "scurry" },
+ { name: "Jun", seed: "jun", size: 32, startX: "40%", groundOffset: "0px", delay: "3.5s", duration: "6.7s", hop: "-58px", tilt: "-7deg", path: "bound" },
+ { name: "Ada", seed: "ada", size: 40, startX: "55%", groundOffset: "4px", delay: "3.53s", duration: "5.8s", hop: "-42px", tilt: "8deg", path: "skip" },
+ { name: "Milo", seed: "milo", size: 29, startX: "59%", groundOffset: "-4px", delay: "3.7s", duration: "4.8s", hop: "-63px", tilt: "-11deg", path: "bound" },
+ { name: "Iris", seed: "iris", size: 35, startX: "46%", groundOffset: "-1px", delay: "3.98s", duration: "6.5s", hop: "-48px", tilt: "4deg", path: "scurry" },
+ { name: "Theo", seed: "theo", size: 24, startX: "63%", groundOffset: "3px", delay: "4.02s", duration: "4.5s", hop: "-29px", tilt: "12deg", path: "skip" },
+ { name: "Nia", seed: "nia", size: 39, startX: "42%", groundOffset: "1px", delay: "4.04s", duration: "7.2s", hop: "-55px", tilt: "-6deg", path: "bound" },
+ { name: "Remy", seed: "remy", size: 31, startX: "52%", groundOffset: "4px", delay: "4.09s", duration: "5.4s", hop: "-34px", tilt: "9deg", path: "scurry" },
+ { name: "Sol", seed: "sol", size: 27, startX: "60%", groundOffset: "-2px", delay: "4.51s", duration: "5.1s", hop: "-61px", tilt: "-10deg", path: "skip" },
+ { name: "Kira", seed: "kira", size: 37, startX: "48%", groundOffset: "0px", delay: "4.55s", duration: "6.1s", hop: "-44px", tilt: "5deg", path: "bound" },
+ { name: "Pax", seed: "pax", size: 25, startX: "56%", groundOffset: "2px", delay: "4.6s", duration: "4.7s", hop: "-33px", tilt: "-12deg", path: "scurry" },
+ { name: "Lumi", seed: "lumi", size: 41, startX: "39%", groundOffset: "-4px", delay: "4.94s", duration: "7.3s", hop: "-69px", tilt: "7deg", path: "skip" },
+ { name: "Orin", seed: "orin", size: 33, startX: "58%", groundOffset: "1px", delay: "4.99s", duration: "5.7s", hop: "-41px", tilt: "-4deg", path: "bound" },
+ { name: "Zadie", seed: "zadie", size: 28, startX: "45%", groundOffset: "3px", delay: "5.36s", duration: "6.6s", hop: "-52px", tilt: "11deg", path: "scurry" },
+]
+
+export function HeroAvatarSwarm() {
+ return (
+ <div className={styles.swarm} data-testid="landing-hero-avatar-swarm" aria-hidden="true">
+ {HERO_SWARM_AVATARS.map((avatar) => (
+ <span
+ key={avatar.seed}
+ className={styles.runner}
+ data-path={avatar.path}
+ style={
+ {
+ "--avatar-start-x": avatar.startX,
+ "--avatar-size": `${avatar.size}px`,
+ "--avatar-ground-offset": avatar.groundOffset,
+ "--avatar-delay": avatar.delay,
+ "--avatar-duration": avatar.duration,
+ "--avatar-hop": avatar.hop,
+ "--avatar-tilt": avatar.tilt,
+ } as CSSProperties
+ }
+ >
+ <span className={styles.shadow} />
+ <span className={styles.face}>
+ <Avatar label={avatar.name} seed={avatar.seed} size={avatar.size} />
+ </span>
+ </span>
+ ))}
+ </div>
+ )
+}
diff --git a/src/web/src/components/home/hero-section.tsx b/src/web/src/components/home/hero-section.tsx
index 2e1c64f99..f16a47113 100644
--- a/src/web/src/components/home/hero-section.tsx
+++ b/src/web/src/components/home/hero-section.tsx
@@ -1,6 +1,6 @@
"use client";
-import { useRef, useState } from "react";
+import { useRef, useState, type CSSProperties, type ReactNode } from "react";
import Image from "next/image";
import Link from "next/link";
import gsap from "gsap";
@@ -12,7 +12,41 @@ import { trackLandingCtaClicked } from "@/lib/analytics";
gsap.registerPlugin(ScrollTrigger, SplitText);
-export function HeroSection({ isLoggedIn }: { isLoggedIn: boolean }) {
+export function HeroSection({
+ isLoggedIn,
+ kicker,
+ headline = "Run Your Personal Company",
+ subline,
+ papers,
+ showClipboard = true,
+ showCommunityLinks = true,
+ primaryCtaLabel,
+ secondaryCta,
+ headlineClassName,
+ headlineStyle,
+ typewriterClassName,
+ largeCtas = false,
+ highlightPrimaryCta = false,
+ testId,
+ backgroundDecoration,
+}: {
+ isLoggedIn: boolean;
+ kicker?: string;
+ headline?: ReactNode;
+ subline?: ReactNode;
+ papers?: ReactNode[];
+ showClipboard?: boolean;
+ showCommunityLinks?: boolean;
+ primaryCtaLabel?: string;
+ secondaryCta?: { href: string; label: string } | null;
+ headlineClassName?: string;
+ headlineStyle?: CSSProperties;
+ typewriterClassName?: string;
+ largeCtas?: boolean;
+ highlightPrimaryCta?: boolean;
+ testId?: string;
+ backgroundDecoration?: ReactNode;
+}) {
const sectionRef = useRef<HTMLDivElement>(null);
const headingRef = useRef<HTMLHeadingElement>(null);
const sublineRef = useRef<HTMLParagraphElement>(null);
@@ -21,12 +55,7 @@ export function HeroSection({ isLoggedIn }: { isLoggedIn: boolean }) {
useGSAP(
() => {
- if (
- !headingRef.current ||
- !sublineRef.current ||
- !ctaRef.current
- )
- return;
+ if (!headingRef.current || !ctaRef.current) return;
const entranceTl = gsap.timeline({ delay: 0.3 });
@@ -35,26 +64,36 @@ export function HeroSection({ isLoggedIn }: { isLoggedIn: boolean }) {
{ y: -20, opacity: 0 },
{ y: 0, opacity: 1, duration: 0.5, ease: "power3.out" }
)
- .to(headingRef.current, { opacity: 1, duration: 0.4, ease: "power2.out" }, 0.2)
- .to(sublineRef.current, { opacity: 1, duration: 0.3, ease: "power2.out" }, "-=0.1")
- .fromTo(
+ .to(headingRef.current, { opacity: 1, duration: 0.4, ease: "power2.out" }, 0.2);
+
+ if (sublineRef.current) {
+ entranceTl.to(sublineRef.current, { opacity: 1, duration: 0.3, ease: "power2.out" }, "-=0.1");
+ }
+
+ if (showClipboard) {
+ entranceTl.fromTo(
".hero-clipboard",
{ y: 10, opacity: 0 },
{ y: 0, opacity: 1, duration: 0.3, ease: "power2.out" },
"-=0.1"
- )
- .fromTo(
+ );
+ }
+
+ if (showCommunityLinks) {
+ entranceTl.fromTo(
".hero-providers",
{ y: 10, opacity: 0 },
{ y: 0, opacity: 1, duration: 0.4, ease: "power2.out" },
"-=0.2"
- )
- .fromTo(
- ctaRef.current,
- { y: 15, opacity: 0 },
- { y: 0, opacity: 1, duration: 0.4, ease: "power2.out" },
- "-=0.2"
);
+ }
+
+ entranceTl.fromTo(
+ ctaRef.current,
+ { y: 15, opacity: 0 },
+ { y: 0, opacity: 1, duration: 0.4, ease: "power2.out" },
+ "-=0.2"
+ );
},
{ scope: sectionRef }
@@ -63,6 +102,7 @@ export function HeroSection({ isLoggedIn }: { isLoggedIn: boolean }) {
return (
<section
ref={sectionRef}
+ data-testid={testId}
className="hero-section relative flex h-screen items-center justify-center overflow-hidden"
style={{ backgroundColor: "var(--landing-bg)" }}
>
@@ -76,6 +116,8 @@ export function HeroSection({ isLoggedIn }: { isLoggedIn: boolean }) {
}}
/>
+ {backgroundDecoration}
+
<div className="hero-content relative z-10 mx-auto flex w-full max-w-4xl flex-col items-center px-4 sm:px-6 py-8 max-h-full">
{/* Brand */}
<div className="hero-brand mb-6 flex shrink-0 items-center gap-2" style={{ opacity: 0 }}>
@@ -100,44 +142,62 @@ export function HeroSection({ isLoggedIn }: { isLoggedIn: boolean }) {
<div className="relative w-full shrink min-h-0 flex-1">
{/* Slogan — positioned at top of typewriter area */}
<div className="absolute top-0 left-0 right-0 z-10 flex flex-col items-center pt-2">
+ {kicker && (
+ <p
+ className="mb-2 text-center text-[10px] uppercase tracking-[0.16em] sm:text-xs"
+ style={{ fontFamily: "var(--font-mono)", color: "var(--landing-text-muted)" }}
+ >
+ {kicker}
+ </p>
+ )}
<h1
ref={headingRef}
- className="mb-1 text-center leading-[1.2] px-2"
+ className={`mb-1 px-2 text-center leading-[1.2] ${headlineClassName ?? ""}`}
style={{
fontFamily: "var(--font-crt)",
color: "var(--landing-text)",
fontSize: "clamp(26px, 4vw, 44px)",
letterSpacing: "-0.01em",
opacity: 0,
+ ...headlineStyle,
}}
>
- Run Your Personal Company
+ {headline}
</h1>
- <p
- ref={sublineRef}
- className="block max-w-lg text-center text-sm sm:text-base leading-relaxed px-2"
- style={{
- fontFamily: "var(--font-crt)",
- color: "var(--landing-text-muted)",
- fontSize: "clamp(15px, 3.6vw, 20px)",
- opacity: 0,
- }}
- >
- You have ideas that need ten people to execute.
- Now you only need yourself and Alook.
- </p>
+ {subline !== null && (
+ <p
+ ref={sublineRef}
+ className="block max-w-lg px-2 text-center text-sm leading-relaxed sm:text-base"
+ style={{
+ fontFamily: "var(--font-crt)",
+ color: "var(--landing-text-muted)",
+ fontSize: "clamp(15px, 3.6vw, 20px)",
+ opacity: 0,
+ }}
+ >
+ {subline === undefined ? (
+ <>
+ You have ideas that need ten people to execute.
+ Now you only need yourself and Alook.
+ </>
+ ) : subline}
+ </p>
+ )}
</div>
{/* Full Typewriter */}
- <TypewriterVisual
- interactive
- entranceDelay={1.2}
- className="absolute! inset-0"
- />
+ <div className={`absolute inset-0 ${typewriterClassName ?? ""}`}>
+ <TypewriterVisual
+ interactive
+ entranceDelay={1.2}
+ papers={papers}
+ className="absolute! inset-0"
+ />
+ </div>
</div>
{/* Clipboard copy widget */}
- <div
+ {showClipboard && <div
className="hero-clipboard relative mt-8 shrink-0 w-full max-w-lg cursor-pointer"
style={{ opacity: 0 }}
onClick={() => {
@@ -198,7 +258,7 @@ export function HeroSection({ isLoggedIn }: { isLoggedIn: boolean }) {
)}
</span>
</div>
- </div>
+ </div>}
{/* Specs */}
{/* <div className="hero-specs mt-6 flex flex-wrap items-center justify-center gap-x-6 gap-y-2" style={{ opacity: 0 }}>
@@ -221,7 +281,7 @@ export function HeroSection({ isLoggedIn }: { isLoggedIn: boolean }) {
</div> */}
{/* Community links */}
- <div className="hero-providers mt-4 shrink-0 flex items-center justify-center gap-4" style={{ opacity: 0 }}>
+ {showCommunityLinks && <div className="hero-providers mt-4 shrink-0 flex items-center justify-center gap-4" style={{ opacity: 0 }}>
<a
href="https://github.com/alookai/alook"
target="_blank"
@@ -258,7 +318,7 @@ export function HeroSection({ isLoggedIn }: { isLoggedIn: boolean }) {
<path 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>
- </div>
+ </div>}
{/* CTA */}
<div ref={ctaRef} className="mt-8 shrink-0 flex flex-nowrap items-center justify-center gap-3" style={{ opacity: 0 }}>
@@ -281,11 +341,11 @@ export function HeroSection({ isLoggedIn }: { isLoggedIn: boolean }) {
<Link
href="/c/me"
onClick={() => trackLandingCtaClicked({ cta_name: "open_app" })}
- className="inline-flex items-center gap-2 px-6 py-2 text-sm transition-all duration-200 hover:opacity-80"
+ className={`inline-flex items-center gap-2 transition-all duration-200 hover:opacity-80 ${largeCtas ? "px-8 py-3 text-base" : "px-6 py-2 text-sm"}`}
style={{
fontFamily: "var(--font-mono)",
color: "var(--landing-bg)",
- backgroundColor: "var(--landing-text)",
+ backgroundColor: highlightPrimaryCta ? "var(--landing-accent)" : "var(--landing-text)",
letterSpacing: "0.12em",
}}
>
@@ -294,17 +354,17 @@ export function HeroSection({ isLoggedIn }: { isLoggedIn: boolean }) {
<polyline points="10 17 15 12 10 7" />
<line x1="15" y1="12" x2="3" y2="12" />
</svg>
- OPEN APP
+ {primaryCtaLabel ?? "OPEN APP"}
</Link>
) : (
<a
href="/sign-in"
onClick={() => trackLandingCtaClicked({ cta_name: "get_started" })}
- className="inline-flex items-center gap-2 px-6 py-2 text-sm transition-all duration-200 hover:opacity-80"
+ className={`inline-flex items-center gap-2 transition-all duration-200 hover:opacity-80 ${largeCtas ? "px-8 py-3 text-base" : "px-6 py-2 text-sm"}`}
style={{
fontFamily: "var(--font-mono)",
color: "var(--landing-bg)",
- backgroundColor: "var(--landing-text)",
+ backgroundColor: highlightPrimaryCta ? "var(--landing-accent)" : "var(--landing-text)",
letterSpacing: "0.12em",
}}
>
@@ -313,13 +373,13 @@ export function HeroSection({ isLoggedIn }: { isLoggedIn: boolean }) {
<polyline points="10 17 15 12 10 7" />
<line x1="15" y1="12" x2="3" y2="12" />
</svg>
- GET STARTED
+ {primaryCtaLabel ?? "GET STARTED"}
</a>
)}
- <Link
- href="/templates"
- onClick={() => trackLandingCtaClicked({ cta_name: "templates" })}
- className="inline-flex items-center gap-2 px-6 py-2 text-sm transition-all duration-200 hover:opacity-80"
+ {secondaryCta !== null && <Link
+ href={secondaryCta?.href ?? "/templates"}
+ onClick={secondaryCta === undefined ? () => trackLandingCtaClicked({ cta_name: "templates" }) : undefined}
+ className={`inline-flex items-center gap-2 transition-all duration-200 hover:opacity-80 ${largeCtas ? "px-8 py-3 text-base" : "px-6 py-2 text-sm"}`}
style={{
fontFamily: "var(--font-mono)",
color: "var(--landing-text)",
@@ -327,14 +387,16 @@ export function HeroSection({ isLoggedIn }: { isLoggedIn: boolean }) {
letterSpacing: "0.12em",
}}
>
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
- <rect x="3" y="3" width="7" height="7" />
- <rect x="14" y="3" width="7" height="7" />
- <rect x="3" y="14" width="7" height="7" />
- <rect x="14" y="14" width="7" height="7" />
- </svg>
- TEMPLATES
- </Link>
+ {secondaryCta === undefined && (
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
+ <rect x="3" y="3" width="7" height="7" />
+ <rect x="14" y="3" width="7" height="7" />
+ <rect x="3" y="14" width="7" height="7" />
+ <rect x="14" y="14" width="7" height="7" />
+ </svg>
+ )}
+ {secondaryCta?.label ?? "TEMPLATES"}
+ </Link>}
</div>
</div>{/* end hero-scalable */}
diff --git a/src/web/src/components/home/landing-content.test.ts b/src/web/src/components/home/landing-content.test.ts
new file mode 100644
index 000000000..9988101c9
--- /dev/null
+++ b/src/web/src/components/home/landing-content.test.ts
@@ -0,0 +1,326 @@
+import { readFileSync } from "node:fs"
+import path from "node:path"
+import { describe, expect, it } from "vitest"
+import {
+ LANDING_AGENT,
+ LANDING_CONTINUITY,
+ LANDING_GALLERY,
+ LANDING_HERO,
+ LANDING_MACHINE_INTRO,
+ LANDING_PROVIDERS,
+ LANDING_SECTION_ORDER,
+ LANDING_TYPEWRITER_CASES,
+} from "./landing-content"
+
+function webRoot() {
+ return process.cwd().endsWith(`${path.sep}src${path.sep}web`)
+ ? process.cwd()
+ : path.join(process.cwd(), "src/web")
+}
+
+describe("landing content contract", () => {
+ it("uses plain product language in the hero", () => {
+ const hero = LANDING_HERO.headline
+
+ expect(hero).toBe("People and agents in the same room")
+ expect(hero).not.toContain("Local runtimes")
+ expect(hero.toLowerCase()).not.toContain("your people")
+ expect(hero.toLowerCase()).not.toContain("personal company")
+ expect(hero.toLowerCase()).not.toContain("orchestration layer")
+ })
+
+ it("puts social product proof before machine and provider ownership", () => {
+ expect(LANDING_SECTION_ORDER).toEqual([
+ "hero",
+ "product-proof",
+ "identity",
+ "continuity",
+ "reach",
+ "ownership",
+ "closing",
+ ])
+ expect(LANDING_GALLERY.map((story) => story.scene)).toEqual([
+ "server",
+ "spaces",
+ "provider",
+ "machine",
+ ])
+ expect(LANDING_GALLERY.every((story) => !("description" in story))).toBe(true)
+ expect(LANDING_MACHINE_INTRO).toContain("machine and daemon are online")
+ expect(LANDING_MACHINE_INTRO).not.toContain("always-on")
+ })
+
+ it("frames continuity as one agent remembering and acting across rooms", () => {
+ expect(LANDING_AGENT).toMatchObject({ name: "Alli", handle: "Alli#8145" })
+ expect(LANDING_CONTINUITY).toMatchObject({
+ kicker: "Memory with initiative",
+ headline: "Agents keep things moving",
+ })
+ expect(LANDING_CONTINUITY.description).toContain("moves things forward across every room")
+ expect(LANDING_CONTINUITY.description).toContain("don’t have to keep every task on your mind")
+ })
+
+ it("keeps provider examples compact", () => {
+ expect(LANDING_PROVIDERS).toContain("claude")
+ expect(LANDING_PROVIDERS).toContain("codex")
+ expect(LANDING_PROVIDERS).toContain("cursor")
+ })
+
+ it("cycles several truthful typewriter cases", () => {
+ expect(LANDING_TYPEWRITER_CASES).toHaveLength(4)
+ expect(LANDING_TYPEWRITER_CASES.map((story) => story.meta)).toEqual([
+ "HOME / FAMILY-PLANS",
+ "DIRECT MESSAGE / MAYA",
+ "STUDIO / SHIPPING",
+ "MY BOTS / ALLI",
+ ])
+ expect(LANDING_TYPEWRITER_CASES.at(-1)?.title).toBe("Alli switched to Cursor.")
+ expect(LANDING_TYPEWRITER_CASES.at(-1)?.body).toContain("fresh runtime session")
+ })
+
+ it("closes with one living-room invitation instead of setup instructions", () => {
+ const root = webRoot()
+ const landingPageSource = readFileSync(path.join(root, "src/components/home/landing-page.tsx"), "utf8")
+ const landingStyles = readFileSync(path.join(root, "src/components/home/landing-page.module.css"), "utf8")
+ const companions = landingPageSource.match(/const CLOSING_COMPANIONS = \[([\s\S]*?)\] as const/)?.[1] ?? ""
+ const closing = landingPageSource.match(/<section className=\{styles\.closingSection\}([\s\S]*?)<footer/)?.[1] ?? ""
+
+ expect(closing).toContain("Your room starts here")
+ expect(closing).toContain("Start your room with agents and people")
+ expect(closing).toContain("Bring the people you trust and the agents you rely on into one shared room.")
+ expect(closing).toContain('href={isLoggedIn ? "/c/me" : "/sign-in"}')
+ expect(closing).toContain('data-testid="landing-closing-open"')
+ expect(closing).toContain("CLOSING_COMPANIONS.map")
+ expect(companions.match(/seed: "/g)).toHaveLength(3)
+ expect(landingPageSource).not.toContain("View on GitHub")
+ expect(closing).not.toContain("https://github.com/alookai/alook")
+ expect(closing).not.toContain("healthy runtime")
+ expect(closing).not.toContain("paired machine")
+ expect(closing).not.toContain("approved DMs")
+ expect(landingStyles).toMatch(/\.closingCompanionLeft\s*\{[\s\S]*?--companion-duration: 2\.45s;/)
+ expect(landingStyles).toMatch(/\.closingCompanionTop\s*\{[\s\S]*?--companion-duration: 2\.85s;/)
+ expect(landingStyles).toMatch(/\.closingCompanionRight\s*\{[\s\S]*?--companion-duration: 2\.65s;/)
+ expect(landingStyles).toMatch(/@media \(prefers-reduced-motion: reduce\)[\s\S]*?\.closingCompanion\s*\{[\s\S]*?animation: none;/)
+ expect(landingStyles).not.toContain(".closingGathering::before")
+ expect(landingStyles).toMatch(/\.closingCta > \.kicker\s*\{[\s\S]*?text-transform: none;/)
+ expect(landingStyles).toMatch(/\.footer\s*\{[\s\S]*?background: var\(--landing-section-bg\);/)
+ expect(landingStyles).not.toMatch(/\.footer\s*\{[\s\S]*?border-top:/)
+ })
+
+ it("promotes the approved landing while preserving the legacy route", () => {
+ const root = webRoot()
+ const rootRoute = readFileSync(path.join(root, "src/app/page.tsx"), "utf8")
+ const legacyRoute = readFileSync(path.join(root, "src/app/landing-legacy/page.tsx"), "utf8")
+ const rootLayout = readFileSync(path.join(root, "src/app/layout.tsx"), "utf8")
+ const authLayout = readFileSync(path.join(root, "src/app/(auth)/layout.tsx"), "utf8")
+ const signInClient = readFileSync(path.join(root, "src/app/(auth)/sign-in/sign-in-client.tsx"), "utf8")
+ const communityLayout = readFileSync(path.join(root, "src/app/c/layout.tsx"), "utf8")
+ const ogRoute = readFileSync(path.join(root, "src/app/og/route.tsx"), "utf8")
+ const publicLayout = readFileSync(path.join(root, "src/components/public-layout.tsx"), "utf8")
+ const landingPageSource = readFileSync(path.join(root, "src/components/home/landing-page.tsx"), "utf8")
+ const landingContentSource = readFileSync(path.join(root, "src/components/home/landing-content.ts"), "utf8")
+ const landingStyles = readFileSync(path.join(root, "src/components/home/landing-page.module.css"), "utf8")
+ const motionStyles = readFileSync(path.join(root, "src/components/home/landing-shell-motion.module.css"), "utf8")
+ const reachSource = readFileSync(path.join(root, "src/components/home/landing-reach-motion.tsx"), "utf8")
+ const reachStyles = readFileSync(path.join(root, "src/components/home/landing-reach-motion.module.css"), "utf8")
+ const shellSource = readFileSync(path.join(root, "src/components/home/landing-shell-motion.tsx"), "utf8")
+ const heroSource = readFileSync(path.join(root, "src/components/home/hero-section.tsx"), "utf8")
+ const typewriterSource = readFileSync(path.join(root, "src/components/typewriter-visual.tsx"), "utf8")
+ const swarmSource = readFileSync(path.join(root, "src/components/home/hero-avatar-swarm.tsx"), "utf8")
+ const swarmStyles = readFileSync(path.join(root, "src/components/home/hero-avatar-swarm.module.css"), "utf8")
+ const navSource = readFileSync(path.join(root, "src/components/home/marketing-nav.tsx"), "utf8")
+ const legacyHome = readFileSync(path.join(root, "src/components/home/home-page.tsx"), "utf8")
+
+ expect(rootRoute).toContain("LandingPage")
+ expect(rootRoute).toContain("getSession")
+ expect(rootRoute).toContain("<LandingPage isLoggedIn={!!session} />")
+ expect(rootRoute).toContain('canonical: "https://alook.ai"')
+ expect(rootRoute).not.toContain("HomePage")
+ expect(rootRoute).not.toContain("FAQPage")
+ expect(rootRoute).not.toContain("Personal Company")
+ expect(legacyRoute).toContain("HomePage")
+ expect(legacyRoute).toContain("getSession")
+ expect(legacyRoute).toContain("index: false")
+ expect(legacyRoute).toContain("follow: false")
+ expect(rootLayout).toContain("Alook — Rooms for people and agents")
+ expect(rootLayout).toContain(
+ "Rooms for people and agents. Bring the agents you already use into Alook, running from your own machine.",
+ )
+ expect(rootLayout).not.toContain("shared rooms")
+ expect(rootLayout).not.toContain("Personal Company")
+ expect(rootLayout).not.toContain("Give them an email")
+ expect(authLayout).toContain('description: "Rooms for people and agents."')
+ expect(authLayout).not.toContain("Personal Company")
+ expect(authLayout).not.toContain("Your Your")
+ expect(signInClient).toContain('label: "Bring your own agents"')
+ expect(signInClient).toContain('description: "Use your own computer and existing agent subscriptions."')
+ expect(signInClient).not.toContain("Bring your own workspaces")
+ expect(communityLayout).toContain('<SignupTracker redirectTo="/c/me/machines" />')
+ expect(ogRoute).toContain('searchParams.get("title") || "Rooms for people and agents."')
+ expect(ogRoute).toContain("HOME / FAMILY-PLANS")
+ expect(ogRoute).toContain("Maya joined the room.")
+ expect(ogRoute).toContain("Alook is where your local agents and humans share the same room.")
+ expect(ogRoute).not.toContain("[email protected]")
+ expect(ogRoute).not.toContain("[email protected]")
+ expect(ogRoute).not.toContain("stay always on")
+ expect(ogRoute).not.toContain("Personal Company")
+ expect(publicLayout).toContain("Rooms for people and agents.")
+ expect(publicLayout).not.toContain("Personal Company")
+ expect(landingPageSource).toContain("export function LandingPage")
+ expect(landingPageSource).toContain("isLoggedIn={isLoggedIn}")
+ expect(landingPageSource).toContain('homeHref="/"')
+ expect(landingPageSource).toContain("highlightActions")
+ expect(landingPageSource).toContain("FooterSocialLinks")
+ expect(landingPageSource).toContain("https://github.com/alookai/alook")
+ expect(landingPageSource).toContain("https://discord.alook.ai")
+ expect(landingPageSource).toContain("https://x.com/alook_ai")
+ expect(landingPageSource).toContain("HeroSection")
+ expect(landingPageSource).toContain("MarketingNav")
+ expect(landingPageSource).toContain("showTemplates={false}")
+ expect(landingPageSource).toContain("revealAfterHero")
+ expect(landingPageSource).toContain("collapseLinksOnMobile")
+ expect(heroSource).toContain("TypewriterVisual")
+ expect(typewriterSource).toContain("var(--tw-blob-theme, oklch(0.88 0.025 82))")
+ expect(heroSource).toContain("papers={papers}")
+ expect(heroSource).toContain("backgroundDecoration")
+ expect(landingPageSource).toContain("<HeroAvatarSwarm />")
+ expect(swarmSource).toContain("HERO_SWARM_AVATARS")
+ expect(swarmSource.match(/\{ name: "/g)).toHaveLength(20)
+ const swarmDurations = [...swarmSource.matchAll(/duration: "([\d.]+)s"/g)].map((match) => Number(match[1]))
+ expect(swarmDurations).toHaveLength(20)
+ expect(Math.min(...swarmDurations)).toBeGreaterThanOrEqual(4.5)
+ expect(swarmSource).toContain('aria-hidden="true"')
+ expect(swarmSource).toContain("data-path={avatar.path}")
+ expect(swarmStyles).toContain("pointer-events: none")
+ expect(swarmStyles).toContain("calc(100vw + 150px)")
+ expect(swarmStyles).toContain("animation-fill-mode: forwards")
+ expect(swarmStyles).toContain("--swarm-ground: 78%")
+ expect(swarmStyles).toContain("left: calc(var(--avatar-start-x) - 64%)")
+ expect(swarmStyles).toContain("scale(1.2, 0.78)")
+ expect(swarmSource).toContain("styles.shadow")
+ expect(swarmSource).not.toContain("styles.ground")
+ expect(swarmStyles).not.toContain(".ground {")
+ expect(swarmStyles).toContain("prefers-reduced-motion: reduce")
+ expect(navSource).toContain("showTemplates = true")
+ expect(navSource).toContain("highlightActions = false")
+ expect(navSource).toContain('highlightActions ? "var(--landing-accent)" : "var(--landing-text)"')
+ expect(landingStyles).toContain("max-width: 1320px")
+ expect(motionStyles).toContain("--motion-frame-radius: var(--gallery-frame-radius, var(--radius-lg))")
+ expect(motionStyles).toContain("clip-path: inset(0 round var(--motion-frame-radius))")
+ expect(landingPageSource).toContain("papers={LANDING_TYPEWRITER_CASES.map")
+ expect(landingPageSource).toContain("People and agents")
+ expect(landingPageSource).toContain("subline={null}")
+ expect(landingPageSource).toContain("largeCtas")
+ expect(landingPageSource).toContain("highlightPrimaryCta")
+ expect(heroSource).toContain('highlightPrimaryCta ? "var(--landing-accent)" : "var(--landing-text)"')
+ expect(landingPageSource).toContain("LandingReachMotion")
+ expect(landingPageSource).not.toContain("MOBILE WEB PLACEHOLDER")
+ expect(landingPageSource).not.toContain("DemoTerminal")
+ expect(landingPageSource).not.toContain("/onboard.md")
+ expect(landingPageSource).not.toContain("A SHARED HOME")
+ expect(landingPageSource).not.toContain("Email")
+ expect(landingPageSource).not.toContain("Schedule")
+ expect(landingPageSource).not.toContain("same memory")
+ expect(landingPageSource).not.toContain("anyone")
+ expect(landingPageSource).not.toContain("subscriptions")
+ expect(landingPageSource).toContain(
+ "Bring the agents you already use into Alook—instead of paying again for another AI.",
+ )
+ expect(landingPageSource).not.toContain("NOT ANOTHER")
+ expect(landingPageSource).not.toContain("leaves the terminal")
+ expect(landingPageSource).not.toContain("Your agent gets a name")
+ expect(landingPageSource).toContain("With each other and with agents")
+ expect(landingPageSource).toContain("Rooms where people talk")
+ expect(landingPageSource).toContain("Imagine Discord, with local agents in the room.")
+ expect(landingPageSource).toContain("Across every room")
+ expect(landingPageSource).toContain("One identity")
+ expect(landingPageSource).toContain("I keep the same account, identity, and relationships across every room.")
+ expect(landingPageSource).toContain("styles.sectionLead")
+ expect(landingPageSource).toContain('<p className={styles.sectionMuted}>{LANDING_CONTINUITY.kicker}</p>')
+ expect(landingPageSource).toContain("InteractiveIdentityProfileCard")
+ expect(landingPageSource).toContain('name: "Maya"')
+ expect(landingPageSource).toContain('userId: "maya"')
+ expect(landingPageSource).not.toContain('"landing-maya"')
+ expect(landingPageSource).toContain('initialStatusText="Free for dinner"')
+ expect(landingPageSource).toContain("IdentityProof")
+ expect(landingPageSource).toContain('data-testid="landing-identity-proof"')
+ expect(landingPageSource).toContain("ResizeObserver")
+ expect(landingPageSource).toContain("--identity-card-fit-scale")
+ expect(landingPageSource).toContain("styles.identityCardSlot")
+ expect(landingPageSource).toContain("styles.identitySceneSlot")
+ expect(landingStyles).toMatch(/\.identityMediaLayout\s*\{[\s\S]*?max-width: 1040px;/)
+ expect(landingStyles).toMatch(/\.identityMediaLayout\s*\{[\s\S]*?align-items: stretch;/)
+ expect(landingStyles).toContain("scale(var(--identity-card-fit-scale))")
+ expect(landingStyles).toContain("--motion-shell-border-width: 0px")
+ expect(landingStyles).toMatch(/\.productSection,\s*\.timelineSection\s*\{[\s\S]*?background: var\(--landing-section-bg/)
+ expect(landingStyles).toMatch(/\.identitySection,\s*\.reachSection\s*\{[\s\S]*?background: var\(--landing-bg\)/)
+ expect(landingStyles).toMatch(/\.identitySceneSlot \.galleryFrame\s*\{[\s\S]*?border: 0;/)
+ expect(motionStyles).toContain("var(--motion-shell-border-width, 1px)")
+ expect(landingStyles).toContain("@media (min-width: 640px) and (max-width: 1023px)")
+ expect(landingStyles).toContain("@media (max-width: 639px)")
+ expect(landingStyles).toMatch(/\.identityProfileCard\s*\{[\s\S]*?width: 300px;/)
+ expect(landingStyles).toMatch(/@media \(max-width: 639px\)[\s\S]*?\.identityProfileCard\s*\{[\s\S]*?width: min\(300px, 100%\);/)
+ expect(landingPageSource).toContain("onPointerMove={tiltCard}")
+ expect(landingPageSource).toContain("identityProfileCardSensor")
+ expect(landingPageSource).toContain("Math.max(0.5")
+ expect(landingStyles).toContain("inset: -72px")
+ expect(landingStyles).toContain("perspective: 900px")
+ expect(landingStyles).toContain("prefers-reduced-motion: reduce")
+ expect(landingPageSource).toContain("styles.productLayout")
+ expect(landingPageSource).not.toContain("PaletteSwitcher")
+ expect(landingStyles).toMatch(/\.page\s*\{[\s\S]*?--landing-bg: #f4f9e9;/)
+ expect(landingStyles).toMatch(/\.page\s*\{[\s\S]*?--landing-accent: #356f95;/)
+ expect(landingStyles).toMatch(/\.page\s*\{[\s\S]*?--tw-blob-theme: var\(--landing-section-bg\);/)
+ expect(landingStyles).toMatch(/\.page\s*\{[\s\S]*?--landing-text-muted: #47633b;/)
+ expect(landingStyles).toMatch(/\.landingHeroTail\s*\{[\s\S]*?color: var\(--landing-accent\);/)
+ expect(landingStyles).not.toContain("#5b6b60")
+ expect(landingStyles).toContain("--landing-section-bg")
+ expect(landingStyles.match(/--tw-blob-theme:/g)).toHaveLength(1)
+ expect(landingPageSource).toContain('<ProductScene scene="server" />')
+ expect(landingPageSource).toContain('<ProductScene scene="spaces" />')
+ expect(landingPageSource).toContain('<ProductScene scene="machine" />')
+ expect(landingPageSource).toContain('<LandingShellMotion scene="continuity" />')
+ expect(landingPageSource.match(/className=\{styles\.productLayout\}/g)).toHaveLength(3)
+ expect(landingPageSource).not.toContain("IdentityTimeline")
+ expect(shellSource).toContain("continuity-frontend-design")
+ expect(shellSource).toContain("I’ll ask Shelly for today’s A/B conversion update")
+ expect(shellSource).toContain("then check with Tracy about the home router")
+ expect(shellSource).toContain("A/B landing pages converting today")
+ expect(shellSource).toContain("router at home still dropping out")
+ expect(shellSource).toContain("<InboxPopover")
+ expect(shellSource).toContain('data-motion-target", "continuity-inbox"')
+ expect(shellSource).toContain('inbox={scene === "continuity" ? <span /> : undefined}')
+ expect(landingPageSource).not.toContain("ProductGallery")
+ expect(landingPageSource).not.toContain("storyTabs")
+ expect(landingPageSource).toContain("The same room")
+ expect(landingPageSource).toContain("Wherever you open it")
+ expect(landingPageSource).toContain("Open Alook on desktop or phone and keep talking in the same room, with the same people and agents.")
+ expect(reachSource).toContain("<p>Desktop</p>")
+ expect(shellSource).toContain("<span>Phone</span>")
+ expect(`${reachSource} ${shellSource}`).not.toContain("Alook Web")
+ expect(reachSource).toContain('<LandingShellMotion scene="server" beat={beat} />')
+ expect(reachSource).toContain("<LandingMobileChatMotion beat={beat} />")
+ expect(shellSource).toContain('data-testid="landing-mobile-motion-stage"')
+ expect(shellSource).toContain("onBack={() => {}}")
+ expect(shellSource).toContain("stage.getBoundingClientRect().width / 390")
+ expect(motionStyles).toContain("transform: scale(var(--mobile-stage-scale))")
+ expect(motionStyles).toMatch(/\.mobileMessages\s*\{[\s\S]*?justify-content: flex-start;/)
+ expect(reachStyles).toContain("width: clamp(148px, 42%, 196px)")
+ expect(reachStyles).toContain("clamp(-220px, -42vw, -160px)")
+ expect(reachStyles).toContain("width: clamp(96px, 24%, 224px)")
+ expect(reachStyles).toContain("right: clamp(20px, 12%, 120px)")
+ expect(reachStyles).toContain("bottom: clamp(24px, 8%, 64px)")
+ expect(reachStyles).toContain("aspect-ratio: 1120 / 760")
+ expect(reachStyles).toContain("clamp(12px, 4vw, 24px)")
+ expect(reachStyles).toMatch(/\.desktopShell\s*\{[\s\S]*?left: 9%;/)
+ expect(landingPageSource).toContain("Rooms for people and agents.")
+ expect(landingPageSource).toContain("Alook holds the room")
+ expect(landingPageSource).toContain("Your machine runs the agent")
+ expect(landingPageSource).toContain("styles.ownershipDescription")
+ expect(landingPageSource).not.toContain("The runtime and workspace stay on your paired machine")
+ expect(`${landingPageSource} ${landingContentSource}`).not.toMatch(/\bconversations?\b/i)
+ expect(`${landingPageSource} ${landingContentSource}`).not.toMatch(/\bplaces?\b/i)
+ expect(landingPageSource).not.toContain("stay in touch")
+ expect(legacyHome).toContain("export function HomePage")
+ })
+})
diff --git a/src/web/src/components/home/landing-content.ts b/src/web/src/components/home/landing-content.ts
new file mode 100644
index 000000000..961baa6db
--- /dev/null
+++ b/src/web/src/components/home/landing-content.ts
@@ -0,0 +1,84 @@
+import type { LandingScene } from "./landing-shell-motion-timeline"
+
+export const LANDING_SECTION_ORDER = [
+ "hero",
+ "product-proof",
+ "identity",
+ "continuity",
+ "reach",
+ "ownership",
+ "closing",
+] as const
+
+export const LANDING_HERO = {
+ headline: "People and agents in the same room",
+ primaryCta: "Open Alook",
+ secondaryCta: "See how it works",
+} as const
+
+export const LANDING_TYPEWRITER_CASES = [
+ {
+ meta: "HOME / FAMILY-PLANS",
+ title: "Maya joined the room.",
+ byline: "A note for Alli#8145",
+ body: "Maya and Alli now share this channel. Either can reply here, and Gus can catch up when he returns.",
+ },
+ {
+ meta: "DIRECT MESSAGE / MAYA",
+ title: "Maya sent Alli a DM.",
+ byline: "Approved relationship",
+ body: "Can you check the Saturday plan? This DM is private to Maya and Alli.",
+ },
+ {
+ meta: "STUDIO / SHIPPING",
+ title: "Alli was mentioned.",
+ byline: "Ruthann · @Alli#8145",
+ body: "Can you review the launch copy? Alli can answer everyone who shares this channel.",
+ },
+ {
+ meta: "MY BOTS / ALLI",
+ title: "Alli switched to Cursor.",
+ byline: "Same Alook identity",
+ body: "Alli switched local runtime. Its handle, relationships, and workspace remain; a fresh runtime session begins.",
+ },
+] as const
+
+export const LANDING_GALLERY: ReadonlyArray<{
+ scene: LandingScene
+ label: string
+}> = [
+ {
+ scene: "server",
+ label: "A room for agents and humans",
+ },
+ {
+ scene: "spaces",
+ label: "A room for every part of life",
+ },
+ {
+ scene: "provider",
+ label: "Change the runtime. Keep the identity.",
+ },
+ {
+ scene: "machine",
+ label: "Pair a machine. Run the agent locally.",
+ },
+] as const
+
+export const LANDING_MACHINE_INTRO =
+ "Pair a machine to run an Alook agent with an installed, authenticated runtime. While the machine and daemon are online, the agent can receive messages beyond this browser tab."
+
+export const LANDING_AGENT = {
+ name: "Alli",
+ handle: "Alli#8145",
+ seed: "landing-alli",
+} as const
+
+export const LANDING_CONTINUITY = {
+ kicker: "Memory with initiative",
+ headline: "Agents keep things moving",
+ description:
+ "Your agent moves things forward across every room, so you don’t have to keep every task on your mind.",
+} as const
+
+export const LANDING_PROVIDERS = ["claude", "codex", "cursor", "opencode", "pi"] as const
diff --git a/src/web/src/components/home/landing-page.module.css b/src/web/src/components/home/landing-page.module.css
new file mode 100644
index 000000000..d384b431a
--- /dev/null
+++ b/src/web/src/components/home/landing-page.module.css
@@ -0,0 +1,1529 @@
+.page {
+ --landing-bg: #f4f9e9;
+ --landing-bg-translucent: rgb(244 249 233 / 90%);
+ --landing-section-bg: #ddedb7;
+ --landing-surface: #ddedb7;
+ --landing-text: #1b271f;
+ --landing-text-muted: #47633b;
+ --landing-accent: #356f95;
+ --landing-accent-dim: #294f6a;
+ --landing-border: rgb(27 39 31 / 15%);
+ --landing-crt-bg: #142019;
+ --landing-phosphor: #c9f06b;
+ --tw-blob-theme: var(--landing-section-bg);
+
+ min-width: 0;
+ overflow-x: clip;
+ background: var(--landing-bg);
+ color: var(--landing-text);
+ font-family: var(--font-sans);
+}
+
+.landingHeroHeadline {
+ max-width: 900px;
+ font-size: 72px !important;
+}
+
+.landingHeroEmphasis {
+ color: var(--landing-text);
+}
+
+.landingHeroTail {
+ color: var(--landing-accent);
+}
+
+.landingHeroTypewriter {
+ transform: translateY(-7%);
+}
+
+.nav {
+ position: sticky;
+ z-index: 50;
+ top: 0;
+ display: grid;
+ grid-template-columns: 1fr auto 1fr;
+ min-height: 72px;
+ align-items: center;
+ gap: 32px;
+ padding: 16px clamp(24px, 5vw, 72px);
+ border-bottom: 1px solid var(--landing-border);
+ background: var(--landing-bg);
+}
+
+.brand {
+ display: inline-flex;
+ width: fit-content;
+ align-items: center;
+ gap: 8px;
+ color: var(--landing-text);
+ font-family: var(--font-brand);
+ font-size: 1.35rem;
+ font-weight: 700;
+}
+
+.nav nav {
+ display: flex;
+ align-items: center;
+ gap: 32px;
+}
+
+.nav nav a,
+.navCta {
+ color: var(--landing-text-muted);
+ font-family: var(--font-mono);
+ font-size: 0.7rem;
+ letter-spacing: 0.12em;
+ text-transform: uppercase;
+ transition: color 150ms ease-out;
+}
+
+.nav nav a:hover,
+.navCta:hover {
+ color: var(--landing-text);
+}
+
+.navCta {
+ color: var(--landing-text);
+}
+
+.navActions {
+ display: flex;
+ justify-self: end;
+ align-items: center;
+ gap: 18px;
+}
+
+.navSocial {
+ display: inline-flex;
+ width: 32px;
+ height: 32px;
+ align-items: center;
+ justify-content: center;
+ color: var(--landing-text);
+}
+
+.nav a:focus-visible,
+.primaryAction:focus-visible,
+.secondaryAction:focus-visible {
+ outline: 2px solid var(--landing-text);
+ outline-offset: 4px;
+}
+
+.hero {
+ --hero-stage-height: 380px;
+
+ position: relative;
+ display: grid;
+ width: 100%;
+ min-height: calc(100svh - 72px);
+ place-items: center;
+ padding: clamp(88px, 9vh, 128px) clamp(24px, 5vw, 72px);
+ isolation: isolate;
+}
+
+.heroGrid {
+ display: grid;
+ width: 100%;
+ max-width: 1320px;
+ margin: 0 auto;
+ grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr);
+ align-items: start;
+ gap: clamp(16px, 3vw, 48px);
+}
+
+.heroCopy {
+ position: relative;
+ z-index: 4;
+ display: flex;
+ min-width: 0;
+ height: var(--hero-stage-height);
+ max-width: 680px;
+ flex-direction: column;
+}
+
+.kicker,
+.paperMeta,
+.phonePlaceholder {
+ font-family: var(--font-mono);
+ font-size: 0.68rem;
+ letter-spacing: 0.16em;
+ text-transform: uppercase;
+}
+
+.kicker {
+ color: var(--landing-text-muted);
+}
+
+.sectionMuted,
+.darkMuted {
+ font-family: var(--font-crt);
+ font-size: clamp(1.35rem, 2.2vw, 2rem);
+ font-weight: 400;
+ letter-spacing: -0.015em;
+ line-height: 1.05;
+}
+
+.sectionMuted {
+ color: var(--landing-text-muted);
+}
+
+.hero h1 {
+ max-width: 740px;
+ margin-top: 16px;
+ font-family: var(--font-crt);
+ font-size: clamp(4rem, 4.8vw, 6.5rem);
+ font-weight: 400;
+ letter-spacing: -0.035em;
+ line-height: 0.86;
+}
+
+.hero h1 span {
+ display: block;
+ color: inherit;
+ white-space: nowrap;
+}
+
+.hero h1 .heroAccent {
+ color: var(--landing-text-muted);
+ white-space: normal;
+}
+
+.heroSupport {
+ max-width: 590px;
+ margin-top: 32px;
+ color: var(--landing-text-muted);
+ font-size: clamp(1rem, 1.5vw, 1.18rem);
+ line-height: 1.65;
+}
+
+.heroActions {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 16px;
+ margin-top: 32px;
+}
+
+.heroCopy > .heroActions {
+ margin-top: auto;
+}
+
+.primaryAction,
+.secondaryAction {
+ display: inline-flex;
+ min-height: 44px;
+ align-items: center;
+ justify-content: center;
+ gap: 16px;
+ padding: 0 24px;
+ border: 1px solid var(--landing-text);
+ font-family: var(--font-mono);
+ font-size: 0.72rem;
+ letter-spacing: 0.12em;
+ text-transform: uppercase;
+ transition:
+ background-color 150ms ease-out,
+ color 150ms ease-out;
+}
+
+.primaryAction {
+ background: var(--landing-text);
+ color: var(--landing-bg);
+}
+
+.primaryAction:hover {
+ background: transparent;
+ color: var(--landing-text);
+}
+
+.secondaryAction {
+ color: var(--landing-text);
+}
+
+.secondaryAction:hover {
+ background: var(--landing-surface);
+}
+
+.typewriterStage {
+ position: relative;
+ z-index: 3;
+ min-width: 0;
+ height: var(--hero-stage-height);
+}
+
+.typewriterVisual {
+ position: absolute;
+ inset: 0;
+ zoom: 0.92;
+}
+
+.heroPaper {
+ color: var(--landing-text);
+}
+
+.paperMeta {
+ color: var(--landing-text-muted);
+}
+
+.paperTitle {
+ margin-top: 12px;
+ font-family: var(--font-crt);
+ font-size: 1.65rem;
+ line-height: 1;
+}
+
+.paperByline {
+ margin-top: 8px;
+ color: var(--landing-text-muted);
+ font-family: var(--font-mono);
+ font-size: 0.64rem;
+}
+
+.paperBody {
+ margin-top: 16px;
+ font-family: var(--font-mono);
+ font-size: 0.76rem;
+ line-height: 1.65;
+}
+
+.productSection,
+.identitySection,
+.timelineSection,
+.reachSection,
+.closingSection {
+ padding: clamp(96px, 12vw, 168px) clamp(24px, 6vw, 88px);
+}
+
+.closingSection {
+ background: var(--landing-section-bg);
+}
+
+.productSection,
+.identitySection,
+.timelineSection,
+.ownershipSection {
+ scroll-margin-top: 72px;
+}
+
+.sectionIntro {
+ max-width: 1120px;
+ margin: 0 auto 64px;
+}
+
+.sectionIntro h2,
+.closingCta h2 {
+ max-width: 760px;
+ margin-top: 16px;
+ font-family: var(--font-crt);
+ font-size: clamp(3rem, 5.8vw, 5.7rem);
+ font-weight: 400;
+ letter-spacing: -0.025em;
+ line-height: 0.92;
+}
+
+.sectionIntro > p {
+ max-width: 620px;
+ margin-top: 28px;
+ color: var(--landing-text-muted);
+ font-size: 1rem;
+ line-height: 1.7;
+}
+
+.sceneFigure {
+ width: 100%;
+ max-width: 1120px;
+ margin: 0 auto;
+}
+
+.productLayout {
+ display: grid;
+ width: 100%;
+ max-width: 1320px;
+ margin: 0 auto;
+ grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
+ align-items: center;
+ gap: clamp(48px, 6vw, 88px);
+}
+
+.productLayout .sectionIntro {
+ max-width: 480px;
+ margin: 0;
+}
+
+.productLayout .sectionIntro h2 {
+ font-size: clamp(3rem, 3.8vw, 4rem);
+}
+
+.galleryFrame {
+ overflow: hidden;
+ border: 1px solid var(--landing-border);
+ border-radius: var(--radius-lg);
+ background: var(--background);
+ box-shadow: var(--shadow-md);
+}
+
+.productSection,
+.timelineSection {
+ background: var(--landing-section-bg, color-mix(in oklch, var(--landing-surface), var(--landing-bg) 56%));
+}
+
+.identitySection,
+.reachSection {
+ background: var(--landing-bg);
+}
+
+.identityLayout {
+ width: 100%;
+ max-width: 1320px;
+ margin: 0 auto;
+}
+
+.identityLayout .sectionIntro {
+ max-width: 1040px;
+ margin: 0 auto 56px;
+}
+
+.identityLayout .sectionIntro h2 {
+ font-size: clamp(3rem, 5.8vw, 5.7rem);
+}
+
+.identityMediaLayout {
+ --identity-card-fit-scale: 1;
+
+ display: grid;
+ width: 100%;
+ max-width: 1040px;
+ margin: 0 auto;
+ padding: clamp(16px, 2.2vw, 24px);
+ border: 1px solid var(--landing-border);
+ border-radius: var(--radius-xl);
+ background: var(--background);
+ box-shadow: var(--shadow-md);
+ grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
+ align-items: stretch;
+ gap: clamp(24px, 3vw, 40px);
+}
+
+.identitySceneSlot,
+.identityCardSlot {
+ min-width: 0;
+}
+
+.identityCardSlot {
+ position: relative;
+}
+
+.identitySceneSlot {
+ --motion-shell-border-width: 0px;
+
+ align-self: center;
+}
+
+.identitySceneSlot .sceneFigure {
+ max-width: none;
+ margin: 0;
+}
+
+.identitySceneSlot .galleryFrame {
+ border: 0;
+ box-shadow: none;
+}
+
+.identityProfileCard {
+ --card-light-x: 50%;
+ --card-light-y: 22%;
+ --card-light-opacity: 0;
+ --card-rotate-x: 0deg;
+ --card-rotate-y: 0deg;
+ --card-scale: 1;
+ --card-shadow-x: 0px;
+ --card-shadow-y: 20px;
+
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ width: 300px;
+ color: var(--foreground);
+ perspective: 900px;
+ transform: translate(-50%, -50%) scale(var(--identity-card-fit-scale));
+ transform-origin: center;
+}
+
+.identityProfileCardSensor {
+ position: absolute;
+ z-index: 0;
+ inset: -72px;
+}
+
+.identityProfileCardSurface {
+ position: relative;
+ z-index: 1;
+ transform: rotateX(var(--card-rotate-x)) rotateY(var(--card-rotate-y)) scale(var(--card-scale));
+ transform-style: preserve-3d;
+ transform-origin: 50% 50%;
+ transition: transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
+ will-change: transform;
+}
+
+.identityProfileCard[data-tilting="true"] .identityProfileCardSurface {
+ transition-duration: 70ms;
+ transition-timing-function: linear;
+}
+
+.identityProfileCardSurface::after {
+ position: absolute;
+ z-index: 4;
+ inset: 0;
+ border-radius: var(--radius-xl);
+ background: radial-gradient(
+ circle at var(--card-light-x) var(--card-light-y),
+ rgb(255 255 255 / 18%),
+ transparent 42%
+ );
+ content: "";
+ mix-blend-mode: soft-light;
+ opacity: var(--card-light-opacity);
+ pointer-events: none;
+ transform: translateZ(24px);
+ transition: opacity 420ms ease-out;
+}
+
+.identityProfileCard[data-tilting="true"] .identityProfileCardSurface::after {
+ transition-duration: 80ms;
+}
+
+.identityProfileCardSurface :global([data-testid="profile-card"]) {
+ box-shadow:
+ var(--card-shadow-x) var(--card-shadow-y) 42px rgb(18 16 13 / 22%),
+ 0 2px 4px rgb(18 16 13 / 12%);
+ transform-style: preserve-3d;
+ transition: box-shadow 560ms cubic-bezier(0.16, 1, 0.3, 1);
+}
+
+.identityProfileCard[data-tilting="true"] .identityProfileCardSurface :global([data-testid="profile-card"]) {
+ transition-duration: 70ms;
+ transition-timing-function: linear;
+}
+
+.identityProfileCardSurface :global([data-testid="profile-card"]) > :first-child {
+ transform: translateZ(10px);
+}
+
+.identityProfileCardSurface :global([data-testid="profile-card"]) > :nth-child(2) {
+ transform: translateZ(18px);
+}
+
+.timelineSection {
+ border-bottom: 1px solid var(--landing-border);
+}
+
+.timelineBoard {
+ width: 100%;
+ max-width: 1240px;
+ margin: 0 auto;
+}
+
+.timelineStage {
+ overflow: hidden;
+ border: 1px solid var(--landing-border);
+ border-radius: var(--radius-xl);
+ background: var(--background);
+ color: var(--foreground);
+ box-shadow: var(--shadow-md);
+}
+
+.timelineChrome {
+ display: flex;
+ min-height: 40px;
+ align-items: center;
+ justify-content: space-between;
+ padding: 0 18px;
+ border-bottom: 1px solid var(--border);
+ color: var(--muted-foreground);
+ font-family: var(--font-mono);
+ font-size: 0.58rem;
+ letter-spacing: 0.12em;
+}
+
+.timelineScene {
+ display: grid;
+ min-height: 280px;
+ padding: clamp(28px, 4vw, 52px);
+ grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1.28fr);
+ grid-template-rows: 1fr auto;
+ align-items: start;
+ gap: 32px clamp(40px, 6vw, 88px);
+ animation: timeline-in 240ms ease-out both;
+}
+
+.timelineRoom {
+ display: flex;
+ align-items: center;
+ gap: 14px;
+}
+
+.timelineRoomGlyph {
+ display: grid;
+ width: 52px;
+ height: 52px;
+ flex: 0 0 auto;
+ place-items: center;
+ border-radius: 16px;
+ background: var(--foreground);
+ color: var(--background);
+ font-family: var(--font-crt);
+ font-size: 1.8rem;
+}
+
+.timelineRoom strong,
+.timelineRoom span,
+.timelineIdentity strong,
+.timelineIdentity span {
+ display: block;
+}
+
+.timelineRoom strong {
+ font-size: 1rem;
+}
+
+.timelineRoom div span {
+ margin-top: 4px;
+ color: var(--muted-foreground);
+ font-family: var(--font-mono);
+ font-size: 0.66rem;
+}
+
+.timelineEvent {
+ max-width: 620px;
+}
+
+.timelineEvent > p,
+.timelineIdentity span {
+ color: var(--muted-foreground);
+ font-family: var(--font-mono);
+ font-size: 0.6rem;
+ letter-spacing: 0.12em;
+}
+
+.timelineEvent h3 {
+ margin-top: 12px;
+ font-family: var(--font-crt);
+ font-size: clamp(2.2rem, 4vw, 4.4rem);
+ font-weight: 400;
+ letter-spacing: -0.02em;
+ line-height: 0.95;
+}
+
+.timelineEvent > span {
+ display: block;
+ max-width: 520px;
+ margin-top: 20px;
+ color: var(--muted-foreground);
+ font-size: 0.84rem;
+ line-height: 1.6;
+}
+
+.timelineIdentity {
+ display: flex;
+ grid-column: 1 / -1;
+ align-items: center;
+ gap: 12px;
+ padding-top: 24px;
+ border-top: 1px solid var(--border);
+}
+
+.timelineIdentity strong {
+ font-size: 0.78rem;
+}
+
+.timelineIdentity span {
+ margin-top: 3px;
+ font-size: 0.54rem;
+}
+
+.timelineSteps {
+ position: relative;
+ display: grid;
+ margin-top: 28px;
+ grid-template-columns: repeat(5, minmax(0, 1fr));
+ gap: 12px;
+}
+
+.timelineSteps::before {
+ position: absolute;
+ top: 21px;
+ right: 10%;
+ left: 10%;
+ height: 1px;
+ background: var(--landing-border);
+ content: "";
+}
+
+.timelineSteps li {
+ position: relative;
+}
+
+.timelineSteps button {
+ width: 100%;
+ color: var(--landing-text-muted);
+ text-align: left;
+}
+
+.timelineSteps button > span {
+ position: relative;
+ z-index: 1;
+ display: grid;
+ width: 42px;
+ height: 42px;
+ place-items: center;
+ border: 1px solid var(--landing-border);
+ border-radius: 999px;
+ background: var(--landing-bg);
+ font-family: var(--font-mono);
+ font-size: 0.62rem;
+ transition: 160ms ease-out;
+}
+
+.timelineSteps button > p {
+ margin-top: 16px;
+ font-family: var(--font-mono);
+ font-size: 0.58rem;
+ letter-spacing: 0.1em;
+}
+
+.timelineSteps button > strong {
+ display: block;
+ max-width: 180px;
+ margin-top: 8px;
+ font-size: 0.78rem;
+ line-height: 1.4;
+}
+
+.timelineSteps button[aria-pressed="true"] {
+ color: var(--landing-text);
+}
+
+.timelineSteps button[aria-pressed="true"] > span {
+ border-color: var(--landing-text);
+ background: var(--landing-text);
+ color: var(--landing-bg);
+}
+
+@keyframes timeline-in {
+ from {
+ opacity: 0;
+ transform: translateY(6px);
+ }
+
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+
+.reachSection {
+ padding-bottom: clamp(112px, 14vw, 192px);
+}
+
+.reachStage {
+ position: relative;
+ max-width: 1120px;
+ height: clamp(540px, 60vw, 760px);
+ margin: 0 auto;
+}
+
+.desktopShell {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 82%;
+ overflow: hidden;
+ border: 1px solid var(--landing-border);
+ border-radius: var(--radius-xl);
+ background: var(--background);
+ box-shadow: var(--shadow-md);
+}
+
+.deviceBar {
+ display: flex;
+ height: 32px;
+ align-items: center;
+ gap: 6px;
+ padding: 0 12px;
+ border-bottom: 1px solid var(--border);
+ background: var(--muted);
+}
+
+.deviceBar > span {
+ width: 7px;
+ height: 7px;
+ border-radius: 999px;
+ background: var(--muted-foreground);
+ opacity: 0.36;
+}
+
+.deviceBar p {
+ margin-left: 8px;
+ color: var(--muted-foreground);
+ font-family: var(--font-mono);
+ font-size: 0.6rem;
+}
+
+.phone {
+ position: absolute;
+ z-index: 5;
+ right: 1%;
+ bottom: 0;
+ display: flex;
+ width: clamp(220px, 23vw, 280px);
+ height: clamp(430px, 45vw, 560px);
+ flex-direction: column;
+ overflow: hidden;
+ border: 4px solid var(--foreground);
+ border-radius: 32px;
+ background: var(--background);
+ color: var(--foreground);
+ box-shadow: var(--shadow-md);
+}
+
+.phoneTop {
+ display: flex;
+ height: 28px;
+ align-items: center;
+ justify-content: space-between;
+ padding: 0 16px;
+ font-family: var(--font-mono);
+ font-size: 0.54rem;
+}
+
+.phoneRoom {
+ display: flex;
+ min-height: 0;
+ flex: 1;
+ flex-direction: column;
+ margin: 0 6px 6px;
+ overflow: hidden;
+ border: 1px solid var(--border);
+ border-radius: 24px;
+ background: var(--card);
+}
+
+.phoneHeader {
+ padding: 16px;
+ border-bottom: 1px solid var(--border);
+}
+
+.phoneHeader p {
+ font-size: 0.86rem;
+ font-weight: 600;
+}
+
+.phoneHeader span {
+ display: block;
+ margin-top: 4px;
+ color: var(--muted-foreground);
+ font-size: 0.66rem;
+}
+
+.phoneMessages {
+ display: flex;
+ flex: 1;
+ flex-direction: column;
+ justify-content: flex-end;
+ gap: 16px;
+ padding: 16px;
+}
+
+.phoneMessage {
+ display: flex;
+ align-items: flex-start;
+ gap: 8px;
+}
+
+.phoneMessage strong {
+ display: block;
+ font-size: 0.68rem;
+}
+
+.phoneMessage p {
+ margin-top: 4px;
+ color: var(--muted-foreground);
+ font-size: 0.64rem;
+ line-height: 1.45;
+}
+
+.phoneComposer {
+ margin: 0 12px 12px;
+ padding: 10px 12px;
+ border: 1px solid var(--border);
+ border-radius: var(--radius-lg);
+ color: var(--muted-foreground);
+ font-size: 0.62rem;
+}
+
+.phonePlaceholder {
+ position: absolute;
+ right: 16px;
+ bottom: 18px;
+ color: var(--muted-foreground);
+ opacity: 0.62;
+}
+
+.ownershipSection {
+ padding: clamp(88px, 9vw, 128px) clamp(24px, 5vw, 72px);
+ background: var(--landing-crt-bg);
+ color: var(--landing-phosphor);
+}
+
+.ownershipInner {
+ display: grid;
+ width: 100%;
+ max-width: 1320px;
+ margin: 0 auto;
+ grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
+ align-items: center;
+ gap: clamp(40px, 5vw, 72px);
+}
+
+.darkMuted {
+ color: var(--landing-phosphor);
+ opacity: 0.66;
+}
+
+.ownershipCopy h2 {
+ max-width: 660px;
+ margin-top: 16px;
+ font-family: var(--font-crt);
+ font-size: clamp(3.2rem, 6vw, 6.2rem);
+ font-weight: 400;
+ letter-spacing: -0.025em;
+ line-height: 0.88;
+}
+
+.ownershipDescription {
+ max-width: 560px;
+ margin-top: 28px;
+ color: var(--landing-phosphor);
+ font-size: clamp(1rem, 1.5vw, 1.18rem);
+ line-height: 1.65;
+ opacity: 0.76;
+}
+
+.ownershipVisual {
+ align-self: center;
+}
+
+.ownershipVisual .galleryFrame {
+ border-color: color-mix(in oklch, var(--landing-phosphor), transparent 66%);
+ box-shadow: none;
+}
+
+.runtimeGroup {
+ margin-top: 36px;
+}
+
+.runtimeBadges {
+ display: flex;
+ max-width: 440px;
+ align-items: center;
+ flex-wrap: wrap;
+ gap: 10px;
+}
+
+.runtimeBadges > span {
+ display: inline-flex;
+ min-height: 34px;
+ align-items: center;
+ gap: 8px;
+ padding: 0 12px;
+ border-radius: 999px;
+ background: color-mix(in oklch, var(--landing-phosphor), transparent 91%);
+ color: var(--landing-phosphor);
+ font-family: var(--font-mono);
+ font-size: 0.65rem;
+}
+
+.closingCta {
+ position: relative;
+ isolation: isolate;
+ display: flex;
+ width: 100%;
+ max-width: 1120px;
+ min-height: 540px;
+ margin: 0 auto;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ padding: clamp(56px, 8vw, 96px);
+ text-align: center;
+}
+
+.closingCta::before {
+ position: absolute;
+ inset: 0;
+ z-index: -1;
+ background: color-mix(in oklch, var(--landing-bg), transparent 28%);
+ clip-path: polygon(3% 7%, 96% 0, 100% 91%, 7% 100%, 0 82%);
+ content: "";
+ transform: rotate(-0.6deg);
+}
+
+.closingCta h2 {
+ max-width: 920px;
+ margin-top: 16px;
+}
+
+.closingCta > .kicker {
+ text-transform: none;
+}
+
+.closingCta > p:not(.kicker) {
+ max-width: 620px;
+ margin-top: 24px;
+ color: var(--landing-text-muted);
+ font-size: 1.05rem;
+ line-height: 1.65;
+}
+
+.closingGathering {
+ position: relative;
+ display: grid;
+ width: min(100%, 520px);
+ min-height: 176px;
+ margin-top: 32px;
+ place-items: center;
+}
+
+.closingAction {
+ position: relative;
+ z-index: 2;
+ display: inline-flex;
+ min-width: 264px;
+ min-height: 58px;
+ align-items: center;
+ justify-content: center;
+ gap: 16px;
+ border: 1px solid var(--landing-accent);
+ background: var(--landing-accent);
+ color: var(--landing-bg);
+ font-family: var(--font-mono);
+ font-size: 0.76rem;
+ letter-spacing: 0.12em;
+ text-transform: uppercase;
+ transition:
+ background-color 150ms ease-out,
+ color 150ms ease-out,
+ transform 150ms ease-out;
+}
+
+.closingAction:hover {
+ background: var(--landing-text);
+ color: var(--landing-bg);
+ transform: translateY(-2px);
+}
+
+.closingAction:focus-visible {
+ outline: 3px solid var(--landing-text);
+ outline-offset: 4px;
+}
+
+.closingCompanion {
+ --companion-duration: 2.6s;
+ --companion-delay: 0s;
+ --companion-hop: -12px;
+ --companion-tilt: -4deg;
+
+ position: absolute;
+ z-index: 3;
+ display: inline-flex;
+ width: 58px;
+ height: 58px;
+ pointer-events: none;
+ animation: closing-companion-hop var(--companion-duration) cubic-bezier(0.35, 0, 0.25, 1) var(--companion-delay) infinite;
+ transform-origin: center bottom;
+}
+
+.closingAvatar {
+ border: 3px solid var(--landing-bg);
+ border-radius: 999px;
+ box-shadow: 0 12px 24px color-mix(in oklch, var(--landing-text), transparent 78%);
+}
+
+.closingCompanionLeft {
+ --companion-duration: 2.45s;
+ --companion-delay: -0.7s;
+ --companion-hop: -10px;
+ --companion-tilt: -5deg;
+
+ bottom: 16px;
+ left: 30px;
+}
+
+.closingCompanionTop {
+ --companion-duration: 2.85s;
+ --companion-delay: -1.6s;
+ --companion-hop: -16px;
+ --companion-tilt: 4deg;
+
+ top: 0;
+ left: calc(50% - 29px);
+}
+
+.closingCompanionRight {
+ --companion-duration: 2.65s;
+ --companion-delay: -1.1s;
+ --companion-hop: -13px;
+ --companion-tilt: 5deg;
+
+ right: 26px;
+ bottom: 24px;
+}
+
+@keyframes closing-companion-hop {
+ 0%,
+ 100% {
+ transform: translateY(0) scale(1) rotate(0);
+ }
+
+ 42% {
+ transform: translateY(var(--companion-hop)) scale(0.96, 1.04) rotate(var(--companion-tilt));
+ }
+
+ 56% {
+ transform: translateY(1px) scale(1.1, 0.9) rotate(0);
+ }
+
+ 66% {
+ transform: translateY(-2px) scale(0.99, 1.01) rotate(0);
+ }
+}
+
+.footer {
+ display: grid;
+ grid-template-columns: 1fr auto 1fr;
+ align-items: center;
+ gap: 32px;
+ padding: 32px clamp(24px, 5vw, 72px);
+ background: var(--landing-section-bg);
+}
+
+.footer p,
+.footer > span {
+ color: var(--landing-text-muted);
+ font-family: var(--font-mono);
+ font-size: 0.62rem;
+ letter-spacing: 0.08em;
+}
+
+.footerSocials {
+ display: flex;
+ align-items: center;
+ justify-self: end;
+ gap: 16px;
+ color: var(--landing-accent);
+}
+
+.footerSocials a {
+ display: inline-flex;
+ min-width: 44px;
+ min-height: 44px;
+ align-items: center;
+ justify-content: center;
+ transition:
+ color 150ms ease-out,
+ transform 150ms ease-out;
+}
+
+.footerSocials a:hover {
+ color: var(--landing-accent-dim);
+ transform: translateY(-2px);
+}
+
+.footerSocials a:focus-visible {
+ outline: 2px solid var(--landing-text);
+ outline-offset: 2px;
+}
+
+@media (min-width: 640px) and (max-width: 1099px) {
+ .hero {
+ min-height: auto;
+ padding: 88px clamp(32px, 7vw, 64px) 72px;
+ }
+
+ .heroGrid {
+ max-width: 820px;
+ grid-template-columns: 1fr;
+ gap: 40px;
+ }
+
+ .heroCopy {
+ height: auto;
+ max-width: 720px;
+ }
+
+ .heroCopy > .heroActions {
+ margin-top: 32px;
+ }
+
+ .typewriterStage {
+ width: 100%;
+ height: clamp(420px, 52vw, 520px);
+ max-width: 760px;
+ }
+
+ .typewriterVisual {
+ zoom: 0.84;
+ }
+}
+
+@media (min-width: 640px) and (max-width: 819px) {
+ .productLayout,
+ .ownershipInner {
+ grid-template-columns: 1fr;
+ gap: 56px;
+ }
+
+ .productLayout .sectionIntro,
+ .identityLayout .sectionIntro {
+ max-width: 760px;
+ }
+
+ .sceneFigure,
+ .ownershipCopy,
+ .ownershipVisual {
+ width: 100%;
+ max-width: 760px;
+ margin-right: auto;
+ margin-left: auto;
+ }
+}
+
+@media (min-width: 640px) and (max-width: 1023px) {
+ .identityMediaLayout {
+ grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
+ gap: 24px;
+ }
+}
+
+@media (max-width: 639px) {
+ .identityMediaLayout {
+ grid-template-columns: 1fr;
+ gap: 48px;
+ }
+
+ .identityCardSlot {
+ display: grid;
+ place-items: center;
+ }
+
+ .identityProfileCard {
+ position: relative;
+ top: auto;
+ left: auto;
+ width: min(300px, 100%);
+ transform: none;
+ }
+}
+
+@media (max-width: 639px) {
+ .identityProfileCardSensor {
+ display: none;
+ }
+
+ .identityProfileCardSurface {
+ transform: none !important;
+ transition: none;
+ will-change: auto;
+ }
+
+ .identityProfileCardSurface::after {
+ display: none;
+ }
+
+ .landingHeroHeadline {
+ font-size: 48px !important;
+ }
+
+ .landingHeroTypewriter {
+ transform: translateY(-16%);
+ }
+
+ .nav {
+ grid-template-columns: auto 1fr auto;
+ min-height: 64px;
+ gap: 16px;
+ padding: 12px 16px;
+ }
+
+ .nav nav {
+ justify-content: center;
+ gap: 4px;
+ }
+
+ .navBlog {
+ display: none;
+ }
+
+ .navActions {
+ gap: 10px;
+ }
+
+ .hero {
+ min-height: calc(100svh - 64px);
+ place-items: start center;
+ padding: 72px 24px 48px;
+ }
+
+ .productSection,
+ .identitySection,
+ .timelineSection,
+ .ownershipSection {
+ scroll-margin-top: 64px;
+ }
+
+ .heroGrid {
+ grid-template-columns: 1fr;
+ gap: 16px;
+ }
+
+ .heroCopy {
+ height: auto;
+ padding-top: 0;
+ }
+
+ .heroCopy > .heroActions {
+ margin-top: 32px;
+ }
+
+ .hero h1 {
+ font-size: clamp(3.6rem, 14vw, 4.4rem);
+ line-height: 0.88;
+ }
+
+ .heroSupport {
+ margin-top: 24px;
+ font-size: 1rem;
+ }
+
+ .heroActions {
+ align-items: stretch;
+ }
+
+ .primaryAction,
+ .secondaryAction {
+ flex: 1 1 100%;
+ }
+
+ .typewriterStage {
+ height: 460px;
+ }
+
+ .typewriterVisual {
+ zoom: 0.62;
+ }
+
+ .productSection,
+ .identitySection,
+ .timelineSection,
+ .reachSection,
+ .closingSection {
+ padding: 88px 24px;
+ }
+
+ .sectionIntro {
+ margin-bottom: 40px;
+ }
+
+.productLayout {
+ grid-template-columns: 1fr;
+ gap: 40px;
+ }
+
+ .productLayout .sectionIntro {
+ max-width: none;
+ margin-bottom: 0;
+ }
+
+ .sectionIntro h2,
+ .closingCta h2 {
+ font-size: clamp(3.2rem, 15vw, 4.5rem);
+ }
+
+ .closingCta {
+ min-height: 520px;
+ padding: 64px 16px 48px;
+ }
+
+ .closingCta::before {
+ clip-path: polygon(0 4%, 97% 0, 100% 94%, 5% 100%, 0 86%);
+ transform: none;
+ }
+
+ .closingCta > p:not(.kicker) {
+ font-size: 1rem;
+ }
+
+ .closingGathering {
+ min-height: 184px;
+ margin-top: 24px;
+ }
+
+ .closingAction {
+ width: calc(100% - 80px);
+ min-width: 0;
+ }
+
+ .closingCompanion {
+ width: 50px;
+ height: 50px;
+ }
+
+ .closingCompanionLeft {
+ bottom: 18px;
+ left: 4px;
+ }
+
+ .closingCompanionTop {
+ top: 4px;
+ left: calc(50% - 25px);
+ }
+
+ .closingCompanionRight {
+ right: 4px;
+ bottom: 24px;
+ }
+
+ .timelineScene {
+ min-height: 360px;
+ padding: 28px 24px;
+ grid-template-columns: 1fr;
+ grid-template-rows: auto 1fr auto;
+ gap: 28px;
+ }
+
+ .timelineEvent h3 {
+ font-size: clamp(2.8rem, 12vw, 3.8rem);
+ }
+
+ .timelineIdentity {
+ grid-column: 1;
+ }
+
+ .timelineSteps {
+ display: flex;
+ margin-right: -24px;
+ padding-right: 24px;
+ overflow-x: auto;
+ scroll-snap-type: x mandatory;
+ }
+
+ .timelineSteps::before {
+ display: none;
+ }
+
+ .timelineSteps li {
+ min-width: 152px;
+ scroll-snap-align: start;
+ }
+
+ .identityLayout .sectionIntro {
+ max-width: none;
+ margin-bottom: 40px;
+ }
+
+ .reachStage {
+ display: flex;
+ height: auto;
+ flex-direction: column;
+ align-items: start;
+ }
+
+ .desktopShell {
+ position: relative;
+ width: 100%;
+ }
+
+ .phone {
+ position: relative;
+ right: auto;
+ bottom: auto;
+ width: 240px;
+ height: 460px;
+ margin-top: -40px;
+ }
+
+ .ownershipSection {
+ padding: 96px 24px;
+ }
+
+ .ownershipInner {
+ grid-template-columns: 1fr;
+ gap: 56px;
+ }
+
+ .ownershipCopy h2 {
+ font-size: clamp(3.5rem, 17vw, 5rem);
+ }
+
+ .footer {
+ grid-template-columns: 1fr;
+ gap: 16px;
+ padding: 32px 24px;
+ }
+
+ .footerSocials {
+ justify-self: start;
+ }
+}
+
+@media (max-width: 359px) {
+ .landingHeroHeadline {
+ font-size: 44px !important;
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .identityProfileCardSurface {
+ transform: none !important;
+ transition: none;
+ }
+
+ .identityProfileCardSurface::after {
+ display: none;
+ }
+
+ .identityProfileCardSurface :global([data-testid="profile-card"]) {
+ box-shadow: var(--shadow-md);
+ transition: none;
+ }
+
+ .nav a,
+ .primaryAction,
+ .secondaryAction {
+ transition: none;
+ }
+
+ .timelineScene {
+ animation: none;
+ }
+
+ .closingAction {
+ transition: none;
+ }
+
+ .closingAction:hover {
+ transform: none;
+ }
+
+ .closingCompanion {
+ animation: none;
+ }
+
+ .footerSocials a {
+ transition: none;
+ }
+
+ .footerSocials a:hover {
+ transform: none;
+ }
+}
diff --git a/src/web/src/components/home/landing-page.tsx b/src/web/src/components/home/landing-page.tsx
new file mode 100644
index 000000000..ad92abe04
--- /dev/null
+++ b/src/web/src/components/home/landing-page.tsx
@@ -0,0 +1,383 @@
+"use client"
+
+import Image from "next/image"
+import Link from "next/link"
+import { useEffect, useRef, type PointerEvent as ReactPointerEvent } from "react"
+import { BoringAvatar } from "@/components/avatar"
+import { ProfileCard } from "@/components/community/profile-card"
+import { ProviderLogo } from "@/components/provider-logo"
+import { HeroSection } from "./hero-section"
+import { HeroAvatarSwarm } from "./hero-avatar-swarm"
+import { LandingReachMotion } from "./landing-reach-motion"
+import { LandingShellMotion } from "./landing-shell-motion"
+import { MarketingNav } from "./marketing-nav"
+import {
+ LANDING_CONTINUITY,
+ LANDING_GALLERY,
+ LANDING_HERO,
+ LANDING_MACHINE_INTRO,
+ LANDING_PROVIDERS,
+ LANDING_TYPEWRITER_CASES,
+} from "./landing-content"
+import styles from "./landing-page.module.css"
+
+function Brand() {
+ return (
+ <Link href="/" className={styles.brand} aria-label="Alook home">
+ <Image src="/alook.svg" alt="" width={28} height={28} priority />
+ <span>Alook</span>
+ </Link>
+ )
+}
+
+function FooterSocialLinks() {
+ return (
+ <div className={styles.footerSocials} aria-label="Alook social links">
+ <a href="https://github.com/alookai/alook" target="_blank" rel="noopener noreferrer" aria-label="GitHub">
+ <svg width="17" height="17" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
+ <path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" />
+ </svg>
+ </a>
+ <a href="https://discord.alook.ai" target="_blank" rel="noopener noreferrer" aria-label="Discord">
+ <svg width="17" height="17" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
+ <path d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03z" />
+ </svg>
+ </a>
+ <a href="https://x.com/alook_ai" target="_blank" rel="noopener noreferrer" aria-label="Follow us on X">
+ <svg width="15" height="15" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
+ <path 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>
+ </div>
+ )
+}
+
+function HeroPaper({ story }: { story: (typeof LANDING_TYPEWRITER_CASES)[number] }) {
+ return (
+ <div className={styles.heroPaper}>
+ <div className={`tw-email-line ${styles.paperMeta}`}>{story.meta}</div>
+ <div className={`tw-email-line ${styles.paperTitle}`}>{story.title}</div>
+ <div className={`tw-email-line ${styles.paperByline}`}>{story.byline}</div>
+ <p className={`tw-email-body ${styles.paperBody}`}>{story.body}</p>
+ </div>
+ )
+}
+
+function ProductScene({ scene }: { scene: (typeof LANDING_GALLERY)[number]["scene"] }) {
+ const story = LANDING_GALLERY.find((item) => item.scene === scene)
+
+ if (!story) return null
+
+ return (
+ <figure className={styles.sceneFigure} data-testid={`landing-scene-${scene}`}>
+ <div className={styles.galleryFrame} role="img" aria-label={story.label}>
+ <LandingShellMotion
+ scene={story.scene}
+ machineIntroDescription={LANDING_MACHINE_INTRO}
+ />
+ </div>
+ </figure>
+ )
+}
+
+function ContinuityTimeline() {
+ return (
+ <div className={styles.timelineBoard} data-testid="landing-identity-timeline">
+ <div className={styles.galleryFrame} role="img" aria-label="Alli follows one request through a DM, Studio, and Home">
+ <LandingShellMotion scene="continuity" />
+ </div>
+ </div>
+ )
+}
+
+function RuntimeBadges() {
+ return (
+ <div className={styles.runtimeBadges} aria-label="Supported local runtimes">
+ {LANDING_PROVIDERS.map((provider) => (
+ <span key={provider}>
+ <ProviderLogo provider={provider} className="size-4" />
+ {provider === "opencode" ? "OpenCode" : provider[0].toUpperCase() + provider.slice(1)}
+ </span>
+ ))}
+ </div>
+ )
+}
+
+const LANDING_PROFILE = {
+ name: "Maya",
+ userId: "maya",
+ avatar: "Maya",
+ role: "Agent",
+ about: "I keep the same account, identity, and relationships across every room.",
+ mutual: 0,
+ presence: "online" as const,
+}
+
+const CLOSING_COMPANIONS = [
+ { seed: "Maya", className: styles.closingCompanionLeft },
+ { seed: "Alli", className: styles.closingCompanionTop },
+ { seed: "Gus", className: styles.closingCompanionRight },
+] as const
+
+function InteractiveIdentityProfileCard() {
+ const tiltRef = useRef<HTMLDivElement>(null)
+
+ const resetTilt = () => {
+ const element = tiltRef.current
+ if (!element) return
+ element.dataset.tilting = "false"
+ element.style.setProperty("--card-rotate-x", "0deg")
+ element.style.setProperty("--card-rotate-y", "0deg")
+ element.style.setProperty("--card-scale", "1")
+ element.style.setProperty("--card-light-opacity", "0")
+ element.style.setProperty("--card-shadow-x", "0px")
+ element.style.setProperty("--card-shadow-y", "20px")
+ }
+
+ const tiltCard = (event: ReactPointerEvent<HTMLDivElement>) => {
+ if (event.pointerType === "touch") return
+ const element = tiltRef.current
+ if (!element) return
+
+ const bounds = element.getBoundingClientRect()
+ const x = Math.min(1, Math.max(0, (event.clientX - bounds.left) / bounds.width))
+ const y = Math.min(1, Math.max(0, (event.clientY - bounds.top) / bounds.height))
+
+ element.dataset.tilting = "true"
+ element.style.setProperty("--card-rotate-x", `${(0.5 - y) * 14}deg`)
+ element.style.setProperty("--card-rotate-y", `${(x - 0.5) * 18}deg`)
+ element.style.setProperty("--card-scale", "1.015")
+ element.style.setProperty("--card-light-x", `${x * 100}%`)
+ element.style.setProperty("--card-light-y", `${y * 100}%`)
+ element.style.setProperty("--card-light-opacity", "0.72")
+ element.style.setProperty("--card-shadow-x", `${(0.5 - x) * 24}px`)
+ element.style.setProperty("--card-shadow-y", `${20 + y * 16}px`)
+ }
+
+ return (
+ <div
+ ref={tiltRef}
+ className={styles.identityProfileCard}
+ onPointerMove={tiltCard}
+ onPointerLeave={resetTilt}
+ onPointerCancel={resetTilt}
+ data-testid="landing-identity-card-tilt"
+ >
+ <span className={styles.identityProfileCardSensor} aria-hidden="true" />
+ <div className={styles.identityProfileCardSurface}>
+ <ProfileCard
+ embedded
+ data={LANDING_PROFILE}
+ x={0}
+ y={0}
+ bp="desktop"
+ onClose={() => undefined}
+ initialStatusText="Free for dinner"
+ />
+ </div>
+ </div>
+ )
+}
+
+function IdentityProof() {
+ const layoutRef = useRef<HTMLDivElement>(null)
+ const cardSlotRef = useRef<HTMLDivElement>(null)
+ const sceneSlotRef = useRef<HTMLDivElement>(null)
+
+ useEffect(() => {
+ const layout = layoutRef.current
+ const cardSlot = cardSlotRef.current
+ const sceneSlot = sceneSlotRef.current
+ const card = cardSlot?.querySelector<HTMLElement>("[data-testid='landing-identity-card-tilt']")
+
+ if (!layout || !cardSlot || !sceneSlot || !card) return
+
+ let frame = 0
+
+ const fitCard = () => {
+ cancelAnimationFrame(frame)
+ frame = requestAnimationFrame(() => {
+ const cardSlotBounds = cardSlot.getBoundingClientRect()
+ const sceneBounds = sceneSlot.getBoundingClientRect()
+ const sideBySide =
+ sceneBounds.left > cardSlotBounds.left &&
+ Math.abs(sceneBounds.top - cardSlotBounds.top) < 2
+ const scale = sideBySide
+ ? Math.min(1.08, Math.max(0.5, sceneBounds.height / card.offsetHeight))
+ : 1
+
+ layout.style.setProperty("--identity-card-fit-scale", scale.toFixed(4))
+ })
+ }
+
+ const observer = new ResizeObserver(fitCard)
+ observer.observe(layout)
+ observer.observe(card)
+ observer.observe(sceneSlot)
+ fitCard()
+
+ return () => {
+ cancelAnimationFrame(frame)
+ observer.disconnect()
+ }
+ }, [])
+
+ return (
+ <div ref={layoutRef} className={styles.identityMediaLayout} data-testid="landing-identity-proof">
+ <div ref={cardSlotRef} className={styles.identityCardSlot}>
+ <InteractiveIdentityProfileCard />
+ </div>
+ <div ref={sceneSlotRef} className={styles.identitySceneSlot}>
+ <ProductScene scene="spaces" />
+ </div>
+ </div>
+ )
+}
+
+export function LandingPage({ isLoggedIn }: { isLoggedIn: boolean }) {
+ return (
+ <main className={`landing ${styles.page}`}>
+ <MarketingNav
+ isLoggedIn={isLoggedIn}
+ showTemplates={false}
+ ctaLabel="Open Alook"
+ homeHref="/"
+ revealAfterHero
+ collapseLinksOnMobile
+ highlightActions
+ />
+ <HeroSection
+ isLoggedIn={isLoggedIn}
+ headline={(
+ <>
+ <span className={styles.landingHeroEmphasis}>People and agents</span>
+ <br />
+ <span className={styles.landingHeroTail}>in the same room</span>
+ </>
+ )}
+ subline={null}
+ headlineClassName={styles.landingHeroHeadline}
+ headlineStyle={{
+ lineHeight: 0.98,
+ letterSpacing: "-0.035em",
+ }}
+ typewriterClassName={styles.landingHeroTypewriter}
+ largeCtas
+ papers={LANDING_TYPEWRITER_CASES.map((story) => (
+ <HeroPaper key={story.title} story={story} />
+ ))}
+ showClipboard={false}
+ showCommunityLinks={false}
+ primaryCtaLabel={LANDING_HERO.primaryCta.toUpperCase()}
+ secondaryCta={{ href: "#product", label: LANDING_HERO.secondaryCta.toUpperCase() }}
+ testId="landing-hero"
+ highlightPrimaryCta
+ backgroundDecoration={<HeroAvatarSwarm />}
+ />
+
+ <section id="product" className={styles.productSection} data-testid="landing-product-proof">
+ <div className={styles.productLayout}>
+ <div className={styles.sectionIntro}>
+ <div className={styles.sectionLead}>
+ <p className={styles.sectionMuted}>With each other and with agents</p>
+ <h2>Rooms where people talk</h2>
+ </div>
+ <p>Imagine Discord, with local agents in the room.</p>
+ </div>
+ <ProductScene scene="server" />
+ </div>
+ </section>
+
+ <section id="identity" className={styles.identitySection}>
+ <div className={styles.identityLayout}>
+ <div className={styles.sectionIntro}>
+ <div className={styles.sectionLead}>
+ <p className={styles.sectionMuted}>Across every room</p>
+ <h2>One identity</h2>
+ </div>
+ </div>
+ <IdentityProof />
+ </div>
+ </section>
+
+ <section id="continuity" className={styles.timelineSection}>
+ <div className={styles.productLayout}>
+ <div className={styles.sectionIntro}>
+ <div className={styles.sectionLead}>
+ <p className={styles.sectionMuted}>{LANDING_CONTINUITY.kicker}</p>
+ <h2>{LANDING_CONTINUITY.headline}</h2>
+ </div>
+ <p>{LANDING_CONTINUITY.description}</p>
+ </div>
+ <ContinuityTimeline />
+ </div>
+ </section>
+
+ <section id="reach" className={styles.reachSection} data-testid="landing-reach">
+ <div className={styles.productLayout}>
+ <div className={styles.sectionIntro}>
+ <div className={styles.sectionLead}>
+ <p className={styles.sectionMuted}>The same room</p>
+ <h2>Wherever you open it</h2>
+ </div>
+ <p>
+ Open Alook on desktop or phone and keep talking in the same room, with the same people and agents.
+ </p>
+ </div>
+ <LandingReachMotion />
+ </div>
+ </section>
+
+ <section id="ownership" className={styles.ownershipSection}>
+ <div className={styles.ownershipInner}>
+ <div className={styles.ownershipCopy}>
+ <p className={styles.darkMuted}>Alook holds the room</p>
+ <h2>Your machine runs the agent</h2>
+ <p className={styles.ownershipDescription}>
+ Bring the agents you already use into Alook—instead of paying again for another AI.
+ </p>
+ <div className={styles.runtimeGroup}>
+ <RuntimeBadges />
+ </div>
+ </div>
+ <div className={styles.ownershipVisual}>
+ <ProductScene scene="machine" />
+ </div>
+ </div>
+ </section>
+
+ <section className={styles.closingSection} data-testid="landing-closing">
+ <div className={styles.closingCta}>
+ <p className={styles.kicker}>Your room starts here</p>
+ <h2>Start your room with agents and people</h2>
+ <p>Bring the people you trust and the agents you rely on into one shared room.</p>
+ <div className={styles.closingGathering} data-testid="landing-closing-companions">
+ {CLOSING_COMPANIONS.map((companion) => (
+ <span
+ key={companion.seed}
+ className={`${styles.closingCompanion} ${companion.className}`}
+ aria-hidden="true"
+ >
+ <BoringAvatar seed={companion.seed} size="100%" className={styles.closingAvatar} />
+ </span>
+ ))}
+ <Link
+ href={isLoggedIn ? "/c/me" : "/sign-in"}
+ className={styles.closingAction}
+ data-testid="landing-closing-open"
+ >
+ Open Alook{" "}
+ <span aria-hidden>↗</span>
+ </Link>
+ </div>
+ </div>
+ </section>
+
+ <footer className={styles.footer}>
+ <Brand />
+ <p>Rooms for people and agents.</p>
+ <FooterSocialLinks />
+ </footer>
+ </main>
+ )
+}
diff --git a/src/web/src/components/home/landing-reach-motion.module.css b/src/web/src/components/home/landing-reach-motion.module.css
new file mode 100644
index 000000000..1df684f42
--- /dev/null
+++ b/src/web/src/components/home/landing-reach-motion.module.css
@@ -0,0 +1,91 @@
+.stage {
+ position: relative;
+ width: 100%;
+ max-width: 1120px;
+ height: auto;
+ margin: 0 auto;
+ aspect-ratio: 1120 / 760;
+}
+
+.desktopShell {
+ position: absolute;
+ top: 0;
+ left: 9%;
+ width: 82%;
+ overflow: hidden;
+ border: 1px solid var(--landing-border);
+ border-radius: var(--radius-xl);
+ background: var(--background);
+ box-shadow: var(--shadow-md);
+}
+
+.deviceBar {
+ display: flex;
+ height: 32px;
+ align-items: center;
+ gap: 6px;
+ padding: 0 12px;
+ border-bottom: 1px solid var(--border);
+ background: var(--muted);
+}
+
+.deviceBar > span {
+ width: 7px;
+ height: 7px;
+ border-radius: 999px;
+ background: var(--muted-foreground);
+ opacity: 0.36;
+}
+
+.deviceBar p {
+ margin-left: 8px;
+ color: var(--muted-foreground);
+ font-family: var(--font-mono);
+ font-size: 0.6rem;
+}
+
+.phone {
+ position: absolute;
+ z-index: 5;
+ right: clamp(20px, 12%, 120px);
+ bottom: clamp(24px, 8%, 64px);
+ width: clamp(96px, 24%, 224px);
+ aspect-ratio: 390 / 788;
+ overflow: hidden;
+ border: 3px solid var(--foreground);
+ border-radius: 24px;
+ background: var(--background);
+ color: var(--foreground);
+ box-shadow: var(--shadow-md);
+}
+
+@media (max-width: 720px) {
+ .stage {
+ display: flex;
+ height: auto;
+ aspect-ratio: auto;
+ flex-direction: column;
+ align-items: stretch;
+ }
+
+ .desktopShell {
+ position: relative;
+ left: 0;
+ width: 100%;
+ }
+
+ .phone {
+ position: relative;
+ right: auto;
+ bottom: auto;
+ width: clamp(148px, 42%, 196px);
+ margin: clamp(-220px, -42vw, -160px) clamp(12px, 4vw, 24px) 0 auto;
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .desktopShell,
+ .phone {
+ scroll-behavior: auto;
+ }
+}
diff --git a/src/web/src/components/home/landing-reach-motion.tsx b/src/web/src/components/home/landing-reach-motion.tsx
new file mode 100644
index 000000000..dafc94982
--- /dev/null
+++ b/src/web/src/components/home/landing-reach-motion.tsx
@@ -0,0 +1,69 @@
+"use client"
+
+import { useEffect, useState } from "react"
+import {
+ LandingMobileChatMotion,
+ LandingShellMotion,
+} from "./landing-shell-motion"
+import {
+ SCENE_BEAT_DURATION_MS,
+ SCENE_FINAL_HOLD_MS,
+ SCENE_MAX_BEAT,
+} from "./landing-shell-motion-timeline"
+import styles from "./landing-reach-motion.module.css"
+
+function useReducedMotion() {
+ const [reduced, setReduced] = useState(false)
+
+ useEffect(() => {
+ const query = window.matchMedia("(prefers-reduced-motion: reduce)")
+ const sync = () => setReduced(query.matches)
+ sync()
+ query.addEventListener("change", sync)
+ return () => query.removeEventListener("change", sync)
+ }, [])
+
+ return reduced
+}
+
+export function LandingReachMotion() {
+ const maxBeat = SCENE_MAX_BEAT.server
+ const reducedMotion = useReducedMotion()
+ const [beat, setBeat] = useState(0)
+
+ useEffect(() => {
+ setBeat(reducedMotion ? maxBeat : 0)
+ }, [maxBeat, reducedMotion])
+
+ useEffect(() => {
+ if (reducedMotion) return
+ const delay = beat >= maxBeat ? SCENE_FINAL_HOLD_MS : SCENE_BEAT_DURATION_MS
+ const timer = window.setTimeout(() => {
+ setBeat((current) => (current >= maxBeat ? 0 : current + 1))
+ }, delay)
+ return () => window.clearTimeout(timer)
+ }, [beat, maxBeat, reducedMotion])
+
+ return (
+ <div
+ className={styles.stage}
+ data-testid="landing-reach-motion"
+ data-beat={beat}
+ aria-label="The same Alook room updating on desktop and mobile"
+ >
+ <div className={styles.desktopShell}>
+ <div className={styles.deviceBar} aria-hidden>
+ <span />
+ <span />
+ <span />
+ <p>Desktop</p>
+ </div>
+ <LandingShellMotion scene="server" beat={beat} />
+ </div>
+
+ <div className={styles.phone}>
+ <LandingMobileChatMotion beat={beat} />
+ </div>
+ </div>
+ )
+}
diff --git a/src/web/src/components/home/landing-shell-motion-timeline.ts b/src/web/src/components/home/landing-shell-motion-timeline.ts
index 29e54dca6..4cf78a185 100644
--- a/src/web/src/components/home/landing-shell-motion-timeline.ts
+++ b/src/web/src/components/home/landing-shell-motion-timeline.ts
@@ -1,4 +1,4 @@
-export type LandingScene = "server" | "machine" | "provider" | "spaces"
+export type LandingScene = "server" | "machine" | "provider" | "spaces" | "continuity"
export type LandingRoom = "work" | "life" | "play"
@@ -15,6 +15,7 @@ export const SCENE_MAX_BEAT: Record<LandingScene, number> = {
machine: 7,
provider: 9,
spaces: 12,
+ continuity: 14,
}
export const SCENE_BEAT_DURATION_MS = 1500
@@ -107,6 +108,23 @@ const SPACES_CAMERAS = [
{ scale: 1.18, x: 650, y: 180 },
WIDE_CAMERA,
]
+const CONTINUITY_CAMERAS = [
+ WIDE_CAMERA,
+ { scale: 1.22, x: 680, y: 570 },
+ { scale: 1.18, x: 660, y: 170 },
+ { scale: 1.18, x: 660, y: 250 },
+ WIDE_CAMERA,
+ { scale: 1.18, x: 210, y: 610 },
+ { scale: 1.2, x: 190, y: 410 },
+ { scale: 1.18, x: 660, y: 180 },
+ { scale: 1.18, x: 660, y: 270 },
+ WIDE_CAMERA,
+ { scale: 1.18, x: 210, y: 610 },
+ { scale: 1.2, x: 190, y: 410 },
+ { scale: 1.18, x: 660, y: 180 },
+ { scale: 1.18, x: 660, y: 270 },
+ WIDE_CAMERA,
+]
export function sceneSnapshot(scene: LandingScene, requestedBeat: number): SceneSnapshot {
const beat = Math.max(0, Math.min(requestedBeat, SCENE_MAX_BEAT[scene]))
@@ -190,6 +208,44 @@ export function sceneSnapshot(scene: LandingScene, requestedBeat: number): Scene
camera: PROVIDER_CAMERAS[beat] ?? WIDE_CAMERA,
}
}
+ if (scene === "continuity") {
+ const dmAct = beat < 7
+ const studioAct = beat >= 7 && beat < 12
+ return {
+ beat,
+ visibleMessages: dmAct
+ ? beat >= 3 ? 2 : beat >= 2 ? 1 : 0
+ : studioAct
+ ? beat >= 8 ? 2 : 1
+ : 2,
+ composerText: beat === 1 ? "Alli, please move today’s priorities forward." : "",
+ machineState: "online",
+ pairSheet: "closed",
+ runtime: "claude",
+ model: null,
+ room: beat >= 12 ? "life" : "work",
+ inviteOpen: false,
+ inviteSent: false,
+ focus: [
+ null,
+ "continuity-dm-composer",
+ "continuity-dm-gus",
+ "continuity-dm-alli",
+ null,
+ "continuity-inbox",
+ "continuity-inbox-row-work",
+ "continuity-work-alli",
+ "continuity-work-shelly",
+ null,
+ "continuity-inbox",
+ "continuity-inbox-row-life",
+ "continuity-life-alli",
+ "continuity-life-tracy",
+ null,
+ ][beat] ?? null,
+ camera: CONTINUITY_CAMERAS[beat] ?? WIDE_CAMERA,
+ }
+ }
return {
beat,
visibleMessages: beat >= 9 ? 3 : beat >= 7 ? 3 : 2,
diff --git a/src/web/src/components/home/landing-shell-motion.module.css b/src/web/src/components/home/landing-shell-motion.module.css
index ebf78ffc0..36db81269 100644
--- a/src/web/src/components/home/landing-shell-motion.module.css
+++ b/src/web/src/components/home/landing-shell-motion.module.css
@@ -1,5 +1,9 @@
.root {
+ --motion-frame-radius: var(--gallery-frame-radius, var(--radius-lg));
+
width: 100%;
+ overflow: hidden;
+ border-radius: var(--motion-frame-radius);
}
.galleryContainer {
@@ -30,17 +34,67 @@
aspect-ratio: 1120 / 660;
overflow: hidden;
pointer-events: none;
- border-radius: var(--gallery-frame-radius);
+ border-radius: var(--motion-frame-radius);
box-shadow: none;
contain: layout paint;
isolation: isolate;
}
+.mobileStage {
+ position: relative;
+ width: 100%;
+ aspect-ratio: 390 / 788;
+ overflow: hidden;
+ pointer-events: none;
+}
+
+.mobileCanvas {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 390px;
+ height: 788px;
+ transform: scale(var(--mobile-stage-scale));
+ transform-origin: top left;
+}
+
+.mobileTop {
+ display: flex;
+ height: 40px;
+ align-items: center;
+ justify-content: space-between;
+ padding: 0 22px;
+ font-family: var(--font-mono);
+ font-size: 0.7rem;
+}
+
+.mobileSurface {
+ display: flex;
+ width: 100%;
+ height: 748px;
+ min-height: 0;
+ flex-direction: column;
+ overflow: hidden;
+ background: var(--background);
+}
+
+.mobileMessages {
+ display: flex;
+ flex-direction: column;
+ justify-content: flex-start;
+}
+
+.mobileMessages :global([data-testid="message-row"]) {
+ padding-right: 0;
+ padding-left: 0;
+}
+
.productShell {
- border: 1px solid color-mix(in oklch, var(--border), var(--foreground) 20%);
- border-radius: var(--gallery-frame-radius);
+ overflow: hidden;
+ border: var(--motion-shell-border-width, 1px) solid color-mix(in oklch, var(--border), var(--foreground) 20%);
+ border-radius: var(--motion-frame-radius);
background: var(--app-bg);
- clip-path: inset(0 round var(--gallery-frame-radius));
+ clip-path: inset(0 round var(--motion-frame-radius));
}
.canvas {
@@ -156,6 +210,21 @@
visibility 0s;
}
+.inboxSurface {
+ position: absolute;
+ z-index: 60;
+ bottom: 60px;
+ left: 12px;
+ width: 360px;
+ overflow: hidden;
+ border: 1px solid var(--border);
+ border-radius: var(--radius-lg);
+ background: var(--popover);
+ color: var(--popover-foreground);
+ box-shadow: var(--shadow-md);
+ animation: inbox-enter 320ms cubic-bezier(0.4, 0, 0.2, 1);
+}
+
.motionTarget {
transform: scale(1);
transform-origin: center;
@@ -312,7 +381,14 @@
@keyframes typing {
to {
- max-width: 11ch;
+ max-width: var(--typing-width, 11ch);
+ }
+}
+
+@keyframes inbox-enter {
+ from {
+ opacity: 0;
+ transform: translateY(8px) scale(0.98);
}
}
@@ -330,6 +406,7 @@
.botMenu,
.sheetSurface,
.inviteSurface,
+ .inboxSurface,
.camera,
.sceneEnter {
transition: none;
@@ -337,7 +414,7 @@
}
.typingText {
- max-width: 11ch;
+ max-width: var(--typing-width, 11ch);
}
}
diff --git a/src/web/src/components/home/landing-shell-motion.test.ts b/src/web/src/components/home/landing-shell-motion.test.ts
index 6bae1119f..9e05b1cf6 100644
--- a/src/web/src/components/home/landing-shell-motion.test.ts
+++ b/src/web/src/components/home/landing-shell-motion.test.ts
@@ -19,6 +19,22 @@ describe("landing shell motion timeline", () => {
expect(sceneSnapshot("server", 5)).toMatchObject({ visibleMessages: 4, focus: "message-shelly" })
})
+ it("provides one deterministic Case 1 timeline for desktop and mobile consumers", () => {
+ const sharedBeats = Array.from({ length: SCENE_MAX_BEAT.server + 1 }, (_, beat) =>
+ sceneSnapshot("server", beat),
+ )
+
+ expect(sharedBeats.map(({ beat, composerText, visibleMessages }) => ({ beat, composerText, visibleMessages }))).toEqual([
+ { beat: 0, composerText: "", visibleMessages: 0 },
+ { beat: 1, composerText: "hello world", visibleMessages: 0 },
+ { beat: 2, composerText: "", visibleMessages: 1 },
+ { beat: 3, composerText: "", visibleMessages: 2 },
+ { beat: 4, composerText: "", visibleMessages: 3 },
+ { beat: 5, composerText: "", visibleMessages: 4 },
+ { beat: 6, composerText: "", visibleMessages: 4 },
+ ])
+ })
+
it("shows the real pair-sheet steps before the machine and born bot", () => {
expect(sceneSnapshot("machine", 1)).toMatchObject({ machineState: "empty", pairSheet: "closed", focus: "connect" })
expect(sceneSnapshot("machine", 2)).toMatchObject({ machineState: "connecting", pairSheet: "command", focus: "pair-step-1" })
@@ -66,7 +82,30 @@ describe("landing shell motion timeline", () => {
expect(sceneSnapshot("spaces", 12)).toMatchObject({ room: "play", focus: null, camera: { scale: 1 } })
})
- it("zooms in around the cursor and returns wide in all four acts", () => {
+ it("turns one Gus request into two proactive exchanges discovered through unread inbox items", () => {
+ expect(sceneSnapshot("continuity", 0)).toMatchObject({ room: "work", visibleMessages: 0, focus: null })
+ expect(sceneSnapshot("continuity", 1)).toMatchObject({ composerText: "Alli, please move today’s priorities forward.", visibleMessages: 0, focus: "continuity-dm-composer" })
+ expect(sceneSnapshot("continuity", 2)).toMatchObject({ composerText: "", visibleMessages: 1, focus: "continuity-dm-gus" })
+ expect(sceneSnapshot("continuity", 3)).toMatchObject({ visibleMessages: 2, focus: "continuity-dm-alli" })
+ expect(sceneSnapshot("continuity", 4)).toMatchObject({ focus: null, camera: { scale: 1 } })
+ expect(sceneSnapshot("continuity", 5)).toMatchObject({ room: "work", visibleMessages: 2, focus: "continuity-inbox" })
+ expect(sceneSnapshot("continuity", 6)).toMatchObject({ room: "work", visibleMessages: 2, focus: "continuity-inbox-row-work" })
+
+ expect(sceneSnapshot("continuity", 7)).toMatchObject({ visibleMessages: 1, focus: "continuity-work-alli" })
+ expect(sceneSnapshot("continuity", 8)).toMatchObject({ visibleMessages: 2, focus: "continuity-work-shelly" })
+ expect(sceneSnapshot("continuity", 9)).toMatchObject({ focus: null, camera: { scale: 1 } })
+ expect(sceneSnapshot("continuity", 10)).toMatchObject({ room: "work", visibleMessages: 2, focus: "continuity-inbox" })
+ expect(sceneSnapshot("continuity", 11)).toMatchObject({ room: "work", visibleMessages: 2, focus: "continuity-inbox-row-life" })
+
+ expect(sceneSnapshot("continuity", 12)).toMatchObject({ room: "life", visibleMessages: 2, focus: "continuity-life-alli" })
+ expect(sceneSnapshot("continuity", 13)).toMatchObject({ visibleMessages: 2, focus: "continuity-life-tracy" })
+ expect(sceneSnapshot("continuity", 14)).toMatchObject({ focus: null, camera: { scale: 1 } })
+ expect(
+ Array.from({ length: 8 }, (_, index) => sceneSnapshot("continuity", index + 7).composerText),
+ ).toEqual(Array.from({ length: 8 }, () => ""))
+ })
+
+ it("zooms in around the cursor and returns wide in all five acts", () => {
expect(sceneSnapshot("server", 1).camera.scale).toBe(1.22)
expect(sceneSnapshot("server", 6).camera.scale).toBe(1)
expect(sceneSnapshot("machine", 2).camera.scale).toBe(1.22)
@@ -77,6 +116,8 @@ describe("landing shell motion timeline", () => {
expect(sceneSnapshot("provider", 9).camera.scale).toBe(1)
expect(sceneSnapshot("spaces", 5).camera.scale).toBe(1.2)
expect(sceneSnapshot("spaces", 12).camera.scale).toBe(1)
+ expect(sceneSnapshot("continuity", 6).camera.scale).toBe(1.2)
+ expect(sceneSnapshot("continuity", 14).camera.scale).toBe(1)
})
it("clamps out-of-range beats to a valid deterministic snapshot", () => {
@@ -93,6 +134,7 @@ describe("landing shell motion timeline", () => {
expect(sceneDurationMs("machine")).toBe(12_900)
expect(sceneDurationMs("provider")).toBe(15_900)
expect(sceneDurationMs("spaces")).toBe(20_400)
+ expect(sceneDurationMs("continuity")).toBe(23_400)
})
it("boosts focused gallery beats while preserving wide beats", () => {
diff --git a/src/web/src/components/home/landing-shell-motion.tsx b/src/web/src/components/home/landing-shell-motion.tsx
index 967724998..4206affdb 100644
--- a/src/web/src/components/home/landing-shell-motion.tsx
+++ b/src/web/src/components/home/landing-shell-motion.tsx
@@ -37,6 +37,7 @@ import { DmHeader } from "@/components/community/dm-header"
import { ChannelHeader } from "@/components/community/channel-header"
import { Avatar } from "@/components/community/avatar"
import { Message } from "@/components/community/message"
+import { InboxPopover } from "@/components/community/community-inbox-popover"
import { MachineCard } from "@/components/community/machines/machine-card"
import { PairMachineSteps } from "@/components/community/machines/pair-machine-sheet"
import { ConnectTile } from "@/components/community/onboarding-tiles/connect-tile"
@@ -44,7 +45,7 @@ import { BotFormFields } from "@/components/community/bots/bot-form-fields"
import { BotRuntimeFields } from "@/components/community/bots/bot-runtime-fields"
import { UserBar } from "@/components/community/user-bar"
import { useChannelTree } from "@/components/community/use-channel-tree"
-import type { Category, DM, RenderMsg, Server } from "@/components/community/_types"
+import type { Category, DM, RenderMsg, Server, UnreadServer } from "@/components/community/_types"
import { serializeBeamSeed } from "@/lib/avatar/seed-url"
import { tid } from "@/lib/community/testids"
import {
@@ -148,6 +149,31 @@ const SPACE_CHANNELS: Record<LandingRoom, Category[]> = {
],
}
+const CONTINUITY_CHANNELS: Record<LandingRoom, Category[]> = {
+ work: [
+ {
+ id: "cat_continuity_work",
+ name: "Public",
+ channels: [
+ { id: "continuity-frontend-design", name: "frontend-design", active: true, unread: false, type: "text" },
+ { id: "continuity-launch", name: "launch", active: false, unread: false, type: "text" },
+ ],
+ },
+ ],
+ life: [
+ {
+ id: "cat_continuity_life",
+ name: "Private",
+ private: true,
+ channels: [
+ { id: "continuity-family", name: "family", active: true, unread: false, type: "text" },
+ { id: "continuity-travel", name: "travel", active: false, unread: false, type: "text" },
+ ],
+ },
+ ],
+ play: SPACE_CHANNELS.play,
+}
+
const DMS: DM[] = [
{ id: "dm-alli", userId: "alli", name: "Alli", discriminator: "8145", avatar: "avatar:beam:alli", status: "online", preview: "Available" },
]
@@ -321,6 +347,115 @@ const DM_MESSAGES: RenderMsg[] = [
},
]
+const CONTINUITY_DM_MESSAGES: RenderMsg[] = [
+ {
+ id: "continuity-dm-gus",
+ type: "chat",
+ authorId: "gus",
+ authorName: "Gus",
+ authorAvatar: "avatar:beam:gus",
+ content: "Alli, please move today’s priorities forward.",
+ createdAt: "2026-08-07T08:30:00.000Z",
+ seq: 610,
+ grouped: false,
+ },
+ {
+ id: "continuity-dm-alli",
+ type: "chat",
+ authorId: "alli",
+ authorName: "Alli",
+ authorAvatar: "avatar:beam:alli",
+ content: "Got it. I’ll ask Shelly for today’s A/B conversion update, then check with Tracy about the home router.",
+ createdAt: "2026-08-07T08:30:04.000Z",
+ seq: 611,
+ grouped: false,
+ },
+]
+
+const CONTINUITY_WORK_MESSAGES: RenderMsg[] = [
+ {
+ id: "continuity-work-alli",
+ type: "chat",
+ authorId: "alli",
+ authorName: "Alli",
+ authorAvatar: "avatar:beam:alli",
+ content: "@Shelly#3863 How are Gus’s A/B landing pages converting today?",
+ createdAt: "2026-08-07T08:31:00.000Z",
+ seq: 612,
+ grouped: false,
+ },
+ {
+ id: "continuity-work-shelly",
+ type: "chat",
+ authorId: "shelly",
+ authorName: "Shelly",
+ authorAvatar: "avatar:beam:shelly",
+ content: "B is ahead on sign-ups. I’m checking the mobile drop-off.",
+ createdAt: "2026-08-07T08:31:05.000Z",
+ seq: 613,
+ grouped: false,
+ },
+]
+
+const CONTINUITY_LIFE_MESSAGES: RenderMsg[] = [
+ {
+ id: "continuity-life-alli",
+ type: "chat",
+ authorId: "alli",
+ authorName: "Alli",
+ authorAvatar: "avatar:beam:alli",
+ content: "@Tracy#2048 Is the router at home still dropping out?",
+ createdAt: "2026-08-07T08:32:00.000Z",
+ seq: 614,
+ grouped: false,
+ },
+ {
+ id: "continuity-life-tracy",
+ type: "chat",
+ authorId: "tracy",
+ authorName: "Tracy",
+ authorAvatar: "avatar:beam:tracy",
+ content: "Yes — it dropped twice this morning.",
+ createdAt: "2026-08-07T08:32:05.000Z",
+ seq: 615,
+ grouped: false,
+ },
+]
+
+const CONTINUITY_WORK_UNREAD: UnreadServer[] = [
+ {
+ serverId: "work",
+ serverName: "Studio",
+ channels: [
+ {
+ channelId: "continuity-frontend-design",
+ channelName: "frontend-design",
+ type: "text",
+ lastMessageAt: "2026-08-07T08:31:05.000Z",
+ mentionCount: 0,
+ children: [],
+ },
+ ],
+ },
+]
+
+const CONTINUITY_LIFE_UNREAD: UnreadServer[] = [
+ {
+ serverId: "life",
+ serverName: "Home",
+ channels: [
+ {
+ channelId: "continuity-family",
+ channelName: "family",
+ type: "text",
+ lastMessageAt: "2026-08-07T08:32:05.000Z",
+ mentionCount: 0,
+ children: [],
+ },
+ ],
+ },
+]
+
const ONLINE_MACHINE: CommunityMachineSummary = {
id: "machine-studio",
hostname: "gus-macbook",
@@ -448,8 +583,16 @@ function useVisualFocus(scene: LandingScene, focus: string | null) {
return visualFocus
}
-export function LandingShellMotion({ scene }: { scene: LandingScene }) {
- const [beat, setBeat] = useState(0)
+export function LandingShellMotion({
+ scene,
+ machineIntroDescription,
+ beat: controlledBeat,
+}: {
+ scene: LandingScene
+ machineIntroDescription?: string
+ beat?: number
+}) {
+ const [localBeat, setLocalBeat] = useState(0)
const stageRef = useRef<HTMLDivElement>(null)
const cameraRef = useRef<HTMLDivElement>(null)
const [stageScale, setStageScale] = useState(1)
@@ -458,19 +601,22 @@ export function LandingShellMotion({ scene }: { scene: LandingScene }) {
() => new QueryClient({ defaultOptions: { queries: { staleTime: Infinity, retry: false } } }),
)
const maxBeat = SCENE_MAX_BEAT[scene]
+ const beat = controlledBeat ?? localBeat
useEffect(() => {
- setBeat(reducedMotion ? maxBeat : 0)
- }, [scene, maxBeat, reducedMotion])
+ if (controlledBeat === undefined) {
+ setLocalBeat(reducedMotion ? maxBeat : 0)
+ }
+ }, [controlledBeat, scene, maxBeat, reducedMotion])
useEffect(() => {
- if (reducedMotion) return
+ if (controlledBeat !== undefined || reducedMotion) return
const delay = beat >= maxBeat ? SCENE_FINAL_HOLD_MS : SCENE_BEAT_DURATION_MS
const timer = window.setTimeout(() => {
- setBeat((current) => (current >= maxBeat ? 0 : current + 1))
+ setLocalBeat((current) => (current >= maxBeat ? 0 : current + 1))
}, delay)
return () => window.clearTimeout(timer)
- }, [beat, maxBeat, reducedMotion])
+ }, [beat, controlledBeat, maxBeat, reducedMotion])
useEffect(() => {
const stage = stageRef.current
@@ -524,7 +670,11 @@ export function LandingShellMotion({ scene }: { scene: LandingScene }) {
}
>
<QueryClientProvider client={queryClient}>
- <PrototypeShell scene={scene} snapshot={visualSnapshot} />
+ <PrototypeShell
+ scene={scene}
+ snapshot={visualSnapshot}
+ machineIntroDescription={machineIntroDescription}
+ />
</QueryClientProvider>
<MousePointer2
aria-hidden
@@ -542,9 +692,96 @@ export function LandingShellMotion({ scene }: { scene: LandingScene }) {
)
}
-function PrototypeShell({ scene, snapshot }: { scene: LandingScene; snapshot: SceneSnapshot }) {
- const serverView = scene === "server" || scene === "spaces"
- const room = scene === "spaces" ? snapshot.room : null
+export function LandingMobileChatMotion({ beat }: { beat: number }) {
+ const snapshot = sceneSnapshot("server", beat)
+ const stageRef = useRef<HTMLDivElement>(null)
+ const [stageScale, setStageScale] = useState(1)
+ const [queryClient] = useState(
+ () => new QueryClient({ defaultOptions: { queries: { staleTime: Infinity, retry: false } } }),
+ )
+
+ useEffect(() => {
+ const stage = stageRef.current
+ if (!stage) return
+ const sync = () => setStageScale(stage.getBoundingClientRect().width / 390)
+ sync()
+ const observer = new ResizeObserver(sync)
+ observer.observe(stage)
+ return () => observer.disconnect()
+ }, [])
+
+ return (
+ <div
+ ref={stageRef}
+ className={styles.mobileStage}
+ data-testid="landing-mobile-motion-stage"
+ data-beat={snapshot.beat}
+ aria-hidden
+ >
+ <div
+ className={styles.mobileCanvas}
+ style={{ "--mobile-stage-scale": stageScale } as CSSProperties}
+ >
+ <div className={styles.mobileTop}>
+ <span>9:41</span>
+ <span>Phone</span>
+ </div>
+ <QueryClientProvider client={queryClient}>
+ <div className={styles.mobileSurface}>
+ <ChannelHeader
+ channel="general"
+ rightPanel={null}
+ onToggle={() => {}}
+ onBack={() => {}}
+ server={{ id: "gus", name: "Gus", icon: null }}
+ tools={{ threads: false, pinned: false, members: false }}
+ />
+ <div className="flex min-h-0 flex-1 flex-col overflow-hidden">
+ <div className={`${styles.mobileMessages} flex-1 overflow-hidden px-2 py-2`}>
+ {MESSAGES.map((message, index) => (
+ <div
+ key={message.id}
+ data-visible={index < snapshot.visibleMessages}
+ className={styles.messageSlot}
+ >
+ <div
+ className={targetClass(snapshot, `message-${message.authorId}`)}
+ >
+ <Message m={message} onOpenThread={() => {}} />
+ </div>
+ </div>
+ ))}
+ </div>
+ <PrototypeComposer
+ snapshot={snapshot}
+ target="composer"
+ placeholder="Message /general"
+ />
+ </div>
+ </div>
+ </QueryClientProvider>
+ </div>
+ </div>
+ )
+}
+
+function PrototypeShell({
+ scene,
+ snapshot,
+ machineIntroDescription,
+}: {
+ scene: LandingScene
+ snapshot: SceneSnapshot
+ machineIntroDescription?: string
+}) {
+ const continuityRoom = scene === "continuity" && snapshot.beat >= 7
+ ? snapshot.room
+ : null
+ const serverView =
+ scene === "server" ||
+ scene === "spaces" ||
+ continuityRoom !== null
+ const room = scene === "spaces" ? snapshot.room : continuityRoom
const servers = room
? SPACE_SERVERS.map((server) => ({ ...server, active: server.id === room }))
: SERVERS
@@ -563,7 +800,10 @@ function PrototypeShell({ scene, snapshot }: { scene: LandingScene; snapshot: Sc
className={`flex w-60 shrink-0 flex-col bg-sidebar pb-14 ${styles.sceneEnter}`}
>
{serverView ? (
- <PrototypeChannelSidebar room={room} />
+ <PrototypeChannelSidebar
+ room={room}
+ channels={scene === "continuity" ? CONTINUITY_CHANNELS : SPACE_CHANNELS}
+ />
) : (
<PrototypeDmSidebar scene={scene} snapshot={snapshot} />
)}
@@ -573,23 +813,84 @@ function PrototypeShell({ scene, snapshot }: { scene: LandingScene; snapshot: Sc
className={`flex min-w-0 flex-1 flex-col bg-background ${styles.sceneEnter}`}
>
{scene === "server" && <ServerScene snapshot={snapshot} />}
- {scene === "machine" && <MachineScene snapshot={snapshot} />}
+ {scene === "machine" && (
+ <MachineScene
+ snapshot={snapshot}
+ introDescription={machineIntroDescription}
+ />
+ )}
{scene === "provider" && <ProviderScene snapshot={snapshot} />}
{scene === "spaces" && <SpacesScene snapshot={snapshot} />}
+ {scene === "continuity" && <ContinuityScene snapshot={snapshot} />}
</div>
</div>
</AppSurface>
<div className="absolute bottom-0 left-0 z-10 -ml-14 w-74">
- <UserBar
- user={{ id: "gus", name: "Gus", avatar: "avatar:beam:gus" }}
- onEditProfile={() => {}}
- />
+ <PrototypeUserBar scene={scene} snapshot={snapshot} />
</div>
</div>
</Shell>
)
}
+function PrototypeUserBar({
+ scene,
+ snapshot,
+}: {
+ scene: LandingScene
+ snapshot: SceneSnapshot
+}) {
+ const rootRef = useRef<HTMLDivElement>(null)
+ const continuityBeat = scene === "continuity" ? snapshot.beat : -1
+ const workUnread = continuityBeat === 5 || continuityBeat === 6
+ const lifeUnread = continuityBeat === 10 || continuityBeat === 11
+ const hasUnread = workUnread || lifeUnread
+ const inboxOpen = continuityBeat === 6 || continuityBeat === 11
+ const inboxTarget = workUnread
+ ? "continuity-inbox-row-work"
+ : "continuity-inbox-row-life"
+ const inboxChannel = workUnread ? "frontend-design" : "family"
+ const unreads = workUnread ? CONTINUITY_WORK_UNREAD : CONTINUITY_LIFE_UNREAD
+
+ useLayoutEffect(() => {
+ const root = rootRef.current
+ const trigger = root?.querySelector<HTMLElement>('button[aria-label="Inbox"]')
+ trigger?.setAttribute("data-motion-target", "continuity-inbox")
+
+ const row = Array.from(root?.querySelectorAll<HTMLButtonElement>("button") ?? [])
+ .find((button) => button.textContent?.includes(inboxChannel))
+ row?.setAttribute("data-motion-target", inboxTarget)
+
+ return () => {
+ trigger?.removeAttribute("data-motion-target")
+ row?.removeAttribute("data-motion-target")
+ }
+ }, [inboxChannel, inboxOpen, inboxTarget])
+
+ return (
+ <div ref={rootRef} className="relative">
+ {inboxOpen && (
+ <div className={styles.inboxSurface}>
+ <InboxPopover
+ unreads={unreads}
+ unreadDms={[]}
+ mentions={[]}
+ marked={[]}
+ />
+ </div>
+ )}
+ <UserBar
+ user={{ id: "gus", name: "Gus", avatar: "avatar:beam:gus" }}
+ onEditProfile={() => {}}
+ inbox={scene === "continuity" ? <span /> : undefined}
+ hasUnread={hasUnread}
+ inboxOpen={false}
+ onInboxOpenChange={() => {}}
+ />
+ </div>
+ )
+}
+
function PrototypeServerRail({
servers,
activeServerId,
@@ -634,8 +935,14 @@ function PrototypeServerRail({
)
}
-function PrototypeChannelSidebar({ room }: { room: LandingRoom | null }) {
- const categories = room ? SPACE_CHANNELS[room] : CHANNELS
+function PrototypeChannelSidebar({
+ room,
+ channels = SPACE_CHANNELS,
+}: {
+ room: LandingRoom | null
+ channels?: Record<LandingRoom, Category[]>
+}) {
+ const categories = room ? channels[room] : CHANNELS
const tree = useChannelTree(categories)
const serverName = room
? SPACE_SERVERS.find((server) => server.id === room)?.name ?? ""
@@ -694,7 +1001,9 @@ function PrototypeDmSidebar({
snapshot: SceneSnapshot
}) {
const sidebarRef = useRef<HTMLDivElement>(null)
- const dmOpen = scene === "provider" && snapshot.beat >= 6
+ const dmOpen =
+ (scene === "provider" && snapshot.beat >= 6) ||
+ (scene === "continuity" && snapshot.beat < 5)
useLayoutEffect(() => {
const row = sidebarRef.current?.querySelector<HTMLElement>(
@@ -835,6 +1144,75 @@ function SpacesScene({ snapshot }: { snapshot: SceneSnapshot }) {
)
}
+function ContinuityScene({ snapshot }: { snapshot: SceneSnapshot }) {
+ if (snapshot.beat < 7) {
+ return (
+ <>
+ <DmHeader dm={DMS[0]} />
+ <div className="flex min-h-0 flex-1 flex-col overflow-hidden">
+ <div className="flex-1 overflow-hidden px-4 py-3">
+ {CONTINUITY_DM_MESSAGES.map((message, index) => (
+ <div
+ key={message.id}
+ data-visible={index < snapshot.visibleMessages}
+ className={styles.messageSlot}
+ >
+ <div
+ data-motion-target={message.id}
+ className={targetClass(snapshot, message.id)}
+ >
+ <Message m={message} onOpenThread={() => {}} />
+ </div>
+ </div>
+ ))}
+ </div>
+ <PrototypeComposer
+ snapshot={snapshot}
+ target="continuity-dm-composer"
+ placeholder="Message @Alli"
+ />
+ </div>
+ </>
+ )
+ }
+
+ const room = snapshot.room
+ const server = SPACE_SERVERS.find((item) => item.id === room) ?? SPACE_SERVERS[0]
+ const channel = CONTINUITY_CHANNELS[room][0]?.channels[0]
+ const messages = room === "life"
+ ? CONTINUITY_LIFE_MESSAGES
+ : CONTINUITY_WORK_MESSAGES
+
+ return (
+ <>
+ <ChannelHeader
+ channel={channel?.name ?? "general"}
+ rightPanel={null}
+ onToggle={() => {}}
+ server={{ id: server.id, name: server.name, icon: server.icon ?? null }}
+ />
+ <div className="flex min-h-0 flex-1 flex-col overflow-hidden">
+ <div className="flex-1 overflow-hidden px-4 py-3">
+ {messages.map((message, index) => (
+ <div
+ key={message.id}
+ data-visible={index < snapshot.visibleMessages}
+ className={styles.messageSlot}
+ >
+ <div
+ data-motion-target={message.id}
+ className={targetClass(snapshot, message.id)}
+ >
+ <Message m={message} onOpenThread={() => {}} />
+ </div>
+ </div>
+ ))}
+ </div>
+ </div>
+ </>
+ )
+}
+
function PrototypeInviteSurface({ snapshot }: { snapshot: SceneSnapshot }) {
return (
<aside
@@ -926,7 +1304,12 @@ function PrototypeComposer({
className={styles.composerLayer}
>
{snapshot.composerText && (
- <span className={styles.typingText}>{snapshot.composerText}</span>
+ <span
+ className={styles.typingText}
+ style={{ "--typing-width": `${Math.max(11, snapshot.composerText.length)}ch` } as CSSProperties}
+ >
+ {snapshot.composerText}
+ </span>
)}
<span className="ml-0.5 inline-block h-5 w-px bg-foreground align-middle" />
</span>
@@ -948,7 +1331,13 @@ function PrototypeComposer({
)
}
-function MachineScene({ snapshot }: { snapshot: SceneSnapshot }) {
+function MachineScene({
+ snapshot,
+ introDescription,
+}: {
+ snapshot: SceneSnapshot
+ introDescription?: string
+}) {
const online = snapshot.machineState === "online" || snapshot.machineState === "bot-born"
const pairOpen = snapshot.pairSheet !== "closed"
const pairConnected = snapshot.pairSheet === "connected"
@@ -969,8 +1358,12 @@ function MachineScene({ snapshot }: { snapshot: SceneSnapshot }) {
<div className="flex flex-col gap-1">
<h2 className="text-lg font-medium text-foreground">No machines yet</h2>
<p className="max-w-md text-sm text-muted-foreground">
- Connect a machine and your bots run on it always-on — reach them from
- your phone or anywhere, wherever you sign in.
+ {introDescription ?? (
+ <>
+ Connect a machine and your bots run on it always-on — reach them from
+ your phone or anywhere, wherever you sign in.
+ </>
+ )}
</p>
</div>
<div className="flex items-center gap-2">
diff --git a/src/web/src/components/home/marketing-nav.tsx b/src/web/src/components/home/marketing-nav.tsx
index 7761fed27..9e1af6b8f 100644
--- a/src/web/src/components/home/marketing-nav.tsx
+++ b/src/web/src/components/home/marketing-nav.tsx
@@ -2,11 +2,43 @@
import Image from "next/image";
import Link from "next/link";
+import { useEffect, useState } from "react";
+
+export function MarketingNav({
+ isLoggedIn,
+ showTemplates = true,
+ ctaLabel,
+ homeHref = "/",
+ revealAfterHero = false,
+ collapseLinksOnMobile = false,
+ highlightActions = false,
+}: {
+ isLoggedIn: boolean;
+ showTemplates?: boolean;
+ ctaLabel?: string;
+ homeHref?: string;
+ revealAfterHero?: boolean;
+ collapseLinksOnMobile?: boolean;
+ highlightActions?: boolean;
+}) {
+ const [revealed, setRevealed] = useState(false);
+
+ useEffect(() => {
+ if (!revealAfterHero) return;
+
+ const update = () => {
+ const hero = document.querySelector(".hero-section");
+ setRevealed(Boolean(hero && hero.getBoundingClientRect().bottom <= 0));
+ };
+
+ update();
+ window.addEventListener("scroll", update, { passive: true });
+ return () => window.removeEventListener("scroll", update);
+ }, [revealAfterHero]);
-export function MarketingNav({ isLoggedIn }: { isLoggedIn: boolean }) {
return (
<nav
- className="marketing-nav fixed top-0 right-0 left-0 z-50 invisible opacity-0"
+ className={`marketing-nav fixed top-0 right-0 left-0 z-50 transition-opacity duration-300 ${revealAfterHero && revealed ? "visible opacity-100" : "invisible opacity-0"}`}
style={{
backgroundColor: "var(--landing-bg-translucent)",
backdropFilter: "blur(8px)",
@@ -14,7 +46,7 @@ export function MarketingNav({ isLoggedIn }: { isLoggedIn: boolean }) {
}}
>
<div className="mx-auto flex max-w-5xl items-center justify-between px-6 py-2">
- <Link href="/" className="flex items-center gap-1">
+ <Link href={homeHref} className="flex items-center gap-1">
<Image src="/alook.svg" alt="Alook" width={22} height={22} />
<span
className="text-lg tracking-tight"
@@ -28,17 +60,19 @@ export function MarketingNav({ isLoggedIn }: { isLoggedIn: boolean }) {
</span>
</Link>
- <div className="flex items-center gap-3">
- <Link
- href="/templates"
- className="hidden sm:block px-3 py-2 text-xs uppercase tracking-widest transition-opacity duration-150 hover:opacity-70"
- style={{
- fontFamily: "var(--font-mono)",
- color: "var(--landing-text)",
- }}
- >
- Templates
- </Link>
+ <div className="relative flex items-center gap-3">
+ {showTemplates && (
+ <Link
+ href="/templates"
+ className="hidden sm:block px-3 py-2 text-xs uppercase tracking-widest transition-opacity duration-150 hover:opacity-70"
+ style={{
+ fontFamily: "var(--font-mono)",
+ color: "var(--landing-text)",
+ }}
+ >
+ Templates
+ </Link>
+ )}
<Link
href="/blog"
className="hidden sm:block px-3 py-2 text-xs uppercase tracking-widest transition-opacity duration-150 hover:opacity-70"
@@ -53,10 +87,10 @@ export function MarketingNav({ isLoggedIn }: { isLoggedIn: boolean }) {
href="https://github.com/alookai/alook"
target="_blank"
rel="noopener noreferrer"
- className="flex items-center justify-center p-2 transition-opacity duration-150 hover:opacity-70"
+ className={`${collapseLinksOnMobile ? "hidden sm:flex" : "flex"} items-center justify-center p-2 transition-opacity duration-150 hover:opacity-70`}
aria-label="GitHub"
>
- <svg width="16" height="16" viewBox="0 0 24 24" fill="var(--landing-text)">
+ <svg width="16" height="16" viewBox="0 0 24 24" fill={highlightActions ? "var(--landing-accent)" : "var(--landing-text)"}>
<path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" />
</svg>
</a>
@@ -64,10 +98,10 @@ export function MarketingNav({ isLoggedIn }: { isLoggedIn: boolean }) {
href="https://discord.alook.ai"
target="_blank"
rel="noopener noreferrer"
- className="flex items-center justify-center p-2 transition-opacity duration-150 hover:opacity-70"
+ className={`${collapseLinksOnMobile ? "hidden sm:flex" : "flex"} items-center justify-center p-2 transition-opacity duration-150 hover:opacity-70`}
aria-label="Discord"
>
- <svg width="16" height="16" viewBox="0 0 24 24" fill="var(--landing-text)">
+ <svg width="16" height="16" viewBox="0 0 24 24" fill={highlightActions ? "var(--landing-accent)" : "var(--landing-text)"}>
<path d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03z" />
</svg>
</a>
@@ -75,24 +109,56 @@ export function MarketingNav({ isLoggedIn }: { isLoggedIn: boolean }) {
href="https://x.com/alook_ai"
target="_blank"
rel="noopener noreferrer"
- className="flex items-center justify-center p-2 transition-opacity duration-150 hover:opacity-70"
+ className={`${collapseLinksOnMobile ? "hidden sm:flex" : "flex"} items-center justify-center p-2 transition-opacity duration-150 hover:opacity-70`}
aria-label="Follow us on X"
>
- <svg width="14" height="14" viewBox="0 0 24 24" fill="var(--landing-text)">
+ <svg width="14" height="14" viewBox="0 0 24 24" fill={highlightActions ? "var(--landing-accent)" : "var(--landing-text)"}>
<path 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>
+ {collapseLinksOnMobile && (
+ <details className="group relative sm:hidden">
+ <summary
+ className="flex size-9 cursor-pointer list-none items-center justify-center border transition-opacity duration-150 hover:opacity-70 [&::-webkit-details-marker]:hidden"
+ style={{
+ color: highlightActions ? "var(--landing-accent)" : "var(--landing-text)",
+ borderColor: highlightActions ? "var(--landing-accent)" : "var(--landing-border)",
+ }}
+ aria-label="Open navigation menu"
+ >
+ <svg width="17" height="17" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
+ <circle cx="5" cy="12" r="1.7" />
+ <circle cx="12" cy="12" r="1.7" />
+ <circle cx="19" cy="12" r="1.7" />
+ </svg>
+ </summary>
+ <div
+ className="absolute right-0 top-full mt-2 min-w-40 border p-2 shadow-lg"
+ style={{
+ backgroundColor: "var(--landing-bg)",
+ borderColor: "var(--landing-border)",
+ }}
+ >
+ {showTemplates && <Link href="/templates" className="block px-3 py-2 text-xs uppercase tracking-widest">Templates</Link>}
+ <Link href="/blog" className="block px-3 py-2 text-xs uppercase tracking-widest">Blog</Link>
+ <a href="https://github.com/alookai/alook" target="_blank" rel="noopener noreferrer" className="block px-3 py-2 text-xs uppercase tracking-widest">GitHub</a>
+ <a href="https://discord.alook.ai" target="_blank" rel="noopener noreferrer" className="block px-3 py-2 text-xs uppercase tracking-widest">Discord</a>
+ <a href="https://x.com/alook_ai" target="_blank" rel="noopener noreferrer" className="block px-3 py-2 text-xs uppercase tracking-widest">X</a>
+ </div>
+ </details>
+ )}
{isLoggedIn ? (
<Link
href="/c/me"
className="inline-flex items-center gap-2 px-4 py-2 text-xs uppercase tracking-widest transition-opacity duration-150 hover:opacity-70"
style={{
fontFamily: "var(--font-mono)",
- color: "var(--landing-text)",
- border: "1px solid var(--landing-text)",
+ color: highlightActions ? "var(--landing-bg)" : "var(--landing-text)",
+ backgroundColor: highlightActions ? "var(--landing-accent)" : "transparent",
+ border: `1px solid ${highlightActions ? "var(--landing-accent)" : "var(--landing-text)"}`,
}}
>
- App
+ {ctaLabel ?? "App"}
<svg
width="12"
height="12"
@@ -113,10 +179,10 @@ export function MarketingNav({ isLoggedIn }: { isLoggedIn: boolean }) {
style={{
fontFamily: "var(--font-mono)",
color: "var(--landing-bg)",
- backgroundColor: "var(--landing-text)",
+ backgroundColor: highlightActions ? "var(--landing-accent)" : "var(--landing-text)",
}}
>
- Get Started
+ {ctaLabel ?? "Get Started"}
</a>
)}
</div>
diff --git a/src/web/src/components/public-layout.tsx b/src/web/src/components/public-layout.tsx
index 7a56bcb01..d5242cf11 100644
--- a/src/web/src/components/public-layout.tsx
+++ b/src/web/src/components/public-layout.tsx
@@ -93,7 +93,7 @@ export function PublicLayout({
</span>
</Link>
<span className="text-[10px] uppercase tracking-[0.2em] font-mono text-muted-foreground">
- Your Personal Company
+ Rooms for people and agents.
</span>
</div>
diff --git a/src/web/src/components/typewriter-visual.tsx b/src/web/src/components/typewriter-visual.tsx
index a922eba8c..4e2d10e87 100644
--- a/src/web/src/components/typewriter-visual.tsx
+++ b/src/web/src/components/typewriter-visual.tsx
@@ -146,19 +146,21 @@ const TW_VARS: React.CSSProperties = {
"--tw-chrome": "oklch(0.72 0.01 75)",
"--tw-chrome-hi": "oklch(0.82 0.005 80)",
"--tw-paper": "oklch(0.97 0.008 80)",
- "--tw-blob": "oklch(0.88 0.025 82)",
+ "--tw-blob": "var(--tw-blob-theme, oklch(0.88 0.025 82))",
"--tw-roller": "oklch(0.15 0.01 55)",
} as React.CSSProperties;
interface TypewriterVisualProps {
className?: string;
- /** When true, keyboard Enter cycles emails. Default false. */
+ /** When true, keyboard Enter cycles the available papers. Default false. */
interactive?: boolean;
/** Delay (seconds) before the paper-feed entrance animation starts. */
entranceDelay?: number;
/** Custom paper content. When provided, replaces the default email carousel and disables cycling. */
paper?: React.ReactNode;
- /** Email scheme to display. Defaults to EMAILS_DEFAULT. Ignored when `paper` is provided. */
+ /** Custom paper carousel. Return cycles these papers without using the legacy email examples. */
+ papers?: React.ReactNode[];
+ /** Email scheme to display. Defaults to EMAILS_DEFAULT. Ignored when custom paper content is provided. */
emails?: TypewriterEmail[];
/** Scale factor for the background blob. Default 1. */
blobScale?: number;
@@ -176,6 +178,7 @@ export function TypewriterVisual({
interactive = false,
entranceDelay = 0.3,
paper,
+ papers,
emails = EMAILS_DEFAULT,
blobScale = 1,
blobBottom,
@@ -205,6 +208,9 @@ export function TypewriterVisual({
};
});
}, [emails, birthday]);
+ const effectivePapers = papers && papers.length > 0 ? papers : null;
+ const cycleItemCount = effectivePapers?.length ?? effectiveEmails.length;
+ const canCycle = !paper && cycleItemCount > 1;
useEffect(() => {
if (!birthday) return;
@@ -311,12 +317,12 @@ export function TypewriterVisual({
ease: "power2.in",
onComplete: () => {
setEmailIndex(() => {
- const unseen = Array.from({ length: effectiveEmails.length }, (_, i) => i)
+ const unseen = Array.from({ length: cycleItemCount }, (_, i) => i)
.filter((i) => !seenRef.current.has(i));
if (unseen.length === 0) {
seenRef.current = new Set();
}
- const pool = unseen.length > 0 ? unseen : Array.from({ length: effectiveEmails.length }, (_, i) => i);
+ const pool = unseen.length > 0 ? unseen : Array.from({ length: cycleItemCount }, (_, i) => i);
const next = pool[Math.floor(Math.random() * pool.length)];
seenRef.current.add(next);
requestAnimationFrame(() => {
@@ -328,11 +334,11 @@ export function TypewriterVisual({
});
},
});
- }, [playPaperFeed, effectiveEmails.length]);
+ }, [playPaperFeed, cycleItemCount]);
// Keyboard Enter listener — only when interactive
useEffect(() => {
- if (!interactive) return;
+ if (!interactive || !canCycle) return;
const onKeyDown = (e: KeyboardEvent) => {
if (e.key === "Enter") {
e.preventDefault();
@@ -341,7 +347,7 @@ export function TypewriterVisual({
};
window.addEventListener("keydown", onKeyDown);
return () => window.removeEventListener("keydown", onKeyDown);
- }, [interactive, handleReturnKey]);
+ }, [interactive, canCycle, handleReturnKey]);
// Entrance animation — paper feeds in on mount
useGSAP(
@@ -385,6 +391,7 @@ export function TypewriterVisual({
);
const email = effectiveEmails[emailIndex];
+ const activePaper = paper ?? effectivePapers?.[emailIndex];
return (
<div
@@ -408,8 +415,8 @@ export function TypewriterVisual({
<div className="tw-body-front">
{/* Paper track — clips paper as it feeds out */}
<div className="tw-paper-track">
- <div className="tw-paper" key={paper ? "custom" : `${emailIndex}-${paperKey}`}>
- {paper ?? (
+ <div className="tw-paper" key={activePaper ? `custom-${emailIndex}-${paperKey}` : `${emailIndex}-${paperKey}`}>
+ {activePaper ?? (
<>
<div
className="tw-email-headers"
@@ -469,7 +476,7 @@ export function TypewriterVisual({
{KEY_ROWS.map((count, ri) => (
<div key={ri} className="tw-key-row">
{Array.from({ length: count }).map((_, ki) => {
- if (ri === 2 && ki === 4 && !paper) {
+ if (ri === 2 && ki === 4 && !paper && !effectivePapers) {
return (
<Popover key={ki} open={hPopoverOpen} onOpenChange={setHPopoverOpen}>
<PopoverTrigger
@@ -503,11 +510,11 @@ export function TypewriterVisual({
}
return <div key={ki} className="tw-key" />;
})}
- {ri === 1 && !paper && (
+ {ri === 1 && canCycle && (
<button
className="tw-key tw-return-key"
onClick={handleReturnKey}
- aria-label="Return — load next email"
+ aria-label="Return — load next paper"
>
<span className="tw-return-label">{"\u21B5"}</span>
</button>