:root {
  --ink: #2b213b;
  --muted: #5c526d;
  --purple: #64448e;
  --purple-hover: #4d3270;
  --line: #e3dceb;
  --paper: #f7f4fc;
  --gold: #ffdb82;
  --gutter: clamp(17px, 4vw, 48px);
  --section-space: clamp(57px, 7.3vw, 102px);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.75;
  line-break: strict;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ol { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid #865bac; outline-offset: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), 1120px); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: #fffffff6;
  backdrop-filter: blur(13px);
}
.bar { display: flex; align-items: center; gap: clamp(24px, 3.8vw, 57px); min-height: 66px; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 10px; font-size: 1.06rem; font-weight: 750; white-space: nowrap; }
.brand img { border-radius: 10px; }
.main-nav { display: flex; gap: clamp(20px, 3vw, 39px); margin-left: auto; color: var(--muted); font-size: .94rem; white-space: nowrap; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 11px;
  font-weight: 710;
  text-align: center;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.button-small { flex: none; padding: 6px 16px; min-height: 40px; border: 1px solid #d2c4e2; background: #fbf8ff; color: #55366f; font-size: .92rem; }
.button-primary { min-width: 244px; min-height: 55px; padding: 10px 26px; background: var(--purple); color: #fff; }
.download-icon { position: relative; width: 16px; height: 17px; border-bottom: 2px solid currentColor; }
.download-icon::before, .download-icon::after { content: ""; position: absolute; left: 50%; }
.download-icon::before { width: 2px; height: 10px; background: currentColor; transform: translateX(-50%); }
.download-icon::after { top: 5px; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateX(-50%) rotate(45deg); }

.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 49% 15%, #fbefdb 0%, transparent 34%),
    radial-gradient(ellipse at 15% 37%, #e9ddf6 0%, transparent 44%),
    radial-gradient(ellipse at 88% 35%, #ede0f9 0%, transparent 42%),
    linear-gradient(180deg, #f0e8fa, #faf6fd);
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(circle, #74579a39 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, #000 4%, transparent 33%, transparent 67%, #000 96%);
  content: "";
}
.hero-inner {
  min-height: 534px;
  padding-block: clamp(57px, 7vw, 92px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}
.hero-logo {
  max-width: 78px;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  box-shadow: 0 9px 26px #5a3c6324;
}
.hero-inner h1 { margin-top: 14px; font-size: clamp(3.3rem, 7vw, 6rem); line-height: 1.04; font-weight: 830; }
.hero-heading { margin-top: 13px; font-size: clamp(1.45rem, 3.45vw, 2.22rem); color: #4b3369; line-height: 1.3; font-weight: 760; }
.hero-description { max-width: 31em; margin: 16px 0 24px; color: var(--muted); font-size: 1.035rem; }
.hero .button-primary { box-shadow: 0 9px 26px #4b307536; }

.section { padding-block: var(--section-space); scroll-margin-top: 85px; }
.section-heading { margin-bottom: clamp(25px, 3.5vw, 43px); }
.section-heading.centered { text-align: center; }
.section h2 { font-size: clamp(1.95rem, 3.6vw, 2.8rem); line-height: 1.24; font-weight: 770; }
.section-heading p { margin-top: 12px; color: var(--muted); font-size: 1rem; }
.screenshots { padding-top: clamp(40px, 5vw, 65px); border-top: 1px solid var(--line); background: #fdfbff; }
.screenshot-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  align-items: start;
  gap: clamp(15px, 3vw, 31px);
}
.screenshot-strip a {
  min-width: 0;
  display: block;
  border: 1px solid #d5c8e5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 13px 30px #53377713;
  cursor: zoom-in;
  transition: border-color .2s, transform .2s;
}
.screenshot-strip img { width: 100%; border-radius: inherit; }

.features { border-block: 1px solid var(--line); background: var(--paper); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card { padding: clamp(24px, 3vw, 35px); border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.feature-card h3, .steps h3 { font-size: 1.16rem; line-height: 1.42; }
.feature-card p, .steps p { margin-top: 9px; color: var(--muted); }
.feature-icon { width: 43px; height: 43px; margin-bottom: 15px; border-radius: 11px; position: relative; display: grid; place-items: center; color: #5a3a81; background: #f0e8fa; }
.feature-icon::before, .feature-icon::after { content: ""; grid-area: 1 / 1; }
.search-icon::before { width: 17px; height: 17px; border-radius: 50%; border: 2px solid currentColor; transform: translate(-2px, -2px); }
.search-icon::after { width: 10px; height: 2px; background: currentColor; transform: translate(7px, 7px) rotate(45deg); }
.sort-icon { color: #7e5728; background: #faeedc; }
.sort-icon::before { width: 21px; height: 2px; border-radius: 2px; background: currentColor; transform: translateY(-6px); }
.sort-icon::after { width: 15px; height: 7px; border-block: 2px solid currentColor; transform: translate(-3px, 2px); }
.link-icon { color: #754577; background: #f4eaf5; }
.link-icon::before, .link-icon::after { width: 16px; height: 10px; border-radius: 8px; border: 2px solid currentColor; }
.link-icon::before { transform: translate(-4px, 2px) rotate(-38deg); }
.link-icon::after { transform: translate(4px, -2px) rotate(-38deg); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(25px, 4vw, 49px); padding: 0; list-style: none; counter-reset: instructions; }
.steps li { counter-increment: instructions; padding-top: 20px; border-top: 1px solid var(--line); }
.steps h3 { display: flex; align-items: center; gap: 10px; }
.steps h3::before {
  content: counter(instructions);
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: none;
  border-radius: 50%;
  color: var(--purple);
  background: #f0e7fa;
  font-size: .9rem;
}
.faq { border-top: 1px solid var(--line); background: var(--paper); }
.faq-inner { max-width: 830px; }
.faq-list { border-top: 1px solid #ddd3e9; }
.faq-list details { border-bottom: 1px solid #ddd3e9; }
.faq-list summary { padding: 18px 5px; display: flex; justify-content: space-between; align-items: center; gap: 15px; list-style: none; line-height: 1.6; font-weight: 720; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 2px; transform: translateY(-2px) rotate(45deg); border: solid var(--purple); border-width: 0 2px 2px 0; }
.faq-list details[open] summary { color: var(--purple); }
.faq-list details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq-list p { padding: 0 21px 21px 5px; color: var(--muted); line-height: 1.8; }

.download-section { padding-top: 0; background: var(--paper); }
.download-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(27px, 5vw, 57px);
  border-radius: 20px;
  background: radial-gradient(ellipse at 70% 10%, #593b72, transparent 72%), #3d2955;
  color: #fff;
}
.download-brand { display: flex; align-items: center; gap: 15px; }
.download-brand img { flex: none; border-radius: 12px; }
.download-brand h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.download-panel .button-primary { background: var(--gold); color: #402a31; }
.site-footer { background: #291b3b; color: #fcf6ff; }
.footer-inner { display: grid; justify-items: center; gap: 17px; padding-block: 43px; text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 22px; color: #e1d7ed; font-size: .93rem; }
.site-footer p { color: #c3b4d2; font-size: .85rem; }

@media (hover: hover) {
  .main-nav a:hover, .faq-list summary:hover { color: var(--purple); }
  .site-footer nav a:hover { color: var(--gold); }
  .button-small:hover { background: #f1e8fa; border-color: #bca8d3; }
  .button-primary:hover { background: var(--purple-hover); transform: translateY(-2px); }
  .download-panel .button-primary:hover { background: #ffe7a7; }
  .screenshot-strip a:hover { border-color: #916fb1; transform: translateY(-3px); }
}

@media (max-width: 920px) {
  .screenshot-strip {
    margin-block: -6px -12px;
    padding-block: 6px 12px;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    scrollbar-color: #b7a2cd #f2edf8;
  }
  .screenshot-strip a { scroll-snap-align: start; }
}

@media (max-width: 690px) {
  .bar { min-height: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding-top: 8px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 9px; margin: 0; padding: 7px 0 10px; border-top: 1px solid var(--line); font-size: .85rem; }
  .hero-inner { min-height: 0; padding-block: 44px 42px; }
  .hero-logo { width: 62px; border-radius: 14px; }
  .hero-inner h1 { margin-top: 12px; }
  .hero-heading { margin-top: 12px; }
  .hero-description { margin: 15px 0 19px; }
  .button-primary { width: 100%; min-width: 0; }
  .section { scroll-margin-top: 105px; }
  .screenshot-strip {
    grid-auto-columns: 43%;
    gap: 10px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .screenshot-strip a { border-radius: 8px; }
  .feature-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { gap: 12px; }
  .download-panel { flex-direction: column; text-align: center; }
  .download-brand { flex-direction: column; gap: 9px; }
  .site-footer nav { gap: 7px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
