/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #515154;
  --ink-3: #6e6e73;
  --line: #d2d2d7;
  --hairline: rgba(0, 0, 0, 0.09);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.12);
  --seg-bg: rgba(0, 0, 0, 0.05);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --shadow-lg: 0 40px 80px -32px rgba(0, 0, 0, 0.32), 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 6px 16px -12px rgba(0, 0, 0, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  font: 100% / 1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #0d0d0f;
    --surface: #161618;
    --ink: #f5f5f7;
    --ink-2: #a1a1a6;
    --ink-3: #98989d;
    --line: #2c2c2e;
    --hairline: rgba(255, 255, 255, 0.14);
    --accent: #2997ff;
    --accent-hover: #4aa9ff;
    --accent-soft: rgba(41, 151, 255, 0.16);
    --seg-bg: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(0, 0, 0, 0.66);
    --shadow-lg: 0 40px 80px -32px rgba(0, 0, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 16px -12px rgba(0, 0, 0, 0.6);
  }
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

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

a {
  color: inherit;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
}

::selection {
  background: var(--accent-soft);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: min(1120px, calc(100vw - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}

.skip:focus-visible {
  transform: none;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--hairline);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 0.82em;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

/* ------------------------------------------------------------------ */
/* Navigation                                                          */
/* ------------------------------------------------------------------ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease;
}

.site-nav.is-scrolled {
  border-bottom-color: var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(1120px, calc(100vw - 48px));
  height: 52px;
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--ink-2);
}

.nav-links a {
  padding: 6px 0;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.lang {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: var(--seg-bg);
}

.lang a {
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 12px;
  text-decoration: none;
}

.lang a[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.nav-source {
  color: var(--ink-2);
  font-size: 13px;
  text-decoration: none;
}

.nav-source:hover {
  color: var(--ink);
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  padding: clamp(64px, 9vw, 116px) 0 0;
  text-align: center;
}

.hero-copy {
  max-width: 960px;
  margin-inline: auto;
  animation: rise 900ms var(--ease) both;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.hero-brand img {
  width: clamp(38px, 3.4vw, 44px);
  height: clamp(38px, 3.4vw, 44px);
  border-radius: 12px;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.5);
}

.display {
  font-size: clamp(2.9rem, 6.6vw, 5.6rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-sub {
  max-width: 660px;
  margin: 26px auto 0;
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

.hero-sub kbd {
  font-size: 0.78em;
  vertical-align: 1px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 100ms ease-out;
}

.button:active {
  transform: scale(0.97);
}

.button--primary {
  background: var(--accent);
  color: #ffffff;
}

.button--primary:hover {
  background: var(--accent-hover);
}

.button--quiet {
  color: var(--accent);
}

.button--quiet:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-visual {
  margin-top: clamp(48px, 7vw, 80px);
  animation: rise 900ms var(--ease) 120ms both;
}

/* ------------------------------------------------------------------ */
/* Product mock                                                        */
/* ------------------------------------------------------------------ */

.mock {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--hairline);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.address {
  margin-inline: auto;
  padding: 3px 14px;
  border: 1px solid var(--hairline);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0;
}

.mock-badge img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.mock-page {
  padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 44px) clamp(28px, 4vw, 40px);
}

.article {
  max-width: 700px;
  margin-inline: auto;
  text-align: left;
}

.article-meta {
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.article-title {
  margin: 10px 0 18px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.article p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}

.article p + p {
  margin-top: 14px;
}

.selection {
  padding: 1px 0;
  background: var(--accent-soft);
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  color: var(--ink);
}

/* Live answer panel */

.ai-panel {
  margin-top: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: 0 22px 44px -32px rgba(0, 0, 0, 0.55);
}

.ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px 7px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--hairline);
}

.ai-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ai-combo {
  padding: 1px 6px;
  border: 1px solid var(--hairline);
  border-radius: 5px;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 500;
}

.ai-tools {
  display: flex;
  gap: 6px;
}

.ai-tool {
  padding: 3px 8px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 11px;
}

.ai-tool--stop {
  color: var(--ink-2);
}

.ai-body {
  min-height: 190px;
  max-height: 260px;
  padding: 14px 16px 16px;
  overflow: auto;
  overscroll-behavior: contain;
}

.ai-md {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.62;
  text-align: left;
}

.ai-md > :first-child {
  margin-top: 0;
}

.ai-md p {
  margin: 0 0 0.6em;
}

.ai-md ul {
  margin: 0.2em 0 0.7em;
  padding-left: 1.25em;
}

.ai-md li {
  margin: 0.15em 0;
}

.ai-md strong {
  font-weight: 600;
}

.ai-md code {
  padding: 0.1em 0.3em;
  border-radius: 4px;
  background: var(--bg-alt);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.ai-md .ai-inline-math-inline {
  white-space: nowrap;
}

.ai-md math {
  font-size: 1.02em;
}

.ai-md.is-streaming > :last-child::after {
  content: "▍";
  display: inline-block;
  margin-left: 2px;
  color: var(--accent);
  animation: blink 0.9s steps(1) infinite;
  vertical-align: baseline;
}

.replay-row {
  margin-top: 16px;
  text-align: center;
}

.replay {
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.replay:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.replay[hidden] {
  display: none;
}

/* ------------------------------------------------------------------ */
/* Feature blocks                                                      */
/* ------------------------------------------------------------------ */

.feature-block {
  padding: clamp(72px, 11vw, 130px) 0;
}

.feature-block--alt {
  background: var(--bg-alt);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.feature--reverse .feature-visual {
  order: -1;
}

.feature-copy h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.feature-copy > p {
  max-width: 33em;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.5;
}

.feature-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.5;
}

.feature-note code,
.install-copy code {
  padding: 0.1em 0.35em;
  border: 1px solid var(--hairline);
  border-radius: 5px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* Prompt keys */

.keys {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.key {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px 13px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.key--active {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--hairline));
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.key-combo {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.key-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.key--active .key-name {
  color: var(--accent);
}

/* Document sample */

.doc {
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.doc h3 {
  margin-bottom: 10px;
  font-size: 19px;
  letter-spacing: -0.015em;
}

.doc p {
  margin-bottom: 16px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}

.doc code {
  padding: 0.1em 0.3em;
  border-radius: 4px;
  background: var(--bg-alt);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.doc table {
  width: 100%;
  margin-bottom: 16px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.doc th,
.doc td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
}

.doc th {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
}

.doc pre {
  margin: 0 0 16px;
  padding: 12px 14px;
  overflow: auto;
  background: var(--bg-alt);
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.55;
}

.doc pre code {
  padding: 0;
  background: none;
}

.doc-formula {
  padding: 6px 0 2px;
  color: var(--ink);
  font-family: "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-style: italic;
  text-align: center;
}

.doc-formula sup {
  font-size: 0.62em;
  font-style: normal;
}

/* Settings sample */

.settings {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
}

.setting:last-child {
  border-bottom: 0;
}

.setting-label {
  color: var(--ink-2);
}

.setting-value {
  overflow: hidden;
  color: var(--ink);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setting-value--mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0;
}

.setting-value--accent {
  color: var(--accent);
}

.switch {
  display: inline-block;
  position: relative;
  width: 36px;
  height: 21px;
  margin-left: 8px;
  background: var(--accent);
  border-radius: 999px;
  vertical-align: -5px;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 17px;
  height: 17px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* ------------------------------------------------------------------ */
/* Privacy band                                                        */
/* ------------------------------------------------------------------ */

.privacy {
  padding: clamp(88px, 12vw, 148px) 0;
  background: #000000;
  color: #f5f5f7;
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  .privacy {
    background: #0b0b0d;
    border-block: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.privacy h2 {
  max-width: 720px;
  margin-inline: auto;
  font-size: clamp(2.25rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.privacy-lead {
  max-width: 620px;
  margin: 20px auto 0;
  color: rgba(245, 245, 247, 0.7);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.privacy-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 64px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  list-style: none;
  text-align: left;
}

.privacy-points li {
  padding: 26px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.privacy-points li:last-child {
  border-right: 0;
}

.privacy-points h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.privacy-points p {
  color: rgba(245, 245, 247, 0.6);
  font-size: 14px;
  line-height: 1.5;
}

/* ------------------------------------------------------------------ */
/* Specs                                                               */
/* ------------------------------------------------------------------ */

.section {
  padding: clamp(72px, 11vw, 124px) 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.section-lead {
  max-width: 620px;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
}

.specs {
  margin: 44px 0 0;
  border-top: 1px solid var(--hairline);
}

.spec {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}

.spec dt {
  color: var(--ink-3);
  font-size: 14px;
}

.spec dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.spec code {
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: var(--bg-alt);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* ------------------------------------------------------------------ */
/* Install                                                             */
/* ------------------------------------------------------------------ */

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(32px, 6vw, 88px);
}

.install-copy > p {
  max-width: 30em;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
}

.step:last-child {
  border-bottom: 1px solid var(--hairline);
}

.step-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.step h3 {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.step p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}

.step code {
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.88em;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* FAQ                                                                 */
/* ------------------------------------------------------------------ */

.faq-wrap {
  max-width: 840px;
}

.faq-list {
  margin-top: 40px;
  border-top: 1px solid var(--hairline);
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--ink-3);
  font-weight: 400;
  transition: transform 240ms var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  max-width: 64ch;
  padding: 0 0 22px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
  padding: 44px 0 52px;
  background: var(--bg-alt);
  border-top: 1px solid var(--hairline);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.footer-brand img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
  color: var(--ink-2);
  font-size: 12.5px;
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-legal {
  flex-basis: 100%;
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.55;
}

/* ------------------------------------------------------------------ */
/* Chinese typography                                                  */
/* ------------------------------------------------------------------ */

html[lang="zh-CN"] .display {
  line-height: 1.16;
  letter-spacing: -0.018em;
}

html[lang="zh-CN"] .feature-copy h2,
html[lang="zh-CN"] .section-title,
html[lang="zh-CN"] .privacy h2 {
  line-height: 1.2;
  letter-spacing: -0.012em;
}

html[lang="zh-CN"] .hero-sub,
html[lang="zh-CN"] .privacy-lead {
  line-height: 1.6;
  letter-spacing: 0;
}

html[lang="zh-CN"] .article-title {
  line-height: 1.3;
}

/* ------------------------------------------------------------------ */
/* Policy pages                                                        */
/* ------------------------------------------------------------------ */

.policy {
  padding: clamp(48px, 7vw, 80px) 0 clamp(72px, 10vw, 112px);
}

.policy-wrap {
  max-width: 760px;
  margin-inline: auto;
}

.policy-back {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--accent);
  font-size: 14px;
  text-decoration: none;
}

.policy-back:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
}

.policy-updated {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 14px;
}

.policy h2 {
  margin-top: 42px;
  font-size: 20px;
  letter-spacing: -0.015em;
}

.policy p,
.policy li {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
}

.policy ul {
  margin: 4px 0 0;
  padding-left: 22px;
}

.policy li {
  margin-top: 8px;
}

.policy a {
  color: var(--accent);
  text-decoration: none;
}

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

.policy code {
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: var(--bg-alt);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.policy .policy-lede {
  margin-top: 20px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.5;
}

/* ------------------------------------------------------------------ */
/* Motion                                                              */
/* ------------------------------------------------------------------ */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .feature--reverse .feature-visual {
    order: 0;
  }

  .feature-copy > p {
    max-width: 38em;
  }

  .install-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .privacy-points {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 48px;
  }

  .privacy-points li {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .privacy-points li:last-child {
    border-bottom: 0;
  }

  .spec {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .footer-nav {
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  .wrap,
  .nav-inner {
    width: calc(100vw - 32px);
  }

  .brand span {
    display: none;
  }

  .nav-inner {
    gap: 16px;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-sub {
    margin-top: 20px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .mock-bar {
    height: 36px;
  }

  .address {
    font-size: 11px;
    padding: 2px 10px;
  }

  .ai-body {
    min-height: 150px;
    max-height: 220px;
  }

  .ai-md {
    font-size: 13.5px;
    line-height: 1.58;
  }

  .keys {
    gap: 8px;
  }

  .key {
    padding: 12px 10px;
  }

  .key-name {
    font-size: 13px;
  }

  .setting {
    padding: 14px 16px;
    font-size: 13px;
  }

  .setting-value--mono {
    font-size: 11.5px;
  }

  .section-lead {
    font-size: 16px;
  }
}

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

  .hero-copy,
  .hero-visual {
    animation: none;
  }

  .ai-md.is-streaming > :last-child::after {
    animation: none;
  }

  .button,
  .faq-item summary::after,
  .skip {
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-nav {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
