/* Next5h — night-shift instrument panel.
   Palette from the app icon: graphite night, signal cyan, bolt amber. */

:root {
  --bg: #06080c;
  --bg-2: #0a0e14;
  --panel: #0d121a;
  --panel-2: #121925;
  --line: rgba(150, 180, 220, 0.12);
  --line-2: rgba(150, 180, 220, 0.22);
  --ink: #e9eef6;
  --ink-2: #a3aec0;
  --ink-3: #647085;
  --cyan: #2fd4f5;
  --cyan-ink: #04141a;
  --amber: #ffb224;
  --green: #3ddc97;
  --red: #ff6b61;
  --glow: rgba(47, 212, 245, 0.18);
  --font: "Geist", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #eef1f5;
  --bg-2: #e6eaf0;
  --panel: #f8fafc;
  --panel-2: #ffffff;
  --line: rgba(20, 35, 60, 0.1);
  --line-2: rgba(20, 35, 60, 0.2);
  --ink: #0b1220;
  --ink-2: #455166;
  --ink-3: #7b8699;
  --cyan: #0797b8;
  --cyan-ink: #ffffff;
  --amber: #c77800;
  --green: #0e9f63;
  --red: #d8453b;
  --glow: rgba(7, 151, 184, 0.14);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #eef1f5;
    --bg-2: #e6eaf0;
    --panel: #f8fafc;
    --panel-2: #ffffff;
    --line: rgba(20, 35, 60, 0.1);
    --line-2: rgba(20, 35, 60, 0.2);
    --ink: #0b1220;
    --ink-2: #455166;
    --ink-3: #7b8699;
    --cyan: #0797b8;
    --cyan-ink: #ffffff;
    --amber: #c77800;
    --green: #0e9f63;
    --red: #d8453b;
    --glow: rgba(7, 151, 184, 0.14);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
}
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); }
.dim { color: var(--ink-3); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 28px; }

/* Faint grid, like graph paper on an instrument face. */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.55;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15.5px;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-cyan { background: var(--cyan); color: var(--cyan-ink); box-shadow: 0 0 0 0 var(--glow); }
.btn-cyan:hover { box-shadow: 0 0 0 6px var(--glow), 0 10px 30px -10px var(--cyan); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: var(--panel-2); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 6px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); transition: color 0.2s ease, background-color 0.2s ease; }
.nav-links a:hover { color: var(--ink); background: var(--panel-2); }
.nav-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.tool {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.tool:hover { color: var(--ink); background: var(--panel-2); }
.i-moon { display: none; }
:root[data-theme="light"] .i-moon { display: block; }
:root[data-theme="light"] .i-sun { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .i-moon { display: block; }
  :root:not([data-theme="dark"]) .i-sun { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 40px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  margin-bottom: 28px;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--green);
  animation: ping 2s ease-out infinite;
}
@keyframes ping { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.hero-title {
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
html[lang="zh-CN"] .hero-title { letter-spacing: -0.02em; line-height: 1.12; }
.hero-title-highlight {
  display: block;
  margin-top: 18px;
  font-size: 0.36em;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--cyan);
  font-family: var(--mono);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 20px; font-size: 12.5px; color: var(--ink-3); }
.meta i { width: 4px; height: 4px; border-radius: 1px; background: var(--ink-3); opacity: 0.6; }

/* Wake sequence instrument */
.instrument {
  position: relative;
  padding: 20px 22px 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.instrument::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.instrument.is-awake::before { opacity: 1; }
.ins-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-3); }
.ins-state { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.ins-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.instrument.is-awake .ins-state i { background: var(--cyan); box-shadow: 0 0 0 4px var(--glow); }
.instrument.is-live .ins-state i { background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 20%, transparent); }

.dial { width: min(100%, 290px); margin: 14px auto 0; }
.dial svg { aspect-ratio: 1; }
.dial svg { width: 100%; height: auto; overflow: visible; }
.dial-ring { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.dial-ring.faint { stroke: var(--line); }
.tick { stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
.tick.major { stroke: var(--ink-2); stroke-width: 3; }
.window-arc { fill: none; stroke: url(#sweep); stroke-width: 18; stroke-linecap: butt; transition: stroke-dasharray 0.6s ease; }
.hand { stroke: var(--amber); stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--amber)); }
.hand-tip { fill: var(--cyan); }
.core { fill: var(--bg-2); stroke: var(--ink-3); stroke-width: 3; transition: stroke 0.5s ease, filter 0.5s ease; }
.instrument.is-awake .core { stroke: var(--cyan); filter: drop-shadow(0 0 12px var(--cyan)); }
.bolt { fill: var(--ink-3); transition: fill 0.4s ease; }
.instrument.is-awake .bolt { fill: var(--amber); }
.clock {
  margin-top: 6px;
  text-align: center;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.seq { list-style: none; margin: 22px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line-2); display: grid; gap: 6px; font-size: 12.5px; }
.seq li { display: grid; grid-template-columns: 68px 1fr; gap: 10px; color: var(--ink-3); opacity: 0.45; transition: opacity 0.35s ease, color 0.35s ease; }
.seq li .t { color: var(--ink-3); }
.seq li.is-done { opacity: 1; color: var(--ink); }
.seq li.is-done .t { color: var(--cyan); }
.seq li:last-child.is-done { color: var(--green); }

/* ---------- Sections ---------- */
.section { padding-top: 140px; }
.sec-head { max-width: 780px; margin-bottom: 56px; }
.tag { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.h2 {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
html[lang="zh-CN"] .h2 { letter-spacing: -0.015em; line-height: 1.2; }
.sec-desc { margin-top: 18px; font-size: 18px; color: var(--ink-2); max-width: 680px; text-wrap: pretty; }

/* Pillars */
.pillar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.pillar-flip .pillar-copy { order: 2; }
.badge { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; margin-bottom: 18px; }
.badge span:first-child {
  display: grid;
  place-items: center;
  width: 30px;
  height: 22px;
  border-radius: 6px;
  font-weight: 600;
}
.badge-cyan { color: var(--cyan); }
.badge-cyan span:first-child { background: var(--cyan); color: var(--cyan-ink); }
.badge-amber { color: var(--amber); }
.badge-amber span:first-child { background: var(--amber); color: #1b1100; }
.pillar-title { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.pillar-sum { margin-top: 16px; color: var(--ink-2); font-size: 16.5px; }
.items { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.items li { padding-left: 18px; border-left: 2px solid var(--line-2); transition: border-color 0.3s ease; }
.items li:hover { border-left-color: var(--cyan); }
.pillar-flip .items li:hover { border-left-color: var(--amber); }
.items strong { display: block; font-weight: 650; font-size: 15.5px; margin-bottom: 4px; }
.items p { color: var(--ink-2); font-size: 14.5px; }

.widget {
  position: sticky;
  top: 96px;
  padding: 20px;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}
.w-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 18px; }
.replay {
  flex: none;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: color 0.2s ease, box-shadow 0.2s ease;
}
.replay:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); }

.quota { padding: 16px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.quota-row { display: flex; justify-content: space-between; font-size: 12.5px; }
.quota-num { font-size: 22px; font-weight: 600; color: var(--red); transition: color 0.3s ease; }
.queue.is-open .quota-num { color: var(--green); }
.quota-bar { height: 8px; margin: 10px 0; border-radius: 999px; background: var(--line); overflow: hidden; }
.quota-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--green)); transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.q-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.q-list li {
  position: relative;
  padding: 12px 96px 12px 14px;
  border-radius: 12px;
  background: var(--panel-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease, box-shadow 0.3s ease;
}
.q-prompt { font-size: 14px; font-weight: 550; line-height: 1.45; }
.q-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 11.5px; color: var(--ink-3); }
.q-state {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--ink-3);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.q-list li.is-sending { box-shadow: inset 0 0 0 1px var(--cyan); }
.q-list li.is-sending .q-state { color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.q-list li.is-sent { opacity: 0.55; transform: translateX(8px); }
.q-list li.is-sent .q-state { color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }

.day-read { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.day-read > div { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.day-count { text-align: right; align-items: flex-end; }
.day-time { font-size: 40px; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.day-num { font-size: 40px; font-weight: 600; line-height: 1.1; color: var(--amber); transition: transform 0.25s ease; }
.day-num.bump { transform: scale(1.15); }
.ruler { position: relative; height: 92px; border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
/* Hour h sits at (h - 6) / 18 of the width: the ruler spans 06:00–24:00. */
.work-band {
  position: absolute;
  top: 0;
  bottom: 22px;
  left: calc((7 - 6) / 18 * 100%);
  width: calc(15 / 18 * 100%);
  background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line) 6px 7px);
  border-inline: 1px dashed var(--line-2);
}
.windows { position: absolute; left: 0; right: 0; top: 14px; height: 44px; }
.win {
  position: absolute;
  top: 0;
  height: 100%;
  padding: 4px 8px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.3;
  color: var(--cyan-ink);
  background: var(--cyan);
  box-shadow: inset -2px 0 0 var(--bg-2);
  overflow: hidden;
  white-space: nowrap;
  transition: left 0.3s ease, width 0.3s ease;
}
.win b { display: block; font-weight: 600; }
.win.is-partial { background: color-mix(in srgb, var(--cyan) 28%, transparent); color: var(--ink-2); }
.ruler-ticks { position: absolute; left: 0; right: 0; bottom: 4px; height: 16px; font-size: 10.5px; color: var(--ink-3); }
.ruler-ticks span { position: absolute; left: calc((var(--h) - 6) / 18 * 100%); transform: translateX(-50%); }
.ruler-ticks span:first-child { transform: none; padding-left: 4px; }
.ruler-ticks span:last-child { transform: translateX(-100%); padding-right: 4px; }
.day-slider {
  -webkit-appearance: none;
  appearance: none;
  width: calc(8 / 18 * 100%);
  margin: 14px 0 0 0;
  height: 28px;
  background: transparent;
  cursor: pointer;
}
.day-slider::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: var(--line-2); }
.day-slider::-moz-range-track { height: 4px; border-radius: 999px; background: var(--line-2); }
.day-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--amber) 25%, transparent);
}
.day-slider::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--amber); }
.slots { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line-2); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 12px; }
.slots li { display: flex; flex-direction: column; gap: 2px; color: var(--ink-2); }
.slots li span:first-child { font-size: 16px; color: var(--ink); }

/* Pipeline circuit */
.circuit {
  --p: 0;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.circuit::before,
.circuit::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 21px;
  height: 2px;
  background: var(--line-2);
}
.circuit::after {
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transform: scaleX(var(--p));
  transform-origin: left;
  box-shadow: 0 0 12px var(--cyan);
}
.node { position: relative; z-index: 1; }
.node-no {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--ink-3);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.node.is-on .node-no { color: var(--cyan-ink); background: var(--cyan); box-shadow: 0 0 0 6px var(--glow); }
.node h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 8px; }
.node p { font-size: 14.5px; color: var(--ink-2); }
.tech-tag { white-space: nowrap; }

/* Matrix */
.matrix { border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; background: var(--panel); }
.matrix table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 860px; }
.matrix th {
  text-align: left;
  padding: 14px 18px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line-2);
}
.matrix td { padding: 16px 18px; vertical-align: top; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.matrix tr:last-child td { border-bottom: 0; }
.matrix tbody tr { transition: background-color 0.2s ease; }
.matrix tbody tr:hover { background: var(--panel-2); }
.matrix td strong { color: var(--ink); font-weight: 600; }
.matrix td small { color: var(--ink-3) !important; }
.st { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; color: var(--ink); }
.st::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.st-green { --c: var(--green); }
.st-amber { --c: var(--amber); }
.st-red { --c: var(--red); }

/* Install */
.install { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; }
.dl, .src { padding: 28px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.dl { display: flex; flex-direction: column; align-items: flex-start; }
.dl img { border-radius: 16px; margin-bottom: 18px; }
.dl-name { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.dl-name span { font-size: 17px; font-weight: 500; color: var(--ink-3); }
.dl-meta { margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.dl .btn { width: 100%; margin-top: 24px; }
.dl-note { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.src-title { font-weight: 650; font-size: 18px; margin-bottom: 6px; }
.src-desc { font-size: 14.5px; color: var(--ink-2); margin-bottom: 16px; }
.code { position: relative; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.75; color: var(--ink); }
.code .copy {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--ink-2);
  background: var(--panel-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.code .copy:hover { color: var(--ink); }
.code .copy.is-done { color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.src-hint { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.check { display: flex; gap: 14px; padding: 20px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.check-i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-size: 13px; color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.check strong { font-weight: 650; font-size: 15px; }
.check p { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.shot { margin: 56px auto 0; max-width: 860px; }
.shot img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 40px 90px -30px rgba(0, 0, 0, 0.7); }

/* FAQ */
.faq { max-width: 880px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--cyan); }
.faq summary i { position: relative; flex: none; width: 14px; height: 14px; }
.faq summary i::before,
.faq summary i::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: currentColor; transition: transform 0.25s ease; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq-a { padding: 0 40px 24px 0; color: var(--ink-2); font-size: 15.5px; overflow: hidden; }
.faq-a strong { color: var(--ink); }

/* Footer */
.footer { margin-top: 140px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; padding-top: 48px; padding-bottom: 40px; }
.footer-brand { max-width: 380px; }
.footer-brand p { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.footer-cols { display: flex; gap: 64px; }
.footer-cols div { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-cols h4 { font-size: 12px; font-family: var(--mono); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.footer-cols a { color: var(--ink-2); }
.footer-cols a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--cyan-ink);
  background: var(--cyan);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .instrument { max-width: 560px; }
  .pillar { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pillar-flip .pillar-copy { order: 0; }
  .widget { position: static; }
  .circuit { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .circuit::before, .circuit::after { display: none; }
  .install { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .nav-inner { gap: 12px; height: 58px; }
  .nav-tools .btn-sm { display: none; }
  .hero { padding-top: 40px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .instrument { padding: 16px; }
  .clock { font-size: 26px; }
  .section { padding-top: 96px; }
  .sec-desc { font-size: 16.5px; }
  .pillar { padding: 36px 0; }
  .q-list li { padding-right: 14px; padding-top: 34px; }
  .q-state { top: 10px; left: 14px; right: auto; }
  .day-time, .day-num { font-size: 32px; }
  .circuit { grid-template-columns: minmax(0, 1fr); }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .dl, .src { padding: 20px; }
  .faq-a { padding-right: 0; }
  .footer-top { flex-direction: column; }
  .footer-cols { gap: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Chinese headings: break at punctuation and spaces, not inside words. */
html[lang="zh-CN"] :is(.hero-title, .h2, .pillar-title) { word-break: keep-all; overflow-wrap: anywhere; }
