/* 织渡 homepage. Same ink-on-grey palette as the workbench (app/styles/tokens.css); no scripts, no external assets. */
:root {
  color-scheme: light dark;
  --page: #f4f4f6;
  --surface: #fff;
  --surface-2: #f7f7f9;
  --fg: #17171c;
  --fg-2: #50505a;
  --fg-3: #6b6b75;
  --line: rgb(17 17 22 / 9%);
  --line-2: rgb(17 17 22 / 16%);
  --fill: rgb(17 17 22 / 6%);
  --fill-2: rgb(17 17 22 / 10%);
  --ink: #1d1d22;
  --ink-2: #3a3a42;
  --on-ink: #fff;
  --ok: #17794b;
  --warn: #9a5a00;
  --shadow: 0 1px 2px rgb(17 17 22 / 4%), 0 2px 6px -2px rgb(17 17 22 / 6%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0e0e11;
    --surface: #16161a;
    --surface-2: #1b1b20;
    --fg: #ededf0;
    --fg-2: #b0b0b9;
    --fg-3: #8f8f99;
    --line: rgb(255 255 255 / 8%);
    --line-2: rgb(255 255 255 / 14%);
    --fill: rgb(255 255 255 / 7%);
    --fill-2: rgb(255 255 255 / 12%);
    --ink: #ececf0;
    --ink-2: #fff;
    --on-ink: #16161a;
    --ok: #5fcf96;
    --warn: #f0b056;
    --shadow: 0 0 0 1px rgb(255 255 255 / 4%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--fg); font: 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--fg); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 40px, 1120px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 20; padding: 8px 14px; border-radius: 10px; background: var(--ink); color: var(--on-ink); text-decoration: none; }
.skip:focus { top: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgb(244 244 246 / 82%); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); }
@media (prefers-color-scheme: dark) { .top { background: rgb(14 14 17 / 80%); } }
.top-in { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand strong { font-size: 17px; font-weight: 600; letter-spacing: .04em; }
.brand .en { color: var(--fg-3); font-size: 13px; }
.mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--on-ink); }
.mark svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s .15s cubic-bezier(.65, 0, .35, 1) forwards; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--fg-2); font-size: 14px; text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--fg); }
@media (max-width: 760px) { .nav { display: none; } .top-in > .btn { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; background: var(--ink); color: var(--on-ink); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .2s, transform .12s; }
.btn:hover { background: var(--ink-2); }
.btn:active { transform: scale(.985); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s cubic-bezier(.34, 1.36, .64, 1); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { height: 34px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.btn-quiet { background: var(--fill); color: var(--fg); }
.btn-quiet:hover { background: var(--fill-2); }

/* Hero */
.hero { display: grid; gap: 48px; align-items: center; padding-block: 88px 96px; }
@media (min-width: 1080px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr); gap: 40px; padding-block: 104px 112px; } }
.hero-copy > * { animation: rise .7s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 60ms; }
.hero-copy > :nth-child(3) { animation-delay: 120ms; }
.hero-copy > :nth-child(4) { animation-delay: 180ms; }
.hero-copy > :nth-child(5) { animation-delay: 240ms; }
.eyebrow { color: var(--fg-3); font-size: 14px; font-weight: 600; letter-spacing: .04em; }
h1 { margin: 12px 0 22px; font-size: clamp(36px, 5.2vw, 56px); font-weight: 700; line-height: 1.14; letter-spacing: -.02em; }
.lead { max-width: 33em; color: var(--fg-2); font-size: 18px; line-height: 1.75; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.note { margin-top: 16px; color: var(--fg-3); font-size: 13px; }

/* The loom: one thread over and under four warps, then five branches. */
.loom { margin: 0; animation: rise .8s .1s var(--ease) both; }
.loom svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.loom .loom-tall { display: none; max-width: 400px; margin-inline: auto; }
@media (max-width: 640px) { .loom .loom-wide { display: none; } .loom .loom-tall { display: block; } }
.warp { fill: none; stroke: var(--fg-3); stroke-width: 2; stroke-linecap: round; opacity: .55; }
.warp.over { opacity: 1; }
.halo { fill: none; stroke: var(--page); stroke-width: 10; }
.halo-s { fill: none; stroke: var(--page); stroke-width: 8; }
.thread { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s .3s cubic-bezier(.65, 0, .35, 1) forwards; }
.draw.late { animation-delay: 1.1s; animation-duration: .7s; }
.lbls text { fill: var(--fg-3); font-size: 13px; font-weight: 500; text-anchor: middle; }
.lbls-tall text { fill: var(--fg-3); font-size: 13px; }
.lbls-tall .b { fill: var(--fg); font-weight: 600; }
.src { fill: var(--ink); }
.src-t { fill: var(--on-ink); font-size: 14px; font-weight: 600; text-anchor: middle; }
.node { fill: var(--surface); stroke: var(--line-2); }
.node-t { fill: var(--fg); font-size: 14px; font-weight: 600; }
.node-m { fill: var(--fg-3); font-size: 12px; text-anchor: end; }
.dot { fill: var(--ink); }

/* Sections */
.section { padding-block: 104px; }
.band { padding-block: 104px; border-block: 1px solid var(--line); background: var(--surface); }
.band + .band { border-top: 0; }
.sec-head { max-width: 680px; }
.sec-head h2 { margin: 10px 0 14px; font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; line-height: 1.22; letter-spacing: -.015em; }
.sec-head p:not(.eyebrow) { color: var(--fg-2); font-size: 17px; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.4; }

/* Steps: an order-progress line. */
.steps { display: grid; gap: 30px; margin: 56px 0 0; padding: 0; list-style: none; }
.steps li { position: relative; padding-left: 56px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--fg-2); font-size: 15px; }
.num { position: absolute; top: -2px; left: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 40px; bottom: -26px; left: 16.25px; width: 1.5px; background: var(--line-2); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .steps li { padding: 54px 0 0; }
  .num { top: 0; }
  .steps li:not(:last-child)::after { top: 17px; right: -20px; bottom: auto; left: 46px; width: auto; height: 1.5px; }
}

/* Workbench glimpse */
.glimpse-grid { display: grid; gap: 20px; margin-top: 52px; }
@media (min-width: 900px) { .glimpse-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: start; } }
.panel { padding: 22px 24px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.panel-head h3 { font-size: 17px; }
.muted { color: var(--fg-3); font-size: 13px; }
.rule-list { margin: 14px 0 0; padding: 0; list-style: none; }
.rule-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.idx { color: var(--fg-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.rule { font-size: 15px; font-weight: 500; }
.rule small { display: block; margin-top: 1px; color: var(--warn); font-size: 12.5px; font-weight: 400; }
.exit { color: var(--fg-2); font-size: 14px; text-align: right; }
.track { display: flex; margin: 22px 0 8px; padding: 0; list-style: none; }
.track li { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; gap: 8px; color: var(--fg-2); font-size: 13px; }
.track li:not(:first-child)::before { content: ""; position: absolute; top: 11px; right: calc(50% + 17px); left: calc(-50% + 17px); height: 1.5px; background: var(--ink); }
.pt { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--on-ink); }
.pt svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.track .now { color: var(--fg); font-weight: 600; }
.track .now .pt { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.track .now .pt::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: pulse 1.6s ease-in-out infinite; }
.checks { margin: 18px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.checks svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sub-url { display: grid; gap: 2px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.sub-url span { color: var(--fg-3); font-size: 12px; }
.sub-url code { color: var(--fg); font: 13px/1.6 var(--mono); overflow-wrap: anywhere; }

/* Features */
.features { display: grid; gap: 16px; margin-top: 52px; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--page); }
.feature h3 { margin: 16px 0 6px; font-size: 17px; }
.feature p { color: var(--fg-2); font-size: 15px; }
.ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ic svg { width: 22px; height: 22px; fill: none; stroke: var(--fg); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Clients */
.clients { margin-top: 52px; padding-block: 6px; }
.client { display: grid; gap: 2px 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.client:first-child { border-top: 0; }
.client strong { font-size: 17px; font-weight: 600; }
.plat { color: var(--fg-3); font-size: 13px; }
.client p { color: var(--fg-2); font-size: 15px; }
@media (min-width: 760px) {
  .client { grid-template-columns: 150px 150px minmax(0, 1fr); align-items: baseline; }
  .plat { font-size: 14px; }
}

/* Trust */
.trust { display: grid; gap: 0 48px; margin-top: 44px; }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trust > div { padding: 24px 0; border-top: 1px solid var(--line-2); }
.trust h3 { margin-bottom: 6px; font-size: 17px; }
.trust p { color: var(--fg-2); font-size: 15px; }

/* Closing */
.closing { display: grid; justify-items: center; gap: 12px; padding-block: 112px 120px; text-align: center; }
.closing h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -.015em; }
.closing p { margin-bottom: 18px; color: var(--fg-2); font-size: 17px; }

/* Footer */
.foot { border-top: 1px solid var(--line); color: var(--fg-3); font-size: 13px; }
.foot-in { display: grid; gap: 6px; padding-block: 28px 36px; }
.foot strong { color: var(--fg-2); font-weight: 600; }
@media (min-width: 900px) { .foot-in { grid-template-columns: auto 1fr; gap: 32px; } .foot-in p:last-child { text-align: right; } }

/* Small screens */
@media (max-width: 640px) {
  .hero { gap: 40px; padding-block: 56px 72px; }
  .lead { font-size: 17px; }
  .section, .band { padding-block: 76px; }
  .panel { padding: 18px 18px 20px; }
  .closing { padding-block: 84px 92px; }
}

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 36%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mark path, .draw { stroke-dashoffset: 0; }
  .dots { display: none; }
}
