/* ===========================================================================
 * LeoAI 官網 · 設計系統
 * 純 CSS、無外部字型 / 框架 / CDN，可直接部署到 Cloudflare Pages。
 * =========================================================================== */

:root {
  --bg: #08090c;
  --bg-2: #0b0d12;
  --surface: #11141a;
  --surface-2: #161a22;
  --surface-3: #1b202a;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f2f5fa;
  --muted: #98a3b5;
  --muted-2: #667084;
  --blue: #4c8df6;
  --blue-2: #7baaff;
  --blue-dim: rgba(76, 141, 246, .13);
  --green: #4ccf9a;
  --amber: #e9b75c;
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1200px;
  --shadow: 0 30px 90px rgba(0, 0, 0, .6);
  --font: system-ui, -apple-system, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Noto Sans Mono CJK TC", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: rgba(76, 141, 246, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--maxw), calc(100% - 48px)); margin-inline: auto; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.tiny { font-size: 12.5px; color: var(--muted-2); }

.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-sm { width: 15px; height: 15px; }
.ico-lg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 60; height: 72px;
  background: rgba(8, 9, 12, .72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(8, 9, 12, .92); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 26px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.025em; flex: none; }
.brand-mark {
  width: 31px; height: 31px; border-radius: 10px;
  background: linear-gradient(145deg, #5b96f8, #3168c9);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 20px rgba(76, 141, 246, .35), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.brand-mark .ico { width: 19px; height: 19px; stroke-width: 2; }
.brand small { font-size: 10px; letter-spacing: .14em; color: var(--muted-2); font-weight: 600; margin-left: 2px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 13px; border-radius: 9px; font-size: 14px; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .045); }
body[data-page="download"] [data-nav="download"],
body[data-page="demo"] [data-nav="preview"] { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 38px; height: 38px; border: 1px solid var(--line-2);
  border-radius: 10px; background: var(--surface); place-items: center;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 18px; border-radius: 11px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: #fff; background: linear-gradient(180deg, #5b96f8, #3f7fe9);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 8px 26px rgba(76, 141, 246, .32), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary:hover { box-shadow: 0 12px 34px rgba(76, 141, 246, .46); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .045); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .085); border-color: rgba(255, 255, 255, .24); }
.btn-quiet { color: var(--muted); background: transparent; border-color: var(--line); }
.btn-quiet:hover { color: var(--text); border-color: var(--line-2); }
.btn-lg { padding: 15px 24px; font-size: 15px; border-radius: 13px; }
.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.card code, .step code, .dl-tip code, .check-row code, .note-list code, .answer code, .setup-hint code {
  font-family: var(--mono); font-size: .88em; color: var(--blue-2);
  background: rgba(76, 141, 246, .08); padding: 1px 6px; border-radius: 5px;
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 96px 0 78px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("assets/hero-aurora.jpg") center/cover no-repeat;
  opacity: .9;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 12, .96) 0%, rgba(8, 9, 12, .74) 36%, rgba(8, 9, 12, .05) 68%, rgba(8, 9, 12, .2) 100%),
    linear-gradient(180deg, rgba(8, 9, 12, .1) 45%, var(--bg) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.06fr; gap: 54px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-2); font-weight: 700;
  padding: 7px 13px 7px 10px; border-radius: 999px;
  background: rgba(76, 141, 246, .09); border: 1px solid rgba(76, 141, 246, .25);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(76, 207, 154, .16); }
.eyebrow-sep { color: rgba(255, 255, 255, .22); }

h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -.035em; margin: 0; }
.hero h1 { font-size: clamp(38px, 4.5vw, 63px); margin: 26px 0 22px; font-weight: 750; }
.grad { background: linear-gradient(100deg, #8bb8ff 0%, #4c8df6 48%, #b6d2ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: var(--muted); font-size: 16.5px; line-height: 1.85; max-width: 540px; margin: 0 0 30px; }
.hero-lead strong { color: var(--text); font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; font-size: 12.5px; color: var(--muted-2); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .ico { width: 14px; height: 14px; color: var(--blue-2); }
.hero-note { margin-top: 14px; font-size: 12.5px; color: var(--muted-2); }

.hero-visual { position: relative; }
.visual-glow {
  position: absolute; inset: -18% -14% -22% -10%; z-index: -1;
  background: radial-gradient(closest-side, rgba(76, 141, 246, .28), transparent 72%);
  filter: blur(28px);
}
.app-window {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #0d0d0f; border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .72), 0 0 0 1px rgba(0, 0, 0, .5), 0 0 80px rgba(76, 141, 246, .12);
  transform: perspective(1500px) rotateY(-4deg) rotateX(1.2deg);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.app-window img { width: 100%; height: auto; }
.app-titlebar {
  height: 36px; display: flex; align-items: center; gap: 12px; padding: 0 14px;
  background: #17181c; border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-size: 11px; color: #8b93a1; letter-spacing: .02em;
}
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a3d44; }
.dots i:nth-child(1) { background: #e06c62; }
.dots i:nth-child(2) { background: #e0b45e; }
.dots i:nth-child(3) { background: #61b97e; }
.app-titlebar .tb-tag { margin-left: auto; font-family: var(--mono); font-size: 10px; color: #5c6573; }

.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 13px; border-radius: 11px; font-size: 12px; font-weight: 600;
  background: rgba(20, 24, 32, .92); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .5); backdrop-filter: blur(12px);
  animation: floaty 6s ease-in-out infinite;
}
.float-chip .ico { width: 15px; height: 15px; color: var(--blue-2); }
.chip-a { top: -26px; right: -18px; }
.chip-b { bottom: 16%; left: -34px; animation-delay: -2s; }
.chip-c { bottom: -22px; right: 8%; animation-delay: -4s; }
.chip-c .ico { color: var(--green); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 30px 26px; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 34px; line-height: 1; letter-spacing: -.05em; font-weight: 700; background: linear-gradient(180deg, #fff, #8da3c4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 9px; font-size: 12.5px; color: var(--muted-2); }

/* ---------------------------------------------------------------- sections */
.section { padding: 108px 0; }
.section-soft { background: linear-gradient(180deg, rgba(255, 255, 255, .014), rgba(255, 255, 255, 0)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.kicker { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; color: var(--blue-2); text-transform: uppercase; margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 720; }
.sec-head p { color: var(--muted); font-size: 16px; margin: 18px 0 0; line-height: 1.85; }
.center { text-align: center; margin-inline: auto; }
.center p { margin-inline: auto; }

/* ---------------------------------------------------------------- bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card {
  position: relative; overflow: hidden; padding: 28px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .038), rgba(255, 255, 255, .012));
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)); }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(76, 141, 246, .09), transparent 60%); opacity: 0; transition: opacity .35s; }
.card:hover::after { opacity: 1; }
.card-7 { grid-column: span 7; }
.card-5 { grid-column: span 5; }
.card-6 { grid-column: span 6; }
.card-4 { grid-column: span 4; }
.card-8 { grid-column: span 8; }
.card-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--blue-2); background: var(--blue-dim); border: 1px solid rgba(76, 141, 246, .22); margin-bottom: 20px; }
.card-ico.green { color: var(--green); background: rgba(76, 207, 154, .1); border-color: rgba(76, 207, 154, .22); }
.card-ico.amber { color: var(--amber); background: rgba(233, 183, 92, .1); border-color: rgba(233, 183, 92, .22); }
.card h3 { font-size: 19px; font-weight: 680; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0; }
.card .tag { display: inline-block; margin-top: 18px; font-size: 11.5px; font-family: var(--mono); color: var(--muted-2); padding: 5px 10px; border: 1px solid var(--line); border-radius: 7px; }

.model-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.model-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; padding: 7px 11px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--muted); }
.model-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.model-pill.off i { background: var(--muted-2); }
.fallback-line { margin-top: 16px; display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--muted-2); font-family: var(--mono); }
.fallback-line .bar { flex: 1; height: 1px; background: linear-gradient(90deg, var(--blue), transparent); }

.mini-window { margin-top: 22px; border-radius: 11px; border: 1px solid var(--line-2); overflow: hidden; background: #0d0d0f; }
.mini-window .mw-bar { height: 27px; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: #17181c; border-bottom: 1px solid var(--line); }
.mini-window .mw-bar i { width: 6px; height: 6px; border-radius: 50%; background: #3a3d44; }
.mini-window .mw-body { padding: 14px; display: grid; grid-template-columns: 84px 1fr; gap: 12px; font-size: 11px; color: var(--muted-2); }
.mw-side { display: grid; gap: 7px; }
.mw-side span { height: 9px; border-radius: 4px; background: rgba(255, 255, 255, .07); }
.mw-side span.on { background: rgba(76, 141, 246, .45); }
.mw-main { border-radius: 8px; border: 1px solid var(--line); padding: 12px; display: grid; gap: 8px; align-content: center; }
.mw-main span { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .07); }
.mw-main span.w1 { width: 70%; }
.mw-main span.w2 { width: 45%; background: rgba(76, 141, 246, .4); }

.mode-list { margin-top: 20px; display: grid; gap: 10px; }
.mode-row { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .22); font-size: 12.5px; }
.mode-row .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.mode-row .dot.g { background: var(--green); box-shadow: 0 0 0 4px rgba(76, 207, 154, .12); }
.mode-row .dot.a { background: var(--amber); box-shadow: 0 0 0 4px rgba(233, 183, 92, .12); }
.mode-row b { font-weight: 650; }
.mode-row em { font-style: normal; color: var(--muted-2); margin-left: auto; font-size: 11px; font-family: var(--mono); }

/* ---------------------------------------------------------------- preview */
.shot-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px;
  border-radius: 10px; background: transparent; border: 1px solid var(--line);
  color: var(--muted); font-size: 13px; font-weight: 600; transition: .2s;
}
.tab:hover { color: var(--text); border-color: var(--line-2); }
.tab.active { color: var(--text); background: var(--surface-2); border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.tab .num { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); }

.shot-shell { border-radius: 15px; overflow: hidden; border: 1px solid var(--line-2); background: #0d0d0f; box-shadow: var(--shadow); }
.shot-bar { height: 42px; display: flex; align-items: center; gap: 13px; padding: 0 16px; background: #15171c; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--muted-2); }
.shot-bar .url { padding: 4px 12px; border-radius: 6px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; }
.shot-bar .right { margin-left: auto; display: flex; gap: 6px; }
.shot-bar .right i { width: 12px; height: 12px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.shot-canvas { position: relative; line-height: 0; background: #0d0d0f; }
.shot-canvas img { width: 100%; height: auto; display: block; }
.shot-zoom {
  position: absolute; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 13px; border-radius: 10px; font-size: 12px; font-weight: 600;
  background: rgba(18, 21, 28, .9); border: 1px solid var(--line-2); color: var(--text);
  backdrop-filter: blur(10px); transition: .2s;
}
.shot-zoom:hover { background: rgba(30, 35, 46, .95); transform: translateY(-2px); }
.shot-caption { display: flex; justify-content: space-between; gap: 20px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.shot-caption .idx { font-family: var(--mono); color: var(--muted-2); flex: none; }

.live-box {
  margin-top: 62px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 38px; align-items: center;
  padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(76, 141, 246, .07), rgba(255, 255, 255, .015) 45%, rgba(255, 255, 255, .01));
}
.live-copy h3 { font-size: 23px; font-weight: 700; margin-bottom: 12px; }
.live-copy p { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.live-points { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.live-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.live-points .ico { color: var(--green); width: 16px; height: 16px; margin-top: 3px; }
.live-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.demo-frame {
  position: relative; width: 100%; height: 470px; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--line-2); background: #0d0d0f;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.demo-frame iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; transform: scale(.78); background: #0d0d0f; }
.demo-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; z-index: 2; }
.demo-placeholder .ph-inner { display: grid; gap: 14px; justify-items: center; }
.demo-placeholder .ph-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-dim); border: 1px solid rgba(76, 141, 246, .25); color: var(--blue-2); }
.demo-placeholder p { margin: 0; font-size: 13px; color: var(--muted); max-width: 280px; }
.demo-frame.loaded .demo-placeholder { display: none; }

/* ---------------------------------------------------------------- workflow */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 30px 26px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--blue-2); margin-bottom: 22px;
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 13.5px; margin: 0; }
.step .step-ico { position: absolute; top: 26px; right: 24px; color: var(--muted-2); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 44px; right: -19px; width: 20px; height: 1px; background: var(--line-2); z-index: 2; }

/* ---------------------------------------------------------------- security */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.check-card { padding: 12px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); }
.check-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.check-row:last-child { border-bottom: 0; }
.check-row .tick { width: 24px; height: 24px; border-radius: 8px; flex: none; display: grid; place-items: center; background: rgba(76, 207, 154, .1); color: var(--green); }
.check-row .ico { width: 14px; height: 14px; }
.check-row b { display: block; font-size: 14px; font-weight: 650; }
.check-row span { display: block; font-size: 12.5px; color: var(--muted-2); margin-top: 3px; line-height: 1.6; }
.pill-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.pill { font-size: 11.5px; font-family: var(--mono); padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, .025); }

/* ---------------------------------------------------------------- download */
.dl-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px;
  padding: 48px; border-radius: 32px; border: 1px solid var(--line-2);
  background:
    radial-gradient(700px circle at 88% 8%, rgba(76, 141, 246, .2), transparent 55%),
    linear-gradient(160deg, #141924, #0d1017 70%);
  box-shadow: var(--shadow);
}
.dl-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, .025) 50%, transparent 60%); }
.dl-top { display: inline-flex; align-items: center; gap: 9px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-2); font-weight: 700; }
.dl-card h2 { font-size: clamp(28px, 3.2vw, 40px); margin: 18px 0 14px; }
.dl-card > div:first-child > p { color: var(--muted); font-size: 14.5px; margin: 0 0 26px; }
.dl-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 28px; font-size: 12.5px; color: var(--muted-2); }
.dl-facts span { display: inline-flex; align-items: center; gap: 7px; }
.dl-facts .ico { width: 14px; height: 14px; color: var(--blue-2); }
.dl-buttons { display: flex; flex-wrap: wrap; gap: 11px; }
.dl-tip { margin-top: 20px; font-size: 12.5px; color: var(--muted-2); }

.dl-side { display: grid; gap: 16px; align-content: center; }
.dl-box { padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, .28); }
.dl-box h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; font-weight: 650; }
.checksum { display: flex; align-items: center; gap: 12px; }
.checksum code { font-family: var(--mono); font-size: 11px; color: var(--muted); word-break: break-all; line-height: 1.6; flex: 1; }
.copy-btn { flex: none; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); display: grid; place-items: center; color: var(--muted); transition: .2s; }
.copy-btn:hover { color: var(--text); background: rgba(255, 255, 255, .09); }
.dl-steps { display: grid; gap: 9px; }
.dl-steps div { display: flex; gap: 11px; font-size: 12.5px; color: var(--muted); align-items: flex-start; }
.dl-steps b { flex: none; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--blue-dim); color: var(--blue-2); font-size: 11px; font-family: var(--mono); }
.setup-hint { display: none; margin-top: 18px; padding: 13px 15px; border-radius: 11px; border: 1px solid rgba(233, 183, 92, .28); background: rgba(233, 183, 92, .07); font-size: 12px; color: #e7c98c; }
body.show-setup .setup-hint { display: block; }

/* ---------------------------------------------------------------- faq */
.faq-list { max-width: 840px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 20px; padding: 22px 6px; font-size: 15.5px; font-weight: 620; transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue-2); }
.faq-item summary .chev { margin-left: auto; flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); transition: transform .25s, background .25s; }
.faq-item[open] summary .chev { transform: rotate(45deg); background: var(--blue-dim); color: var(--blue-2); }
.faq-item .answer { padding: 0 52px 24px 6px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.faq-item .answer strong { color: var(--text); font-weight: 620; }

/* ---------------------------------------------------------------- cta + footer */
.cta-band { position: relative; overflow: hidden; padding: 82px 0; border-top: 1px solid var(--line); background: radial-gradient(700px circle at 50% 0%, rgba(76, 141, 246, .15), transparent 65%); text-align: center; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 44px); }
.cta-band p { color: var(--muted); margin: 16px 0 28px; }
.cta-band .hero-actions { justify-content: center; }

.site-footer { border-top: 1px solid var(--line); padding: 62px 0 34px; background: #060709; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted-2); font-size: 13px; max-width: 280px; margin: 18px 0 0; }
.footer-col h5 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 16px; font-weight: 650; }
.footer-col a { display: block; font-size: 13.5px; color: var(--muted); padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 12px; color: var(--muted-2); }
.footer-bottom .fb-links { display: flex; gap: 18px; }

/* ---------------------------------------------------------------- lightbox / modal */
.lightbox, .modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 36px; background: rgba(4, 5, 8, .93); backdrop-filter: blur(12px); }
.lightbox[hidden], .modal[hidden] { display: none; }
.lightbox-inner { width: min(1440px, 96vw); display: grid; gap: 16px; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 12px; border: 1px solid var(--line-2); box-shadow: 0 30px 90px rgba(0, 0, 0, .7); }
.lb-bar { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.lb-bar .idx { font-family: var(--mono); color: var(--muted-2); }
.lb-ctrls { margin-left: auto; display: flex; gap: 8px; }
.lb-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .1); }
.modal-card { width: min(480px, 100%); padding: 30px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); }
.modal-card h3 { font-size: 20px; margin-bottom: 12px; }
.modal-card p { color: var(--muted); font-size: 13.5px; }
.modal-card .code { display: block; margin: 16px 0; padding: 13px; border-radius: 10px; background: #08090c; border: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--blue-2); word-break: break-all; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------------------------------------------------------------- demo page */
.demo-page { min-height: calc(100vh - 72px); display: flex; flex-direction: column; }
.demo-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid var(--line); }
.demo-bar h1 { font-size: 18px; font-weight: 680; }
.demo-bar .demo-sub { font-size: 12.5px; color: var(--muted-2); }
.demo-bar .demo-actions { margin-left: auto; display: flex; gap: 9px; }
.demo-stage { flex: 1; padding: 26px 0 46px; }
.demo-stage .demo-frame { height: min(760px, 78vh); }
.demo-note { margin-top: 16px; font-size: 12.5px; color: var(--muted-2); text-align: center; }

/* ---------------------------------------------------------------- download page */
.page-hero { position: relative; overflow: hidden; padding: 78px 0 50px; border-bottom: 1px solid var(--line); background: radial-gradient(700px circle at 80% 0%, rgba(76, 141, 246, .14), transparent 62%); }
.page-hero h1 { font-size: clamp(32px, 4vw, 52px); margin: 18px 0 16px; }
.page-hero p { color: var(--muted); max-width: 620px; font-size: 16px; }
.page-section { padding: 66px 0; }
.dl-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.info-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.info-card h3 { font-size: 18px; margin-bottom: 16px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted-2); }
.kv b { font-weight: 600; }
.note-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.note-list li { display: flex; gap: 12px; font-size: 13.5px; color: var(--muted); }
.note-list .ico { color: var(--blue-2); margin-top: 3px; }

/* 404 */
.nf { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.nf b { display: block; font-size: 90px; line-height: 1; letter-spacing: -.07em; background: linear-gradient(180deg, #fff, #4c8df6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { font-size: 26px; margin: 18px 0 12px; }
.nf p { color: var(--muted); margin-bottom: 26px; }

/* ---------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1040px) {
  .hero-grid { gap: 34px; }
  .hero { padding-top: 70px; }
  .split { gap: 36px; }
  .dl-card { gap: 30px; padding: 36px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 2 / -1; }
}

@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px 24px 20px; background: #0c0e13;
    border-bottom: 1px solid var(--line-2); box-shadow: 0 22px 40px rgba(0, 0, 0, .5);
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; font-size: 15px; }
  .nav-toggle { display: grid; }
  .header-actions .btn-ghost { display: none; }
  .hero-grid, .split, .dl-card, .dl-layout, .live-box { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; margin: 20px auto 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat:nth-child(3) { padding-left: 0; }
  .card-7, .card-5, .card-6, .card-4, .card-8 { grid-column: span 12; }
  .card-4, .card-6 { grid-column: span 6; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .live-box { gap: 26px; }
  .demo-frame { height: 400px; }
}

@media (max-width: 620px) {
  .wrap { width: min(var(--maxw), calc(100% - 32px)); }
  .section { padding: 76px 0; }
  .hero { padding: 54px 0 56px; }
  .hero h1 { font-size: 37px; }
  .hero-lead { font-size: 15px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .float-chip { font-size: 10.5px; padding: 7px 10px; }
  .chip-a { right: 0; top: -18px; }
  .chip-b { left: -6px; }
  .chip-c { right: 2%; }
  .card-4, .card-6 { grid-column: span 12; }
  .stat { padding: 22px 16px; }
  .stat b { font-size: 28px; }
  .dl-card { padding: 26px; border-radius: 24px; }
  .faq-item summary { font-size: 14.5px; gap: 12px; }
  .faq-item .answer { padding-right: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: auto; }
  .demo-frame { height: 300px; }
  .lightbox, .modal { padding: 16px; }
  .shot-bar .url { display: none; }
  .kv { grid-template-columns: 96px 1fr; }
}

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