@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --paper: #f2f4f3;
  --surface: #ffffff;
  --ink: #142029;
  --ink-2: #4b5962;
  --ink-3: #7a868d;
  --line: #d6dddb;
  --pine: #1d4a41;
  --pine-2: #2f6b5e;
  --celadon: #b9d3c9;
  --amber: #c98a1c;
  --amber-ink: #7a520b;
  --amber-soft: #fbf0d9;
  --night: #101b22;
  --night-2: #1a2933;
  --night-line: #2c3d48;

  --font: "Schibsted Grotesk", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
}
:lang(zh) body, body:lang(zh) { line-height: 1.75; letter-spacing: 0.01em; }

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* 顶部导航 */
.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }
.brand small { font-weight: 500; color: var(--ink-2); font-size: 15px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 16px; font-size: 15px; }
.lang { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.brand { white-space: nowrap; }
.lang:hover { color: var(--ink); }

.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .15s, color .15s; }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-2); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-3); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-end { margin-left: auto; }
}
@media (max-width: 420px) {
  .brand small { display: none; }
  .nav .btn { padding: 0 14px; }
}

/* 首屏 */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; }
.hero h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; margin: 0; max-width: 14ch; }
:lang(zh) .hero h1 { letter-spacing: -0.01em; line-height: 1.12; max-width: 12em; }
.hero-lede { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-top: 28px; }
.hero-lede p { margin: 0; max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .hero-lede { grid-template-columns: 1fr; } }

/* 画布演示：本页唯一的视觉重点 */
.demo { margin-top: clamp(40px, 6vw, 72px); }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; }
.switch { display: inline-flex; padding: 3px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.switch button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: transparent; color: var(--ink-2); padding: 7px 14px; border-radius: 999px; cursor: pointer; min-height: 36px; }
.switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.stage { position: relative; border: 1px solid var(--line); border-radius: 0 0 16px 16px; overflow: hidden; background-color: #f8faf9; background-image: radial-gradient(circle, #cdd6d3 1px, transparent 1.2px); background-size: 22px 22px; aspect-ratio: 1080 / 600; transition: background-color .35s; }
.stage-inner { position: absolute; left: 0; top: 0; width: 1080px; height: 600px; transform-origin: 0 0; transform: scale(var(--s, 1)); }
.ai-mode .stage { background-color: var(--night); background-image: radial-gradient(circle, #2a3a44 1px, transparent 1.2px); }

.edges { position: absolute; inset: 0; width: 1080px; height: 600px; overflow: visible; }
.edges path { fill: none; stroke: #9fb2ab; stroke-width: 1.6; }
.edges .e-contra { stroke: var(--amber); stroke-dasharray: 5 5; }
.edges text { font-family: var(--font); font-size: 12px; fill: var(--ink-2); }
.edges .lbl-bg { fill: #f8faf9; }
.ai-mode .edges path { stroke: #4a6270; }
.ai-mode .edges text { fill: #9fb0ba; }
.ai-mode .edges .lbl-bg { fill: var(--night); }

.card { position: absolute; width: 228px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.45; box-shadow: 0 1px 0 rgba(20, 32, 41, .04), 0 8px 24px -16px rgba(20, 32, 41, .35); transition: background-color .35s, border-color .35s, color .35s; }
.card-kind { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.card-kind i { width: 8px; height: 8px; border-radius: 2px; background: var(--pine); }
.k-party i { background: var(--pine); border-radius: 50%; }
.k-event i { background: #5a7f9b; }
.k-evidence i { background: #7c6a9a; }
.k-claim i { background: var(--ink); }
.card-name { font-weight: 600; font-size: 15px; color: var(--ink); }
.card-meta { color: var(--ink-2); margin-top: 2px; }
.anchor { display: inline-flex; gap: 4px; align-items: center; margin-top: 8px; padding: 2px 8px; border-radius: 6px; background: var(--paper); color: var(--pine); font-size: 12px; font-weight: 600; text-decoration: none; }

.redact { transition: color .3s, background-color .3s; border-radius: 4px; }
.ai-mode .card { background: var(--night-2); border-color: var(--night-line); color: #c9d4da; box-shadow: none; }
.ai-mode .card-name, .ai-mode .card-meta { color: #dfe7eb; }
.ai-mode .card-kind { color: #8193a0; }
.ai-mode .anchor { background: #22333d; color: var(--celadon); }
.ai-mode .redact { font-family: var(--mono); font-size: .92em; color: var(--celadon); background: #213a37; padding: 0 4px; }

.card.draft { border: 1.5px dashed var(--amber); background: var(--amber-soft); width: 268px; }
.card.draft .card-kind { color: var(--amber-ink); }
.card.draft .card-kind i { background: var(--amber); }
.ai-mode .card.draft { background: #2a2414; border-color: var(--amber); }
.ai-mode .card.draft .card-kind { color: #e2b664; }
.draft-actions { display: flex; gap: 8px; margin-top: 10px; }
.draft-actions button { font: inherit; font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; cursor: pointer; border: 1px solid var(--amber); background: transparent; color: var(--amber-ink); min-height: 30px; }
.draft-actions button.ok { background: var(--pine); border-color: var(--pine); color: #fff; }
.ai-mode .draft-actions button { color: #e2b664; }
.ai-mode .draft-actions button.ok { color: #fff; }
.card.draft.is-confirmed { border-style: solid; border-color: var(--pine); background: var(--surface); }
.card.draft.is-confirmed .card-kind i { background: var(--pine); }
.card.draft.is-confirmed .card-kind { color: var(--pine); }
.card.draft.is-dismissed { opacity: .45; }
.ai-mode .card.draft.is-confirmed { background: var(--night-2); border-color: var(--celadon); }
.stamp { margin-top: 8px; font-size: 12px; color: var(--pine); font-weight: 600; }
.ai-mode .stamp { color: var(--celadon); }

.demo-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 2px 0; font-size: 14px; color: var(--ink-3); }

/* 小屏：画布可横向拖动，页面本身不横滚 */
@media (max-width: 640px) {
  .stage { aspect-ratio: auto; height: 420px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
  .stage-inner { --s: .7 !important; }
  .stage::after { content: ""; display: block; width: calc(1080px * .7); height: 1px; }
}

/* 通用分节 */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin: 0; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
:lang(zh) .section-head h2 { letter-spacing: 0; line-height: 1.25; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 36em; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }

/* 流程：真实的先后顺序，所以用编号 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.steps li { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); counter-increment: step; }
.steps li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font-size: 15px; font-weight: 700; color: var(--pine); margin-bottom: 18px; }
.steps h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:not(:nth-child(3n+1)) { padding: 24px 0; border-left: 0; }
}

/* 深色带：安全承诺 */
.night { background: var(--night); color: #e7eef1; }
.night .section-head p { color: #a7b6bf; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--night-line); border: 1px solid var(--night-line); border-radius: 16px; overflow: hidden; }
.rule { background: var(--night); padding: clamp(24px, 3vw, 40px); }
.rule h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -0.01em; color: #fff; }
.rule p { margin: 0; color: #a7b6bf; max-width: 32em; }
.rule .proof { margin-top: 18px; font-size: 14px; color: var(--celadon); }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }

/* 平台：内核 + 行业包 */
.platform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); align-items: stretch; }
.kernel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.kernel h3 { margin: 0 0 4px; font-size: 20px; }
.kernel > p { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; }
.kernel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kernel li { display: grid; grid-template-columns: 10px 1fr; gap: 12px; align-items: baseline; font-size: 15.5px; }
.kernel li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--celadon); transform: translateY(-1px); }
/* 理念：三个并列观点 */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.why > div { padding-top: 20px; border-top: 2px solid var(--ink); }
.why > div:last-child { border-top-color: var(--pine); }
.why h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.why p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* 交付内容 */
.offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.offer > div { background: var(--surface); padding: clamp(24px, 3vw, 36px); }
.offer h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.01em; }
.offer p { margin: 0; color: var(--ink-2); max-width: 34em; }

.kernel.pack { background: var(--amber-soft); border-color: #ecd7ad; }
.kernel.pack li::before { background: var(--amber); }

/* 行业场景 */
.fields { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fields li { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 24px 24px 28px 0; border-bottom: 1px solid var(--line); }
.fields li:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.fields h3 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.fields p { margin: 0 0 6px; color: var(--ink-2); font-size: 15.5px; }
.status { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #e7ebea; color: var(--ink-2); margin-top: auto; }
.status.now { background: var(--pine); color: #fff; }

/* 律所示例：只占一小块 */
.case-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(48px, 7vw, 88px) 0; }
.case-mini { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.case-mini h2 { margin: 0 0 12px; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; line-height: 1.2; }
.case-mini p { margin: 0; color: var(--ink-2); max-width: 38em; }
.case-mini .case-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
.report { background: var(--night); color: #e7eef1; border-radius: 16px; padding: 24px clamp(20px, 3vw, 28px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.report-head { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #a7b6bf; }
.report-head strong { color: #fff; font-size: 15px; }
.report div b { display: block; font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 1; color: #fff; }
.report div span { font-size: 13.5px; color: #a7b6bf; }
.report .zero b { color: var(--celadon); }

.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps.four li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
.steps.four li:not(:first-child) { padding-left: 24px; border-left: 1px solid var(--line); }

@media (max-width: 960px) {
  .why, .platform, .case-mini { grid-template-columns: 1fr; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .fields li:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps.four li:not(:first-child) { padding-left: 0; border-left: 0; }
  .steps.four li:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .offer, .fields, .steps.four { grid-template-columns: 1fr; }
  .fields li, .fields li:nth-child(2n), .steps.four li, .steps.four li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .report { grid-template-columns: 1fr; }
}

/* 结尾行动 */
.cta { background: var(--pine); color: #fff; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); }
.cta h2 { margin: 0; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; max-width: 16ch; }
:lang(zh) .cta h2 { letter-spacing: 0; line-height: 1.25; max-width: 14em; }
.cta p { margin: 16px 0 0; color: #cfe0da; max-width: 34em; }
.cta .btn-primary { background: #fff; color: var(--pine); }
.cta .btn-primary:hover { background: var(--celadon); }
@media (max-width: 760px) { .cta .wrap { grid-template-columns: 1fr; } }

.foot { padding: 32px 0 48px; font-size: 14px; color: var(--ink-3); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--ink-2); }

.report b { font-variant-numeric: tabular-nums; }

[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
.ai-mode .card.draft.is-confirmed .card-kind { color: var(--celadon); }
.ai-mode .card.draft.is-confirmed .card-kind i, .ai-mode .k-claim i { background: var(--celadon); }
