:root {
  color-scheme: light;
  --paper: #f8f8f4;
  --ink: #181f27;
  --muted: #515b65;
  --line: #dddfdb;
  --blue: #184dd6;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 3px solid #537bff; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 88px)); margin-inline: auto; }
.header { border-bottom: 1px solid var(--line); }
.nav, .nav nav, .brand { display: flex; align-items: center; }
.nav { height: 77px; justify-content: space-between; }
.brand { gap: 8px; font-size: 19px; font-weight: 750; letter-spacing: -.04em; }
.brand img { display: block; }
.nav nav { gap: 26px; }
.nav-install { font-size: 14px; color: var(--muted); }
.nav-install:hover { color: var(--blue); }
.language { display: flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 8px; background: #eeefea; }
.language button { border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 650; min-width: 39px; padding: 6px 8px; }
.language button[aria-pressed="true"] { background: white; color: var(--ink); box-shadow: 0 1px 3px #202b4020; }
.hero { padding-block: 99px 100px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(36px, 5.5vw, 82px); }
.platform, .meta, .sample-keys, .demo-ip {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}
.platform { display: flex; align-items: center; gap: 9px; color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .11em; }
.platform > span { width: 7px; height: 7px; border-radius: 50%; background: #426dff; box-shadow: 0 0 0 3px #e4ebff; }
h1 { margin: 22px 0 21px; font-size: clamp(51px, 6.8vw, 95px); line-height: 1.095; letter-spacing: -.083em; }
h1 span { display: block; }
h1 span:last-child { color: var(--blue); }
html[lang="en"] h1 { font-size: clamp(42px, 5.9vw, 83px); letter-spacing: -.073em; }
.lede { max-width: 380px; color: var(--muted); font-size: 17px; line-height: 1.75; margin: 0 0 27px; }
.download { display: inline-flex; min-height: 52px; align-items: center; gap: 27px; padding: 0 16px 0 19px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; }
.download:hover { background: #123cae; }
.download span:last-child { font-size: 19px; line-height: 1; }
.meta { color: var(--muted); font-size: 11px; margin: 13px 0 0; }
.meta span { margin-inline: 3px; }
.demo { margin: 0; min-width: 0; border-radius: 17px; overflow: hidden; background: #131b2a; color: #e8edfb; border: 1px solid #343f54; box-shadow: 0 30px 55px -30px #293b5c88, 0 3px 9px #14284118; }
.demo-top { display: grid; align-items: center; grid-template-columns: 1fr auto 1fr; border-bottom: 1px solid #303a4e; padding: 13px 16px; background: #202a3d; color: #c9d1e2; font-size: 12px; }
.dots { display: flex; gap: 5px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #667389; }
.dots i:first-child { background: #f68883; } .dots i:nth-child(2) { background: #f2c77a; } .dots i:last-child { background: #7acc9f; }
.demo-ip { justify-self: end; font-size: 10px; font-weight: 700; padding: 3px 5px; border: 1px solid #65728a; border-radius: 4px; }
.demo-body { padding: 20px; background: radial-gradient(ellipse at 86% 96%, #263a70, transparent 70%), #131b2a; }
.demo-apps { display: flex; gap: 9px; }
.demo-apps button { min-width: 0; flex: 1; display: flex; gap: 8px; align-items: center; padding: 8px 10px; background: #202a3a; border: 1px solid #3d4b60; border-radius: 8px; color: #d8e1f3; font-size: 13px; font-weight: 620; }
.demo-apps button:hover { background: #2a3852; }
.demo-apps button[aria-pressed="true"] { background: #304781; border-color: #7f9bf6; color: white; }
.app-mark { display: grid; place-items: center; flex: 0 0 23px; height: 23px; border-radius: 6px; font-size: 11px; color: #fff; }
.wechat { background: #276b53; }
.discord { background: #5b56bc; }
.sample { min-height: 213px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-top: 16px; border: 1px solid #4b5b77; border-radius: 11px; background: #182238; }
.source { display: inline-flex; gap: 7px; align-items: center; border: 1px solid #4e6196; padding: 5px 9px; border-radius: 5px; font-size: 11px; color: #d3ddff; }
.source > span:first-child { width: 5px; height: 5px; background: #9ab0ff; border-radius: 50%; }
.sample-characters { display: block; font-size: 64px; font-weight: 680; line-height: 1.3; letter-spacing: .08em; margin: 5px 0; color: #fbfcff; }
.sample-keys { color: #b1bfde; font-size: 12px; letter-spacing: .08em; }
figcaption { font-size: 12px; color: #b6c2da; padding: 13px 20px 14px; border-top: 1px solid #313c51; }
.walkthrough { padding-bottom: clamp(38px, 7vw, 78px); max-width: 880px; }
.walkthrough h2 { margin: 0 0 16px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.05em; }
.walkthrough video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #ecede8; }
.details { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.details > div { padding: 24px 26px 28px; }
.details > div:first-child { padding-left: 0; }
.details > div + div { border-left: 1px solid var(--line); }
.feature-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 8px; background: #e9eeff; color: var(--blue); font-size: 20px; }
.details h2 { font-size: 17px; margin: 13px 0 6px; }
.details p, .compat, .signing { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }
.install { padding-block: 65px; scroll-margin-top: 22px; }
.install-box { border: 1px solid var(--line); border-radius: 15px; background: #fff; padding: 30px 38px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; }
.install h2 { margin: 0 0 7px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.05em; }
.install ol { margin: 0 0 12px; padding-inline-start: 23px; color: var(--ink); font-size: 14px; line-height: 1.7; }
.install li + li { margin-top: 5px; }
.signing { font-size: 12px; }
.footer { padding-block: 19px 27px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); }
.footer > span:first-child { color: var(--ink); font-weight: 700; }
@media (max-width: 840px) {
  .wrap { width: calc(100% - 48px); }
  .hero { gap: 30px; padding-block: 65px; }
  h1 { font-size: clamp(42px, 7.5vw, 65px); }
  .demo-body { padding: 13px; }
}
@media (max-width: 650px) {
  .nav { height: 65px; }
  .nav nav { gap: 12px; }
  .hero, .details, .install-box { grid-template-columns: 1fr; }
  .hero { padding-block: 53px 44px; gap: 34px; }
  h1 { font-size: clamp(46px, 11vw, 68px); }
  html[lang="en"] h1 { font-size: clamp(43px, 10vw, 65px); }
  .details > div { padding: 19px 0; }
  .details > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .install { padding-block: 38px; }
  .install-box { padding: 20px; gap: 16px; }
}
@media (max-width: 360px) { .wrap { width: calc(100% - 32px); } .nav-install { display: none; } }
