:root {
  --bg: #f6f2ea;
  --paper: #fffdf8;
  --side: #efe9de;
  --ink: #2b2722;
  --ink-2: #5f574d;
  --ink-3: #978d80;
  --line: rgba(60, 45, 25, .12);
  --accent: #b4532a;
  --accent-2: #d98a4e;
  --accent-soft: rgba(180, 83, 42, .10);
  --mark: rgba(242, 190, 80, .45);
  --deep: #2a1d16;
  --bar: #2a1d16;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 12px 32px rgba(60, 40, 20, .08);
  --ui: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Microsoft YaHei UI", sans-serif;
  --read: Georgia, "Noto Serif SC", "Songti SC", serif;
  --mono: "Cascadia Code", Consolas, ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17161a;
    --paper: #222127;
    --side: #1d1c21;
    --ink: #ece7df;
    --ink-2: #b9b1a6;
    --ink-3: #7f786f;
    --line: rgba(255, 255, 255, .09);
    --accent: #e8915f;
    --accent-2: #f0b07f;
    --accent-soft: rgba(232, 145, 95, .14);
    --mark: rgba(232, 170, 70, .35);
    --deep: #100c0a;
    --bar: #3a3540;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
code { font: .9em var(--mono); background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; }
kbd {
  display: inline-block; min-width: 1.9em; padding: 1px 7px;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px;
  background: var(--paper); color: var(--ink);
  font: 600 .82em/1.6 var(--ui); text-align: center;
}
h1, h2, h3 { font-family: var(--read); font-weight: 600; letter-spacing: -.01em; }
section { padding: 88px 24px; }
section > h2, .privacy-inner > h2 { max-width: 1040px; margin: 0 auto 36px; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(24px, calc((100% - 1040px) / 2));
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 19px var(--ui); }
.top nav { display: flex; align-items: center; gap: 26px; }
.top nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.top nav a:not(.btn):hover { color: var(--ink); }

.btn {
  display: inline-block; padding: 12px 22px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--accent), #c8693a);
  color: #fff8ef; text-decoration: none; font-weight: 600;
  box-shadow: 0 6px 18px rgba(180, 83, 42, .28);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(180, 83, 42, .34); }
.btn.small { padding: 7px 14px; border-radius: 9px; font-size: 14px; box-shadow: none; }
.link { color: var(--accent); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }
.fine { color: var(--ink-3); font-size: 14px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  max-width: 1088px; margin: 0 auto; padding-top: 72px;
}
.eyebrow { margin: 0 0 14px; color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(40px, 5.6vw, 62px); line-height: 1.06; }
.lede { margin: 22px 0 30px; color: var(--ink-2); font-size: 18.5px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.hero .fine { margin-top: 18px; }

.stage { position: relative; padding-bottom: 46px; }
.page {
  position: relative;
  padding: 44px 34px 34px;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow);
  font: 17px/1.75 var(--read);
  transform: rotate(-1.2deg);
}
.page-bar { position: absolute; top: 14px; left: 18px; display: flex; gap: 6px; }
.page-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.page p { margin: 0 0 14px; }
.faint { color: var(--ink-3); }
.sel { background: var(--mark); box-shadow: 0 0 0 2px var(--mark); border-radius: 3px; }
.capsule {
  position: absolute; right: 36px; top: 128px;
  padding: 7px 14px;
  background: var(--bar); color: #fff8ef;
  border-radius: 999px;
  font: 600 13px/1.4 var(--ui);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
  animation: fly 4.2s cubic-bezier(.5, 0, .2, 1) infinite;
}
.bar {
  position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  width: 260px; padding: 11px 18px;
  background: var(--bar); color: #fff8ef;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  font: 600 14px var(--ui);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  animation: glow 4.2s infinite;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #7fd18b; box-shadow: 0 0 0 4px rgba(127, 209, 139, .2); }
@keyframes fly {
  0%, 12% { transform: translate(0, 0) scale(1); opacity: 0; }
  30% { transform: translate(-10px, 20px) scale(.95); }
  20% { opacity: 1; }
  48% { transform: translate(-90px, 196px) scale(.7); opacity: 1; }
  56%, 100% { transform: translate(-96px, 206px) scale(.5); opacity: 0; }
}
@keyframes glow {
  0%, 46% { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
  54% { box-shadow: 0 0 0 4px rgba(232, 145, 95, .45), 0 10px 30px rgba(0, 0, 0, .25); }
  70%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
}
@media (prefers-reduced-motion: reduce) { .capsule, .bar { animation: none; } .capsule { opacity: 0; } }

/* ---------- how ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1040px; margin: 0 auto; }
.card {
  padding: 26px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 18px 0 8px; font-size: 21px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.keys { display: flex; align-items: center; gap: 6px; height: 34px; color: var(--ink-3); font-weight: 600; }
.keys kbd { font-size: 15px; padding: 3px 10px; }
.keys .hold { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tray {
  width: 34px; height: 34px; border-radius: 10px;
  background: url(icon.svg) center / cover;
}

.sample {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center;
  max-width: 1040px; margin: 40px auto 0;
}
.sample pre {
  padding: 24px 26px;
  background: var(--side); border: 1px solid var(--line); border-radius: 14px;
  font: 14px/1.7 var(--mono); color: var(--ink-2);
  overflow-x: auto;
}
.sample pre b { color: var(--accent); font-weight: 600; }
.sample pre i { font-style: normal; color: var(--ink); }
.sample p { margin: 0; color: var(--ink-2); }
.sample > * { min-width: 0; }

/* ---------- privacy ---------- */
.privacy { background: var(--deep); color: #f4ece2; }
.privacy-inner { max-width: 1040px; margin: 0 auto; }
.privacy h2 { margin-left: 0; color: #fff8ef; }
.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; margin: 0 0 32px; padding: 0; list-style: none; }
.promises li { padding-left: 22px; position: relative; color: #d9cfc3; }
.promises li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: #e8915f; }
.promises b { color: #fff8ef; }
.link.light { color: #f0b07f; }

/* ---------- download / faq ---------- */
.download { max-width: 720px; margin: 0 auto; text-align: center; }
.download h2 { margin-bottom: 14px; }
.download p { color: var(--ink-2); }
.download .btn { margin: 14px 0 6px; }

.faq { max-width: 820px; margin: 0 auto; padding-top: 24px; }
.faq h2 { margin-left: 0; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary {
  cursor: pointer; list-style: none;
  padding: 16px 30px 16px 0; position: relative;
  font-weight: 600; font-size: 17px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--accent); font-size: 22px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 18px; color: var(--ink-2); }

footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 28px max(24px, calc((100% - 1040px) / 2));
  border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: 14px;
}
footer div { display: flex; align-items: center; gap: 8px; }
.foot-links { gap: 22px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .hero, .sample { grid-template-columns: 1fr; }
  .cards, .promises { grid-template-columns: 1fr; }
  .top nav a:not(.btn) { display: none; }
  section { padding: 64px 16px; }
  .stage { margin: 0 8px; }
}
