:root {
  color-scheme: light;
  --bg: #faf9f6;
  --panel: #ffffff;
  --panel-2: #f3f1ec;
  --line: #e3ded4;
  --line-soft: rgba(18, 18, 18, 0.08);
  --text: #111111;
  --muted: #65635f;
  --faint: #8b8780;
  --accent: #d92d3b;
  --accent-2: #b51f2c;
  --ok: #138a56;
  --shadow: 0 14px 36px rgba(40, 36, 28, 0.055);
  --content: min(1120px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 44%, #f6f3ec 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 calc((100% - min(1120px, calc(100% - 48px))) / 2);
  background: rgba(250, 249, 246, 0.86);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 760;
}

.desktop-nav {
  display: flex;
  gap: 30px;
  color: var(--muted);
  font-size: 13px;
}

.desktop-nav a:hover {
  color: var(--text);
}

.header-actions,
.hero-actions,
.download-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.solid-button,
.outline-button,
.text-button,
.link-button {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.solid-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 620;
  font-size: 14px;
}

.solid-button {
  background: var(--accent);
  color: white;
  box-shadow: none;
}

.solid-button:hover {
  background: #c92634;
}

.outline-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.outline-button:hover {
  border-color: rgba(17, 17, 17, 0.24);
}

.text-button,
.link-button {
  background: transparent;
  color: var(--muted);
}

.text-button:hover,
.link-button:hover {
  color: var(--text);
}

.small {
  min-height: 36px;
  padding: 0 14px;
}

.tiny {
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
}

.wide {
  width: 100%;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.hero {
  width: var(--content);
  min-height: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(44px, 7vw, 92px);
  align-items: center;
  padding: 118px 0 72px;
}

.hero-content {
  max-width: 650px;
  padding-top: 10px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  max-width: 700px;
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: 0;
  font-weight: 760;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.16;
  letter-spacing: 0;
  font-weight: 730;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.hero-copy {
  max-width: 590px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 590px;
  margin-top: 30px;
}

.hero-metrics span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.hero-metrics strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1;
}

.hero-metrics em {
  color: var(--muted);
  font-style: normal;
  line-height: 1;
}

.product-preview {
  align-self: center;
  border: 1px solid #272b33;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 22%),
    #101216;
  color: #f4f5f7;
  box-shadow: 0 24px 70px rgba(16, 18, 22, 0.18);
  padding: 16px;
}

.preview-top,
.preview-sequence button {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-top {
  padding-bottom: 16px;
  border-bottom: 1px solid #1c2027;
}

.preview-top span {
  font-size: 20px;
  font-weight: 720;
}

.preview-top small {
  display: block;
  margin-top: 5px;
  color: #5c6470;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.preview-top em {
  font-style: normal;
  color: var(--ok);
  font-size: 12px;
  font-weight: 650;
}

.preview-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 14px 0;
  padding: 4px;
  border: 1px solid #1c2027;
  border-radius: 12px;
  background: #0c0e12;
}

.preview-tabs button {
  padding: 9px 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #878e9a;
  text-align: center;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.preview-tabs .active {
  background: #151820;
  color: #f4f5f7;
}

.preview-feature {
  margin: 0 0 12px;
  padding: 13px;
  border: 1px solid #1c2027;
  border-radius: 8px;
  background: #0c0e12;
}

.preview-feature strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.preview-feature p {
  margin: 0;
  color: #878e9a;
  font-size: 13px;
  line-height: 1.55;
}

.preview-sequence {
  display: grid;
  gap: 8px;
}

.preview-sequence button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 13px;
  border: 1px solid #1c2027;
  border-radius: 8px;
  background: transparent;
  color: #f4f5f7;
  cursor: pointer;
  text-align: left;
}

.preview-sequence button:hover,
.preview-sequence button.is-active {
  border-color: #2c3340;
  background: #151820;
}

.preview-sequence strong {
  font-size: 15px;
}

.preview-sequence span {
  margin-left: 12px;
  color: #878e9a;
  font-size: 13px;
  text-align: right;
}

.timeline-visual {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #0c0e12;
}

.timeline-visual span {
  width: var(--w);
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff4d4d, #2a2f38);
  transition: width 180ms ease;
}

.preview-hint {
  margin-top: 10px;
  color: #5c6470;
  font-size: 12px;
  text-align: center;
}

.section {
  width: var(--content);
  margin: 0 auto;
  padding: 80px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 30px;
}

.section-head.compact {
  max-width: 650px;
}

.project-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-line h2 {
  max-width: 620px;
}

.intro-copy {
  margin: 42px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.95;
}

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

.feature-card,
.price-card,
.account-panel,
.download-panel,
.step,
.faq details {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.feature-card {
  min-height: 212px;
  padding: 22px;
}

.feature-card svg {
  width: 22px;
  height: 22px;
  margin-bottom: 30px;
  color: var(--accent-2);
}

.feature-card p,
.step p,
.price-card p,
.muted,
.faq p,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

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

.step {
  min-height: 176px;
  padding: 16px;
}

.step span {
  display: block;
  margin-bottom: 24px;
  color: var(--faint);
  font-weight: 700;
}

.step strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.download-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  padding: 32px;
  background:
    linear-gradient(90deg, rgba(217, 45, 59, 0.05), transparent 42%),
    var(--panel);
  box-shadow: none;
}

.download-actions {
  flex-wrap: wrap;
  margin-top: 24px;
}

.download-actions svg {
  width: 18px;
  height: 18px;
}

.install-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: install;
}

.install-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 14px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.install-list li::before {
  counter-increment: install;
  content: counter(install);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(226, 54, 69, 0.14);
  color: var(--accent-2);
  font-weight: 760;
}

.install-list strong,
.install-list span {
  grid-column: 2;
}

.install-list span {
  color: var(--muted);
  line-height: 1.6;
}

.account-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.account-panel.is-logged-in {
  border-color: rgba(66, 209, 141, 0.34);
  background:
    linear-gradient(90deg, rgba(66, 209, 141, 0.08), transparent 50%),
    var(--panel);
}

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

.price-card {
  display: flex;
  min-height: 410px;
  flex-direction: column;
  padding: 24px;
}

.price-card.featured {
  border-color: var(--line);
  background: var(--panel);
}

.price-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.price-head span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 620;
}

.price-head strong {
  display: block;
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 760;
  line-height: 1.05;
}

.price-head em {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(217, 45, 59, 0.22);
  border-radius: 999px;
  background: rgba(217, 45, 59, 0.055);
  color: var(--accent-2);
  font-size: 12px;
  font-style: normal;
  font-weight: 680;
}

.price-card ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 26px;
  padding: 0;
  list-style: none;
}

.price-card li {
  display: flex;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
}

.price-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--ok);
  flex: 0 0 auto;
}

.price-card .wide {
  margin-top: auto;
  min-height: 44px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq details {
  padding: 18px 20px;
}

.faq summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 640;
}

.faq p {
  margin: 14px 0 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}

.site-footer div {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.site-footer strong {
  color: var(--text);
}

dialog {
  width: min(440px, calc(100% - 32px));
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.modal-card h2 {
  font-size: 28px;
}

.auth-method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.auth-method-tabs[hidden] {
  display: none;
}

.auth-method-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 620;
  cursor: pointer;
}

.auth-method-tabs button.is-active {
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 1px 8px rgba(20, 18, 14, 0.06);
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
}

.modal-card label {
  display: grid;
  gap: 8px;
}

.modal-card [hidden] {
  display: none !important;
}

.modal-card label span,
.payment-box span {
  color: var(--muted);
  font-size: 13px;
}

.modal-card input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  outline: none;
}

.modal-card input:focus {
  border-color: rgba(226, 54, 69, 0.72);
}

.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.captcha-host,
.captcha-trigger {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 360px;
  height: 44px;
  transform: translate(-50%, -50%);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.form-note {
  margin: 0;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.6;
}

.payment-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-2);
}

.contact-card {
  display: grid;
  align-items: stretch;
  justify-content: stretch;
  gap: 10px;
}

.copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.copy-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 20px;
}

.contact-card small {
  color: var(--faint);
  font-size: 13px;
}

.outline-button.tiny {
  min-height: 34px;
  padding: 0 14px;
  font-size: 14px;
}

@media (max-width: 860px) {
  .desktop-nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .mobile-menu {
    position: fixed;
    top: 68px;
    left: 12px;
    right: 12px;
    z-index: 49;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .mobile-menu.is-open {
    display: grid;
  }

  .mobile-menu a,
  .mobile-menu button {
    padding: 13px 10px;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    background: transparent;
    color: var(--text);
    text-align: left;
  }

  .mobile-menu button {
    border-bottom: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 112px 0 48px;
    gap: 34px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .hero-copy {
    font-size: 16px;
  }

  .feature-grid,
  .steps,
  .price-grid,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    max-width: none;
    gap: 8px;
  }

  .hero-metrics span {
    justify-content: flex-start;
    min-height: 42px;
  }

  .project-intro {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .intro-copy {
    margin-top: 0;
  }

  .account-panel,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .code-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .download-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .hero-metrics span {
    width: 100%;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 54px 0;
  }

  .download-panel,
  .account-panel,
  .price-card,
  .modal-card {
    padding: 20px;
  }
}
