Multi-Agent Collaboration for Team and Friends
TypeScript agent-automationagent-orchestrationagent-workflowai-agentsai-collaborationai-memoryai-workforceautonomous-agentsclaude-codeclaude-code-skillscodexcoding-agentmulti-agentmultiple-agentone-person-businessone-person-companyone-person-teamopencodesolopreneur
feat(web): add landing page with 3D typewriter hero and email demo
Generdbed9177bb85
diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 7ae51db37..76e2b838c 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -101,6 +101,9 @@ importers:'@base-ui/react':specifier: ^1.4.0version: 1.4.0(@date-fns/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])+ '@gsap/react':+ specifier: ^2.1.2+ version: 2.1.2([email protected])([email protected])'@icons-pack/react-simple-icons':specifier: ^13.13.0version: 13.13.0([email protected])@@ -143,6 +146,9 @@ importers:clsx:specifier: ^2.1.1version: 2.1.1+ gsap:+ specifier: ^3.15.0+ version: 3.15.0input-otp:specifier: ^1.4.2@@ -1188,6 +1194,12 @@ packages:'@floating-ui/[email protected]':resolution: {integrity: sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg==}+ '@gsap/[email protected]':+ resolution: {integrity: sha512-JqliybO1837UcgH2hVOM4VO+38APk3ECNrsuSM4MuXp+rbf+/2IG2K1YJiqfTcXQHH7XlA0m3ykniFYstfq0Iw==}+ peerDependencies:+ gsap: ^3.12.5+ react: '>=17'+'@hono/[email protected]':resolution: {integrity: sha512-TsQLe4i2gvoTtrHje625ngThGBySOgSK3Xo2XRYOdqGN1teR8+I7vchQC46uLJi8OF62YTYA3AhSpumtkhsaKQ==}engines: {node: '>=18.14.1'}@@ -3952,6 +3964,9 @@ packages:resolution: {integrity: sha512-5bJ+nf/UCpAjHM8i06fl7eLyVC9iuNAjm9qzkiu2ZGhM0VscSvS6WDPfAwkdkBuoXGM9FJSbKl6wylMwP9Ktig==}engines: {node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0}+ resolution: {integrity: sha512-dMW4CWBTUK1AEEDeZc1g4xpPGIrSf9fJF960qbTZmN/QwZIWY5wgliS6JWl9/25fpTGJrMRtSjGtOmPnfjZB+A==}+resolution: {integrity: sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==}engines: {node: '>=10'}@@ -7332,6 +7347,11 @@ snapshots:'@floating-ui/[email protected]': {}+ dependencies:+ gsap: 3.15.0+ react: 19.2.5+'@hono/[email protected]([email protected])':dependencies:hono: 4.12.12@@ -9729,8 +9749,8 @@ snapshots:'@next/eslint-plugin-next': 16.2.3eslint: 9.39.4([email protected])eslint-import-resolver-node: 0.3.10- eslint-import-resolver-typescript: 3.10.1([email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected])))([email protected]([email protected]))- eslint-plugin-import: 2.32.0(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected]))+ eslint-import-resolver-typescript: 3.10.1([email protected])([email protected]([email protected]))+ eslint-plugin-import: 2.32.0(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))eslint-plugin-jsx-a11y: 6.10.2([email protected]([email protected]))eslint-plugin-react: 7.37.5([email protected]([email protected]))eslint-plugin-react-hooks: 7.0.1([email protected]([email protected]))@@ -9752,7 +9772,7 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected]([email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected])))([email protected]([email protected])):dependencies:'@nolyfill/is-core-module': 1.0.39debug: 4.4.3@@ -9763,22 +9783,22 @@ snapshots:tinyglobby: 0.2.16unrs-resolver: 1.11.1optionalDependencies:- eslint-plugin-import: 2.32.0(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected]))+ eslint-plugin-import: 2.32.0(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))transitivePeerDependencies:- supports-color- [email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected])):+ [email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected]([email protected])):dependencies:debug: 3.2.7optionalDependencies:eslint: 9.39.4([email protected])eslint-import-resolver-node: 0.3.10- eslint-import-resolver-typescript: 3.10.1([email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected])))([email protected]([email protected]))+ eslint-import-resolver-typescript: 3.10.1([email protected])([email protected]([email protected]))transitivePeerDependencies:- supports-color- [email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected])):+ [email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected])):dependencies:'@rtsao/scc': 1.1.0array-includes: 3.1.9@@ -9789,7 +9809,7 @@ snapshots:doctrine: 2.1.0eslint: 9.39.4([email protected])eslint-import-resolver-node: 0.3.10- eslint-module-utils: 2.12.1(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected]))+ eslint-module-utils: 2.12.1(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected]([email protected]))hasown: 2.0.2is-core-module: 2.16.1is-glob: 4.0.3@@ -10242,6 +10262,8 @@ snapshots:+ [email protected]: {}+dependencies:duplexer: 0.1.2diff --git a/src/web/package.json b/src/web/package.jsonindex 6d0a4b86b..6255d3349 100644--- a/src/web/package.json+++ b/src/web/package.json@@ -19,6 +19,7 @@"dependencies": {"@alook/shared": "workspace:*","@base-ui/react": "^1.4.0",+ "@gsap/react": "^2.1.2","@icons-pack/react-simple-icons": "^13.13.0","@opennextjs/cloudflare": "^1.19.1","@tiptap/extension-color": "^3.22.3",@@ -33,6 +34,7 @@"better-auth": "^1.6.2","class-variance-authority": "^0.7.1","clsx": "^2.1.1",+ "gsap": "^3.15.0","input-otp": "^1.4.2","lucide-react": "^1.8.0","nanoid": "^5.1.7",diff --git a/src/web/src/app/globals.css b/src/web/src/app/globals.cssindex a15d17d37..749fe778b 100644--- a/src/web/src/app/globals.css+++ b/src/web/src/app/globals.css@@ -13,6 +13,7 @@--font-sans: var(--font-dm-sans);--font-mono: var(--font-dm-mono);--font-heading: var(--font-dm-sans);+ --font-display: var(--font-bricolage);--font-brand: var(--font-caveat);--color-sidebar-ring: var(--sidebar-ring);--color-sidebar-border: var(--sidebar-border);@@ -127,6 +128,435 @@--sidebar-ring: oklch(0.55 0.01 60);}+/* ── Homepage "1980s CRT Nostalgia" scoped tokens ── */+.landing {+ --landing-bg: oklch(0.93 0.015 80);+ --landing-surface: oklch(0.88 0.02 75);+ --landing-text: oklch(0.15 0.01 55);+ --landing-text-muted: oklch(0.45 0.01 55);+ --landing-accent: oklch(0.7 0.15 80);+ --landing-accent-dim: oklch(0.5 0.08 80);+ --landing-border: oklch(0.15 0.01 55 / 12%);+ --landing-crt-bg: oklch(0.08 0.008 55);+ --landing-phosphor: oklch(0.75 0.18 80);+ --font-crt: var(--font-vt323);++ /* 3D typewriter tokens */+ --tw-body: oklch(0.25 0.01 60);+ --tw-body-hi: oklch(0.30 0.01 60);+ --tw-body-lo: oklch(0.18 0.01 55);+ --tw-body-top: oklch(0.28 0.01 60);+ --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-roller: oklch(0.15 0.01 55);+}++/* ─── Front-Facing Typewriter Illustration ───++ Classic front-view typewriter (Olivetti-inspired):+ ┌─────────────┐ ← paper+ ●────┤=============├────● ← roller + knobs+ │ ╲|||||||╱ │ ← type-bar fan+ ╭────┴─────────────┴────╮+ │ ○ ○ ○ ○ ○ ○ ○ ○ │ ← key rows+ │ ○ ○ ○ ○ ○ ○ ○ │+ │ ○ ○ ○ ○ ○ ○ ○ ○ │+ │ ╶━━━━━━━╴ │ ← bars+ ╰───────────────────────╯+*/++.typewriter-visual {+ position: relative;+ display: flex;+ flex-direction: column;+ align-items: center;+ justify-content: flex-end;+ overflow: visible;+ zoom: 0.88; /* scale outside 3D context — keeps text crisp */+}++.typewriter-blob {+ position: absolute;+ bottom: -10%;+ left: 50%;+ transform: translateX(-50%);+ width: 130%;+ height: 80%;+ background-color: var(--tw-blob);+ mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M44.7,-76.4C58.9,-69.2,71.8,-59.1,81.1,-46.1C90.4,-33.1,96.1,-16.6,96.6,-0.1C97.1,16.4,92.5,32.8,82.8,45.8C73.1,58.8,58.4,68.4,42.7,75.4C27,82.4,10.3,86.8,-5.5,88.4C-21.3,90,-36.2,88.8,-49.6,81.8C-63,74.8,-74.9,62.1,-82.1,47.4C-89.3,32.7,-91.8,16.3,-90.1,0.9C-88.4,-14.4,-82.5,-28.9,-73.6,-40.8C-64.7,-52.7,-52.9,-62,-40.1,-69.4C-27.3,-76.8,-13.6,-82.3,1.3,-84.6C16.2,-86.9,30.5,-83.6,44.7,-76.4Z' transform='translate(100 100)' /%3E%3C/svg%3E");+ mask-size: contain;+ mask-repeat: no-repeat;+ mask-position: center;+ z-index: 1;+ opacity: 0.45;+ transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);+}++/* ── 3D Scene — default angle, mouse-follow via JS ── */+.typewriter-scene {+ position: relative;+ z-index: 2;+ perspective: 2500px;+ transform-style: preserve-3d;+ transform: rotateY(-20deg) rotateX(10deg);+ transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);+}++.typewriter-visual:hover .typewriter-blob {+ transform: translateX(-50%) scale(1.05) rotate(5deg);+}++/* ── Machine wrapper — 3D box ── */+.tw-machine {+ position: relative;+ width: 420px;+ transform-style: preserve-3d;+}++/* ── Paper track — clips the paper as it feeds out ── */+.tw-paper-track {+ position: absolute;+ bottom: calc(100% - 20px);+ left: 50%;+ transform: translateX(-50%) translateZ(81px);+ width: 100%;+ height: 400px; /* tall enough for any paper content */+ overflow: hidden;+ z-index: 1;+ pointer-events: none;+}++/* ── Paper — slides up inside the track ── */+.tw-paper {+ position: absolute;+ bottom: 0;+ left: 0;+ width: 100%;+ padding: 24px 28px 44px;+ background: var(--tw-paper);+ box-shadow:+ 0 4px 20px rgba(0,0,0,0.08),+ 0 1px 4px rgba(0,0,0,0.05);+ border-radius: 2px 2px 0 0;+ pointer-events: auto;+ opacity: 0; /* hidden by default — GSAP sets opacity:1 when ready */+}++/* ── 3D Body — 6-face box (420w × 260h × 160d, half-d=80) ── */+.tw-body {+ position: relative;+ width: 100%;+ height: 260px;+ transform-style: preserve-3d;+}++/* Corner filler — flat rectangle just behind front face, seals rounded-corner gaps */+.tw-body::after {+ content: "";+ position: absolute;+ bottom: 0;+ left: 0;+ right: 0;+ height: 14px;+ background: var(--tw-body-lo);+ transform: translateZ(79px);+}++/* Front face — main visible surface */+.tw-body-front {+ position: absolute;+ inset: 0;+ background: linear-gradient(+ 180deg,+ var(--tw-body-hi) 0%,+ var(--tw-body) 30%,+ var(--tw-body-lo) 100%+ );+ border-radius: 0 0 12px 12px;+ transform: translateZ(80px);+ box-shadow:+ inset 0 1px 0 oklch(1 0 0 / 6%),+ inset -5px -5px 15px oklch(0 0 0 / 10%),+ inset 2px 2px 10px oklch(1 0 0 / 5%);+ overflow: visible;+}++/* Back face */+.tw-body-back {+ position: absolute;+ inset: 0;+ background: var(--tw-body-lo);+ border-radius: 0 0 12px 12px;+ transform: translateZ(-80px) rotateY(180deg);+}++/* Left face */+.tw-body-left {+ position: absolute;+ width: 160px;+ height: 260px;+ background: oklch(0.22 0.01 58);+ border-radius: 0 0 0 12px;+ transform: rotateY(-90deg) translateZ(80px);+ box-shadow: inset 10px 0 30px oklch(0 0 0 / 6%);+}++/* Right face */+.tw-body-right {+ position: absolute;+ width: 160px;+ height: 260px;+ background: var(--tw-body-lo);+ border-radius: 0 0 12px 0;+ transform: rotateY(90deg) translateZ(340px);+}++/* Top face */+.tw-body-top {+ position: absolute;+ width: 420px;+ height: 160px;+ background: oklch(0.30 0.01 60);+ border-radius: 0;+ transform: rotateX(90deg) translateZ(80px);+}++/* Bottom face */+.tw-body-bottom {+ position: absolute;+ width: 420px;+ height: 160px;+ background: oklch(0.14 0.01 55);+ border-radius: 0 0 12px 12px;+ transform: rotateX(-90deg) translateZ(180px);+ box-shadow: 0 60px 100px oklch(0 0 0 / 20%);+}++/* ── Roller assembly — at the top of body, wider than body ── */+.tw-roller-assembly {+ position: absolute;+ top: -6px;+ left: -24px;+ right: -24px;+ height: 28px;+ display: flex;+ align-items: center;+ z-index: 6;+}++.tw-roller {+ flex: 1;+ height: 22px;+ background: var(--tw-roller);+ border-radius: 11px;+ box-shadow:+ inset 0 -5px 10px rgba(0,0,0,0.5),+ inset 0 4px 6px rgba(255,255,255,0.05),+ 0 2px 8px rgba(0,0,0,0.3);+}++/* Roller knobs */+.tw-knob {+ width: 20px;+ height: 32px;+ background: oklch(0.20 0.01 55);+ border-radius: 4px;+ box-shadow:+ inset 0 -3px 5px rgba(0,0,0,0.4),+ inset 0 1px 2px rgba(255,255,255,0.06),+ 0 2px 4px rgba(0,0,0,0.3);+ flex-shrink: 0;+ border: 1px solid oklch(0.30 0.01 55);+}+.tw-knob-left { margin-right: -3px; }+.tw-knob-right { margin-left: -3px; }++/* ── Type-bar fan — below roller ── */+.tw-typebar-fan {+ position: absolute;+ top: 16px;+ left: 50%;+ transform: translateX(-50%);+ width: 220px;+ height: 38px;+ z-index: 5;+ overflow: hidden;+}++/* Fan arc */+.tw-typebar-fan::before {+ content: "";+ position: absolute;+ bottom: 0;+ left: 50%;+ transform: translateX(-50%);+ width: 200px;+ height: 76px;+ border-radius: 50%;+ border: 6px solid oklch(0.40 0.01 55);+ border-bottom: none;+ clip-path: inset(0 0 50% 0);+}++/* Radiating type bars */+.tw-typebar-fan::after {+ content: "";+ position: absolute;+ bottom: 0;+ left: 50%;+ transform: translateX(-50%);+ width: 180px;+ height: 36px;+ background: repeating-conic-gradient(+ from 155deg at 50% 100%,+ oklch(0.46 0.01 60) 0deg 1deg,+ transparent 1deg 4.5deg+ );+ mask-image: radial-gradient(ellipse 90px 36px at 50% 100%, black 40%, transparent 90%);+}++/* ── Keys ── */+.tw-keys-layer {+ position: absolute;+ top: 60px;+ left: 0; right: 0;+ display: flex;+ flex-direction: column;+ align-items: center;+ gap: 14px;+ padding: 0 36px;+ z-index: 4;+}++.tw-key-row {+ display: flex;+ gap: 12px;+}++.tw-key-row:nth-child(2) { margin-left: 18px; }+.tw-key-row:nth-child(3) { margin-left: 0; }++.tw-key {+ width: 32px;+ height: 26px;+ background: oklch(0.92 0.005 80);+ border-radius: 50%;+ box-shadow:+ 0 3px 0 oklch(0.55 0.015 65),+ 0 4px 8px rgba(0,0,0,0.25),+ inset 0 1px 3px rgba(255,255,255,0.7);+ position: relative;+}++.tw-key::after {+ content: "";+ position: absolute;+ top: 4px; left: 4px; right: 4px; bottom: 4px;+ border-radius: 50%;+ background: radial-gradient(+ circle at 42% 38%,+ rgba(255,255,255,0.5),+ rgba(0,0,0,0.04) 70%+ );+ border: 1px solid rgba(0,0,0,0.08);+}++/* ── Bars (space bar area) ── */+.tw-bars {+ position: absolute;+ bottom: 34px;+ left: 50%;+ transform: translateX(-50%);+ display: flex;+ flex-direction: column;+ align-items: center;+ gap: 8px;+ z-index: 4;+}++.tw-bar {+ height: 10px;+ background: oklch(0.88 0.005 80);+ border-radius: 5px;+ box-shadow:+ 0 2px 0 oklch(0.55 0.015 65),+ 0 3px 6px rgba(0,0,0,0.15),+ inset 0 1px 2px rgba(255,255,255,0.5);+}++.tw-bar-long {+ width: 210px;+}++.tw-bar-short {+ width: 170px;+}++/* ── Return key — wider, clickable ── */+.tw-return-key {+ width: 52px !important;+ border-radius: 14px !important;+ cursor: pointer;+ border: none;+ display: flex;+ align-items: center;+ justify-content: center;+ animation: none !important;+ transition: transform 0.1s ease, box-shadow 0.1s ease;+ background: oklch(0.25 0.01 55) !important;+}+.tw-return-key::after {+ border-radius: 10px !important;+ background: radial-gradient(+ circle at 42% 38%,+ rgba(255,255,255,0.15),+ rgba(0,0,0,0.06) 70%+ ) !important;+}+.tw-return-label {+ font-size: 16px;+ font-weight: 600;+ color: oklch(0.85 0.005 80);+ line-height: 1;+ pointer-events: none;+ position: relative;+ z-index: 1;+}+.tw-return-key:active {+ transform: translateY(2px);+ box-shadow: 0 0 0 oklch(0.55 0.015 65), 0 1px 2px rgba(0,0,0,0.1), inset 0 1px 2px rgba(255,255,255,0.7);+}++/* Key press animation */+.tw-key:not(.tw-return-key):nth-child(3n+1) { animation: tw-press 1.6s ease 0.15s infinite; }+.tw-key:not(.tw-return-key):nth-child(7n) { animation: tw-press 2.2s ease 0.55s infinite; }+.tw-key:not(.tw-return-key):nth-child(2n+4) { animation: tw-press 1.9s ease 0.85s infinite; }+.tw-key:not(.tw-return-key):nth-child(4n+2) { animation: tw-press 1.3s ease 0s infinite; }++@keyframes tw-press {+ 0%, 88%, 100% {+ transform: translateY(0);+ box-shadow: 0 2px 0 oklch(0.55 0.015 65), 0 3px 6px rgba(0,0,0,0.2), inset 0 1px 2px rgba(255,255,255,0.7);+ }+ 5% {+ transform: translateY(2px);+ box-shadow: 0 0 0 oklch(0.55 0.015 65), 0 1px 2px rgba(0,0,0,0.1), inset 0 1px 2px rgba(255,255,255,0.7);+ }+}+++/* ── Responsive ── */+@media (max-width: 640px) {+ .typewriter-scene {+ transform: scale(0.55) !important;+ }+ .tw-paper {+ padding: 16px 18px 24px;+ }+}+/* ── Sonner toast: close button only on hover ── */[data-sonner-toast] [data-close-button] {opacity: 0;diff --git a/src/web/src/app/layout.tsx b/src/web/src/app/layout.tsxindex 548f45524..9e61ff0cc 100644--- a/src/web/src/app/layout.tsx+++ b/src/web/src/app/layout.tsx@@ -1,5 +1,5 @@import type { Metadata } from "next";-import { DM_Sans, DM_Mono, Caveat } from "next/font/google";+import { DM_Sans, DM_Mono, Caveat, Bricolage_Grotesque, VT323 } from "next/font/google";import { ThemeProvider } from "@/components/theme-provider";import { ToasterProvider } from "@/components/toaster-provider";import "./globals.css";@@ -22,6 +22,18 @@ const caveat = Caveat({weight: ["700"],});+const bricolage = Bricolage_Grotesque({+ variable: "--font-bricolage",+ subsets: ["latin"],+ weight: ["300", "400", "500", "600", "700", "800"],+});++const vt323 = VT323({+ variable: "--font-vt323",+ subsets: ["latin"],+ weight: ["400"],+});+export const metadata: Metadata = {title: "Alook",@@ -48,7 +60,7 @@ export default function RootLayout({return (<htmllang="en"- className={`${dmSans.variable} ${dmMono.variable} ${caveat.variable} h-full antialiased`}+ className={`${dmSans.variable} ${dmMono.variable} ${caveat.variable} ${bricolage.variable} ${vt323.variable} h-full antialiased`}suppressHydrationWarning><body className="min-h-full flex flex-col">diff --git a/src/web/src/app/page.tsx b/src/web/src/app/page.tsxindex d3ba5be7e..e18f3a9fb 100644--- a/src/web/src/app/page.tsx+++ b/src/web/src/app/page.tsx@@ -1,8 +1,9 @@import { getSession } from "@/lib/session";import { redirect } from "next/navigation";+import { HomePage } from "@/components/home/home-page";export default async function Page() {const session = await getSession();if (session) redirect("/workspaces?auto");- redirect("/sign-in");+ return <HomePage />;}diff --git a/src/web/src/components/home/email-demo.tsx b/src/web/src/components/home/email-demo.tsxnew file mode 100644index 000000000..b00a97e30--- /dev/null+++ b/src/web/src/components/home/email-demo.tsx@@ -0,0 +1,408 @@+"use client";++import { useRef, useState, useCallback, useEffect } from "react";+import gsap from "gsap";+import { useGSAP } from "@gsap/react";+import { ScrollTrigger } from "gsap/ScrollTrigger";++gsap.registerPlugin(ScrollTrigger);++interface EmailOption {+ subject: string;+ body: string;+ reply: string;+}++const emailOptions: EmailOption[] = [+ {+ subject: "Check if my API is still up",+ body: "Hey Jarvis, can you hit all the health endpoints and let me know if anything looks off?",+ reply:+ "All 4 endpoints responding. Average latency 42ms. The /users endpoint is slightly slower than usual (180ms vs 90ms baseline) — might want to look into that.",+ },+ {+ subject: "Summarize today's GitHub notifications",+ body: "What happened on our repos today?",+ reply:+ "3 PRs merged (auth refactor, email worker fix, CLI update). 2 new issues opened — one P1 about WebSocket disconnects. You were tagged in a review on the email worker PR.",+ },+ {+ subject: "Deploy the latest build to staging",+ body: "Ship the current main to staging when you get a chance.",+ reply:+ "Done. Build #847 deployed to staging at 14:32 UTC. All smoke tests passing. No new errors in the first 5 minutes of logs.",+ },+];++export function EmailDemo() {+ const sectionRef = useRef<HTMLDivElement>(null);+ const [activeEmail, setActiveEmail] = useState<number | null>(null);+ const [phase, setPhase] = useState<+ "idle" | "sending" | "processing" | "replying" | "done"+ >("idle");+ const autoPlayTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);+ const hasInteracted = useRef(false);++ useGSAP(+ () => {+ gsap.from(".email-section-title", {+ y: 30,+ opacity: 0,+ duration: 0.6,+ scrollTrigger: {+ trigger: sectionRef.current,+ start: "top 75%",+ toggleActions: "play none none none",+ },+ });++ gsap.from(".email-panel", {+ y: 40,+ opacity: 0,+ duration: 0.7,+ stagger: 0.15,+ scrollTrigger: {+ trigger: sectionRef.current,+ start: "top 65%",+ toggleActions: "play none none none",+ },+ });+ },+ { scope: sectionRef }+ );++ const handleSendEmail = useCallback(+ (index: number) => {+ if (phase !== "idle" && phase !== "done") return;+ hasInteracted.current = true;+ if (autoPlayTimerRef.current) clearTimeout(autoPlayTimerRef.current);++ setActiveEmail(index);+ setPhase("sending");++ const tl = gsap.timeline();+ tl.to({}, { duration: 0.3 });+ tl.call(() => setPhase("processing"));+ tl.to({}, { duration: 1.8 });+ tl.call(() => setPhase("replying"));+ tl.to({}, { duration: 0.5 });+ tl.call(() => setPhase("done"));+ tl.from(".email-reply-block", {+ y: 8,+ opacity: 0,+ duration: 0.3,+ ease: "power2.out",+ });+ },+ [phase]+ );++ const handleSendEmailRef = useRef(handleSendEmail);+ useEffect(() => {+ handleSendEmailRef.current = handleSendEmail;+ }, [handleSendEmail]);++ useEffect(() => {+ if (hasInteracted.current) return;+ const observer = new IntersectionObserver(+ ([entry]) => {+ if (entry.isIntersecting && !hasInteracted.current) {+ autoPlayTimerRef.current = setTimeout(() => {+ if (!hasInteracted.current) handleSendEmailRef.current(0);+ }, 3000);+ } else if (autoPlayTimerRef.current) {+ clearTimeout(autoPlayTimerRef.current);+ }+ },+ { threshold: 0.5 }+ );+ const section = sectionRef.current;+ if (section) observer.observe(section);+ return () => {+ if (section) observer.unobserve(section);+ if (autoPlayTimerRef.current) clearTimeout(autoPlayTimerRef.current);+ };+ }, []);++ const email = activeEmail !== null ? emailOptions[activeEmail] : null;++ return (+ <section+ ref={sectionRef}+ className="relative flex min-h-screen flex-col items-center justify-center px-6 py-32"+ style={{ backgroundColor: "var(--landing-bg)" }}+ >+ {/* Section title */}+ <div className="email-section-title mb-12 text-center">+ <div+ className="mb-3 text-xs uppercase tracking-[0.3em]"+ style={{+ fontFamily: "var(--font-mono)",+ color: "var(--landing-text-muted)",+ }}+ >+ Demonstration+ </div>+ <h2+ style={{+ fontFamily: "var(--font-crt)",+ color: "var(--landing-text)",+ fontSize: "clamp(1.75rem, 4vw, 3rem)",+ }}+ >+ The Email Interface+ </h2>+ <p+ className="mt-2"+ style={{+ fontFamily: "var(--font-mono)",+ color: "var(--landing-text-muted)",+ fontSize: "0.85rem",+ }}+ >+ Select a message. Observe the agent process and respond.+ </p>+ </div>++ {/* Two CRT panels side by side */}+ <div className="mx-auto grid w-full max-w-5xl grid-cols-1 items-start gap-6 lg:grid-cols-2">+ {/* Left: Outbox terminal */}+ <div+ className="email-panel rounded-lg p-2"+ style={{+ backgroundColor: "oklch(0.82 0.02 75)",+ boxShadow:+ "0 4px 16px oklch(0.15 0.01 55 / 15%), inset 0 1px 0 oklch(0.95 0.01 80 / 40%)",+ }}+ >+ <div+ className="relative overflow-hidden rounded p-5"+ style={{+ backgroundColor: "var(--landing-crt-bg)",+ boxShadow: "inset 0 0 40px oklch(0.04 0.003 55)",+ minHeight: "320px",+ }}+ >+ {/* Scan lines */}+ <div+ className="pointer-events-none absolute inset-0 z-10"+ style={{+ backgroundImage:+ "repeating-linear-gradient(to bottom, transparent 0px, transparent 1px, oklch(0 0 0 / 6%) 1px, oklch(0 0 0 / 6%) 2px)",+ backgroundSize: "100% 2px",+ }}+ />++ <div className="relative z-20">+ <div+ className="mb-4 text-xs uppercase tracking-[0.2em]"+ style={{+ fontFamily: "var(--font-crt)",+ color: "var(--landing-phosphor)",+ opacity: 0.5,+ textShadow: "0 0 6px oklch(0.75 0.18 80 / 30%)",+ }}+ >+ OUTBOX — TO: [email protected]+ </div>++ {/* Email options */}+ <div className="space-y-2">+ {emailOptions.map((opt, i) => (+ <button+ key={opt.subject}+ onClick={() => handleSendEmail(i)}+ disabled={phase !== "idle" && phase !== "done"}+ className="block w-full text-left transition-opacity duration-150"+ style={{+ fontFamily: "var(--font-crt)",+ color: "var(--landing-phosphor)",+ fontSize: "0.9rem",+ opacity:+ activeEmail === i+ ? 1+ : phase !== "idle" && phase !== "done"+ ? 0.3+ : 0.6,+ textShadow:+ activeEmail === i+ ? "0 0 10px oklch(0.75 0.18 80 / 50%)"+ : "0 0 4px oklch(0.75 0.18 80 / 20%)",+ cursor:+ phase !== "idle" && phase !== "done"+ ? "not-allowed"+ : "pointer",+ }}+ >+ {activeEmail === i ? "▶ " : " "}+ {opt.subject}+ </button>+ ))}+ </div>++ {/* Reply display */}+ {phase === "done" && email && (+ <div className="email-reply-block mt-5">+ <div+ className="mb-1 text-xs uppercase tracking-[0.15em]"+ style={{+ fontFamily: "var(--font-crt)",+ color: "var(--landing-phosphor)",+ opacity: 0.4,+ textShadow: "0 0 4px oklch(0.75 0.18 80 / 20%)",+ }}+ >+ REPLY FROM [email protected]:+ </div>+ <p+ className="leading-relaxed"+ style={{+ fontFamily: "var(--font-crt)",+ color: "var(--landing-phosphor)",+ fontSize: "0.85rem",+ opacity: 0.75,+ textShadow: "0 0 6px oklch(0.75 0.18 80 / 30%)",+ }}+ >+ {email.reply}+ </p>+ </div>+ )}+ </div>+ </div>+ <div className="mt-1 px-2">+ <span+ className="text-[10px] uppercase tracking-[0.2em]"+ style={{+ fontFamily: "var(--font-mono)",+ color: "var(--landing-text-muted)",+ }}+ >+ Terminal A — Compose+ </span>+ </div>+ </div>++ {/* Right: Agent log terminal */}+ <div+ className="email-panel rounded-lg p-2"+ style={{+ backgroundColor: "oklch(0.82 0.02 75)",+ boxShadow:+ "0 4px 16px oklch(0.15 0.01 55 / 15%), inset 0 1px 0 oklch(0.95 0.01 80 / 40%)",+ }}+ >+ <div+ className="relative overflow-hidden rounded p-5"+ style={{+ backgroundColor: "var(--landing-crt-bg)",+ boxShadow: "inset 0 0 40px oklch(0.04 0.003 55)",+ minHeight: "320px",+ }}+ >+ {/* Scan lines */}+ <div+ className="pointer-events-none absolute inset-0 z-10"+ style={{+ backgroundImage:+ "repeating-linear-gradient(to bottom, transparent 0px, transparent 1px, oklch(0 0 0 / 6%) 1px, oklch(0 0 0 / 6%) 2px)",+ backgroundSize: "100% 2px",+ }}+ />++ <div className="relative z-20">+ <div+ className="mb-4 flex items-center gap-2 text-xs uppercase tracking-[0.2em]"+ style={{+ fontFamily: "var(--font-crt)",+ color: "var(--landing-phosphor)",+ opacity: 0.5,+ textShadow: "0 0 6px oklch(0.75 0.18 80 / 30%)",+ }}+ >+ <span+ className="inline-block h-2 w-2 rounded-full"+ style={{+ backgroundColor: "var(--landing-phosphor)",+ boxShadow: "0 0 6px oklch(0.75 0.18 80 / 60%)",+ }}+ />+ AGENT: jarvis — STATUS: ONLINE+ </div>++ <div+ className="space-y-1.5"+ style={{+ fontFamily: "var(--font-crt)",+ color: "var(--landing-phosphor)",+ fontSize: "0.85rem",+ textShadow: "0 0 6px oklch(0.75 0.18 80 / 30%)",+ }}+ >+ {phase === "idle" && (+ <div style={{ opacity: 0.4 }}>+ [idle] Waiting for incoming mail...+ <span+ className="ml-1 inline-block h-3.5 w-1.5 animate-pulse"+ style={{+ backgroundColor: "var(--landing-phosphor)",+ boxShadow: "0 0 6px oklch(0.75 0.18 80 / 40%)",+ }}+ />+ </div>+ )}++ {(phase === "sending" || phase === "processing") && email && (+ <>+ <div style={{ opacity: 0.7 }}>+ [inbox] Message received+ </div>+ <div style={{ opacity: 0.5 }}>+ Subject: {email.subject}+ </div>+ {phase === "processing" && (+ <div style={{ opacity: 0.7 }}>+ [exec] Processing request...+ </div>+ )}+ </>+ )}++ {phase === "replying" && email && (+ <>+ <div style={{ opacity: 0.7 }}>[inbox] Message received</div>+ <div style={{ opacity: 0.5 }}>Subject: {email.subject}</div>+ <div style={{ opacity: 0.7 }}>[exec] Processing request...</div>+ <div style={{ opacity: 0.7 }}>[smtp] Composing reply...</div>+ </>+ )}++ {phase === "done" && email && (+ <>+ <div style={{ opacity: 0.7 }}>[inbox] Message received</div>+ <div style={{ opacity: 0.5 }}>Subject: {email.subject}</div>+ <div style={{ opacity: 0.7 }}>[exec] Complete.</div>+ <div style={{ opacity: 0.9 }}>+ [smtp] ✓ Reply sent to sender+ </div>+ </>+ )}+ </div>+ </div>+ </div>+ <div className="mt-1 px-2">+ <span+ className="text-[10px] uppercase tracking-[0.2em]"+ style={{+ fontFamily: "var(--font-mono)",+ color: "var(--landing-text-muted)",+ }}+ >+ Terminal B — Agent Log+ </span>+ </div>+ </div>+ </div>+ </section>+ );+}diff --git a/src/web/src/components/home/feature-showcase.tsx b/src/web/src/components/home/feature-showcase.tsxnew file mode 100644index 000000000..dec36b1c2--- /dev/null+++ b/src/web/src/components/home/feature-showcase.tsx@@ -0,0 +1,343 @@+"use client";++import { useRef } from "react";+import gsap from "gsap";+import { useGSAP } from "@gsap/react";+import { ScrollTrigger } from "gsap/ScrollTrigger";++gsap.registerPlugin(ScrollTrigger);++interface Feature {+ number: string;+ title: string;+ spec: string;+ description: string;+ terminal: string[];+}++const features: Feature[] = [+ {+ number: "I",+ title: "The Daemon",+ spec: "PROCESS: PERSISTENT / UPTIME: CONTINUOUS",+ description:+ "A daemon on your machine — always listening, always ready. Close your laptop. The agent stays on, polling for work, executing autonomously.",+ terminal: [+ "$ alook daemon start --foreground",+ "✓ Runtime detected: [email protected]",+ "✓ Daemon running — 1 agent online",+ " Uptime: 72h 14m | Tasks: 847",+ ],+ },+ {+ number: "II",+ title: "The Address",+ spec: "PROTOCOL: SMTP / FORMAT: RFC 5322",+ description:+ "Every agent gets a real email address. Forward it a bug report. CC it on a thread. It reads, reasons, and replies — like a teammate.",+ terminal: [+ "$ alook agent list",+ " NAME STATUS EMAIL",+ " jarvis online [email protected]",+ " Tasks completed: 312",+ ],+ },+ {+ number: "III",+ title: "The Runtime",+ spec: "ENGINE: CLAUDE, CODEX / ENV: LOCAL",+ description:+ "Your machine. Your environment. The agent runs where your code lives — full context, no cloud sandbox, no latency.",+ terminal: [+ "$ alook agent create \\",+ " --name jarvis --runtime claude",+ "✓ Agent created",+ "✓ Email: [email protected]",+ ],+ },+ {+ number: "IV",+ title: "The Stream",+ spec: "TRANSPORT: WEBSOCKET / LATENCY: <50MS",+ description:+ "Watch the agent think in real time. Or don't — check back in the morning. Results arrive by email. You choose the cadence.",+ terminal: [+ " [stream] jarvis processing...",+ " > reading src/api/auth.ts",+ " > found issue on line 42",+ " [done] reply sent to inbox",+ ],+ },+ {+ number: "V",+ title: "The Workspace",+ spec: "ISOLATION: PER-PROJECT / LIMIT: NONE",+ description:+ "Organize agents by project, team, or client. Isolated environments, unified control from one terminal.",+ terminal: [+ "$ alook config show",+ " Workspaces: 3",+ " production → 2 agents",+ " staging → 1 agent",+ ],+ },+];++export function FeatureShowcase() {+ const containerRef = useRef<HTMLDivElement>(null);+ const trackRef = useRef<HTMLDivElement>(null);+ const progressRef = useRef<HTMLDivElement>(null);++ useGSAP(+ () => {+ if (!trackRef.current || !containerRef.current) return;++ const isMobile = window.innerWidth < 1024;+ const panels = gsap.utils.toArray<HTMLElement>(".feature-panel");++ if (isMobile) {+ panels.forEach((panel) => {+ gsap.from(panel, {+ y: 40,+ opacity: 0,+ duration: 0.6,+ ease: "power2.out",+ scrollTrigger: {+ trigger: panel,+ start: "top 80%",+ toggleActions: "play none none none",+ },+ });+ });+ return;+ }++ gsap.set(trackRef.current, { width: `${features.length * 100}vw` });+ const totalWidth =+ trackRef.current.scrollWidth - containerRef.current.offsetWidth;++ const panelCount = features.length;+ const snapPoints = Array.from(+ { length: panelCount },+ (_, i) => i / (panelCount - 1)+ );++ const progressBar = progressRef.current?.parentElement;+ const scrollTl = gsap.timeline({+ scrollTrigger: {+ trigger: containerRef.current,+ start: "top top",+ end: () => `+=${totalWidth}`,+ pin: true,+ scrub: 1,+ pinSpacing: true,+ anticipatePin: 1,+ snap: {+ snapTo: snapPoints,+ duration: { min: 0.25, max: 0.8 },+ delay: 0.15,+ ease: "power2.inOut",+ },+ onEnter: () => {+ if (progressBar)+ gsap.to(progressBar, { opacity: 1, duration: 0.3 });+ },+ onLeave: () => {+ if (progressBar)+ gsap.to(progressBar, { opacity: 0, duration: 0.3 });+ },+ onEnterBack: () => {+ if (progressBar)+ gsap.to(progressBar, { opacity: 1, duration: 0.3 });+ },+ onLeaveBack: () => {+ if (progressBar)+ gsap.to(progressBar, { opacity: 0, duration: 0.3 });+ },+ onUpdate: (self) => {+ if (progressRef.current) {+ progressRef.current.style.transform = `scaleX(${self.progress})`;+ }+ },+ },+ });++ scrollTl.to(trackRef.current, {+ x: -totalWidth,+ ease: "none",+ });++ // Animate panels+ panels.forEach((panel) => {+ const crt = panel.querySelector(".panel-crt");+ const text = panel.querySelector(".panel-text");++ if (text) {+ gsap.from(text, {+ x: -30,+ opacity: 0,+ duration: 0.6,+ scrollTrigger: {+ trigger: panel,+ containerAnimation: scrollTl,+ start: "left 75%",+ end: "left 40%",+ scrub: true,+ },+ });+ }+ if (crt) {+ gsap.from(crt, {+ x: 30,+ opacity: 0,+ duration: 0.6,+ scrollTrigger: {+ trigger: panel,+ containerAnimation: scrollTl,+ start: "left 70%",+ end: "left 35%",+ scrub: true,+ },+ });+ }+ });+ },+ { scope: containerRef }+ );++ return (+ <section+ ref={containerRef}+ className="relative min-h-screen overflow-hidden"+ style={{ backgroundColor: "var(--landing-bg)" }}+ >+ {/* Progress bar */}+ <div+ className="fixed bottom-0 left-0 right-0 z-50 h-px opacity-0"+ style={{ backgroundColor: "var(--landing-border)" }}+ >+ <div+ ref={progressRef}+ className="h-full origin-left"+ style={{+ backgroundColor: "var(--landing-text-muted)",+ transform: "scaleX(0)",+ }}+ />+ </div>++ {/* Track */}+ <div+ ref={trackRef}+ className="feature-track flex flex-col gap-16 px-6 py-16 lg:h-screen lg:flex-row lg:items-stretch lg:gap-0 lg:p-0"+ >+ {features.map((feature) => (+ <div+ key={feature.number}+ className="feature-panel flex w-full shrink-0 items-center justify-center lg:h-full lg:w-screen"+ >+ <div className="mx-auto grid w-full max-w-5xl grid-cols-1 items-center gap-8 px-6 lg:grid-cols-2 lg:gap-16 lg:px-12">+ {/* Text side */}+ <div className="panel-text">+ <div className="mb-2 flex items-center gap-3">+ <span+ className="text-3xl"+ style={{+ fontFamily: "var(--font-crt)",+ color: "var(--landing-text-muted)",+ }}+ >+ {feature.number}.+ </span>+ </div>+ <h2+ className="leading-tight"+ style={{+ fontFamily: "var(--font-crt)",+ color: "var(--landing-text)",+ fontSize: "clamp(2rem, 4vw, 3rem)",+ }}+ >+ {feature.title}+ </h2>+ <div+ className="mt-2 text-[10px] uppercase tracking-[0.2em]"+ style={{+ fontFamily: "var(--font-mono)",+ color: "var(--landing-text-muted)",+ }}+ >+ {feature.spec}+ </div>+ <p+ className="mt-4 max-w-md leading-relaxed"+ style={{+ fontFamily: "var(--font-mono)",+ color: "var(--landing-text-muted)",+ fontSize: "0.875rem",+ }}+ >+ {feature.description}+ </p>+ </div>++ {/* CRT terminal */}+ <div+ className="panel-crt rounded-lg p-2"+ style={{+ backgroundColor: "oklch(0.82 0.02 75)",+ boxShadow:+ "0 4px 16px oklch(0.15 0.01 55 / 15%), inset 0 1px 0 oklch(0.95 0.01 80 / 40%)",+ }}+ >+ <div+ className="relative overflow-hidden rounded p-5"+ style={{+ backgroundColor: "var(--landing-crt-bg)",+ boxShadow: "inset 0 0 40px oklch(0.04 0.003 55)",+ }}+ >+ {/* Scan lines */}+ <div+ className="pointer-events-none absolute inset-0 z-10"+ style={{+ backgroundImage:+ "repeating-linear-gradient(to bottom, transparent 0px, transparent 1px, oklch(0 0 0 / 6%) 1px, oklch(0 0 0 / 6%) 2px)",+ backgroundSize: "100% 2px",+ }}+ />+ {/* Vignette */}+ <div+ className="pointer-events-none absolute inset-0"+ style={{+ background:+ "radial-gradient(ellipse at center, transparent 60%, oklch(0.04 0.003 55 / 50%) 100%)",+ }}+ />+ {/* Terminal lines */}+ <div className="relative z-20 space-y-1">+ {feature.terminal.map((line, i) => (+ <div+ key={i}+ className="text-sm leading-relaxed"+ style={{+ fontFamily: "var(--font-crt)",+ color: "var(--landing-phosphor)",+ textShadow:+ "0 0 8px oklch(0.75 0.18 80 / 40%)",+ opacity: line.startsWith(" ") ? 0.65 : 0.85,+ }}+ >+ {line}+ </div>+ ))}+ </div>+ </div>+ </div>+ </div>+ </div>+ ))}+ </div>+ </section>+ );+}diff --git a/src/web/src/components/home/hero-section.tsx b/src/web/src/components/home/hero-section.tsxnew file mode 100644index 000000000..a25edebde--- /dev/null+++ b/src/web/src/components/home/hero-section.tsx@@ -0,0 +1,489 @@+"use client";++import { useRef, useCallback, useState, useEffect } from "react";+import Image from "next/image";+import gsap from "gsap";+import { useGSAP } from "@gsap/react";+import { ScrollTrigger } from "gsap/ScrollTrigger";+import { SplitText } from "gsap/SplitText";++gsap.registerPlugin(ScrollTrigger, SplitText);++// Key layout: 3 rows of oval keys (front-facing view)+const KEY_ROWS = [9, 7, 9];++// Mock emails from Jarvis+const EMAILS = [+ {+ from: "[email protected]",+ to: "[email protected]",+ subject: "Re: Deploy the hotfix to staging",+ body: "Done. Pulled feat/fix-session-token, all 47 tests passing. Deployed to staging \u2014 verified the login flow manually. It\u2019s live now.",+ },+ {+ from: "[email protected]",+ to: "[email protected]",+ subject: "Re: Check API health",+ body: "All endpoints responding. p99 latency at 42ms, error rate 0.01%. The alerting threshold is 200ms so we\u2019re well within range.",+ },+ {+ from: "[email protected]",+ to: "[email protected]",+ subject: "Re: Summarize today\u2019s PRs",+ body: "3 PRs merged: auth token rotation (#412), rate limiter fix (#415), dashboard chart update (#418). One open review from Sarah on #420.",+ },+ {+ from: "[email protected]",+ to: "[email protected]",+ subject: "Re: Update the landing page copy",+ body: "Replaced the hero tagline and updated the feature descriptions. Pushed to feat/landing-copy. Preview link is live \u2014 check staging.",+ },+ {+ from: "[email protected]",+ to: "[email protected]",+ subject: "Re: Run the test suite",+ body: "Full suite passed: 847 tests, 0 failures. Coverage at 84.2%, up from 83.1% last run. No flaky tests detected this time.",+ },+];++export function HeroSection() {+ const sectionRef = useRef<HTMLDivElement>(null);+ const visualRef = useRef<HTMLDivElement>(null);+ const headingRef = useRef<HTMLHeadingElement>(null);+ const sublineRef = useRef<HTMLParagraphElement>(null);+ const ctaRef = useRef<HTMLDivElement>(null);+ const paperTlRef = useRef<gsap.core.Timeline | null>(null);+ const isAnimatingRef = useRef(false);+ const [emailIndex, setEmailIndex] = useState(0);++ const handleMouseMove = useCallback(+ (e: React.MouseEvent<HTMLElement>) => {+ const el = visualRef.current;+ if (!el) return;+ const scene = el.querySelector<HTMLElement>(".typewriter-scene");+ if (!scene) return;+ const rect = el.getBoundingClientRect();+ const nx = (e.clientX - (rect.left + rect.width / 2)) / (rect.width / 2);+ const ny = (e.clientY - (rect.top + rect.height / 2)) / (rect.height / 2);+ scene.style.transition = "transform 0.12s ease-out";+ scene.style.transform = `rotateY(${-20 + nx * 15}deg) rotateX(${10 + ny * -10}deg)`;+ },+ []+ );++ const handleMouseLeave = useCallback(() => {+ const el = visualRef.current;+ if (!el) return;+ const scene = el.querySelector<HTMLElement>(".typewriter-scene");+ if (!scene) return;+ scene.style.transition = "transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1)";+ scene.style.transform = "";+ }, []);++ // Play the paper feed animation — paper slides up, text types in+ const playPaperFeed = useCallback(() => {+ if (paperTlRef.current) {+ paperTlRef.current.kill();+ }++ const bodySplit = SplitText.create(".tw-email-body", { type: "words" });++ // Measure paper height, then push it down behind the roller+ const paper = document.querySelector<HTMLElement>(".tw-paper");+ const paperH = paper ? paper.offsetHeight : 300;+ gsap.set(".tw-paper", { y: paperH, opacity: 1 });+ gsap.set(".tw-email-line", { opacity: 0 });+ gsap.set(bodySplit.words, { opacity: 0 });+ const tl = gsap.timeline({+ onComplete: () => { isAnimatingRef.current = false; },+ });++ // Paper slides up + text types in simultaneously+ tl.to(".tw-paper", {+ y: 0,+ duration: 3,+ ease: "power1.out",+ })+ // Headers type line by line (parallel with paper)+ .to(".tw-email-line", {+ opacity: 1,+ duration: 0.15,+ stagger: 0.3,+ ease: "none",+ }, "<+=0.3")+ // Body words type in (parallel with paper)+ .to(bodySplit.words, {+ opacity: 1,+ duration: 0.01,+ stagger: 0.06,+ ease: "none",+ }, "<+=0.5");++ paperTlRef.current = tl;+ }, []);++ const handleReturnKey = useCallback(() => {+ if (isAnimatingRef.current) return;+ isAnimatingRef.current = true;++ // Kill any running paper timeline+ if (paperTlRef.current) {+ paperTlRef.current.kill();+ }++ // Retract paper — slide back down behind roller+ const paper = document.querySelector<HTMLElement>(".tw-paper");+ const paperH = paper ? paper.offsetHeight : 300;+ gsap.to(".tw-paper", {+ y: paperH,+ duration: 0.4,+ ease: "power2.in",+ onComplete: () => {+ // Cycle to next email — use functional setState+ setEmailIndex((prev) => {+ const next = (prev + 1) % EMAILS.length;+ // Wait a tick for React to render the new email content, then animate+ requestAnimationFrame(() => {+ requestAnimationFrame(() => {+ playPaperFeed();+ });+ });+ return next;+ });+ },+ });+ }, [playPaperFeed]);++ // Listen for keyboard Enter to trigger the same effect+ useEffect(() => {+ const onKeyDown = (e: KeyboardEvent) => {+ if (e.key === "Enter") {+ e.preventDefault(); // prevent also activating a focused button+ handleReturnKey();+ }+ };+ window.addEventListener("keydown", onKeyDown);+ return () => window.removeEventListener("keydown", onKeyDown);+ }, [handleReturnKey]);++ useGSAP(+ () => {+ if (+ !headingRef.current ||+ !sublineRef.current ||+ !ctaRef.current+ )+ return;++ const sloganSplit = SplitText.create(headingRef.current, {+ type: "words, chars",+ });+ const bodySplit = SplitText.create(".tw-email-body", {+ type: "words",+ });++ // Measure paper height, push it down behind roller, hide text+ const paper = document.querySelector<HTMLElement>(".tw-paper");+ const paperH = paper ? paper.offsetHeight : 300;+ gsap.set(".tw-paper", { y: paperH, opacity: 1 });+ gsap.set(".tw-email-line", { opacity: 0 });+ gsap.set(bodySplit.words, { opacity: 0 });++ const entranceTl = gsap.timeline({ delay: 0.3 });++ entranceTl+ .from(".hero-brand", {+ y: -20,+ opacity: 0,+ duration: 0.5,+ ease: "power3.out",+ })+ .from(+ sloganSplit.chars,+ { opacity: 0, duration: 0.04, stagger: 0.04, ease: "none" },+ 0.2+ )+ .from(sublineRef.current, { opacity: 0, duration: 0.03, ease: "none" }, "-=0.1")+ // Paper slides up from roller+ .to(".tw-paper", {+ y: 0,+ duration: 3,+ ease: "power1.out",+ }, "+=0.3")+ // Headers type in (parallel with paper slide)+ .to(".tw-email-line", {+ opacity: 1,+ duration: 0.15,+ stagger: 0.3,+ ease: "none",+ }, "<+=0.3")+ // Body words type in (parallel with paper slide)+ .to(bodySplit.words, {+ opacity: 1,+ duration: 0.01,+ stagger: 0.06,+ ease: "none",+ }, "<+=0.5")+ .from(+ ".hero-specs",+ { y: 15, opacity: 0, duration: 0.5, ease: "power2.out" },+ "-=0.2"+ )+ .from(+ ctaRef.current,+ { y: 15, opacity: 0, duration: 0.4, ease: "power2.out" },+ "-=0.2"+ );++ // Store the paper part of the timeline+ paperTlRef.current = entranceTl;++ // Scroll exit+ const exitTl = gsap.timeline({+ scrollTrigger: {+ trigger: sectionRef.current,+ start: "top top",+ end: "+=200%",+ pin: true,+ scrub: 1,+ pinSpacing: true,+ snap: {+ snapTo: [0, 1],+ duration: { min: 0.2, max: 0.6 },+ delay: 0.1,+ ease: "power2.inOut",+ },+ },+ });++ exitTl.to(".hero-content", {+ y: -80,+ opacity: 0,+ duration: 1,+ ease: "none",+ });+ },+ { scope: sectionRef }+ );++ const email = EMAILS[emailIndex];++ return (+ <section+ ref={sectionRef}+ className="hero-section relative flex min-h-screen items-center justify-center overflow-hidden"+ style={{ backgroundColor: "var(--landing-bg)" }}+ >+ {/* Paper noise */}+ <div+ className="pointer-events-none absolute inset-0 opacity-[0.03]"+ style={{+ backgroundImage: `url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E")`,+ backgroundRepeat: "repeat",+ backgroundSize: "256px 256px",+ }}+ />++ <div className="hero-content relative z-10 mx-auto flex w-full max-w-4xl flex-col items-center px-6">+ {/* Brand */}+ <div className="hero-brand mb-6 flex items-center gap-3">+ <Image src="/alook.svg" alt="Alook" width={28} height={28} />+ <span+ className="text-xl tracking-tight"+ style={{+ fontFamily: "var(--font-brand)",+ color: "var(--landing-text)",+ fontWeight: 700,+ }}+ >+ Alook+ </span>+ <span+ className="ml-2 text-xs tracking-widest uppercase"+ style={{+ fontFamily: "var(--font-mono)",+ color: "var(--landing-text-muted)",+ }}+ >+ Personal Computing Division+ </span>+ </div>++ {/* Front-Facing Typewriter */}+ <div+ ref={visualRef}+ className="typewriter-visual relative w-full"+ style={{ height: 570 }}+ onMouseMove={handleMouseMove}+ onMouseLeave={handleMouseLeave}+ >+ <div className="typewriter-blob" />++ {/* Slogan */}+ <div className="absolute top-0 left-0 right-0 z-10 flex flex-col items-center pt-2">+ <h1+ ref={headingRef}+ className="mb-1 text-center leading-[1.2]"+ style={{+ fontFamily: "var(--font-crt)",+ color: "var(--landing-text)",+ fontSize: "28px",+ letterSpacing: "-0.01em",+ }}+ >+ Your next colleague has an email address.+ </h1>+ <p+ ref={sublineRef}+ className="text-center leading-relaxed whitespace-nowrap"+ style={{+ fontFamily: "var(--font-crt)",+ color: "var(--landing-text-muted)",+ fontSize: "14px",+ }}+ >+ Not a chatbox. Not a browser tab. A digital colleague running on+ your machine — with its own inbox.+ </p>+ </div>++ <div className="typewriter-scene">+ <div className="tw-machine">+ {/* 3D Body */}+ <div className="tw-body">+ {/* 3D faces */}+ <div className="tw-body-back" />+ <div className="tw-body-left" />+ <div className="tw-body-right" />+ <div className="tw-body-top" />+ <div className="tw-body-bottom" />++ {/* Front face */}+ <div className="tw-body-front">+ {/* Paper track — clips paper as it feeds out */}+ <div className="tw-paper-track">+ <div className="tw-paper" key={emailIndex}>+ <div+ className="tw-email-headers"+ style={{+ fontFamily: "var(--font-crt)",+ fontSize: "15px",+ color: "var(--landing-text-muted)",+ lineHeight: 1.7,+ borderBottom: "1px solid oklch(0.15 0.01 55 / 10%)",+ paddingBottom: "10px",+ marginBottom: "12px",+ }}+ >+ <div className="tw-email-line">+ <span style={{ color: "var(--landing-text)" }}>From:</span>{" "}+ {email.from}+ </div>+ <div className="tw-email-line">+ <span style={{ color: "var(--landing-text)" }}>To:</span>{" "}+ {email.to}+ </div>+ <div className="tw-email-line">+ <span style={{ color: "var(--landing-text)" }}>Subject:</span>{" "}+ {email.subject}+ </div>+ </div>++ <div+ className="tw-email-body"+ style={{+ fontFamily: "var(--font-crt)",+ color: "var(--landing-text)",+ fontSize: "17px",+ lineHeight: 1.6,+ }}+ >+ {email.body}+ </div>+ </div>+ </div>{/* close tw-paper-track */}++ {/* Roller with knobs */}+ <div className="tw-roller-assembly">+ <div className="tw-knob tw-knob-left" />+ <div className="tw-roller" />+ <div className="tw-knob tw-knob-right" />+ </div>++ {/* Type-bar fan */}+ <div className="tw-typebar-fan" />++ {/* Key rows + return key */}+ <div className="tw-keys-layer">+ {KEY_ROWS.map((count, ri) => (+ <div key={ri} className="tw-key-row">+ {Array.from({ length: count }).map((_, ki) => (+ <div key={ki} className="tw-key" />+ ))}+ {ri === 1 && (+ <button+ className="tw-key tw-return-key"+ onClick={handleReturnKey}+ aria-label="Return — load next email"+ >+ <span className="tw-return-label">↵</span>+ </button>+ )}+ </div>+ ))}+ </div>++ {/* Bars */}+ <div className="tw-bars">+ <div className="tw-bar tw-bar-long" />+ <div className="tw-bar tw-bar-short" />+ </div>+ </div>{/* close tw-body-front */}+ </div>+ </div>+ </div>+ </div>++ {/* Specs */}+ <div className="hero-specs mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2">+ {[+ "SMTP-Driven",+ "Always-On Daemon",+ "Claude / Codex Runtime",+ "Cloudflare Edge",+ ].map((spec) => (+ <span+ key={spec}+ className="text-xs uppercase tracking-[0.15em]"+ style={{+ fontFamily: "var(--font-mono)",+ color: "var(--landing-text-muted)",+ }}+ >+ {spec}+ </span>+ ))}+ </div>++ {/* CTA */}+ <div ref={ctaRef} className="mt-8">+ <a+ href="https://github.com/alookai/alook"+ className="inline-flex items-center gap-2 px-6 py-2.5 text-sm transition-all duration-200 hover:opacity-80"+ style={{+ fontFamily: "var(--font-mono)",+ color: "var(--landing-bg)",+ backgroundColor: "var(--landing-text)",+ letterSpacing: "0.05em",+ }}+ >+ <svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor">+ <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>+ VIEW SOURCE ON GITHUB+ </a>+ </div>+ </div>+ </section>+ );+}diff --git a/src/web/src/components/home/home-page.tsx b/src/web/src/components/home/home-page.tsxnew file mode 100644index 000000000..05558ca5f--- /dev/null+++ b/src/web/src/components/home/home-page.tsx@@ -0,0 +1,66 @@+"use client";++import { useRef } from "react";+import gsap from "gsap";+import { useGSAP } from "@gsap/react";+import { ScrollTrigger } from "gsap/ScrollTrigger";+import { HeroSection } from "./hero-section";+import { FeatureShowcase } from "./feature-showcase";+import { EmailDemo } from "./email-demo";+import { MarketingNav } from "./marketing-nav";+import { MarketingFooter } from "./marketing-footer";++gsap.registerPlugin(useGSAP, ScrollTrigger);++// Respect reduced motion preference+if (typeof window !== "undefined") {+ const prefersReducedMotion = window.matchMedia(+ "(prefers-reduced-motion: reduce)"+ ).matches;+ if (prefersReducedMotion) {+ gsap.globalTimeline.timeScale(20); // effectively skip animations+ }+}++export function HomePage() {+ const mainRef = useRef<HTMLDivElement>(null);++ useGSAP(+ () => {+ // Floating nav fades in when hero section unpins+ ScrollTrigger.create({+ trigger: ".hero-section",+ start: "bottom top",+ onEnterBack: () => {+ gsap.to(".marketing-nav", {+ autoAlpha: 0,+ duration: 0.3,+ ease: "power2.out",+ });+ },+ onLeave: () => {+ gsap.to(".marketing-nav", {+ autoAlpha: 1,+ duration: 0.3,+ ease: "power2.out",+ });+ },+ });+ },+ { scope: mainRef }+ );++ return (+ <div+ ref={mainRef}+ className="landing relative overflow-x-hidden"+ style={{ backgroundColor: "var(--landing-bg)" }}+ >+ <MarketingNav />+ <HeroSection />+ <FeatureShowcase />+ <EmailDemo />+ <MarketingFooter />+ </div>+ );+}diff --git a/src/web/src/components/home/marketing-footer.tsx b/src/web/src/components/home/marketing-footer.tsxnew file mode 100644index 000000000..8cec0d01f--- /dev/null+++ b/src/web/src/components/home/marketing-footer.tsx@@ -0,0 +1,87 @@+"use client";++import { useRef } from "react";+import gsap from "gsap";+import { useGSAP } from "@gsap/react";+import { ScrollTrigger } from "gsap/ScrollTrigger";++gsap.registerPlugin(ScrollTrigger);++export function MarketingFooter() {+ const footerRef = useRef<HTMLElement>(null);++ useGSAP(+ () => {+ gsap.from(footerRef.current, {+ y: 20,+ opacity: 0,+ duration: 0.6,+ ease: "power2.out",+ scrollTrigger: {+ trigger: footerRef.current,+ start: "top 90%",+ toggleActions: "play none none none",+ },+ });+ },+ { scope: footerRef }+ );++ return (+ <footer+ ref={footerRef}+ className="px-6 py-12"+ style={{+ backgroundColor: "var(--landing-surface)",+ borderTop: "1px solid var(--landing-border)",+ }}+ >+ <div className="mx-auto flex max-w-5xl flex-col items-center justify-between gap-6 md:flex-row">+ <div className="flex items-center gap-4">+ <span+ className="text-lg tracking-tight"+ style={{+ fontFamily: "var(--font-brand)",+ color: "var(--landing-text)",+ fontWeight: 700,+ }}+ >+ Alook+ </span>+ <span+ className="text-[10px] uppercase tracking-[0.2em]"+ style={{+ fontFamily: "var(--font-mono)",+ color: "var(--landing-text-muted)",+ }}+ >+ Email-driven autonomous agents+ </span>+ </div>++ <div className="flex items-center gap-6">+ <a+ href="https://github.com/alookai/alook"+ className="text-xs uppercase tracking-[0.15em] transition-opacity duration-150 hover:opacity-60"+ style={{+ fontFamily: "var(--font-mono)",+ color: "var(--landing-text-muted)",+ }}+ >+ GitHub+ </a>+ <span+ className="text-[10px] uppercase tracking-[0.2em]"+ style={{+ fontFamily: "var(--font-mono)",+ color: "var(--landing-text-muted)",+ opacity: 0.5,+ }}+ >+ © 2026 Alook Systems+ </span>+ </div>+ </div>+ </footer>+ );+}diff --git a/src/web/src/components/home/marketing-nav.tsx b/src/web/src/components/home/marketing-nav.tsxnew file mode 100644index 000000000..2de530f76--- /dev/null+++ b/src/web/src/components/home/marketing-nav.tsx@@ -0,0 +1,48 @@+"use client";++import Image from "next/image";+import Link from "next/link";++export function MarketingNav() {+ return (+ <nav+ className="marketing-nav fixed top-0 right-0 left-0 z-50 invisible opacity-0"+ style={{+ backgroundColor: "oklch(0.93 0.015 80 / 90%)",+ backdropFilter: "blur(8px)",+ borderBottom: "1px solid var(--landing-border)",+ }}+ >+ <div className="mx-auto flex max-w-5xl items-center justify-between px-6 py-2.5">+ <Link href="/" className="flex items-center gap-2">+ <Image src="/alook.svg" alt="Alook" width={22} height={22} />+ <span+ className="text-lg tracking-tight"+ style={{+ fontFamily: "var(--font-brand)",+ color: "var(--landing-text)",+ fontWeight: 700,+ }}+ >+ Alook+ </span>+ </Link>++ <a+ href="https://github.com/alookai/alook"+ className="inline-flex items-center gap-2 px-4 py-1.5 text-xs uppercase tracking-widest transition-opacity duration-150 hover:opacity-70"+ style={{+ fontFamily: "var(--font-mono)",+ color: "var(--landing-bg)",+ backgroundColor: "var(--landing-text)",+ }}+ >+ <svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor">+ <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>+ Source+ </a>+ </div>+ </nav>+ );+}