/* O宝 官网 · 主样式
   结构：基础 → 导航 → 按钮 → 首屏 → 区块 → Bento → 代码 → 步骤 → 下载 → 文档 → 页脚 → 动效 → 响应式 */

/* ========== 基础 ========== */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
code, pre, kbd { font-family: var(--mono); }
::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.wrap {
  width: min(100% - 44px, var(--maxw));
  margin-inline: auto;
}

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip:focus-visible { transform: none; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(180deg, var(--bg-2), var(--bg) 36%, var(--bg));
}
:root[data-theme="dark"] body::before {
  background: linear-gradient(180deg, var(--bg-2), var(--bg) 36%, var(--bg));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(to right, var(--line-2) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-2) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 56%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 56%);
}

.spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-soft) 0%, transparent 62%);
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.5s var(--ease);
  will-change: transform;
}
.spotlight, .spotlight.on { display: none; }

/* ========== 导航 ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.stuck {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.25) blur(18px);
  -webkit-backdrop-filter: saturate(1.25) blur(18px);
  border-bottom-color: var(--line);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100% - 44px, var(--maxw));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease);
}
.brand:hover .brand-mark { transform: translateY(-1px); }
.brand-text { font-size: 16px; line-height: 1.1; }
.brand-text small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-3);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-links a {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: translateX(-50%);
  transition: width 0.28s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 16px; }
.nav-links a[aria-current="page"] { color: var(--brand); font-weight: 600; }

.nav-tools { display: flex; align-items: center; gap: 8px; }

.topbar {
  height: 34px;
  background: #1c1917;
  color: #f4f1ed;
  font-size: 11.5px;
}
.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 44px, var(--maxw));
  height: 100%;
  margin-inline: auto;
}
.topbar-in > span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: rgba(244, 241, 237, 0.68);
}
.topbar-in b { color: #fff; font-weight: 650; }
.topbar-in a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(244, 241, 237, 0.62);
  transition: color 0.2s;
}
.topbar-in a:hover { color: #fff; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 13px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--brand-deep); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text-2);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-1px); }
.icon-btn svg { width: 17px; height: 17px; }

.burger { display: none; }

/* ========== 按钮 ========== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.24s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }

.btn-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: var(--shadow-brand);
}
.btn-primary::after {
  display: none;
}
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(180, 69, 43, 0.28); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:active { transform: translateY(0) scale(0.99); }

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--text-3); color: var(--text); transform: translateY(-1px); }

.btn-soft { color: var(--brand); background: var(--brand-soft); }
.btn-soft:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }

.btn-sm { height: 38px; padding: 0 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.28s var(--spring); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ========== 首屏 ========== */
.hero { position: relative; padding: 76px 0 104px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-3);
  box-shadow: none;
}
.eyebrow b {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 5px;
  background: var(--brand);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 2s infinite;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.06;
  font-weight: 750;
  letter-spacing: -0.04em;
}
.hero h1 .grad {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--brand);
}
.hero h1 .mark-line { position: relative; display: inline-block; }
.hero h1 .mark-line::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 0.02em;
  height: 0.07em;
  border-radius: 2px;
  background: var(--brand);
  opacity: 0.22;
  transform: scaleX(1);
  transform-origin: left;
  animation: none;
}
@keyframes draw { to { transform: scaleX(1); } }

.hero-sub {
  margin-top: 20px;
  max-width: 48ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-2);
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.hero-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 14px; height: 14px; color: var(--ok); }

/* 角色舞台 */
.stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 500px;
  isolation: isolate;
}
.stage-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 207, 168, 0.42), rgba(255, 226, 198, 0.1) 52%, transparent 70%);
  filter: blur(4px);
  animation: none;
  opacity: 0.7;
}
:root[data-theme="dark"] .stage-glow {
  background: radial-gradient(circle, rgba(217, 119, 87, 0.16), rgba(120, 62, 40, 0.08) 52%, transparent 70%);
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.09); opacity: 1; }
}

.stage-ring {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 1px solid var(--line);
  opacity: 0.8;
  animation: none;
}
.stage-ring::before,
.stage-ring::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.45;
}
.stage-ring::before { top: -3px; left: 50%; }
.stage-ring::after { bottom: -3px; left: 50%; background: var(--brand-hi); }
@keyframes spin { to { transform: rotate(360deg); } }

.mascot-wrap {
  position: relative;
  z-index: 2;
  width: min(400px, 84vw);
  animation: floaty 5.4s ease-in-out infinite;
  filter: drop-shadow(0 26px 34px rgba(122, 49, 24, 0.22));
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-16px) rotate(0.6deg); }
}
.mascot-wrap svg { width: 100%; height: auto; overflow: visible; }
.mascot-wrap .eye {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: transform 0.16s var(--ease-out);
}
.mascot-wrap.blink .eye { transform: scaleY(0.08); }
.mascot-wrap.blink .eye-glint { opacity: 0; }
.mascot-wrap .mascot-ant {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: sway 3.6s ease-in-out infinite;
}
.mascot-wrap .ant-r { animation-direction: reverse; animation-delay: -1.2s; }
.mascot-wrap .wink { animation: wink 4.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.mascot-wrap .logo-antenna {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: sway 3.6s ease-in-out infinite;
}
.mascot-wrap .logo-antenna-r { animation-direction: reverse; animation-delay: -1.2s; }
.mascot-wrap .logo-wink { animation: wink 4.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.mascot-wrap .wave-arm {
  transform-box: view-box;
  transform-origin: 300px 334px;
  animation: wave 3.6s ease-in-out infinite;
}
.mascot-wrap .mascot-sparkle { animation: twinkle 2.8s ease-in-out infinite; }
.mascot-wrap .mascot-sparkle:nth-of-type(2) { animation-delay: .9s; }
.mascot-wrap .mascot-sparkle:nth-of-type(3) { animation-delay: 1.7s; }
@keyframes sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
@keyframes wave {
  0%, 58%, 100% { transform: rotate(0deg); }
  68% { transform: rotate(-11deg); }
  80% { transform: rotate(4deg); }
  90% { transform: rotate(-6deg); }
}
@keyframes wink {
  0%, 86%, 100% { transform: scaleY(1); }
  92% { transform: scaleY(0.16); }
}
@keyframes twinkle {
  0%, 100% { opacity: .35; transform: scale(.85); transform-origin: center; }
  50% { opacity: .95; transform: scale(1.12); transform-origin: center; }
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  animation: chipFloat 6s ease-in-out infinite;
}
.float-chip { display: none; }
.float-chip i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand);
}
.float-chip svg { width: 13px; height: 13px; }
.chip-1 { top: 6%; left: -2%; }
.chip-2 { top: 20%; right: -3%; animation-delay: 1.1s; }
.chip-3 { bottom: 22%; left: -6%; animation-delay: 2.1s; }
.chip-4 { bottom: 5%; right: 0; animation-delay: 3.2s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-13px); }
}

/* 跑马灯 */
.marquee {
  padding: 14px 0;
  border-block: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-3);
  white-space: nowrap;
}
.marquee-item b { color: var(--text-2); font-weight: 600; }
.marquee-item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.6;
}

/* ========== 区块通用 ========== */
.section { padding: 88px 0; }
.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.section-tag::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}
.section h2 {
  margin-top: 12px;
  font-size: clamp(27px, 3.2vw, 36px);
  line-height: 1.22;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.section-desc {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-2);
}

/* ========== 内页页头 ========== */
.page-head {
  position: relative;
  padding: 56px 0 20px;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: -40px 0 auto;
  height: 340px;
  background:
    radial-gradient(620px 260px at 12% 0%, var(--brand-softer), transparent 70%),
    radial-gradient(520px 240px at 88% 20%, rgba(255, 207, 168, 0.35), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.page-head h1 {
  margin-top: 18px;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.032em;
}
.page-head .lead {
  margin-top: 16px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-2);
}
.page-head .lead strong { color: var(--text); font-weight: 600; }

/* ========== 产品定位 ========== */
.about { padding-top: 72px; padding-bottom: 8px; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: start;
}
.about h2 {
  margin-top: 12px;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.22;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.about-lead > p {
  max-width: 56ch;
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-2);
}
.about-lead > p a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.about-lead .link-arrow { margin-top: 20px; }
.about-facts {
  display: grid;
  border-top: 1px solid var(--line);
}
.about-fact {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.about-fact span {
  grid-row: 1 / span 2;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-4);
  line-height: 1.7;
}
.about-fact b { grid-column: 2; grid-row: 1; font-size: 15px; font-weight: 650; }
.about-fact p { grid-column: 2; grid-row: 2; margin-top: 2px; font-size: 13px; color: var(--text-3); }

/* ========== 实机与设置 ========== */
.settings { background: var(--bg); }
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 76px;
  align-items: center;
}
.settings-media {
  display: grid;
  justify-items: center;
  gap: 16px;
}
.device {
  position: relative;
  width: min(300px, 80vw);
  aspect-ratio: 9 / 20;
  padding: 8px;
  border-radius: 42px;
  background: linear-gradient(155deg, #322720, #17120f 60%, #241b16);
  box-shadow: 0 30px 70px rgba(28, 25, 23, 0.18), 0 8px 18px rgba(28, 25, 23, 0.08);
}
.device-notch {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 50%;
  width: 76px;
  height: 20px;
  border-radius: var(--r-pill);
  background: #0d0a08;
  transform: translateX(-50%);
}
.device img {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: cover;
  object-position: top center;
  border-radius: 34px;
}
.device-caption {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-3);
}
.device-caption i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.settings-copy h2 {
  margin-top: 12px;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.22;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.settings-copy > p {
  max-width: 56ch;
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-2);
}
.setting-list {
  display: grid;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.setting-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.setting-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
}
.setting-icon svg { width: 18px; height: 18px; }
.setting-row b { font-size: 14px; font-weight: 650; }
.setting-row p { margin-top: 2px; font-size: 12.5px; line-height: 1.6; color: var(--text-3); }

/* ========== Bento ========== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.card {
  position: relative;
  padding: 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), border-color 0.24s;
}
.card::before {
  display: none;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--line-strong);
}
.card:hover::before { opacity: 1; }

.card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 15px;
  transition: transform 0.25s var(--ease);
}
.card:hover .card-icon { transform: translateY(-1px); }
.card-icon svg { width: 21px; height: 21px; }

.card h3 {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.012em;
  margin-bottom: 7px;
}
.card p { font-size: 13.5px; line-height: 1.7; color: var(--text-2); }

.card-wide { grid-column: span 3; }
.card-half { grid-column: span 3; }
.card-third { grid-column: span 2; }

.card-visual {
  grid-column: span 6;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 32px;
  background: var(--surface);
}

.cap-list { display: grid; gap: 10px; }
.cap-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
}
.cap-row:hover {
  transform: translateX(2px);
  border-color: var(--line-strong);
  background: var(--surface);
}
.cap-key {
  flex: 0 0 auto;
  min-width: 64px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: var(--r-xs);
  padding: 3px 7px;
  text-align: center;
}
.cap-row p { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.cap-row p b { color: var(--text); font-weight: 600; }

.term {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface-2);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--bg-3) 46%, var(--surface));
}
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.term-bar i:nth-child(1) { background: #ef6a5f; }
.term-bar i:nth-child(2) { background: #f2be4e; }
.term-bar i:nth-child(3) { background: #4cc38a; }
.term-bar span { margin-left: 8px; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.term-body {
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--text-2);
  min-height: 218px;
}
.term-body .u { color: var(--brand); font-weight: 600; }
.term-body .c { color: var(--text-4); }
.term-body .k { color: var(--brand-deep); font-weight: 600; }
:root[data-theme="dark"] .term-body .k { color: var(--brand-hi); }
.term-body .s { color: var(--ok); }
.term-line { opacity: 0; transform: translateY(4px); animation: lineIn 0.4s var(--ease-out) forwards; }
@keyframes lineIn { to { opacity: 1; transform: none; } }
.caret::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--brand);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* ========== 双栏 ========== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 44px;
  align-items: center;
}
.split.flip { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
.split > * { min-width: 0; }

.check-list { display: grid; gap: 14px; margin-top: 24px; }
.check-list li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}
.check-list svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}
.check-list b { color: var(--text); font-weight: 600; }

.code-window {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #241b16;
  color: rgba(255, 236, 219, 0.82);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
:root[data-theme="dark"] .code-window { background: #14100d; }
.code-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 8px 0 14px;
  border-bottom: 1px solid rgba(255, 236, 219, 0.09);
}
.code-dots { display: flex; gap: 6px; }
.code-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 236, 219, 0.18); }
.code-dots i:nth-child(1) { background: #ef6a5f; }
.code-dots i:nth-child(2) { background: #f2be4e; }
.code-dots i:nth-child(3) { background: #4cc38a; }
.code-name { margin-left: 6px; font-family: var(--mono); font-size: 11.5px; color: rgba(255, 236, 219, 0.48); }
.copy-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--r-xs);
  font-size: 11.5px;
  color: rgba(255, 236, 219, 0.6);
  background: rgba(255, 236, 219, 0.07);
  transition: color 0.2s, background 0.2s;
}
.copy-btn:hover { color: #fff; background: rgba(255, 236, 219, 0.14); }
.copy-btn svg { width: 12px; height: 12px; }
.copy-btn.done { color: #6ee7a8; }

.code-body {
  margin: 0;
  padding: 16px 0 18px;
  overflow-x: auto;
  font-size: 12.8px;
  line-height: 1.9;
  counter-reset: ln;
}
.code-body code { display: block; min-width: max-content; }
.code-body .ln {
  display: block;
  padding-right: 18px;
  white-space: pre;
  counter-increment: ln;
}
.code-body .ln::before {
  content: counter(ln);
  display: inline-block;
  width: 34px;
  padding-right: 14px;
  text-align: right;
  color: rgba(255, 236, 219, 0.22);
  user-select: none;
}
.tok-kw { color: #f0956f; }
.tok-str { color: #a8d98b; }
.tok-num { color: #e8c07d; }
.tok-cmt { color: rgba(255, 236, 219, 0.34); font-style: italic; }
.tok-fn { color: #8ec5f0; }
.tok-prop { color: #e9d5c3; }
.tok-op { color: rgba(255, 236, 219, 0.62); }

/* ========== 界面预览 ========== */
.showcase {
  position: relative;
  background: var(--bg-2);
  border-block: 1px solid var(--line-2);
}
.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 48px;
  align-items: center;
}
.showcase-copy { min-width: 0; }

.demo-tabs { display: grid; gap: 8px; }
.demo-tabs button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  text-align: left;
  color: var(--text-2);
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
}
.demo-tabs button:hover { transform: translateX(2px); border-color: var(--line-strong); }
.demo-tabs button b {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--mono);
  font-size: 11px;
  transition: background 0.3s, color 0.3s;
}
.demo-tabs button span { font-size: 14px; font-weight: 700; color: var(--text); }
.demo-tabs button small { margin-left: auto; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.demo-tabs button.on {
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.demo-tabs button.on b { background: var(--brand); color: #fff; }

.demo-caption h3 {
  margin-top: 28px;
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.022em;
}
.demo-caption p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.78;
  color: var(--text-2);
}
.demo-points { display: grid; gap: 8px; margin-top: 16px; }
.demo-points li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}
.demo-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.55;
}
.demo-points b { color: var(--text); font-weight: 650; }
.demo-points code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-family: var(--mono);
  font-size: 0.92em;
}
.demo-meter {
  height: 4px;
  margin-top: 24px;
  border-radius: var(--r-pill);
  background: var(--line-2);
  overflow: hidden;
}
.demo-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-hi), var(--brand));
}
.demo-meter span.run { animation: demoMeter 7s linear forwards; }
@keyframes demoMeter { from { width: 0; } to { width: 100%; } }

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 760px;
  overflow: hidden;
}
.phone-halo {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  display: none;
}
:root[data-theme="dark"] .phone-halo {
  background: radial-gradient(circle, rgba(224, 126, 92, 0.24), rgba(120, 62, 40, 0.12) 54%, transparent 70%);
}
.phone {
  position: relative;
  z-index: 2;
  width: min(340px, 78vw);
  aspect-ratio: 17 / 36;
  padding: 10px;
  border-radius: 48px;
  background: linear-gradient(155deg, #3b2a21, #1d1511 58%, #2c1f18);
  box-shadow:
    0 42px 90px rgba(80, 45, 25, 0.3),
    0 10px 24px rgba(80, 45, 25, 0.18),
    inset 0 0 0 1px rgba(255, 236, 219, 0.13);
  transform: none;
  transition: transform 0.35s var(--ease);
}
.phone:hover { transform: translateY(-3px); }
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  right: -2px;
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 236, 219, 0.3);
}
.phone::before { top: 138px; height: 52px; }
.phone::after { top: 206px; height: 74px; }
.phone-notch {
  position: absolute;
  z-index: 4;
  top: 17px;
  left: 50%;
  width: 88px;
  height: 22px;
  border-radius: var(--r-pill);
  background: #17100d;
  transform: translateX(-50%);
}
.phone-screen {
  position: absolute;
  inset: 10px;
  display: flex;
  flex-direction: column;
  border-radius: 39px;
  background: #17120f;
  overflow: hidden;
  color: var(--text);
}
.real-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.real-shot.on { opacity: 1; }
.phone-status {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 21px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  color: #4b3a30;
}

.app-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 11px;
  border-bottom: 1px solid rgba(44, 33, 26, 0.08);
  background: rgba(255, 251, 244, 0.92);
}
.app-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(150deg, #d97757, #a63f27);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.app-avatar i {
  position: absolute;
  top: 11px;
  width: 5px;
  height: 7px;
  border-radius: 3px;
  background: #fff8ed;
}
.app-avatar i:nth-child(1) { left: 9px; }
.app-avatar i:nth-child(2) { right: 9px; }
.app-avatar b {
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 7px;
  height: 4px;
  border-radius: 0 0 5px 5px;
  background: #fff8ed;
  transform: translateX(-50%);
}
.app-id { display: grid; gap: 1px; min-width: 0; }
.app-id b { font-size: 12.5px; line-height: 1.2; }
.app-id small { font-size: 9px; color: #9b8475; line-height: 1.2; }
.app-online {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: var(--r-pill);
  background: rgba(47, 158, 106, 0.1);
  color: #2f9e6a;
  font-size: 8.5px;
  font-weight: 700;
}
.app-online::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 4px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 1px;
}

.app-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(260px 170px at 88% 8%, rgba(255, 212, 179, 0.42), transparent 68%),
    #fffaf2;
}
.app-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 13px;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}
.app-screen.on { opacity: 1; transform: none; pointer-events: auto; }
.fake-date { align-self: center; font-size: 8.5px; color: #b19d8e; }
.bubble {
  max-width: 90%;
  padding: 8px 10px;
  border-radius: 13px;
  font-size: 10.2px;
  line-height: 1.55;
}
.bubble.user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: linear-gradient(145deg, #d06a4c, #b6472b);
  color: #fff8ed;
  box-shadow: 0 5px 14px rgba(166, 63, 39, 0.2);
}
.bubble.bot {
  align-self: flex-start;
  border: 1px solid rgba(44, 33, 26, 0.08);
  border-bottom-left-radius: 4px;
  background: #fff;
  color: #55443a;
  box-shadow: 0 3px 10px rgba(80, 45, 25, 0.05);
}
.bubble.bot p { margin: 2px 0 0; font-size: 10.2px; line-height: 1.5; color: inherit; }
.bubble.result { display: grid; gap: 2px; width: 90%; }
.bubble.result b { color: #3d2d23; }
.bubble.result span { font-family: var(--mono); font-size: 8.8px; color: #8c7464; }
.typing { display: flex; gap: 3px; align-items: center; height: 8px; }
.typing i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c0553a;
  opacity: 0.34;
  animation: typing 1.2s ease-in-out infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.28; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

.run-card {
  display: grid;
  gap: 5px;
  padding: 9px 10px;
  border: 1px solid rgba(192, 85, 58, 0.18);
  border-radius: 12px;
  background: rgba(255, 250, 242, 0.9);
}
.run-head {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8.8px;
  color: #9b8475;
  letter-spacing: 0.02em;
}
.run-head b { margin-left: auto; color: #b6472b; font-family: var(--mono); }
.run-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2f9e6a;
  box-shadow: 0 0 0 3px rgba(47, 158, 106, 0.13);
  animation: pulse 2s infinite;
}
.run-line {
  display: grid;
  grid-template-columns: 6px 1fr auto;
  align-items: center;
  gap: 6px;
  font-size: 8.8px;
  color: #6d5c4f;
}
.run-line i { width: 5px; height: 5px; border-radius: 50%; border: 1px solid #c9b9aa; }
.run-line.done i { border-color: #2f9e6a; background: #2f9e6a; }
.run-line b { font-family: var(--mono); font-weight: 500; color: #a58f7f; }
.tip-card {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 1px dashed rgba(192, 85, 58, 0.26);
  border-radius: 9px;
  background: rgba(192, 85, 58, 0.045);
}
.tip-card span {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(192, 85, 58, 0.12);
  color: #b6472b;
  font-size: 7.5px;
  font-weight: 700;
}
.tip-card p { flex: 1; margin: 0; font-size: 8.6px; line-height: 1.4; color: #6d5c4f; }
.tip-card b { color: #b6472b; font-size: 8.5px; }
.app-quick { display: flex; gap: 6px; margin-top: auto; }
.app-quick span {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid rgba(192, 85, 58, 0.2);
  border-radius: 8px;
  background: rgba(192, 85, 58, 0.06);
  color: #b6472b;
  font-size: 8.5px;
  font-weight: 600;
  text-align: center;
}

.screen-title { display: flex; align-items: baseline; gap: 7px; }
.screen-title b { font-size: 12px; color: #3d2d23; }
.screen-title span { margin-left: auto; font-family: var(--mono); font-size: 8.5px; color: #a58f7f; }
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.app-tile {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 10px 4px 8px;
  border: 1px solid rgba(44, 33, 26, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}
.app-tile b { font-size: 8.5px; color: #6d5c4f; font-weight: 600; }
.tile-icon { width: 26px; height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); }
.t1 { background: linear-gradient(140deg, #f0a184, #c0553a); }
.t2 { background: linear-gradient(140deg, #e8c07d, #b8873a); }
.t3 { background: linear-gradient(140deg, #a8d98b, #5d9d52); }
.t4 { background: linear-gradient(140deg, #8ec5f0, #4a7fa8); }
.t5 { background: linear-gradient(140deg, #c7b8e8, #7c65b2); }
.t6 { background: linear-gradient(140deg, #f2be4e, #d07a2c); }
.sandbox-view {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  margin-top: 2px;
  padding: 8px 9px;
  border: 1px solid rgba(44, 33, 26, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
}
.sandbox-head { display: flex; align-items: baseline; gap: 6px; padding-bottom: 3px; }
.sandbox-head b { font-size: 9px; color: #4b3a30; }
.sandbox-head span { margin-left: auto; font-family: var(--mono); font-size: 7.5px; color: #a58f7f; }
.sandbox-row {
  display: grid;
  grid-template-columns: 7px 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  border-bottom: 1px dashed rgba(44, 33, 26, 0.07);
  font-size: 8.5px;
  color: #6d5c4f;
}
.sandbox-row i { width: 5px; height: 5px; border-radius: 50%; background: #d9cabb; }
.sandbox-row b { font-family: var(--mono); font-size: 8px; color: #8c7464; font-weight: 500; }
.sandbox-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: auto;
  padding: 6px 8px;
  border-radius: 7px;
  background: linear-gradient(145deg, #d06a4c, #b6472b);
  color: #fff8ed;
  font-size: 8.5px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(166, 63, 39, 0.18);
}
.sandbox-cta span { font-size: 9px; }
.tap-focus {
  position: absolute;
  right: 2px;
  top: 50%;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 236, 219, 0.74);
  animation: tapPulse 2.8s ease-out infinite;
}
.tap-focus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff8ed;
  box-shadow: 0 0 0 4px rgba(255, 248, 237, 0.18);
  transform: translate(-50%, -50%);
}
@keyframes tapPulse {
  0% { transform: scale(0.7); opacity: 0; }
  20% { opacity: 1; }
  70% { transform: scale(1.25); opacity: 0.28; }
  100% { transform: scale(1.5); opacity: 0; }
}
.action-stack { display: grid; gap: 6px; }
.action-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid rgba(192, 85, 58, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 8.3px;
  color: #6d5c4f;
}
.action-line .k {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(192, 85, 58, 0.1);
  color: #b6472b;
  font-family: var(--mono);
}
.action-line b { color: #2f9e6a; font-family: var(--mono); font-weight: 500; }

.trace { display: grid; gap: 4px; margin-top: 4px; }
.trace-item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(44, 33, 26, 0.06);
}
.trace-item > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2f9e6a;
  box-shadow: 0 0 0 3px rgba(47, 158, 106, 0.1);
}
.trace-item div { display: grid; gap: 1px; }
.trace-item b { font-size: 9px; color: #4b3a30; }
.trace-item small { font-family: var(--mono); font-size: 7.6px; color: #a58f7f; }
.trace-item > span { color: #2f9e6a; font-size: 9px; }
.trace-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 8px 9px;
  border-radius: 9px;
  background: rgba(47, 158, 106, 0.08);
  border: 1px solid rgba(47, 158, 106, 0.18);
}
.trace-summary b { font-size: 9.5px; color: #277f54; }
.trace-summary span { font-family: var(--mono); font-size: 8px; color: #6d8c7b; }

.app-composer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 47px;
  padding: 0 10px 0 14px;
  border-top: 1px solid rgba(44, 33, 26, 0.08);
  background: rgba(255, 251, 244, 0.96);
}
.app-composer span {
  flex: 1;
  font-size: 9.5px;
  color: #b19d8e;
}
.app-composer b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(145deg, #d06a4c, #b6472b);
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

.showcase-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  animation: chipFloat 6.4s ease-in-out infinite;
}
.showcase-chip { display: none; }
.showcase-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(47, 158, 106, 0.13); }
.showcase-chip.chip-a { top: 17%; left: 0; }
.showcase-chip.chip-b { right: 0; bottom: 15%; animation-delay: 1.4s; }

/* ========== 步骤 ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 22px 24px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.32s var(--ease), border-color 0.32s, box-shadow 0.32s;
}
.step:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 26%, var(--line));
  box-shadow: var(--shadow-md);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
  opacity: 0.22;
  margin-bottom: 14px;
  transition: opacity 0.32s;
}
.step:hover::before { opacity: 0.55; }
.step h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-2); line-height: 1.7; }

/* ========== 下载 ========== */
.dl-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  border-radius: var(--r-2xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.dl-main { padding: 34px; }
.dl-main, .dl-side { min-width: 0; }
.dl-side {
  padding: 34px 30px;
  border-left: 1px solid var(--line-2);
  background:
    radial-gradient(320px 240px at 100% 0%, var(--brand-softer), transparent 70%),
    var(--surface-2);
}
.dl-ver { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--text-2);
  background: var(--surface);
}
.pill.brand { color: var(--brand); background: var(--brand-soft); border-color: transparent; }
.pill.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: transparent; }

.dl-title { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; }
.dl-title span { color: var(--brand); }
.dl-meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.dl-meta b { color: var(--text-2); font-weight: 600; }

.hash-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
}
.hash-row span {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.hash-row code {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11.5px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hash-row button {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand);
  padding: 3px 8px;
  border-radius: var(--r-xs);
  transition: background 0.2s;
}
.hash-row button:hover { background: var(--brand-soft); }

.dl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.spec-list { display: grid; gap: 12px; }
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.spec-row:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-row dt { color: var(--text-3); white-space: nowrap; }
.spec-row dd { min-width: 0; color: var(--text); font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.changelog { display: grid; margin-top: 8px; }
.log-item {
  position: relative;
  padding: 0 0 26px 26px;
  border-left: 1px solid var(--line);
}
.log-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.log-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand);
}
.log-item:first-child::before { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.log-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.log-head b { font-size: 14px; }
.log-head time { font-size: 12px; color: var(--text-3); }
.log-item ul { display: grid; gap: 6px; }
.log-item li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
}
.log-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-4);
}

.faq { display: grid; gap: 10px; }
.faq details {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}
.faq details[open] {
  border-color: color-mix(in srgb, var(--brand) 26%, var(--line));
  background: var(--surface-2);
}
.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform 0.28s var(--ease);
  flex: 0 0 auto;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq-body { padding: 0 20px 18px; font-size: 13.5px; line-height: 1.8; color: var(--text-2); }
.faq .faq-body code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 12px;
}
:root[data-theme="dark"] .faq .faq-body code { color: var(--brand-hi); }

/* ========== 文档 ========== */
.doc-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding: 40px 0 90px;
}

.doc-side {
  position: sticky;
  top: calc(var(--nav-h) + 22px);
  max-height: calc(100vh - var(--nav-h) - 44px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}
.doc-side::-webkit-scrollbar { width: 5px; }
.doc-side::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }

.side-search { position: relative; margin-bottom: 20px; }
.side-search svg {
  position: absolute;
  left: 11px;
  top: 50%;
  width: 14px;
  height: 14px;
  color: var(--text-4);
  transform: translateY(-50%);
  pointer-events: none;
}
.side-search input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 33px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.side-search input::placeholder { color: var(--text-4); }
.side-search input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }

.doc-toc-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  margin: 2px 0 16px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.doc-toc-toggle small { margin-left: auto; color: var(--text-3); font-size: 11px; font-weight: 500; }
.doc-toc-toggle i {
  width: 7px;
  height: 7px;
  margin: -3px 2px 0 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s, margin 0.25s;
}
.doc-side.open .doc-toc-toggle i { margin-top: 3px; transform: rotate(-135deg); }
.doc-side.open .doc-toc-toggle { margin-bottom: 18px; }

.side-group { margin-bottom: 20px; }
.side-group > p {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-4);
  padding: 0 10px;
  margin-bottom: 7px;
}
.side-group a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--r-xs);
  font-size: 13px;
  color: var(--text-2);
  border-left: 2px solid transparent;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.side-group a:hover { color: var(--text); background: var(--brand-softer); }
.side-group a.active {
  color: var(--brand);
  font-weight: 600;
  background: var(--brand-soft);
  border-left-color: var(--brand);
}

.doc-body { min-width: 0; }
.doc-body > section {
  scroll-margin-top: calc(var(--nav-h) + 24px);
  padding-bottom: 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line-2);
}
.doc-body > section:last-child { border-bottom: 0; margin-bottom: 0; }

.doc-body h1 {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.doc-lead {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-2);
  max-width: 62ch;
}
.doc-body h2 { font-size: 24px; font-weight: 750; letter-spacing: -0.02em; margin-bottom: 14px; }
.doc-body h3 { font-size: 16.5px; font-weight: 700; margin: 26px 0 10px; }
.doc-body h4 { font-size: 14.5px; font-weight: 700; margin: 20px 0 8px; color: var(--text); }
.doc-body p { font-size: 14.5px; line-height: 1.8; color: var(--text-2); margin-bottom: 12px; }

.doc-body p code,
.doc-body li code,
.doc-body td code,
.doc-body th code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 12.4px;
  white-space: nowrap;
}
:root[data-theme="dark"] .doc-body p code,
:root[data-theme="dark"] .doc-body li code,
:root[data-theme="dark"] .doc-body td code,
:root[data-theme="dark"] .doc-body th code { color: var(--brand-hi); }

.doc-body ul.bullets { display: grid; gap: 8px; margin: 12px 0 16px; }
.doc-body ul.bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
}
.doc-body ul.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--brand);
  opacity: 0.5;
  transform: rotate(45deg);
}

.callout {
  display: flex;
  gap: 12px;
  padding: 15px 17px;
  margin: 16px 0;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-2);
}
.callout svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: var(--brand); }
.callout b { color: var(--text); }
.callout.warn {
  border-color: color-mix(in srgb, var(--warn) 34%, var(--line));
  background: color-mix(in srgb, var(--warn) 7%, var(--surface));
}
.callout.warn svg { color: var(--warn); }

.table-scroll { overflow-x: auto; margin: 16px 0 20px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 13.2px; }
.doc-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.doc-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-2);
  color: var(--text-2);
  vertical-align: top;
  line-height: 1.65;
}
.doc-table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.doc-table tr:hover td { background: var(--brand-softer); }
.doc-table .mono { font-family: var(--mono); font-size: 12.2px; font-weight: 500; }

.api-grid { display: grid; gap: 10px; margin-top: 14px; }
.api-item {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.24s, box-shadow 0.24s;
}
.api-item:hover { border-color: color-mix(in srgb, var(--brand) 26%, var(--line)); box-shadow: var(--shadow-sm); }
.api-item.hide { display: none; }
.api-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  cursor: pointer;
  list-style: none;
}
.api-head::-webkit-details-marker { display: none; }
.api-sig {
  font-family: var(--mono);
  font-size: 12.6px;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.api-sig em { font-style: normal; color: var(--brand); }
.api-tag {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  color: var(--brand);
}
.api-head::after {
  content: "";
  margin-left: auto;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid var(--text-3);
  border-bottom: 1.6px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform 0.24s var(--ease);
}
.api-item[open] .api-head::after { transform: rotate(-135deg); }
.api-body { padding: 0 15px 15px; font-size: 13.2px; line-height: 1.75; color: var(--text-2); }
.api-body p { font-size: 13.2px; margin-bottom: 8px; }
.api-body .params { display: grid; gap: 6px; margin-top: 8px; }
.api-param {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 10px;
  font-size: 12.6px;
  padding: 6px 10px;
  border-radius: var(--r-xs);
  background: var(--surface-2);
}
.api-param code { font-size: 12px; color: var(--brand-deep); background: none; padding: 0; }
:root[data-theme="dark"] .api-param code { color: var(--brand-hi); }
.api-param span { color: var(--text-3); }

.mini-code {
  position: relative;
  margin: 12px 0 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #241b16;
  overflow: hidden;
}
:root[data-theme="dark"] .mini-code { background: #14100d; }
.mini-code pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 12.4px;
  line-height: 1.85;
  color: #f4e7d9;
}
.mini-code .copy-btn { position: absolute; top: 8px; right: 8px; opacity: 0; transition: opacity 0.2s; }
.mini-code:hover .copy-btn { opacity: 1; }

.tabs {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface-2);
  margin-bottom: 16px;
  overflow-x: auto;
  max-width: 100%;
}
.tabs button {
  height: 30px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--brand); background: var(--surface); box-shadow: var(--shadow-sm); }
.tab-panel { display: none; }
.tab-panel.on { display: block; animation: fadeUp 0.4s var(--ease-out); }

.empty-hint {
  display: none;
  padding: 28px;
  text-align: center;
  border-radius: var(--r-lg);
  border: 1px dashed var(--line-strong);
  color: var(--text-3);
  font-size: 13.5px;
}
.empty-hint.on { display: block; }

/* ========== CTA ========== */
.cta {
  position: relative;
  padding: 64px 40px;
  border-radius: var(--r-2xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1c1917;
  overflow: hidden;
  text-align: center;
  color: #f4f1ed;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 74%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 74%);
  pointer-events: none;
}
.cta h2, .cta p, .cta-actions { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(27px, 3.4vw, 38px); font-weight: 750; letter-spacing: -0.03em; }
.cta p { margin: 12px auto 28px; max-width: 52ch; font-size: 15px; color: rgba(244, 241, 237, 0.64); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.2); color: #f4f1ed; box-shadow: none; }
.cta .btn-ghost:hover { border-color: rgba(255, 255, 255, 0.42); color: #fff; }
.cta-bubble { display: none; }
@keyframes floatBubble {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-24px) scale(1.08); }
}

/* ========== 页脚 ========== */
.footer {
  margin-top: 40px;
  padding: 46px 0 34px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 40%, transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 34px;
}
.footer-brand p {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-3);
}
.footer-col h4 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.18s, transform 0.18s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--text-4);
}

/* ========== 动效 ========== */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 158, 106, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(47, 158, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 158, 106, 0); }
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 90;
  background: linear-gradient(90deg, var(--brand-hi), var(--brand));
  transition: width 0.1s linear;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 80px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--spring), opacity 0.3s;
}
.toast.on { transform: translate(-50%, 0); opacity: 1; }

/* ========== 响应式 ========== */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .stage { min-height: 430px; order: 0; }
  .mascot-wrap { width: min(300px, 64vw); }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .settings-grid { grid-template-columns: 1fr; gap: 40px; }
  .settings-copy { max-width: 680px; }
  .showcase-grid { grid-template-columns: 1fr; gap: 30px; }
  .showcase-copy { max-width: 640px; margin-inline: auto; }
  .phone-stage { min-height: 760px; }
  .chip-1 { left: 4%; }
  .chip-2 { right: 2%; }
  .chip-3 { left: 0; }
  .card-visual { grid-template-columns: 1fr; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 28px; }
  .split.flip .split-media { order: -1; }
  .dl-panel { grid-template-columns: minmax(0, 1fr); }
  .dl-side { border-left: 0; border-top: 1px solid var(--line-2); }
  .doc-shell { grid-template-columns: 1fr; gap: 0; }
  .doc-side {
    position: static;
    max-height: none;
    margin-bottom: 28px;
    padding: 14px;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: var(--surface);
  }
  .side-group { margin-bottom: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.36s var(--ease), opacity 0.28s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; border-radius: var(--r-sm); font-size: 15px; }
  .nav-links a::after { display: none; }
  .burger { display: inline-grid; }
  .nav-cta { display: none; }
  .nav-tools { margin-left: auto; }
  .doc-toc-toggle { display: flex; }
  .doc-side .side-group { display: none; }
  .doc-side.open .side-group { display: block; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-wide, .card-half, .card-third, .card-visual { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .cta { padding: 42px 22px; }
  .api-param { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 620px) {
  .wrap, .nav-in { width: min(100% - 32px, var(--maxw)); }
  .hero { padding: 30px 0 56px; }
  .hero h1 { font-size: clamp(32px, 9.4vw, 42px); }
  .hero-sub { font-size: 15px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .float-chip { display: none; }
  .stage { order: 0; min-height: 370px; margin-top: 8px; }
  .stage-ring { width: 264px; height: 264px; }
  .stage-glow { width: 300px; height: 300px; }
  .device { width: min(280px, 78vw); }
  .demo-tabs button { padding: 9px 11px; }
  .demo-tabs button small { display: none; }
  .demo-caption h3 { margin-top: 22px; }
  .phone-stage { min-height: 700px; }
  .phone { width: min(308px, 86vw); border-radius: 43px; padding: 9px; }
  .phone-screen { inset: 9px; border-radius: 35px; }
  .showcase-chip { display: none; }
  .bento { grid-template-columns: 1fr; }
  .card-wide, .card-half, .card-third, .card-visual { grid-column: span 1; }
  .card-visual { padding: 20px; }
  .dl-main, .dl-side { padding: 24px 20px; }
  .dl-title { font-size: 21px; }
  .hash-row { flex-wrap: wrap; }
  .hash-row code { flex: 1 0 100%; order: 3; white-space: normal; overflow: visible; overflow-wrap: anywhere; }
  .dl-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-actions .btn { flex: 1 1 100%; }
  .brand-text small { display: none; }
  .section h2 { font-size: 25px; }
  .code-body { font-size: 11.8px; }
  .code-body .ln::before { width: 26px; padding-right: 10px; }
  .term-body { font-size: 11.6px; min-height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
