/* XCode 官网 — 单文件样式表
   设计语言：曜石黑底 + 青蓝→紫渐变 + 玻璃卡片 + 产品 UI mockup
   无任何外部字体/CDN 依赖，保证国内网络直接可用。 */

:root {
  --bg: #06070b;
  --bg-soft: #090b11;
  --panel: #0d1018;
  --panel-2: #11151f;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f4f9;
  --muted: #9aa3b7;
  --dim: #6e778c;
  --cyan: #4cc9f0;
  --blue: #5b8cff;
  --violet: #8b7cf6;
  --amber: #f5b544;
  --green: #34d399;
  --red: #fb7185;
  --grad: linear-gradient(118deg, #7dd3fc 0%, #60a5fa 42%, #a78bfa 100%);
  --shadow-lg: 0 40px 120px rgba(0, 0, 0, 0.6);
  --radius: 20px;
  --max: 1200px;
  --nav-h: 68px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 700px at 16% -8%, rgba(56, 189, 248, 0.16), transparent 62%),
    radial-gradient(900px 620px at 90% 4%, rgba(124, 92, 246, 0.14), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
}

::selection { background: rgba(96, 165, 250, 0.35); color: #fff; }

h1, h2, h3, p, dl, dd, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
code, pre, kbd { font-family: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 18px; height: 18px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-sm { width: 14px; height: 14px; }
.muted { color: var(--dim); }
.add { color: var(--green); font-weight: 600; }
.del { color: var(--red); font-weight: 600; }

/* ---------------- nav ---------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.nav.scrolled {
  background: rgba(6, 7, 11, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.nav-inner {
  max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-icon { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 18px rgba(56, 189, 248, 0.25); }
.brand-name { font-size: 19px; font-weight: 720; letter-spacing: -0.02em; }
.brand-tag {
  margin-left: 2px; padding: 2px 8px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--muted); font-size: 11px; white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 8px; }
.nav-links a {
  color: var(--muted); font-size: 13.5px; font-weight: 500;
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang-btn {
  width: 42px; height: 34px; border: 1px solid var(--line); border-radius: 9px;
  color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.lang-btn:hover { color: var(--text); border-color: var(--line-strong); }
.theme-btn {
  width: 38px; height: 34px; border: 1px solid var(--line); border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.theme-btn:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }
.theme-btn .icon { width: 16px; height: 16px; }
.theme-btn .icon-moon { display: none; }
html[data-theme="light"] .theme-btn .icon-sun { display: none; }
html[data-theme="light"] .theme-btn .icon-moon { display: block; }
.menu-btn { display: none; width: 38px; height: 34px; border: 1px solid var(--line); border-radius: 9px; align-items: center; justify-content: center; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 11px;
  border: 1px solid transparent; font-size: 14px; font-weight: 600;
  white-space: nowrap; transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 15px; font-size: 13px; border-radius: 9px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, #38bdf8 0%, #4f7dfb 52%, #7c6cf6 100%);
  color: #fff; box-shadow: 0 8px 30px rgba(56, 130, 246, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 40px rgba(70, 140, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.32); }
.btn-ghost {
  border-color: var(--line); background: rgba(255, 255, 255, 0.025); color: var(--text);
}
.btn-ghost:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.055); transform: translateY(-1px); }

/* ---------------- hero ---------------- */
.hero { position: relative; z-index: 1; padding: calc(var(--nav-h) + 76px) 24px 0; }
.hero-inner {
  position: relative; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.07fr 1fr; align-items: center; gap: 56px;
  min-width: 0;
}
.hero-bg { position: absolute; inset: -120px 0 0; overflow: hidden; pointer-events: none; z-index: -1; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; animation: drift 18s ease-in-out infinite alternate; }
.orb-a { width: 420px; height: 420px; left: -80px; top: 60px; background: rgba(34, 211, 238, 0.28); }
.orb-b { width: 460px; height: 460px; right: -60px; top: -40px; background: rgba(124, 92, 246, 0.26); animation-delay: -6s; }
.orb-c { width: 320px; height: 320px; left: 38%; top: 300px; background: rgba(59, 130, 246, 0.2); animation-delay: -11s; }
@keyframes drift {
  from { transform: translate3d(-16px, 10px, 0) scale(1); }
  to { transform: translate3d(22px, -18px, 0) scale(1.08); }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  height: 32px; padding: 0 13px; border: 1px solid var(--line);
  border-radius: 999px; background: rgba(255, 255, 255, 0.03);
  color: var(--muted); font-size: 12.5px; font-weight: 500;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.eyebrow:hover { border-color: rgba(96, 165, 250, 0.45); color: var(--text); }
.eyebrow .icon { color: var(--cyan); }
.pulse-dot, .live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

h1 {
  margin-top: 22px;
  font-size: clamp(38px, 4.55vw, 60px);
  line-height: 1.08;
  font-weight: 760;
  letter-spacing: -0.035em;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lead {
  margin-top: 22px; max-width: 560px;
  color: var(--muted); font-size: clamp(15px, 1.25vw, 17px); line-height: 1.85;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-row.center { justify-content: center; }
.hero-meta { margin-top: 16px; color: var(--dim); font-size: 12.5px; letter-spacing: 0.01em; }
.hero-stats {
  display: flex; gap: 36px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line);
}
.hero-stats dt { font-size: 24px; font-weight: 720; letter-spacing: -0.02em; }
.hero-stats .unit { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 1px; }
.hero-stats dd { margin-top: 2px; color: var(--dim); font-size: 12px; }

/* ---------------- hero app mockup ---------------- */
.hero-visual { position: relative; min-width: 0; width: 100%; }
.app-window {
  position: relative; width: 100%; min-width: 0; max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: linear-gradient(180deg, #0c101a 0%, #090c13 100%);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(96, 165, 250, 0.05) inset,
    0 0 90px rgba(56, 130, 246, 0.12);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-3.2deg) rotateX(1.2deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.app-window:hover { transform: perspective(1600px) rotateY(-1deg) rotateX(0.4deg); }
.app-bar {
  height: 40px; padding: 0 12px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.018);
  min-width: 0; overflow: hidden;
}
.app-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.traffic { display: flex; gap: 5px; }
.traffic i { width: 8px; height: 8px; border-radius: 50%; background: #2a3040; }
.traffic i:nth-child(1) { background: #ff5f57; opacity: 0.8; }
.traffic i:nth-child(2) { background: #febc2e; opacity: 0.8; }
.traffic i:nth-child(3) { background: #28c840; opacity: 0.8; }
.app-title { color: var(--dim); font-size: 10.5px; font-weight: 500; }
.app-chips { margin-left: auto; display: flex; gap: 6px; }
.chip {
  padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line);
  font-family: "JetBrains Mono", Consolas, monospace; font-size: 9px; color: var(--muted);
  white-space: nowrap;
}
.chip-model { color: #b7d4ff; border-color: rgba(96, 165, 250, 0.25); background: rgba(96, 165, 250, 0.08); }
.chip-ctx { color: #a7f3d0; border-color: rgba(52, 211, 153, 0.22); background: rgba(52, 211, 153, 0.07); }

.app-body { display: grid; grid-template-columns: 158px minmax(0, 1fr); min-height: 402px; }
.app-side {
  padding: 12px 9px; border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012); display: flex; flex-direction: column; gap: 3px;
}
.side-project {
  display: flex; align-items: center; gap: 6px; padding: 4px 7px 8px;
  font-size: 10.5px; font-weight: 600; color: #dfe6f5;
}
.side-folder {
  width: 10px; height: 8px; border: 1px solid #7b879e; border-radius: 2px;
  border-top-color: #a8b4c9;
}
.side-count {
  margin-left: auto; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 5px;
  background: rgba(255, 255, 255, 0.07); color: var(--muted);
  font-size: 8.5px; display: inline-flex; align-items: center; justify-content: center;
}
.side-new {
  display: flex; align-items: center; gap: 6px; height: 27px; padding: 0 8px;
  border: 1px dashed rgba(96, 165, 250, 0.3); border-radius: 7px;
  color: #9ec5ff; font-size: 9.5px; margin-bottom: 6px;
}
.side-new span:first-child { font-size: 13px; line-height: 1; }
.side-item {
  display: flex; align-items: center; gap: 7px; height: 27px; padding: 0 8px;
  border-radius: 7px; color: #8b94a8; font-size: 9.5px;
}
.side-item.active { background: rgba(96, 165, 250, 0.1); color: #dbe7ff; box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.16); }
.side-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.side-item.active .side-dot { background: var(--cyan); opacity: 1; }
.side-sep { margin: 11px 8px 4px; color: #596176; font-size: 8.5px; letter-spacing: 0.08em; }
.side-task { width: 8px; height: 8px; border: 1px solid #596176; border-radius: 2px; }
.side-foot {
  margin-top: auto; display: flex; align-items: center; gap: 6px; padding: 8px;
  border-top: 1px solid var(--line); color: #7f8aa0; font-size: 8.5px;
}
.side-foot .live-dot { width: 5px; height: 5px; }

.app-main { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.msg-user {
  align-self: flex-end; max-width: 82%; padding: 8px 11px; border-radius: 9px 9px 3px 9px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(99, 102, 241, 0.14));
  border: 1px solid rgba(96, 165, 250, 0.2); color: #dce9ff; font-size: 10px; line-height: 1.55;
  overflow-wrap: anywhere;
}
.msg-assistant { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.msg-head { display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: #cbd5e6; }
.avatar {
  width: 16px; height: 16px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); color: #06121f; font-size: 8.5px; font-weight: 800;
}
.who { font-weight: 650; }
.msg-text { color: #a9b4c8; font-size: 9.5px; line-height: 1.6; }
.step-card {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px;
  background: rgba(255, 255, 255, 0.022);
}
.step-card.running { border-color: rgba(96, 165, 250, 0.24); background: rgba(96, 165, 250, 0.055); }
.step-ico, .mini-ico {
  width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center;
}
.step-ico .icon, .mini-ico .icon { width: 13px; height: 13px; }
.ico-read, .ico-agent { background: rgba(76, 201, 240, 0.12); color: #7dd3fc; }
.ico-edit { background: rgba(139, 124, 246, 0.14); color: #c4b5fd; }
.ico-bash { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; }
.step-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.step-title { color: #d5ddeb; font-size: 9.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-title code { color: #9ec5ff; font-size: 9px; font-weight: 500; }
.step-sub { color: #727d93; font-size: 8.5px; }
.step-state { display: inline-flex; align-items: center; gap: 4px; font-size: 8.5px; }
.step-state .icon { width: 11px; height: 11px; }
.step-state.ok { color: #6ee7b7; }
.step-state.run { color: #93c5fd; }
.spin {
  width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(147, 197, 253, 0.3);
  border-top-color: #93c5fd; animation: spin 0.8s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.perm-card {
  margin-top: 2px; padding: 9px 10px; border-radius: 10px;
  border: 1px solid rgba(245, 181, 68, 0.28);
  background: linear-gradient(180deg, rgba(245, 181, 68, 0.085), rgba(245, 181, 68, 0.025));
}
.perm-head { display: flex; align-items: center; gap: 5px; color: #f8d38b; font-size: 9px; font-weight: 650; }
.perm-ico { display: inline-flex; }
.perm-ico .icon { width: 12px; height: 12px; }
.risk {
  padding: 0 5px; border-radius: 4px; background: rgba(251, 113, 133, 0.14);
  color: #fda4af; font-size: 7.5px; font-weight: 700; letter-spacing: 0.04em;
}
.perm-count { margin-left: auto; color: #a98446; font-family: "JetBrains Mono", Consolas, monospace; font-size: 8px; }
.perm-cmd {
  margin-top: 6px; padding: 5px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(245, 181, 68, 0.14); color: #ffd9a0; font-size: 9px; overflow: hidden; text-overflow: ellipsis;
}
.perm-actions { display: flex; gap: 5px; margin-top: 7px; }
.perm-btn {
  flex: 1; height: 22px; border-radius: 6px; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.04); color: #c4cddc; font-size: 8.5px;
}
.perm-btn.primary { background: rgba(96, 165, 250, 0.18); border-color: rgba(96, 165, 250, 0.35); color: #dbeafe; }
.perm-btn.deny { background: rgba(251, 113, 133, 0.1); border-color: rgba(251, 113, 133, 0.3); color: #fecdd3; }
.perm-hint { margin-top: 5px; color: #9a7c48; font-size: 7.5px; }

.float {
  position: absolute; display: flex; align-items: center; gap: 7px;
  padding: 9px 12px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(13, 17, 26, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); font-size: 10.5px; color: #c8d2e4;
}
.float-a { left: -26px; bottom: 64px; }
.float-a .live-dot { width: 6px; height: 6px; }
.float-b { right: 24px; top: -48px; gap: 5px; }
.float-k { color: #8b94a8; margin-right: 3px; }
.float-c { right: 24px; bottom: -46px; gap: 9px; }
.float-c b { display: block; font-size: 11px; }
.float-c small { color: #7d8699; font-size: 8.5px; }
.ring {
  width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: conic-gradient(#4cc9f0 0 6%, rgba(255, 255, 255, 0.08) 6% 100%);
}
.ring i { width: 18px; height: 18px; border-radius: 50%; background: #0d111a; display: block; }

/* ---------------- trust ---------------- */
.trust {
  max-width: var(--max); margin: 70px auto 0; padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.trust-label { color: var(--dim); font-size: 12px; }
.trust-chips { display: flex; gap: 9px; flex-wrap: wrap; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.02);
  color: #aeb8cb; font-size: 11px;
}
.t-dot { width: 5px; height: 5px; border-radius: 50%; }
.t-cyan { background: var(--cyan); } .t-violet { background: var(--violet); }
.t-green { background: var(--green); } .t-amber { background: var(--amber); }

/* ---------------- sections ---------------- */
.section { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 130px 24px 0; }
.section-head { max-width: 720px; }
.kicker {
  display: inline-block; color: #7dd3fc; font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.section-head h2 {
  margin-top: 14px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.16;
  font-weight: 730; letter-spacing: -0.03em;
}
.section-head p { margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 620px; }

/* ---------------- pillars ---------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; }
.pillar {
  position: relative; padding: 26px 24px 28px; border: 1px solid var(--line);
  border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  transition: border-color 0.22s ease, transform 0.22s ease;
}
.pillar:hover { border-color: rgba(96, 165, 250, 0.28); transform: translateY(-2px); }
.pillar-ico {
  width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(96, 165, 250, 0.1); color: #93c5fd; border: 1px solid rgba(96, 165, 250, 0.16);
}
.pillar h3 { margin-top: 16px; font-size: 17px; font-weight: 650; }
.pillar p { margin-top: 9px; color: var(--muted); font-size: 13.5px; line-height: 1.8; }

/* ---------------- bento ---------------- */
.bento {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 46px;
}
.card {
  position: relative; min-width: 0; padding: 24px; border: 1px solid var(--line);
  border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.01));
  overflow: hidden; transition: border-color 0.22s ease, transform 0.22s ease;
}
.card:hover { border-color: rgba(96, 165, 250, 0.26); transform: translateY(-2px); }
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 200px at 20% 0%, rgba(76, 201, 240, 0.07), transparent 70%);
}
.card-wide { grid-column: span 2; display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 28px; align-items: center; }
.card-tag { color: #7dd3fc; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.card h3 { margin-top: 10px; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.75; }

.mini-steps { display: flex; flex-direction: column; gap: 6px; }
.mini-step {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 9px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0, 0, 0, 0.18);
}
.mini-step > span:nth-child(2) { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mini-step b { color: #d5ddeb; font-size: 10.5px; }
.mini-step code { color: #9ec5ff; font-size: 9.5px; }
.mini-step small { color: #727d93; font-size: 8.5px; }
.mini-step em { display: inline-flex; color: #6ee7b7; }
.mini-step em .icon { width: 13px; height: 13px; }
.mini-step em.run { color: #93c5fd; }
.muted-step { opacity: 0.72; }

.mini-perm {
  margin-top: 16px; padding: 12px; border: 1px solid rgba(245, 181, 68, 0.26);
  border-radius: 11px; background: rgba(245, 181, 68, 0.06);
}
.mini-perm-head { display: flex; align-items: center; gap: 6px; color: #f8d38b; font-size: 10px; font-weight: 650; }
.mini-perm-head .icon { width: 13px; height: 13px; }
.mini-perm-cmd {
  display: block; margin-top: 8px; padding: 7px 9px; border-radius: 7px;
  background: rgba(0, 0, 0, 0.3); color: #ffd9a0; font-size: 10px;
}
.mini-perm-row { display: flex; gap: 6px; margin-top: 8px; }
.mini-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 27px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px;
  background: rgba(255, 255, 255, 0.035); color: #b9c4d8; font-size: 10px; white-space: nowrap;
}
.mini-btn .icon { width: 12px; height: 12px; }
.mini-btn.primary { background: rgba(96, 165, 250, 0.16); border-color: rgba(96, 165, 250, 0.3); color: #dbeafe; }

.mini-diff { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: rgba(0, 0, 0, 0.24); }
.mini-diff-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px; border-bottom: 1px solid var(--line); color: #9aa3b7; font-size: 9.5px;
  background: rgba(255, 255, 255, 0.02);
}
.mini-line { display: grid; grid-template-columns: 30px 1fr; align-items: center; font-size: 9.5px; line-height: 1.9; }
.mini-line i { color: #545d71; font-style: normal; text-align: right; padding-right: 9px; font-family: "JetBrains Mono", Consolas, monospace; font-size: 8.5px; }
.mini-line .code { color: #9fb0c9; padding-left: 9px; border-left: 1px solid rgba(255, 255, 255, 0.05); }
.add-line { background: rgba(52, 211, 153, 0.08); }
.add-line .code { color: #86efac; }
.del-line { background: rgba(251, 113, 133, 0.07); }
.del-line .code { color: #fda4af; }

.mini-term { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #080a10; }
.mini-term-bar {
  display: flex; align-items: center; gap: 4px; padding: 7px 9px;
  border-bottom: 1px solid var(--line); color: #5f687c; font-size: 8.5px;
}
.mini-term-bar i { width: 5px; height: 5px; border-radius: 50%; background: #313848; }
.mini-term-bar span { margin-left: 6px; }
.mini-term pre { margin: 0; padding: 11px 12px; font-size: 9.5px; line-height: 1.8; color: #9fb0c9; }
.t-prompt { color: #6ee7b7; }
.t-ok { color: #86efac; }
.t-cursor { color: #93c5fd; animation: blink 1.2s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.mini-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 27px; padding: 0 9px;
  border: 1px solid var(--line); border-radius: 7px; background: rgba(255, 255, 255, 0.025);
  color: #aab5c9; font-size: 9.5px;
}
.mini-chip .icon { width: 11px; height: 11px; color: #7dd3fc; }

.mini-models { display: flex; flex-direction: column; gap: 5px; margin-top: 16px; }
.mini-model {
  display: grid; grid-template-columns: 12px 74px 1fr; align-items: center; gap: 8px;
  padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(0, 0, 0, 0.18); font-size: 9.5px; color: #9aa3b7;
}
.mini-model code { color: #8b94a8; font-size: 8.5px; overflow: hidden; text-overflow: ellipsis; }
.mini-model.active { border-color: rgba(96, 165, 250, 0.28); background: rgba(96, 165, 250, 0.07); color: #dbeafe; }
.mini-model.active code { color: #9ec5ff; }
.radio { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #4d566b; }
.mini-model.active .radio { border-color: #60a5fa; background: radial-gradient(circle at center, #93c5fd 0 45%, transparent 50%); }

.mini-usage { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.usage-ring {
  width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: conic-gradient(#4cc9f0 0 22%, #8b7cf6 22% 55%, #34d399 55% 70%, rgba(255, 255, 255, 0.07) 70% 100%);
  position: relative;
}
.usage-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #0d1018; }
.usage-ring span { position: relative; font-size: 11px; font-weight: 650; color: #dbe7ff; }
.usage-legend { display: grid; gap: 4px; font-size: 9px; color: #9aa3b7; }
.usage-legend span { display: flex; align-items: center; gap: 6px; }
.usage-legend i { width: 5px; height: 5px; border-radius: 2px; display: inline-block; }
.u-msg { background: #4cc9f0; } .u-tool { background: #8b7cf6; }
.u-prompt { background: #34d399; } .u-mcp { background: #546179; }

.mini-tasks { display: flex; flex-direction: column; gap: 5px; margin-top: 16px; }
.mini-task {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, 0.18);
  font-size: 9.5px; color: #aab5c9;
}
.mini-task em { margin-left: auto; font-style: normal; font-size: 8.5px; color: #93c5fd; display: inline-flex; }
.mini-task em.ok { color: #6ee7b7; }
.mini-task em .icon { width: 11px; height: 11px; }
.task-dot { width: 6px; height: 6px; border-radius: 50%; background: #60a5fa; }
.task-dot.done { background: var(--green); }

/* ---------------- workflow ---------------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; }
.flow-step {
  position: relative; padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
}
.flow-num {
  font-family: "JetBrains Mono", Consolas, monospace; font-size: 12px; font-weight: 700;
  color: #7dd3fc; letter-spacing: 0.08em;
}
.flow-step h3 { margin-top: 12px; font-size: 17px; font-weight: 650; }
.flow-step p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.flow-visual { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 27px; padding: 0 9px;
  border: 1px solid var(--line); border-radius: 7px; font-size: 9.5px; color: #9aa3b7;
}
.pill .icon { width: 11px; height: 11px; }
.pill.active { border-color: rgba(96, 165, 250, 0.3); background: rgba(96, 165, 250, 0.08); color: #dbeafe; }
.flow-line { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: #6ee7b7; font-size: 9px; }
.flow-line .live-dot { width: 5px; height: 5px; }
.mini-composer {
  display: flex; align-items: center; gap: 7px; padding: 8px 10px;
  border: 1px solid rgba(96, 165, 250, 0.24); border-radius: 8px;
  background: rgba(96, 165, 250, 0.055); font-size: 9.5px; color: #c9d6ea;
}
.mini-composer > span:first-child { color: #7dd3fc; }
.composer-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-composer kbd {
  padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px;
  color: #7f8aa0; font-size: 8px; background: rgba(255, 255, 255, 0.04);
}
.mini-attach { display: flex; gap: 5px; margin-top: 8px; }
.attach-pill {
  padding: 2px 7px; border: 1px solid var(--line); border-radius: 5px;
  background: rgba(255, 255, 255, 0.03); color: #8b94a8; font-size: 8.5px;
}
.review-row {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, 0.18);
  font-size: 9.5px; color: #aab5c9;
}
.review-file { flex: 1; color: #d5ddeb; }
.review-btn { color: #93c5fd; font-size: 9px; }
.review-actions { display: flex; gap: 6px; margin-top: 9px; }

/* ---------------- security ---------------- */
.security { display: grid; grid-template-columns: 1fr 0.92fr; gap: 56px; align-items: center; }
.security-copy h2 { margin-top: 14px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.18; font-weight: 730; letter-spacing: -0.03em; }
.security-copy > p { margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.85; max-width: 560px; }
.check-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 11px; }
.check-list li { display: flex; align-items: center; gap: 10px; color: #c3cddd; font-size: 13.5px; }
.check-list .icon { width: 16px; height: 16px; color: var(--green); }
.security-note {
  margin-top: 24px; padding: 14px 16px; border-left: 2px solid rgba(96, 165, 250, 0.45);
  background: rgba(96, 165, 250, 0.05); border-radius: 0 8px 8px 0;
  color: #8e9ab0; font-size: 12.5px; line-height: 1.7;
}
.mode-panel {
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}
.mode-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line); color: #cbd5e6; font-size: 12px; font-weight: 600;
}
.mode-chip {
  padding: 2px 7px; border: 1px solid rgba(96, 165, 250, 0.26); border-radius: 5px;
  background: rgba(96, 165, 250, 0.08); color: #9ec5ff; font-family: "JetBrains Mono", Consolas, monospace; font-size: 9px;
}
.mode-item {
  display: flex; align-items: center; gap: 11px; padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}
.mode-item:last-child { border-bottom: 0; }
.mode-item.active { background: rgba(96, 165, 250, 0.055); }
.mode-item.danger { background: rgba(251, 113, 133, 0.035); }
.mode-ico {
  width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.045); color: #aeb8cb;
}
.mode-ico .icon { width: 14px; height: 14px; }
.m-plan { color: #7dd3fc; } .m-build { color: #93c5fd; }
.m-auto { color: #86efac; } .m-yolo { color: #fda4af; background: rgba(251, 113, 133, 0.1); }
.mode-item > span:nth-child(2) { display: flex; flex-direction: column; gap: 1px; }
.mode-item b { color: #dbe3f1; font-size: 12px; font-weight: 600; }
.mode-item small { color: #727d93; font-size: 10px; }
.mode-check { margin-left: auto; color: #93c5fd; display: inline-flex; }
.mode-check .icon { width: 14px; height: 14px; }
.mode-tag {
  margin-left: auto; padding: 2px 7px; border: 1px solid rgba(251, 113, 133, 0.3);
  border-radius: 999px; color: #fda4af; font-size: 8.5px;
}
.mode-foot {
  display: flex; align-items: center; gap: 7px; padding: 11px 16px;
  border-top: 1px solid var(--line); color: #7f8aa0; font-size: 10px;
}
.mode-foot .icon { width: 13px; height: 13px; color: #93c5fd; }

/* ---------------- download bridge (homepage) ---------------- */
.download-bridge {
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 30px; align-items: center;
  padding: 36px; border: 1px solid rgba(96, 165, 250, 0.24); border-radius: 24px;
  background:
    radial-gradient(620px 300px at 12% -10%, rgba(56, 189, 248, 0.16), transparent 70%),
    radial-gradient(480px 260px at 90% 110%, rgba(124, 92, 246, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}
.bridge-copy h2 { margin-top: 12px; font-size: clamp(30px, 3.3vw, 44px); line-height: 1.16; font-weight: 730; letter-spacing: -0.03em; }
.bridge-copy p { margin-top: 13px; color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 520px; }
.bridge-meta { display: flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--dim); font-size: 11.5px; flex-wrap: wrap; }
.bridge-platforms { display: flex; flex-direction: column; gap: 8px; }
.bridge-platform {
  display: flex; align-items: center; gap: 11px; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, 0.18);
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.bridge-platform:hover { border-color: rgba(96, 165, 250, 0.3); transform: translateY(-1px); }
.bridge-platform.live { border-color: rgba(96, 165, 250, 0.3); background: rgba(96, 165, 250, 0.07); }
.bridge-ico {
  width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: #cbd5e6;
}
.bridge-platform.live .bridge-ico { background: rgba(96, 165, 250, 0.12); border-color: rgba(96, 165, 250, 0.2); color: #bfdbfe; }
.bridge-ico .icon { width: 16px; height: 16px; }
.bridge-body { display: flex; flex-direction: column; gap: 1px; }
.bridge-body b { font-size: 13px; font-weight: 620; }
.bridge-body small { color: var(--dim); font-size: 10.5px; }
.bridge-state { margin-left: auto; color: #7dd3fc; font-size: 10.5px; white-space: nowrap; }
.bridge-platform:not(.live) .bridge-state { color: var(--dim); }

/* ---------------- download page components ---------------- */
.download-grid { display: grid; grid-template-columns: 1.12fr 0.94fr 0.94fr; gap: 16px; margin-top: 46px; }
.platform-card {
  display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line);
  border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.01));
  min-width: 0;
}
.platform-card.live {
  border-color: rgba(96, 165, 250, 0.3);
  background:
    radial-gradient(420px 220px at 20% 0%, rgba(56, 189, 248, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  box-shadow: 0 24px 70px rgba(37, 99, 235, 0.12);
}
.platform-card.soon { opacity: 0.88; }
.platform-head { display: flex; align-items: center; gap: 11px; }
.platform-ico {
  width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: #cbd5e6;
}
.platform-card.live .platform-ico { background: rgba(96, 165, 250, 0.12); border-color: rgba(96, 165, 250, 0.2); color: #bfdbfe; }
.platform-ico .icon { width: 18px; height: 18px; }
.platform-head h3 { font-size: 15px; font-weight: 650; }
.platform-sub { color: var(--dim); font-size: 10.5px; }
.status {
  margin-left: auto; padding: 2px 8px; border-radius: 999px; font-size: 9.5px; font-weight: 600;
}
.status.live { border: 1px solid rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.08); color: #6ee7b7; }
.status.soon { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: #8b94a8; }
.platform-version {
  display: flex; align-items: center; gap: 7px; margin: 18px 0 14px;
  color: #dbe3f1; font-size: 13px; font-weight: 600;
}
.dot-sep { color: #4d566b; }
.platform-meta { margin-top: 11px; color: #727d93; font-size: 10.5px; line-height: 1.6; }
.checksum {
  display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-top: 11px;
  border-top: 1px solid var(--line); color: #5f687c; font-size: 9px;
}
.checksum code { color: #7f8aa0; font-size: 8.5px; overflow: hidden; text-overflow: ellipsis; }
.copy-btn { margin-left: auto; width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: #7f8aa0; }
.copy-btn:hover { background: rgba(255, 255, 255, 0.05); color: #cbd5e6; }
.copy-btn .icon { width: 12px; height: 12px; }
.soon-text { margin: 18px 0 16px; color: #7f8aa0; font-size: 11.5px; line-height: 1.75; flex: 1; }
.notify { margin-top: auto; color: #aab5c9; }
.download-foot { margin-top: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.018); }
.req-list { display: flex; flex-wrap: wrap; gap: 8px; }
.req-list span {
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
  color: #9aa3b7; font-size: 10.5px; background: rgba(255, 255, 255, 0.02);
}
.download-foot p { margin-top: 12px; color: #6e778c; font-size: 11px; }

/* ---------------- changelog ---------------- */
.changelog-list { margin-top: 40px; display: grid; gap: 10px; }
.changelog-item {
  padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008));
}
.changelog-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.version {
  padding: 2px 9px; border: 1px solid rgba(96, 165, 250, 0.28); border-radius: 6px;
  background: rgba(96, 165, 250, 0.08); color: #bfdbfe;
  font-family: "JetBrains Mono", Consolas, monospace; font-size: 11px; font-weight: 600;
}
.changelog-date, .changelog-size { color: #6e778c; font-size: 10.5px; }
.changelog-item p { margin-top: 10px; color: #a9b4c8; font-size: 12.5px; line-height: 1.75; white-space: pre-line; }
.changelog-more { margin-top: 18px; }

/* ---------------- faq ---------------- */
.faq { margin-top: 40px; max-width: 900px; display: grid; gap: 9px; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.018);
  padding: 0 20px; transition: border-color 0.18s ease, background 0.18s ease;
}
.faq details:hover { border-color: var(--line-strong); }
.faq details[open] { background: rgba(255, 255, 255, 0.03); border-color: rgba(96, 165, 250, 0.22); }
.faq summary {
  list-style: none; cursor: pointer; padding: 17px 0; color: #dbe3f1;
  font-size: 14px; font-weight: 550; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: #7f8aa0; font-size: 18px; font-weight: 400;
  transition: transform 0.2s ease, color 0.2s ease;
}
.faq details[open] summary::after { content: "−"; color: #93c5fd; }
.faq details p { padding: 0 0 17px; color: #8e9ab0; font-size: 13px; line-height: 1.8; max-width: 760px; }

/* ---------------- final cta ---------------- */
.final-cta { position: relative; z-index: 1; max-width: var(--max); margin: 130px auto 0; padding: 0 24px; }
.final-inner {
  position: relative; overflow: hidden; text-align: center; padding: 62px 24px 66px;
  border: 1px solid rgba(96, 165, 250, 0.22); border-radius: 24px;
  background:
    radial-gradient(700px 300px at 50% -20%, rgba(56, 189, 248, 0.22), transparent 70%),
    radial-gradient(500px 260px at 80% 110%, rgba(124, 92, 246, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}
.final-icon { margin: 0 auto 20px; border-radius: 14px; box-shadow: 0 12px 40px rgba(56, 189, 248, 0.3); }
.final-inner h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.2; font-weight: 730; letter-spacing: -0.03em; }
.final-inner p { margin-top: 12px; color: var(--muted); font-size: 14px; }
.final-inner .cta-row { margin-top: 26px; }

/* ---------------- footer ---------------- */
.footer { position: relative; z-index: 1; margin-top: 90px; border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 34px 24px 44px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { border-radius: 8px; }
.footer-brand b { font-size: 15px; }
.footer-brand p { color: #6e778c; font-size: 10.5px; }
.footer-links { display: flex; gap: 20px; margin-left: auto; }
.footer-links a { color: #8b94a8; font-size: 11.5px; }
.footer-links a:hover { color: #dbe3f1; }
.footer-copy { width: 100%; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.045); color: #545d71; font-size: 10.5px; }

/* ---------------- toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: rgba(13, 17, 26, 0.94); color: #dbe3f1; font-size: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- reveal ---------------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 1120px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 720px; width: 100%; margin: 0 auto; }
  .app-window { transform: none; }
  .float-a { left: -10px; } .float-c { right: -10px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-wide { grid-column: span 2; }
  .security { grid-template-columns: 1fr; gap: 40px; }
  .security-visual { max-width: 620px; }
}
@media (max-width: 900px) {
  .download-bridge { grid-template-columns: 1fr; padding: 26px; gap: 22px; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-links.open {
    display: flex; position: absolute; top: var(--nav-h); left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px;
    border: 1px solid var(--line); border-radius: 14px;
    background: rgba(9, 11, 17, 0.98); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  }
  .nav-links.open a { padding: 12px; border-radius: 8px; font-size: 14px; }
  .nav-links.open a:hover { background: rgba(255, 255, 255, 0.05); }
  .pillars, .flow { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .card-wide { grid-column: span 1; grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--nav-h) + 56px); }
  .section { padding-top: 96px; }
  .final-cta { margin-top: 96px; }
  .trust { margin-top: 52px; }
}
@media (max-width: 640px) {
  .nav-inner { padding: 0 16px; gap: 12px; }
  .brand-tag { display: none; }
  .nav-actions > .btn-primary { display: none; }
  .app-chips { display: none; }
  .perm-actions { flex-wrap: wrap; }
  .perm-btn { flex: 1 1 40%; }
  .hero-visual { max-width: 100%; overflow: hidden; }
  .float-a, .float-b, .float-c { display: none; }
  .hero { padding-left: 18px; padding-right: 18px; }
  .section { padding-left: 18px; padding-right: 18px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .hero-stats dt { font-size: 21px; }
  .cta-row .btn-lg { width: 100%; }
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-main { padding: 12px; }
  .float-a { display: none; }
  .float-b { right: -6px; top: -14px; }
  .float-c { right: -6px; bottom: -16px; }
  .card-wide { gap: 20px; }
  .download-grid { margin-top: 32px; }
  .footer-inner { gap: 16px; }
  .footer-links { margin-left: 0; width: 100%; }
  .trust { padding-top: 18px; }
}
@media (max-width: 420px) {
  .app-chips .chip-ctx { display: none; }
  .perm-actions { flex-wrap: wrap; }
  .perm-btn { flex: 1 1 40%; }
  .float-c { display: none; }
}

/* ================= light theme ================= */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-2: #eef2f8;
  --line: rgba(15, 23, 42, 0.1);
  --line-strong: rgba(15, 23, 42, 0.18);
  --text: #0f172a;
  --muted: #52607a;
  --dim: #748199;
  --cyan: #0891b2;
  --blue: #2563eb;
  --violet: #7c3aed;
  --green: #059669;
  --red: #e11d48;
  --amber: #b45309;
  --grad: linear-gradient(118deg, #0891b2 0%, #2563eb 45%, #7c3aed 100%);
  --shadow-lg: 0 40px 90px rgba(15, 23, 42, 0.14);
}
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] body {
  background:
    radial-gradient(1100px 700px at 16% -8%, rgba(56, 189, 248, 0.18), transparent 62%),
    radial-gradient(900px 620px at 90% 4%, rgba(139, 92, 246, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
}
html[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
}
html[data-theme="light"] ::selection { background: rgba(37, 99, 235, 0.18); color: var(--text); }

html[data-theme="light"] .nav.scrolled {
  background: rgba(245, 247, 251, 0.84);
  border-bottom-color: var(--line);
}
html[data-theme="light"] .brand-tag { color: var(--dim); }
html[data-theme="light"] .nav-links a { color: var(--muted); }
html[data-theme="light"] .nav-links a:hover { color: var(--text); }
html[data-theme="light"] .lang-btn,
html[data-theme="light"] .theme-btn,
html[data-theme="light"] .menu-btn { color: var(--muted); }
html[data-theme="light"] .lang-btn:hover,
html[data-theme="light"] .theme-btn:hover,
html[data-theme="light"] .menu-btn:hover { color: var(--text); border-color: var(--line-strong); background: #fff; }
html[data-theme="light"] .nav-links.open {
  background: #fff; border-color: var(--line); box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15);
}
html[data-theme="light"] .nav-links.open a { color: var(--text); }
html[data-theme="light"] .nav-links.open a:hover { background: #f1f5f9; }

html[data-theme="light"] .btn-ghost { background: #fff; border-color: var(--line); color: var(--text); }
html[data-theme="light"] .btn-ghost:hover { background: #f1f5f9; border-color: var(--line-strong); }
html[data-theme="light"] .btn-primary {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

html[data-theme="light"] .eyebrow { background: #fff; border-color: var(--line); color: var(--muted); }
html[data-theme="light"] .eyebrow:hover { color: var(--text); border-color: rgba(37, 99, 235, 0.35); }
html[data-theme="light"] .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
html[data-theme="light"] .hero-meta { color: var(--dim); }
html[data-theme="light"] .hero-stats { border-color: var(--line); }
html[data-theme="light"] .hero-stats dd { color: var(--dim); }
html[data-theme="light"] .app-window { border-color: rgba(15, 23, 42, 0.18); }
html[data-theme="light"] .trust { border-color: var(--line); }
html[data-theme="light"] .trust-label { color: var(--dim); }
html[data-theme="light"] .trust-chip { background: #fff; border-color: var(--line); color: #475569; }

html[data-theme="light"] .kicker { color: #0369a1; }
html[data-theme="light"] .section-head p { color: var(--muted); }
html[data-theme="light"] .pillar,
html[data-theme="light"] .card,
html[data-theme="light"] .flow-step,
html[data-theme="light"] .changelog-item,
html[data-theme="light"] .faq details,
html[data-theme="light"] .download-foot,
html[data-theme="light"] .platform-card,
html[data-theme="light"] .dl-detail-card,
html[data-theme="light"] .history-item {
  background: #fff; border-color: var(--line);
}
html[data-theme="light"] .pillar:hover,
html[data-theme="light"] .card:hover { border-color: rgba(37, 99, 235, 0.28); }
html[data-theme="light"] .pillar-ico { background: #eff6ff; border-color: rgba(37, 99, 235, 0.16); color: #2563eb; }
html[data-theme="light"] .card-tag { color: #0369a1; }
html[data-theme="light"] .flow-num { color: #0369a1; }
html[data-theme="light"] .card::before {
  background: radial-gradient(420px 200px at 20% 0%, rgba(8, 145, 178, 0.07), transparent 70%);
}

html[data-theme="light"] .mini-step { background: #f8fafc; border-color: var(--line); }
html[data-theme="light"] .mini-step b { color: #0f172a; }
html[data-theme="light"] .mini-step code { color: #2563eb; }
html[data-theme="light"] .mini-step small { color: #64748b; }
html[data-theme="light"] .mini-perm { background: #fffbeb; border-color: rgba(180, 83, 9, 0.24); }
html[data-theme="light"] .mini-perm-head { color: #92400e; }
html[data-theme="light"] .mini-perm-cmd { background: #fff7ed; border-color: rgba(180, 83, 9, 0.14); color: #92400e; }
html[data-theme="light"] .mini-btn { background: #fff; border-color: var(--line); color: #334155; }
html[data-theme="light"] .mini-btn.primary { background: #eff6ff; border-color: rgba(37, 99, 235, 0.3); color: #1d4ed8; }
html[data-theme="light"] .mini-diff { background: #fff; border-color: var(--line); }
html[data-theme="light"] .mini-diff-bar { background: #f8fafc; border-color: var(--line); color: #475569; }
html[data-theme="light"] .mini-line i { color: #94a3b8; }
html[data-theme="light"] .mini-line .code { color: #334155; border-left-color: var(--line); }
html[data-theme="light"] .add-line { background: #ecfdf5; }
html[data-theme="light"] .add-line .code { color: #047857; }
html[data-theme="light"] .del-line { background: #fff1f2; }
html[data-theme="light"] .del-line .code { color: #be123c; }
html[data-theme="light"] .mini-chip { background: #f8fafc; border-color: var(--line); color: #475569; }
html[data-theme="light"] .mini-chip .icon { color: #2563eb; }
html[data-theme="light"] .mini-model { background: #f8fafc; border-color: var(--line); color: #475569; }
html[data-theme="light"] .mini-model code { color: #64748b; }
html[data-theme="light"] .mini-model.active { background: #eff6ff; border-color: rgba(37, 99, 235, 0.3); color: #1d4ed8; }
html[data-theme="light"] .mini-model.active code { color: #2563eb; }
html[data-theme="light"] .mini-task { background: #f8fafc; border-color: var(--line); color: #475569; }
html[data-theme="light"] .mini-task em { color: #2563eb; }
html[data-theme="light"] .mini-task em.ok { color: #047857; }
html[data-theme="light"] .usage-legend { color: #475569; }
html[data-theme="light"] .usage-ring::before { background: #fff; }
html[data-theme="light"] .usage-ring span { color: #0f172a; }
html[data-theme="light"] .mini-composer { background: #eff6ff; border-color: rgba(37, 99, 235, 0.28); color: #1e293b; }
html[data-theme="light"] .composer-text { color: #1e293b; }
html[data-theme="light"] .mini-composer kbd { background: #fff; border-color: var(--line); color: #475569; }
html[data-theme="light"] .attach-pill { background: #fff; border-color: var(--line); color: #64748b; }
html[data-theme="light"] .pill { background: #fff; border-color: var(--line); color: #475569; }
html[data-theme="light"] .pill.active { background: #eff6ff; border-color: rgba(37, 99, 235, 0.3); color: #1d4ed8; }
html[data-theme="light"] .review-row { background: #f8fafc; border-color: var(--line); color: #475569; }
html[data-theme="light"] .review-file { color: #0f172a; }
html[data-theme="light"] .review-btn { color: #2563eb; }

html[data-theme="light"] .mode-panel {
  background: #fff; border-color: var(--line); box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .mode-head { color: #0f172a; border-color: var(--line); }
html[data-theme="light"] .mode-item { border-bottom-color: var(--line); }
html[data-theme="light"] .mode-item.active { background: #eff6ff; }
html[data-theme="light"] .mode-item.danger { background: #fff1f2; }
html[data-theme="light"] .mode-item b { color: #0f172a; }
html[data-theme="light"] .mode-item small { color: #64748b; }
html[data-theme="light"] .mode-ico { background: #f1f5f9; }
html[data-theme="light"] .mode-foot { color: #64748b; border-color: var(--line); }
html[data-theme="light"] .check-list li { color: #334155; }
html[data-theme="light"] .security-note {
  background: #eff6ff; color: #475569; border-left-color: rgba(37, 99, 235, 0.5);
}

html[data-theme="light"] .download-bridge {
  background:
    radial-gradient(620px 300px at 12% -10%, rgba(56, 189, 248, 0.12), transparent 70%),
    radial-gradient(480px 260px at 90% 110%, rgba(124, 92, 246, 0.1), transparent 70%),
    #fff;
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
}
html[data-theme="light"] .bridge-platform { background: #fff; border-color: var(--line); }
html[data-theme="light"] .bridge-platform.live { background: #eff6ff; border-color: rgba(37, 99, 235, 0.3); }
html[data-theme="light"] .bridge-body b { color: #0f172a; }
html[data-theme="light"] .bridge-body small { color: #64748b; }
html[data-theme="light"] .bridge-state { color: #2563eb; }
html[data-theme="light"] .bridge-platform:not(.live) .bridge-state { color: #64748b; }
html[data-theme="light"] .bridge-ico { background: #f1f5f9; border-color: var(--line); color: #334155; }
html[data-theme="light"] .bridge-platform.live .bridge-ico { background: #dbeafe; border-color: rgba(37, 99, 235, 0.2); color: #1d4ed8; }

html[data-theme="light"] .platform-card.live {
  background:
    radial-gradient(420px 220px at 20% 0%, rgba(56, 189, 248, 0.1), transparent 70%),
    #fff;
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.08);
}
html[data-theme="light"] .platform-ico { background: #f1f5f9; border-color: var(--line); color: #334155; }
html[data-theme="light"] .platform-card.live .platform-ico { background: #eff6ff; border-color: rgba(37, 99, 235, 0.25); color: #1d4ed8; }
html[data-theme="light"] .platform-version { color: #0f172a; }
html[data-theme="light"] .platform-meta { color: #64748b; }
html[data-theme="light"] .checksum { border-color: var(--line); color: #64748b; }
html[data-theme="light"] .checksum code { color: #475569; }
html[data-theme="light"] .copy-btn { color: #64748b; }
html[data-theme="light"] .copy-btn:hover { background: #f1f5f9; color: #0f172a; }
html[data-theme="light"] .soon-text { color: #64748b; }
html[data-theme="light"] .req-list span { background: #fff; border-color: var(--line); color: #475569; }
html[data-theme="light"] .download-foot p { color: #64748b; }
html[data-theme="light"] .status.live { background: #ecfdf5; border-color: rgba(5, 150, 105, 0.3); color: #047857; }
html[data-theme="light"] .status.soon { background: #f1f5f9; border-color: var(--line); color: #64748b; }

html[data-theme="light"] .version { background: #eff6ff; border-color: rgba(37, 99, 235, 0.3); color: #1d4ed8; }
html[data-theme="light"] .changelog-date,
html[data-theme="light"] .changelog-size { color: #64748b; }
html[data-theme="light"] .changelog-item p { color: #52607a; }
html[data-theme="light"] .faq details[open] { background: #fff; border-color: rgba(37, 99, 235, 0.25); }
html[data-theme="light"] .faq summary { color: #0f172a; }
html[data-theme="light"] .faq details p { color: #52607a; }
html[data-theme="light"] .faq summary::after { color: #64748b; }
html[data-theme="light"] .faq details[open] summary::after { color: #2563eb; }
html[data-theme="light"] .dot-sep { color: #94a3b8; }

html[data-theme="light"] .final-inner {
  background:
    radial-gradient(700px 300px at 50% -20%, rgba(56, 189, 248, 0.16), transparent 70%),
    radial-gradient(500px 260px at 80% 110%, rgba(124, 92, 246, 0.12), transparent 70%),
    #fff;
  border-color: rgba(37, 99, 235, 0.22);
}
html[data-theme="light"] .final-inner h2 { color: #0f172a; }
html[data-theme="light"] .final-inner p { color: #52607a; }
html[data-theme="light"] .footer { border-color: var(--line); }
html[data-theme="light"] .footer-brand p { color: #64748b; }
html[data-theme="light"] .footer-links a { color: #64748b; }
html[data-theme="light"] .footer-links a:hover { color: #0f172a; }
html[data-theme="light"] .footer-copy { color: #94a3b8; border-color: var(--line); }
html[data-theme="light"] .toast {
  background: #fff; border-color: var(--line-strong); color: #0f172a;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.15);
}
html[data-theme="light"] .notify { color: #475569; }
html[data-theme="light"] .mode-chip { background: #eff6ff; border-color: rgba(37, 99, 235, 0.3); color: #1d4ed8; }
html[data-theme="light"] .mode-tag { background: #fff1f2; border-color: rgba(225, 29, 72, 0.28); color: #be123c; }
html[data-theme="light"] .m-plan { color: #0891b2; }
html[data-theme="light"] .m-build { color: #2563eb; }
html[data-theme="light"] .m-auto { color: #059669; }
html[data-theme="light"] .m-yolo { color: #e11d48; }
html[data-theme="light"] .mode-check,
html[data-theme="light"] .mode-foot .icon { color: #2563eb; }
html[data-theme="light"] .mini-perm .risk { background: #fee2e2; color: #b91c1c; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
