/* installer lite — official site */
:root {
  --bg: #f4f6f9;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #eef2f8;
  --text: #101318;
  --text-2: #4b5361;
  --muted: #7d8796;
  --border: #e5e9f0;
  --border-strong: #d4dae4;
  --pill-bg: #0e1014;
  --pill-text: #ffffff;
  --accent: #2f6bff;
  --accent-soft: rgba(47,107,255,.10);
  --shadow: 0 24px 64px rgba(22,34,64,.11);
  --shadow-sm: 0 6px 22px rgba(22,34,64,.07);
  --shadow-xs: 0 2px 8px rgba(22,34,64,.05);
  --header-bg: rgba(255,255,255,.80);
  --code-bg: #10141b;
  --code-text: #d9e2ef;
  --hero-glow: radial-gradient(680px 480px at 72% 18%, rgba(120,166,255,.32), transparent 68%), radial-gradient(520px 420px at 20% 60%, rgba(190,214,255,.28), transparent 72%);
  --grid-line: rgba(30,50,90,.045);
  --ok: #1a9d63;
  --warn: #d8872b;
  --radius: 18px;
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

[data-theme="dark"] {
  --bg: #0c0e12;
  --bg-alt: #101319;
  --surface: #161a22;
  --surface-2: #1b2029;
  --surface-3: #222833;
  --text: #f1f4f9;
  --text-2: #c0c8d5;
  --muted: #8a95a5;
  --border: #262c36;
  --border-strong: #343c49;
  --pill-bg: #f1f4f9;
  --pill-text: #0c0e12;
  --accent: #82a9ff;
  --accent-soft: rgba(130,169,255,.14);
  --shadow: 0 24px 64px rgba(0,0,0,.50);
  --shadow-sm: 0 6px 22px rgba(0,0,0,.32);
  --shadow-xs: 0 2px 8px rgba(0,0,0,.25);
  --header-bg: rgba(12,14,18,.82);
  --code-bg: #080a0e;
  --code-text: #cfd9e8;
  --hero-glow: radial-gradient(680px 480px at 72% 18%, rgba(70,110,210,.22), transparent 68%), radial-gradient(520px 420px at 20% 60%, rgba(80,70,150,.16), transparent 72%);
  --grid-line: rgba(190,215,255,.045);
  --ok: #4fd39a;
  --warn: #f0b35e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
svg { width: 18px; height: 18px; display: block; }
kbd { font-family: var(--mono); font-size: 11px; background: var(--surface-3); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; color: var(--text-2); }
code { font-family: var(--mono); font-size: .88em; }
::selection { background: var(--accent-soft); color: var(--accent); }

.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.wrap-narrow { width: min(880px, calc(100% - 48px)); }
.section { padding: 104px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- progress + ambience ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 120; background: linear-gradient(90deg, var(--accent), #7aa5ff); box-shadow: 0 0 12px var(--accent); transition: width .1s linear; }
.aurora { position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .55; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--header-bg); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--border); transition: box-shadow .3s, background-color .35s; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { height: 66px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--pill-bg); color: var(--pill-text); display: grid; place-items: center; box-shadow: var(--shadow-xs); }
.brand-mark svg { width: 19px; height: 19px; }
.brand-name { font-weight: 750; font-size: 15.5px; letter-spacing: -.025em; }
.brand-ver { font-family: var(--mono); font-size: 10px; color: var(--muted); border: 1px solid var(--border); padding: 1px 6px; border-radius: 999px; margin-left: 1px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link { padding: 7px 11px; border-radius: 9px; font-size: 13.5px; color: var(--text-2); transition: color .2s, background .2s; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface-3); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: transparent; color: var(--text-2); border: 1px solid var(--border); transition: color .2s, background .2s, transform .2s, border-color .2s; }
.icon-btn:hover { color: var(--text); background: var(--surface-3); transform: translateY(-1px); }
.icon-btn svg { width: 17px; height: 17px; }
.menu-btn { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 999px; border: 1px solid transparent; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s; }
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { font-size: 12.5px; padding: 8px 15px; }
.btn-lg { font-size: 14.5px; padding: 14px 24px; }
.btn-primary { background: var(--pill-bg); color: var(--pill-text); box-shadow: 0 6px 18px rgba(15,18,25,.18); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(15,18,25,.26); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-arrow { font-size: 15px; opacity: .6; }
.btn-light { background: #ffffff; color: #0e1014; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.btn-outline { background: transparent; color: #ffffff; border-color: rgba(255,255,255,.32); }
.btn-outline:hover { background: rgba(255,255,255,.12); }

/* theme menu */
.theme-switch { position: relative; }
.theme-trigger .ico-moon { display: none; }
[data-theme="dark"] .theme-trigger .ico-sun { display: none; }
[data-theme="dark"] .theme-trigger .ico-moon { display: block; }
.theme-menu { position: absolute; top: 43px; right: 0; width: 186px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 7px; opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97); transform-origin: top right; transition: all .2s; z-index: 130; }
.theme-menu.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.theme-menu-title { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); padding: 6px 9px 8px; letter-spacing: .08em; text-transform: uppercase; }
.theme-opt { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font-size: 13px; text-align: left; }
.theme-opt:hover { background: var(--surface-3); color: var(--text); }
.theme-opt .tick { margin-left: auto; color: var(--accent); opacity: 0; font-size: 12px; }
.theme-opt.selected .tick { opacity: 1; }
.dot { width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--border-strong); display: inline-block; flex: none; }
.dot-light { background: #ffffff; }
.dot-dark { background: #15181f; }
.dot-system { background: linear-gradient(90deg, #fff 50%, #15181f 50%); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 92px 0 84px; background: var(--hero-glow), var(--bg); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 75%); pointer-events: none; }
.hero-glow { position: absolute; width: 620px; height: 620px; border-radius: 50%; right: -120px; top: -160px; background: radial-gradient(circle, rgba(120,165,255,.22), transparent 65%); filter: blur(30px); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-xs); }
.eyebrow .sep { opacity: .4; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(26,157,99,.5); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(26,157,99,0); } 100% { box-shadow: 0 0 0 0 rgba(26,157,99,0); } }
h1 { font-size: clamp(40px, 5.15vw, 68px); line-height: 1.14; letter-spacing: -.055em; font-weight: 820; margin: 26px 0 20px; }
.hl { position: relative; display: inline-block; z-index: 0; }
.hl::after { content: ""; position: absolute; left: -2px; right: -6px; bottom: .10em; height: .30em; background: var(--accent-soft); border-radius: 4px; z-index: -1; transform: rotate(-.6deg); }
[data-theme="light"] .hl::after { background: rgba(120,160,235,.34); }
.hero-sub { max-width: 520px; font-size: 16px; line-height: 1.85; color: var(--text-2); margin: 0 0 30px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border); max-width: 530px; }
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-item strong { font-size: 17px; letter-spacing: -.03em; font-weight: 750; }
.meta-item span { font-size: 11.5px; color: var(--muted); }
.hero-hint { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.hero-hint svg { width: 14px; height: 14px; }

/* floating mock */
.hero-visual { position: relative; padding: 26px 10px 26px 26px; }
.app-window { position: relative; display: flex; height: 372px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow), 0 2px 6px rgba(20,30,60,.06); overflow: hidden; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.app-sidebar { width: 62px; flex: none; background: var(--surface-2); border-right: 1px solid var(--border); padding: 14px 8px; display: flex; flex-direction: column; gap: 5px; }
.sb-logo { width: 26px; height: 26px; border-radius: 8px; background: var(--pill-bg); color: var(--pill-text); display: grid; place-items: center; font-size: 13px; margin: 0 auto 12px; }
.sb-item { display: flex; align-items: center; gap: 7px; font-size: 9.5px; color: var(--muted); padding: 6px 7px; border-radius: 7px; }
.sb-item.active { background: var(--surface-3); color: var(--text); font-weight: 700; }
.sb-i { font-size: 11px; width: 14px; text-align: center; }
.sb-bottom { margin-top: auto; padding-left: 8px; color: var(--muted); }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar { height: 38px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 14px; }
.app-title { font-size: 11px; font-weight: 700; letter-spacing: -.02em; }
.app-top-right { display: flex; gap: 4px; }
.tdot { width: 5px; height: 5px; border-radius: 50%; background: var(--border-strong); }
.app-body { padding: 18px 20px; flex: 1; }
.app-crumb { font-size: 9.5px; color: var(--muted); }
.app-crumb span { margin: 0 5px; opacity: .5; }
.app-body h3 { margin: 6px 0 2px; font-size: 17px; letter-spacing: -.03em; }
.app-desc { margin: 0 0 16px; font-size: 10.5px; color: var(--muted); }
.app-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.app-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 13px; display: flex; flex-direction: column; gap: 4px; min-height: 92px; transition: transform .2s, box-shadow .2s; }
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.ac-ico { width: 22px; height: 22px; border-radius: 7px; background: var(--surface-3); display: grid; place-items: center; font-size: 12px; color: var(--accent); margin-bottom: 3px; }
.app-card b { font-size: 11.5px; }
.app-card small { font-size: 9px; color: var(--muted); line-height: 1.45; }
.app-status { margin-top: 14px; font-size: 9.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.status-sep { opacity: .45; }
.float-chip { position: absolute; z-index: 3; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-size: 10.5px; color: var(--text-2); box-shadow: var(--shadow-sm); white-space: nowrap; animation: floaty 6s ease-in-out infinite; }
.chip-top { top: 0; left: 44%; animation-delay: -1s; }
.chip-right { top: 34px; right: -8px; animation-delay: -2.4s; }
.chip-log { bottom: 40px; left: 4px; animation-delay: -3.2s; font-family: var(--mono); font-size: 10px; }
.chip-hash { bottom: 2px; right: 24px; animation-delay: -4.5s; font-family: var(--mono); font-size: 10px; }
.float-chip .ok { color: var(--ok); }
.chip-spark { color: var(--accent); }

.hero-log { margin-top: 58px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--code-bg); box-shadow: var(--shadow); }
.log-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.09); color: #8b98ab; font-family: var(--mono); font-size: 11px; }
.log-dots { display: flex; gap: 5px; }
.log-dots i { width: 8px; height: 8px; border-radius: 50%; background: #4b5568; }
.log-dots i:first-child { background: #e2685f; } .log-dots i:nth-child(2) { background: #e0b050; } .log-dots i:nth-child(3) { background: #61b77a; }
.hero-log pre { margin: 0; padding: 20px 22px; overflow-x: auto; color: var(--code-text); font-family: var(--mono); font-size: 11.5px; line-height: 1.95; }
.hero-log .ln { color: #79a8ff; } .hero-log .ok { color: #5fd39a; } .hero-log .cm { color: #6b7688; }
.code-block .ln, .terminal .ln { color: #79a8ff; }
.code-block .ok, .terminal .ok { color: #5fd39a; }
.code-block .warn, .terminal .warn { color: #f0b35e; }
.code-block .cm, .terminal .cm { color: #6b7688; }

/* ---------- section head ---------- */
.sec-head { margin-bottom: 46px; position: relative; }
.sec-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--accent); margin-bottom: 12px; }
.sec-head h2 { font-size: clamp(29px, 3.6vw, 44px); letter-spacing: -.05em; line-height: 1.2; font-weight: 800; margin: 0 0 12px; }
.sec-head p { color: var(--text-2); font-size: 15px; margin: 0; max-width: 640px; }
.sec-underline { display: block; width: 34px; height: 3px; border-radius: 3px; background: var(--accent); margin-top: 22px; }

/* ---------- tabs / panels ---------- */
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 20px; }
.tab { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 12.5px; padding: 8px 15px; border-radius: 999px; transition: all .2s; }
.tab:hover { border-color: var(--border-strong); color: var(--text); }
.tab.active { background: var(--pill-bg); color: var(--pill-text); border-color: var(--pill-bg); }
.tab-hint { margin-left: auto; font-size: 11px; color: var(--muted); font-family: var(--mono); }
.panel-shell { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; min-height: 340px; }
.panel-bar { height: 42px; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.panel-badge { color: var(--text); font-weight: 700; }
.panel-path { } .panel-side { margin-left: auto; }
.panel { display: none; padding: 22px; animation: fadeUp .35s ease; }
.panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-grid { display: grid; grid-template-columns: 196px 1fr; gap: 22px; min-height: 276px; }
.panel-grid.single { grid-template-columns: 1fr; }
.panel-menu { border-right: 1px solid var(--border); padding-right: 14px; display: flex; flex-direction: column; gap: 3px; }
.pm { padding: 8px 11px; border-radius: 8px; font-size: 12px; color: var(--text-2); }
.pm.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.panel-content { min-width: 0; }
.pc-head { display: flex; align-items: center; gap: 12px; }
.pc-head h4 { margin: 0; font-size: 19px; letter-spacing: -.03em; }
.pill { font-size: 10.5px; font-family: var(--mono); padding: 3px 9px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); }
.pill-ok { color: var(--ok); background: rgba(26,157,99,.10); border-color: rgba(26,157,99,.22); }
.pill-blue { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.pc-sub { color: var(--muted); font-size: 13px; margin: 6px 0 18px; }
.pc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 12px 14px; }
.pc-card b { display: block; font-size: 12px; margin-bottom: 3px; }
.pc-card span { font-size: 11px; color: var(--muted); }
.pc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mini-btn { font-size: 11.5px; padding: 7px 13px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.mini-primary { background: var(--pill-bg); color: var(--pill-text); border-color: var(--pill-bg); }
.option-list { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 11px; padding: 11px 14px; background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s; }
.opt:hover { border-color: var(--border-strong); }
.opt input { accent-color: var(--accent); }
.opt span { display: flex; flex-direction: column; gap: 1px; }
.opt b { font-size: 12.5px; } .opt small { font-size: 10.5px; color: var(--muted); }
.opt em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--ok); border: 1px solid rgba(26,157,99,.3); border-radius: 999px; padding: 2px 8px; }
.steps-mini { display: grid; gap: 8px; }
.sm { display: flex; align-items: center; gap: 11px; font-size: 12.5px; color: var(--text-2); }
.sm i { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: var(--mono); font-size: 10px; font-style: normal; flex: none; }
.note { margin-top: 18px; background: var(--accent-soft); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 9px; padding: 11px 14px; font-size: 11.5px; color: var(--text-2); line-height: 1.7; }
.note b { color: var(--text); margin-right: 8px; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.field-input { background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px; font-size: 12px; color: var(--text-2); }
.field-input.mono { font-family: var(--mono); font-size: 11px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips span { font-size: 10.5px; padding: 4px 9px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); }
.swatch-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { font-size: 11px; padding: 9px 13px; border-radius: 9px; border: 1px solid var(--border); color: #fff; }
.sw-a { background: #7c5cff; } .sw-b { background: #0a84ff; } .sw-c { background: #e0623f; } .sw-d { background: #1b6fc4; }
.terminal { background: var(--code-bg); color: var(--code-text); border-radius: 12px; padding: 18px 20px; font-family: var(--mono); font-size: 11.5px; line-height: 2.05; min-height: 250px; }
.about-lines { display: grid; gap: 9px; }
.about-lines > div { display: flex; align-items: baseline; gap: 14px; border-bottom: 1px dashed var(--border); padding-bottom: 8px; }
.about-lines span { width: 84px; flex: none; font-size: 11.5px; color: var(--muted); }
.about-lines code { font-size: 11.5px; color: var(--text-2); word-break: break-all; }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 15px; padding: 24px 22px 22px; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.feature::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); opacity: 0; transition: opacity .25s; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.feature:hover::before { opacity: 1; }
.f-num { position: absolute; top: 20px; right: 20px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.f-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-size: 19px; margin-bottom: 16px; }
.feature h3 { margin: 0 0 8px; font-size: 16px; letter-spacing: -.025em; }
.feature p { margin: 0; font-size: 12.8px; color: var(--text-2); line-height: 1.75; }
.f-tag { display: inline-block; margin-top: 14px; font-size: 10.5px; font-family: var(--mono); color: var(--muted); border: 1px solid var(--border); padding: 2px 8px; border-radius: 999px; }

/* ---------- pipeline ---------- */
.flow { position: relative; margin-bottom: 30px; padding: 6px 0 10px; }
.flow-line { position: absolute; left: 8%; right: 8%; top: 42px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--border-strong)); opacity: .45; }
.flow-dot { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); animation: travel 6s linear infinite; }
@keyframes travel { from { left: 0; } to { left: 100%; } }
.flow-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; }
.flow-step { background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 16px 14px; text-align: center; box-shadow: var(--shadow-xs); }
.flow-step i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--pill-bg); color: var(--pill-text); font-family: var(--mono); font-size: 10px; font-style: normal; margin: 0 auto 12px; }
.flow-step b { display: block; font-size: 13px; margin-bottom: 4px; }
.flow-step small { font-size: 10.5px; color: var(--muted); }
.pipe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pipe-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); }
.pipe-title { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.pipe-title h3 { margin: 0; font-size: 16px; }
.pt-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 15px; }
.pipe-title .pill { margin-left: auto; }
.copy-btn { margin-left: auto; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); font-size: 11px; padding: 5px 11px; border-radius: 8px; transition: all .2s; }
.copy-btn:hover { color: var(--text); border-color: var(--border-strong); }
.prio { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.prio li { display: flex; align-items: flex-start; gap: 11px; padding: 9px 11px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.prio li > span { width: 21px; height: 21px; flex: none; border-radius: 6px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); font-family: var(--mono); font-size: 10px; }
.prio b { display: block; font-size: 12.5px; }
.prio small { font-size: 10.8px; color: var(--muted); }
.code-block { background: var(--code-bg); color: var(--code-text); margin: 0; padding: 18px 20px; border-radius: 12px; font-family: var(--mono); font-size: 11.5px; line-height: 2.05; overflow-x: auto; min-height: 246px; }
.pipe-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 10.5px; color: var(--muted); font-family: var(--mono); }
.lic { color: var(--accent); white-space: nowrap; }

/* ---------- app themes ---------- */
.theme-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.theme-options { display: grid; gap: 10px; }
.theme-opt-card { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; color: var(--text); transition: border-color .2s, transform .2s, box-shadow .2s; }
.theme-opt-card:hover { transform: translateX(4px); border-color: var(--border-strong); }
.theme-opt-card.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.toc-swatch { width: 36px; height: 36px; border-radius: 11px; background: var(--sw); flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.toc-gradient { background: conic-gradient(from 210deg, #7c5cff, #0a84ff, #4fd39a, #f0b35e, #e0623f, #7c5cff); }
.toc-text { display: flex; flex-direction: column; gap: 2px; }
.toc-text b { font-size: 13.5px; }
.toc-text small { font-size: 11px; color: var(--muted); }
.toc-check { margin-left: auto; color: var(--accent); opacity: 0; font-size: 14px; }
.theme-opt-card.active .toc-check { opacity: 1; }
.theme-note { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--muted); padding: 8px 4px; }
.dot-blue { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); border: 0; }
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone { width: 256px; border-radius: 30px; background: var(--surface); border: 8px solid var(--surface-3); box-shadow: var(--shadow); overflow: hidden; transition: border-color .35s; }
.phone-bar { display: flex; justify-content: space-between; padding: 8px 16px 4px; font-size: 10px; color: var(--muted); font-family: var(--mono); }
.phone-header { background: var(--ph-accent, #0a84ff); color: #fff; padding: 12px 16px; font-size: 13px; font-weight: 700; transition: background .35s; }
.phone-body { padding: 16px; }
.ph-label { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.ph-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.ph-card b { display: block; font-size: 11.5px; }
.ph-card small { font-size: 10px; color: var(--muted); }
.ph-btn { background: var(--ph-accent, #0a84ff); color: #fff; text-align: center; padding: 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; margin: 12px 0; transition: background .35s; }
.ph-row { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--muted); }
.ph-badge { color: #fff; background: var(--ph-accent, #0a84ff); border-radius: 999px; padding: 2px 8px; transition: background .35s; }
.phone-caption { font-size: 11.5px; color: var(--muted); font-family: var(--mono); }

/* ---------- specs ---------- */
.spec-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.spec-table { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); }
.spec-row { display: flex; align-items: center; gap: 16px; padding: 13px 20px; border-bottom: 1px solid var(--border); font-size: 12.8px; }
.spec-row:last-child { border-bottom: 0; }
.spec-row > span:first-child { width: 96px; flex: none; color: var(--muted); font-size: 11.5px; }
.spec-row b { font-weight: 650; }
.spec-row code { color: var(--text-2); word-break: break-all; }
.vc { font-style: normal; font-size: 10.5px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.hash { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hash code { font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spec-side { display: grid; gap: 16px; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-xs); }
.side-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 15px; }
.side-card h3 em { margin-left: auto; font-style: normal; font-size: 10px; font-family: var(--mono); color: var(--muted); border: 1px solid var(--border); padding: 2px 8px; border-radius: 999px; }
.sc-ico { width: 27px; height: 27px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 14px; }
.perm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.perm-list li { display: flex; flex-direction: column; gap: 2px; padding: 7px 10px; border-radius: 8px; background: var(--surface-2); }
.perm-list code { font-size: 10.5px; color: var(--text-2); word-break: break-all; }
.perm-list span { font-size: 10.5px; color: var(--muted); }
.lic-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.lic-tags span { font-size: 10.5px; font-family: var(--mono); padding: 5px 9px; border-radius: 7px; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); }
.lic-note { font-size: 11px; color: var(--muted); line-height: 1.8; margin: 14px 0 0; }

/* ---------- download ---------- */
.download-section { padding-top: 20px; }
.dl-card { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; overflow: hidden; border-radius: 24px; padding: 52px 52px 48px; color: #fff; background: radial-gradient(560px 320px at 82% 0%, rgba(100,140,255,.35), transparent 70%), linear-gradient(135deg, #111621, #0a0d13 62%, #131a29); box-shadow: var(--shadow); }
.dl-card::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 38px 38px; pointer-events: none; }
.dl-left, .dl-right { position: relative; z-index: 1; }
.dl-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11px; color: #a9c2ff; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px 13px; margin-bottom: 20px; }
.dl-card h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.05em; margin: 0 0 12px; }
.dl-card p { color: #aeb9c9; font-size: 14px; max-width: 560px; margin: 0 0 26px; line-height: 1.8; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; color: #95a2b5; }
.dl-meta b { color: #dce4f0; margin-right: 6px; font-weight: 600; }
.dl-right { display: grid; place-items: center; }
.dl-file { width: 190px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 18px; transform: rotate(6deg); backdrop-filter: blur(8px); box-shadow: 0 20px 40px rgba(0,0,0,.3); transition: transform .35s; }
.dl-file:hover { transform: rotate(0deg) translateY(-6px); }
.dl-file-top { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: #9fb2d4; }
.apk-logo { width: 30px; height: 30px; border-radius: 9px; background: #fff; color: #111621; display: grid; place-items: center; font-size: 16px; }
.dl-file-name { font-size: 17px; font-weight: 750; letter-spacing: -.03em; line-height: 1.3; margin: 18px 0; }
.dl-file-line { display: flex; gap: 4px; align-items: flex-end; height: 26px; }
.dl-file-line span { flex: 1; background: rgba(255,255,255,.22); border-radius: 2px; }
.dl-file-line span:nth-child(1) { height: 40%; } .dl-file-line span:nth-child(2) { height: 70%; } .dl-file-line span:nth-child(3) { height: 45%; } .dl-file-line span:nth-child(4) { height: 90%; } .dl-file-line span:nth-child(5) { height: 60%; } .dl-file-line span:nth-child(6) { height: 80%; } .dl-file-line span:nth-child(7) { height: 35%; }
.dl-file-foot { display: flex; justify-content: space-between; margin-top: 14px; font-family: var(--mono); font-size: 10px; color: #aebbd0; }
.dl-badge { margin-top: -10px; font-family: var(--mono); font-size: 11px; color: #111621; background: #fff; border-radius: 999px; padding: 4px 12px; transform: rotate(-6deg); }
.dl-legal { text-align: center; font-size: 11.5px; color: var(--muted); margin: 22px 0 0; line-height: 1.8; }

/* ---------- faq ---------- */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: transparent; border: 0; padding: 19px 4px; text-align: left; color: var(--text); font-size: 15px; font-weight: 650; letter-spacing: -.015em; }
.faq-q:hover { color: var(--accent); }
.faq-plus { position: relative; width: 18px; height: 18px; flex: none; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; top: 8px; left: 2px; width: 14px; height: 1.8px; background: currentColor; border-radius: 2px; transition: transform .25s; }
.faq-plus::after { transform: rotate(90deg); }
.faq-item.open .faq-plus::after { transform: rotate(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 340px; }
.faq-a p { margin: 0; padding: 0 40px 20px 4px; color: var(--text-2); font-size: 13.2px; line-height: 1.9; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 60px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand p { color: var(--muted); font-size: 12.5px; line-height: 1.9; margin: 16px 0; }
.footer-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.footer-chips span { font-family: var(--mono); font-size: 10px; color: var(--text-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.footer-col a, .footer-col span { font-size: 12.5px; color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-col kbd { margin-right: 5px; }
.footer-bottom { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 46px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); font-family: var(--mono); }
.to-top { margin-left: auto; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 6px 14px; font-size: 11px; }
.to-top:hover { color: var(--text); border-color: var(--border-strong); }

/* ---------- toast / modal / reveal ---------- */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 24px); background: var(--pill-bg); color: var(--pill-text); padding: 11px 20px; border-radius: 999px; font-size: 12.5px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: all .28s; z-index: 200; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.shortcut-modal { position: fixed; inset: 0; background: rgba(6,9,14,.55); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 210; opacity: 0; visibility: hidden; transition: opacity .2s; }
.shortcut-modal.open { opacity: 1; visibility: visible; }
.shortcut-card { width: min(360px, calc(100% - 40px)); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.sc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sc-head b { font-size: 15px; }
.sc-head button { border: 0; background: transparent; color: var(--muted); font-size: 15px; }
.sc-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--text-2); }
.sc-row:last-child { border-bottom: 0; }
.sc-row kbd { margin-left: 5px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 24px 18px; flex-direction: column; align-items: stretch; gap: 2px; box-shadow: var(--shadow-sm); }
  .main-nav.open { display: flex; }
  .nav-link { padding: 10px 12px; }
  .menu-btn { display: grid; }
  .hero-grid { gap: 30px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { display: none; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { padding: 20px 10px 30px 10px; max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-meta { max-width: none; }
  .theme-layout, .spec-grid, .pipe-grid, .dl-card { grid-template-columns: 1fr; }
  .dl-right { display: none; }
  .dl-card { padding: 40px 30px; }
  .panel-grid { grid-template-columns: 1fr; }
  .panel-menu { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--border); padding: 0 0 12px; gap: 5px; }
  .pm { padding: 6px 10px; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .flow-line { display: none; }
}
@media (max-width: 620px) {
  .wrap, .wrap-narrow { width: calc(100% - 32px); }
  .section { padding: 72px 0; }
  .hero { padding: 60px 0 64px; }
  h1 { font-size: 38px; }
  .hero-sub { font-size: 14.5px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .app-window { height: 330px; }
  .app-body { padding: 14px; }
  .float-chip { font-size: 9px; padding: 6px 10px; }
  .chip-right { display: none; }
  .feature-grid, .pc-cards, .flow-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .spec-row { flex-wrap: wrap; gap: 6px; }
  .spec-row > span:first-child { width: 100%; }
  .hash code { white-space: normal; }
  .tab-hint { display: none; }
  .header-dl { display: none; }
  .dl-meta { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
