:root {
  --brand: #ff2d55;
  --brand-2: #ff7a45;
  --ink: #09090b;
  --sub: #52525b;
  --mute: #8a8a93;
  --line: #e4e4e7;
  --line-2: #d4d4d8;
  --bg: #f4f4f5;
  --canvas: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(9, 9, 11, .04), 0 12px 32px -12px rgba(9, 9, 11, .12);
  --max: 1160px;
  --nav-h: 62px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

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

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

code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: .88em;
}

.pc { display: inline; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 11, .72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .25s ease, box-shadow .25s ease;
}

.nav.scrolled {
  background: rgba(9, 9, 11, .9);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .9);
}

.nav-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 28px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: #fafafa;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 14px rgba(255, 45, 85, .55);
}

.brand-name { font-size: 15px; }

.brand-en {
  font-size: 10px;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .45);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .66);
}

.nav-links a { transition: color .18s ease; position: relative; }
.nav-links a:hover { color: #fff; }

.nav-links a.active { color: #fff; }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -21px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.nav-cta {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fafafa;
  color: #09090b;
  transition: transform .18s ease, opacity .18s ease;
}

.nav-cta:hover { transform: translateY(-1px); opacity: .9; }

.nav-menu {
  display: none;
  margin-left: auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-menu span {
  display: block;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: #09090b;
  color: #fafafa;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 72px 24px 0;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(10px);
}

.hero-glow-a {
  width: 620px;
  height: 620px;
  left: -180px;
  top: -220px;
  background: radial-gradient(circle, rgba(255, 45, 85, .28), transparent 66%);
}

.hero-glow-b {
  width: 700px;
  height: 700px;
  right: -260px;
  top: -120px;
  background: radial-gradient(circle, rgba(255, 122, 69, .18), transparent 66%);
}

.hero-inner {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
  padding-bottom: 56px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-2);
  box-shadow: 0 0 10px var(--brand-2);
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 5.6vw, 72px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 650;
}

.hero-sub {
  margin: 24px 0 0;
  font-size: 16.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .62);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-meta {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .38);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.005em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(255, 45, 85, .55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -8px rgba(255, 45, 85, .65);
}

.btn-ghost {
  color: rgba(255, 255, 255, .82);
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .03);
}

.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

.btn-outline {
  border-color: var(--line-2);
  color: var(--ink);
  background: #fff;
}

.btn-outline:hover { border-color: #a1a1aa; }

/* ---------- App mock ---------- */
.hero-visual { perspective: 1200px; }

.app-mock {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  overflow: hidden;
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform .5s ease;
}

.app-mock:hover { transform: rotateY(0) rotateX(0); }

.mock-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: #f4f4f5;
  border-bottom: 1px solid #e4e4e7;
}

.dot { width: 9px; height: 9px; border-radius: 999px; }
.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }

.mock-title {
  margin-left: 8px;
  font-size: 11px;
  color: #8a8a93;
}

.mock-body {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  min-height: 380px;
}

.mock-side {
  background: #fafafa;
  border-right: 1px solid #ededf0;
  padding: 16px 12px;
}

.mock-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 6px 14px;
  border-bottom: 1px solid #ededf0;
  margin-bottom: 12px;
}

.mock-profile img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; }
.mock-profile b { display: block; font-size: 12.5px; color: #18181b; }
.mock-profile span { display: block; font-size: 10.5px; color: #8a8a93; }

.mock-nav {
  font-size: 12px;
  color: #52525b;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 2px;
}

.mock-nav.active { background: #18181b; color: #fafafa; font-weight: 500; }

.mock-chat {
  padding: 20px 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bubble {
  font-size: 12.5px;
  line-height: 1.6;
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 92%;
}

.bubble.user {
  align-self: flex-end;
  background: #18181b;
  color: #fafafa;
  border-bottom-right-radius: 4px;
}

.bubble.ai {
  background: #f4f4f5;
  color: #27272a;
  border-bottom-left-radius: 4px;
}

.ai-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #52525b;
}

.ai-head img { width: 16px; height: 16px; border-radius: 5px; }

.bubble.ai p { margin: 0; }

.chips {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
}

.chips span {
  font-size: 11px;
  color: #3f3f46;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 7px;
  padding: 5px 8px;
}

.mock-steps {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px dashed #e4e4e7;
}

.step {
  font-size: 10.5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #71717a;
}

.step.done { background: #e8f7ee; color: #15803d; }
.step.running { background: #ffe9ee; color: #be123c; }

/* ---------- Trust ---------- */
.trust {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: auto auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .09);
  border-top: 1px solid rgba(255, 255, 255, .09);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.trust > div {
  background: #0b0b0d;
  padding: 24px 26px;
}

.trust b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #fafafa;
}

.trust span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 104px 24px;
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

.section-alt {
  max-width: none;
  background: var(--bg);
  padding-left: calc(24px + max(0px, (100vw - var(--max)) / 2));
  padding-right: calc(24px + max(0px, (100vw - var(--max)) / 2));
}

.section-head { max-width: 720px; margin-bottom: 48px; }

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow.light { color: #ff8fa3; }

.section-head h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.22;
  letter-spacing: -.025em;
  font-weight: 620;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}

.icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 45, 85, .1), rgba(255, 122, 69, .12));
  color: var(--brand);
  margin-bottom: 18px;
}

.icon svg { width: 19px; height: 19px; }

.card h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--sub); }

.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}

.step-no {
  display: inline-block;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: var(--brand);
  background: rgba(255, 45, 85, .07);
  border-radius: 6px;
  padding: 3px 7px;
  margin-bottom: 18px;
}

.step-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.step-card p { margin: 0; font-size: 13.5px; color: var(--sub); line-height: 1.75; }

/* ---------- Install ---------- */
.install-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  align-items: start;
}

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

.install-steps li {
  position: relative;
  padding: 0 0 26px 48px;
  counter-increment: install;
}

.install-steps li::before {
  content: counter(install);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  background: rgba(255, 45, 85, .08);
  border: 1px solid rgba(255, 45, 85, .16);
}

.install-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 36px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}

.install-steps b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.install-steps span { display: block; font-size: 13.5px; color: var(--sub); }
.install-steps code { background: var(--bg); padding: 2px 6px; border-radius: 5px; }

.install-tip {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.tip-label { margin: 0 0 10px; font-size: 12.5px; font-weight: 600; color: var(--ink); }

.code-block {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #18181b;
  border-radius: 10px;
  padding: 12px 12px 12px 14px;
  overflow: hidden;
}

.code-block code {
  flex: 1;
  color: #fafafa;
  font-size: 11.5px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.code-block code::-webkit-scrollbar { display: none; }

.copy-btn {
  flex: none;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: #fafafa;
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
}

.copy-btn:hover { background: rgba(255, 255, 255, .12); }

.tip-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--mute);
}

/* ---------- Download ---------- */
.section-download { padding-top: 0; }

.download-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 40px;
  background: #09090b;
  color: #fafafa;
  border-radius: 24px;
  padding: 48px;
  overflow: hidden;
}

.download-card::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -180px;
  top: -280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 45, 85, .22), transparent 66%);
  pointer-events: none;
}

.download-main { position: relative; }

.download-main h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 620;
}

.download-main > p {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .55);
  max-width: 520px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.download-actions .btn-outline {
  background: transparent;
  color: #fafafa;
  border-color: rgba(255, 255, 255, .2);
}

.download-actions .btn-outline:hover { border-color: rgba(255, 255, 255, .4); }

.download-note {
  margin: 18px 0 0 !important;
  font-size: 12px !important;
  color: rgba(255, 255, 255, .38) !important;
}

.download-meta {
  position: relative;
  border-left: 1px solid rgba(255, 255, 255, .1);
  padding-left: 36px;
}

.download-meta dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

.download-meta dt {
  font-size: 11px;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 3px;
}

.download-meta dd {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .88);
}

.sha-label {
  margin: 28px 0 8px;
  font-size: 10.5px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .35);
}

.sha {
  display: block;
  font-size: 10.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .55);
  word-break: break-all;
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--line);
}

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

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font-size: 15.5px;
  font-weight: 550;
  letter-spacing: -.01em;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 300;
  color: var(--mute);
  transition: transform .2s ease;
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq details p {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--sub);
  max-width: 820px;
}

/* ---------- CTA ---------- */
.cta {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px 112px;
  text-align: center;
}

.cta h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -.03em;
  font-weight: 620;
}

.cta p {
  margin: 12px 0 26px;
  font-size: 14.5px;
  color: var(--sub);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 24px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 32px;
}

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

.footer-brand span:last-child {
  font-size: 9.5px;
  letter-spacing: .14em;
  color: var(--mute);
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 12.5px;
  color: var(--sub);
}

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

.footer-meta {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 11.5px;
  color: var(--mute);
}

/* ---------- Multi-page ---------- */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: vtOut .16s ease both;
}

::view-transition-new(root) {
  animation: vtIn .3s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.page-body {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
  gap: 30px;
}

.page-head { max-width: 760px; }

.page-head h1 {
  margin: 14px 0 0;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.22;
  letter-spacing: -.028em;
  font-weight: 620;
}

.page-lede {
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--sub);
  max-width: 640px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.feature-grid .card { padding: 26px 28px 28px; }

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

.tip-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--brand);
}

.tip-link:hover { text-decoration: underline; }

.page-body .install-grid { gap: 28px; }

.page-body .install-steps li { padding-bottom: 20px; }

.faq-page { border-top: 1px solid var(--line); }
.faq-page details summary { padding: 15px 40px 15px 0; font-size: 14.5px; }
.faq-page details p { margin-bottom: 16px; font-size: 13.5px; }

.page-body-download { gap: 18px; }

.download-main h1 {
  margin: 14px 0 0;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 620;
}

.download-next {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  font-size: 12.5px;
  color: var(--sub);
}

.download-next a:hover { color: var(--ink); }

/* ---------- Motion ---------- */
.hero-glow { will-change: transform; }

.reveal {
  opacity: 0;
  translate: 0 22px;
  transition:
    opacity .75s cubic-bezier(.2, .7, .2, 1),
    translate .75s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0ms);
}

.reveal.in {
  opacity: 1;
  translate: 0 0;
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise .8s cubic-bezier(.2, .7, .2, 1) backwards;
  }
  .hero-copy > *:nth-child(1) { animation-delay: .04s; }
  .hero-copy > *:nth-child(2) { animation-delay: .1s; }
  .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .hero-copy > *:nth-child(4) { animation-delay: .22s; }
  .hero-copy > *:nth-child(5) { animation-delay: .28s; }

  .hero-visual {
    animation: rise .9s cubic-bezier(.2, .7, .2, 1) .14s backwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: none; transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-links a.active::after { display: none; }
  .page-body { padding: 16px 20px 24px; gap: 16px; }
  .page-head h1 { font-size: 26px; }
  .page-lede { font-size: 13px; margin-top: 10px; }
  .page-actions .btn { height: 42px; }

  .feature-grid { gap: 10px; }
  .feature-grid .card { padding: 16px 14px; }
  .feature-grid .icon { width: 30px; height: 30px; margin-bottom: 10px; border-radius: 9px; }
  .feature-grid .icon svg { width: 16px; height: 16px; }
  .feature-grid .card h3 { font-size: 14px; margin-bottom: 4px; }
  .feature-grid .card p { font-size: 11.5px; line-height: 1.6; }

  .how-grid { gap: 10px; }
  .step-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; }
  .step-no { flex: none; margin-bottom: 0; }
  .step-card h3 { font-size: 15px; margin-bottom: 2px; }
  .step-card p { font-size: 12.5px; line-height: 1.6; }

  .footer-inner { padding: 20px 20px 22px; gap: 10px 20px; }
}

@media (max-height: 760px) and (min-width: 821px) {
  .page-body { justify-content: flex-start; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 620px; }
  .app-mock { transform: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .download-card { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
  .download-meta { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); padding: 28px 0 0; }
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 16px 14px;
    background: #0b0b0d;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav-cta { display: none; }
  .nav-menu { display: flex; }
  .hero { padding-top: 56px; }
  .trust { grid-template-columns: 1fr; }
  .section { padding: 72px 20px; }
  .section-alt { padding-left: 20px; padding-right: 20px; }
  .grid-3, .install-grid { grid-template-columns: 1fr; }
  .footer-meta { margin-left: 0; }
}

@media (max-width: 560px) {
  .pc { display: none; }
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 15px; }
  .hero-actions .btn { width: 100%; }
  .grid-4 { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 108px minmax(0, 1fr); min-height: 340px; }
  .mock-side { padding: 12px 8px; }
  .mock-profile { padding-bottom: 10px; }
  .mock-chat { padding: 14px 12px; }
  .download-card { padding: 30px 22px; border-radius: 18px; }
  .download-meta dl { grid-template-columns: 1fr 1fr; }
  .footer-inner { padding: 30px 20px 36px; }
  .footer-links { flex-wrap: wrap; gap: 14px; }
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 28px;
}

.legal .back:hover { color: var(--ink); }

.legal h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -.03em;
  line-height: 1.2;
  font-weight: 620;
}

.legal .updated {
  margin: 0 0 40px;
  font-size: 12.5px;
  color: var(--mute);
}

.legal h2 {
  margin: 36px 0 10px;
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.legal p,
.legal li {
  font-size: 14px;
  line-height: 1.85;
  color: var(--sub);
}

.legal ul { padding-left: 20px; }

.legal a { color: var(--brand); }

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