:root {
  color-scheme: dark;
  --bg: #090c10;
  --bg-soft: #0d1218;
  --surface: #111820;
  --surface-strong: #151e28;
  --surface-muted: #0f151c;
  --line: rgba(186, 209, 232, 0.16);
  --line-strong: rgba(198, 224, 247, 0.28);
  --text: #f4f7fb;
  --text-soft: #c1cbd6;
  --text-muted: #7f8b98;
  --accent: #67d8ff;
  --accent-strong: #2eb7f5;
  --green: #70e2ac;
  --amber: #f0c76f;
  --blue: #7ba7ff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-lg: 0 28px 90px rgba(0, 0, 0, 0.45);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(22, 35, 46, 0.78), rgba(9, 12, 16, 0) 420px),
    radial-gradient(circle at 50% 0%, rgba(103, 216, 255, 0.14), transparent 42rem),
    var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
}

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

/* Full-screen scroll snapping — one section per scroll gesture (desktop only) */
@media (min-width: 981px) and (prefers-reduced-motion: no-preference) {
  html {
    scroll-snap-type: y mandatory;
  }

  main > section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  main > section:not(.hero):not(.split-section) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
  }

  main > section.split-section {
    min-height: 100vh;
  }

  .site-footer {
    scroll-snap-align: start;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand,
.top-nav,
.nav-cta,
.nav-social {
  border: 1px solid var(--line);
  background: rgba(9, 12, 16, 0.7);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.22);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 650;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(103, 216, 255, 0.34);
  border-radius: 7px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  background: rgba(103, 216, 255, 0.09);
}

.top-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px;
  border-radius: var(--radius-md);
}

.top-nav a {
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--text-soft);
  font-size: 13px;
  transition: background-color 160ms ease, color 160ms ease;
}

.top-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.top-nav a.is-active {
  color: var(--accent);
  background: rgba(103, 216, 255, 0.13);
}

.header-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-cta {
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.nav-social {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--text-soft);
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-social:hover {
  color: var(--accent);
  background: rgba(103, 216, 255, 0.13);
}

.section-shell {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
  gap: 46px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 54px 0 80px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(52px, 7vw, 104px);
  line-height: 0.92;
  font-weight: 780;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
  font-weight: 760;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.25;
}

p {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.7;
}

.hero-subtitle {
  max-width: 650px;
  margin-bottom: 30px;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.download-count {
  margin: 14px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.download-count::before {
  content: "↓";
  margin-right: 7px;
  color: var(--accent);
  font-weight: 700;
}

.install-note {
  margin-top: 20px;
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  padding: 14px 18px;
}

.install-note summary {
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  list-style: none;
}

.install-note summary::-webkit-details-marker {
  display: none;
}

.install-note summary::before {
  content: "›";
  display: inline-block;
  margin-right: 8px;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.install-note[open] summary::before {
  transform: rotate(90deg);
}

.install-note p {
  margin: 12px 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.install-cmd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.install-cmd code {
  flex: 1;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
  color: var(--text);
  overflow-x: auto;
  white-space: nowrap;
}

.copy-cmd {
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.copy-cmd:hover {
  color: var(--text);
  border-color: var(--accent);
}

.copy-cmd.is-copied {
  color: var(--green);
  border-color: var(--green);
}

.install-note-alt {
  font-size: 0.82rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 750;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  border: 1px solid rgba(151, 231, 255, 0.52);
  background: linear-gradient(180deg, #8ae3ff, #2eb7f5);
  color: #061018;
  box-shadow: 0 16px 50px rgba(46, 183, 245, 0.26);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.platform-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.platform-note span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--text-muted);
  font-size: 12px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.trust-row li {
  position: relative;
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.4;
}

.trust-row li::before {
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 999px;
  border: 1px solid rgba(112, 226, 172, 0.55);
  background: rgba(112, 226, 172, 0.16);
  content: "";
}

.trust-row li::after {
  position: absolute;
  left: 4px;
  top: 50%;
  width: 6px;
  height: 3px;
  margin-top: -2px;
  border-left: 1.4px solid var(--green);
  border-bottom: 1.4px solid var(--green);
  transform: rotate(-45deg);
  content: "";
}

.trust-row strong {
  color: var(--text);
  font-weight: 700;
}

.platform-tiny {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.demo-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.demo-stage {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow-lg);
}

.window-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 12, 16, 0.72);
}

.window-bar .wb-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.window-bar .wb-dot:nth-child(1) { background: #ff5f57; }
.window-bar .wb-dot:nth-child(2) { background: #febc2e; }
.window-bar .wb-dot:nth-child(3) { background: #28c840; }

.wb-tabs {
  display: inline-flex;
  gap: 4px;
  margin-left: 14px;
}

.wb-tabs i {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-style: normal;
  color: var(--text-muted);
}

.wb-tabs i.is-active {
  background: rgba(103, 216, 255, 0.14);
  color: var(--accent);
}

.demo-caption {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding-left: 2px;
  min-height: 24px;
  color: var(--text-soft);
  font-size: 14.5px;
}

.demo-caption .cap-num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 7px;
  background: rgba(103, 216, 255, 0.14);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.demo-caption .cap-text {
  transition: opacity 220ms ease, transform 220ms ease;
}

.demo-caption.is-swapping .cap-text {
  opacity: 0;
  transform: translateY(4px);
}

.demo-frame {
  position: relative;
  min-height: 558px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 12%, rgba(103, 216, 255, 0.14), transparent 22rem),
    var(--surface-muted);
}

.demo-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-video[hidden] {
  display: none;
}

.demo-video:not([hidden]) + .demo-fallback {
  display: none;
}

.demo-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 20px;
}

.demo-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  color: var(--text-soft);
  font-size: 13px;
}

.kb-mode {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.kb-mode-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(103, 216, 255, 0.16);
}

.kb-right {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.kb-usage {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.kb-usage .usage-bar {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.kb-usage .usage-bar i {
  display: block;
  height: 100%;
  width: var(--u, 36%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  transition: width 700ms ease;
}

.kb-usage b {
  color: var(--text-soft);
  font-weight: 700;
}

.kb-stats {
  display: inline-flex;
  gap: 14px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.kb-stats b {
  color: var(--text-soft);
  font-weight: 700;
}

.kb-stats .kb-ok b {
  color: var(--green);
}

@media (max-width: 1120px) {
  .kb-usage { display: none; }
}

.kanban-preview {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  height: calc(100% - 32px);
}

.preview-column {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.column-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 12px;
}

.column-label .col-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.preview-card {
  position: relative;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px;
  background: rgba(17, 24, 32, 0.92);
  transition:
    border-color 400ms ease,
    box-shadow 400ms ease,
    transform 240ms ease,
    opacity 360ms ease;
  will-change: transform;
}

.preview-card strong {
  display: block;
  margin-bottom: 9px;
  font-size: 13.5px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.card-agent {
  display: flex;
  align-items: center;
  gap: 7px;
}

.agent-avatar {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 7px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
}

.agent-avatar svg {
  width: 14px;
  height: 14px;
  display: block;
}

.agent-avatar[data-agent="claude"] { color: #e08a63; background: rgba(224, 138, 99, 0.16); }
.agent-avatar[data-agent="codex"] { color: #e8edf2; background: rgba(232, 237, 242, 0.12); }
.agent-avatar[data-agent="cursor"] { color: var(--accent); background: rgba(103, 216, 255, 0.15); }
.agent-avatar[data-agent="gemini"] { color: #b69cff; background: rgba(182, 156, 255, 0.16); }
.agent-avatar[data-agent="opencode"] { color: var(--green); background: rgba(112, 226, 172, 0.15); }
.agent-avatar[data-agent="unassigned"] {
  background: transparent;
  border: 1px dashed var(--line-strong);
  color: var(--text-muted);
}

.agent-name {
  font-size: 12px;
  color: var(--text-soft);
}

.live-dot {
  width: 7px;
  height: 7px;
  margin-left: auto;
  flex: none;
  border-radius: 999px;
  background: var(--green);
  animation: live-pulse 1.7s ease-out infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(112, 226, 172, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(112, 226, 172, 0); }
  100% { box-shadow: 0 0 0 0 rgba(112, 226, 172, 0); }
}

.card-worktree {
  display: block;
  margin-top: 9px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-diff {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
}

.diff-add { color: var(--green); }
.diff-del { color: #ff8d8d; }
.diff-file {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-review-by {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.card-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}

.badge {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
}

.badge-merged {
  background: rgba(112, 226, 172, 0.16);
  color: var(--green);
}

.badge-undo {
  border: 1px solid var(--line);
  color: var(--text-muted);
}

.badge-scheduled {
  background: rgba(123, 167, 255, 0.16);
  color: var(--blue);
}

.badge-merge {
  background: var(--green);
  color: #07130d;
}

.card-active {
  border-color: rgba(103, 216, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(103, 216, 255, 0.12);
}

.card-review { border-color: rgba(240, 199, 111, 0.38); }
.card-done { border-color: rgba(112, 226, 172, 0.35); }

.preview-card.is-dragging {
  z-index: 30;
  border-color: rgba(103, 216, 255, 0.6);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  transform: scale(1.03) rotate(-1.2deg);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.preview-card.is-entering {
  animation: card-in 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.preview-card.is-leaving {
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* Settle bounce when a dragged card drops into a column */
.preview-card.is-landed {
  animation: card-land 420ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes card-land {
  0% { transform: scale(1.045); }
  55% { transform: scale(0.985); }
  100% { transform: scale(1); }
}

/* Celebratory flash + check pop when a card merges into Done */
.preview-card.is-merged {
  animation: merge-flash 760ms ease-out;
}

@keyframes merge-flash {
  0% { box-shadow: 0 0 0 0 rgba(112, 226, 172, 0); }
  30% { box-shadow: 0 0 0 2px rgba(112, 226, 172, 0.55), 0 0 22px rgba(112, 226, 172, 0.4); }
  100% { box-shadow: 0 0 0 0 rgba(112, 226, 172, 0); }
}

.badge-merged.is-pop {
  animation: badge-pop 480ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badge-pop {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

.progress-line {
  position: relative;
  height: 4px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-line i {
  position: absolute;
  inset: 0;
  width: var(--p, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  transition: width 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Indeterminate "still working" bar for ambient parallel agents */
.progress-line.is-live i {
  width: 38%;
  transition: none;
  animation: progress-live 1.9s ease-in-out infinite;
  animation-delay: var(--shift, 0s);
}

@keyframes progress-live {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(330%); }
}

/* Simulated pointer */
.kb-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 40;
  width: 22px;
  height: 22px;
  margin: -2px 0 0 -2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

.kb-cursor.is-on { opacity: 1; }

.kb-cursor svg {
  display: block;
  transform-origin: 4px 4px;
}

.kb-cursor.is-click svg {
  animation: cursor-press 320ms ease;
}

@keyframes cursor-press {
  0% { transform: scale(1); }
  35% { transform: scale(0.78); }
  100% { transform: scale(1); }
}

.kb-cursor::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(103, 216, 255, 0.5);
  transform: scale(0);
  opacity: 0;
}

.kb-cursor.is-click::after {
  animation: cursor-ripple 460ms ease-out;
}

@keyframes cursor-ripple {
  0% { transform: scale(0.2); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Agent-to-agent collaboration wire (handoff / messaging) */
.kb-wire {
  position: absolute;
  inset: 0;
  z-index: 24;
  pointer-events: none;
  opacity: 0;
  transition: opacity 280ms ease;
}

.kb-wire.is-on { opacity: 1; }

.kb-wire .wire-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  opacity: 0.55;
  animation: wire-flow 0.7s linear infinite;
}

@keyframes wire-flow {
  to { stroke-dashoffset: -18; }
}

.kb-wire .wire-dot {
  fill: var(--accent);
  filter: drop-shadow(0 0 4px rgba(103, 216, 255, 0.8));
}

.kb-wire .wire-end {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0.7;
}

.kb-wire .wire-label {
  fill: var(--accent);
  font-family: ui-sans-serif, sans-serif;
  font-size: 10px;
  font-weight: 600;
}

.kb-wire .wire-label-bg {
  fill: rgba(16, 22, 30, 0.92);
  stroke: rgba(103, 216, 255, 0.3);
  stroke-width: 1;
}

/* CLI picker popover */
.kb-picker {
  position: absolute;
  z-index: 35;
  width: 168px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(16, 22, 30, 0.98);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top left;
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.kb-picker.is-open {
  opacity: 1;
  transform: none;
}

.kb-picker-head {
  padding: 4px 8px 7px;
  color: var(--text-muted);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kb-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text-soft);
}

.kb-pick.is-highlight {
  background: rgba(103, 216, 255, 0.14);
  color: var(--text);
}

/* Card detail / terminal overlay */
.kb-detail {
  position: absolute;
  inset: 0;
  z-index: 36;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(11, 15, 20, 0.98);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition: opacity 280ms ease, transform 280ms ease;
  pointer-events: none;
}

.kb-detail.is-open {
  opacity: 1;
  transform: none;
}

.kb-detail-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.kb-detail-head strong {
  font-size: 13.5px;
}

.kb-detail-head .kb-detail-tree {
  margin-left: auto;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.kb-detail-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
}

.kb-term {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 13px 15px;
  overflow: hidden;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-soft);
}

.kb-term[hidden] { display: none; }

.kb-term .t-line { display: block; white-space: pre-wrap; }
.kb-term .t-cmd { color: var(--accent); }
.kb-term .t-dim { color: var(--text-muted); }
.kb-term .t-ok { color: var(--green); }
.kb-term .t-run::after {
  content: "▋";
  margin-left: 2px;
  color: var(--accent);
  animation: term-caret 1s step-end infinite;
}

@keyframes term-caret {
  50% { opacity: 0; }
}

/* Diff preview — diff-first review, inside the card detail */
.kb-diffview {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 11px 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11.5px;
  line-height: 1.65;
  animation: card-in 320ms ease;
}

.kb-diffview[hidden] { display: none; }

.kb-diff-file {
  padding: 0 15px 9px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 11px;
}

.kb-diffview .dl {
  display: flex;
  gap: 8px;
  padding: 1px 15px;
  white-space: pre;
}

.kb-diffview .dl-sign {
  width: 8px;
  flex: none;
  text-align: center;
  color: var(--text-muted);
}

.kb-diffview .dl code { color: var(--text-soft); }

.kb-diffview .dl-add { background: rgba(112, 226, 172, 0.1); }
.kb-diffview .dl-add .dl-sign { color: var(--green); }
.kb-diffview .dl-del { background: rgba(255, 141, 141, 0.1); }
.kb-diffview .dl-del .dl-sign { color: #ff8d8d; }

.kb-diffview .tok-kw { color: #c792ea; }
.kb-diffview .tok-str { color: #c3e88d; }

.kb-detail-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  border-top: 1px solid var(--line);
}

.kb-detail-foot .foot-diff {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.kb-act {
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
}

.kb-act-merge {
  margin-left: auto;
  background: var(--green);
  color: #07130d;
}

.kb-act-undo {
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
}

.kb-act.is-press {
  transform: scale(0.95);
  transition: transform 140ms ease;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading.narrow {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.why,
.workflow,
.split-section,
.control,
.agents,
.mode-section,
.power,
.download {
  padding: 78px 0;
}

.why .section-heading {
  margin-bottom: 38px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.why-grid article {
  position: relative;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(165deg, rgba(103, 216, 255, 0.07), transparent 55%),
    rgba(17, 24, 32, 0.78);
  min-height: 240px;
}

.why-num {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.why-grid h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.25;
}

.why-grid p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}

.why-grid em {
  font-style: normal;
  color: var(--text);
  background: rgba(103, 216, 255, 0.18);
  padding: 0 5px;
  border-radius: 4px;
}

.why-grid code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--accent);
  background: rgba(103, 216, 255, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
}

.workflow-steps,
.control-grid,
.mode-grid,
.power-grid {
  display: grid;
  gap: 14px;
}

.workflow-steps {
  grid-template-columns: repeat(5, 1fr);
}

.workflow-steps article,
.control-grid article,
.mode-grid article,
.power-grid article,
.system-panel,
.download-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(17, 24, 32, 0.7);
}

.workflow-steps article {
  min-height: 220px;
  padding: 20px;
}

.workflow-steps span {
  display: inline-flex;
  margin-bottom: 54px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.workflow-steps p,
.control-grid p,
.mode-grid p,
.power-grid p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 44px;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-soft);
  line-height: 1.6;
}

.feature-list li::before {
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  content: "";
  background: var(--accent);
}

.system-panel {
  padding: 18px;
  box-shadow: var(--shadow-lg);
}

.panel-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.panel-row:last-child {
  border-bottom: 0;
}

.panel-row strong,
.panel-row small,
.panel-row > span:last-child {
  display: block;
}

.panel-row small {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
}

.panel-row > span:last-child {
  color: var(--text-muted);
  font-size: 13px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.status-dot.blue {
  background: var(--blue);
}

.status-dot.green {
  background: var(--green);
}

.status-dot.amber {
  background: var(--amber);
}

.control-grid,
.power-grid {
  grid-template-columns: repeat(4, 1fr);
}

.power-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.control-grid article,
.power-grid article {
  padding: 22px;
}

.agents {
  overflow: hidden;
}

.agent-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.agent-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 650;
}

.mode-grid {
  grid-template-columns: repeat(3, 1fr);
}

.mode-grid article {
  padding: 28px;
}

.mode-kicker {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.download-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(103, 216, 255, 0.12), transparent 48%),
    rgba(17, 24, 32, 0.78);
}

.download-panel h2 {
  font-size: clamp(32px, 4vw, 54px);
}

.download-panel p {
  max-width: 620px;
  margin-bottom: 0;
}

.download-actions {
  justify-content: flex-end;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 42px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-social {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-social:hover {
  color: var(--accent);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes progress {
  0% {
    transform: translateX(-80%);
  }
  60%,
  100% {
    transform: translateX(190%);
  }
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes pipeline-pulse {
  0%,
  10% {
    border-color: var(--line);
    box-shadow: none;
  }
  16%,
  22% {
    border-color: rgba(103, 216, 255, 0.78);
    box-shadow:
      0 0 0 1px rgba(103, 216, 255, 0.4),
      0 10px 28px rgba(103, 216, 255, 0.22);
  }
  40%,
  100% {
    border-color: var(--line);
    box-shadow: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    display: none;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .workflow-steps,
  .control-grid,
  .power-grid,
  .power-grid.cols-3,
  .mode-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .demo-stage {
    order: initial;
  }
}

@media (max-width: 700px) {
  .site-header,
  .section-shell,
  .site-footer {
    width: min(100% - 28px, var(--max-width));
  }

  .site-header {
    gap: 12px;
    padding: 12px 0;
  }

  .brand {
    font-size: 13px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding-top: 28px;
  }

  h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  h2 {
    font-size: clamp(31px, 10vw, 48px);
  }

  .demo-frame {
    min-height: 360px;
  }

  .kanban-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-steps,
  .control-grid,
  .mode-grid,
  .power-grid,
  .power-grid.cols-3,
  .why-grid,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .trust-row {
    flex-direction: column;
    gap: 8px;
  }

  .why-grid article {
    min-height: 0;
  }

  .workflow-steps article {
    min-height: 0;
  }

  .workflow-steps span {
    margin-bottom: 26px;
  }

  .download-actions {
    justify-content: stretch;
  }

  .download-actions .button,
  .hero-actions .button {
    width: 100%;
  }

  .site-footer {
    display: grid;
    gap: 10px;
  }
}

@media (max-width: 430px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(40px, 12vw, 52px);
  }

  .demo-fallback {
    padding: 14px;
  }

  .demo-toolbar {
    display: grid;
    gap: 6px;
  }
}

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