:root {
  color-scheme: light dark;
  --bg: #f5f8fd;
  --bg-elevated: #ffffff;
  --ink: #0f172a;
  --muted: #52627a;
  --line: #d6e0ef;
  --hairline: rgba(100, 124, 160, 0.18);
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-ink: #ffffff;
  --accent: #1d4ed8;
  --tint: #e8f1ff;
  --success: #15803d;
  --success-bg: #dcfce7;
  --glass-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 244, 253, 0.82));
  --glass-border: rgba(255, 255, 255, 0.9);
  --shadow: 0 18px 46px rgba(15, 35, 66, 0.12);
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220;
    --bg-elevated: #131e31;
    --ink: #f1f5fb;
    --muted: #98abc6;
    --line: #273752;
    --hairline: rgba(148, 179, 224, 0.16);
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-ink: #071326;
    --accent: #93c5fd;
    --tint: #172b4d;
    --success: #4ade80;
    --success-bg: #143628;
    --glass-bg: linear-gradient(145deg, rgba(24, 36, 56, 0.9), rgba(16, 25, 40, 0.86));
    --glass-border: rgba(147, 197, 253, 0.24);
    --shadow: 0 22px 54px rgba(2, 8, 20, 0.55);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-elevated: #131e31;
  --ink: #f1f5fb;
  --muted: #98abc6;
  --line: #273752;
  --hairline: rgba(148, 179, 224, 0.16);
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-ink: #071326;
  --accent: #93c5fd;
  --tint: #172b4d;
  --success: #4ade80;
  --success-bg: #143628;
  --glass-bg: linear-gradient(145deg, rgba(24, 36, 56, 0.9), rgba(16, 25, 40, 0.86));
  --glass-border: rgba(147, 197, 253, 0.24);
  --shadow: 0 22px 54px rgba(2, 8, 20, 0.55);
}

:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Breathing Ambient Background */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.48;
  animation: orb-float 14s ease-in-out infinite alternate;
}
.orb-1 {
  width: 560px;
  height: 360px;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.36), transparent 70%);
}
.orb-2 {
  width: 420px;
  height: 320px;
  top: 18%;
  right: -80px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 70%);
  animation-delay: -5s;
}
@keyframes orb-float {
  0% { transform: translateX(-50%) translateY(0) scale(1); }
  100% { transform: translateX(-46%) translateY(24px) scale(1.08); }
}

.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
a { color: inherit; text-decoration: none; }
code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--tint);
  color: var(--accent);
  font: 12.5px/1.4 var(--mono);
}
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-elevated);
  font: 600 11.5px/1 var(--mono);
  box-shadow: 0 1px 0 var(--line);
}

/* Navbar */
.navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.brand-badge {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.32);
}
.brand-mark {
  display: inline-block;
  width: 17px;
  height: 17px;
  background: #ffffff;
  mask: url("assets/feibiao.svg") center / contain no-repeat;
  -webkit-mask: url("assets/feibiao.svg") center / contain no-repeat;
}
.brand-mark.sm { width: 15px; height: 15px; background: var(--primary); }
.brand-sub { font-size: 12px; font-weight: 500; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.lg { height: 44px; padding: 0 22px; font-size: 14.5px; }
.btn.primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}
.btn.primary:hover { background: var(--primary-hover); box-shadow: 0 10px 24px rgba(37, 99, 235, 0.36); }
.btn.ghost { background: var(--bg-elevated); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--muted); }
.btn-meta { font-size: 11.5px; opacity: 0.82; font-weight: 500; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--muted); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 38px;
  padding: 58px 0 32px;
  text-align: center;
}
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-elevated);
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 18px;
}
.pill-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.08); }
}
.hero h1 {
  margin: 0 auto;
  max-width: 780px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  font-weight: 780;
}
.gradient-text {
  background: linear-gradient(120deg, #2563eb 0%, #60a5fa 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { margin: 18px auto 0; max-width: 640px; font-size: 16.5px; color: var(--muted); }
.hero-cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.shortcut-strip { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.shortcut-strip .sep { margin: 0 4px; }

/* Stage Toolbar & Progress Tabs */
.hero-stage { max-width: 960px; width: 100%; margin: 0 auto; }
.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.mode-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-elevated);
}
.mode-tab {
  position: relative;
  overflow: hidden;
  padding: 6px 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 13px/1.2 inherit;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease;
}
.mode-tab.active { background: var(--primary); color: var(--primary-ink); }
.tab-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2.5px;
  width: 0%;
  background: rgba(255, 255, 255, 0.72);
}
.mode-tab.active.running .tab-progress {
  animation: tab-fill 7.4s linear forwards;
}
@keyframes tab-fill { from { width: 0%; } to { width: 100%; } }

.replay-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-elevated);
  color: var(--muted);
  font: 600 12px/1 inherit;
  cursor: pointer;
}
.replay-btn:hover { color: var(--ink); border-color: var(--line); }

/* Desktop Frame */
.desktop-frame {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}
.macos-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--bg) 55%, var(--bg-elevated));
  font-size: 12px;
  color: var(--muted);
}
.traffic-lights { display: inline-flex; gap: 7px; }
.traffic-lights i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.traffic-lights i:nth-child(1) { background: #ff5f57; }
.traffic-lights i:nth-child(2) { background: #febc2e; }
.traffic-lights i:nth-child(3) { background: #28c840; }
.hud-chip {
  padding: 2px 10px;
  border-radius: 999px;
  background: #0f1b2ee8;
  color: #f4f8ff;
  font: 11px/1.5 var(--mono);
  transition: background-color 200ms ease;
}

.desktop-canvas {
  position: relative;
  min-height: 376px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 20px;
  align-items: center;
  background:
    radial-gradient(circle at 22% 28%, rgba(37, 99, 235, 0.08), transparent 55%),
    color-mix(in srgb, var(--bg) 60%, var(--bg-elevated));
  overflow: hidden;
}

/* Simulated Overlay Dim & Shortcut Toast */
.sim-overlay-mask {
  position: absolute;
  inset: 0;
  background: rgba(13, 22, 38, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
  z-index: 2;
}
.sim-overlay-mask.on { opacity: 1; }

.sim-key-toast {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(-14px) scale(0.95);
  opacity: 0;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #0f1b2ef0;
  border: 1px solid rgba(147, 197, 253, 0.35);
  color: #f4f8ff;
  font-size: 12px;
  box-shadow: 0 10px 28px rgba(2, 8, 20, 0.4);
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms cubic-bezier(.22, 1, .36, 1);
}
.sim-key-toast kbd {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  box-shadow: none;
  min-width: 20px;
  height: 20px;
}
.sim-key-toast.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }

/* Left Simulated Screen */
.sim-screen { position: relative; z-index: 3; min-height: 274px; }
.scene { display: none; }
.scene.active { display: block; animation: scene-in 260ms ease both; }
@keyframes scene-in { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: scale(1); } }

/* Scene 1: Element */
.mock-app {
  display: grid;
  grid-template-columns: 102px 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: 13px;
  border: 1px solid var(--hairline);
  background: var(--bg-elevated);
  min-height: 266px;
}
.mock-sidebar { display: grid; gap: 6px; align-content: start; }
.mock-nav-item {
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  color: var(--muted);
  border: 1.5px solid transparent;
  transition: all 180ms ease;
}
.mock-nav-item.active { background: var(--tint); color: var(--accent); font-weight: 600; }
.mock-nav-item.hovered { border-color: var(--primary); background: rgba(37, 99, 235, 0.1); }
.mock-main { display: grid; gap: 14px; align-content: start; }
.mock-header-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mock-heading { font-size: 14px; font-weight: 700; }
.mock-subline { font: 11px/1.4 var(--mono); color: var(--muted); }
.mock-target-btn {
  position: relative;
  padding: 7px 14px;
  border-radius: 8px;
  border: 2px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  transition: all 200ms ease;
}
.mock-target-btn.hovered,
.mock-target-btn.selected {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, var(--bg-elevated));
  color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}
.sel-tag {
  position: absolute;
  top: -10px;
  left: -8px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--primary);
  color: #ffffff;
  font: 700 10px/1.4 var(--mono);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.34, 1.56, .64, 1);
}
.selected .sel-tag,
.sel-tag.show { opacity: 1; transform: scale(1); }
.mock-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-card { padding: 14px 12px; border-radius: 9px; border: 1px solid var(--hairline); display: grid; gap: 8px; }
.mock-line { height: 9px; border-radius: 999px; background: var(--hairline); }
.mock-line.strong { height: 11px; background: var(--line); }
.w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }

/* Scene 2: Scroll Capture */
.scroll-window {
  position: relative;
  border-radius: 13px;
  border: 1px solid var(--hairline);
  background: var(--bg-elevated);
  overflow: hidden;
  min-height: 266px;
  display: flex;
  flex-direction: column;
}
.sticky-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--bg) 70%, var(--bg-elevated));
  font-size: 12px;
  font-weight: 650;
}
.sticky-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--accent);
  font-size: 10.5px;
  opacity: 0.45;
  transition: opacity 250ms ease;
}
.sticky-pill.active { opacity: 1; }
.scroll-viewport {
  position: relative;
  height: 174px;
  overflow: hidden;
  padding: 10px 14px;
}
.scroll-track {
  display: grid;
  gap: 8px;
  transform: translateY(0);
  transition: transform 2.4s cubic-bezier(.25, .1, .25, 1);
}
.scroll-track.scrolling { transform: translateY(-148px); }
.scroll-row {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: var(--bg);
}
.scroll-row strong { display: block; font-size: 12px; }
.scroll-row span { font-size: 11px; color: var(--muted); }
.drag-box {
  position: absolute;
  top: 8px;
  left: 10px;
  width: 0;
  height: 0;
  border: 2px solid var(--primary);
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: width 550ms cubic-bezier(.22, 1, .36, 1), height 550ms cubic-bezier(.22, 1, .36, 1), opacity 200ms ease;
}
.drag-box.drawn {
  width: calc(100% - 20px);
  height: calc(100% - 16px);
  opacity: 1;
}
.drag-box.drawn .sel-tag { opacity: 1; transform: scale(1); }
.drag-size {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #0f1b2ee8;
  color: #f4f8ff;
  font: 10px/1.4 var(--mono);
}
.sim-scroll-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 10px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 250ms ease, transform 250ms ease;
}
.sim-scroll-controls.show { opacity: 1; transform: translateY(0); }
.scan-mark {
  position: relative;
  width: 22px;
  height: 26px;
  border: 1.5px solid var(--primary);
  border-radius: 5px;
  background: var(--tint);
  flex: none;
}
.scan-mark::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 50%;
  height: 2px;
  background: var(--primary);
  animation: scan-bar 800ms ease-in-out infinite alternate;
}
@keyframes scan-bar { from { transform: translateY(-7px); } to { transform: translateY(7px); } }
.sc-copy { flex: 1; min-width: 0; }
.sc-copy strong { display: block; font-size: 11.5px; }
.sc-copy span { display: block; font-size: 10.5px; color: var(--muted); }
.sc-btn { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--primary); color: var(--primary-ink); }

/* Scene 3: OCR */
.terminal-window {
  padding: 16px;
  border-radius: 13px;
  border: 1px solid #24334a;
  background: #0d1626;
  color: #dbeafe;
  font: 12px/1.75 var(--mono);
  min-height: 266px;
  display: grid;
  align-content: center;
  gap: 4px;
}
.term-line.muted { color: #7e93b3; }
.term-line.err { color: #fca5a5; }
.term-line.warn { color: #fcd34d; }
.term-err-block {
  position: relative;
  padding: 8px 10px;
  margin: 6px 0;
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden;
  transition: border-color 220ms ease, background-color 220ms ease;
}
.term-err-block.selected {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.14);
}
.ocr-beam {
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 10px;
  background: linear-gradient(180deg, transparent, rgba(96, 165, 250, 0.85), transparent);
  opacity: 0;
  pointer-events: none;
}
.ocr-beam.scanning {
  opacity: 1;
  animation: ocr-sweep 950ms ease-in-out forwards;
}
@keyframes ocr-sweep {
  0% { top: -10px; opacity: 0.9; }
  85% { top: 100%; opacity: 0.9; }
  100% { top: 110%; opacity: 0; }
}

/* Scene 4: Multi-Display */
.dual-monitors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-height: 266px;
}
.monitor {
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--bg-elevated);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mon-label {
  padding: 7px 10px;
  border-bottom: 1px solid var(--hairline);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 65%, var(--bg-elevated));
}
.mon-body {
  flex: 1;
  padding: 14px 12px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.mon-box {
  position: relative;
  padding: 16px 12px;
  border-radius: 8px;
  border: 2px solid var(--hairline);
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: all 220ms ease;
}
.mon-box.sm { padding: 10px 12px; font-size: 11.5px; }
.mon-box.selected {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, var(--bg-elevated));
  color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.mon-bars { display: grid; gap: 7px; margin-top: 4px; }
.mon-bars i { display: block; height: 8px; border-radius: 999px; background: var(--hairline); }

/* Animated Cursor */
.sim-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  pointer-events: none;
  transform: translate(40px, 190px);
  transition: transform 620ms cubic-bezier(.22, 1, .36, 1), opacity 200ms ease;
}
.click-ripple {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0;
  transform: scale(0.3);
}
.click-ripple.pop {
  animation: ripple 480ms ease-out forwards;
}
@keyframes ripple {
  0% { opacity: 0.9; transform: scale(0.3); }
  100% { opacity: 0; transform: scale(1.9); }
}

/* Right: Feiling Glass Popover */
.feiling-popover {
  position: relative;
  z-index: 5;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid;
  gap: 10px;
  opacity: 0.35;
  transform: translateY(12px) scale(0.97);
  transition: opacity 320ms ease, transform 360ms cubic-bezier(.22, 1, .36, 1);
}
.feiling-popover.active { opacity: 1; transform: translateY(0) scale(1); }
.pop-header { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.pop-brand { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.pop-sub { color: var(--muted); }
.pop-close {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--hairline);
  display: grid;
  place-items: center;
  color: var(--muted);
}
.pop-note {
  min-height: 54px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--hairline);
  background: var(--bg-elevated);
  font-size: 12.5px;
  line-height: 1.5;
}
.caret {
  display: inline-block;
  width: 1.5px;
  height: 13px;
  background: var(--primary);
  vertical-align: -2px;
  margin-left: 1px;
  animation: blink 900ms steps(1) infinite;
}
.caret.off { opacity: 0; animation: none; }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.pop-capture {
  padding: 8px;
  border-radius: 11px;
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--bg-elevated) 75%, transparent);
  display: grid;
  gap: 7px;
}
.pop-cap-top { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.pop-add { color: var(--accent); font-weight: 600; }
.pop-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: var(--bg-elevated);
}
.pop-mini {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--tint);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex: none;
}
.pop-chip-copy { min-width: 0; }
.pop-chip-copy strong { display: block; font-size: 12px; }
.pop-chip-copy small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-actions { display: flex; gap: 5px; }
.pop-pill {
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-elevated);
  font-size: 11.5px;
  white-space: nowrap;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.pop-pill.flex { flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.pop-pill.primary { background: var(--primary); color: var(--primary-ink); border-color: transparent; font-weight: 600; }
.pop-pill.primary.press { transform: scale(0.94); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.28); }
.pop-toast {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 240ms ease, transform 240ms ease;
}
.pop-toast.show { opacity: 1; transform: translateY(0); }

/* Sections & Scroll Reveal */
.section { padding: 72px 0 12px; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 40px; }
.eyebrow {
  display: inline-block;
  font: 700 11.5px/1 var(--mono);
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head h2 { margin: 0; font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.025em; line-height: 1.22; }
.section-head p { margin: 12px 0 0; color: var(--muted); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms cubic-bezier(.22, 1, .36, 1), transform 520ms cubic-bezier(.22, 1, .36, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Bento Grid with Spotlight Hover */
.bento-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bento-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: var(--bg-elevated);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(37, 99, 235, 0.12), transparent 65%);
  transition: opacity 220ms ease;
}
.bento-card:hover::before { opacity: 1; }
.bento-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  box-shadow: 0 12px 30px rgba(15, 35, 66, 0.08);
}
.bento-card.span-2 { grid-column: span 2; }
.card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--tint);
  font-size: 18px;
  margin-bottom: 14px;
}
.bento-card h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 650; }
.bento-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step-item {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: var(--bg-elevated);
}
.step-num {
  display: inline-block;
  font: 700 13px/1 var(--mono);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tint);
  margin-bottom: 14px;
}
.step-item h3 { margin: 0 0 8px; font-size: 16.5px; }
.step-item p { margin: 0; color: var(--muted); font-size: 14px; }

/* Protocol */
.protocol-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--hairline);
  background: var(--bg-elevated);
}
.protocol-copy h2 { margin: 0 0 12px; font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; }
.protocol-copy p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.protocol-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }

.code-card { border-radius: 14px; overflow: hidden; border: 1px solid #26354d; background: #0d1626; color: #e6eefc; }
.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #1e2d44;
  font: 12px/1 var(--mono);
  color: #93a7c7;
}
.copy-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #304566;
  background: #17253b;
  color: #dbeafe;
  font: 600 11.5px/1.2 inherit;
  cursor: pointer;
}
.copy-btn:hover { background: #213452; }
.code-card pre { margin: 0; padding: 18px 16px; overflow-x: auto; font: 13px/1.65 var(--mono); }
.code-card pre code { background: transparent; color: inherit; padding: 0; }

/* Download */
.download-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  padding: 36px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line));
  background: var(--glass-bg);
  box-shadow: var(--shadow);
}
.download-copy h2 { margin: 0 0 10px; font-size: 28px; letter-spacing: -0.025em; }
.download-copy p { margin: 0; color: var(--muted); }
.download-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.download-hint { margin-top: 16px !important; font-size: 12.5px; }
.release-notes { padding: 20px 22px; border-radius: 14px; border: 1px solid var(--hairline); background: var(--bg-elevated); }
.release-notes h3 { margin: 0 0 12px; font-size: 15px; }
.release-notes ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; display: grid; gap: 7px; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq-list details { padding: 16px 20px; border-radius: 14px; border: 1px solid var(--hairline); background: var(--bg-elevated); }
.faq-list summary { font-weight: 650; font-size: 15px; cursor: pointer; }
.faq-list details p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 72px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--muted);
}
.footer-left, .footer-right { display: flex; align-items: center; gap: 8px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .desktop-canvas, .protocol-box, .download-card { grid-template-columns: 1fr; }
  .bento-grid, .steps-grid { grid-template-columns: 1fr; }
  .bento-card.span-2 { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .dot, .scan-mark::after, .tab-progress { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
