:root {
  --ink: #16151a;
  --muted: #63626b;
  --faint: #96949d;
  --line: #e8e7eb;
  --line-strong: #d7d6dc;
  --surface: #f7f7f8;
  --canvas: #ffffff;
  --purple: #af2fda;
  --blue: #2e6fbf;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC", "Microsoft YaHei", Roboto, sans-serif;
  color: var(--ink); background: var(--canvas); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; display: block; }
.brand small { display: block; font-size: 9.5px; letter-spacing: .22em; color: var(--faint); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-right .mail { font-size: 13.5px; color: var(--muted); }
.nav-right .mail:hover { color: var(--ink); }

/* primary download CTA — solid ink, no gradient */
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 13.5px; font-weight: 600; letter-spacing: -.005em;
  transition: transform .18s ease, opacity .18s ease;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); opacity: .82; }
.nav-cta:active { transform: translateY(0); }
.nav-cta:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.nav-cta .arrow { font-size: 12px; opacity: .85; transition: transform .18s ease; }
.nav-cta:hover .arrow { transform: translateY(2px); }
.lang-switch {
  display: inline-flex; gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.lang-switch a, .lang-switch span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; padding: 4px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.lang-switch a:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.lang-switch .cur { background: var(--ink); color: #fff; }
.lang-switch a:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

/* ---------- Landing hero ---------- */
.hero.lh {
  position: relative;
  text-align: center;
  padding: 100px 24px 0;
  background: var(--canvas);
  border-bottom: 0;
}
.hero.lh + .projects, .privacy + .projects { padding-top: 88px; }
.lh .container { max-width: 1200px; margin: 0 auto; }
.lh .badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: #fff;
  border: 1px solid var(--line-strong);
  padding: 7px 16px; border-radius: 999px;
  margin-bottom: 30px; max-width: 100%;
}
.lh .badge .dot { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.lh .badge span { min-width: 0; }
.lh h1 {
  margin: 0 auto; max-width: 980px;
  font-size: clamp(46px, 6.4vw, 84px);
  line-height: 1.04; font-weight: 700; letter-spacing: -.045em;
  text-wrap: balance; color: var(--ink);
}
.lh .sub {
  margin: 26px auto 0; max-width: 720px;
  font-size: clamp(17px, 1.7vw, 20px); line-height: 1.65; color: var(--muted);
}
.lh .actions { margin-top: 42px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; align-items: flex-end; }
.lh .dl-group { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lh .dl-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.lh .dl-label b { color: var(--ink); font-weight: 700; }
.lh .store-btn { display: inline-flex; align-items: center; border-radius: 9px; transition: transform .2s, opacity .2s; }
.lh .store-btn:hover { transform: translateY(-2px); opacity: .82; }
.lh .store-badge { display: block; height: 50px; width: auto; border-radius: 8px; }

/* Flat product band — no gradients, just hairlines and space */
.lh .show-row {
  width: min(1280px, 100% - 48px);
  margin: 80px auto 0;
  display: flex; align-items: stretch; justify-content: center; gap: 0;
  padding: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
}
.lh .show-pair {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: 44px 28px 36px;
}
.lh .show-pair + .show-pair { border-left: 1px solid var(--line); }
.lh .show-pair .devs { display: flex; gap: 14px; align-items: flex-end; justify-content: center; width: 100%; flex: 1 1 auto; }
.lh .show-pair .devs img {
  flex: 1 1 0; min-width: 0; max-width: 220px; height: auto; display: block;
  border-radius: 14px; box-shadow: 0 10px 26px rgba(0,0,0,.10);
  transition: transform .25s;
}
.lh .show-pair:hover .devs img { transform: translateY(-4px); }
.lh .show-pair .devs img.plain { border: 3px solid #1b1b1f; }
.lh .show-pair .cap { font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.lh .show-pair .cap span { font-weight: 500; color: var(--muted); }

/* ---------- Privacy / trust band ---------- */
.privacy { max-width: 1240px; margin: 0 auto; padding: 88px 28px 0; text-align: center; }
.privacy-inner { padding-top: 64px; border-top: 1px solid var(--line); }
.privacy-kicker {
  display: block; margin-bottom: 16px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--faint);
}
.privacy-head h2 {
  margin: 0 auto; max-width: 20ch;
  font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -.04em; line-height: 1.15;
  text-wrap: balance;
}
.privacy-head p { margin: 16px auto 0; max-width: 56ch; font-size: 15px; color: var(--muted); }
.privacy-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 44px; text-align: left; }
.pcard {
  padding: 26px 26px 28px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
  transition: transform .2s, border-color .2s;
}
.pcard:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.pcard .pdot { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--purple); margin-bottom: 16px; }
.pcard h3 { font-size: 15px; font-weight: 650; letter-spacing: -.015em; }
.pcard p { margin-top: 8px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.privacy .more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 32px;
  font-size: 13px; font-weight: 650; color: var(--ink);
}
.privacy .more span { transition: transform .2s; }
.privacy .more:hover span { transform: translateX(3px); }

/* ---------- Project cards ---------- */
.projects { max-width: 1240px; margin: 0 auto; padding: 88px 28px 120px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -.035em; }
.section-head span { font-size: 13px; color: var(--faint); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; padding: 28px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.card.tone:hover { border-color: rgba(175,47,218,.45); }
.card.noise:hover { border-color: rgba(46,111,191,.45); }
.card-top { display: flex; align-items: center; gap: 14px; }
.card-top img { width: 48px; height: 48px; border-radius: 12px; }
.card-top .glyph { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px dashed var(--line-strong); color: var(--faint); font-size: 22px; }
.card-top b { display: block; font-size: 16px; letter-spacing: -.01em; }
.card-top small { display: block; font-size: 12px; color: var(--faint); }
.card .desc { margin-top: 20px; min-height: 52px; font-size: 14px; color: var(--muted); }
.tag { display: inline-flex; align-items: center; align-self: flex-start; margin-top: 18px; padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tag.live { background: rgba(46,140,94,.1); color: #20764f; }
.tag.soon { background: var(--surface); color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.chips a { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--muted); background: #fff; }
.chips a:hover { color: var(--ink); border-color: var(--ink); }
.enter { margin-top: 20px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 650; }
.card.tone .enter { color: var(--purple); }
.card.noise .enter { color: var(--blue); }
.enter span { transition: transform .2s; }
.enter:hover span { transform: translateX(3px); }
.card.soon-card { background: var(--surface); }
.card.soon-card .desc, .card.soon-card .chips a { color: var(--faint); }

footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 34px 28px 48px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--faint); }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--ink); }
.footer-links { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px 18px; padding-bottom: 22px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.footer-links a { font-size: 12.5px; color: var(--faint); }
.footer-links a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; }
  .card .desc { min-height: 0; }
  .nav { padding: 14px 24px; }
  .projects { padding: 64px 24px 88px; }
  .hero.lh + .projects, .privacy + .projects { padding-top: 64px; }
  .privacy { padding: 64px 24px 0; }
  .privacy-inner { padding-top: 44px; }
  .privacy-cards { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .privacy-head p { max-width: 46ch; }
}
@media (max-width: 640px) {
  .hero.lh { padding: 60px 20px 0; }
  .lh .badge { margin-bottom: 24px; }
  .lh h1 { font-size: clamp(36px, 9vw, 52px); letter-spacing: -.04em; }
  .lh .sub { margin-top: 20px; font-size: 16px; }
  .lh .actions { margin-top: 32px; gap: 14px; }
  .lh .store-badge { height: 44px; }
  .lh .show-row { width: min(1280px, 100% - 32px); margin-top: 56px; flex-direction: column; }
  .lh .show-pair { padding: 32px 16px 28px; gap: 18px; }
  .lh .show-pair + .show-pair { border-left: 0; border-top: 1px solid var(--line); }
  .lh .show-pair .devs img { border-radius: 12px; }
}
@media (max-width: 520px) {
  .nav { padding: 12px 16px; }
  .brand { font-size: 14px; gap: 8px; }
  .brand .mark { width: 28px; height: 28px; }
  .brand small { font-size: 9px; letter-spacing: .14em; }
  .nav-right { gap: 10px; }
  .nav-right .mail { display: none; }
  .lang-switch a, .lang-switch span { min-width: 38px; padding: 4px 9px; font-size: 12px; white-space: nowrap; }
  .section-head { flex-direction: column; gap: 4px; }
  .projects { padding: 48px 20px 68px; }
  .hero.lh + .projects, .privacy + .projects { padding-top: 48px; }
  .privacy { padding: 48px 20px 0; }
  .privacy-inner { padding-top: 36px; }
  .pcard { padding: 22px; }
}

/* ---------- Nav with download CTA (kept last so it wins the cascade) ---------- */
@media (max-width: 760px) {
  .nav { padding: 12px 18px; gap: 12px; }
  .nav-right { gap: 12px; }
  .nav-right .mail { display: none; }
  .nav-cta { padding: 9px 16px; font-size: 12.5px; }
  .brand { font-size: 14.5px; gap: 8px; }
  .brand .mark { width: 28px; height: 28px; border-radius: 8px; }
  .brand > span { white-space: nowrap; }
}
@media (max-width: 430px) {
  .nav { padding: 10px 12px; gap: 8px; }
  .nav-right { gap: 8px; }
  .brand { font-size: 13px; gap: 7px; }
  .brand small { display: none; }
  .lang-switch { padding: 2px; }
  .lang-switch a, .lang-switch span { min-width: 30px; padding: 4px 6px; font-size: 11.5px; }
  .nav-cta { padding: 8px 12px; font-size: 12px; }
  .nav-cta .arrow { display: none; }
}

/* Keep the CTA flat if its block above is regenerated by a build step. */
nav.nav .nav-cta { background: var(--ink); box-shadow: none; }

/* Narrow phones: keep the CTA and language switch, drop the wordmark. */
@media (max-width: 380px) {
  .brand > span { display: none; }
  .brand { gap: 0; }
}

/* Match the product pages: solid brand purple, no gradient. */
nav.nav .nav-cta { background: var(--purple); }
nav.nav .nav-cta:hover { background: #8f1fbd; }
