Add Go CDN and playground server

Build Core and Handles into in-memory CDN modules, add the marketing site and tutorial docs, and provide a SQLite-backed WebGPU playground with TypeScript tooling and profiling.

Amp-Thread-ID: https://ampcode.com/threads/T-01a02485-5574-707c-bff4-5668d83bee8a
Co-authored-by: Heaust Azure <heaust.azure@gmail.com>
This commit is contained in:
Amp
2026-08-21 16:42:02 +00:00
co-authored by heaust
parent 53a53a8f3f
commit 7070799862
27 changed files with 3402 additions and 7 deletions
+254
View File
@@ -0,0 +1,254 @@
:root {
--ink: #10233e;
--muted: #5c6d82;
--line: #dfe9f2;
--line-strong: #cbdbe9;
--sky-25: #f8fcff;
--sky-50: #f0f9ff;
--sky-100: #e0f2fe;
--sky-200: #bae6fd;
--sky-400: #38bdf8;
--sky-500: #0ea5e9;
--sky-600: #0284c7;
--blue: #1b8fe5;
--blue-deep: #0d6fbd;
--navy: #0a1c35;
--radius: 16px;
--shadow-sm: 0 1px 2px rgb(18 49 77 / 4%), 0 8px 24px rgb(18 49 77 / 5%);
color: var(--ink);
font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-synthesis: none;
text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: white; color: var(--ink); }
a { color: inherit; }
button, input { font: inherit; }
.section-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.site-header {
position: relative;
z-index: 20;
display: flex;
width: min(1240px, calc(100% - 48px));
height: 76px;
margin: 0 auto;
align-items: center;
gap: 36px;
border-bottom: 1px solid var(--line);
}
.wordmark {
display: inline-flex;
align-items: center;
gap: 11px;
color: #102945;
font-size: 21px;
font-weight: 750;
letter-spacing: -0.04em;
text-decoration: none;
}
.wordmark-mark { position: relative; display: inline-block; width: 25px; height: 25px; transform: rotate(-2deg); }
.wordmark-mark i { position: absolute; display: block; width: 8px; border: 2.5px solid #218ddd; border-radius: 8px; transform: rotate(-28deg); }
.wordmark-mark i:nth-child(1) { left: 2px; top: 10px; height: 12px; }
.wordmark-mark i:nth-child(2) { left: 9px; top: 5px; height: 17px; }
.wordmark-mark i:nth-child(3) { left: 16px; top: 1px; height: 21px; }
.site-nav { display: flex; flex: 1; align-items: center; justify-content: center; gap: 34px; }
.site-nav a, .site-footer nav a { color: #53667c; font-size: 14px; font-weight: 550; text-decoration: none; }
.site-nav a:hover, .site-footer nav a:hover { color: var(--blue); }
.button {
display: inline-flex;
min-height: 46px;
align-items: center;
justify-content: center;
gap: 14px;
padding: 0 21px;
color: white;
border: 1px solid var(--blue);
border-radius: 9px;
background: var(--blue);
box-shadow: 0 8px 20px rgb(27 143 229 / 16%);
font-size: 14px;
font-weight: 700;
text-decoration: none;
transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.button:hover { transform: translateY(-1px); background: var(--blue-deep); box-shadow: 0 11px 25px rgb(27 143 229 / 22%); }
.button-small { min-height: 38px; padding: 0 17px; font-size: 13px; }
.button-quiet { color: #294661; border-color: var(--line-strong); background: white; box-shadow: none; }
.button-quiet:hover { color: var(--blue); background: var(--sky-50); box-shadow: none; }
.hero {
position: relative;
display: grid;
min-height: 660px;
grid-template-columns: minmax(0, .9fr) minmax(540px, 1.1fr);
align-items: center;
gap: 66px;
padding-top: 60px;
padding-bottom: 82px;
}
.hero::before {
position: absolute;
z-index: -1;
top: 20px;
left: 32%;
width: min(600px, 68%);
height: 480px;
border-radius: 50%;
background: radial-gradient(circle, rgb(224 242 254 / 85%), transparent 67%);
content: "";
filter: blur(10px);
}
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--sky-600); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow > span { width: 22px; height: 2px; border-radius: 2px; background: var(--sky-500); }
.hero h1 { max-width: 670px; margin: 24px 0 24px; color: #0e2743; font-size: clamp(48px, 5.4vw, 71px); font-weight: 730; letter-spacing: -.06em; line-height: 1.02; }
.hero-lede { max-width: 580px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.72; }
.hero-actions { display: flex; gap: 12px; margin-top: 31px; }
.hero-note { display: flex; align-items: center; gap: 11px; margin-top: 27px; color: #7b8b9e; font-size: 12px; }
.browser-dots { display: flex; gap: 3px; }
.browser-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--sky-400); }
.browser-dots i:nth-child(2) { opacity: .55; }
.browser-dots i:nth-child(3) { opacity: .28; }
.hero-demo { position: relative; overflow: hidden; min-width: 0; border: 1px solid #cee0ed; border-radius: 16px; background: #fff; box-shadow: 0 30px 70px rgb(22 66 102 / 15%), 0 4px 12px rgb(22 66 102 / 7%); transform: perspective(1400px) rotateY(-2.5deg) rotateX(1deg); }
.hero-demo::after { position: absolute; right: -100px; bottom: -100px; width: 250px; height: 250px; border-radius: 50%; background: rgb(56 189 248 / 10%); content: ""; filter: blur(35px); }
.demo-toolbar { display: flex; height: 44px; align-items: center; justify-content: space-between; padding: 0 16px; color: #7890a6; border-bottom: 1px solid #dbe8f1; background: #f8fbfd; font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.demo-toolbar span { display: flex; align-items: center; gap: 7px; }
.demo-toolbar > span > i { width: 7px; height: 7px; border-radius: 2px; background: #49aef1; }
.demo-toolbar .demo-status { color: #479165; }
.demo-toolbar .demo-status i { border-radius: 50%; background: #38b76b; box-shadow: 0 0 0 3px rgb(56 183 107 / 12%); }
.hero-demo pre { min-height: 355px; margin: 0; padding: 25px 27px 28px; overflow: auto; color: #405670; background: #fbfdff; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; tab-size: 2; }
.syntax-purple { color: #9a61d2; }
.syntax-blue { color: #207fca; }
.syntax-green { color: #268a71; }
.syntax-orange { color: #c56b2d; }
.demo-preview { position: relative; height: 166px; overflow: hidden; border-top: 1px solid #c9d9e5; background: linear-gradient(145deg, #0a1e38, #0d294b); }
.demo-grid { position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgb(105 190 249 / 30%) 1px, transparent 1px), linear-gradient(90deg, rgb(105 190 249 / 30%) 1px, transparent 1px); background-size: 30px 30px; transform: perspective(400px) rotateX(64deg) scale(1.4) translateY(26px); }
.demo-glow { position: absolute; top: 48%; left: 50%; width: 190px; height: 80px; transform: translate(-50%, -50%); border-radius: 50%; background: #3eb9ff; opacity: .3; filter: blur(35px); }
.demo-triangle { position: absolute; top: 25px; left: 50%; width: 125px; height: 112px; transform: translateX(-50%); background: linear-gradient(150deg, #a8e5ff, #258fdf 75%); clip-path: polygon(50% 0, 100% 100%, 0 100%); filter: drop-shadow(0 16px 16px rgb(46 168 240 / 25%)); }
.demo-preview > span { position: absolute; right: 12px; bottom: 10px; color: #7494b0; font: 9px/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); background: var(--sky-25); }
.trust-strip div { display: flex; min-height: 92px; align-items: center; justify-content: center; gap: 10px; border-right: 1px solid var(--line); }
.trust-strip div:last-child { border-right: 0; }
.trust-strip strong { color: #143757; font-size: 16px; letter-spacing: -.03em; }
.trust-strip span { color: #718196; font-size: 12px; }
.progression { padding-top: 115px; padding-bottom: 125px; }
.section-heading { max-width: 690px; margin-bottom: 50px; }
.section-heading h2, .architecture-copy h2, .cta-section h2 { margin: 16px 0; font-size: clamp(36px, 4vw, 48px); font-weight: 700; letter-spacing: -.05em; line-height: 1.12; }
.section-heading > p, .architecture-copy > p, .cta-section p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.gear-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.gear-card { position: relative; min-height: 390px; padding: 29px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.gear-card::before { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(145deg, var(--sky-50), transparent 42%); content: ""; opacity: 0; transition: opacity .2s ease; }
.gear-card:hover::before { opacity: 1; }
.gear-card > * { position: relative; }
.gear-card-featured { border-color: #b9ddf6; background: linear-gradient(145deg, #f8fcff, white); }
.gear-number { position: absolute; top: 25px; right: 27px; color: #bdd1e0; font: 600 11px/1 ui-monospace, monospace; }
.gear-icon { display: grid; width: 52px; height: 52px; margin: 6px 0 33px; place-items: center; border: 1px solid #c6e5f8; border-radius: 13px; background: #eff9ff; }
.gear-card h3 { margin: 0 0 14px; color: #13324f; font-size: 20px; letter-spacing: -.025em; }
.gear-card p { margin: 0 0 25px; color: #6a7b8e; font-size: 14px; line-height: 1.72; }
.gear-card a { position: absolute; bottom: 28px; color: var(--blue-deep); font-size: 13px; font-weight: 700; text-decoration: none; }
.gear-card a span { margin-left: 5px; }
.cube-icon { width: 21px; height: 21px; border: 2px solid #258fd9; transform: rotate(30deg) skew(-4deg); }
.rows-icon { width: 24px; height: 19px; background: repeating-linear-gradient(to bottom, #258fd9 0 2px, transparent 2px 6px); }
.graph-icon { position: relative; width: 26px; height: 22px; background: linear-gradient(28deg, transparent 47%, #258fd9 48% 53%, transparent 54%); }
.graph-icon::before, .graph-icon::after { position: absolute; width: 7px; height: 7px; border: 2px solid #258fd9; border-radius: 50%; background: #eff9ff; content: ""; }
.graph-icon::before { left: 0; bottom: 0; }
.graph-icon::after { top: 0; right: 0; }
.architecture-section { overflow: hidden; padding: 110px 0; color: #d7e9f8; background: radial-gradient(circle at 80% 30%, #153d67, transparent 36%), linear-gradient(145deg, #07192e, #0b2746); }
.architecture-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 100px; }
.eyebrow-light { color: #65c9ff; }
.architecture-copy h2, .cta-section h2 { color: #f2f9ff; }
.architecture-copy > p { color: #9ab2c8; }
.check-list { display: grid; gap: 14px; margin: 30px 0; padding: 0; list-style: none; }
.check-list li { color: #bed1e2; font-size: 14px; }
.check-list li span { display: inline-grid; width: 20px; height: 20px; margin-right: 10px; place-items: center; border-radius: 50%; color: #6dd0ff; background: rgb(56 189 248 / 12%); font-size: 10px; }
.text-link-light { color: #6ed0ff; font-size: 13px; font-weight: 700; text-decoration: none; }
.architecture-visual { position: relative; display: flex; min-height: 480px; flex-direction: column; align-items: center; justify-content: center; }
.architecture-visual::before { position: absolute; width: 470px; height: 470px; border: 1px solid rgb(106 193 245 / 8%); border-radius: 50%; content: ""; box-shadow: 0 0 0 70px rgb(106 193 245 / 3%), 0 0 0 140px rgb(106 193 245 / 2%); }
.flow-label { position: relative; margin-bottom: 11px; color: #6887a3; font: 700 9px/1 ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; }
.flow-nodes { position: relative; display: flex; gap: 10px; }
.flow-nodes span { padding: 9px 13px; color: #aac3d8; border: 1px solid #294b69; border-radius: 6px; background: #102d4b; font: 10px/1 ui-monospace, monospace; }
.flow-line { position: relative; display: flex; width: 250px; height: 41px; justify-content: space-around; }
.flow-line i { width: 1px; height: 100%; background: linear-gradient(#356688, #48b9f4); }
.arena-card { position: relative; width: min(410px, 100%); padding: 20px; border: 1px solid #2f8bc0; border-radius: 12px; background: linear-gradient(120deg, #0c3254, #0d2a47); box-shadow: 0 0 40px rgb(27 143 229 / 12%); }
.arena-card > div:first-child { display: grid; grid-template-columns: 20px 1fr; }
.arena-card > div > span { width: 11px; height: 11px; margin-top: 3px; border: 2px solid #62c9ff; border-radius: 3px; }
.arena-card strong { color: #d9f0ff; font: 600 13px/1.2 ui-monospace, monospace; }
.arena-card small { grid-column: 2; margin-top: 3px; color: #6389a6; font: 9px/1 ui-monospace, monospace; }
.arena-rows { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 18px; }
.arena-rows i { height: 30px; border: 1px solid #285f84; border-radius: 3px; background: repeating-linear-gradient(90deg, rgb(69 178 235 / 18%) 0 5px, transparent 5px 8px); }
.flow-line-bottom { width: 1px; height: 34px; }
.core-card { position: relative; display: flex; width: 260px; min-height: 66px; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #365b7a; border-radius: 9px; background: #102b46; }
.core-card span { color: #6c8ca8; font: 8px/1 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.core-card strong { margin-top: 7px; color: #c7deef; font-size: 12px; }
.gpu-line { position: relative; width: 1px; height: 28px; background: #315a77; }
.gpu-card { position: relative; padding: 8px 21px; color: #83d5ff; border: 1px solid #2c6f98; border-radius: 20px; background: #0c304f; font: 700 9px/1 ui-monospace, monospace; letter-spacing: .1em; }
.steps-section { padding-top: 115px; padding-bottom: 120px; }
.section-heading-centered { margin-inline: auto; text-align: center; }
.section-heading-centered .eyebrow { justify-content: center; }
.steps { max-width: 880px; margin: 55px auto 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.steps li { display: grid; min-height: 126px; grid-template-columns: 46px 1fr auto; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.step-index { display: grid; width: 34px; height: 34px; place-items: center; color: var(--blue); border: 1px solid #b9dcf4; border-radius: 50%; background: var(--sky-50); font: 700 11px/1 ui-monospace, monospace; }
.steps h3 { margin: 0 0 5px; font-size: 16px; }
.steps p { margin: 0; color: #708196; font-size: 13px; }
.steps code { padding: 10px 13px; color: #2977ad; border: 1px solid #d9e7f1; border-radius: 6px; background: #f8fbfd; font: 11px/1 ui-monospace, monospace; }
.cta-section { display: flex; min-height: 305px; align-items: center; justify-content: space-between; gap: 50px; margin-bottom: 90px; padding: 56px 65px; border-radius: 20px; background: radial-gradient(circle at 85% 20%, #229eea, transparent 35%), linear-gradient(125deg, #0a2542, #0c4b78); box-shadow: 0 24px 55px rgb(12 64 101 / 18%); }
.cta-section > div { max-width: 700px; }
.cta-section h2 { margin-block: 13px; font-size: 39px; }
.cta-section p { color: #a7c4d9; }
.button-white { flex: 0 0 auto; color: #155a89; border-color: white; background: white; box-shadow: none; }
.button-white:hover { color: #0f70ae; background: #f0f9ff; box-shadow: none; }
.site-footer { display: grid; min-height: 100px; grid-template-columns: 1fr 1fr 1fr; align-items: center; border-top: 1px solid var(--line); }
.site-footer p { color: #8694a5; font-size: 12px; text-align: center; }
.site-footer nav { display: flex; justify-content: flex-end; gap: 24px; }
[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 500ms ease, transform 500ms ease; }
[data-reveal].revealed { opacity: 1; transform: none; }
@media (max-width: 980px) {
.hero { grid-template-columns: 1fr; padding-top: 80px; }
.hero-copy { max-width: 700px; }
.hero-demo { width: min(680px, 100%); transform: none; }
.gear-grid { grid-template-columns: 1fr; }
.gear-card { min-height: 320px; }
.architecture-grid { grid-template-columns: 1fr; gap: 60px; }
.architecture-copy { max-width: 700px; }
.trust-strip { grid-template-columns: 1fr 1fr; }
.trust-strip div:nth-child(2) { border-right: 0; }
.trust-strip div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 700px) {
.section-shell, .site-header { width: min(100% - 28px, 1180px); }
.site-header { height: 64px; gap: 14px; }
.site-nav { justify-content: flex-end; gap: 16px; }
.site-nav a:last-child { display: none; }
.site-header > .button { display: none; }
.hero { min-height: auto; grid-template-columns: minmax(0, 1fr); gap: 45px; padding-block: 60px; }
.hero h1 { font-size: 47px; }
.hero-lede { font-size: 16px; }
.hero-actions { align-items: stretch; flex-direction: column; }
.hero-demo pre { font-size: 10px; }
.trust-strip { grid-template-columns: 1fr; }
.trust-strip div { min-height: 72px; border-right: 0; border-bottom: 1px solid var(--line); }
.progression, .steps-section { padding-block: 80px; }
.architecture-section { padding-block: 80px; }
.architecture-visual { transform: scale(.82); margin-inline: -35px; }
.steps li { grid-template-columns: 42px 1fr; padding-block: 22px; }
.steps code { display: none; }
.cta-section { align-items: flex-start; flex-direction: column; margin-bottom: 45px; padding: 36px 28px; }
.site-footer { grid-template-columns: 1fr; gap: 18px; padding-block: 28px; text-align: center; }
.site-footer p { margin: 0; }
.site-footer nav { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}