/* jietuba — static site
   Palette: ink + selection blue + highlighter yellow, on cool neutrals.
   Fonts: system only (Segoe UI / PingFang / YaHei + Cascadia Mono) — fast and reachable everywhere. */

:root {
  --page-bg: #f5f6f8;
  --page-surface: #ffffff;
  --page-ink: #0d0e11;
  --page-muted: #5a606d;
  --page-faint: #8a909c;
  --page-line: #dde0e6;
  --page-doc: #e6e9ee;
  --page-blue: #1f5bff;
  --page-blue-soft: rgba(31, 91, 255, .1);
  --page-mark: #ffe04a;
  --page-band-bg: #0f1115;
  --page-band-ink: #eceef2;
  --page-band-muted: #9aa1ae;
  --page-band-line: #262a33;
  --page-sans: "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --page-display: "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --page-mono: "Cascadia Mono", "Cascadia Code", "JetBrains Mono", Consolas, "SF Mono", ui-monospace, monospace;
  --wrap: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #0c0d10;
    --page-surface: #15171c;
    --page-ink: #eef0f4;
    --page-muted: #a1a7b3;
    --page-faint: #6f7682;
    --page-line: #262a33;
    --page-doc: #262a33;
    --page-blue: #5b86ff;
    --page-blue-soft: rgba(91, 134, 255, .14);
    --page-band-bg: #15171c;
  }
  .brand img { filter: invert(1); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--page-ink);
  font: 16px/1.65 var(--page-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; }
a { color: inherit; }
code { font-family: var(--page-mono); font-size: .88em; background: var(--page-blue-soft); padding: .08em .35em; border-radius: 3px; }
.mono { font-family: var(--page-mono); }
.sprite { position: absolute; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--page-bg); border-bottom: 1px solid var(--page-line); }
.top .wrap { display: flex; align-items: center; gap: 32px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; text-decoration: none; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--page-muted); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--page-ink); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--page-line); border-radius: 6px; overflow: hidden; }
.lang button { font: 600 12px var(--page-mono); padding: 6px 10px; border: 0; background: transparent; color: var(--page-muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--page-ink); color: var(--page-bg); }
.gh { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; color: var(--page-ink); }
.gh:hover { background: var(--page-line); }
.gh .i { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.hero { padding: 80px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.hero-grid > * { min-width: 0; }
h1 {
  font-family: var(--page-display);
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 800;
  margin: 0 0 24px;
}
html[data-lang="zh"] h1 { letter-spacing: -.01em; line-height: 1.15; }
.lede { font-size: clamp(1rem, 1.25vw, 1.125rem); color: var(--page-muted); margin: 0; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 6px;
  background: var(--page-ink); color: var(--page-bg);
  font-weight: 600; text-decoration: none;
  transition: background-color .2s ease-out;
}
.btn:hover { background: var(--page-blue); color: #fff; }
.cta-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--page-faint); }
.cta-meta .mono { color: var(--page-ink); font-weight: 600; }
.link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; color: var(--page-muted); text-decoration: underline; text-decoration-color: var(--page-line); text-underline-offset: 4px; }
.link:hover { color: var(--page-ink); text-decoration-color: currentColor; }

/* mock screenshot — dominant element, bleeds off the right edge */
.stage { position: relative; margin-right: calc(-1 * max(24px, (100vw - var(--wrap)) / 2 + 24px)); }
.shot {
  position: relative; aspect-ratio: 16 / 10.5;
  container-type: inline-size;
  background: var(--page-surface);
  border: 1px solid var(--page-line); border-right: 0;
  border-radius: 10px 0 0 10px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(13, 14, 17, .45);
}
.win-bar { height: 5cqw; display: flex; align-items: center; justify-content: space-between; padding: 0 2.6cqw; border-bottom: 1px solid var(--page-line); font: 500 1.5cqw var(--page-mono); color: var(--page-faint); }
.doc { padding: 4cqw 6cqw; display: grid; gap: 1.6cqw; }
.ln { height: 1.2cqw; background: var(--page-doc); border-radius: 2px; }
.ln.h { height: 2.6cqw; width: 44%; background: var(--page-ink); opacity: .82; margin-bottom: .8cqw; }
.w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w72 { width: 72%; } .w75 { width: 75%; } .w80 { width: 80%; }
.w84 { width: 84%; } .w85 { width: 85%; } .w88 { width: 88%; } .w90 { width: 90%; } .w92 { width: 92%; } .w95 { width: 95%; }
.figrow { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3cqw; margin: 1cqw 0; }
.fig { height: 15cqw; border-radius: 4px; background: var(--page-blue-soft); display: flex; align-items: flex-end; gap: 1.4cqw; padding: 2cqw; }
.fig i { flex: 1; background: var(--page-blue); opacity: .55; border-radius: 2px 2px 0 0; }
.fig i:nth-child(1) { height: 35%; } .fig i:nth-child(2) { height: 62%; } .fig i:nth-child(3) { height: 48%; } .fig i:nth-child(4) { height: 85%; } .fig i:nth-child(5) { height: 70%; }
.figtxt { display: grid; gap: 1.6cqw; align-content: start; }

.sel { position: absolute; left: 13%; top: 24%; width: 60%; height: 46%; box-shadow: 0 0 0 300cqw rgba(13, 14, 17, .44); }
.ants { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ants rect { fill: none; stroke: var(--page-blue); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 7 4; }
.size { position: absolute; left: 0; top: -3.8cqw; font: 600 1.45cqw var(--page-mono); background: var(--page-blue); color: #fff; padding: .35cqw .9cqw; border-radius: 3px; white-space: nowrap; }
.mark { position: absolute; left: 7%; top: 9%; width: 46%; height: 7%; background: var(--page-mark); opacity: .85; mix-blend-mode: multiply; border-radius: 2px; }
.mosaic { position: absolute; left: 7%; bottom: 10%; width: 36%; height: 20%; border-radius: 2px;
  background: repeating-conic-gradient(#c3c8d2 0 25%, #e2e5eb 0 50%) 0 0 / 2.4cqw 2.4cqw; }
.box { position: absolute; right: 7%; top: 16%; width: 34%; height: 64%; border: .32cqw solid var(--page-blue); border-radius: .5cqw; }
.badge { position: absolute; right: calc(7% + 34% - 2.2cqw); top: calc(16% - 2.2cqw); width: 4.4cqw; height: 4.4cqw; border-radius: 50%; background: var(--page-blue); color: #fff; font: 700 2.3cqw/1 var(--page-sans); display: grid; place-items: center; }
.hd { position: absolute; width: 1.3cqw; height: 1.3cqw; background: #fff; border: 2px solid var(--page-blue); transform: translate(-50%, -50%); }
.tl { left: 0; top: 0; } .tc { left: 50%; top: 0; } .tr { left: 100%; top: 0; }
.ml { left: 0; top: 50%; } .mr { left: 100%; top: 50%; }
.bl { left: 0; top: 100%; } .bc { left: 50%; top: 100%; } .br { left: 100%; top: 100%; }
.tools { position: absolute; right: 27%; top: calc(24% + 46% + 2cqw); display: flex; gap: .3cqw; padding: .6cqw; background: var(--page-surface); border: 1px solid var(--page-line); border-radius: .8cqw; }
.tools .t { width: 4.2cqw; height: 4.2cqw; display: grid; place-items: center; border-radius: .55cqw; color: var(--page-ink); }
.tools .t .i { width: 2.5cqw; height: 2.5cqw; stroke-width: 2.2; }
.tools .t.on { background: var(--page-blue); color: #fff; }
.tools .t.ok { color: var(--page-blue); }
.tools .sep { width: 1px; margin: .6cqw .4cqw; background: var(--page-line); }

.pin {
  position: absolute; left: -7%; bottom: -14%; width: 36%;
  container-type: inline-size;
  background: var(--page-surface); border: 1px solid var(--page-line); border-radius: 8px; overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(13, 14, 17, .5);
}
.pin-bar { display: flex; justify-content: space-between; align-items: center; padding: 3.5cqw 5cqw; font: 600 4cqw var(--page-mono); color: var(--page-muted); border-bottom: 1px solid var(--page-line); }
.pin-bar .i { width: 5cqw; height: 5cqw; color: var(--page-blue); }
.pin-body { padding: 6cqw 5cqw; display: grid; gap: 3.4cqw; }
.pin-body .ln { height: 3cqw; }
.pin-chip { display: flex; align-items: center; gap: 3cqw; margin: 0 5cqw 5cqw; padding: 2.8cqw 4cqw; background: var(--page-blue-soft); color: var(--page-blue); font: 600 4.2cqw var(--page-sans); border-radius: 4px; }
.led { width: 3cqw; height: 3cqw; border-radius: 50%; background: var(--page-blue); flex: none; }

/* ---------- facts ---------- */
.facts { border-top: 1px solid var(--page-line); border-bottom: 1px solid var(--page-line); background: var(--page-surface); }
.facts-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fact { padding: 26px 22px; border-left: 1px solid var(--page-line); min-width: 0; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; font: 700 clamp(1.3rem, 2.1vw, 1.75rem)/1.2 var(--page-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fact span { font-size: 13px; color: var(--page-muted); }

/* ---------- sections ---------- */
.sec { padding: 104px 0; }
.sec-line { border-top: 1px solid var(--page-line); }
h2 { font-family: var(--page-display); font-size: clamp(1.7rem, 3.1vw, 2.55rem); line-height: 1.18; letter-spacing: -.02em; font-weight: 800; margin: 0 0 18px; max-width: 22em; }
h3 { font-size: 18px; line-height: 1.35; margin: 0; letter-spacing: -.005em; }
.sec-lede { color: var(--page-muted); max-width: 42em; margin: 0; }

/* flow */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .75fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1fr); align-items: center; margin-top: 56px; }
.node { background: var(--page-surface); border: 1.5px solid var(--page-ink); border-radius: 6px; padding: 22px 22px 18px; min-width: 0; }
.node-hot { border-color: var(--page-blue); box-shadow: 4px 4px 0 var(--page-blue-soft); }
.node h3 { margin-bottom: 10px; }
.node ul { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--page-muted); }
.node li { padding: 4px 0; border-top: 1px dashed var(--page-line); }
.node li:first-child { border-top: 0; }
.edge { display: grid; gap: 8px; padding: 0 14px; text-align: center; color: var(--page-muted); font: 13px/1.4 var(--page-mono); min-width: 0; }
.edge .dir { display: none; }
.edge.hot { color: var(--page-blue); }
.arrow { position: relative; height: 1.5px; background: currentColor; margin: 4px 6px; }
.arrow::after, .arrow.both::before { content: ""; position: absolute; top: -4.5px; border: 5.25px solid transparent; }
.arrow::after { right: -8px; border-left: 9px solid currentColor; border-right-width: 0; }
.arrow.both::before { left: -8px; border-right: 9px solid currentColor; border-left-width: 0; }
.flow-note { margin: 28px 0 0; font-size: 14px; color: var(--page-faint); }

/* features */
.feat-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 72px; }
.feat-side { position: sticky; top: 100px; align-self: start; }
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 28px; padding: 28px 0; border-top: 1px solid var(--page-line); }
.feat:first-child { border-top: 0; padding-top: 0; }
.feat p { margin: 0; color: var(--page-muted); }
.feat .tag { margin-top: 6px; font: 12.5px/1.5 var(--page-mono); color: var(--page-blue); }
.more { padding: 28px 0 0; border-top: 1.5px solid var(--page-ink); }
.more p { margin: 8px 0 0; color: var(--page-muted); }

/* tech band */
.band { background: var(--page-band-bg); color: var(--page-band-ink); padding: 104px 0; }
.band h2 { color: #fff; }
.band p { color: var(--page-band-muted); max-width: 38em; }
.band code { background: rgba(255, 255, 255, .08); color: var(--page-band-ink); }
.band-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: start; }
.mods h3 { font-size: 14px; font-weight: 600; color: var(--page-band-muted); margin-bottom: 12px; }
.mods table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mods td { padding: 11px 0; border-top: 1px solid var(--page-band-line); vertical-align: top; }
.mods td:first-child { width: 42%; padding-right: 16px; }
.mods td code { background: none; padding: 0; color: #8fb0ff; }
.mods td + td { color: var(--page-band-muted); }

/* download */
.cur { margin: 18px 0 0; font-size: 14px; color: var(--page-muted); }
.cur b { color: var(--page-ink); }
.tbl-wrap { margin-top: 36px; overflow-x: auto; }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 16px 18px 16px 0; border-top: 1px solid var(--page-line); }
.cmp thead th { border-top: 0; border-bottom: 1.5px solid var(--page-ink); font-size: 17px; padding-bottom: 12px; }
.cmp thead code { background: none; padding: 0; color: var(--page-faint); font-weight: 500; margin-left: 4px; }
.cmp tbody th { width: 16%; font-weight: 600; color: var(--page-muted); font-size: 14px; }
.cmp td { width: 42%; }
.dls { display: flex; flex-wrap: wrap; gap: 10px; }
.dl { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px solid var(--page-ink); border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 14px; transition: background-color .2s ease-out, color .2s ease-out; }
.dl:hover { background: var(--page-ink); color: var(--page-bg); }
.dl .sz { font: 500 12px var(--page-mono); color: var(--page-faint); }
.dl:hover .sz { color: inherit; opacity: .7; }
.howto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 56px; }
.howto h3 { margin-bottom: 12px; }
.howto ol, .howto ul { margin: 0; padding-left: 1.2em; color: var(--page-muted); font-size: 15px; }
.howto li { padding: 4px 0; }
.howto li::marker { color: var(--page-blue); font-weight: 700; }

/* privacy */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { padding: 16px 0 16px 22px; border-top: 1px solid var(--page-line); color: var(--page-muted); position: relative; }
.plist li:first-child { border-top: 0; padding-top: 0; }
.plist li::before { content: ""; position: absolute; left: 0; top: 1.35em; width: 8px; height: 8px; border: 2px solid var(--page-blue); border-radius: 50%; }
.plist li:first-child::before { top: .55em; }
.plist b { color: var(--page-ink); }

/* build */
.code { position: relative; margin-top: 28px; background: var(--page-band-bg); color: var(--page-band-ink); border-radius: 8px; overflow: hidden; }
.code pre { margin: 0; padding: 24px 26px; overflow-x: auto; font: 13.5px/1.75 var(--page-mono); }
.code code { background: none; padding: 0; font-size: inherit; }
.code .cm { color: #7d8594; }
.copy { position: absolute; top: 12px; right: 12px; font: 600 12px var(--page-mono); padding: 6px 12px; border-radius: 5px; border: 1px solid var(--page-band-line); background: #1b1e25; color: var(--page-band-ink); cursor: pointer; z-index: 1; }
.copy:hover { border-color: #8fb0ff; }
.after { margin: 18px 0 0; color: var(--page-muted); font-size: 15px; max-width: 52em; }

/* footer */
.foot { border-top: 1px solid var(--page-line); padding: 40px 0 56px; font-size: 13px; color: var(--page-muted); }
.foot-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.foot .brand { font-size: 15px; color: var(--page-ink); }
.foot-txt p { margin: 0 0 4px; }
.foot-nav { display: flex; gap: 20px; }
.foot a { color: var(--page-ink); }

/* motion — only the selection marquee, and only if allowed */
@media (prefers-reduced-motion: no-preference) {
  .ants rect { animation: ants 1.1s linear infinite; }
  @keyframes ants { to { stroke-dashoffset: -22; } }
  .js .stage { opacity: 0; transform: translateY(14px); transition: opacity .5s ease-out, transform .5s ease-out; }
  .js .stage.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .stage { margin-right: 0; margin-left: 4%; }
  .shot { border-right: 1px solid var(--page-line); border-radius: 10px; }
  .pin { left: -4%; bottom: -16%; width: 38%; }
  .feat-grid, .band-grid, .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feat-side { position: static; }
  .nav { display: none; }
}
@media (max-width: 820px) {
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { border-left: 0; border-top: 1px solid var(--page-line); padding: 18px 0; }
  .fact:nth-child(-n+2) { border-top: 0; }
  .fact:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--page-line); }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .edge { padding: 16px 0 16px 22px; text-align: left; border-left: 1.5px solid currentColor; margin-left: 24px; }
  .edge .arrow { display: none; }
  .edge .dir { display: inline-block; transform: rotate(90deg); }
  .howto { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feat { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sec, .band { padding: 72px 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 48px 0 88px; }
  .stage { margin-left: 0; }
  .pin { left: 2%; bottom: -20%; width: 46%; }
  .top .wrap { gap: 12px; }
}
