@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/Manrope-Variable.ttf") format("truetype");
}

:root {
  --ink: #17191c;
  --muted: #666862;
  --paper: #f5f0e8;
  --paper-deep: #ece4d8;
  --white: #fffdf9;
  --line: rgba(23, 25, 28, 0.14);
  --accent: #e75935;
  --accent-dark: #c33f20;
  --signal: #2f806a;
  --shadow: 0 24px 70px rgba(54, 42, 31, 0.14);
  --shell: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(23, 25, 28, 0.045) 0.7px, transparent 0.7px);
  background-size: 5px 5px;
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

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

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--ink);
  color: white;
  opacity: 0;
  transform: translateY(-160%);
  transition: 160ms ease;
}

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

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  padding: 22px 0;
}

.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  border: 1px solid rgba(23, 25, 28, 0.1);
  border-radius: 11px;
  box-shadow: 0 5px 16px rgba(29, 25, 22, 0.1);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a,
.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 590;
  text-decoration: none;
  transition: color 160ms ease;
}

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

.locale-switch {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 7px;
  color: #9a958c;
}

.locale-switch a {
  padding: 4px;
  border: 0;
  background: transparent;
  color: #88847d;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.locale-switch a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 830px;
  overflow: hidden;
  padding: 165px 0 95px;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: -320px;
  right: -210px;
  width: 820px;
  height: 820px;
  border: 1px solid rgba(231, 89, 53, 0.14);
  border-radius: 50%;
  background: radial-gradient(circle at 42% 52%, rgba(231, 89, 53, 0.18), rgba(231, 89, 53, 0) 67%);
  content: "";
}

.hero::after {
  position: absolute;
  z-index: -1;
  bottom: -390px;
  left: -270px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 128, 106, 0.12), rgba(47, 128, 106, 0) 66%);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(570px, 1.12fr);
  align-items: center;
  gap: 54px;
}

.hero-copy {
  container-type: inline-size;
}

.eyebrow,
.section-kicker {
  margin: 0 0 20px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(54px, 6.1vw, 86px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

html[lang="en"] .hero h1 {
  font-size: clamp(36px, 11.4cqw, 80px);
  word-spacing: 0.06em;
}

html[lang="en"] .hero h1 > span {
  display: block;
  white-space: nowrap;
}

.headline-accent {
  display: block;
  color: var(--accent);
}

.hero-lede {
  max-width: 590px;
  margin: 30px 0 0;
  color: #555750;
  font-size: 19px;
  letter-spacing: -0.018em;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(23, 25, 28, 0.2);
  color: white;
}

.button-primary:hover {
  background: #292c30;
  box-shadow: 0 16px 34px rgba(23, 25, 28, 0.24);
}

.button-icon {
  font-size: 22px;
  font-weight: 430;
  line-height: 1;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 680;
  line-height: 2;
  text-decoration: none;
}

.text-link:hover {
  border-color: var(--ink);
}

.requirements {
  margin: 18px 0 0;
  color: #85817a;
  font-size: 12px;
  line-height: 1.5;
}

.hero-visual {
  position: relative;
  min-height: 510px;
}

.source-card,
.result-card {
  position: absolute;
  border: 1px solid rgba(23, 25, 28, 0.11);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.source-card {
  z-index: 1;
  top: 0;
  left: 0;
  width: 76%;
  overflow: hidden;
  background: #242629;
  color: #e8e9e5;
  transform: rotate(-2.5deg);
}

.window-bar {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #1d1f21;
}

.window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #676a6e;
}

.window-bar span:first-child {
  background: #e66a51;
}

.window-bar small {
  margin-left: auto;
  color: #909398;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 10px;
}

.source-sample {
  min-height: 300px;
  margin: 0;
  padding: 26px 28px;
  overflow: hidden;
  color: #d5d7d2;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.lang-zh {
  display: none;
}

html[data-locale="zh"] .lang-en {
  display: none;
}

html[data-locale="zh"] .lang-zh {
  display: block;
}

.shortcut-pill {
  position: absolute;
  z-index: 4;
  top: 211px;
  left: 43%;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px;
  border: 1px solid rgba(23, 25, 28, 0.13);
  border-radius: 13px;
  background: rgba(255, 253, 249, 0.95);
  box-shadow: 0 13px 35px rgba(23, 25, 28, 0.18);
  transform: rotate(2deg);
}

kbd {
  display: inline-flex;
  min-width: 29px;
  height: 29px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border: 1px solid #c9c4bb;
  border-bottom-width: 3px;
  border-radius: 7px;
  background: #fbf9f5;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.04);
  color: #393a3b;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
}

.result-card {
  z-index: 3;
  right: 0;
  bottom: 0;
  width: 85%;
  overflow: hidden;
  background: white;
  transform: rotate(1.5deg);
}

.result-topline {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid #e5e6e3;
  color: #666a65;
  font-size: 10px;
  font-weight: 650;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #43a67b;
  box-shadow: 0 0 0 4px rgba(67, 166, 123, 0.13);
}

.result-format {
  margin-left: auto;
  color: #999b97;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.result-card img {
  width: 100%;
  height: 238px;
  object-fit: cover;
  object-position: center top;
}

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.5);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-grid p {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 11px;
  justify-content: center;
  margin: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
  color: #4d504b;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}

.trust-grid p:last-child {
  border-right: 0;
}

.trust-mark {
  color: var(--signal);
  font-size: 8px;
}

.section {
  padding: 130px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  align-items: start;
  gap: 60px;
  margin-bottom: 70px;
}

.section h2 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 730;
  letter-spacing: -0.052em;
  line-height: 1.04;
}

.steps {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 145px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
}

.step-number {
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
}

.steps h3 {
  margin: 0 0 7px;
  font-size: 27px;
  letter-spacing: -0.035em;
}

.steps p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.steps kbd {
  min-width: 88px;
  height: 42px;
  border-radius: 9px;
  font-size: 15px;
}

.showcase {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #181a1d;
  color: white;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(560px, 1.24fr);
  align-items: center;
  gap: 85px;
}

.showcase .section-kicker {
  color: #ef7b5d;
}

.showcase h2 {
  max-width: 540px;
}

.showcase-copy > p:not(.section-kicker) {
  margin: 28px 0 0;
  color: #a9aaa8;
  font-size: 16px;
  line-height: 1.7;
}

.format-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.format-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d6d7d4;
  font-size: 13px;
  font-weight: 610;
}

.format-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid #3b3e41;
  border-radius: 9px;
  background: #232528;
  color: #ef7b5d;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
}

.showcase-image {
  margin: 0;
}

.image-frame {
  overflow: hidden;
  padding: 12px;
  border: 1px solid #35383c;
  border-radius: 20px;
  background: #232529;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  transform: rotate(1deg);
}

.image-frame img {
  width: 100%;
  height: auto;
  border-radius: 11px;
}

.showcase-image figcaption {
  margin-top: 18px;
  color: #797d80;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-align: right;
  text-transform: uppercase;
}

.privacy-section {
  overflow: hidden;
}

.privacy-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 530px;
  align-items: center;
  gap: 80px;
  padding: 70px 80px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--white);
  box-shadow: 0 24px 80px rgba(67, 52, 38, 0.08);
}

.privacy-copy h2 {
  max-width: 600px;
}

.privacy-copy > p:not(.section-kicker) {
  max-width: 620px;
  margin: 28px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.privacy-signal {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 1;
  justify-self: center;
}

.install-section {
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.45);
}

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: 85px;
}

.install-copy > p:not(.section-kicker) {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.install-steps {
  margin: 38px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.install-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.install-steps li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
}

.install-steps p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.install-steps strong {
  color: var(--ink);
}

.install-steps kbd {
  min-width: auto;
  height: 24px;
  padding-inline: 6px;
  font-size: 11px;
}

.release-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}

.faq-panel {
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(67, 52, 38, 0.08);
}

.faq-panel h2 {
  font-size: clamp(34px, 4vw, 48px);
}

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

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 19px 34px 19px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 690;
  letter-spacing: -0.01em;
  list-style: none;
}

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

.faq-list summary::after {
  position: absolute;
  top: 17px;
  right: 2px;
  color: var(--accent);
  content: "+";
  font-size: 21px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: -3px 30px 20px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.error-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 30px;
}

.error-page {
  width: min(680px, 100%);
  padding: 64px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.error-page img {
  width: 84px;
  margin: 0 auto 30px;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(23, 25, 28, 0.14);
}

.error-code {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.error-page h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 68px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.error-page > p:not(.error-code) {
  max-width: 520px;
  margin: 24px auto 0;
  color: var(--muted);
  line-height: 1.7;
}

.error-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 34px;
}

.signal-orbit,
.signal-core,
.signal-label {
  position: absolute;
}

.signal-orbit {
  inset: 0;
  border: 1px solid rgba(47, 128, 106, 0.22);
  border-radius: 50%;
}

.orbit-two {
  inset: 52px;
  border-style: dashed;
  animation: orbit 28s linear infinite;
}

.signal-core {
  top: 50%;
  left: 50%;
  display: grid;
  width: 148px;
  height: 148px;
  place-items: center;
  border: 1px solid rgba(47, 128, 106, 0.2);
  border-radius: 37px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(44, 74, 65, 0.15);
  transform: translate(-50%, -50%) rotate(-3deg);
}

.signal-core img {
  border-radius: 26px;
}

.signal-label {
  padding: 7px 10px;
  border: 1px solid rgba(47, 128, 106, 0.22);
  border-radius: 999px;
  background: var(--white);
  color: var(--signal);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.label-local {
  top: 14%;
  right: 4%;
}

.label-offline {
  bottom: 17%;
  left: 0;
}

.label-private {
  right: 1%;
  bottom: 6%;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.final-cta {
  padding-top: 0;
}

.cta-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  padding: 50px 56px;
  border-radius: 25px;
  background: var(--accent);
  box-shadow: 0 24px 65px rgba(145, 57, 34, 0.2);
  color: white;
}

.cta-card > img {
  border-radius: 21px;
  box-shadow: 0 12px 25px rgba(95, 35, 20, 0.25);
}

.cta-card .section-kicker {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.cta-card h2 {
  max-width: 690px;
  font-size: clamp(34px, 4.5vw, 52px);
}

.cta-card p:last-child {
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.button-light {
  flex-shrink: 0;
  background: white;
  box-shadow: 0 12px 30px rgba(88, 29, 15, 0.2);
  color: var(--ink);
}

.button-light:hover {
  background: #fff8f3;
}

footer {
  padding: 34px 0 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-grid p {
  margin: 0;
  color: #89857e;
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-self: end;
  gap: 22px;
}

:focus-visible {
  outline: 3px solid rgba(231, 89, 53, 0.48);
  outline-offset: 4px;
}

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

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    width: min(760px, 100%);
    min-height: 570px;
    margin-inline: auto;
  }

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

  .showcase-copy {
    max-width: 740px;
  }

  .privacy-card {
    padding: 60px;
  }

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

  .cta-card {
    grid-template-columns: auto 1fr;
  }

  .cta-card .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 30px, 620px);
  }

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

  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 125px 0 75px;
  }

  .hero::before {
    top: -280px;
    right: -470px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 70px);
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .hero-visual {
    min-height: 435px;
  }

  .source-card {
    width: 88%;
  }

  .source-sample {
    min-height: 245px;
    padding: 20px;
    font-size: 10px;
  }

  .shortcut-pill {
    top: 170px;
    left: auto;
    right: 2%;
  }

  .result-card {
    width: 92%;
  }

  .result-card img {
    height: 185px;
  }

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

  .trust-grid p:nth-child(2) {
    border-right: 0;
  }

  .trust-grid p:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 90px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 45px;
  }

  .section h2 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .steps li {
    grid-template-columns: 48px 1fr;
    gap: 15px;
    min-height: 135px;
  }

  .steps kbd {
    display: none;
  }

  .showcase-grid {
    gap: 45px;
  }

  .format-list {
    grid-template-columns: 1fr;
  }

  .privacy-card {
    grid-template-columns: 1fr;
    gap: 45px;
    padding: 45px 26px;
    border-radius: 22px;
  }

  .privacy-signal {
    width: min(330px, 100%);
  }

  .faq-panel,
  .error-page {
    padding: 38px 26px;
  }

  .release-actions,
  .error-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .error-actions {
    align-items: center;
  }

  .cta-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 38px 28px;
  }

  .cta-card > img {
    width: 72px;
    height: 72px;
  }

  .cta-card .button {
    grid-column: auto;
  }

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

  .footer-links {
    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;
  }
}
