+ {
+ id === 'alerts' && (
+ <>
+
+ CPU > {THRESHOLD}%
+ {copy.alerts.window}
+
+
+ {SAMPLES.map((sample, index) => (
+ THRESHOLD }} style={`--h:${sample}%;--i:${index}`} />
+ ))}
+
+
+ {copy.alerts.samples}
+ {copy.alerts.firing}
+
+ >
+ )
+ }
+ {
+ id === 'status' && (
+ <>
+
+ LON · Backup
+ 99.98%
+
+
+ {Array.from({ length: DAYS }, (_, day) => (
+
+ ))}
+
+
+ {copy.status.ago}
+ {copy.status.today}
+
+ >
+ )
+ }
+ {
+ id === 'monitors' &&
+ CHECKS.map((check, index) => (
+
+ {check}
+ {copy.monitors[index]}
+
+
+ ))
+ }
+ {
+ id === 'traffic' && (
+ <>
+
+ {copy.traffic.cycle}
+
+ {USED} / {QUOTA} TB
+
+
+
+
+
+
+
+
+ {copy.traffic.forecast}
+ {copy.traffic.over}
+
+
+ {copy.traffic.perCore}
+ {copy.traffic.monthly}
+
+ >
+ )
+ }
+ {
+ id === 'terminal' && (
+ <>
+
root@lon-backup:~# uptime
+
12:30 up 41 days, load 0.43
+
root@lon-backup:~# htop
+ >
+ )
+ }
+ {
+ id === 'files' && (
+ <>
+
/srv/app
+
+
+ Caddyfile
+ 1.2 kB
+
+
+
+ compose.yml
+ 840 B
+
+ {['.env', 'tls.key'].map((name, index) => (
+
+
+ {name}
+ {copy.files.blocked}
+
+ ))}
+ >
+ )
+ }
+ {
+ id === 'docker' && (
+ <>
+ {CONTAINERS.map(([name, cpu], index) => (
+
+
+ {name}
+
+
+
+ {copy.docker.running}
+
+ ))}
+
+
+ backup
+
+ {copy.docker.exited}
+
+ >
+ )
+ }
+ {
+ id === 'upgrades' && (
+ <>
+
+ serverbee-agent
+ LON · Backup
+
+
+ {Array.from({ length: STAGES }, (_, stage) => (
+
+ ))}
+
+
+ {copy.upgrades.verified}
+
+ {STAGES} / {STAGES}
+
+
+
{copy.upgrades.rollback}
+ >
+ )
+ }
+ {
+ id === 'security' && (
+ <>
+
+ sshd
+ 203.0.113.7
+
+
+ {copy.security.failed}
+ × 14
+
+
+
+ {copy.security.blocklist}
+ {copy.security.blocked}
+
+ >
+ )
+ }
+ {
+ id === 'accounts' && (
+
+ {[...SIGN_INS, 'admin', 'member'].map((chip, index) => (
+
+ {chip}
+
+ ))}
+
+ )
+ }
+ {
+ id === 'tailscale' && (
+ <>
+
+ blr-dev
+
+
+
+ {copy.tailscale.direct}
+
+
+ yyz-lab
+
+ DERP
+
+
+ {copy.tailscale.relayed}
+
+
+ {copy.tailscale.panel}
+ {copy.tailscale.tailnet}
+
+ >
+ )
+ }
+ {
+ id === 'audit' &&
+ LOG.map(([time, action, user], index) => (
+
+ {time}
+ {action}
+ {user}
+
+ ))
+ }
+
diff --git a/apps/landing/src/i18n/copy.ts b/apps/landing/src/i18n/copy.ts
index 62334bf0..b9ed6458 100644
--- a/apps/landing/src/i18n/copy.ts
+++ b/apps/landing/src/i18n/copy.ts
@@ -116,6 +116,42 @@ interface HowCopy {
steps: [{ d: string; t: string }, { d: string; t: string }]
}
+/** A feature of the kit section. The id names the sketch drawn for it. */
+export type KitId =
+ | 'accounts'
+ | 'alerts'
+ | 'audit'
+ | 'docker'
+ | 'files'
+ | 'monitors'
+ | 'security'
+ | 'status'
+ | 'tailscale'
+ | 'terminal'
+ | 'traffic'
+ | 'upgrades'
+
+interface KitCopy {
+ groups: { items: (PointCopy & { id: KitId })[]; t: string }[]
+ h2: string
+ /**
+ * The words inside the sketches. The sample values around them are the same in both languages and live in the
+ * sketch component. A sketch repeats its tile in a picture, so all of it is hidden from assistive technology.
+ */
+ sketch: {
+ alerts: { firing: string; samples: string; window: string }
+ docker: { exited: string; running: string }
+ files: { blocked: string }
+ /** What each check found, in the order SSL, DNS, HTTP, TCP, WHOIS. */
+ monitors: [string, string, string, string, string]
+ security: { blocked: string; blocklist: string; failed: string }
+ status: { ago: string; today: string }
+ tailscale: { direct: string; panel: string; relayed: string; tailnet: string }
+ traffic: { cycle: string; forecast: string; monthly: string; over: string; perCore: string }
+ upgrades: { rollback: string; verified: string }
+ }
+}
+
/**
* Text that only appears inside the animated scenes. It replays what the page already says in prose, so all of it
* is hidden from assistive technology.
@@ -149,7 +185,7 @@ export interface LandingCopy {
ipq: FeatureCopy
/** Search and social copy. */
meta: { description: string; title: string }
- more: { groups: { items: PointCopy[]; t: string }[]; h2: string }
+ more: KitCopy
nav: NavCopy
network: FeatureCopy
scenes: ScenesCopy
@@ -394,20 +430,24 @@ const zh: LandingCopy = {
t: '监控与告警',
items: [
{
+ id: 'alerts',
t: '告警与通知',
- d: '内置 26 种规则。资源告警要求 10 分钟内 70% 样本超标才触发,过滤掉瞬时毛刺;维护窗口内自动静默。支持 Webhook、Telegram、Bark、邮件和 APNs。'
+ d: '26 种规则,推送到 Webhook、Telegram、Bark、邮件或 APNs。'
},
{
+ id: 'status',
t: '公开状态页',
- d: '自带 /status 状态页,按需展示在线状态、90 天可用率、网络和 IP 质量,主机 IP 不会公开。默认关闭。'
+ d: '在线状态与 90 天可用率,不公开主机 IP。'
},
{
+ id: 'monitors',
t: '服务监控',
- d: '由服务端定时检查 SSL 证书、DNS 记录、HTTP 关键词、TCP 端口和域名 WHOIS 到期,不装 Agent 的站点也能盯。'
+ d: '由服务端发起检查,目标无需安装 Agent。'
},
{
+ id: 'traffic',
t: '流量与成本',
- d: '按你的账单日算流量周期并预测周期末会不会超额;折算每核、每 GB 和每 TB 的月均成本,直接标出离线还在扣费或闲置空转的机器。'
+ d: '按账单日算周期,标出闲置却还在扣费的机器。'
}
]
},
@@ -415,20 +455,24 @@ const zh: LandingCopy = {
t: '远程运维',
items: [
{
+ id: 'terminal',
t: '网页终端',
- d: '浏览器里的真实 PTY,支持 vim 和 htop。每台机器最多 3 个并发会话,闲置 10 分钟自动断开,默认关闭。'
+ d: '浏览器里的真实 PTY,默认关闭。'
},
{
+ id: 'files',
t: '文件管理',
- d: '锁定在白名单根目录内浏览、传文件,用 Monaco 在线改配置。默认拦截 *.key、.env 等敏感文件。'
+ d: '在白名单目录内浏览、传输、在线编辑。'
},
{
+ id: 'docker',
t: 'Docker',
- d: '查看容器列表、实时资源、日志流与生命周期事件,支持启停、重启和删除。默认关闭。'
+ d: '容器资源、日志与生命周期事件,默认关闭。'
},
{
+ id: 'upgrades',
t: '升级与运维',
- d: '在面板里逐台升级 Agent,校验 SHA-256 并在失败时自动回滚。也支持 cron 定时任务(需主机开启远程执行)。'
+ d: 'Agent 升级带校验,另有可选开启的定时命令。'
}
]
},
@@ -436,20 +480,39 @@ const zh: LandingCopy = {
t: '安全与访问',
items: [
{
+ id: 'security',
t: '安全事件与防火墙',
- d: '识别 SSH 爆破和新来源登录,开启后还能识别端口扫描,支持把攻击源 IP 写入主机 nftables 黑名单。'
+ d: '识别 SSH 爆破和新来源登录,端口扫描可选开启。'
},
{
+ id: 'accounts',
t: '账号与权限',
- d: '区分管理员和只读成员,支持 GitHub、Google、OIDC、Tailscale Serve 回环认证、TOTP 两步验证和 API 密钥。'
+ d: '角色与单点登录,TOTP 两步验证和 API 密钥。'
},
{
+ id: 'tailscale',
t: 'Tailscale 与 Headscale',
- d: 'Agent 可直接走 Tailnet 接入,面板无需暴露公网;并能一眼看出每个对端是 Direct 直连还是走了 DERP 中继。'
+ d: '面板无需暴露公网。'
+ },
+ {
+ id: 'audit',
+ t: '审计日志',
+ d: '登录、终端、文件写入都有记录,保留 180 天。'
}
]
}
- ]
+ ],
+ sketch: {
+ alerts: { firing: '触发', samples: '10 个样本 7 个超标', window: '10 分钟' },
+ docker: { exited: '已退出', running: '运行中' },
+ files: { blocked: '已拦截' },
+ monitors: ['43 天后到期', 'A 记录未变', '200,命中关键词', '443 端口可达', '212 天后到期'],
+ security: { blocked: '已拦截', blocklist: 'nftables 黑名单', failed: '登录失败' },
+ status: { ago: '90 天前', today: '今天' },
+ tailscale: { direct: '直连', panel: '面板', relayed: '中继', tailnet: '仅 Tailnet' },
+ traffic: { cycle: '本周期', forecast: '预计', monthly: '$1.50 / 月', over: '2.3 TB,超 0.3', perCore: '每核' },
+ upgrades: { rollback: '启动失败自动回滚', verified: 'sha256 已校验' }
+ }
},
how: {
h2: '两条命令,跑起来。',
@@ -825,20 +888,24 @@ const en: LandingCopy = {
t: 'Monitoring and alerts',
items: [
{
+ id: 'alerts',
t: 'Alerts & notifications',
- d: '26 rule types. Metric alerts only fire when 70% of samples over 10 minutes breach, so a brief spike won’t wake you up; maintenance windows mute noise. Webhook, Telegram, Bark, email and APNs.'
+ d: '26 rule types, sent to Webhook, Telegram, Bark, email or APNs.'
},
{
+ id: 'status',
t: 'Public status page',
- d: 'A built-in /status page with live health, 90-day uptime, network and IP quality. Server IPs are not shown, and the page stays off until you enable it.'
+ d: 'Live health and 90-day uptime, with server IPs hidden.'
},
{
+ id: 'monitors',
t: 'Service monitors',
- d: 'Server-side checks for SSL expiry, DNS records, HTTP keywords, TCP ports and WHOIS expiry, even for targets without an agent.'
+ d: 'Checked from the server, so targets need no agent.'
},
{
+ id: 'traffic',
t: 'Traffic & cost',
- d: 'Traffic cycles aligned to your billing day, with end-of-cycle overage forecasts. Breaks down cost per core, GB and TB, and flags idle or offline boxes you’re still paying for.'
+ d: 'Billing-day cycles, and a flag on idle boxes you still pay for.'
}
]
},
@@ -846,20 +913,24 @@ const en: LandingCopy = {
t: 'Remote operations',
items: [
{
+ id: 'terminal',
t: 'Web terminal',
- d: 'A full PTY in the browser, ready for vim or htop. Up to 3 sessions per server, closed after 10 idle minutes, off by default.'
+ d: 'A full PTY in the browser. Off by default.'
},
{
+ id: 'files',
t: 'File manager',
- d: 'Browse, transfer and edit configs in Monaco inside allowed root paths. Private keys and .env files are blocked by default.'
+ d: 'Browse, transfer and edit inside the paths you allow.'
},
{
+ id: 'docker',
t: 'Docker',
- d: 'Container list, live stats, log streaming and lifecycle events, plus start, stop, restart and remove. Off by default.'
+ d: 'Stats, logs and lifecycle events. Off by default.'
},
{
+ id: 'upgrades',
t: 'Upgrades & ops',
- d: 'Upgrade agents right from the panel, SHA-256 verified with automatic rollback if startup fails. Includes cron-scheduled commands when remote exec is enabled.'
+ d: 'Verified agent upgrades, plus opt-in cron commands.'
}
]
},
@@ -867,20 +938,45 @@ const en: LandingCopy = {
t: 'Security and access',
items: [
{
+ id: 'security',
t: 'Security events & firewall',
- d: 'Catches SSH brute force and logins from new IPs, plus port scans when enabled, and can drop offending IPs into an nftables blocklist.'
+ d: 'SSH brute force, new-IP logins and opt-in port scans.'
},
{
+ id: 'accounts',
t: 'Accounts & access',
- d: 'Admin and read-only roles, GitHub, Google, OIDC and Tailscale Serve loopback sign-in, TOTP 2FA and API keys.'
+ d: 'Roles, single sign-on, TOTP 2FA and API keys.'
},
{
+ id: 'tailscale',
t: 'Tailscale & Headscale',
- d: 'Enroll agents over your tailnet so the panel never has to sit on the public internet, and check whether each peer is direct or relayed over DERP.'
+ d: 'Keeps the panel off the public internet.'
+ },
+ {
+ id: 'audit',
+ t: 'Audit log',
+ d: 'Logins, terminals and file writes, kept for 180 days.'
}
]
}
- ]
+ ],
+ sketch: {
+ alerts: { firing: 'firing', samples: '7 of 10 samples', window: '10 min' },
+ docker: { exited: 'exited', running: 'running' },
+ files: { blocked: 'blocked' },
+ monitors: ['expires in 43 d', 'A record unchanged', '200, keyword found', 'port 443 open', 'expires in 212 d'],
+ security: { blocked: 'blocked', blocklist: 'nftables blocklist', failed: 'failed logins' },
+ status: { ago: '90 days ago', today: 'today' },
+ tailscale: { direct: 'direct', panel: 'panel', relayed: 'relayed', tailnet: 'tailnet only' },
+ traffic: {
+ cycle: 'this cycle',
+ forecast: 'forecast',
+ monthly: '$1.50 / mo',
+ over: '2.3 TB, 0.3 over',
+ perCore: 'per core'
+ },
+ upgrades: { rollback: 'rolls back if startup fails', verified: 'sha256 verified' }
+ }
},
how: {
h2: 'Two commands and you’re live.',
diff --git a/apps/landing/src/scripts/motion/index.ts b/apps/landing/src/scripts/motion/index.ts
index 52446783..72fe7301 100644
--- a/apps/landing/src/scripts/motion/index.ts
+++ b/apps/landing/src/scripts/motion/index.ts
@@ -8,6 +8,7 @@ import { mountFlow } from './flow'
import { mountGrant } from './grant'
import { mountHero } from './hero'
import { mountIpQuality } from './ip-quality'
+import { mountKit } from './kit'
import { mountNetwork } from './network'
import { mountPush } from './push'
import { mountRail } from './rail'
@@ -27,5 +28,6 @@ export function mountMotion(): void {
mountGrant()
mountDashboard()
mountPush()
+ mountKit()
mountFlow()
}
diff --git a/apps/landing/src/scripts/motion/kit.ts b/apps/landing/src/scripts/motion/kit.ts
new file mode 100644
index 00000000..46857757
--- /dev/null
+++ b/apps/landing/src/scripts/motion/kit.ts
@@ -0,0 +1,29 @@
+/*
+ * The kit's sketches. Each starts empty and draws itself once, when it comes into view. The two that keep moving,
+ * the terminal's cursor and the tailnet's packets, do so only while they are on screen.
+ */
+
+import { BELOW_LINE } from './reveal'
+import { watch } from './stage'
+
+export function mountKit(): void {
+ // A sketch draws once a little of it is past the line its tile is revealed at, so never inside a hidden tile.
+ // On a phone that also holds sideways: the tile peeking in at the edge of a strip is drawn, and the ones further
+ // along wait until they are swiped in.
+ const arrivals = new IntersectionObserver(
+ (entries) => {
+ for (const entry of entries) {
+ if (entry.isIntersecting) {
+ arrivals.unobserve(entry.target)
+ entry.target.removeAttribute('data-empty')
+ }
+ }
+ },
+ { rootMargin: BELOW_LINE, threshold: 0.15 }
+ )
+ for (const sketch of document.querySelectorAll('.sketch')) {
+ sketch.setAttribute('data-empty', '')
+ arrivals.observe(sketch)
+ watch(sketch, (visible) => sketch.toggleAttribute('data-visible', visible), 0)
+ }
+}
diff --git a/apps/landing/src/scripts/motion/reveal.ts b/apps/landing/src/scripts/motion/reveal.ts
index 2ab8352e..f610ec38 100644
--- a/apps/landing/src/scripts/motion/reveal.ts
+++ b/apps/landing/src/scripts/motion/reveal.ts
@@ -7,6 +7,8 @@ type Kind = 'item' | 'shot' | 'text'
/** A group arrives once one of its members is this far up from the bottom of the screen. */
const LINE = 0.88
+/** An observer's margin that ends the screen at that line. */
+export const BELOW_LINE = `0px 0px -${Math.round((1 - LINE) * 100)}% 0px`
export function mountReveal(): void {
const groups: HTMLElement[][] = []
@@ -43,7 +45,10 @@ export function mountReveal(): void {
for (const list of all('.points')) {
group(list.children, 'item')
}
- group(all('.more-group'), 'item')
+ // The kit arrives a group at a time: a title, then its tiles.
+ for (const kit of all('.more-group')) {
+ group(kit.querySelectorAll('h3, .more-tile'), 'item')
+ }
group(all('.steps > li'), 'item')
group(all('.flow > *'), 'item')
group(all('.stats > div'), 'item')
@@ -70,7 +75,7 @@ export function mountReveal(): void {
}
}
},
- { rootMargin: `0px 0px -${Math.round((1 - LINE) * 100)}% 0px` }
+ { rootMargin: BELOW_LINE }
)
for (const members of groups) {
for (const member of members) {
diff --git a/apps/landing/src/styles/global.css b/apps/landing/src/styles/global.css
index 415f80ce..50a187bc 100644
--- a/apps/landing/src/styles/global.css
+++ b/apps/landing/src/styles/global.css
@@ -18,6 +18,8 @@
--accent-soft: light-dark(#edecfd, #1d1e3a);
--on-accent: #ffffff;
--ok: light-dark(#0b8a5c, #34c58b);
+ --warn: light-dark(#b45309, #f5a524);
+ --warn-soft: light-dark(#fff3dd, #33250a);
/* The command bar stays dark in both themes: it is a terminal, not a card. */
--cmd-bg: light-dark(#15161c, #17181d);
@@ -1173,7 +1175,7 @@ section[id] {
}
}
-/* ---------- More ---------- */
+/* ---------- More: the rest of the kit, a small drawing for each feature ---------- */
.more h2 {
margin-bottom: clamp(32px, 4vw, 56px);
@@ -1181,47 +1183,447 @@ section[id] {
.more-groups {
display: grid;
- grid-template-columns: repeat(3, minmax(0, 1fr));
- gap: 40px clamp(24px, 3vw, 44px);
+ grid-template-columns: minmax(0, 1fr);
+ gap: clamp(32px, 3.4vw, 44px);
}
.more-group h3 {
padding-bottom: 14px;
+ margin-bottom: 18px;
font-size: 0.9375rem;
color: var(--ink);
border-bottom: 1px solid var(--ink);
}
-.more-group dl > div {
- padding: 16px 0;
- border-bottom: 1px solid var(--line);
+.more-tiles {
+ display: grid;
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ gap: 28px clamp(16px, 2vw, 28px);
}
-.more-group dt {
+.more-tile h4 {
+ margin: 14px 0 0;
+ font-size: 1rem;
font-weight: 700;
+ line-height: 1.3;
}
-:lang(zh) .more-group dt {
+:lang(zh) .more-tile h4 {
font-weight: 600;
}
-.more-group dd {
- margin-top: 4px;
- font-size: 0.9375rem;
- line-height: 1.5;
+.more-tile p {
+ margin-top: 3px;
+ font-size: 0.9rem;
+ line-height: 1.45;
color: var(--ink-2);
+ text-wrap: balance;
}
-:lang(zh) .more-group dd {
- line-height: 1.7;
+:lang(zh) .more-tile p {
+ line-height: 1.6;
}
-@media (max-width: 900px) {
- .more-groups {
- grid-template-columns: minmax(0, 1fr);
+/* Four sketches in a row need about 200px each for their longest line. */
+@media (max-width: 1099px) {
+ .more-tiles {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
+/* On a phone each group is a strip that pans sideways, like the captures. */
+@media (max-width: 640px) {
+ .more-tiles {
+ display: flex;
+ gap: 14px;
+ padding-inline: var(--gutter);
+ margin-inline: calc(-1 * var(--gutter));
+ overflow-x: auto;
+ overscroll-behavior-x: contain;
+ scroll-snap-type: x proximity;
+ scroll-padding-inline: var(--gutter);
+ scrollbar-width: none;
+ }
+
+ .more-tile {
+ flex: none;
+ width: 244px;
+ scroll-snap-align: start;
+ }
+}
+
+/*
+ * A sketch: the feature's own screen, drawn small in the type of a terminal. Every line is one row of its grid,
+ * and none of them wraps.
+ */
+.sketch {
+ display: grid;
+ grid-template-columns: minmax(0, 1fr);
+ align-content: center;
+ height: 124px;
+ padding: 0 16px;
+ overflow: hidden;
+ font-family: var(--font-mono);
+ font-size: 0.71875rem;
+ line-height: 1.65;
+ color: var(--ink-2);
+ white-space: nowrap;
+ background: var(--surface);
+ border: 1px solid var(--line);
+ border-radius: var(--r-m);
+}
+
+.sketch b {
+ font-weight: 500;
+ color: var(--ink);
+}
+
+.sk-row {
+ display: flex;
+ gap: 10px;
+ justify-content: space-between;
+}
+
+.sketch .sk-dim {
+ color: var(--ink-3);
+}
+
+.sketch .sk-ok {
+ color: var(--ok);
+}
+
+.sketch .sk-warn {
+ color: var(--warn);
+}
+
+/* Alerts: ten samples against the rule's threshold. */
+.sk-bars {
+ position: relative;
+ display: flex;
+ gap: 4px;
+ align-items: flex-end;
+ height: 50px;
+ margin: 7px 0;
+}
+
+.sk-bars::after {
+ position: absolute;
+ inset: auto 0 var(--at);
+ content: "";
+ border-top: 1px dashed var(--ink-3);
+}
+
+.sk-bars i {
+ flex: 1;
+ height: var(--h);
+ background: var(--line-strong);
+ border-radius: 2px 2px 0 0;
+}
+
+.sk-bars .over {
+ background: var(--warn);
+}
+
+.sketch-alerts .sk-warn::before {
+ display: inline-block;
+ width: 6px;
+ height: 6px;
+ margin-right: 6px;
+ vertical-align: 1px;
+ content: "";
+ background: currentcolor;
+ border-radius: 50%;
+}
+
+/* Status page: the uptime bar. */
+.sk-days {
+ display: flex;
+ gap: 1.5px;
+ height: 26px;
+ margin: 9px 0 7px;
+}
+
+.sk-days i {
+ flex: 1;
+ background: var(--ok);
+ border-radius: 1px;
+ opacity: 0.85;
+}
+
+.sk-days .degraded {
+ background: var(--warn);
+}
+
+/* Service monitors: one line per check. */
+.sk-check {
+ display: grid;
+ grid-template-columns: 46px minmax(0, 1fr) 12px;
+ align-items: center;
+}
+
+.sk-check svg {
+ width: 12px;
+ height: 12px;
+ color: var(--ok);
+ stroke-width: 3;
+}
+
+/* Traffic: what the cycle has used, and where it is heading, against the quota. */
+.sk-meter {
+ position: relative;
+ height: 8px;
+ margin: 8px 0;
+ background: var(--sunken);
+ border-radius: 4px;
+}
+
+.sk-meter i {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+}
+
+.sk-meter .sk-used {
+ left: 0;
+ width: var(--used);
+ background: var(--accent);
+ border-radius: 4px 0 0 4px;
+}
+
+.sk-meter .sk-forecast {
+ right: calc(100% - var(--forecast));
+ left: var(--used);
+ background: repeating-linear-gradient(
+ 90deg,
+ var(--warn) 0 4px,
+ transparent 4px 7px
+ );
+}
+
+.sk-meter .sk-quota {
+ top: -4px;
+ bottom: -4px;
+ left: var(--quota);
+ border-left: 1.5px solid var(--ink);
+}
+
+/* Terminal: dark in both themes, like the command bar. */
+.sketch-terminal {
+ color: var(--cmd-dim);
+ background: var(--cmd-bg);
+ border-color: var(--cmd-line);
+}
+
+.sketch-terminal b {
+ color: var(--cmd-ink);
+}
+
+.sk-prompt {
+ color: var(--cmd-accent);
+}
+
+.sk-typed {
+ display: inline-block;
+ overflow: hidden;
+ vertical-align: bottom;
+}
+
+.sk-cursor {
+ display: inline-block;
+ width: 0.6em;
+ height: 1.15em;
+ margin-left: 1px;
+ vertical-align: -0.2em;
+ background: var(--cmd-ink);
+}
+
+/* Files: what opens, and what the deny patterns keep shut. */
+.sk-file {
+ display: grid;
+ grid-template-columns: 13px minmax(0, 1fr) auto;
+ gap: 8px;
+ align-items: center;
+}
+
+.sk-file svg {
+ width: 13px;
+ height: 13px;
+ color: var(--ink-3);
+}
+
+.sk-denied {
+ color: var(--ink-3);
+}
+
+.sk-denied .sk-name {
+ text-decoration: line-through;
+}
+
+/* Docker: containers, their state and their load. */
+.sk-box {
+ display: grid;
+ grid-template-columns: 7px minmax(0, 1fr) 44px auto;
+ gap: 9px;
+ align-items: center;
+}
+
+.sk-state {
+ width: 7px;
+ height: 7px;
+ border: 1px solid var(--ink-3);
+ border-radius: 50%;
+}
+
+.sk-running {
+ background: var(--ok);
+ border-color: var(--ok);
+}
+
+.sk-load {
+ height: 4px;
+ background: var(--sunken);
+ border-radius: 2px;
+}
+
+.sk-load i {
+ display: block;
+ width: var(--w);
+ height: 100%;
+ background: var(--ink-3);
+ border-radius: 2px;
+}
+
+/* Upgrades: a mark per stage, on the line that joins them. */
+.sk-stages {
+ position: relative;
+ display: flex;
+ justify-content: space-between;
+ margin: 11px 0 9px;
+}
+
+.sk-stages::before,
+.sk-stages::after {
+ position: absolute;
+ top: 5px;
+ right: 5px;
+ left: 5px;
+ height: 1px;
+ content: "";
+ background: var(--line-strong);
+}
+
+.sk-stages::after {
+ background: var(--ok);
+}
+
+.sk-stages i {
+ position: relative;
+ z-index: 1;
+ width: 11px;
+ height: 11px;
+ background: var(--line-strong);
+ border-radius: 50%;
+}
+
+.sk-stages i::after {
+ position: absolute;
+ inset: 0;
+ content: "";
+ background: var(--ok);
+ border-radius: 50%;
+}
+
+/* Security: an address fails too often, and is blocked. */
+.sk-rule {
+ margin: 8px 0;
+ border-top: 1px dashed var(--line-strong);
+}
+
+/* Accounts: the ways in, and the roles. */
+.sk-chips {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px 5px;
+}
+
+.sk-chip {
+ padding: 1px 8px;
+ color: var(--ink);
+ border: 1px solid var(--line-strong);
+ border-radius: 999px;
+}
+
+.sk-current {
+ color: var(--accent-text);
+ background: var(--accent-soft);
+ border-color: transparent;
+}
+
+/* Tailscale: one peer reached directly, one through a relay. */
+.sketch-tailscale {
+ row-gap: 5px;
+}
+
+.sk-peer {
+ display: grid;
+ grid-template-columns: 54px minmax(0, 1fr) auto;
+ gap: 9px;
+ align-items: center;
+}
+
+.sk-link {
+ position: relative;
+ height: 1px;
+ background: var(--line-strong);
+}
+
+.sk-relayed {
+ background: repeating-linear-gradient(
+ 90deg,
+ var(--line-strong) 0 4px,
+ transparent 4px 8px
+ );
+}
+
+.sk-link em {
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ z-index: 1;
+ padding: 0 5px;
+ font-size: 0.625rem;
+ font-style: normal;
+ line-height: 1.5;
+ color: var(--ink-3);
+ background: var(--surface);
+ border: 1px solid var(--line-strong);
+ border-radius: 3px;
+ translate: -50% -50%;
+}
+
+/* A packet, on a track as wide as its link. It shows only while it travels. */
+.sk-link i {
+ position: absolute;
+ inset: -1px 0;
+ opacity: 0;
+}
+
+.sk-link i::before {
+ display: block;
+ width: 14px;
+ height: 3px;
+ content: "";
+ background: var(--accent);
+ border-radius: 2px;
+}
+
+/* Audit log: when, what, who. */
+.sk-entry {
+ display: grid;
+ grid-template-columns: auto minmax(0, 1fr) auto;
+ gap: 9px;
+}
+
/* ---------- How it works ---------- */
.how {
diff --git a/apps/landing/src/styles/motion.css b/apps/landing/src/styles/motion.css
index 9561548e..6e2aaed4 100644
--- a/apps/landing/src/styles/motion.css
+++ b/apps/landing/src/styles/motion.css
@@ -9,8 +9,6 @@
:root {
--trace: color-mix(in oklab, var(--ink) 20%, var(--bg));
- --warn: light-dark(#b45309, #f5a524);
- --warn-soft: light-dark(#fff3dd, #33250a);
/* A heading arrives a word at a time, or a character at a time in Chinese. */
--piece-step: 58ms;
@@ -1048,6 +1046,162 @@
fill: var(--accent);
}
+/* ---------- Kit: a sketch draws itself once, when its tile comes into view ---------- */
+
+/* How each part arrives. The runtime marks a sketch empty until then, and taking the mark away starts these. */
+.sk-bars i {
+ transform-origin: 50% 100%;
+ transition: transform 500ms var(--ease-out) calc(var(--i) * 45ms + 150ms);
+}
+
+.sk-days i {
+ transition: opacity 250ms ease calc(var(--i) * 9ms + 150ms);
+}
+
+.sk-check svg {
+ transition:
+ opacity 200ms ease calc(var(--i) * 110ms + 250ms),
+ transform 300ms var(--ease-out) calc(var(--i) * 110ms + 250ms);
+}
+
+/* The meter is wiped in from the left. Its resting clip is spelled out, since a shape cannot ease to "none". */
+.sk-meter .sk-used {
+ clip-path: inset(0);
+ transition: clip-path 700ms var(--ease-out) 150ms;
+}
+
+.sk-meter .sk-forecast {
+ clip-path: inset(0);
+ transition: clip-path 600ms var(--ease-out) 800ms;
+}
+
+/* The command is typed a letter at a time, and the cursor moves with it. */
+.sk-typed {
+ width: 4ch;
+ transition: width 450ms steps(4) 500ms;
+}
+
+.sk-load i {
+ transform-origin: 0 50%;
+ transition: transform 500ms var(--ease-out) calc(var(--i) * 90ms + 200ms);
+}
+
+/* The stages complete in turn, and the line between them fills at the same pace. */
+.sk-stages {
+ --stage: 240ms;
+}
+
+.sk-stages::after {
+ transform-origin: 0 50%;
+ transition: transform calc(var(--stage) * 4) linear 300ms;
+}
+
+.sk-stages i::after {
+ transition:
+ opacity 200ms ease calc(var(--i) * var(--stage) + 300ms),
+ transform 300ms var(--ease-out) calc(var(--i) * var(--stage) + 300ms);
+}
+
+.sk-chip {
+ transition: opacity 300ms ease calc(var(--i) * 45ms + 150ms);
+}
+
+.sk-entry {
+ transition:
+ opacity 300ms ease calc(var(--i) * 160ms + 200ms),
+ transform 400ms var(--ease-out) calc(var(--i) * 160ms + 200ms);
+}
+
+/* What follows from the rest of a sketch comes after it: the alert fires once the samples are in. */
+.sk-after {
+ transition: opacity 350ms ease calc(var(--after, 700ms) + var(--i, 0) * 140ms);
+}
+
+.sketch-alerts {
+ --after: 1000ms;
+}
+
+.sketch-files {
+ --after: 450ms;
+}
+
+.sketch-upgrades {
+ --after: 1500ms;
+}
+
+/* The empty sketch. */
+.sketch[data-empty] .sk-days i,
+.sketch[data-empty] .sk-chip,
+.sketch[data-empty] .sk-after {
+ opacity: 0;
+ transition: none;
+}
+
+.sketch[data-empty] .sk-bars i {
+ transform: scaleY(0);
+ transition: none;
+}
+
+.sketch[data-empty] .sk-load i,
+.sketch[data-empty] .sk-stages::after {
+ transform: scaleX(0);
+ transition: none;
+}
+
+.sketch[data-empty] .sk-check svg,
+.sketch[data-empty] .sk-stages i::after {
+ opacity: 0;
+ transform: scale(0.4);
+ transition: none;
+}
+
+.sketch[data-empty] .sk-used,
+.sketch[data-empty] .sk-forecast {
+ clip-path: inset(0 100% 0 0);
+ transition: none;
+}
+
+.sketch[data-empty] .sk-typed {
+ width: 0;
+ transition: none;
+}
+
+.sketch[data-empty] .sk-entry {
+ opacity: 0;
+ transform: translateY(5px);
+ transition: none;
+}
+
+/* The two that keep moving do so only on screen: the terminal's cursor, and the packets on the tailnet. */
+.sketch[data-visible] .sk-cursor {
+ animation: blink 1100ms steps(1) infinite;
+}
+
+.sketch[data-visible] .sk-link i {
+ animation: sk-packet 2600ms linear infinite;
+}
+
+.sketch[data-visible] .sk-relayed i {
+ animation-duration: 4200ms;
+}
+
+@keyframes sk-packet {
+ from {
+ opacity: 0;
+ translate: 0;
+ }
+
+ 8%,
+ 88% {
+ opacity: 1;
+ }
+
+ to {
+ opacity: 0;
+ translate: calc(100% - 14px);
+ }
+}
+
/* ---------- A traceroute down the page: each section is a hop, the packet is where the reader is ---------- */
.rail {