/* ==========================================================================
   色序 · IconSort — landing page
   Static, dependency-free stylesheet. Dark-first palette drawn from the
   Android app (night theme + launcher icon accents). No external fonts.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #0a0b10;
  --bg-2: #0d0e14;
  --panel: #14151b;
  --panel-2: #191a22;
  --panel-3: #20212b;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.22);
  --text: #f2f0f7;
  --text-2: #c3c0ce;
  --muted: #918da2;
  --faint: #6c687d;
  --coral: #ff7a6b;
  --coral-soft: #ffb4a9;
  --yellow: #ffc857;
  --teal: #4ed6c3;
  --indigo: #8c7bff;
  --indigo-deep: #5b4bdb;
  --rainbow: linear-gradient(90deg, #ff4d4d 0%, #ff8a3d 14%, #ffc857 30%, #7ed957 46%, #4ed6c3 60%, #4da3ff 74%, #8c7bff 87%, #ff6bd6 100%);
  --grad-text: linear-gradient(100deg, #ff9c8f 0%, #ffd27a 36%, #7ee8d8 72%, #b3a6ff 100%);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-card: 0 30px 70px -40px rgba(0, 0, 0, 0.85);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1000px 640px at 10% -10%, rgba(140, 123, 255, 0.20), transparent 62%),
    radial-gradient(840px 560px at 94% -2%, rgba(255, 122, 107, 0.13), transparent 60%),
    radial-gradient(900px 620px at 50% 112%, rgba(78, 214, 195, 0.09), transparent 62%),
    linear-gradient(180deg, #0a0b10 0%, #0b0c12 45%, #0a0b10 100%);
}

img { max-width: 100%; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

button { font: inherit; color: inherit; }

::selection {
  background: rgba(255, 122, 107, 0.9);
  color: #1a0d0a;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--yellow);
  color: #241a03;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ---------- layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  position: relative;
  padding: clamp(64px, 8vw, 108px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  scroll-margin-top: 88px;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--coral), rgba(255, 122, 107, 0));
}
.section-kicker .num { color: var(--coral); }
.section-kicker.small { margin-bottom: 12px; font-size: 10.5px; }

.section-head h2 {
  font-size: clamp(30px, 3.9vw, 46px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-sub {
  margin-top: 16px;
  max-width: 620px;
  font-size: clamp(14.5px, 1.35vw, 16.5px);
  color: var(--text-2);
  text-wrap: pretty;
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rainbow-rule {
  height: 6px;
  border-radius: 999px;
  background: var(--rainbow);
  opacity: 0.92;
  box-shadow: 0 0 30px -4px rgba(140, 123, 255, 0.45);
}
.rainbow-rule-sm { height: 4px; margin-top: 24px; opacity: 0.85; }

/* ---------- buttons / pills ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-primary {
  background: var(--coral);
  color: #1a0d0a;
  box-shadow: 0 14px 34px -14px rgba(255, 122, 107, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}
.btn-primary:hover { background: #ff9184; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-2);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--line-3); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 16px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-meta {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.version-pill {
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), backdrop-filter 0.25s;
}
.site-header.is-scrolled {
  background: rgba(10, 11, 16, 0.74);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(140%);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(140, 123, 255, 0.35));
}
.brand-text { display: inline-flex; align-items: baseline; gap: 9px; }
.brand-text strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
}
.brand-en {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: var(--muted);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.055); }
.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.site-nav + .header-actions { margin-left: 0; }
@media (min-width: 901px) {
  .site-nav + .header-actions { margin-left: 4px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(44px, 5vw, 72px) 0 clamp(40px, 5vw, 64px);
  overflow: hidden;
  scroll-margin-top: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 75% 62% at 50% 30%, #000 18%, transparent 76%);
  mask-image: radial-gradient(ellipse 75% 62% at 50% 30%, #000 18%, transparent 76%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.hero-copy { max-width: 560px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--text-2);
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(78, 214, 195, 0.16);
}
.hero h1 {
  margin: 24px 0 0;
  font-size: clamp(38px, 5.1vw, 66px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero h1 .grad-text { display: inline-block; }
.hero .lede {
  margin-top: 22px;
  max-width: 520px;
  font-size: clamp(14.5px, 1.28vw, 16.5px);
  line-height: 1.85;
  color: var(--text-2);
  text-wrap: pretty;
}
.hero .lede strong { color: var(--text); font-weight: 700; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
}
.hero-meta li:nth-child(2)::before { background: var(--yellow); }
.hero-meta li:nth-child(3)::before { background: var(--indigo); }
.hero-meta li:nth-child(4)::before { background: var(--coral); }

/* hero phone stage */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 660px;
  padding: 18px 0;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: min(560px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(140, 123, 255, 0.34), transparent 72%),
    radial-gradient(closest-side at 68% 72%, rgba(78, 214, 195, 0.20), transparent 70%);
  filter: blur(38px);
  z-index: 0;
}
.device {
  position: relative;
  border-radius: 46px;
  padding: 9px;
  background: linear-gradient(152deg, #40414d 0%, #101116 40%, #26272f 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 60px 110px -50px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.device::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.16), transparent 32%, transparent 70%, rgba(255, 255, 255, 0.05));
  opacity: 0.55;
}
.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 37px;
  background: #101116;
}
.device-main {
  width: min(300px, 58vw);
  transform: rotate(2.4deg);
  z-index: 2;
}
.device-back {
  position: absolute;
  left: -24px;
  bottom: 30px;
  width: min(172px, 32vw);
  transform: rotate(-7deg);
  z-index: 3;
  opacity: 0.97;
}
.device-back img { border-radius: 30px; }
.float-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 15px;
  background: rgba(20, 21, 27, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px) saturate(140%);
}
.float-chip b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.float-chip small {
  display: block;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}
.chip-sort { top: 26px; left: -42px; }
.chip-count {
  right: 0;
  bottom: 74px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 12px 16px;
}
.chip-count b {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--coral);
}
.chip-count small { font-family: var(--font-sans); font-size: 10.5px; }
.chip-dots { display: inline-grid; grid-template-columns: repeat(2, 6px); gap: 3px; }
.chip-dots i { width: 6px; height: 6px; border-radius: 2px; }
.dot-coral { background: var(--coral); }
.dot-yellow { background: var(--yellow); }
.dot-teal { background: var(--teal); }
.dot-indigo { background: var(--indigo); }
.hero-rainbow {
  position: absolute;
  z-index: 1;
  bottom: 6px;
  left: 50%;
  width: min(430px, 76%);
  height: 7px;
  transform: translateX(-50%);
  opacity: 0.9;
}

.hero .stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(34px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008));
}
.hero .rainbow-rule { margin-top: clamp(30px, 4vw, 44px); opacity: 0.65; }
.stat {
  padding: 22px clamp(14px, 1.9vw, 26px);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat dt {
  font-family: var(--font-mono);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--stat-c, var(--text));
}
.stat dd {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.stat-coral { --stat-c: var(--coral); }
.stat-yellow { --stat-c: var(--yellow); }
.stat-teal { --stat-c: var(--teal); }
.stat-indigo { --stat-c: var(--indigo); }

/* ---------- feature cards ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  grid-column: span 6;
  overflow: hidden;
  padding: clamp(22px, 2.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(520px 280px at var(--glow-x, 88%) -18%, var(--glow, rgba(140, 123, 255, 0.13)), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01) 58%, rgba(255, 255, 255, 0.004));
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  isolation: isolate;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-card);
}
.card-sort { grid-column: span 7; --glow: rgba(255, 122, 107, 0.16); --glow-x: 82%; }
.card-color { grid-column: span 5; --glow: rgba(140, 123, 255, 0.18); --glow-x: 12%; }
.card-grid { grid-column: span 5; --glow: rgba(78, 214, 195, 0.14); }
.card-select { grid-column: span 7; --glow: rgba(255, 200, 87, 0.12); --glow-x: 92%; }
.card-theme { grid-column: span 5; --glow: rgba(77, 163, 255, 0.12); }
.card-privacy { grid-column: span 12; --glow: rgba(78, 214, 195, 0.13); --glow-x: 88%; }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--icon-c, var(--text));
}
.card-icon .icon { width: 20px; height: 20px; }
.icon-coral { --icon-c: var(--coral); background: rgba(255, 122, 107, 0.12); border-color: rgba(255, 122, 107, 0.24); }
.icon-indigo { --icon-c: var(--indigo); background: rgba(140, 123, 255, 0.13); border-color: rgba(140, 123, 255, 0.26); }
.icon-teal { --icon-c: var(--teal); background: rgba(78, 214, 195, 0.12); border-color: rgba(78, 214, 195, 0.24); }
.icon-yellow { --icon-c: var(--yellow); background: rgba(255, 200, 87, 0.12); border-color: rgba(255, 200, 87, 0.24); }
.icon-blue { --icon-c: #7cb8ff; background: rgba(77, 163, 255, 0.12); border-color: rgba(77, 163, 255, 0.26); }
.card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--faint);
  text-transform: uppercase;
  white-space: nowrap;
}
.card h3 {
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.card-copy {
  margin-top: 11px;
  font-size: 13.8px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 52ch;
  text-wrap: pretty;
}
.card-copy strong { color: var(--text-2); font-weight: 650; }

/* sort modes */
.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}
.mode {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.028);
}
.mode-dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--c, var(--coral));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--coral)) 18%, transparent);
}
.mode b { display: block; font-size: 13px; font-weight: 650; line-height: 1.5; }
.mode span { display: block; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.mode.is-default { border-color: rgba(255, 122, 107, 0.22); background: rgba(255, 122, 107, 0.055); }

/* color modes */
.segmented {
  display: inline-flex;
  gap: 4px;
  margin-top: 20px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}
.segmented span {
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.segmented .seg-on {
  background: var(--indigo-deep);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(91, 75, 219, 0.9);
}
.color-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.color-mode {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
}
.color-mode h4 { font-size: 12.5px; font-weight: 650; color: var(--text-2); }
.color-mode p { margin-top: 5px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.swatches { display: flex; gap: 4px; margin-top: 12px; }
.swatches i {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--c, #ff7a6b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.swatches.is-soft i { filter: saturate(0.72) brightness(1.02); }

/* grid demo */
.grid-demo {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  margin-top: 22px;
}
.mini-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  max-width: 246px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
}
.mini-grid i {
  aspect-ratio: 1;
  border-radius: 4px;
  background: hsl(var(--h, 200) var(--s, 72%) var(--l, 58%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}
.grid-demo-meta {
  display: grid;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.grid-demo-meta .row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
}
.grid-demo-meta b { color: var(--text); font-size: 13px; }
.stepper {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1;
}

/* selection mock */
.sel-mock {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
  overflow: hidden;
}
.sel-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--faint);
}
.sel-search .icon { width: 14px; height: 14px; }
.sel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  font-size: 12px;
  color: var(--text-2);
}
.sel-row:first-of-type { border-top: 0; }
.sel-row.muted { color: var(--faint); }
.sel-app {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--c, #ff7a6b);
  flex: none;
}
.sel-row .sel-pkg { margin-left: auto; color: var(--faint); font-family: var(--font-mono); font-size: 9.5px; }
.sel-check {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  color: transparent;
  flex: none;
}
.sel-check.on { background: var(--indigo-deep); border-color: transparent; color: #fff; }
.sel-check .icon { width: 11px; height: 11px; stroke-width: 2.6; }

/* theme demo */
.theme-demo {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 24px;
  min-height: 132px;
}
.mini-phone {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 82px;
  padding: 8px;
  aspect-ratio: 9 / 18.5;
  border-radius: 15px;
  border: 1px solid var(--line-2);
  background: #f3f1f8;
  flex: none;
}
.mini-phone.dark { background: #121318; }
.mini-phone .m-bar {
  height: 12px;
  border-radius: 4px;
  background: rgba(20, 21, 27, 0.1);
}
.mini-phone.dark .m-bar { background: rgba(255, 255, 255, 0.1); }
.mini-phone .m-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
}
.mini-phone .m-grid i { border-radius: 2px; background: hsl(var(--h, 200) var(--s, 62%) var(--l, 58%)); }
.mini-landscape {
  flex: 1 1 auto;
  display: flex;
  gap: 7px;
  min-width: 0;
  height: 108px;
  padding: 9px;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  background: #f3f1f8;
}
.mini-landscape .m-side {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 27%;
  flex: none;
}
.mini-landscape .m-side i { height: 9px; border-radius: 3px; background: rgba(20, 21, 27, 0.12); }
.mini-landscape .m-side i:first-child { width: 64%; height: 11px; background: repeating-linear-gradient(90deg, var(--coral) 0 3px, var(--yellow) 3px 6px, var(--teal) 6px 9px, var(--indigo) 9px 12px); }
.mini-landscape .m-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 3px;
}
.mini-landscape .m-grid i { border-radius: 2px; background: hsl(var(--h, 200) var(--s, 64%) var(--l, 58%)); }

/* privacy card */
.checklist { display: grid; gap: 9px; margin-top: 22px; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-2);
}
.checklist .check {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(78, 214, 195, 0.14);
  color: var(--teal);
  flex: none;
}
.checklist .check .icon { width: 11px; height: 11px; stroke-width: 2.6; }
.shield-art {
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(78, 214, 195, 0.16), transparent 72%);
  pointer-events: none;
}

/* ---------- screenshot gallery ---------- */
.gallery-hint {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.gallery-hint .icon { width: 13px; height: 13px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.7vw, 22px);
  align-items: stretch;
}
.shot { min-width: 0; }
a.shot-btn,
a.landscape-frame { color: inherit; text-decoration: none; }
.shot-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #23242e, #101116 46%, #1b1c24);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9);
  cursor: zoom-in;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.shot-btn img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 15px;
  background: #101116;
  transition: transform 0.6s var(--ease);
}
.shot-btn:hover { transform: translateY(-4px); border-color: var(--line-3); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.95); }
.shot-btn:hover img { transform: scale(1.022); }
.shot figcaption { padding: 14px 4px 0; }
.shot figcaption b { display: block; font-size: 13.5px; font-weight: 650; line-height: 1.5; }
.shot figcaption span { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(10, 11, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-size: 10px;
  color: var(--text-2);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.zoom-hint .icon { width: 11px; height: 11px; }
.shot-btn:hover .zoom-hint,
.shot-btn:focus-visible .zoom-hint,
.landscape-frame:hover .zoom-hint,
.landscape-frame:focus-visible .zoom-hint { opacity: 1; transform: none; }

.gallery-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: 100%;
  padding: 26px;
  border: 1px solid rgba(255, 122, 107, 0.25);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 260px at 78% 0%, rgba(255, 200, 87, 0.16), transparent 65%),
    radial-gradient(420px 320px at 12% 100%, rgba(140, 123, 255, 0.22), transparent 68%),
    linear-gradient(165deg, rgba(255, 122, 107, 0.14), rgba(20, 21, 27, 0.9));
  overflow: hidden;
  position: relative;
}
.gallery-cta .cta-mark {
  width: 46px;
  height: 46px;
  opacity: 0.95;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}
.gallery-cta h3 {
  font-size: clamp(20px, 1.9vw, 25px);
  font-weight: 780;
  line-height: 1.35;
}
.gallery-cta p {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--text-2);
}
.gallery-cta .cta-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.gallery-cta .btn { margin-top: 4px; }

/* landscape showcase */
.landscape {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.62fr);
  gap: clamp(22px, 3vw, 42px);
  align-items: center;
  margin-top: clamp(18px, 2.4vw, 28px);
  padding: clamp(18px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(560px 320px at 88% 10%, rgba(77, 163, 255, 0.13), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}
.landscape-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #101116;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9);
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.landscape-frame img { display: block; width: 100%; height: auto; }
.landscape-frame:hover { transform: translateY(-2px); border-color: var(--line-3); }
.landscape figcaption h3 {
  margin-top: 4px;
  font-size: clamp(21px, 2.1vw, 28px);
  font-weight: 780;
  line-height: 1.35;
  text-wrap: balance;
}
.landscape figcaption p {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}
.mini-specs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.mini-specs li {
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--text-2);
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: steps;
}
.step {
  position: relative;
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.008));
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--step-c, var(--coral)), transparent);
  opacity: 0.6;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--step-c, var(--coral));
}
.step-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 16px 0 14px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.step h3 { font-size: 16px; font-weight: 700; line-height: 1.45; }
.step p { margin-top: 8px; font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.step:nth-child(2) { --step-c: var(--yellow); }
.step:nth-child(3) { --step-c: var(--teal); }
.step:nth-child(4) { --step-c: var(--indigo); }

/* ---------- tech ---------- */
.tech-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}
.tech-main h3,
.limits h3 {
  font-size: clamp(22px, 2.2vw, 29px);
  font-weight: 780;
  line-height: 1.35;
  margin-bottom: 20px;
}
.limits h3 span { color: var(--muted); font-weight: 650; font-size: 0.62em; letter-spacing: 0.06em; }
.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.spec {
  padding: 15px 17px;
  background: var(--bg-2);
}
.spec dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.spec dd {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
}
.spec.span-2 { grid-column: span 2; }
.limits {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 200, 87, 0.045), rgba(255, 255, 255, 0.006));
}
.limits ul { display: grid; }
.limits li {
  position: relative;
  padding: 11px 0 11px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.2px;
  line-height: 1.72;
  color: var(--muted);
}
.limits li:first-child { border-top: 0; }
.limits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--yellow);
  opacity: 0.8;
}
.install { margin-top: 20px; }
.install-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.install-head h4 { font-size: 14px; font-weight: 700; }
.install-head span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--faint);
}
.code {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #08090d;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.95;
  color: #dcd8e6;
}
.code .c { color: var(--faint); }
.code .cmd { color: var(--teal); }

/* ---------- download ---------- */
.section-download { overflow: hidden; }
.download-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(26px, 4vw, 48px);
  padding: clamp(26px, 4.2vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(680px 380px at 82% -10%, rgba(255, 122, 107, 0.22), transparent 66%),
    radial-gradient(640px 420px at 0% 110%, rgba(140, 123, 255, 0.24), transparent 68%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(10, 11, 16, 0.72));
  overflow: hidden;
}
.download-panel::after {
  content: "";
  position: absolute;
  left: clamp(26px, 4.2vw, 52px);
  right: clamp(26px, 4.2vw, 52px);
  top: 0;
  height: 1px;
  background: var(--rainbow);
  opacity: 0.75;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-2);
  text-transform: uppercase;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(78, 214, 195, 0.15);
}
.download-copy h3 {
  margin-top: 20px;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.download-copy p {
  margin-top: 16px;
  max-width: 460px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-2);
}
.download-actions { margin-top: 28px; }
.download-note {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.release-card {
  align-self: center;
  padding: 10px 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: rgba(8, 9, 13, 0.58);
  backdrop-filter: blur(14px);
}
.release-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.release-row:first-child { border-top: 0; }
.release-row dt {
  flex: none;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.release-row dd {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  text-align: right;
  color: var(--text-2);
  word-break: break-all;
}
.release-row dd.hash { font-size: 11px; }
.hash-slot {
  display: inline-block;
  padding: 3px 9px;
  border: 1px dashed rgba(255, 200, 87, 0.45);
  border-radius: 7px;
  background: rgba(255, 200, 87, 0.08);
  color: var(--yellow);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}
.hash-value {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--teal);
  word-break: break-all;
  user-select: all;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(42px, 5vw, 64px) 0 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(0, 0, 0, 0.28));
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(30px, 5vw, 70px);
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p {
  margin-top: 16px;
  max-width: 360px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.footer-fine {
  font-family: var(--font-mono);
  font-size: 10.5px !important;
  letter-spacing: 0.04em;
  color: var(--faint) !important;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  justify-items: start;
}
.footer-nav h4 {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer-nav a,
.footer-nav span {
  display: block;
  padding: 3px 0;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--faint);
}

/* ---------- lightbox ---------- */
.lightbox {
  padding: 0;
  border: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  background: transparent;
  color: var(--text);
}
.lightbox::backdrop {
  background: rgba(4, 5, 9, 0.9);
  backdrop-filter: blur(16px) saturate(120%);
}
.lightbox[open] { display: block; }
.lb-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
  padding: clamp(52px, 7vh, 76px) 18px clamp(18px, 3vh, 30px);
}
.lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  flex: 1;
}
.lb-img {
  display: block;
  max-width: min(92vw, 680px);
  max-height: min(74vh, 820px);
  width: auto;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: #101116;
  box-shadow: 0 60px 120px -50px #000;
}
.lb-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 21, 27, 0.78);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.lb-btn:hover { background: rgba(40, 41, 52, 0.9); border-color: var(--line-3); transform: scale(1.04); }
.lb-btn .icon { width: 20px; height: 20px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb-prev { left: max(10px, calc(50% - 300px)); }
.lb-next { right: max(10px, calc(50% - 300px)); }
.lb-close { position: absolute; top: 16px; right: 16px; z-index: 3; }
.lb-caption {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 640px;
  text-align: center;
}
.lb-caption p { font-size: 13px; line-height: 1.6; color: var(--text-2); }
.lb-count {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}
html.lightbox-open, html.lightbox-open body { overflow: hidden; }

/* ---------- hero entrance ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.85s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.24s; }
  .hero-visual { animation: rise 1s var(--ease) 0.12s both; }
}

/* ---------- reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: 0.06s; }
.js .reveal:nth-child(3) { transition-delay: 0.12s; }
.js .reveal:nth-child(4) { transition-delay: 0.18s; }
.js .reveal:nth-child(5) { transition-delay: 0.1s; }
.js .reveal:nth-child(6) { transition-delay: 0.16s; }
.js .reveal:nth-child(7) { transition-delay: 0.22s; }
.js .reveal:nth-child(8) { transition-delay: 0.28s; }

/* ---------- v1.1: arrangement, swipes, two-line names, filters ---------- */
.hero-swipes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}
.hero-swipes li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 11.5px;
  color: var(--text-2);
}
.hero-swipes .swipe-pill { font-weight: 700; color: var(--coral); letter-spacing: 0.02em; }
.hero-swipes .icon { width: 15px; height: 15px; color: var(--teal); }
.hero-swipes .note {
  border-color: transparent;
  background: none;
  padding: 0 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--faint);
}

.card-arrangement { grid-column: span 7; --glow: rgba(255, 122, 107, 0.15); --glow-x: 18%; }
.dir-demo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.dir-panel {
  padding: 13px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
}
.dir-panel.is-on {
  border-color: rgba(255, 122, 107, 0.32);
  background: linear-gradient(180deg, rgba(255, 122, 107, 0.08), rgba(0, 0, 0, 0.18));
}
.dir-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dir-pill {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 10.5px;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
}
.dir-panel.is-on .dir-pill { border-color: transparent; background: var(--coral); color: #1a0d0a; }
.dir-swipe {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--teal);
  white-space: nowrap;
}
.dir-swipe .icon { width: 13px; height: 13px; }
.dir-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.dir-grid i { aspect-ratio: 1; border-radius: 3px; background: hsl(var(--h, 200) 70% 58%); }
.dir-foot {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--faint);
}

.name-demo { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.name-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 104px;
  padding: 11px 8px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}
.name-tile i {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--c, #4ed6c3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.name-tile b {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--text-2);
  word-break: break-word;
}

.sel-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.sel-filter {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}
.sel-filter.on {
  border-color: rgba(255, 122, 107, 0.4);
  background: rgba(255, 122, 107, 0.12);
  color: var(--coral);
}
.sel-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 13px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--indigo);
}
.sel-scope {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.01em;
  color: var(--faint);
}

.card-privacy {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  column-gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.card-privacy .card-top { grid-column: 1 / -1; margin-bottom: 20px; }
.card-privacy h3 { grid-column: 1; }
.card-privacy .card-copy { grid-column: 1; }
.card-privacy .checklist { grid-column: 2; grid-row: 2 / 4; margin-top: 4px; align-self: center; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero h1 { font-size: clamp(36px, 5.2vw, 58px); }
  .device-main { width: min(278px, 54vw); }
  .device-back { width: min(170px, 32vw); }
  .hero-visual { min-height: 620px; }
}

@media (max-width: 1024px) {
  .site-nav { display: none; }
  .header-inner { gap: 16px; }
  .brand { margin-right: auto; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode span { display: none; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero-copy { max-width: 640px; }
  .hero-visual { min-height: 0; padding: 34px 0 26px; margin-top: 6px; }
  .hero-visual::before { width: min(440px, 82%); filter: blur(30px); }
  .device-main { width: min(286px, 62vw); }
  .device-back { width: min(168px, 36vw); left: 6%; bottom: 18px; }
  .chip-sort { left: 2%; top: 22px; }
  .chip-count { right: 4%; bottom: 44px; }
  .hero-rainbow { bottom: 2px; height: 6px; }
  .card-sort, .card-color, .card-arrangement, .card-grid, .card-select, .card-theme, .card-privacy { grid-column: span 12; }
  .card-privacy { display: block; }
  .card-privacy .checklist { margin-top: 22px; }
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode span { display: block; }
  .tech-layout { grid-template-columns: minmax(0, 1fr); }
  .download-panel { grid-template-columns: minmax(0, 1fr); }
  .release-card { max-width: 560px; }
  .landscape { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .footer-nav { justify-items: start; }
}

@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-cta { grid-column: span 2; min-height: 0; flex-direction: row; align-items: center; }
  .gallery-cta .cta-copy { flex: 1; }
  .gallery-cta .btn { width: auto; }
  .hero .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .step { padding: 20px 18px 22px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .device-back { display: none; }
}

@media (max-width: 600px) {
  .header-inner { height: 60px; gap: 12px; }
  .brand-en { display: none; }
  .header-actions .version-pill { display: none; }
  .header-actions .btn { padding: 10px 14px; font-size: 12.5px; }
  .hero { padding-top: 34px; }
  .hero h1 { font-size: clamp(34px, 10.4vw, 46px); }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 7px 14px; font-size: 10px; }
  .float-chip { padding: 9px 12px; }
  .chip-sort { display: none; }
  .chip-count { bottom: 26px; }
  .modes { grid-template-columns: minmax(0, 1fr); }
  .mode span { display: block; }
  .color-pair { grid-template-columns: minmax(0, 1fr); }
  .dir-demo { grid-template-columns: minmax(0, 1fr); }
  .hero-swipes .note { width: 100%; padding: 0; }
  .sel-scope { display: none; }
  .grid-demo { flex-direction: column; align-items: stretch; }
  .mini-grid { max-width: 100%; }
  .theme-demo { gap: 9px; }
  .mini-phone { width: 70px; }
  .mini-landscape { height: 96px; }
  .gallery {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    margin-right: calc(-1 * var(--gutter));
    padding-right: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 78%; scroll-snap-align: start; }
  .gallery-cta {
    flex: 0 0 78%;
    scroll-snap-align: start;
    min-height: 0;
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
  }
  .gallery-cta .btn { width: 100%; }
  .gallery-hint { display: flex; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .spec.span-2 { grid-column: span 1; }
  .release-card { padding: 8px 16px; }
  .release-row { flex-direction: column; gap: 5px; }
  .release-row dd { text-align: left; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .lb-img { max-width: 94vw; max-height: 60vh; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-caption { flex-direction: column; gap: 6px; }
}

@media (max-width: 400px) {
  .brand-text strong { font-size: 17px; }
  .header-actions .btn { padding: 10px 12px; }
  .hero-meta li:nth-child(4) { display: none; }
}

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