:root {
  --bg: #f5f5f7;
  --bg-2: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --card: rgba(255, 255, 255, 0.72);
  --card-border: rgba(0, 0, 0, 0.06);
  --accent: #0071e3;
  --orange: #ff8d28;
  --green: #34c759;
  --blue: #0088ff;
  --gray: #8e8e93;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: light;
}

html.dark {
  --bg: #000000;
  --bg-2: #101012;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --line: rgba(255, 255, 255, 0.1);
  --card: rgba(28, 28, 30, 0.72);
  --card-border: rgba(255, 255, 255, 0.08);
  --accent: #2997ff;
  --orange: #ffb44f;
  --green: #56e483;
  --blue: #36bdff;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: clip;
  transition: background 0.4s ease, color 0.4s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: var(--line);
}

/* ---------------- nav ---------------- */

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-2) 72%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 0 0 0.5px var(--card-border), 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translate(-50%, -90px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s ease;
}

.nav.is-shown {
  transform: translate(-50%, 0);
  opacity: 1;
}

.nav-brand {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.nav-brand img {
  width: 22px;
  height: 22px;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: var(--line);
}

.theme-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--line);
  color: var(--text);
  cursor: pointer;
}

.theme-btn svg {
  width: 16px;
  height: 16px;
}

/* ---------------- wallpaper (macOS-like) ---------------- */

.wallpaper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 0%, #b8d4f2 0%, transparent 55%),
    radial-gradient(90% 80% at 0% 100%, #c9c3ef 0%, transparent 60%),
    linear-gradient(160deg, #dfe9f6 0%, #c3d6ee 45%, #d9d3f1 100%);
  transition: filter 0.5s ease;
}

.wallpaper i {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.75;
  animation: drift 26s ease-in-out infinite alternate;
}

.wallpaper i:nth-child(1) {
  width: 55vw;
  height: 55vw;
  left: -10vw;
  top: 20%;
  background: radial-gradient(circle, #8fb8f0, transparent 70%);
}

.wallpaper i:nth-child(2) {
  width: 45vw;
  height: 45vw;
  right: -8vw;
  top: -15%;
  background: radial-gradient(circle, #a9e0e8, transparent 70%);
  animation-duration: 32s;
  animation-delay: -8s;
}

.wallpaper i:nth-child(3) {
  width: 40vw;
  height: 40vw;
  left: 35%;
  bottom: -25%;
  background: radial-gradient(circle, #d2b7f2, transparent 70%);
  animation-duration: 38s;
  animation-delay: -15s;
}

html.dark .wallpaper {
  background:
    radial-gradient(120% 90% at 85% 0%, #1d3766 0%, transparent 55%),
    radial-gradient(90% 80% at 0% 100%, #2c1f55 0%, transparent 60%),
    linear-gradient(160deg, #0b1630 0%, #111d3d 45%, #1b1438 100%);
}

html.dark .wallpaper i:nth-child(1) { background: radial-gradient(circle, #1f4f9e, transparent 70%); }
html.dark .wallpaper i:nth-child(2) { background: radial-gradient(circle, #135e74, transparent 70%); }
html.dark .wallpaper i:nth-child(3) { background: radial-gradient(circle, #4b2a86, transparent 70%); }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(6vw, -4vh) scale(1.12); }
}

/* ---------------- menu bar ---------------- */

.menubar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 16px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.85);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

html.dark .menubar {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.12);
}

.mb-left,
.mb-right {
  display: flex;
  align-items: center;
  gap: 2px;
}

.mb-left span {
  padding: 0 9px;
}

.mb-left .mb-app {
  font-weight: 700;
}

.mb-sys {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 5px;
}

.mb-sys svg {
  height: 15px;
  width: auto;
  display: block;
}

.mb-sys[data-theme-toggle] {
  cursor: pointer;
}

.mb-sys[data-theme-toggle]:hover {
  background: rgba(127, 127, 127, 0.2);
}

.mb-clock {
  padding: 0 8px 0 7px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  height: max(100svh, 780px);
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 120px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  z-index: 3;
  left: max(6vw, 32px);
  top: 50%;
  width: min(680px, 52vw);
  transform: translateY(-46%);
  color: #10131a;
}

html.dark .hero-copy {
  color: #fff;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.75;
}

.eyebrow img {
  width: 28px;
  height: 28px;
}

.hero h1 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif;
  font-size: clamp(34px, 3.7vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #ff8d28, #ff5f3a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 22px 0 30px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.65;
  opacity: 0.78;
  max-width: 520px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  background: #1d1d1f;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

html.dark .btn-primary {
  background: #fff;
  color: #1d1d1f;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1), inset 0 0.5px 0 rgba(255, 255, 255, 0.9), 0 4px 16px rgba(0, 0, 0, 0.06);
}

html.dark .btn-glass {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.14), inset 0 0.5px 0 rgba(255, 255, 255, 0.2);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  opacity: 0.6;
}

.hero-facts li::before {
  content: "✓ ";
}

.hero-panel {
  position: absolute;
  z-index: 4;
  top: 29px;
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.25s var(--ease);
}

.hero-panel.is-open {
  opacity: 1;
  transform: none;
}

.hero-notes,
.desk-notes {
  position: absolute;
  z-index: 6;
  right: 12px;
  top: 34px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.note-wrap {
  transform: translateX(calc(100% + 24px));
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.05), opacity 0.35s ease;
}

.note-wrap.is-in {
  transform: none;
}

.note-wrap.is-out {
  transform: translateX(calc(100% + 24px));
  opacity: 0;
}

/* scroll cue at the bottom of the hero */
.scroll-hint {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  border-radius: 999px;
  color: #10131a;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1), inset 0 0.5px 0 rgba(255, 255, 255, 0.9), 0 4px 16px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s var(--ease);
}

html.dark .scroll-hint {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.14), inset 0 0.5px 0 rgba(255, 255, 255, 0.2);
}

.scroll-hint.is-shown {
  opacity: 0.85;
  transform: none;
  pointer-events: auto;
}

.scroll-hint.is-shown:hover {
  opacity: 1;
}

.scroll-hint svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: hint-bob 1.8s ease-in-out infinite;
}

@keyframes hint-bob {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

/* macOS arrow pointer */
.cursor {
  position: absolute;
  z-index: 10;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  transform: translate(var(--x, -40px), var(--y, -40px));
  transition: transform 0.75s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.3s ease;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'><path d='M5 2.5v15.2l3.6-3.4 2.3 5.4 2.6-1.1-2.3-5.3H16L5 2.5Z' fill='black' stroke='white' stroke-width='1.3' stroke-linejoin='round'/></svg>") no-repeat;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.35));
}

.cursor::after {
  content: "";
  position: absolute;
  left: -9px;
  top: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  transform: scale(0);
  opacity: 0;
}

.cursor.is-click::after {
  animation: click-ring 0.45s ease-out;
}

@keyframes click-ring {
  0% { transform: scale(0.3); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.cursor.is-hidden {
  opacity: 0;
}

/* ---------------- sections ---------------- */

.section {
  position: relative;
  padding: 140px max(6vw, 24px);
  max-width: 1280px;
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 72px;
  text-align: center;
}

.kicker {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--orange);
}

.section h2 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section-head > p:last-child,
.split-copy > p:not(.kicker) {
  margin: 20px auto 0;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.7;
  color: var(--text-2);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------- agents ---------------- */

.agents-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr auto;
  align-items: center;
  gap: 0;
  min-height: 560px;
}

.sources {
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 2;
}

.source {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--card);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 0 0.5px var(--card-border), 0 4px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}

.source.is-ping {
  transform: translateX(6px);
  box-shadow: 0 0 0 0.5px var(--card-border), 0 0 0 4px color-mix(in srgb, var(--tint, var(--blue)) 18%, transparent), 0 6px 22px rgba(0, 0, 0, 0.08);
}

.source img {
  width: 42px;
  height: 42px;
  flex: none;
}

.source-text {
  min-width: 0;
  flex: 1;
}

.source-text b {
  display: block;
  font-size: 15px;
}

.source-text span {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-log {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--tint, var(--text-3));
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
}

.source.is-ping .source-log {
  opacity: 1;
  transform: none;
}

.wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.wires path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}

.wires path.flow {
  stroke: url(#wire-grad);
  stroke-width: 2;
  stroke-dasharray: 6 10;
  animation: dash 1.2s linear infinite;
  opacity: 0.6;
}

@keyframes dash {
  to { stroke-dashoffset: -16; }
}

.wires circle {
  filter: drop-shadow(0 0 6px currentColor);
}

.agents-panel {
  grid-column: 3;
  z-index: 2;
  position: relative;
}

.agents-panel::before {
  content: "";
  position: absolute;
  inset: -60px;
  z-index: -1;
  border-radius: 40px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--blue) 16%, transparent), transparent);
  filter: blur(10px);
}

/* ---------------- states ---------------- */

.states-track {
  position: relative;
  height: 340vh;
}

.states-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
}

.states-steps {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step {
  padding: 18px 22px;
  border-radius: 20px;
  opacity: 0.35;
  transition: opacity 0.45s ease, background 0.45s ease, transform 0.45s var(--ease);
  transform: scale(0.98);
  transform-origin: left center;
  cursor: pointer;
}

.step h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.step h3 .am-dot {
  width: 12px;
  height: 12px;
}

.step.t-waiting { --tint: var(--orange); }
.step.t-completed { --tint: var(--green); }
.step.t-running { --tint: var(--blue); }
.step.t-idle { --tint: var(--gray); }

.step p {
  margin: 0;
  max-height: 0;
  overflow: hidden;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
  transition: max-height 0.5s var(--ease), margin 0.5s var(--ease);
}

.step code {
  display: none;
}

.step.is-active {
  opacity: 1;
  transform: none;
  background: var(--card);
  box-shadow: 0 0 0 0.5px var(--card-border), 0 10px 30px rgba(0, 0, 0, 0.05);
}

.step.is-active p {
  max-height: 160px;
  margin-top: 10px;
}

.step.is-active h3 {
  color: var(--tint);
}

.states-panel {
  position: relative;
}

.states-panel::before {
  content: "";
  position: absolute;
  inset: -80px;
  z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow, var(--blue)) 20%, transparent), transparent);
  transition: background 0.6s ease;
}

/* ---------------- split sections ---------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.split.reverse .split-copy {
  order: 2;
}

.split-copy > p:not(.kicker) {
  margin: 20px 0 0;
}

.split-copy h2 {
  text-align: left;
}

.ticks {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}

.ticks li {
  display: flex;
  gap: 10px;
}

.ticks li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4.5 8.3 7 10.6l4.5-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 14px no-repeat;
}

.desk {
  position: relative;
  height: 520px;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 0 0.5px var(--card-border), 0 30px 60px rgba(0, 0, 0, 0.12);
}

.desk .wallpaper i {
  filter: blur(40px);
}

.menubar.mini {
  padding: 0 8px 0 12px;
}

.desk-panel {
  position: absolute;
  top: 29px;
  z-index: 4;
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top center;
  transition: opacity 0.18s ease, transform 0.25s var(--ease);
}

.desk-panel.is-open {
  opacity: 1;
  transform: none;
}

.desk-toast {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 24px;
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.75);
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.35s, transform 0.35s var(--ease);
}

html.dark .desk-toast {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(40, 40, 42, 0.7);
}

.desk-toast.is-in {
  opacity: 1;
  transform: translate(-50%, 0);
}

.solo {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.solo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 32px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--green) 14%, transparent), transparent);
}

.flow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.flow li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: var(--card);
  box-shadow: 0 0 0 0.5px var(--card-border);
  color: var(--text-2);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s, box-shadow 0.3s;
}

.flow li:not(:last-child)::after {
  content: "→";
  margin-left: 10px;
  margin-right: -4px;
  color: var(--text-3);
}

.flow .am-dot.t-running { background: var(--blue); }
.flow .am-dot.t-completed { background: var(--green); }
.flow .am-dot.t-idle { background: var(--gray); }

.flow li.is-active {
  color: var(--text);
  transform: scale(1.06);
  box-shadow: 0 0 0 1.5px var(--text-3);
}

/* ---------------- privacy cards ---------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.card {
  padding: 26px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 0 0 0.5px var(--card-border), 0 8px 28px rgba(0, 0, 0, 0.04);
}

.card:nth-child(2) { transition-delay: 0.08s; }
.card:nth-child(3) { transition-delay: 0.16s; }
.card:nth-child(4) { transition-delay: 0.24s; }

.card h3 {
  margin: 22px 0 8px;
  font-size: 20px;
}

.card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

.card-art {
  position: relative;
  height: 130px;
  border-radius: 16px;
  background: var(--line);
  overflow: hidden;
  padding: 16px;
}

.art-lock {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.art-lock .file {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 11px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.art-lock .file b {
  align-self: flex-start;
  padding: 1px 6px;
  border-radius: 5px;
  font-family: -apple-system, sans-serif;
  font-size: 11px;
  color: #fff;
  background: var(--green);
}

.art-lock .lock {
  width: 56px;
  height: 56px;
  color: var(--text);
}

.art-lock .shackle {
  transform: translateY(-7px);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s;
}

.card.is-visible .art-lock .shackle {
  transform: none;
}

.net-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-2);
}

.net-row b {
  font-size: 22px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.net-bars {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  height: 50px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
}

.net-bars i {
  flex: 1;
  height: 60%;
  border-radius: 3px;
  background: var(--text-3);
  opacity: 0.35;
  transition: height 0.9s var(--ease);
}

.net-bars i:nth-child(odd) { height: 85%; }
.net-bars i:nth-child(3n) { height: 45%; }

.card.is-visible .net-bars i {
  height: 2px;
  transition-delay: calc(var(--i) * 40ms + 300ms);
}

.art-keys {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.keyfile {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-2);
  position: relative;
  overflow: hidden;
}

.keyfile span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.keyfile i {
  font-style: normal;
  letter-spacing: -1px;
  filter: blur(0);
  transition: filter 0.6s ease;
}

.card.is-visible .keyfile span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.keyfile i {
  filter: blur(4px);
}

.keyfile::after {
  content: "跳过";
  position: absolute;
  right: 8px;
  top: 50%;
  translate: 0 -50%;
  padding: 0 6px;
  border-radius: 5px;
  font-family: -apple-system, sans-serif;
  font-size: 10px;
  line-height: 16px;
  color: #fff;
  background: var(--orange);
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card.is-visible .keyfile::after {
  transform: scale(1);
}

.card.is-visible .keyfile:nth-child(2)::after { transition-delay: 0.15s; }
.card.is-visible .keyfile:nth-child(3)::after { transition-delay: 0.3s; }

.art-cpu svg {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  width: calc(100% - 32px);
  height: 64px;
}

.cpu-grid {
  stroke: var(--line);
  stroke-width: 1;
  fill: none;
}

.cpu-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  vector-effect: non-scaling-stroke;
}

.card.is-visible .cpu-line {
  animation: draw 2.2s var(--ease) forwards 0.3s;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

/* ---------------- pipeline ---------------- */

.pipeline {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 56px minmax(0, 1fr) 56px minmax(0, 1.1fr) 56px minmax(0, 0.8fr);
  align-items: center;
}

.pipe-node {
  padding: 20px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 0 0 0.5px var(--card-border), 0 8px 28px rgba(0, 0, 0, 0.04);
  min-height: 190px;
}

.pipe-node h4 {
  margin: 0 0 12px;
  font-size: 15px;
}

.pipe-node p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-2);
}

.pipe-node small {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-3);
}

.tree {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}

.tree li {
  padding: 5px 8px;
  border-radius: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.3s, color 0.3s;
}

.tree li b {
  color: var(--text);
  font-weight: 500;
}

.tree li.is-hot {
  background: color-mix(in srgb, var(--blue) 14%, transparent);
  color: var(--text-2);
}

.debounce {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.debounce i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blue);
  border-radius: 3px;
}

.debounce i.is-run {
  animation: fill 0.6s linear forwards;
}

@keyframes fill {
  to { width: 100%; }
}

.chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chips span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-2);
  transition: background 0.3s, color 0.3s;
}

.chips img {
  width: 18px;
  height: 18px;
}

.chips span.is-hot {
  background: color-mix(in srgb, var(--blue) 14%, transparent);
  color: var(--text);
}

.pipe-link {
  position: relative;
  height: 2px;
  margin: 0 6px;
  background: var(--line);
  border-radius: 1px;
}

.pipe-link i {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
  opacity: 0;
}

.pipe-link i.is-run {
  animation: travel 0.45s linear forwards;
}

@keyframes travel {
  0% { left: 0; opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

.pipe-out {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pipe-status {
  display: grid;
  place-items: center;
  width: 100%;
  height: 54px;
  border-radius: 12px;
  color: var(--text);
  background: var(--line);
}

.pipe-status svg {
  transform: scale(2);
}

/* ---------------- install ---------------- */

.install {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}

.terminal {
  border-radius: 14px;
  overflow: hidden;
  background: #1e1e20;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.4), 0 30px 60px rgba(0, 0, 0, 0.25);
}

.term-bar {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  background: #2a2a2c;
}

.term-bar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}

.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }

.term-bar span {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.term-body {
  margin: 0;
  height: 300px;
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: #e5e5e7;
  white-space: pre-wrap;
  overflow: hidden;
}

.term-body .p { color: #34c759; }
.term-body .c { color: #8e8e93; }
.term-body .ok { color: #5ac8fa; }

.term-caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  vertical-align: -2px;
  background: #e5e5e7;
  animation: am-caret 1s steps(1) infinite;
}

.reqs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.reqs li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 16px;
  border-left: 2px solid var(--line);
  font-size: 15px;
  color: var(--text-2);
}

.reqs b {
  font-size: 13px;
  color: var(--text);
}

/* ---------------- footer ---------------- */

.footer {
  padding: 80px 24px 60px;
  text-align: center;
  border-top: 0.5px solid var(--line);
  color: var(--text-2);
  font-size: 14px;
}

.footer img {
  width: 48px;
  height: 48px;
}

.footer p {
  margin: 10px 0 0;
}

.footer .fine {
  font-size: 12px;
  color: var(--text-3);
}

/* ---------------- responsive ---------------- */

@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pipe-link {
    width: 2px;
    height: 36px;
    margin: 6px auto;
  }

  .pipe-link i.is-run {
    animation: travel-v 0.45s linear forwards;
  }

  @keyframes travel-v {
    0% { top: 0; left: -3px; opacity: 1; }
    85% { opacity: 1; }
    100% { top: calc(100% - 8px); left: -3px; opacity: 0; }
  }

  .pipe-node {
    min-height: 0;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hero {
    height: auto;
    min-height: 100svh;
    padding: 90px 20px 60px;
  }

  .hero-copy {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    transform: none;
    margin-bottom: 40px;
  }

  .hero-panel {
    position: relative;
    top: auto;
    left: auto !important;
    margin: 0 auto;
    width: max-content;
  }

  .hero-notes {
    top: 32px;
  }

  .scroll-hint {
    bottom: 14px;
  }

  .mb-left span:not(.mb-app),
  .mb-sys[data-sys="search"] {
    display: none;
  }

  .agents-stage {
    grid-template-columns: 1fr;
    gap: 40px;
    justify-items: center;
  }

  .agents-panel {
    grid-column: 1;
  }

  .wires {
    display: none;
  }

  .sources {
    width: 100%;
    max-width: 420px;
  }

  .states-track {
    height: auto;
  }

  .states-sticky {
    position: relative;
    height: auto;
    grid-template-columns: 1fr;
    gap: 30px;
    justify-items: center;
  }

  .states-panel {
    position: sticky;
    top: 70px;
    order: -1;
    z-index: 2;
  }

  .step {
    min-height: 0;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split.reverse .split-copy {
    order: 0;
  }

  .install {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 100px 20px;
  }
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  #agents-panel,
  #states-panel,
  #read-panel,
  .desk-panel {
    zoom: 0.86;
  }

  .hero h1 br {
    display: none;
  }

  .hero h1 {
    font-size: 32px;
  }

  .desk {
    height: 480px;
  }

  .nt {
    width: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
