/* ------------------------------------------------------------------ tokens */
:root {
  --bg: #f4f6fa;
  --text: #0d1020;
  --text-2: rgba(13, 16, 32, 0.66);
  --text-3: rgba(13, 16, 32, 0.45);
  --line: rgba(13, 16, 32, 0.08);

  --glass-fill: linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.26));
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-edge: rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 1px 1px rgba(20, 24, 60, 0.04), 0 18px 50px -18px rgba(30, 40, 110, 0.28);
  --glass-spec: rgba(255, 255, 255, 0.7);

  --band-1a: #eef1f6;
  --band-1b: #e9edf4;
  --band-2a: #e4eaf3;
  --band-2b: #dde5f0;
  --band-3a: #d3deee;
  --band-3b: #c8d6eb;
  --band-4a: #f2f4f8;
  --band-4b: #e8ecf3;
  --band-edge: rgba(255, 255, 255, 0.9);

  --accent: #0a6cf0;
  --accent-2: #5e5ce6;
  --accent-3: #ff9500;
  --btn-primary-bg: #0d1020;
  --btn-primary-fg: #fff;

  --row-bg: rgba(255, 255, 255, 0.55);
  --row-sel: rgba(61, 107, 255, 0.14);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.32, 0.5, 1);
  --ease-fold: cubic-bezier(0.65, 0, 0.2, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d12;
    --text: #f2f3fa;
    --text-2: rgba(242, 243, 250, 0.68);
    --text-3: rgba(242, 243, 250, 0.45);
    --line: rgba(255, 255, 255, 0.08);
    --glass-fill: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
    --glass-border: rgba(255, 255, 255, 0.13);
    --glass-edge: rgba(255, 255, 255, 0.28);
    --glass-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 24px 60px -20px rgba(0, 0, 0, 0.7);
    --glass-spec: rgba(255, 255, 255, 0.16);
    --band-1a: #10131b;
    --band-1b: #0e1118;
    --band-2a: #141a27;
    --band-2b: #111622;
    --band-3a: #1b2840;
    --band-3b: #152036;
    --band-4a: #0f121a;
    --band-4b: #0c0f16;
    --band-edge: rgba(255, 255, 255, 0.07);
    --accent: #3b8cff;
    --accent-2: #7d7aff;
    --accent-3: #ffa53a;
    --btn-primary-bg: #f2f3fa;
    --btn-primary-fg: #0d1020;
    --row-bg: rgba(255, 255, 255, 0.06);
    --row-sel: rgba(123, 155, 255, 0.2);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0b0d12;
  --text: #f2f3fa;
  --text-2: rgba(242, 243, 250, 0.68);
  --text-3: rgba(242, 243, 250, 0.45);
  --line: rgba(255, 255, 255, 0.08);
  --glass-fill: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-edge: rgba(255, 255, 255, 0.28);
  --glass-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --glass-spec: rgba(255, 255, 255, 0.16);
  --band-1a: #10131b;
  --band-1b: #0e1118;
  --band-2a: #141a27;
  --band-2b: #111622;
  --band-3a: #1b2840;
  --band-3b: #152036;
  --band-4a: #0f121a;
  --band-4b: #0c0f16;
  --band-edge: rgba(255, 255, 255, 0.07);
  --accent: #3b8cff;
  --accent-2: #7d7aff;
  --accent-3: #ffa53a;
  --btn-primary-bg: #f2f3fa;
  --btn-primary-fg: #0d1020;
  --row-bg: rgba(255, 255, 255, 0.06);
  --row-sel: rgba(123, 155, 255, 0.2);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.6s var(--ease-out), color 0.6s var(--ease-out);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.022em; line-height: 1.12; font-weight: 700; }
p { margin: 0; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg.filled { fill: currentColor; stroke: none; }

html[data-lang="zh"] .show-en,
html[data-lang="en"] .show-zh { display: none; }

/* ------------------------------------------------------------------ backdrop */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, var(--band-1a) 100%);
}
.bands { position: absolute; inset: -6vh 0 0; width: 100%; height: 112vh; stroke: none; }
.band {
  will-change: transform;
  transition: transform 0.2s linear;
}
/* Each layer drifts at its own pace, so the folds slide over one another while scrolling. */
.band-1 { transform: translateY(calc(var(--scroll, 0) * -30px)); }
.band-2 { transform: translateY(calc(var(--scroll, 0) * -70px)); }
.band-4 { transform: translateY(calc(var(--scroll, 0) * -120px)); }
.band-3 { transform: translateY(calc(var(--scroll, 0) * -170px)); }
.band path { transition: fill 0.6s; }
.edge { fill: none; stroke: var(--band-edge); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.band-2 > path:first-child, .band-3 > path:first-child, .band-4 > path:first-child { animation: breathe 18s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.band-3 > path:first-child { animation-duration: 23s; }
.band-4 > path:first-child { animation-duration: 27s; animation-direction: alternate-reverse; }
@keyframes breathe { from { transform: scaleY(1); } to { transform: scaleY(1.035); } }

.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ glass */
.glass {
  position: relative;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 -1px 0 rgba(255, 255, 255, 0.06), var(--glass-shadow);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  isolation: isolate;
}
/* Specular highlight that follows the pointer. */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 30%) var(--my, -20%), var(--glass-spec), transparent 45%);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.5s var(--ease-out);
}
.glass:hover::before { opacity: 1; }

/* ------------------------------------------------------------------ nav */
.nav-wrap {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(880px, 100%);
  padding: 7px 8px 7px 14px;
  border-radius: 999px;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.nav.is-compact { transform: scale(0.97); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -0.01em; }
.brand-icon { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.3s, background-color 0.3s;
}
.nav-links a:hover { color: var(--text); background: var(--row-bg); }
.nav-actions { display: flex; gap: 6px; }
.pill-btn {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--row-bg);
  color: var(--text);
  font: 600 13px/1 var(--font);
  cursor: pointer;
  transition: transform 0.4s var(--ease-spring), background-color 0.3s;
}
.pill-btn:hover { transform: scale(1.08); }
.pill-btn:active { transform: scale(0.94); }
.icon-btn { padding: 0; }
#theme-toggle svg { display: none; }
#theme-toggle .fill { fill: currentColor; stroke: none; }
:root[data-mode="auto"] #theme-toggle .i-auto,
:root[data-mode="light"] #theme-toggle .i-sun,
:root[data-mode="dark"] #theme-toggle .i-moon { display: block; }

/* ------------------------------------------------------------------ buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-out), background-color 0.3s;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.45);
}
.btn-glass {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-edge), var(--glass-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}

/* ------------------------------------------------------------------ hero */
.hero {
  padding: 118px 16px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-copy { max-width: 1000px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-icon-wrap { animation: float 7s ease-in-out infinite; }
.hero-icon { width: 92px; height: 92px; filter: drop-shadow(0 16px 26px rgba(20, 40, 90, 0.25)); }
@keyframes float { 50% { transform: translateY(-8px) rotate(-1.5deg); } }
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
h1 { font-size: clamp(42px, 7.4vw, 88px); font-weight: 800; letter-spacing: -0.035em; }
.grad { color: var(--accent); }
.lede { font-size: clamp(17px, 2vw, 21px); color: var(--text-2); max-width: 700px; }
.meta { font-size: 13px; color: var(--text-3); letter-spacing: 0.02em; }

.stage {
  position: relative;
  width: min(1240px, 100%);
  margin-top: 52px;
  perspective: 1800px;
}
.stage-glow {
  position: absolute;
  inset: 10% 6% -4%;
  border-radius: 40px;
  background: radial-gradient(60% 60% at 50% 45%, var(--accent), transparent 70%);
  filter: blur(70px);
  opacity: 0.16;
}
.shot-frame {
  position: relative;
  margin: 0;
  padding: clamp(6px, 1.2vw, 14px);
  border-radius: clamp(16px, 2.4vw, 30px);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 40px 120px -40px rgba(20, 30, 90, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  transform-origin: 50% 0%;
  transform: translateY(var(--shot-y, 0px)) rotateX(var(--shot-tilt, 0deg)) scale(var(--shot-scale, 1));
  will-change: transform;
}
.shot {
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 900;
  border-radius: clamp(10px, 1.4vw, 18px);
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
}
.shot.is-loaded { opacity: 1; }
.shot.is-swapping { opacity: 0; transition-duration: 0.25s; }

/* ------------------------------------------------------------------ sections */
.section { padding: 120px 16px; max-width: 1180px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 56px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
h2 { font-size: clamp(32px, 4.8vw, 56px); letter-spacing: -0.03em; }
h3 { font-size: 21px; letter-spacing: -0.015em; }

/* ------------------------------------------------------------------ fold story */
.fold { position: relative; height: 420vh; }
.fold-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 16px 40px;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 460px);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.fold-copy .kicker { margin-bottom: 26px; }
.fold-steps { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; display: grid; gap: 26px; }
.fold-steps::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}
.fold-steps::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 2px;
  height: calc((100% - 12px) * var(--fold-progress, 0));
  border-radius: 2px;
  background: var(--accent);
}
.fold-steps li {
  opacity: 0.32;
  transform: translateX(-6px);
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-spring);
}
.fold-steps li.is-active { opacity: 1; transform: none; }
.fold-steps h3 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 8px; }
.fold-steps p { color: var(--text-2); font-size: 16px; max-width: 470px; }

.fold-stage {
  height: min(560px, 72vh);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.fs-toolbar { display: flex; align-items: center; gap: 7px; padding: 16px 16px 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.fs-search {
  margin-left: 12px;
  flex: 1;
  font-size: 12.5px;
  color: var(--text-3);
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--row-bg);
  border: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fs-canvas { position: relative; flex: 1; margin: 6px 12px 12px; }
.fs-row {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px 0 calc(12px + var(--indent, 0px));
  border-radius: 10px;
  font-size: 14px;
  white-space: nowrap;
  transform-origin: 50% 0%;
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0) rotate(var(--r, 0deg)) rotateX(var(--fx, 0deg)) scale(var(--s, 1));
  opacity: var(--o, 1);
  transition: transform 1s var(--ease-spring), opacity 0.6s var(--ease-out), padding 0.8s var(--ease-out),
              background-color 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), width 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.fs-row b { font-weight: 560; overflow: hidden; text-overflow: ellipsis; }
.fs-row em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--text-3); }
.fs-head b { font-weight: 650; }
.fs-row .tag {
  margin-left: auto;
  font: 500 11px/1 var(--mono);
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--row-bg);
  color: var(--text-3);
  opacity: 0;
  transition: opacity 0.5s;
}
.fs-row .tag.wt { color: var(--accent-2); }
.fs-wt .tag { opacity: 1; }
.fs-row.is-selected { background: var(--row-sel); }

/* Scattered state: repositories float as loose cards. */
.fold-stage[data-step="0"] .fs-repo {
  width: 62%;
  height: 52px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 14px 30px -14px rgba(20, 30, 90, 0.45);
  padding-left: 16px;
}
.fold-stage[data-step="0"] .fs-repo .tag { opacity: 1; }

.ic { width: 18px; height: 18px; flex: none; display: inline-block; background-color: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ic-repo { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 21v-8M12 13 6 4M12 13l6-9'/%3E%3C/svg%3E"); }
.ic-group { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M3 7.5A2.5 2.5 0 0 1 5.5 5H9l2 2h7.5A2.5 2.5 0 0 1 21 9.5v8a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 17.5Z'/%3E%3C/svg%3E"); color: var(--accent); }
.ic-dir { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M3 7.5A2.5 2.5 0 0 1 5.5 5H9l2 2h7.5A2.5 2.5 0 0 1 21 9.5v8a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 17.5Z'/%3E%3C/svg%3E"); color: var(--accent); opacity: 0.8; }
.ic-wt { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 3v9a4 4 0 0 0 4 4h8M15 13l3 3-3 3'/%3E%3C/svg%3E"); color: var(--accent-2); }
.c1 { color: #2fb3a0; } .c2 { color: #e04d8b; } .c3 { color: #3fbf7f; } .c4 { color: #4f8fe0; } .c5 { color: #e0973a; }
.chev {
  width: 8px;
  height: 8px;
  border-right: 1.8px solid var(--text-3);
  border-bottom: 1.8px solid var(--text-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.6s var(--ease-spring);
  flex: none;
}
.chev.closed { transform: rotate(-45deg); }
.fs-more b { color: var(--text-2); font-weight: 550; }

/* ------------------------------------------------------------------ why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border-radius: 26px; padding: 30px 28px 32px; display: flex; flex-direction: column; gap: 12px; }
.card-num { font: 700 13px/1 var(--mono); color: var(--accent); letter-spacing: 0.06em; }
.card p { color: var(--text-2); font-size: 16px; }

/* ------------------------------------------------------------------ bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { border-radius: 26px; padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.tile-wide { grid-column: span 2; }
.tile-full { grid-column: 1 / -1; min-height: 0; }
.tile p { color: var(--text-2); font-size: 15.5px; }
.tile-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  color: #fff;
  background: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 18px -10px rgba(0, 0, 0, 0.5);
}
.tile:nth-child(3n + 2) .tile-icon { background: var(--accent-2); }
.tile:nth-child(3n) .tile-icon { background: var(--accent-3); }
.tile-icon svg { width: 24px; height: 24px; }
.tile-icon .fillish { fill: currentColor; }

/* ------------------------------------------------------------------ compare */
.compare { margin-top: 28px; border-radius: 26px; padding: 10px 28px; }
.cmp-row {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 1.4fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  align-items: center;
}
.cmp-row:last-child { border-bottom: 0; }
.cmp-row > span:first-child { font-weight: 650; }
.cmp-row > span:nth-child(2) { color: var(--text); }
.cmp-row > span:nth-child(3) { color: var(--text-3); }
.cmp-head { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
.cmp-us { display: inline-flex; align-items: center; gap: 8px; color: var(--text) !important; text-transform: none; font-size: 15px; letter-spacing: 0; }
.cmp-us img { width: 22px; height: 22px; }
.cmp-row:not(.cmp-head) > span:nth-child(2)::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }

/* ------------------------------------------------------------------ downloads */
.download-option { display: grid; justify-items: start; gap: 10px; }
.download-certificate { font-size: 13px; color: var(--text-2); }
.download-certificate, .download-note a { text-decoration: underline; text-underline-offset: 3px; }
.windows-card .download-note { margin: 20px 0; font-size: 14px; }

/* ------------------------------------------------------------------ windows */
.windows-card {
  border-radius: 30px;
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.windows-card h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.windows-card p { color: var(--text-2); margin-bottom: 24px; max-width: 640px; }
.win-mark { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 84px; transform: perspective(300px) rotateY(-14deg); }
.win-mark span { aspect-ratio: 1; border-radius: 6px; background: var(--accent); opacity: 0.85; }
.win-mark span:nth-child(2), .win-mark span:nth-child(3) { opacity: 0.6; }

/* ------------------------------------------------------------------ final + footer */
.final { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; padding-bottom: 80px; }
.final-icon { width: 96px; height: 96px; filter: drop-shadow(0 16px 26px rgba(40, 60, 160, 0.35)); }
.footer { text-align: center; padding: 40px 16px 56px; color: var(--text-3); font-size: 14px; display: grid; gap: 6px; }
.footer-note { font-size: 12.5px; }

/* ------------------------------------------------------------------ manual */
.manual { max-width: 1120px; margin: 0 auto; padding: 128px 16px 40px; }
.manual-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 52px; }
.manual-title { font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; letter-spacing: -0.03em; }
.manual-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.toc {
  position: sticky;
  top: 92px;
  border-radius: 22px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc a {
  padding: 8px 12px;
  border-radius: 11px;
  font-size: 14px;
  color: var(--text-2);
  transition: background-color 0.3s, color 0.3s;
}
.toc a:hover { background: var(--row-bg); color: var(--text); }
.toc a.is-current { background: var(--row-sel); color: var(--accent); font-weight: 600; }
.manual-body { display: grid; gap: 18px; min-width: 0; }
.m-section { border-radius: 24px; padding: 28px 30px 30px; scroll-margin-top: 92px; }
.m-num { font: 700 13px/1 var(--mono); color: var(--accent); letter-spacing: 0.06em; }
.m-section h2 { font-size: 26px; margin: 10px 0 14px; }
.m-section p, .m-section li { color: var(--text-2); font-size: 16px; }
.m-section b { color: var(--text); font-weight: 600; }
.m-section a, .manual-foot a { color: var(--accent); }
.m-section ol, .m-section ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.m-section p + ul, .m-section p + ol { margin-top: 10px; }
.m-section .tip {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--row-bg);
  border: 1px solid var(--line);
  font-size: 14.5px;
}
code {
  font: 13.5px var(--mono);
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--row-bg);
  border: 1px solid var(--line);
  white-space: nowrap;
}
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  margin: 0 2px;
  border-radius: 7px;
  font: 600 13px/1 var(--font);
  color: var(--text);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 -1px 0 var(--line), 0 1px 2px rgba(0, 0, 0, 0.08);
}
.m-section div.tip p { font-size: 14.5px; }
.cmd { margin: 10px 0 0; overflow-x: auto; }
.cmd code { display: block; width: max-content; min-width: 100%; padding: 10px 12px; font-size: 13px; word-break: normal; user-select: all; }
.keys { margin: 0; display: grid; gap: 4px; }
.keys > div { display: grid; grid-template-columns: 120px 1fr; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.keys > div:last-child { border-bottom: 0; }
.keys dd { margin: 0; color: var(--text-2); }
.manual-foot { text-align: center; color: var(--text-3); font-size: 14px; margin-top: 18px; }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--row-bg); }
@media (max-width: 860px) {
  .manual-layout { grid-template-columns: 1fr; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .toc a { padding: 6px 10px; font-size: 13px; }
}
@media (max-width: 640px) {
  .manual { padding-top: 104px; }
  .m-section { padding: 22px 20px 24px; }
}

/* ------------------------------------------------------------------ reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px) scale(0.98);
  filter: blur(10px);
  transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out), filter 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms);
}
/* Cards unfold downward like paper, echoing the product name. */
[data-reveal="fold"] {
  transform-origin: 50% 0%;
  transform: perspective(1100px) rotateX(-58deg) translateY(24px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-out), transform 1.4s var(--ease-spring), filter 0.9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 120ms);
}
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.hero [data-reveal]:nth-child(1) { --d: 0; }
.hero [data-reveal]:nth-child(2) { --d: 1; }
.hero [data-reveal]:nth-child(3) { --d: 2; }
.hero [data-reveal]:nth-child(4) { --d: 3; }
.hero [data-reveal]:nth-child(5) { --d: 4; }
.hero [data-reveal]:nth-child(6) { --d: 5; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .why-grid, .bento { grid-template-columns: 1fr 1fr; }
  .why-grid .card:last-child { grid-column: span 2; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav { width: auto; margin-left: auto; margin-right: auto; gap: 14px; }
  .fold { height: 380vh; }
  .fold-sticky {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    padding-top: 84px;
    gap: 20px;
    align-items: start;
  }
  .fold-stage { order: -1; height: 46vh; min-height: 330px; }
  .fold-copy .kicker { margin-bottom: 12px; }
  .fold-steps { padding-left: 18px; display: block; min-height: 150px; }
  .fold-steps li { position: absolute; left: 18px; right: 0; top: 0; opacity: 0; transform: translateY(12px); }
  .fold-steps li.is-active { opacity: 1; transform: none; }
  .fold-steps h3 { font-size: 21px; }
  .fold-steps p { font-size: 15px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 116px; }
  .hero-icon { width: 88px; height: 88px; }
  .stage { margin-top: 40px; }
  .section { padding: 84px 16px; }
  .why-grid, .bento { grid-template-columns: 1fr; }
  .why-grid .card:last-child, .tile-wide, .tile-full { grid-column: auto; }
  .compare { padding: 6px 18px; }
  .cmp-row { grid-template-columns: 1fr 1fr; font-size: 14px; }
  .cmp-row > span:first-child { grid-column: span 2; }
  .cmp-head > span:first-child { display: none; }
  .windows-card { grid-template-columns: 1fr; }
  .win-mark { width: 60px; }
  .btn { height: 46px; padding: 0 20px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: auto; }
}
