:root {
  color-scheme: light;
  --ink: #0c1c3f;
  --muted: #60708c;
  --blue: #126fe8;
  --blue-dark: #075bc6;
  --blue-pale: #edf5ff;
  --line: #d7e2f1;
  --soft-line: #e8eef7;
  --green: #10815a;
  --green-pale: #eaf8f1;
  --paper: #ffffff;
  --canvas: #f5f9ff;
  --max-width: 1180px;
  --shadow: 0 28px 70px rgba(34, 74, 132, .16), 0 4px 16px rgba(32, 52, 84, .08);
  --display-font: "Trebuchet MS", "Avenir Next", sans-serif;
  --body-font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--body-font);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--blue-pale); color: var(--ink); }
:focus-visible { outline: 3px solid rgba(18, 111, 232, .35); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 10;
  width: min(calc(100% - 48px), var(--max-width));
  height: 88px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display-font); font-weight: 760; letter-spacing: -.025em; }
.brand img { border-radius: 9px; }
.site-nav { display: flex; gap: 30px; color: #40516e; font-size: 14px; font-weight: 650; }
.site-nav a, .text-link, .site-footer a { transition: color 160ms ease; }
.site-nav a:hover, .text-link:hover, .site-footer a:hover { color: var(--blue); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 22px; }
.language-switch { color: var(--muted); font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--line); padding: 5px 0 3px; }
.language-switch:hover { color: var(--blue); border-color: var(--blue); }
.header-install { justify-self: end; border-bottom: 2px solid var(--ink); padding: 5px 0 3px; font-size: 14px; font-weight: 750; }

[lang="zh-CN"] h1,
[lang="zh-CN"] .section-intro h2,
[lang="zh-CN"] .ledger-heading h2,
[lang="zh-CN"] .source-copy h2,
[lang="zh-CN"] .final-cta h2 { letter-spacing: -.035em; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  background: radial-gradient(circle at 88% 18%, rgba(114, 184, 255, .28), transparent 28%), linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
  border-top: 1px solid rgba(215, 226, 241, .8);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(520px, 1.15fr);
  grid-template-rows: 1fr auto;
  column-gap: 66px;
  padding: 82px max(24px, calc((100vw - var(--max-width)) / 2)) 0;
}
.hero-copy { position: relative; z-index: 2; align-self: center; padding-bottom: 80px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display-font); }
h1 { max-width: 620px; margin-bottom: 26px; font-size: clamp(54px, 5.5vw, 82px); line-height: .98; letter-spacing: -.065em; font-weight: 830; }
.hero-summary { max-width: 540px; margin-bottom: 32px; color: #53637f; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.55; letter-spacing: -.015em; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border: 1px solid transparent; border-radius: 12px; font-weight: 760; box-shadow: none; transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: white; box-shadow: 0 10px 25px rgba(18, 111, 232, .22); }
.button-primary:hover { background: var(--blue-dark); box-shadow: 0 14px 30px rgba(18, 111, 232, .28); }
.button-primary svg { width: 21px; height: 21px; fill: currentColor; }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #18305d; }
.text-link { font-weight: 730; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.hero-note { margin: 19px 0 0; color: #73809a; font-size: 13px; }

.product-stage { position: relative; z-index: 1; min-width: 0; align-self: stretch; }
.orbit { position: absolute; border: 1px solid rgba(30, 112, 218, .15); border-radius: 50%; }
.orbit-one { width: 620px; height: 620px; top: -250px; right: -310px; }
.orbit-two { width: 520px; height: 520px; bottom: -280px; left: 40px; }
.browser-window { position: absolute; top: 12px; right: 0; width: min(670px, 100%); height: 540px; overflow: hidden; background: rgba(255, 255, 255, .86); border: 1px solid rgba(211, 223, 239, .95); border-radius: 26px; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.browser-bar { height: 58px; display: flex; align-items: center; gap: 7px; padding: 0 18px; background: #f6f9fd; border-bottom: 1px solid #dce5f1; }
.browser-dot { width: 10px; height: 10px; border-radius: 50%; background: #cad4e1; }
.address-bar { min-width: 0; flex: 1; margin-left: 10px; padding: 8px 12px; overflow: hidden; border: 1px solid #dde6f2; border-radius: 9px; background: white; color: #65758d; font: 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.article-ghost { position: absolute; top: 116px; left: 56px; width: 390px; display: grid; gap: 14px; }
.article-ghost span { display: block; border-radius: 8px; background: #e7edf5; }
.ghost-kicker { width: 76px; height: 8px; background: #c9d7e8 !important; }
.ghost-title { width: 68%; height: 18px; }
.ghost-title-long { width: 92%; }
.ghost-line { width: 100%; height: 9px; }
.ghost-line-short { width: 74%; }
.extension-popover { position: absolute; z-index: 2; top: 106px; right: 30px; width: 430px; padding: 22px; border: 1px solid #d7e0eb; border-radius: 17px; background: white; box-shadow: 0 20px 50px rgba(21, 40, 72, .18), 0 3px 8px rgba(21, 40, 72, .08); transform: rotate(-.35deg); }
.popover-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.popover-heading img { border-radius: 10px; }
.popover-heading strong { display: block; font-size: 17px; line-height: 1.2; }
.popover-heading span { display: block; margin-top: 4px; color: #6a7485; font-size: 12px; font-weight: 600; }
.success-line { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 11px 13px; border: 1px solid #c9e7da; border-radius: 11px; background: var(--green-pale); color: var(--green); font-size: 13px; font-weight: 750; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.result-block { padding: 15px; border: 1px solid #dce3ea; border-radius: 12px; background: #f8fafc; }
.result-block p { margin: 0 0 3px; color: #5f6877; font-size: 12px; }
.result-block code { display: block; margin-top: 12px; padding-top: 12px; border-top: 1px solid #dce3ea; color: #1b2638; font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }
.popover-links { display: flex; gap: 26px; margin-top: 15px; padding-top: 14px; border-top: 1px solid #e4e9ef; color: #586273; font-size: 12px; font-weight: 700; }
.clean-toast { position: absolute; right: 42px; bottom: 40px; display: flex; align-items: center; gap: 9px; padding: 11px 15px; border: 1px solid #c8e7dc; border-radius: 12px; background: #f4fbf8; color: #2e725c; font-size: 12px; font-weight: 700; box-shadow: 0 8px 30px rgba(47, 101, 84, .1); }
.clean-toast .status-dot { width: 7px; height: 7px; margin-right: 2px; }

.proof-rail { position: relative; z-index: 3; grid-column: 1 / -1; width: 100%; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-bottom: 0; background: rgba(255, 255, 255, .9); }
.proof-rail div { min-height: 106px; padding: 24px 28px; border-right: 1px solid var(--line); }
.proof-rail div:last-child { border-right: 0; }
.proof-rail dt { font-size: 25px; font-weight: 820; letter-spacing: -.045em; }
.proof-rail dd { margin: 3px 0 0; color: #71809a; font-size: 12px; }

.section { width: min(calc(100% - 48px), var(--max-width)); margin: 0 auto; padding: 132px 0; }
.section-intro { max-width: 600px; }
.section-intro h2, .ledger-heading h2, .source-copy h2, .final-cta h2 { margin-bottom: 24px; font-size: clamp(42px, 5vw, 66px); line-height: 1.04; letter-spacing: -.055em; }
.section-intro > p:last-child, .ledger-heading > p, .source-copy > p { color: var(--muted); font-size: 18px; }
.transformation { display: grid; grid-template-columns: .8fr 1.2fr; gap: 86px; align-items: end; }
.transform-demo { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-row { padding: 22px 0; display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: center; }
.demo-label { color: #8794a9; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.demo-row code { overflow-wrap: anywhere; color: #43516a; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.demo-source mark { background: #fff1d7; color: #8c5e13; text-decoration: line-through; text-decoration-color: #c77723; }
.demo-result code { color: var(--ink); font-weight: 650; }
.demo-flow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.demo-flow span { height: 1px; background: var(--line); }
.copy-sample { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--blue); font-size: 12px; font-weight: 750; cursor: pointer; }
.copy-sample:hover { background: var(--blue-pale); }

.capabilities { border-top: 1px solid var(--soft-line); display: grid; grid-template-columns: .78fr 1.22fr; gap: 86px; }
.capability-list { border-top: 2px solid var(--ink); }
.capability-list article { display: grid; grid-template-columns: 62px 1fr; gap: 22px; padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.cap-index { color: var(--blue); font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.capability-list h3 { margin-bottom: 8px; font-size: 22px; letter-spacing: -.025em; }
.capability-list p { margin: 0; color: var(--muted); max-width: 610px; }

.ledger { width: 100%; max-width: none; padding-left: max(24px, calc((100vw - var(--max-width)) / 2)); padding-right: max(24px, calc((100vw - var(--max-width)) / 2)); display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; background: var(--canvas); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ledger-heading .text-link { display: inline-block; margin-top: 18px; }
.permission-table { align-self: center; border-top: 2px solid var(--ink); }
.permission-row { display: grid; grid-template-columns: .72fr 1.35fr .65fr; gap: 18px; min-height: 69px; align-items: center; border-bottom: 1px solid #cad7e8; color: #506079; font-size: 13px; }
.permission-row code { color: var(--blue); font-size: 12px; font-weight: 750; }
.permission-row span:last-child { justify-self: end; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.permission-head { min-height: 46px; color: #8190a6; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.permission-head span:last-child { color: #8190a6; }

.source-section { display: grid; grid-template-columns: 1.08fr .92fr; gap: 96px; align-items: center; }
.source-terminal { overflow: hidden; border: 1px solid #d4deeb; border-radius: 18px; background: #0e1c38; color: #d9e7ff; box-shadow: 0 22px 55px rgba(23, 48, 94, .16); }
.terminal-bar { height: 47px; padding: 0 16px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid rgba(255,255,255,.1); background: #132344; }
.terminal-bar span { width: 8px; height: 8px; border-radius: 50%; background: #60708e; }
.terminal-bar b { margin-left: auto; color: #8fa3c5; font: 500 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.source-terminal pre { margin: 0; padding: 42px 46px 46px; font: 15px/1.85 ui-monospace, SFMono-Regular, Menlo, monospace; }
.source-terminal i { color: #82c7ff; font-style: normal; }
.source-terminal em { color: #87e6c2; font-style: normal; }
.terminal-foot { padding: 17px 20px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); color: #99a9c4; font: 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; }
.source-copy .button { margin-top: 16px; }
.final-cta { text-align: center; border-top: 1px solid var(--soft-line); }
.final-cta img { margin: 0 auto 28px; border-radius: 17px; box-shadow: 0 12px 30px rgba(18, 111, 232, .2); }
.final-cta h2 { font-size: clamp(48px, 6vw, 76px); }
.final-cta > p:last-child { margin: 18px 0 0; color: #7a879b; font-size: 13px; }
.site-footer { width: min(calc(100% - 48px), var(--max-width)); min-height: 104px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; border-top: 1px solid var(--line); color: #738098; font-size: 12px; }
.footer-brand { color: var(--ink); font-size: 13px; }
.site-footer p { margin: 0; text-align: center; }
.site-footer > div:last-child { justify-self: end; display: flex; gap: 20px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 24px; padding-top: 64px; }
  .hero-copy { padding-bottom: 24px; }
  .product-stage { height: 560px; }
  .browser-window { left: 50%; right: auto; transform: translateX(-50%); }
  .proof-rail { margin-top: 10px; }
  .transformation, .capabilities, .ledger, .source-section { grid-template-columns: 1fr; gap: 56px; }
  .section { padding-top: 100px; padding-bottom: 100px; }
  .ledger { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 680px) {
  .site-header { width: min(calc(100% - 32px), var(--max-width)); height: 72px; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
  .brand { font-size: 14px; }
  .brand img { width: 32px; height: 32px; }
  .header-actions { gap: 0; }
  .header-install { display: none; }
  .hero { padding-left: 20px; padding-right: 20px; padding-top: 52px; }
  h1 { max-width: 100%; font-size: 48px; letter-spacing: -.058em; }
  .hero-summary { max-width: 100%; font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .product-stage { height: 420px; margin-top: 20px; }
  .browser-window { width: 620px; height: 430px; left: 10px; transform: none; border-radius: 21px; }
  .extension-popover { top: 88px; left: 55px; right: auto; width: 345px; padding: 17px; }
  .result-block { padding: 12px; }
  .clean-toast { display: none; }
  .proof-rail { grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--line); }
  .proof-rail div { min-height: 92px; padding: 18px; }
  .proof-rail div:nth-child(2) { border-right: 0; }
  .proof-rail div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .proof-rail dt { font-size: 22px; }
  .section { width: min(calc(100% - 40px), var(--max-width)); padding: 82px 0; }
  .section-intro h2, .ledger-heading h2, .source-copy h2, .final-cta h2 { font-size: 42px; }
  .demo-row { grid-template-columns: 1fr; gap: 8px; }
  .copy-sample { justify-self: start; }
  .capability-list article { grid-template-columns: 36px 1fr; gap: 10px; }
  .ledger { width: 100%; padding-left: 20px; padding-right: 20px; }
  .permission-row { grid-template-columns: .8fr 1.2fr; }
  .permission-row span:last-child { display: none; }
  .source-terminal pre { padding: 30px 22px 34px; font-size: 12px; }
  .terminal-foot { gap: 12px; flex-direction: column; }
  .site-footer { min-height: 150px; grid-template-columns: 1fr; justify-items: start; align-content: center; gap: 12px; }
  .site-footer p { text-align: left; }
  .site-footer > div:last-child { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
