/* =========================================================
   Pure Codec / 完美解码 官网通用样式
   低调 · 克制的排版 · 深色基底
   ========================================================= */

:root {
  --bg: #0f1217;
  --bg-soft: #141921;
  --panel: #1a2029;
  --panel-2: #202834;
  --line: #2a3341;
  --line-soft: #232c39;
  --text: #e2e1de;
  --text-strong: #f6f5f2;
  --text-dim: #9aa0a8;
  --text-faint: #6f7680;
  --accent: #b9a26e;
  --accent-2: #6fa58f;
  --danger: #c07a6a;
  --radius: 14px;
  --radius-s: 8px;
  --shadow-1: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px rgba(0,0,0,.28);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 15px;
  letter-spacing: .01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(111,165,143,.09), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(185,162,110,.07), transparent 55%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(1200px 800px at 50% 0%, rgba(0,0,0,.5), transparent 75%);
}

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: rgba(185,162,110,.35); color: #fff; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ================= Header ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(15, 18, 23, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 38px; height: 38px; border-radius: 9px; box-shadow: var(--shadow-1); }
.brand-text { line-height: 1.2; }
.brand-name {
  font-family: "Georgia", "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text-strong);
}
.brand-sub { font-size: 11px; letter-spacing: .35em; color: var(--text-faint); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--text-dim);
  transition: color .25s ease, background .25s ease;
}
.main-nav a:hover { color: var(--text-strong); background: rgba(255,255,255,.04); }
.main-nav a.on { color: var(--accent); }
.main-nav a.on::after {
  content: "";
  display: block;
  width: 14px;
  height: 2px;
  margin: 4px auto 0;
  border-radius: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= Hero ================= */
.hero { position: relative; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  gap: 48px;
  padding: 88px 0 72px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-family: "Georgia", "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 1.16;
  color: var(--text-strong);
  letter-spacing: .02em;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead {
  font-size: 16.5px;
  color: var(--text-dim);
  max-width: 540px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  background: var(--panel);
  color: var(--text);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(135deg, #c7ae78, #a88f5a);
  border-color: transparent;
  color: #14181d;
  box-shadow: 0 6px 24px rgba(185,162,110,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(185,162,110,.4); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-plain { background: transparent; }

.hero-visual { position: relative; }
.hero-visual .frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-1);
  padding: 10px;
}
.hero-visual .frame img { border-radius: 8px; width: 100%; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 40%, rgba(111,165,143,.16), transparent 70%);
  filter: blur(6px);
}
.hero-float {
  position: absolute;
  left: -28px;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: var(--shadow-1);
}
.hero-float .dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(111,165,143,.16);
  color: var(--accent-2);
}
.hero-float b { font-size: 16px; color: var(--text-strong); display: block; line-height: 1.3; }
.hero-float small { font-size: 12px; color: var(--text-faint); }

/* ================= Stats bar ================= */
.stats-bar { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: rgba(26,32,41,.5); }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 30px 24px;
  text-align: center;
  border-left: 1px solid var(--line-soft);
}
.stat:first-child { border-left: 0; }
.stat b {
  font-family: "Georgia", serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: .02em;
}
.stat b span { color: var(--accent); }
.stat i { display: block; font-style: normal; font-size: 13px; color: var(--text-faint); margin-top: 6px; letter-spacing: .08em; }

/* ================= Sections ================= */
.section { padding: 92px 0; position: relative; }
.section--soft { background: rgba(20,25,33,.45); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.sec-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.sec-head .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.sec-head h2 {
  font-family: "Georgia", "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--text-strong);
  letter-spacing: .02em;
  margin-bottom: 14px;
}
.sec-head p { color: var(--text-dim); font-size: 15.5px; }

/* ================= Feature cards ================= */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow-1); }
.feature-card .icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(185,162,110,.1);
  color: var(--accent);
  margin-bottom: 20px;
}
.feature-card .icon svg { width: 26px; height: 26px; }
.feature-card .en-tag { font-family: Georgia, serif; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-faint); }
.feature-card h3 { font-size: 19px; color: var(--text-strong); margin: 6px 0 10px; letter-spacing: .02em; }
.feature-card p { font-size: 14.5px; color: var(--text-dim); }

/* ================= Split feature rows ================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split .media { position: relative; }
.split .media .frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 8px;
  box-shadow: var(--shadow-1);
}
.split .media .frame img { border-radius: 8px; width: 100%; }
.split h2 {
  font-family: "Georgia", "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(24px, 2.8vw, 32px);
  color: var(--text-strong);
  letter-spacing: .02em;
  line-height: 1.3;
  margin-bottom: 16px;
}
.split .desc { color: var(--text-dim); font-size: 15.5px; margin-bottom: 22px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 13px;
}
.check-list svg { width: 18px; height: 18px; color: var(--accent-2); flex: none; margin-top: 3px; }

/* ================= Player kernels ================= */
.kernel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.kernel {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .28s ease, transform .28s ease;
}
.kernel:hover { border-color: var(--accent); transform: translateY(-3px); }
.kernel .id { font-family: Georgia, serif; font-size: 13px; color: var(--accent); letter-spacing: .18em; }
.kernel h3 { font-size: 20px; color: var(--text-strong); margin: 8px 0 10px; }
.kernel p { font-size: 14.5px; color: var(--text-dim); }
.kernel .meta { margin-top: 14px; font-size: 12.5px; color: var(--text-faint); letter-spacing: .04em; }

/* ================= Formats / logo cloud ================= */
.format-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.format-tag {
  font-family: Georgia, "Courier New", monospace;
  font-size: 13.5px;
  letter-spacing: .08em;
  color: var(--text-dim);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: 9px 18px;
  border-radius: 999px;
  transition: border-color .25s ease, color .25s ease;
}
.format-tag:hover { border-color: var(--accent); color: var(--accent); }

/* ================= FAQ ================= */
.faq-item { border: 1px solid var(--line-soft); border-radius: var(--radius-s); background: var(--panel); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: Georgia, serif;
  font-size: 22px;
  color: var(--accent);
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .body { padding: 0 22px 20px; color: var(--text-dim); font-size: 14.5px; }

/* ================= Download CTA ================= */
.cta-band {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(185,162,110,.12), transparent 55%),
    radial-gradient(70% 120% at 0% 100%, rgba(111,165,143,.12), transparent 55%),
    var(--panel);
  padding: 56px;
  text-align: center;
}
.cta-band h2 {
  font-family: "Georgia", "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(24px, 2.8vw, 32px);
  color: var(--text-strong);
  margin-bottom: 14px;
  letter-spacing: .02em;
}
.cta-band p { color: var(--text-dim); max-width: 560px; margin: 0 auto 28px; font-size: 15px; }
.cta-band .btn { justify-content: center; }

/* ================= Download page ================= */
.page-head {
  padding: 64px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
}
.page-head .tag { color: var(--accent); font-size: 12.5px; letter-spacing: .28em; text-transform: uppercase; }
.page-head h1 {
  font-family: "Georgia", "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(30px, 3.6vw, 42px);
  color: var(--text-strong);
  margin: 12px 0 14px;
  letter-spacing: .02em;
}
.page-head .lead { color: var(--text-dim); max-width: 640px; margin: 0 auto; }

.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 56px 0 20px; }
.dl-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.dl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); border-color: var(--line); }
.dl-head { display: flex; align-items: center; gap: 16px; }
.dl-badge {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: none;
}
.dl-badge svg { width: 26px; height: 26px; }
.dl-badge.quark { background: rgba(111,165,143,.14); color: #5fc09a; }
.dl-badge.baidu { background: rgba(59,130,246,.13); color: #6fa8ff; }
.dl-head h3 { font-size: 19px; color: var(--text-strong); letter-spacing: .02em; }
.dl-head small { font-size: 12.5px; color: var(--text-faint); display: block; margin-top: 2px; }
.dl-desc { font-size: 14.5px; color: var(--text-dim); }
.attention {
  background: rgba(185,162,110,.08);
  border: 1px solid rgba(185,162,110,.22);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: #cfbf96;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.attention svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--accent); }
.dl-btn-row { display: grid; gap: 12px; margin-top: auto; }

/* Breathing QR border */
.qrcode-wrap { position: relative; display: inline-block; }
.qrcode-breathe {
  border-radius: 10px;
  animation: qr-breathe 3.2s ease-in-out infinite;
}
@keyframes qr-breathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(185,162,110,.35), 0 0 8px rgba(185,162,110,.08); }
  50%      { box-shadow: 0 0 0 3px rgba(185,162,110,.6), 0 0 22px rgba(185,162,110,.22); }
}
.qr-panel {
  display: flex;
  align-items: center;
  gap: 26px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 34px;
}
.qr-panel.side-2 { flex-direction: row-reverse; }
.qr-panel .qr-side { flex: none; text-align: center; }
.qr-panel .qr-side .qrcode-breathe { width: 168px; height: 168px; }
.qr-panel .qr-side p { font-size: 13.5px; margin-top: 12px; color: var(--text-dim); }
.qr-panel .txt h3 { font-size: 20px; color: var(--text-strong); margin-bottom: 12px; }
.qr-panel .txt ul { margin: 12px 0 18px; }
.qr-panel .txt li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text-dim); margin-bottom: 9px; }
.qr-panel .txt li svg { width: 16px; height: 16px; color: var(--accent-2); flex: none; margin-top: 4px; }
.copy-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-dim);
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  padding: 9px 16px;
  border-radius: 8px;
  transition: color .2s ease, border-color .2s ease;
}
.copy-link:hover { color: var(--accent); border-color: var(--accent); }
.copy-link svg { width: 15px; height: 15px; }

/* ================= Modal ================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,10,13,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in .3s ease;
}
.modal-box {
  position: relative;
  width: min(560px, 100%);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  text-align: center;
  animation: modal-in .34s cubic-bezier(.2,.8,.3,1);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.modal-close:hover { color: var(--text-strong); border-color: var(--accent); transform: rotate(90deg); }
.modal-kicker { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.modal-box h3 {
  font-family: "Georgia", "Noto Serif SC", "Songti SC", serif;
  font-size: 24px;
  color: var(--text-strong);
  margin: 10px 0 8px;
  letter-spacing: .02em;
}
.modal-sub { color: var(--text-dim); font-size: 14.5px; margin-bottom: 24px; }
.modal-qr { margin: 0 auto 14px; width: 200px; height: 200px; }
.modal-qr .qrcode-breathe { width: 200px; height: 200px; }
.modal-tip { font-size: 12.5px; color: var(--text-faint); margin: 4px 0 0; }
.modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.modal-note {
  margin-top: 18px;
  font-size: 13px;
  color: #cfbf96;
  background: rgba(185,162,110,.07);
  border: 1px solid rgba(185,162,110,.2);
  padding: 12px 16px;
  border-radius: 10px;
  text-align: left;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.modal-note svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--accent); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

/* ================= Timeline / versions ================= */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--line);
}
.tl-item { position: relative; padding: 0 0 26px 22px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -23px; top: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.tl-item b { font-family: Georgia, serif; color: var(--accent); font-size: 15px; letter-spacing: .04em; }
.tl-item p { font-size: 14px; color: var(--text-dim); margin-top: 5px; }

/* ================= Numbers / steps ================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.step .num {
  font-family: Georgia, serif;
  font-size: 42px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(185,162,110,.55);
  margin-bottom: 12px;
}
.step h3 { font-size: 17px; color: var(--text-strong); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-dim); }

/* ================= Footer ================= */
.site-footer { border-top: 1px solid var(--line-soft); background: rgba(13,16,20,.7); margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; padding: 56px 0 40px; }
.footer-brand .brand-name { font-size: 20px; }
.footer-brand p { font-size: 13.5px; color: var(--text-faint); margin-top: 14px; max-width: 320px; }
.footer-col h4 { font-size: 14px; letter-spacing: .12em; color: var(--text); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-dim); padding: 5px 0; transition: color .2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 20px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-faint);
}
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--accent); }

/* ================= Back to top ================= */
#toTop {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text-dim);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, color .2s ease;
}
#toTop.show { opacity: 1; pointer-events: auto; }
#toTop:hover { color: var(--accent); transform: translateY(-3px); }
#toTop svg { width: 18px; height: 18px; }

/* ================= Responsive ================= */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 60px 0 48px; }
  .hero-visual { order: -1; max-width: 560px; margin: 0 auto; }
  .feature-grid, .kernel-grid, .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .dl-grid { grid-template-columns: 1fr; }
  .qr-panel, .qr-panel.side-2 { flex-direction: column; text-align: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .main-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(15,18,23,.98);
    border-bottom: 1px solid var(--line);
    padding: 12px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .main-nav a { padding: 12px 16px; }
  .main-nav a.on::after { margin: 4px 0 0; }
  .feature-grid, .kernel-grid, .steps { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  .hero-float { left: 8px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .modal-box { padding: 32px 22px; }
  .modal-qr .qrcode-breathe { width: 170px; height: 170px; }
  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}