:root {
  color-scheme: light;
  font-family: "LXGW WenKai Screen", "LXGW WenKai", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  --ink: #18201e;
  --muted: #68736f;
  --line: #d9e0dd;
  --surface: #ffffff;
  --surface-soft: #f3f6f5;
  --brand: #315f52;
  --brand-strong: #214b40;
  --brand-soft: #e7f0ec;
  --buy: #b6524c;
  --buy-soft: #f8e9e7;
  --sell: #347861;
  --sell-soft: #e6f1ed;
  --market: #53739e;
  --market-soft: #e9eff6;
  --target: #9a711c;
  --target-soft: #fbf2d9;
  --header-height: 64px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(83, 115, 158, 0.38);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 max(24px, calc((100% - 1280px) / 2));
  border-bottom: 1px solid rgba(217, 224, 221, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}

.brand img {
  border-radius: 8px;
}

.site-header nav,
footer nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.site-header nav a,
footer nav a,
.release-notes-link,
.local-copy > a,
.document-back {
  transition: color 160ms ease;
}

.site-header nav a:hover,
footer nav a:hover,
.release-notes-link:hover,
.local-copy > a:hover,
.document-back:hover {
  color: var(--brand);
}

.header-download {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 6px;
  color: #fff;
  background: var(--brand);
  font-size: 14px;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}

.header-download:hover,
.button-primary:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: clamp(540px, calc(100svh - 120px), 720px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #e7ecea;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(0.92) contrast(0.96);
}

.hero-scrim {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(54%, 760px);
  background: rgba(247, 249, 248, 0.94);
  border-right: 1px solid rgba(217, 224, 221, 0.76);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1280px, calc(100% - 48px));
  min-height: inherit;
  margin: 0 auto;
  padding: 48px 0 56px;
}

.hero-content > * {
  width: min(600px, 46%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.hero h1 {
  margin: 0;
  font-size: 76px;
  font-weight: 700;
  line-height: 1.06;
}

.hero-lead {
  margin: 24px 0 0;
  color: #35413e;
  font-size: 22px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.button-primary {
  color: #fff;
  background: var(--brand);
}

.button-secondary {
  border-color: #bcc8c4;
  background: rgba(255, 255, 255, 0.84);
}

.button-secondary:hover {
  border-color: var(--brand);
  background: #fff;
  transform: translateY(-1px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.hero-meta span {
  position: relative;
}

.hero-meta span:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -11px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #9aa5a1;
  content: "";
}

.release-band {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(560px, 1.5fr) auto;
  align-items: center;
  gap: 32px;
  min-height: 124px;
  padding: 24px max(24px, calc((100% - 1280px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.release-copy h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.release-copy > p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.release-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.release-facts > div {
  min-width: 0;
  padding: 14px 18px;
}

.release-facts > div + div {
  border-left: 1px solid var(--line);
}

.release-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.release-facts dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 700;
}

.release-notes-link,
.local-copy > a {
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.section {
  padding: 104px max(24px, calc((100% - 1180px) / 2));
}

.section-heading {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-heading.is-inline {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: end;
  max-width: none;
}

.section-heading h2,
.local-copy h2,
.download-section h2,
.document-main h1,
.not-found-page h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.26;
}

.section-heading > p:last-child,
.section-heading.is-inline > p,
.local-copy > p,
.download-section p,
.document-intro {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-heading.is-inline > p {
  margin: 0;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow-grid article {
  min-width: 0;
  padding: 34px 32px 38px;
}

.workflow-grid article + article {
  border-left: 1px solid var(--line);
}

.step-number {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.workflow-grid h3,
.detail-item h3,
.document-main h2 {
  margin: 18px 0 8px;
  font-size: 24px;
  line-height: 1.35;
}

.workflow-grid p,
.detail-item p {
  margin: 0;
  color: var(--muted);
}

.product-view {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.product-frame {
  overflow: hidden;
  margin: 0;
  border: 1px solid #cbd4d0;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 50px rgba(24, 32, 30, 0.12);
}

.product-frame img {
  width: 100%;
  aspect-ratio: 1229 / 768;
  object-fit: cover;
}

.product-frame figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 50px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.product-frame figcaption a {
  color: var(--brand);
  font-weight: 700;
  white-space: nowrap;
}

.local-first {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.7fr);
  align-items: center;
  gap: 110px;
}

.local-copy > a {
  display: inline-block;
  margin-top: 24px;
}

.workspace-tree {
  overflow: hidden;
  border: 1px solid #c9d3cf;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(24, 32, 30, 0.1);
}

.workspace-root,
.workspace-file {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 14px 18px;
}

.workspace-root {
  background: var(--surface-soft);
}

.workspace-file {
  margin-left: 34px;
  border-top: 1px solid var(--line);
}

.workspace-root div,
.workspace-file div {
  min-width: 0;
}

.workspace-root strong,
.workspace-root span,
.workspace-file strong,
.workspace-file span {
  display: block;
}

.workspace-root strong,
.workspace-file strong {
  font-size: 17px;
}

.workspace-root span,
.workspace-file span {
  color: var(--muted);
  font-size: 13px;
}

.file-mark {
  display: grid !important;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #bdc9c4;
  border-radius: 6px;
  color: var(--brand) !important;
  background: var(--brand-soft);
  font-size: 13px !important;
  font-weight: 800;
}

.details {
  border-top: 1px solid var(--line);
  background: #fafbfb;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.detail-item {
  position: relative;
  min-height: 190px;
  padding: 34px 34px 34px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.detail-item::before {
  position: absolute;
  top: 34px;
  bottom: 34px;
  left: 0;
  width: 5px;
  content: "";
}

.detail-item h3 {
  margin-top: 0;
}

.detail-item.is-buy::before {
  background: var(--buy);
}

.detail-item.is-sell::before {
  background: var(--sell);
}

.detail-item.is-market::before {
  background: var(--market);
}

.detail-item.is-target::before {
  background: var(--target);
}

.download-section {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 52px max(24px, calc((100% - 1180px) / 2));
  color: #f7faf9;
  background: #20352f;
}

.download-section img {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
}

.download-section .section-kicker {
  color: #a7d0c2;
}

.download-section h2 {
  font-size: 30px;
}

.download-section p {
  margin-top: 6px;
  color: #cbd8d4;
  font-size: 15px;
}

.download-section .button-primary {
  color: var(--ink);
  background: #fff;
}

.download-section .button-primary:hover {
  background: #eaf1ee;
}

footer {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  min-height: 92px;
  padding: 20px max(24px, calc((100% - 1180px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-brand {
  font-size: 17px;
}

footer p {
  margin: 0;
}

.document-page,
.not-found-page {
  background: var(--surface-soft);
}

.document-page .site-header {
  grid-template-columns: 1fr auto;
}

.document-back {
  color: var(--brand);
  font-weight: 700;
}

.document-main {
  width: min(780px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 110px;
}

.document-main h1 {
  font-size: 52px;
}

.document-intro {
  margin-bottom: 64px;
  font-size: 20px;
}

.document-main section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.document-main h2 {
  margin-top: 0;
}

.document-main section p {
  margin: 8px 0 0;
  color: var(--muted);
}

.document-main code {
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--brand-strong);
  background: var(--brand-soft);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.document-main aside {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid #e4cd98;
  border-radius: 8px;
  color: #6f5317;
  background: var(--target-soft);
}

.document-footer {
  grid-template-columns: 1fr auto;
}

.document-footer a {
  color: var(--brand);
  font-size: 17px;
  font-weight: 700;
}

.not-found-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.not-found-page main {
  max-width: 560px;
  text-align: center;
}

.not-found-page img {
  margin: 0 auto 24px;
  border-radius: 8px;
}

.not-found-page h1 {
  font-size: 42px;
}

.not-found-page p:not(.section-kicker) {
  margin: 14px 0 26px;
  color: var(--muted);
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header > nav {
    display: none;
  }

  .hero-scrim {
    width: 64%;
  }

  .hero-content > * {
    width: 57%;
  }

  .hero h1 {
    font-size: 60px;
  }

  .hero-lead {
    font-size: 20px;
  }

  .release-band {
    grid-template-columns: 1fr auto;
  }

  .release-facts {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .release-notes-link {
    grid-column: 2;
    grid-row: 1;
  }

  .local-first {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

  footer {
    grid-template-columns: auto 1fr auto;
  }

  footer > span:last-child {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 60px;
  }

  .site-header {
    gap: 12px;
    padding: 0 16px;
  }

  .brand {
    font-size: 19px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .header-download {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .hero {
    min-height: clamp(540px, calc(100svh - 104px), 720px);
  }

  .hero-media {
    object-position: 58% center;
  }

  .hero-scrim {
    width: 100%;
    background: rgba(247, 249, 248, 0.88);
    border-right: 0;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding: 42px 0 48px;
  }

  .hero-content > * {
    width: 100%;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-lead {
    max-width: 520px;
    margin-top: 18px;
    font-size: 18px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button {
    flex: 1;
    padding-inline: 12px;
  }

  .hero-meta {
    gap: 7px 16px;
    font-size: 12px;
  }

  .release-band {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 16px;
  }

  .release-notes-link,
  .release-facts {
    grid-column: 1;
    grid-row: auto;
  }

  .release-facts {
    grid-template-columns: 1fr;
  }

  .release-facts > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding: 76px 16px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading.is-inline {
    display: block;
  }

  .section-heading.is-inline > p {
    margin-top: 14px;
  }

  .section-heading h2,
  .local-copy h2,
  .document-main h1 {
    font-size: 34px;
  }

  .section-heading > p:last-child,
  .section-heading.is-inline > p,
  .local-copy > p {
    font-size: 16px;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .workflow-grid article {
    padding: 28px 16px 30px;
  }

  .workflow-grid article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .workflow-grid h3,
  .detail-item h3 {
    font-size: 22px;
  }

  .product-frame img {
    aspect-ratio: 4 / 3;
    object-position: 56% center;
  }

  .product-frame figcaption {
    align-items: flex-start;
    padding: 12px;
  }

  .product-frame figcaption span {
    max-width: 70%;
  }

  .local-first {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .workspace-file {
    margin-left: 20px;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .detail-item {
    min-height: 0;
    padding: 28px 24px 30px 32px;
  }

  .detail-item::before {
    top: 28px;
    bottom: 28px;
  }

  .download-section {
    grid-template-columns: 52px 1fr;
    gap: 16px;
    padding: 34px 16px;
  }

  .download-section img {
    width: 52px;
    height: 52px;
  }

  .download-section h2 {
    font-size: 24px;
  }

  .download-section .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  footer {
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding: 22px 16px;
  }

  footer > p,
  footer > span:last-child {
    display: none;
  }

  footer nav {
    gap: 16px;
  }

  .document-main {
    width: calc(100% - 32px);
    padding: 70px 0 84px;
  }

  .document-intro {
    margin-bottom: 44px;
    font-size: 17px;
  }

  .not-found-page h1 {
    font-size: 34px;
  }
}

@media (max-width: 390px) {
  .header-download {
    width: 40px;
    overflow: hidden;
    justify-content: flex-start;
    white-space: nowrap;
  }

  .header-download span {
    flex: 0 0 18px;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 43px;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer nav {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
