@font-face {
  font-family: "Yueshang Sans";
  src: local("PingFang SC"), local("Microsoft YaHei"), local("Noto Sans CJK SC");
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #fff;
  --surface: #fff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-strong: rgba(255, 255, 255, 0.86);
  --surface-subtle: #fbfcfe;
  --page-subtle: #f7f9fc;
  --badge: #eef1f6;
  --code-surface: #f1f4fa;
  --ink: #111b3f;
  --muted: #65708d;
  --nav-ink: #53607d;
  --quiet: #929bad;
  --quiet-strong: #64708b;
  --hero-meta: #9098ac;
  --hero-separator: #c2c8d5;
  --legal-copy: #56617b;
  --code-ink: #31446f;
  --blue: #203b99;
  --blue-solid: #203b99;
  --blue-deep: #172b78;
  --blue-gradient-end: #2754a8;
  --blue-card-gradient-end: #2354a5;
  --on-blue: #fff;
  --line: #dfe5f1;
  --line-hover: #b9c5dd;
  --frame-line: #dce3ef;
  --frame-highlight-line: #c6d3ec;
  --focus-ring: rgba(35, 104, 182, 0.45);
  --ambient-cyan: rgba(149, 229, 242, 0.12);
  --ambient-purple: rgba(174, 156, 255, 0.1);
  --shadow-icon: 0 7px 18px rgba(25, 54, 132, 0.2);
  --shadow-button: 0 13px 27px rgba(29, 53, 133, 0.24);
  --shadow-button-hover: 0 17px 32px rgba(29, 53, 133, 0.3);
  --shadow-card-hover: 0 16px 35px rgba(31, 54, 118, 0.1);
  --shadow-primary-card: 0 15px 35px rgba(26, 51, 130, 0.2);
  --shadow-primary-card-hover: 0 19px 40px rgba(26, 51, 130, 0.28);
  --shadow-frame: 0 22px 60px rgba(27, 49, 105, 0.09);
  --shadow-frame-highlight: 0 26px 68px rgba(27, 56, 137, 0.14);
  --shadow-legal: 0 20px 55px rgba(27, 49, 105, 0.08);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: "Yueshang Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: radial-gradient(circle at 12% 5%, var(--ambient-cyan), transparent 22%),
    radial-gradient(circle at 88% 14%, var(--ambient-purple), transparent 24%);
}

::selection {
  color: var(--on-blue);
  background: var(--blue-solid);
}

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

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

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--on-blue);
  background: var(--blue-deep);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  height: 88px;
  margin: 0 auto;
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img,
.footer-brand img {
  border-radius: 12px;
  box-shadow: var(--shadow-icon);
}

.brand span {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--nav-ink);
  font-size: 14px;
  font-weight: 650;
}

nav a {
  transition: color 160ms ease;
}

nav a:hover {
  color: var(--blue);
}

.nav-github {
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface-glass);
}

.theme-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--nav-ink);
  background: var(--surface-glass);
  cursor: pointer;
  place-items: center;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease,
    transform 160ms ease;
}

.js .theme-toggle {
  display: grid;
}

.theme-toggle:hover {
  border-color: var(--line-hover);
  color: var(--blue);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-icon-auto,
.theme-icon-light,
.theme-icon-dark {
  display: none;
}

:root[data-theme-mode="auto"] .theme-icon-auto,
:root[data-theme-mode="light"] .theme-icon-light,
:root[data-theme-mode="dark"] .theme-icon-dark {
  display: initial;
}

.hero {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 88px;
}

.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: 32px 90px;
}

.hero-intro h1 {
  grid-column: 1;
  grid-row: 1;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(50px, 5.35vw, 76px);
  line-height: 1.16;
  letter-spacing: -0.065em;
}

.hero h1 {
  font-size: clamp(44px, 4.5vw, 64px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 em {
  color: var(--blue);
  font-style: normal;
}

.hero-lead {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 500px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  text-wrap: balance;
}

.hero-download {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  scroll-margin-top: 24px;
}

.download-actions {
  min-width: 0;
}

[data-browser] > .download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.browser-recommended {
  width: fit-content;
}

.browser-picker {
  position: relative;
}

.browser-picker summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  transition: color 160ms ease;
}

.browser-picker summary::-webkit-details-marker {
  display: none;
}

.browser-picker summary:hover {
  color: var(--blue);
}

.browser-picker summary svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 160ms ease;
}

.browser-picker[open] summary svg {
  transform: rotate(180deg);
}

[data-browser] .browser-picker .browser-grid {
  position: absolute;
  z-index: 5;
  top: calc(100% + 12px);
  right: 0;
  width: 290px;
  padding: 8px;
  grid-template-columns: 1fr;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-frame);
}

.download-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 14px;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  gap: 10px;
  border-color: var(--blue-deep);
  color: var(--on-blue);
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-gradient-end));
  box-shadow: var(--shadow-button);
}

.button-primary:hover {
  box-shadow: var(--shadow-button-hover);
}

.hero-meta {
  margin: 16px 0 0;
  color: var(--hero-meta);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-align: left;
}

.hero-meta span {
  margin: 0 7px;
  color: var(--hero-separator);
}

.hero-meta a {
  color: var(--blue);
  font-weight: 700;
}

.hero-meta a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 118px 0;
}

.browser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.browser-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60px;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

a.browser-card:hover {
  z-index: 2;
  border-color: var(--line-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.browser-card-primary {
  color: var(--on-blue);
  border-color: var(--blue-deep);
  background: var(--blue-deep);
  box-shadow: 0 4px 12px rgba(26, 51, 130, 0.12);
}

a.browser-card-primary:hover {
  border-color: var(--blue-deep);
  box-shadow: 0 6px 16px rgba(26, 51, 130, 0.18);
  transform: translateY(-2px);
}

.browser-logo {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.browser-card > span:nth-child(2) {
  min-width: 0;
}

.browser-card strong {
  display: block;
  font-size: 16px;
}

.browser-card > b {
  margin-left: auto;
  color: var(--quiet);
  font-size: 14px;
}

.browser-card-primary > b {
  color: rgba(255, 255, 255, 0.8);
}

.browser-recommended .browser-card {
  min-height: 48px;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 10px;
}

.browser-recommended .browser-logo {
  flex-basis: 24px;
  width: 24px;
  height: 24px;
}

.browser-recommended strong {
  margin: 0;
  font-size: 16px;
}

.browser-recommended .browser-card > b {
  display: none;
}

[data-browser] .browser-picker .browser-card {
  min-height: 56px;
  padding: 11px 14px;
  border-color: transparent;
  border-radius: 11px;
}

[data-browser] .browser-picker .browser-card:hover {
  background: var(--page-subtle);
  box-shadow: none;
  transform: none;
}

[data-browser] .browser-picker .browser-logo {
  flex-basis: 32px;
  width: 32px;
  height: 32px;
}

.actual-features {
  width: min(1180px, calc(100% - 48px));
  padding: 88px 0 104px;
  border-top: 1px solid var(--line);
}

.features-heading {
  max-width: 800px;
  margin: 0 0 56px;
  text-align: left;
}

.features-heading h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.features-heading h2 em,
.feature-story h3 em {
  color: var(--blue);
  font-style: normal;
}

.feature-story + .feature-story {
  margin-top: 100px;
  padding-top: 80px;
  border-top: 1px solid var(--line);
}

.feature-story-heading {
  margin: 0 0 32px;
  text-align: left;
}

.feature-story h3 {
  margin: 0;
  font-size: clamp(26px, 2.3vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.screenshot-card,
.feature-screenshot {
  overflow: hidden;
  border: 1px solid var(--frame-line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-frame);
}

.screenshot-card {
  margin: 0;
  padding: 10px;
}

.screenshot-card-highlight {
  border-color: var(--frame-highlight-line);
  box-shadow: var(--shadow-frame-highlight);
}

.screenshot-card img,
.feature-screenshot img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 10px);
}

.feature-screenshot {
  padding: 12px;
}

.feature-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.feature-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--nav-ink);
  background: var(--surface-glass-strong);
  font-size: 13px;
  font-weight: 700;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.feature-links a:hover {
  border-color: var(--line-hover);
  color: var(--blue);
  transform: translateY(-2px);
}

.feature-links span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--on-blue);
  background: var(--blue-solid);
  font-size: 10px;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 25px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 45px 0 35px;
  border-top: 1px solid var(--line);
}

.footer-brand strong,
.footer-brand small {
  display: block;
}

.footer-brand strong {
  margin-bottom: 3px;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.footer-brand small,
footer > p {
  color: var(--quiet);
  font-size: 12px;
}

.footer-meta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 13px;
}

.footer-links,
.footer-author {
  display: flex;
  align-items: center;
  color: var(--quiet-strong);
  font-size: 13px;
  font-weight: 650;
}

.footer-links {
  gap: 28px;
}

.footer-author {
  gap: 7px;
}

.footer-author > span {
  margin-right: 3px;
  color: var(--quiet-strong);
  font-size: 12px;
  font-weight: 650;
}

.footer-author a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.footer-author b {
  font-size: 8px;
  font-weight: 700;
}

.footer-links a:hover,
.footer-author a:hover {
  color: var(--blue);
}

.footer-author a:hover {
  border-color: var(--line-hover);
  transform: translateY(-1px);
}

footer > p {
  grid-column: 1 / -1;
  margin: 3px 0 0;
}

.legal-page {
  min-height: 100vh;
  background: var(--page-subtle);
}

.legal-header {
  height: 76px;
}

.legal-main {
  width: min(840px, calc(100% - 40px));
  margin: 44px auto 100px;
  padding: 50px clamp(25px, 6vw, 68px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-legal);
}

.legal-main h1 {
  margin-bottom: 12px;
  font-size: clamp(36px, 6vw, 54px);
  letter-spacing: -0.045em;
}

.legal-updated {
  margin-bottom: 42px;
  color: var(--quiet);
  font-size: 12px;
}

.legal-main h2 {
  margin: 38px 0 14px;
  font-size: 21px;
}

.legal-main p,
.legal-main li {
  color: var(--legal-copy);
  font-size: 14px;
  line-height: 1.9;
}

.legal-main a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-main code {
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--code-ink);
  background: var(--code-surface);
}

.legal-main hr {
  margin: 54px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0b1020;
  --surface: #131a2b;
  --surface-glass: rgba(19, 26, 43, 0.78);
  --surface-glass-strong: rgba(19, 26, 43, 0.9);
  --surface-subtle: #0f1626;
  --page-subtle: #080d19;
  --badge: #202b43;
  --code-surface: #1a2438;
  --ink: #eef3ff;
  --muted: #aeb9d0;
  --nav-ink: #b8c2d8;
  --quiet: #9aa6bf;
  --quiet-strong: #aeb9d0;
  --hero-meta: #9aa6bf;
  --hero-separator: #5d6982;
  --legal-copy: #b6c0d5;
  --code-ink: #d7e1f5;
  --blue: #8eafff;
  --blue-solid: #315db9;
  --blue-deep: #294fa4;
  --blue-gradient-end: #376bc7;
  --blue-card-gradient-end: #376bc7;
  --line: #2b3650;
  --line-hover: #465779;
  --frame-line: #303d5b;
  --frame-highlight-line: #526991;
  --focus-ring: #9bc1ff;
  --ambient-cyan: rgba(66, 180, 205, 0.1);
  --ambient-purple: rgba(128, 104, 220, 0.12);
  --shadow-icon: 0 7px 20px rgba(0, 0, 0, 0.35);
  --shadow-button: 0 13px 27px rgba(0, 0, 0, 0.32);
  --shadow-button-hover: 0 17px 32px rgba(0, 0, 0, 0.42);
  --shadow-card-hover: 0 16px 35px rgba(0, 0, 0, 0.3);
  --shadow-primary-card: 0 15px 35px rgba(0, 0, 0, 0.3);
  --shadow-primary-card-hover: 0 19px 40px rgba(0, 0, 0, 0.42);
  --shadow-frame: 0 22px 60px rgba(0, 0, 0, 0.28);
  --shadow-frame-highlight: 0 26px 68px rgba(0, 0, 0, 0.38);
  --shadow-legal: 0 20px 55px rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --page: #0b1020;
    --surface: #131a2b;
    --surface-glass: rgba(19, 26, 43, 0.78);
    --surface-glass-strong: rgba(19, 26, 43, 0.9);
    --surface-subtle: #0f1626;
    --page-subtle: #080d19;
    --badge: #202b43;
    --code-surface: #1a2438;
    --ink: #eef3ff;
    --muted: #aeb9d0;
    --nav-ink: #b8c2d8;
    --quiet: #9aa6bf;
    --quiet-strong: #aeb9d0;
    --hero-meta: #9aa6bf;
    --hero-separator: #5d6982;
    --legal-copy: #b6c0d5;
    --code-ink: #d7e1f5;
    --blue: #8eafff;
    --blue-solid: #315db9;
    --blue-deep: #294fa4;
    --blue-gradient-end: #376bc7;
    --blue-card-gradient-end: #376bc7;
    --line: #2b3650;
    --line-hover: #465779;
    --frame-line: #303d5b;
    --frame-highlight-line: #526991;
    --focus-ring: #9bc1ff;
    --ambient-cyan: rgba(66, 180, 205, 0.1);
    --ambient-purple: rgba(128, 104, 220, 0.12);
    --shadow-icon: 0 7px 20px rgba(0, 0, 0, 0.35);
    --shadow-button: 0 13px 27px rgba(0, 0, 0, 0.32);
    --shadow-button-hover: 0 17px 32px rgba(0, 0, 0, 0.42);
    --shadow-card-hover: 0 16px 35px rgba(0, 0, 0, 0.3);
    --shadow-primary-card: 0 15px 35px rgba(0, 0, 0, 0.3);
    --shadow-primary-card-hover: 0 19px 40px rgba(0, 0, 0, 0.42);
    --shadow-frame: 0 22px 60px rgba(0, 0, 0, 0.28);
    --shadow-frame-highlight: 0 26px 68px rgba(0, 0, 0, 0.38);
    --shadow-legal: 0 20px 55px rgba(0, 0, 0, 0.3);
  }
}

@media (max-width: 960px) {
  .hero {
    padding-top: 60px;
  }

  .hero-intro {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .hero-intro h1,
  .hero-lead,
  .hero-download {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-intro h1 {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-lead {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-download {
    width: 100%;
    max-width: 540px;
    margin: 4px auto 0;
  }

  [data-browser] > .download-actions {
    justify-content: center;
  }

  .hero-meta {
    text-align: center;
  }

  .browser-grid,
  .comparison-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .site-header,
  .hero,
  .section,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    height: 72px;
  }

  nav {
    gap: 13px;
    font-size: 12px;
  }

  .nav-features,
  .nav-privacy {
    display: none;
  }

  .nav-github {
    padding: 8px 12px;
  }

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

  .brand span {
    font-size: 18px;
  }

  .hero {
    padding: 48px 0 64px;
  }

  h1 {
    font-size: clamp(43px, 13vw, 60px);
  }

  .hero h1 {
    font-size: clamp(36px, 9.6vw, 42px);
  }

  .hero-lead {
    font-size: 16px;
    line-height: 1.8;
  }

  .hero-intro {
    gap: 24px;
  }

  [data-browser] > .download-actions {
    position: relative;
  }

  [data-browser] .browser-picker {
    position: static;
  }

  [data-browser] .browser-picker .browser-grid {
    left: 50%;
    right: auto;
    width: min(290px, calc(100vw - 32px));
    transform: translateX(-50%);
  }

  .hero-meta {
    line-height: 2;
  }

  .section {
    padding: 86px 0;
  }

  .browser-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .actual-features {
    padding-top: 64px;
    padding-bottom: 80px;
  }

  .features-heading {
    margin-bottom: 40px;
  }

  .features-heading h2 {
    font-size: clamp(28px, 7.5vw, 32px);
  }

  .feature-story + .feature-story {
    margin-top: 64px;
    padding-top: 56px;
  }

  .feature-story-heading {
    margin-bottom: 28px;
    text-align: left;
  }

  .feature-story h3 {
    font-size: 24px;
  }

  .feature-story h3 em {
    display: block;
  }

  .screenshot-card,
  .feature-screenshot {
    padding: 6px;
    border-radius: 18px;
  }

  .screenshot-card img,
  .feature-screenshot img {
    border-radius: 12px;
  }

  .feature-links {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .feature-links a {
    justify-content: space-between;
    width: 100%;
  }

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

  .footer-meta {
    align-items: flex-start;
  }

  .footer-links,
  .footer-author {
    flex-wrap: wrap;
  }

  footer > p {
    grid-column: auto;
  }

  .legal-main {
    margin-top: 20px;
    padding: 35px 22px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
