Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

58.2 KB
Raw Blame

    :root { --shell:1240px; --nav-h:64px; }
    *, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
    html { scroll-behavior:smooth; scrollbar-gutter:stable; background:var(--bg); }
    body { font-family:var(--font-body); -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; background:var(--bg); color:var(--text); min-height:100vh; overflow-x:clip; }
    body::after { content:''; position:fixed; inset:0; z-index:1000; pointer-events:none; opacity:.035; mix-blend-mode:overlay;
      background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>"); }
    ::selection { background:rgba(var(--accent-rgb),.32); color:var(--on-accent); }
    html { scrollbar-width:thin; scrollbar-color:rgba(var(--fg-rgb),.2) transparent; }
    :focus-visible { outline:2px solid var(--accent); outline-offset:3px; border-radius:6px; }
    img { max-width:100%; }
    .sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
    .container { position:relative; z-index:1; max-width:var(--shell); margin:0 auto; padding:0 2rem; }
    section { position:relative; }

    /* Content is visible before JavaScript; reveal classes remain optional decoration. */
    .fade-up { opacity:1; transform:none; filter:none; transition:opacity .9s var(--ease-out),transform .9s var(--ease-out),filter .9s var(--ease-out); }
    .fade-up.visible { opacity:1; transform:none; filter:none; }
    .fade-up.d1 { transition-delay:.08s; } .fade-up.d2 { transition-delay:.16s; }
    .fade-up.d3 { transition-delay:.24s; } .fade-up.d4 { transition-delay:.32s; }

    /* BUTTONS */
    .btn { display:inline-flex; align-items:center; justify-content:center; gap:.55rem; min-height:44px; padding:.65rem 1.25rem; border-radius:10px; border:1px solid transparent; font-family:var(--font-body); font-size:.875rem; font-weight:500; letter-spacing:-.005em; text-decoration:none; white-space:nowrap; cursor:pointer; transition:background .2s var(--ease-out),color .2s var(--ease-out),border-color .2s var(--ease-out),transform .2s var(--ease-out),box-shadow .2s var(--ease-out); }
    .btn-primary { background:var(--btn-bg); color:var(--btn-fg); }
    .btn-primary:hover { background:var(--btn-hover); transform:translateY(-1px); box-shadow:0 10px 30px rgba(255,255,255,.12); }
    .btn-ghost { background:rgba(var(--fg-rgb),.03); color:var(--text); border-color:var(--line-hi); }
    .btn-ghost:hover { border-color:rgba(var(--fg-rgb),.4); background:rgba(var(--fg-rgb),.06); transform:translateY(-1px); }
    .btn-lg { min-height:52px; padding:.8rem 1.6rem; font-size:.9375rem; border-radius:12px; }

    /* ══════════════════════════════════════
       HERO — centered statement over a drafting-grid aura
    ══════════════════════════════════════ */
    .hero { padding:calc(var(--nav-h) + clamp(2rem, 7vh, 3.75rem)) 2rem 2.75rem; display:flex; align-items:center; justify-content:center; overflow-x:clip; isolation:isolate; }
    .hero-aura { position:absolute; inset:0; z-index:-1; pointer-events:none;
      background:radial-gradient(ellipse 50% 45% at 50% 0%, rgba(var(--signal-rgb),.06), transparent 70%); }
    .hero-aura::before { content:''; position:absolute; inset:0;
      background-image:linear-gradient(rgba(var(--fg-rgb),.05) 1px,transparent 1px),linear-gradient(90deg,rgba(var(--fg-rgb),.05) 1px,transparent 1px);
      background-size:64px 64px; background-position:center top;
      -webkit-mask-image:radial-gradient(ellipse 60% 75% at 50% 30%, #000 10%, transparent 75%);
      mask-image:radial-gradient(ellipse 60% 75% at 50% 30%, #000 10%, transparent 75%); }
    /* pointer spotlight — the drafting grid lights up under the cursor */
    .hero-spot { position:absolute; inset:0; opacity:0; transition:opacity .6s var(--ease-out);
      background-image:linear-gradient(rgba(var(--glow-rgb),.3) 1px,transparent 1px),linear-gradient(90deg,rgba(var(--glow-rgb),.3) 1px,transparent 1px);
      background-size:64px 64px; background-position:center top;
      -webkit-mask-image:radial-gradient(320px circle at var(--mx,50%) var(--my,40%), #000, transparent 70%);
      mask-image:radial-gradient(320px circle at var(--mx,50%) var(--my,40%), #000, transparent 70%); }
    .hero.is-pointing .hero-spot { opacity:1; }
    /* horizon — a lit planet edge the artifact window rises from; a glint travels along it */
    @property --sweep { syntax:'<angle>'; inherits:false; initial-value:-24deg; }
    .hero-horizon { position:absolute; left:50%; bottom:calc(1.25rem - 130vw); width:160vw; height:130vw; transform:translateX(-50%); border-radius:50%;
      background:radial-gradient(closest-side, var(--bg) 97%, transparent 100%);
      box-shadow:0 -1px 0 0 rgba(var(--glow-rgb),.55), 0 -18px 60px -10px rgba(var(--accent-rgb),.55), 0 -80px 160px -20px rgba(var(--accent-rgb),.28), inset 0 30px 60px -30px rgba(var(--accent-rgb),.35);
      animation:horizonRise 2.2s var(--ease-out) .1s both; }
    .hero-horizon::after { content:''; position:absolute; inset:-1px; border-radius:50%; pointer-events:none;
      background:conic-gradient(from var(--sweep), rgba(var(--glow-rgb),0) 0deg, rgba(var(--glow-rgb),.55) 4deg, var(--glint) 7deg, rgba(var(--glow-rgb),0) 8deg, transparent 360deg);
      -webkit-mask-image:radial-gradient(closest-side, transparent calc(100% - 5px), #000 calc(100% - 2px), transparent 100%);
      mask-image:radial-gradient(closest-side, transparent calc(100% - 5px), #000 calc(100% - 2px), transparent 100%);
      filter:drop-shadow(0 0 10px rgba(var(--glow-rgb),1)) drop-shadow(0 0 24px rgba(var(--accent-rgb),.8));
      animation:glint 7s cubic-bezier(.45,0,.25,1) 2.4s infinite; }
    @keyframes horizonRise { from { translate:0 16vh; opacity:0; } 40% { opacity:1; } }
    @keyframes glint { 0% { --sweep:-26deg; opacity:0; } 10% { opacity:1; } 60% { --sweep:20deg; opacity:1; } 68%,100% { --sweep:22deg; opacity:0; } }

    .hero-copy { position:relative; max-width:1200px; display:flex; flex-direction:column; align-items:center; text-align:center; }
    .hero-eyebrow { display:inline-flex; align-items:center; gap:.65rem; padding:.3rem .85rem .3rem .3rem; margin-bottom:1.75rem; border:1px solid var(--line-hi); border-radius:999px; background:rgba(var(--fg-rgb),.03); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); color:var(--text-2); font-size:.8125rem; font-weight:450; text-decoration:none; white-space:nowrap; transition:border-color .2s var(--ease-out),color .2s var(--ease-out); }
    .hero-eyebrow:hover { border-color:rgba(var(--accent-rgb),.5); color:var(--text); }
    .eyebrow-tag { padding:.22rem .55rem; border-radius:999px; background:var(--accent); color:#07080a; font-family:var(--font-mono); font-size:.6875rem; font-weight:600; }
    .eyebrow-arrow { color:var(--text-3); transition:transform .2s var(--ease-out),color .2s var(--ease-out); }
    .hero-eyebrow:hover .eyebrow-arrow { color:var(--accent); transform:translateX(3px); }
    .pulse-dot { width:6px; height:6px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 0 rgba(var(--accent-rgb),.6); animation:pulse 2.4s ease-in-out infinite; }
    @keyframes pulse { 0%,100% { box-shadow:0 0 0 0 rgba(var(--accent-rgb),.55); } 60% { box-shadow:0 0 0 6px rgba(var(--accent-rgb),0); } }

    .hero h1 { font-family:var(--font-grot); font-size:clamp(2.75rem,min(5.9vw,9.4vh),5.75rem); font-weight:500; line-height:.98; letter-spacing:-.045em; color:var(--text); text-wrap:balance; background:none; -webkit-text-fill-color:currentColor; }
    /* each line is its own gradient-clipped block so it can be masked in independently */
    .hero h1 .l { display:block; padding-bottom:.06em; background:linear-gradient(180deg,var(--title-top) 0%,var(--title-top) 62%,var(--title-end) 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
      animation:lineIn 1.1s var(--ease-out) .15s both; }
    .hero h1 .l + .l { animation-delay:.32s; }
    @keyframes lineIn { from { clip-path:inset(0 -10% 100% -10%); translate:0 .4em; } to { clip-path:inset(-30% -10% -40% -10%); translate:0 0; } }
    .hero h1 em { font-family:var(--font-display); font-style:italic; font-optical-sizing:auto; font-weight:400; letter-spacing:-.03em; padding-right:.06em;
      background:linear-gradient(100deg,var(--grad-a) 0%,var(--accent) 45%,var(--grad-c) 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
    .hero h1 em { white-space:nowrap; padding-left:.12em; margin-left:-.12em; }
    html[lang^="zh"] .hero h1 { letter-spacing:-.02em; line-height:1.08; }
    /* CJK has no true italic — use upright heavy strokes for the accent instead of a synthesized slant */
    html[lang^="zh"] .hero h1 em, html[lang^="zh"] .section-heading em, html[lang^="zh"] .cta-h em { font-family:var(--font-grot); font-style:normal; font-weight:600; letter-spacing:-.01em; }
    .hero-sub { max-width:64ch; margin-top:1.5rem; font-size:1.0625rem; line-height:1.65; color:var(--text-2); text-wrap:pretty; }
    .hero-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.75rem; margin-top:2.25rem; }

    /* command chip — copyable install line */
    .cmd-chip { display:inline-flex; align-items:center; gap:.65rem; min-height:44px; padding:0 .4rem 0 1rem; border:1px solid var(--line-hi); border-radius:10px; background:rgba(var(--bg-rgb),.8); font-family:var(--font-mono); font-size:.8125rem; color:var(--text); }
    .cmd-prompt { color:var(--accent-text); }
    .cmd-chip code { font-family:inherit; white-space:nowrap; }
    .cmd-copy { display:inline-flex; align-items:center; gap:.4rem; min-height:34px; padding:0 .65rem; border:1px solid transparent; border-radius:7px; background:rgba(var(--fg-rgb),.06); color:var(--text-2); font-family:var(--font-mono); font-size:.6875rem; letter-spacing:.04em; cursor:pointer; transition:color .18s var(--ease-out),background .18s var(--ease-out); }
    .cmd-copy:hover { color:var(--text); background:rgba(var(--fg-rgb),.12); }
    .copy-status { color:var(--text-2); font-size:.85rem; overflow-wrap:anywhere; }
    .copy-status:empty { display:block; margin:0; }
    .demo-trigger .play-ring { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%; background:var(--accent); color:var(--on-accent); padding-left:1px; }

    .hero-meta { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.5rem 1.5rem; margin-top:1.75rem; font-size:.8125rem; color:var(--text-3); }
    .hero-works b { font-weight:500; color:var(--text-2); }
    .hero-stars { display:inline-flex; align-items:center; gap:.45rem; padding-left:1.5rem; border-left:1px solid var(--line-hi); color:var(--text-3); text-decoration:none; transition:color .18s var(--ease-out); }
    .hero-stars:hover { color:var(--text); }
    .stars-count { font-weight:600; font-variant-numeric:tabular-nums; color:var(--text); }
    .hero-stars .stars-count::before { display:none; }

    /* ══════════════════════════════════════
       STAGE — pinned live artifact window; scroll drives the camera beats.
       --enter (0→1) flattens the tilted window as it arrives.
    ══════════════════════════════════════ */
    .stage { height:600vh; height:600svh; margin-top:-3.5rem; --enter:0; }
    .stage-pin { position:sticky; top:0; height:100vh; height:100svh; padding:calc(var(--nav-h) + 1rem) 2rem 1.5rem; display:flex; align-items:center; justify-content:center; perspective:2200px; }
    .stage-window { position:relative; width:min(100%,1320px); height:100%; display:flex; flex-direction:column; border-radius:18px; overflow:hidden; background:var(--plate); border:1px solid rgba(var(--fg-rgb),.12);
      box-shadow:0 0 0 1px rgba(var(--shadow-rgb),calc(.6 * var(--shadow-k))), 0 50px 120px -20px rgba(var(--shadow-rgb),calc(.8 * var(--shadow-k))), 0 0 140px -30px rgba(var(--accent-rgb),calc(.18 + .14 * var(--enter)));
      transform-origin:50% 0; transform:rotateX(calc((1 - var(--enter)) * 24deg)) scale(calc(.86 + .14 * var(--enter))) translateY(calc((1 - var(--enter)) * 2rem)); will-change:transform; }
    .stage-window { animation:windowRise 1.5s var(--ease-out) .6s both; }
    @keyframes windowRise { from { translate:0 110px; opacity:0; } }
    .stage-window::after { content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none; background:linear-gradient(180deg,rgba(255,255,255,.06),transparent 18%); }

    .window-bar { flex:none; position:relative; z-index:3; display:flex; align-items:center; gap:1rem; height:52px; padding:0 .75rem 0 1.1rem; border-bottom:1px solid var(--line); background:rgba(var(--bg-rgb),.92); }
    .window-dots { display:flex; gap:7px; flex:none; }
    .window-dots i { width:11px; height:11px; border-radius:50%; background:rgba(var(--fg-rgb),.14); }
    .window-dots i:first-child { background:#ff5f57; opacity:.85; } .window-dots i:nth-child(2) { background:#febc2e; opacity:.85; } .window-dots i:nth-child(3) { background:#28c840; opacity:.85; }
    /* map / page — a sliding segmented switch; the thumb follows the chapter the scroll is in */
    .mode-switch { position:relative; flex:none; display:grid; grid-template-columns:1fr 1fr; padding:3px; border-radius:10px; border:1px solid var(--line); background:rgba(var(--fg-rgb),.05); }
    .mode-thumb { position:absolute; top:3px; bottom:3px; left:3px; width:calc(50% - 3px); border-radius:7px; background:var(--surface); box-shadow:0 0 0 1px var(--line-hi),0 2px 6px rgba(var(--shadow-rgb),calc(.25 * var(--shadow-k))); transition:transform .5s var(--ease-out); }
    .stage-window[data-mode="page"] .mode-thumb { transform:translateX(100%); }
    .mode-switch button { position:relative; z-index:1; display:inline-flex; align-items:center; justify-content:center; gap:.4rem; min-height:28px; padding:0 .8rem; border:0; background:none; color:var(--text-3); font-family:var(--font-body); font-size:.8125rem; font-weight:500; white-space:nowrap; cursor:pointer; transition:color .25s var(--ease-out); }
    .mode-switch button:hover, .mode-switch button[aria-pressed="true"] { color:var(--text); }
    .mode-new { padding:.1rem .38rem; border-radius:999px; background:var(--accent); color:var(--on-accent); font-family:var(--font-mono); font-size:.5625rem; font-style:normal; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }
    .proof-rail { display:flex; gap:.25rem; min-width:0; overflow-x:auto; scrollbar-width:none; }
    .spec-card[hidden], .beat-rail[hidden] { display:none; }
    .proof-rail::-webkit-scrollbar { display:none; }
    .spec-card { flex:none; display:inline-flex; align-items:center; gap:.5rem; min-height:34px; padding:0 .8rem; border-radius:8px; border:1px solid transparent; background:transparent; color:var(--text-3); font-family:var(--font-body); font-size:.8125rem; font-weight:500; cursor:pointer; transition:color .2s var(--ease-out),background .2s var(--ease-out),border-color .2s var(--ease-out); }
    .spec-card:hover { color:var(--text); background:rgba(var(--fg-rgb),.05); }
    .spec-card[aria-selected="true"] { color:var(--text); background:rgba(var(--fg-rgb),.08); border-color:var(--line-hi); }
    .spec-idx { font-family:var(--font-mono); font-size:.625rem; letter-spacing:.08em; color:var(--text-3); }
    .spec-card[aria-selected="true"] .spec-idx { color:var(--accent-text); }
    .window-address { flex:1; min-width:0; display:flex; align-items:center; justify-content:center; gap:.45rem; height:32px; padding:0 .9rem; border-radius:8px; background:rgba(var(--shadow-rgb),calc(.35 * var(--shadow-k))); border:1px solid var(--line); color:var(--text-3); font-family:var(--font-mono); font-size:.6875rem; white-space:nowrap; overflow:hidden; }
    .window-address span { overflow:hidden; text-overflow:ellipsis; }
    .window-address b { font-weight:500; color:var(--signal); transition:color .3s var(--ease-out); }
    .window-address b.is-flash { animation:hashFlash .9s var(--ease-out); }
    @keyframes hashFlash { from { color:var(--text); text-shadow:0 0 12px rgba(var(--signal-rgb),.9); } }
    .proof-open { flex:none; display:inline-flex; align-items:center; gap:.4rem; min-height:34px; padding:0 .85rem; border-radius:8px; border:1px solid var(--line-hi); color:var(--text); font-size:.8125rem; font-weight:500; text-decoration:none; transition:border-color .2s var(--ease-out),color .2s var(--ease-out); }
    .proof-open:hover { border-color:var(--accent); color:var(--accent); }

    .hero-frame { position:relative; flex:1; min-height:0; }
    .hero-frame iframe { position:absolute; inset:0; width:100%; height:100%; display:block; border:0; background:var(--plate); transition:opacity .4s var(--ease-out); }
    .stage-window.is-loading #hero-proof-frame { opacity:.3; }
    /* the page is a scripted demo: wheel and clicks pass to the site, "Open artifact" opens it for real */
    /* narrower than a desktop page, the frame keeps the desktop layout and scales it (--page-scale, set by the script) */
    .hero-frame .page-frame { width:calc(100% / var(--page-scale,1)); height:calc(100% / var(--page-scale,1)); transform-origin:0 0; opacity:0; visibility:hidden; pointer-events:none; transform:translateY(24px) scale(calc(var(--page-scale,1) * .985)); transition:opacity .6s var(--ease-out),transform .8s var(--ease-out),visibility 0s linear .6s; }
    .stage-window[data-mode="page"] .page-frame { opacity:1; visibility:visible; transform:scale(var(--page-scale,1)); transition:opacity .6s var(--ease-out); }
    .stage-window[data-mode="page"] #hero-proof-frame { opacity:0; }
    .stage-window[data-mode="page"].is-page-loading .page-frame { opacity:.3; }
    /* wide screens: in the page chapter the caption moves into a rail beside the page instead of over it */
    @media(min-width:1100px) {
      .hero-frame { transition:margin-left .7s var(--ease-out); }
      .stage-window[data-mode="page"] .hero-frame { margin-left:360px; border-left:1px solid var(--line); }
      .stage-window[data-mode="page"] .beat-card { left:0; top:52px; bottom:0; width:360px; display:flex; flex-direction:column; justify-content:center; padding:2rem 2rem 2.25rem; border:0; border-radius:0; background:transparent; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
      .stage-window[data-mode="page"] .beat-title { font-size:1.75rem; line-height:1.15; letter-spacing:-.03em; }
      .stage-window[data-mode="page"] .beat-body { margin-top:.85rem; font-size:.9375rem; line-height:1.65; }
      .stage-window[data-mode="page"] .beat-rail { order:3; margin:1.75rem 0 0; }
      .stage-window[data-mode="page"] .beat-meta { white-space:normal; }
    }

    /* beat card — glass caption anchored bottom-left inside the window */
    .beat-card { position:absolute; left:1.25rem; bottom:1.25rem; z-index:3; width:min(400px,calc(100% - 2.5rem)); padding:1.1rem 1.25rem 1.25rem; border-radius:14px; border:1px solid var(--line-hi); background:rgba(var(--bg-rgb),.72); backdrop-filter:blur(16px) saturate(1.2); -webkit-backdrop-filter:blur(16px) saturate(1.2); box-shadow:0 20px 50px rgba(var(--shadow-rgb),calc(.45 * var(--shadow-k))); }
    .beat-rail { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:.35rem; margin-bottom:1rem; }
    .beat-tick { position:relative; padding:.7rem 0 .1rem; border:0; background:none; color:var(--text-3); font-family:var(--font-mono); font-size:.625rem; font-weight:500; letter-spacing:.12em; text-transform:uppercase; text-align:left; cursor:pointer; transition:color .2s var(--ease-out); }
    .beat-tick::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; border-radius:2px; background:rgba(var(--fg-rgb),.14); }
    .beat-tick::after { content:''; position:absolute; top:0; left:0; height:2px; width:var(--fill,0%); border-radius:2px; background:var(--accent); }
    .beat-tick[aria-pressed="true"] { color:var(--text); }
    .beat-tick:hover { color:var(--text); }
    .beat-meta { display:flex; align-items:center; gap:.65rem; margin-bottom:.55rem; font-family:var(--font-mono); font-size:.5625rem; letter-spacing:.12em; text-transform:uppercase; color:var(--text-3); white-space:nowrap; overflow:hidden; }
    .beat-meta #proof-meta { overflow:hidden; text-overflow:ellipsis; }
    .proof-live { display:inline-flex; align-items:center; gap:.4rem; color:var(--accent-text); font-weight:600; }
    .proof-live::before { content:''; width:5px; height:5px; border-radius:50%; background:currentColor; animation:blink 2.4s ease-in-out infinite; }
    @keyframes blink { 50% { opacity:.3; } }
    .beat-title { font-family:var(--font-grot); font-size:1.25rem; font-weight:500; letter-spacing:-.02em; line-height:1.25; color:var(--text); }
    .beat-body { margin-top:.45rem; font-size:.8125rem; line-height:1.6; color:var(--text-2); text-wrap:pretty; }
    .beat-card.is-swapping .beat-title, .beat-card.is-swapping .beat-body { animation:beatIn .5s var(--ease-out); }
    @keyframes beatIn { from { opacity:0; transform:translateY(6px); } }

    /* ══════════════════════════════════════
       RECEIPTS — hairline stat row
    ══════════════════════════════════════ */
    .receipts { padding:5rem 0 1rem; }
    .receipts-row { display:grid; grid-template-columns:repeat(5,1fr); }
    .receipt { padding:0 1.5rem; border-left:1px solid var(--line-hi); }
    .receipt:first-child { border-left:0; padding-left:0; }
    .receipt b { display:block; font-family:var(--font-grot); font-size:clamp(2rem,3.4vw,3rem); font-weight:500; letter-spacing:-.04em; line-height:1; color:var(--text); }
    .receipt span { display:block; margin-top:.6rem; font-size:.8125rem; color:var(--text-3); }

    /* ══════════════════════════════════════
       SECTION HEADS
    ══════════════════════════════════════ */
    #everyday, #types, #features, #palette, #quickstart { padding:8rem 0 0; }
    .section-head { max-width:760px; margin-bottom:3.5rem; }
    .section-head-row { max-width:none; display:flex; align-items:flex-end; justify-content:space-between; gap:3rem; }
    .section-head-row .section-body { max-width:380px; margin:0 0 .5rem; }
    .section-label { display:flex; align-items:center; gap:.75rem; margin-bottom:1.25rem; font-family:var(--font-mono); font-size:.6875rem; font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:var(--text-3); }
    .section-label span:first-child { color:var(--accent-text); }
    .section-label::after { content:''; width:3rem; height:1px; background:var(--line-hi); }
    .section-heading { font-family:var(--font-grot); font-size:clamp(2.25rem,4.6vw,4rem); font-weight:500; letter-spacing:-.04em; line-height:1.02; color:var(--text); text-wrap:balance; }
    .section-heading em, .cta-h em { font-family:var(--font-display); font-style:italic; font-weight:400; letter-spacing:-.025em; color:var(--accent); }
    html[lang^="zh"] .section-heading { letter-spacing:-.01em; line-height:1.15; }
    .section-body { margin-top:1.25rem; max-width:560px; font-size:1rem; line-height:1.7; color:var(--text-2); text-wrap:pretty; }

    /* ══════════════════════════════════════
       EVERYDAY — life artifacts on lightbox plates
    ══════════════════════════════════════ */
    .life-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1.25rem; }
    .life-card { display:flex; flex-direction:column; gap:.75rem; min-width:0; color:var(--text); text-decoration:none; }
    .life-plate { position:relative; display:block; aspect-ratio:16 / 11; border-radius:16px; overflow:hidden; background:#f4f6f5; border:1px solid var(--line-hi); box-shadow:0 30px 70px -40px rgba(var(--shadow-rgb),calc(.7 * var(--shadow-k))); transition:transform .5s var(--ease-out),box-shadow .5s var(--ease-out),border-color .3s var(--ease-out); }
    .life-plate img { width:100%; height:100%; display:block; padding:.85rem; object-fit:contain; object-position:center; background:#fff; transition:transform 1.2s var(--ease-out); }
    .life-card:hover .life-plate { transform:translateY(-4px); border-color:rgba(var(--accent-rgb),.5); box-shadow:0 40px 90px -40px rgba(var(--accent-rgb),.45); }
    .life-card:hover .life-plate img { transform:scale(1.04); }
    .life-meta { display:flex; align-items:center; gap:.5rem; margin-top:.35rem; font-family:var(--font-mono); font-size:.6875rem; letter-spacing:.06em; color:var(--text-3); }
    .life-lang { padding:.15rem .45rem; border-radius:999px; border:1px solid var(--line-hi); color:var(--text-2); }
    .life-kind { color:var(--accent-text); }
    .life-open { margin-left:auto; color:var(--text-3); transition:color .2s var(--ease-out),transform .2s var(--ease-out); }
    .life-card:hover .life-open { color:var(--accent); transform:translate(2px,-2px); }
    .life-q { font-family:var(--font-grot); font-size:1.125rem; font-weight:500; letter-spacing:-.02em; line-height:1.3; text-wrap:balance; }
    .life-title { font-size:.8125rem; color:var(--text-3); }
    .life-note { margin-top:1.75rem; font-size:.8125rem; color:var(--text-3); }
    @media(max-width:1100px) { .life-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
    @media(max-width:560px) { .life-grid { grid-template-columns:1fr; } }
    @media(prefers-reduced-motion:reduce) { .life-card:hover .life-plate, .life-card:hover .life-plate img { transform:none; } }

    /* ANSWERS — whole pages on tall plates; hover scrolls the page through its plate */
    #answers { padding:8rem 0 0; }
    .answer-traits { list-style:none; display:flex; flex-wrap:wrap; gap:.5rem; margin:-1.5rem 0 3rem; }
    .answer-traits li { padding:.4rem .75rem; border-radius:999px; border:1px solid var(--line-hi); background:rgba(var(--fg-rgb),.03); font-size:.8125rem; color:var(--text-2); }
    .answer-traits li::before { content:''; display:inline-block; width:6px; height:6px; margin-right:.5rem; border-radius:50%; background:var(--accent); vertical-align:.1em; }
    .page-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1.25rem; }
    .page-card { display:flex; flex-direction:column; gap:.75rem; min-width:0; color:var(--text); text-decoration:none; }
    .page-plate { position:relative; display:block; aspect-ratio:4 / 5; container-type:size; border-radius:16px; overflow:hidden; border:1px solid var(--line-hi); background:var(--surface); box-shadow:0 30px 70px -40px rgba(var(--shadow-rgb),calc(.7 * var(--shadow-k))); transition:transform .5s var(--ease-out),box-shadow .5s var(--ease-out),border-color .3s var(--ease-out); }
    .page-plate::after { content:''; position:absolute; inset:auto 0 0; height:28%; pointer-events:none; background:linear-gradient(transparent,rgba(var(--shadow-rgb),calc(.18 * var(--shadow-k)))); transition:opacity .4s var(--ease-out); }
    .page-plate img { display:block; width:100%; height:auto; transition:transform 1.2s var(--ease-out); }
    .page-card:hover .page-plate { transform:translateY(-4px); border-color:rgba(var(--accent-rgb),.5); box-shadow:0 40px 90px -40px rgba(var(--accent-rgb),.45); }
    .page-card:hover .page-plate img, .page-card:focus-visible .page-plate img { transform:translateY(calc(-100% + 100cqh)); transition:transform 7s cubic-bezier(.45,0,.4,1) .15s; }
    .page-card:hover .page-plate::after { opacity:0; }
    .page-card:hover .life-open { color:var(--accent); transform:translate(2px,-2px); }
    @media(max-width:1100px) { .page-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
    @media(max-width:560px) { .page-grid { grid-template-columns:1fr; } .page-plate { aspect-ratio:4 / 4; } }
    @media(prefers-reduced-motion:reduce) { .page-card:hover .page-plate, .page-card:hover .page-plate img, .page-card:focus-visible .page-plate img { transform:none; } }

    /* ══════════════════════════════════════
       TYPES — index list + lightbox preview
    ══════════════════════════════════════ */
    .types-index { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:4rem; align-items:start; }
    .types-list { list-style:none; border-top:1px solid var(--line-hi); }
    .type-item { border-bottom:1px solid var(--line-hi); }
    .type-group { padding:1.6rem 0 .6rem; border-bottom:1px solid var(--line-hi); font-family:var(--font-mono); font-size:.625rem; font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:var(--text-3); }
    .type-group:first-child { padding-top:.9rem; }
    .type-item button { width:100%; display:flex; align-items:baseline; gap:1.25rem; padding:.95rem 0; border:0; background:none; color:var(--text-3); text-align:left; cursor:pointer; transition:color .3s var(--ease-out); }
    .type-item button:hover, .type-item.is-active button { color:var(--text); }
    .type-no { font-family:var(--font-mono); font-size:.6875rem; letter-spacing:.1em; transition:color .3s var(--ease-out); }
    .type-item.is-active .type-no { color:var(--accent-text); }
    .type-name { display:flex; flex-direction:column; gap:.3rem; font-family:var(--font-grot); font-size:clamp(1.25rem,1.9vw,1.7rem); font-weight:500; letter-spacing:-.03em; line-height:1.1; text-wrap:balance; }
    .type-kind { font-family:var(--font-mono); font-size:.6875rem; font-weight:500; letter-spacing:.1em; text-transform:uppercase; color:var(--text-3); }
    .type-item.is-active .type-kind { color:var(--accent-text); }
    .type-detail { display:grid; grid-template-rows:0fr; transition:grid-template-rows .45s var(--ease-out); }
    .type-detail > div { min-height:0; overflow:hidden; padding-left:calc(1.25rem + 2.4ch); }
    .type-item.is-active .type-detail { grid-template-rows:1fr; }
    .type-detail p { font-size:.9375rem; line-height:1.65; color:var(--text-2); text-wrap:pretty; }
    .type-item.is-active .type-detail > div { padding-bottom:1.5rem; }
    .type-uses { list-style:none; display:flex; flex-wrap:wrap; gap:.4rem; margin-top:1rem; }
    .type-uses li { padding:.3rem .6rem; border-radius:7px; border:1px solid var(--line); background:rgba(var(--fg-rgb),.04); font-size:.75rem; color:var(--text-2); }

    .type-preview { position:sticky; top:calc(var(--nav-h) + 2rem); }
    .type-plate { position:relative; aspect-ratio:16 / 11; border-radius:16px; overflow:hidden; background:#f4f6f5; border:1px solid var(--line-hi); box-shadow:0 40px 100px -30px rgba(var(--shadow-rgb),calc(.8 * var(--shadow-k))), 0 0 0 8px rgba(var(--fg-rgb),.025); }
    .type-plate img { position:absolute; inset:0; width:100%; height:100%; padding:1.25rem; object-fit:contain; object-position:center; opacity:0; transform:scale(1.03); transition:opacity .6s var(--ease-out),transform 1.2s var(--ease-out); }
    .type-plate img.is-active { opacity:1; transform:none; }
    .type-more { display:grid; grid-template-columns:1fr auto; align-items:center; gap:.2rem 1rem; margin-top:1rem; padding:1.1rem 1.25rem; border:1px solid var(--line-hi); border-radius:14px; text-decoration:none; color:var(--text); transition:border-color .25s var(--ease-out),background .25s var(--ease-out); }
    .type-more:hover { border-color:rgba(var(--accent-rgb),.55); background:var(--accent-soft); }
    .type-more > span:first-child { font-family:var(--font-grot); font-size:1rem; font-weight:500; letter-spacing:-.01em; }
    .type-more-sub { grid-column:1; font-size:.75rem; color:var(--text-3); }
    .type-more-arrow { grid-column:2; grid-row:1 / 3; width:38px; height:38px; display:flex; align-items:center; justify-content:center; border-radius:50%; border:1px solid var(--line-hi); transition:background .25s var(--ease-out),border-color .25s var(--ease-out),transform .25s var(--ease-out); }
    .type-more:hover .type-more-arrow { background:var(--accent); border-color:var(--accent); transform:rotate(45deg); }

    /* ══════════════════════════════════════
       TRUST — four gates beside a replayed finalize run.
       Everything is visible by default; the script arms the replay (.is-armed) only while the
       section is still below the fold, then plays it once (.is-run) on arrival.
    ══════════════════════════════════════ */
    #trust { padding:8rem 0 0; }
    .trust-layout { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:3.5rem; align-items:start; }
    .gates { position:relative; list-style:none; display:flex; flex-direction:column; }
    .gates::before { content:''; position:absolute; left:19px; top:28px; bottom:28px; width:1px; background:var(--line-hi); }
    .gates::after { content:''; position:absolute; left:19px; top:28px; width:1px; height:calc(100% - 56px); background:linear-gradient(var(--accent),var(--signal)); transform-origin:top; box-shadow:0 0 12px rgba(var(--accent-rgb),.6); }
    .gate { position:relative; display:grid; grid-template-columns:40px minmax(0,1fr) auto; gap:1rem; align-items:start; padding:1.15rem 0; }
    .gate-no { position:relative; z-index:1; width:40px; height:40px; display:flex; align-items:center; justify-content:center; border-radius:50%; border:1px solid var(--line-hi); background:var(--bg); font-family:var(--font-mono); font-size:.6875rem; color:var(--accent-text); transition:border-color .4s var(--ease-out),box-shadow .4s var(--ease-out); }
    .gate h3 { display:flex; flex-wrap:wrap; align-items:baseline; gap:.3rem .65rem; margin:.45rem 0 .4rem; font-family:var(--font-grot); font-size:1.125rem; font-weight:500; letter-spacing:-.015em; color:var(--text); }
    .gate h3 code { padding:.12rem .45rem; border-radius:6px; background:rgba(var(--fg-rgb),.07); font-family:var(--font-mono); font-size:.75rem; font-weight:500; color:var(--accent-text); }
    .gate p { font-size:.875rem; line-height:1.65; color:var(--text-2); text-wrap:pretty; }
    .gate-pass { margin-top:.55rem; padding:.2rem .5rem; border-radius:6px; border:1px solid rgba(var(--signal-rgb),.45); background:rgba(var(--signal-rgb),.1); font-family:var(--font-mono); font-size:.5625rem; font-weight:600; letter-spacing:.14em; color:var(--signal-text); }
    .run { position:sticky; top:calc(var(--nav-h) + 2rem); border-radius:16px; overflow:hidden; border:1px solid var(--line-hi); background:var(--surface); box-shadow:0 40px 100px -40px rgba(var(--accent-rgb),.3); }
    .run-bar { display:flex; align-items:center; gap:1rem; height:44px; padding:0 1rem; border-bottom:1px solid var(--line); }
    .run-title { font-family:var(--font-mono); font-size:.6875rem; letter-spacing:.06em; color:var(--text-3); }
    .run-body { padding:1.25rem 1.4rem 1.1rem; font-family:var(--font-mono); font-size:.78rem; line-height:1.9; color:var(--text-2); overflow-wrap:anywhere; }
    .t-cmd { color:var(--text); } .t-cmd > span { color:var(--accent-text); }
    .t-ok { color:var(--signal-text); font-weight:600; }
    .t-line b { font-weight:500; color:var(--signal-text); }
    .receipt-sum { padding:1rem 1.4rem 1.4rem; border-top:1px dashed var(--line-hi); background:rgba(var(--fg-rgb),.02); }
    .sum-head { margin-bottom:.75rem; font-family:var(--font-mono); font-size:.5625rem; font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:var(--text-3); }
    .sum-row { display:grid; grid-template-columns:72px minmax(0,1fr); gap:1rem; padding:.5rem 0; border-top:1px solid var(--line); }
    .sum-row:first-of-type { border-top:0; }
    .sum-k { font-family:var(--font-mono); font-size:.6875rem; color:var(--text-3); padding-top:.2rem; }
    .sum-v { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem .6rem; font-size:.75rem; color:var(--text-2); }
    .sum-v > b { font-family:var(--font-grot); font-size:1.125rem; font-weight:500; color:var(--text); }
    .sum-v code { font-family:var(--font-mono); font-size:.75rem; color:var(--text); }
    .sum-v small { width:100%; font-family:var(--font-mono); font-size:.6875rem; color:var(--text-3); }
    .chips { display:flex; flex-wrap:wrap; gap:.35rem; }
    .chips i { font-style:normal; padding:.15rem .45rem; border-radius:6px; border:1px solid var(--line); background:var(--bg-2); font-family:var(--font-mono); font-size:.625rem; color:var(--text-2); }
    .chips i::before { content:'✓ '; color:var(--signal-text); }
    /* the replay */
    .trust-layout.is-armed .t-line, .trust-layout.is-armed .chips i, .trust-layout.is-armed .gate-pass { opacity:0; }
    .trust-layout.is-armed .gates::after { transform:scaleY(0); }
    .trust-layout.is-run .t-line, .trust-layout.is-run .chips i { animation:runIn .45s var(--ease-out) var(--d,0s) both; }
    .trust-layout.is-run .gate-pass { animation:passIn .5s cubic-bezier(.3,1.6,.5,1) var(--d,0s) both; }
    .trust-layout.is-run .gate-no { animation:gateLit .8s var(--ease-out) var(--d,0s) both; }
    @media(min-width:901px) { .trust-layout.is-run .t-cmd { animation:typeIn 1.3s steps(48,end) .1s both; } }
    .trust-layout.is-run .gates::after { animation:gateLine 2.4s cubic-bezier(.5,0,.3,1) 1.3s both; }
    @keyframes runIn { from { opacity:0; transform:translateY(4px); } }
    @keyframes passIn { from { opacity:0; transform:scale(.6); } }
    @keyframes gateLit { 40% { border-color:var(--accent); box-shadow:0 0 0 6px rgba(var(--accent-rgb),.16); } to { border-color:rgba(var(--accent-rgb),.6); } }
    @keyframes typeIn { from { clip-path:inset(0 100% 0 0); } to { clip-path:inset(0 0 0 0); } }
    @keyframes gateLine { from { transform:scaleY(0); } }
    @media(max-width:900px) { .trust-layout { grid-template-columns:1fr; gap:2rem; } .run { position:relative; top:auto; } }
    .feature p code { font-family:var(--font-mono); font-size:.85em; padding:.05em .35em; border-radius:5px; background:rgba(var(--fg-rgb),.07); }

    /* ══════════════════════════════════════
       FEATURES — compare centerpiece + hairline grid
    ══════════════════════════════════════ */
    .features-grid { display:grid; grid-template-columns:repeat(12,1fr); gap:1px; background:var(--line-hi); border:1px solid var(--line-hi); border-radius:20px; overflow:hidden; }
    .feature { position:relative; background:var(--bg-2); padding:2rem; min-width:0; transition:background .3s var(--ease-out); }
    .feature:hover { background:var(--surface); }
    .feature h3 { font-family:var(--font-grot); font-size:1.25rem; font-weight:500; letter-spacing:-.02em; color:var(--text); margin-bottom:.6rem; }
    .feature p { font-size:.875rem; line-height:1.65; color:var(--text-2); text-wrap:pretty; }
    .feature-tag { display:inline-block; margin-top:1.25rem; padding:.3rem .65rem; border:1px solid var(--line-hi); border-radius:999px; font-family:var(--font-mono); font-size:.5625rem; font-weight:500; letter-spacing:.14em; color:var(--text-3); }
    .compare { grid-column:1 / 9; grid-row:1 / 3; padding:0; display:flex; flex-direction:column; }
    .export { grid-column:9 / 13; grid-row:1 / 3; display:flex; flex-direction:column; }
    .cell { grid-column:span 4; }

    .compare-stage { position:relative; aspect-ratio:14 / 9.6; overflow:hidden; background:var(--surface); cursor:ew-resize; }
    .compare-stage img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:top center; pointer-events:none; user-select:none; }
    .compare-light { clip-path:inset(0 calc(100% - var(--split)) 0 0); }
    .compare-handle { position:absolute; top:0; bottom:0; left:var(--split); width:2px; margin-left:-1px; background:var(--accent); box-shadow:0 0 24px rgba(var(--accent-rgb),.7); pointer-events:none; }
    .compare-handle i { position:absolute; top:50%; left:50%; width:40px; height:40px; margin:-20px 0 0 -20px; border-radius:50%; background:var(--accent); box-shadow:0 8px 24px rgba(var(--shadow-rgb),calc(.45 * var(--shadow-k))); }
    .compare-handle i::before, .compare-handle i::after { content:''; position:absolute; top:50%; width:0; height:0; margin-top:-5px; border:5px solid transparent; }
    .compare-handle i::before { left:7px; border-right-color:var(--on-accent); }
    .compare-handle i::after { right:7px; border-left-color:var(--on-accent); }
    .compare-tag { position:absolute; bottom:1rem; padding:.3rem .6rem; border-radius:6px; font-family:var(--font-mono); font-size:.5625rem; font-weight:600; letter-spacing:.16em; text-transform:uppercase; pointer-events:none; }
    .compare-tag-l { left:1rem; background:rgba(255,255,255,.85); color:#15181b; }
    .compare-tag-r { right:1rem; background:rgba(var(--bg-rgb),.75); color:var(--text); border:1px solid var(--line-hi); }
    .compare-range { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:ew-resize; -webkit-appearance:none; appearance:none; margin:0; }
    .compare-range:focus-visible + * , .compare-stage:has(.compare-range:focus-visible) { outline:2px solid var(--accent); outline-offset:-2px; }
    .compare .feature-body { padding:1.75rem 2rem 2rem; border-top:1px solid var(--line); }

    .export-shot { aspect-ratio:4 / 3; margin:-.25rem 0 1.5rem; border-radius:12px; overflow:hidden; border:1px solid var(--line-hi); background:var(--plate); }
    .export-shot img { width:100%; height:100%; display:block; object-fit:cover; object-position:top right; transition:transform .8s var(--ease-out); }
    .export:hover .export-shot img { transform:scale(1.04); }
    .formats { list-style:none; display:flex; flex-wrap:wrap; gap:.4rem; margin-top:auto; padding-top:1.5rem; }
    .formats li { padding:.35rem .6rem; border-radius:7px; background:rgba(var(--fg-rgb),.05); border:1px solid var(--line); font-family:var(--font-mono); font-size:.625rem; font-weight:500; letter-spacing:.08em; color:var(--text-2); }
    .cell-glyph { display:inline-flex; align-items:center; justify-content:center; min-width:42px; height:42px; padding:0 .6rem; margin-bottom:1.5rem; border-radius:11px; border:1px solid var(--line-hi); background:linear-gradient(180deg,rgba(var(--fg-rgb),.06),rgba(var(--fg-rgb),.01)); font-family:var(--font-mono); font-size:.8125rem; font-weight:600; color:var(--accent-text); }

    /* ══════════════════════════════════════
       PALETTE — glowing legend
    ══════════════════════════════════════ */
    .legend { display:grid; grid-template-columns:repeat(7,1fr); gap:1rem; }
    .legend-chip { display:flex; flex-direction:column; gap:.35rem; min-width:0; }
    .legend-node { display:flex; flex-direction:column; justify-content:center; gap:3px; height:64px; margin-bottom:.75rem; padding:0 .9rem; border-radius:10px; border:1.5px solid var(--node); background:color-mix(in srgb,var(--node) 9%,var(--surface)); box-shadow:0 0 0 0 transparent; transition:box-shadow .35s var(--ease-out),transform .35s var(--ease-out); font-family:var(--font-mono); }
    .legend-chip:hover .legend-node { transform:translateY(-3px); box-shadow:0 0 34px -4px color-mix(in srgb,var(--node) 70%,transparent); }
    .legend-node b { font-size:.75rem; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .legend-node i { font-style:normal; font-size:.625rem; color:var(--text-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .legend-label { font-family:var(--font-mono); font-size:.6875rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--node); }
    :root:not([data-theme="dark"]) .legend-label { color:color-mix(in srgb,var(--node) 70%,var(--text)); }
    .legend-use { font-size:.75rem; line-height:1.5; color:var(--text-3); }

    /* ══════════════════════════════════════
       QUICK START — terminal + steps + shortcut map
    ══════════════════════════════════════ */
    .qs-layout { display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:3rem; align-items:start; }
    .terminal { border-radius:16px; overflow:hidden; border:1px solid var(--line-hi); background:var(--surface); box-shadow:0 40px 100px -40px rgba(var(--accent-rgb),.25); }
    .terminal-bar { display:flex; align-items:center; padding:.5rem; border-bottom:1px solid var(--line); background:var(--surface); overflow-x:auto; scrollbar-width:none; }
    .agent-tabs { display:flex; gap:.25rem; }
    .agent-tabs button { flex:none; min-height:34px; padding:0 .85rem; border-radius:8px; border:1px solid transparent; background:none; color:var(--text-3); font-family:var(--font-body); font-size:.8125rem; font-weight:500; cursor:pointer; transition:color .2s var(--ease-out),background .2s var(--ease-out); }
    .agent-tabs button:hover { color:var(--text); }
    .agent-tabs button[aria-selected="true"] { color:var(--text); background:rgba(var(--fg-rgb),.08); border-color:var(--line-hi); }
    .terminal-body { padding:1.5rem 1.6rem 1.75rem; font-family:var(--font-mono); font-size:.8125rem; line-height:1.85; }
    .install-cmt { color:var(--text-3); }
    .install-cmd { color:var(--text); overflow-wrap:anywhere; }
    .install-cmd > span { color:var(--accent-text); }
    .install-cmd code { font-family:inherit; }
    .install-line { display:flex; align-items:flex-start; gap:1rem; justify-content:space-between; margin-bottom:1.1rem; }
    .install-line .cmd-copy { flex:none; margin-top:.1rem; }
    .install-cmd + .install-cmt { margin-top:1.1rem; }
    .install-ask { color:var(--signal-text); }
    .steps { list-style:none; display:flex; flex-direction:column; gap:2rem; padding-top:.5rem; }
    .step { display:grid; grid-template-columns:40px 1fr; gap:1.1rem; }
    .step-num { width:40px; height:40px; display:flex; align-items:center; justify-content:center; border-radius:50%; border:1px solid var(--line-hi); font-family:var(--font-display); font-style:italic; font-size:1.25rem; color:var(--accent-text); }
    .step h3 { font-family:var(--font-grot); font-size:1.125rem; font-weight:500; letter-spacing:-.015em; color:var(--text); margin:.35rem 0 .4rem; }
    .step p { font-size:.875rem; line-height:1.65; color:var(--text-2); text-wrap:pretty; }
    .step a { color:var(--accent-text); text-decoration:none; border-bottom:1px solid rgba(var(--accent-rgb),.4); }
    .step a:hover { border-bottom-color:var(--accent); }
    .step code { font-family:var(--font-mono); font-size:.85em; padding:.1em .4em; border-radius:5px; background:rgba(var(--fg-rgb),.07); }

    .guide-discovery { margin-top:2rem; line-height:1.7; }
    .guide-discovery a { color:var(--text); text-decoration:underline; text-underline-offset:4px; }
    .shortcut-box { margin-top:3rem; padding:1.5rem 1.75rem; border:1px solid var(--line-hi); border-radius:16px; background:var(--bg-2); }
    .shortcut-title { margin-bottom:1.1rem; font-family:var(--font-mono); font-size:.625rem; font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:var(--text-3); }
    .shortcut-rows { display:grid; grid-template-columns:repeat(4,1fr); gap:.6rem 2rem; }
    .shortcut-row { display:flex; align-items:center; justify-content:space-between; gap:.75rem; min-width:0; font-size:.8125rem; }
    .shortcut-row span { color:var(--text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    kbd { flex:none; min-width:26px; padding:3px 7px; border-radius:6px; border:1px solid var(--line-hi); border-bottom-width:2px; background:var(--surface-2); color:var(--text); font-family:var(--font-mono); font-size:.6875rem; text-align:center; }

    /* ══════════════════════════════════════
       CLOSING CTA
    ══════════════════════════════════════ */
    #cta { padding:11rem 0 9rem; overflow:hidden; text-align:center; isolation:isolate; }
    .cta-glow { position:absolute; inset:0; z-index:-1; pointer-events:none; background:radial-gradient(ellipse 50% 60% at 50% 100%, rgba(var(--accent-rgb),.25), transparent 70%); }
    .cta-glow::before { content:''; position:absolute; inset:0; background-image:linear-gradient(rgba(var(--fg-rgb),.04) 1px,transparent 1px),linear-gradient(90deg,rgba(var(--fg-rgb),.04) 1px,transparent 1px); background-size:64px 64px; -webkit-mask-image:radial-gradient(ellipse 60% 70% at 50% 100%,#000,transparent 75%); mask-image:radial-gradient(ellipse 60% 70% at 50% 100%,#000,transparent 75%); }
    .cta-inner { display:flex; flex-direction:column; align-items:center; }
    .cta-h { font-family:var(--font-grot); font-size:clamp(2.75rem,7vw,6.25rem); font-weight:500; letter-spacing:-.045em; line-height:1; color:var(--text); text-wrap:balance; }
    html[lang^="zh"] .cta-h { letter-spacing:-.015em; line-height:1.12; }
    .cta-sub { max-width:520px; margin-top:1.75rem; font-size:1.0625rem; line-height:1.65; color:var(--text-2); text-wrap:pretty; }
    .cta-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:.75rem; margin-top:2.5rem; }
    .cta-prompt { display:flex; align-items:center; gap:.6rem; max-width:min(720px,100%); min-height:52px; margin-top:2.25rem; padding:.75rem 1.2rem; border:1px solid var(--line-hi); border-radius:14px; background:rgba(var(--bg-rgb),.7); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); font-family:var(--font-mono); font-size:.8125rem; line-height:1.5; color:var(--text); text-align:left; box-shadow:0 20px 60px -30px rgba(var(--accent-rgb),.5); }
    .cta-mark { color:var(--accent-text); font-weight:600; }
    .cta-caret { flex:none; width:7px; height:1.1em; margin-left:-.35rem; background:var(--accent); animation:caret 1s steps(1) infinite; }
    @keyframes caret { 50% { opacity:0; } }

    /* FOOTER */
    footer { border-top:1px solid var(--line); padding:2.5rem 2rem; }
    .footer-inner { max-width:var(--shell); margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:2rem; flex-wrap:wrap; }
    .footer-left { display:flex; align-items:center; gap:1.5rem; }
    .footer-meta { font-family:var(--font-mono); font-size:.625rem; letter-spacing:.04em; line-height:1.7; color:var(--text-3); }
    .footer-links { display:flex; flex-wrap:wrap; gap:1.5rem; }
    .footer-links a { font-family:var(--font-mono); font-size:.625rem; letter-spacing:.12em; text-transform:uppercase; color:var(--text-3); text-decoration:none; transition:color .18s var(--ease-out); }
    .footer-links a:hover { color:var(--text); }

    /* DEMO lightbox */
    html.demo-lock { overflow:hidden; }
    .demo-dialog { margin:auto; padding:0; width:min(1080px,92vw); max-width:92vw; border:0; background:transparent; opacity:0; transform:scale(.97); transition:opacity .18s var(--ease-out),transform .18s var(--ease-out); }
    .demo-dialog[open] { opacity:1; transform:scale(1); }
    @starting-style { .demo-dialog[open] { opacity:0; transform:scale(.97); } }
    .demo-dialog::backdrop { background:rgba(var(--bg-rgb),.78); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }
    .demo-frame { overflow:hidden; background:var(--plate); border:1px solid var(--line-hi); border-radius:16px; box-shadow:0 40px 120px rgba(var(--shadow-rgb),calc(.6 * var(--shadow-k))); }
    .demo-frame-bar { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.7rem .875rem .7rem 1.25rem; border-bottom:1px solid var(--line); }
    .demo-title { font-family:var(--font-mono); font-size:.625rem; font-weight:500; letter-spacing:.18em; text-transform:uppercase; color:var(--text-2); }
    .demo-close { width:32px; height:32px; display:flex; align-items:center; justify-content:center; border:1px solid var(--line-hi); border-radius:8px; background:transparent; color:var(--text-2); font-size:1rem; line-height:1; cursor:pointer; }
    .demo-close:hover { color:var(--text); border-color:rgba(var(--fg-rgb),.5); }
    .demo-video-box { aspect-ratio:16 / 9; background:#000; }
    .demo-video-box video { width:100%; height:100%; display:block; }

    /* Scroll-driven arrival: CSS only and transform only, so nothing is ever hidden and browsers
       without view timelines simply show the page as it is. */
    @supports (animation-timeline: view()) {
      @media (prefers-reduced-motion: no-preference) {
        .section-head, .answer-traits, .page-card, .life-card, .types-list, .type-preview, .gates, .run, .features-grid, .legend-chip, .terminal, .steps, .shortcut-box, .receipt {
          animation:arrive linear both; animation-timeline:view(); animation-range:entry 0% entry 60%;
        }
        .page-card:nth-child(2), .life-card:nth-child(2), .legend-chip:nth-child(2), .receipt:nth-child(2) { animation-range:entry 5% entry 68%; }
        .page-card:nth-child(3), .life-card:nth-child(3), .legend-chip:nth-child(3), .receipt:nth-child(3) { animation-range:entry 10% entry 76%; }
        .page-card:nth-child(4), .life-card:nth-child(4), .legend-chip:nth-child(4), .receipt:nth-child(4) { animation-range:entry 15% entry 84%; }
        @keyframes arrive { from { transform:translateY(56px) scale(.97); } }
      }
    }

    @media(prefers-reduced-motion:reduce) {
      html { scroll-behavior:auto; }
      .fade-up { opacity:1!important; transform:none!important; transition:none!important; filter:none!important; }
      .pulse-dot,.proof-live::before { animation:none!important; }
        .stage-window { transform:none!important; animation:none; }
      .hero h1 .l, .hero-horizon, .hero-horizon::after { animation:none; }
      .hero-spot { display:none; }
      .type-plate img, .type-detail, .demo-dialog { transition:none; }
      .btn:hover, .legend-chip:hover .legend-node, .export:hover .export-shot img { transform:none; }
      .beat-card.is-swapping .beat-title, .beat-card.is-swapping .beat-body, .window-address b.is-flash { animation:none; }
    }

    /* ══════════════════════════════════════
       RESPONSIVE
    ══════════════════════════════════════ */
    @media(max-width:1100px) {
      .window-address { display:none; }
      .proof-rail { flex:1; }
      .features-grid { grid-template-columns:repeat(6,1fr); }
      .compare { grid-column:1 / -1; grid-row:auto; }
      .export { grid-column:1 / -1; grid-row:auto; display:grid; grid-template-columns:1fr 1fr; column-gap:2rem; }
      .export-shot { grid-row:1 / 5; margin:0; }
      .formats { padding-top:1rem; }
      .cell { grid-column:span 3; }
      .legend { grid-template-columns:repeat(4,1fr); row-gap:2rem; }
      .shortcut-rows { grid-template-columns:repeat(3,1fr); }
    }
    @media(max-width:900px) {
      .types-index { grid-template-columns:1fr; gap:2rem; }
      .type-preview { position:relative; top:0; order:-1; }
      .qs-layout { grid-template-columns:1fr; }
      .receipts-row { grid-template-columns:repeat(3,1fr); row-gap:2rem; }
      .receipt:nth-child(4) { border-left:0; padding-left:0; }
      .section-head-row { flex-direction:column; align-items:flex-start; gap:0; }
      .section-head-row .section-body { margin-top:1.25rem; }
    }

    @media(max-width:960px) { :root { --nav-h:104px; } }

    @media(max-width:640px) {
      .container { padding:0 1.25rem; }
      .hero { min-height:0; padding:calc(var(--nav-h) + 3rem) 1.25rem 3rem; }
      .hero-copy { min-width:0; width:100%; }
      .hero-eyebrow { max-width:100%; white-space:normal; margin-bottom:1.5rem; }
      .eyebrow-tag { flex-shrink:0; }
      .hero-works { display:none; }
      .hero-stars { padding-left:0; border-left:0; }
      .hero h1 { font-size:clamp(2.2rem,9.4vw,3.2rem); }
      .hero-sub { font-size:.9375rem; margin-top:1.25rem; }
      .hero-actions { flex-direction:column; align-items:stretch; width:100%; margin-top:2rem; }
      .hero-actions .btn { width:100%; }
      .cmd-chip { justify-content:space-between; font-size:.75rem; }
      .cmd-chip code { min-width:0; white-space:normal; overflow-wrap:anywhere; }
      .cmd-copy { flex-shrink:0; }
      .stage { height:320svh; margin-top:0; }
      .stage-pin { padding:calc(var(--nav-h) + .5rem) .75rem .75rem; align-items:flex-start; }
      .stage-window { height:auto; max-height:100%; border-radius:14px; }
      .hero-frame { flex:none; aspect-ratio:1 / .74; }
      .window-bar { height:48px; padding:0 .4rem; gap:.4rem; }
      .window-dots { display:none; }
      .spec-card { padding:0 .6rem; font-size:.75rem; }
      .spec-idx { display:none; }
      .proof-open > span:first-child { display:none; }
      .proof-open { padding:0 .7rem; }
      .beat-card { position:relative; left:auto; bottom:auto; width:auto; margin:0; padding:.9rem 1rem 1rem; border:0; border-top:1px solid var(--line); border-radius:0; box-shadow:none; background:rgba(var(--bg-rgb),.95); }
      .beat-rail { margin-bottom:.75rem; }
      .beat-title { font-size:1.0625rem; }
      .beat-body { font-size:.75rem; }
      .beat-meta { display:none; }
      .receipts { padding-top:3.5rem; }
      .receipts-row { grid-template-columns:1fr 1fr; }
      .receipt { padding:0 1rem; }
      .receipt:nth-child(odd) { border-left:0; padding-left:0; }
      .receipt:nth-child(4) { border-left:1px solid var(--line-hi); padding-left:1rem; }
      #everyday, #types, #features, #palette, #quickstart { padding-top:5.5rem; }
      .section-head { margin-bottom:2.25rem; }
      .features-grid { grid-template-columns:1fr; border-radius:16px; }
      .compare, .export, .cell { grid-column:1 / -1; }
      .export { display:flex; }
      .export-shot { margin:0 0 1.5rem; }
      .feature { padding:1.5rem; }
      .legend { grid-template-columns:repeat(2,1fr); }
      .terminal-body { padding:1.25rem; font-size:.75rem; }
      .shortcut-rows { grid-template-columns:1fr 1fr; gap:.6rem 1.25rem; }
      .shortcut-row span { white-space:normal; }
      #cta { padding:7rem 0 6rem; }
      .cta-actions { flex-direction:column; width:100%; }
      .cta-actions .btn { width:100%; }
      footer { padding:2rem 1.25rem; }
      .footer-left { flex-direction:column; align-items:flex-start; gap:1rem; }
    }