/* ============================================================
   Kapow Homepage — Hero + Animated Product Journey
   Dark cinematic system. Scroll-scrubbed, deterministic.
   Progressive enhancement:
     - no .is-scrub  -> static composite (no-JS / reduced-motion)
     - .is-scrub     -> pinned, JS-driven scroll animation
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

body {
  background: var(--bg-void);
}

.home {
  position: relative;
  overflow: clip;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
}
.hero-glow-a {
  width: 620px; height: 620px;
  top: -180px; left: 50%;
  transform: translateX(-60%);
  background: rgba(255, 214, 10, 0.12);
}
.hero-glow-b {
  width: 480px; height: 480px;
  bottom: -220px; right: -80px;
  background: rgba(255, 214, 10, 0.05);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

/* Hero logo — shows above the eyebrow; site-shell.js observes .hero-kapow-logo
   and hands off to the top-bar logo (top-left) as it scrolls out of view. */
.hero-logo { display: flex; justify-content: center; margin-bottom: 26px; }
.hero .hero-kapow-logo {
  width: clamp(190px, 26vw, 250px);
  height: auto;
  transform: none;               /* override the -8deg/339px rule in style.css */
  margin: 0;
  pointer-events: none;
  filter: drop-shadow(0 8px 34px rgba(0, 0, 0, 0.45));
}

.hero-eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-title {
  color: var(--text-primary);
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin-bottom: 24px;
}
.hero-title-accent { color: var(--text-primary); }
.hero-title-accent::after {
  content: "";
  display: block;
  width: 0;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 38px;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-secondary);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); }

.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 1;
}
.hero-scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: heroScrollPulse 2.4s ease-in-out infinite;
}
@keyframes heroScrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

/* ============================================================
   JOURNEY — shared styling (both static + scrub)
   ============================================================ */
.journey {
  position: relative;
  background: var(--bg-void);
}

.stage-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(255,214,10,0.05), transparent 55%),
    var(--bg-void);
  pointer-events: none;
}

/* Phase captions — narrate the animation; opacity is driven by scroll progress */
.j-caption {
  position: absolute;
  top: 13%;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 88vw);
  margin: 0;
  text-align: center;
  font-size: clamp(0.92rem, 1.9vw, 1.14rem);
  line-height: 1.5;
  color: var(--text-secondary);
  opacity: 0;
  z-index: 4;
  pointer-events: none;
}
.j-caption-accent { color: var(--text-primary); font-weight: 600; }

/* ---- Command input ---- */
.j-command { width: min(760px, 92vw); }
.cmd-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(24,24,31,0.92), rgba(14,14,20,0.96));
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,214,10,0.04);
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  line-height: 1.5;
  color: var(--text-primary);
  min-height: 64px;
}
.cmd-prompt { color: var(--accent); flex-shrink: 0; }
.cmd-text { color: var(--text-primary); white-space: pre-wrap; }
.cmd-caret {
  display: inline-block;
  width: 9px; height: 1.15em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 1px;
  border-radius: 1px;
}
.cmd-hint {
  margin-top: 12px;
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- Table ---- */
.j-table { position: relative; width: min(940px, 94vw); }
.table-grid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.tbl {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(17,17,24,0.7);
}
.tbl-head, .tbl-row { display: contents; }
.tbl-h {
  padding: 14px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255,214,10,0.04);
}
.tbl-c {
  padding: 16px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
/* static grid lines (visible unless scrub-mode replaces them with SVG) */
.tbl-h, .tbl-c { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tbl-h:nth-child(4n), .tbl-c:nth-child(4n) { border-right: none; }
.tbl { border: 1px solid var(--border); }

.c-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-right: 4px;
}
.c-chip {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}
.c-sent {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--success);
  background: rgba(34,197,94,0.12);
}

/* ---- Graph / nodes ---- */
.j-graph { position: relative; width: min(1120px, 96vw); }
.graph-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

.node {
  position: relative;
  z-index: 2;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(24,24,31,0.95), rgba(15,15,21,0.97));
  box-shadow: 0 14px 40px rgba(0,0,0,0.4);
  padding: 16px;
}
.node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.node-idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}
.node-status {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255,214,10,0.12);
}
.node[data-state="done"] .node-status,
.node[data-state="sent"] .node-status {
  color: var(--success);
  background: rgba(34,197,94,0.14);
}
.node-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 6px;
}
.node-body { font-size: 0.82rem; color: var(--text-muted); }

.node[data-state="done"], .node[data-state="sent"] {
  border-color: rgba(34,197,94,0.4);
  box-shadow: 0 14px 40px rgba(0,0,0,0.4), 0 0 24px rgba(34,197,94,0.12);
}

/* approval panel */
.approval {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed rgba(255,214,10,0.4);
  border-radius: var(--radius-md);
  background: rgba(255,214,10,0.05);
}
.approval-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.approval-actions { display: flex; gap: 8px; }
.ap-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: default;
}
.ap-approve { background: var(--accent); color: #0A0A0F; }
.ap-improve { border: 1px solid var(--border-light); color: var(--text-secondary); }
.node[data-approved="true"] .approval {
  border-style: solid;
  border-color: rgba(34,197,94,0.5);
  background: rgba(34,197,94,0.08);
}
.node[data-approved="true"] .ap-approve { background: var(--success); color: #06210f; }

/* node 3 output */
.node-output { margin-top: 10px; display: flex; gap: 10px; align-items: flex-start; }
.out-msg {
  flex: 1;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-secondary);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
}
.out-thumb {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,214,10,0.5), transparent 60%),
    linear-gradient(135deg, #2a2a35, #14141b);
  border: 1px solid var(--border-light);
}

/* node 4 send packet */
.node-send {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 18px; height: 18px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0;
  transform: translateY(-50%);
}

/* simulated cursor */
.sim-cursor {
  position: absolute;
  z-index: 5;
  width: 20px; height: 20px;
  left: 0; top: 0;
  opacity: 0;
  pointer-events: none;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l7 18 2.5-7.5L21 10z' fill='white' stroke='%230A0A0F' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}
.sim-cursor.clicking { transform: scale(0.82); }

/* finale */
.finale {
  position: absolute;
  left: 50%; bottom: -6%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 3;
}
.finale-badge {
  display: inline-block;
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  padding: 10px 26px;
  border-radius: 999px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.4);
  box-shadow: 0 0 40px rgba(34,197,94,0.15);
}
.finale-audit {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================================
   STATIC MODE (default: no-JS / reduced-motion)
   Stacked, useful composite in normal flow.
   ============================================================ */
.journey:not(.is-scrub) {
  padding: 100px 24px;
}
.journey:not(.is-scrub) .journey-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  max-width: 1160px;
  margin: 0 auto;
}
.journey:not(.is-scrub) .stage-bg { display: none; }
.journey:not(.is-scrub) .table-grid,
.journey:not(.is-scrub) .graph-lines,
.journey:not(.is-scrub) .sim-cursor,
.journey:not(.is-scrub) .cmd-caret,
.journey:not(.is-scrub) .node-send { display: none; }
.journey:not(.is-scrub) .cmd-text::after { content: "Create a four-stage LinkedIn lead generation project: find target companies, identify each CEO, create a personalized message and image, then send it."; }
.journey:not(.is-scrub) .j-graph {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  height: auto;
}
.journey:not(.is-scrub) .node { position: relative; }
.journey:not(.is-scrub) .node1 { }
.journey:not(.is-scrub) .finale { position: relative; left: auto; bottom: auto; transform: none; grid-column: 1 / -1; margin-top: 8px; }
.journey:not(.is-scrub) .node[data-node="1"] .node-status { }

/* ============================================================
   SCRUB MODE (JS active) — pinned artboard
   ============================================================ */
.journey.is-scrub {
  height: 650vh;
}
.journey.is-scrub .journey-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.journey.is-scrub .j-command,
.journey.is-scrub .j-table,
.journey.is-scrub .j-graph {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  will-change: opacity, transform;
  opacity: 0;
}
/* scrub table: SVG draws the grid, so hide CSS borders */
.journey.is-scrub .tbl,
.journey.is-scrub .tbl-h,
.journey.is-scrub .tbl-c { border-color: transparent; }
.journey.is-scrub .tbl { background: rgba(17,17,24,0.55); }

/* scrub graph: nodes are absolutely placed on the artboard */
.journey.is-scrub .j-graph { height: 460px; }
.journey.is-scrub .node {
  position: absolute;
  top: 50%;
  width: 23%;
  transform: translateY(-50%);
  opacity: 0;
  will-change: opacity, transform;
}
.journey.is-scrub .node[data-node="1"] { left: 0; }
.journey.is-scrub .node[data-node="2"] { left: 25.7%; }
.journey.is-scrub .node[data-node="3"] { left: 51.3%; }
.journey.is-scrub .node[data-node="4"] { left: 77%; }
.journey.is-scrub .finale { opacity: 0; }

/* grid + connector strokes */
.grid-line, .conn-line {
  fill: none;
  stroke: var(--border-light);
  stroke-width: 1.5;
}
.conn-line { stroke: rgba(255,214,10,0.55); stroke-width: 2; }
.conn-line.done { stroke: rgba(34,197,94,0.6); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .journey.is-scrub { height: 760vh; }

  /* Mobile flow: nodes live in a normal vertical stack (no overlap). The JS
     controller translates the whole graph vertically (a camera pan) so the
     active node stays centered in the pinned viewport. */
  .journey.is-scrub .j-graph {
    height: auto;
    width: 86vw;
    max-width: 420px;
    will-change: transform, opacity;
  }
  .journey.is-scrub .node {
    position: relative;
    left: auto !important;
    top: auto;
    width: 100%;
    transform: none;
    margin-bottom: 44px;
  }
  .journey.is-scrub .node:last-of-type { margin-bottom: 0; }
  .journey.is-scrub .finale {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin-top: 26px;
    text-align: center;
  }
  .journey.is-scrub .node-send { right: 16px; }

  .journey:not(.is-scrub) .j-graph { grid-template-columns: 1fr; }
  .journey:not(.is-scrub) .finale { grid-column: 1; }
}

@media (max-width: 620px) {
  .tbl-h { padding: 10px 8px; font-size: 9px; letter-spacing: 0.04em; }
  .tbl-c { padding: 10px 8px; font-size: 0.78rem; }
  .hero { padding-top: 100px; }
}

/* ============================================================
   Shared token for product diagrams (agents = purple).
   Kept for the upcoming sections; yellow stays the brand accent.
   ============================================================ */
:root {
  --agent: #8B5CF6;
  --agent-soft: rgba(139, 92, 246, 0.16);
  --agent-line: rgba(139, 92, 246, 0.5);
}

/* ============================================================
   ① THE PROBLEM — fragmented work resolves into one system
   ============================================================ */
.prob {
  position: relative;
  padding: 120px 24px 130px;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 8%, rgba(239, 68, 68, 0.05), transparent 42%),
    var(--bg-void);
  text-align: center;
  overflow: hidden;
}
.prob-head { max-width: 760px; margin: 0 auto 64px; }
.prob-title {
  color: var(--text-primary);
  font-size: clamp(2rem, 4.8vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 6px 0 20px;
}
.prob-title-muted { color: var(--text-muted); }
.prob-sub {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.6;
}

/* stage */
.prob-stage {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 34px;
}

/* the coordinating frame that appears in the resolved state */
.prob-frame {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.06), transparent 70%),
    rgba(20, 20, 27, 0.4);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.frag-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.frag {
  padding: 16px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(26, 26, 34, 0.92), rgba(16, 16, 22, 0.96));
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-family: var(--font-mono);
}

.prob-caption {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  height: 20px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cap { position: absolute; left: 0; right: 0; transition: opacity 0.6s ease; }
.cap-before { color: var(--error); opacity: 1; }
.cap-after { color: var(--success); opacity: 0; }

/* ---- JS present, not yet revealed: scattered / disconnected ---- */
html.js .frag {
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.8s ease, border-color 0.8s ease;
}
html.js .prob-stage:not(.in) .frag {
  transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--rot, 0)) scale(0.95);
  opacity: 0.34;
  border-color: rgba(239, 68, 68, 0.4);
}
/* staggered settle */
html.js .prob-stage.in .frag:nth-child(1) { transition-delay: 0.02s; }
html.js .prob-stage.in .frag:nth-child(2) { transition-delay: 0.08s; }
html.js .prob-stage.in .frag:nth-child(3) { transition-delay: 0.14s; }
html.js .prob-stage.in .frag:nth-child(4) { transition-delay: 0.20s; }
html.js .prob-stage.in .frag:nth-child(5) { transition-delay: 0.26s; }
html.js .prob-stage.in .frag:nth-child(6) { transition-delay: 0.32s; }

.prob-stage.in .prob-frame { opacity: 1; transform: scale(1); }
.prob-stage.in .cap-before { opacity: 0; }
.prob-stage.in .cap-after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html.js .prob-stage:not(.in) .frag { transform: none; opacity: 1; border-color: var(--border-light); }
  html.js .frag, .prob-frame, .cap { transition: none; }
}

@media (max-width: 620px) {
  .frag-grid { grid-template-columns: repeat(2, 1fr); }
  .prob-stage { padding: 24px; }
}

/* ============================================================
   SHARED SECTION SCAFFOLD + reveal utility (§2–§7)
   ============================================================ */
.sec {
  position: relative;
  padding: 120px 24px;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.sec-head { max-width: 780px; margin: 0 auto 64px; text-align: center; }
.sec-title {
  color: var(--text-primary);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 6px 0 18px;
}
.sec-sub {
  max-width: 640px; margin: 0 auto;
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.6;
}
.sec-sub strong, .orch-exec-label strong { color: var(--text-primary); font-weight: 600; }

/* icon system — monochrome line icons, inherit currentColor (never colored) */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 22px; height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.icon-sm { width: 16px; height: 16px; stroke-width: 2; }

/* reveal-up utility (driven by home-reveal.js toggling .in on [data-reveal]) */
.ru { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: var(--d, 0s); }
[data-reveal].in .ru { opacity: 1; transform: none; }
html:not(.js) .ru { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ru { transition: none; } }

/* shared graph edges */
.graph-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.graph-edge { fill: none; stroke: var(--agent-line); stroke-width: 1.5; }
[data-graph].in .graph-edge { stroke-dashoffset: 0 !important; transition: stroke-dashoffset 0.9s ease; }

/* ============================================================
   ② THE ORCHESTRATOR
   ============================================================ */
.orch-graph {
  position: relative;
  max-width: 940px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 56px; min-height: 340px;
}
.orch-core {
  position: relative; z-index: 1;
  flex-shrink: 0; width: 300px;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border-radius: var(--radius-lg);
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, rgba(28,26,16,0.9), rgba(16,15,10,0.95));
  box-shadow: 0 0 34px rgba(255,214,10,0.1);
}
.orch-core-avatar {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
  display: grid; place-items: center; font-size: 1.1rem;
  color: #0A0A0F; background: var(--accent);
}
.orch-core-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.orch-core-name { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.orch-core-msg { color: var(--text-primary); font-weight: 500; font-size: 0.95rem; font-family: var(--font-mono); }
.orch-core-tag { font-size: 0.72rem; color: var(--text-muted); }

.orch-agents { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; width: 280px; }
.orch-agent {
  display: flex; align-items: baseline; gap: 8px;
  padding: 12px 14px; border-radius: var(--radius-md);
  border: 1px solid var(--agent-line);
  background: linear-gradient(180deg, rgba(24,20,34,0.9), rgba(15,13,21,0.95));
  color: var(--text-primary); font-weight: 600; font-size: 0.9rem;
}
.ag-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--agent); box-shadow: 0 0 10px var(--agent); flex-shrink: 0; align-self: center; }
.ag-role { color: var(--text-muted); font-weight: 400; font-size: 0.78rem; margin-left: auto; }

.orch-exec { max-width: 820px; margin: 56px auto 0; }
.orch-exec-label { text-align: center; color: var(--text-secondary); font-size: 0.98rem; margin-bottom: 22px; }
.runners { display: flex; flex-direction: column; gap: 10px; }
.runner {
  display: grid; grid-template-columns: 210px 1fr 72px; align-items: center; gap: 14px;
  padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: rgba(17,17,24,0.7);
}
.runner-name { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runner-track { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.runner-track i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--agent); transition: width 1s ease; transition-delay: var(--d, 0s); }
[data-reveal].in .runner-track i { width: var(--w, 0); }
.runner-state { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; text-align: right; }
.runner-state.done { color: var(--success); }
.runner-state.run { color: var(--agent); }
.runner-state.queued { color: var(--text-muted); }

/* ============================================================
   ③ MEMORY & MIND MAP
   ============================================================ */
.mem-grid { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.mem-searchbar {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 18px; border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  background: rgba(20,20,27,0.8); font-family: var(--font-mono); color: var(--text-primary); font-size: 0.92rem;
}
.mem-caret { width: 8px; height: 1.1em; background: var(--accent); border-radius: 1px; }
.mem-answers { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.mem-a { display: flex; justify-content: space-between; gap: 14px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: rgba(17,17,24,0.6); }
.mem-a-k { color: var(--text-muted); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.mem-a-v { color: var(--text-primary); font-size: 0.9rem; font-weight: 500; text-align: right; }
.mem-questions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.mem-chip { font-size: 0.74rem; color: var(--text-secondary); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border-light); background: rgba(255,255,255,0.03); }

.mind-graph { position: relative; height: 360px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: radial-gradient(circle at 50% 50%, rgba(139,92,246,0.06), transparent 70%), rgba(14,14,20,0.5); overflow: hidden; }
.mind-core, .mind-node { position: absolute; z-index: 1; padding: 9px 14px; border-radius: var(--radius-md); font-size: 0.82rem; white-space: nowrap; }
/* core is centered; nodes are pinned to edges via inline insets so they can
   never overflow the container. reveal is opacity-only (see .ru-fade) so it
   never fights each node's own positioning transform. */
.mind-core { left: 50%; top: 50%; transform: translate(-50%, -50%); font-weight: 700; color: #0A0A0F; background: var(--accent); }
.mind-node { color: var(--text-primary); border: 1px solid var(--agent-line); background: rgba(24,20,34,0.95); }

/* opacity-only reveal for absolutely-positioned nodes */
.ru-fade { opacity: 0; transition: opacity 0.6s ease; transition-delay: var(--d, 0s); }
[data-reveal].in .ru-fade { opacity: 1; }
html:not(.js) .ru-fade { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ru-fade { transition: none; } }

/* ============================================================
   ④ PASSWORD & SESSION MANAGER
   ============================================================ */
.vault { max-width: 620px; margin: 0 auto; border: 1px solid var(--border-light); border-radius: var(--radius-xl); background: linear-gradient(180deg, rgba(20,20,27,0.94), rgba(12,12,18,0.97)); overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,0.4); }
.vault-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--text-primary); }
.vault-lock { display: inline-flex; color: var(--accent); }
.vault-rows { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.vault-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: rgba(17,17,24,0.6); }
.v-app { color: var(--text-primary); font-weight: 500; }
.v-kind { color: var(--text-muted); font-size: 0.8rem; font-family: var(--font-mono); }
.v-state { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.v-state.ok { color: var(--success); background: rgba(34,197,94,0.13); }
.v-state.wait { color: var(--accent); background: rgba(255,214,10,0.13); }
.vault-row.highlight { border-color: rgba(255,214,10,0.4); background: rgba(255,214,10,0.04); }
.vault-note { padding: 12px 20px 18px; color: var(--text-muted); font-size: 0.84rem; }

/* ============================================================
   ⑤ ANY MODEL + LOCAL VOICE
   ============================================================ */
.models-row { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.model-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.model-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 22px; border-radius: var(--radius-lg); border: 1px solid var(--border-light); background: rgba(20,20,27,0.8); min-width: 150px; text-align: center; }
.model-card.active { border-color: var(--accent); box-shadow: 0 0 26px rgba(255,214,10,0.1); }
.mc-name { color: var(--text-primary); font-weight: 600; }
.mc-kind { color: var(--text-muted); font-size: 0.8rem; }
.voice { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--border-light); background: rgba(20,20,27,0.7); }
.voice-wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.voice-wave i { width: 3px; height: 30%; border-radius: 999px; background: var(--accent); animation: voiceBar 1s ease-in-out infinite; }
.voice-wave i:nth-child(odd) { animation-duration: 0.8s; }
.voice-wave i:nth-child(3n) { animation-duration: 1.3s; }
.voice-wave i:nth-child(2) { animation-delay: 0.1s } .voice-wave i:nth-child(3){animation-delay:.2s} .voice-wave i:nth-child(4){animation-delay:.3s}
.voice-wave i:nth-child(5){animation-delay:.15s} .voice-wave i:nth-child(6){animation-delay:.25s} .voice-wave i:nth-child(7){animation-delay:.05s}
.voice-wave i:nth-child(8){animation-delay:.35s} .voice-wave i:nth-child(9){animation-delay:.2s} .voice-wave i:nth-child(10){animation-delay:.1s}
@keyframes voiceBar { 0%,100% { height: 22%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .voice-wave i { animation: none; height: 55%; } }
.voice-label { color: var(--text-secondary); font-size: 0.85rem; }
.local-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-secondary); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,0.02); }

/* ============================================================
   ⑥ USE CASES
   ============================================================ */
.uc-grid { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.uc-tile { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--border-light); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(22,22,29,0.9), rgba(14,14,20,0.95)); transition: border-color 0.25s ease, transform 0.25s ease; }
.uc-tile:hover { border-color: var(--accent); transform: translateY(-3px); }
.uc-ico {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary);
  margin-bottom: 4px;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.uc-tile:hover .uc-ico { color: var(--accent); border-color: rgba(255,214,10,0.4); background: rgba(255,214,10,0.06); }
.uc-name { color: var(--text-primary); font-weight: 600; }
.uc-eg { color: var(--text-muted); font-size: 0.82rem; line-height: 1.4; }
.uc-tile:nth-child(5) .uc-name { color: var(--accent); }

/* ============================================================
   ⑦ OUTCOME + CTA
   ============================================================ */
.sec-final { padding: 150px 24px 170px; text-align: center; }
.final-inner { position: relative; max-width: 760px; margin: 0 auto; }
.final-glow { position: absolute; left: 50%; top: 30%; width: 480px; height: 480px; transform: translate(-50%,-50%); border-radius: 999px; background: rgba(255,214,10,0.08); filter: blur(90px); pointer-events: none; }
.final-title { position: relative; color: var(--text-primary); font-size: clamp(2.2rem, 5.4vw, 3.6rem); line-height: 1.08; letter-spacing: -0.04em; margin: 8px 0 20px; }
.final-accent { color: var(--accent); }
.final-sub { position: relative; color: var(--text-secondary); font-size: 1.08rem; margin-bottom: 34px; }
.final-ctas { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.final-github { position: relative; display: inline-block; margin-top: 22px; color: var(--text-muted); font-size: 0.9rem; }
.final-github:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE (§2–§7)
   ============================================================ */
@media (max-width: 860px) {
  .orch-graph { flex-direction: column; gap: 30px; }
  .orch-core, .orch-agents { width: 100%; max-width: 420px; }
  .mem-grid { grid-template-columns: 1fr; }
  .uc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .runner { grid-template-columns: 1fr 60px; }
  .runner-track { display: none; }
  .uc-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FUTURE-SECTIONS PLACEHOLDER
   ============================================================ */
.home-next {
  position: relative;
  padding: 140px 24px 160px;
  text-align: center;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,214,10,0.05), transparent 45%),
    var(--bg-void);
}
.home-next-title {
  color: var(--text-primary);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  margin: 8px 0 16px;
}
.home-next-copy {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
}
.home-next-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   REDUCED MOTION — kill decorative loops
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-line { animation: none; }
}
