/* =========================================================
   Soloco — home styles v5
   Hero: product demo window (goal submit → org gen → run loop)
   7 sections: shift · how · team · modes · eco · runtime · comp
   Depends on tokens.css + page.css
   ========================================================= */

/* ---------- shared section primitives ---------- */
.section {
  padding: var(--section-y) 0;
  position: relative;
}

/* Hero + final CTA: 衬线斜体 + 渐变（仅两处重头 em） */
.hero-title em,
.final-cta-title em {
  color: var(--primary);
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: var(--tracking-snug);
  background: linear-gradient(100deg, var(--primary), color-mix(in oklch, var(--primary), var(--awaits) 35%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 0.05em;
}

/* 内部 section 标题 em：纯色 + 下划线（更克制，不与 hero 撞处理） */
.section-head em {
  color: var(--foreground);
  font-style: normal;
  font-weight: 500;
  background-image: linear-gradient(
    transparent 62%,
    color-mix(in oklch, var(--primary), transparent 60%) 62%,
    color-mix(in oklch, var(--primary), transparent 60%) 92%,
    transparent 92%
  );
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 0.1em;
}

/* section 过渡带：顶部细渐变线 */
.section + .section {
  position: relative;
}
.section + .section::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: clamp(40%, 50vw, 720px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 5.5rem 0 4.5rem;
  background: var(--grad-page);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-aurora);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero-left { min-width: 0; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted-foreground);
  padding: 0.375rem 0.75rem;
  background: color-mix(in oklch, var(--primary-soft), transparent 40%);
  border: 1px solid color-mix(in oklch, var(--primary), transparent 85%);
  border-radius: var(--radius-pill);
  margin-bottom: 1.75rem;
}
.hero-eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--succeed);
  box-shadow: 0 0 10px color-mix(in oklch, var(--succeed), transparent 30%);
  animation: heroDot 1.8s ease-in-out infinite;
}
@keyframes heroDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.75; }
}
.hero-eyebrow-live { color: var(--succeed); letter-spacing: var(--tracking-wide); font-weight: 600; }
.hero-eyebrow-sep { opacity: 0.5; }

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.14;
  letter-spacing: var(--tracking-tight);
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.hero-lead {
  font-size: var(--fs-body-lg);
  line-height: 1.75;
  color: var(--foreground-subtle);
  max-width: 32rem;
  margin-bottom: 2.25rem;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: var(--fs-xs);
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  letter-spacing: 0;
}
.trust-item { display: inline-flex; align-items: center; gap: 0.375rem; }
.trust-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px color-mix(in oklch, var(--primary), transparent 50%);
}
.trust-sep { opacity: 0.4; }

/* ---------- Hero product still-life (static) ---------- */
.hero-right {
  position: relative;
  min-width: 0;
}
.hero-right-glow {
  position: absolute;
  inset: -10% -5% -10% -5%;
  background:
    radial-gradient(55% 60% at 70% 40%, oklch(0.55 0.17 262 / 0.16), transparent 60%),
    radial-gradient(40% 50% at 30% 70%, oklch(0.72 0.13 80 / 0.08), transparent 60%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}
.hero-shot {
  position: relative;
  z-index: 1;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), var(--shadow-inset);
  overflow: hidden;
}
.hero-shot-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  background: color-mix(in oklch, var(--background-2), transparent 15%);
}
.hero-shot-brand {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--foreground);
}
.hero-shot-brand img { width: 14px; height: 14px; display: block; }
.hero-shot-crumb {
  flex: 1; min-width: 0;
  font-size: var(--fs-xs);
  color: var(--muted-foreground);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hero-shot-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--succeed-soft);
  color: color-mix(in oklch, var(--succeed), black 18%);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
}
.hero-shot-badge i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--succeed);
  box-shadow: 0 0 6px color-mix(in oklch, var(--succeed), transparent 30%);
}

.hero-shot-body {
  padding: 1.25rem 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background:
    radial-gradient(70% 60% at 0% 0%, color-mix(in oklch, var(--primary-soft), transparent 70%), transparent 70%),
    var(--card);
}
.hero-shot-body-dash {
  padding: 1.4rem 1.4rem 1.1rem;
  gap: 1.4rem;
}

/* ---- Compose zone (mirror of Dashboard.tsx compose-inner) ---- */
.hs-compose {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hs-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.hs-serif {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--foreground);
  margin: 2px 0 0;
  text-wrap: balance;
}
.hs-sub {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--muted-foreground);
  line-height: 1.55;
}

/* ---- PromptBox (mirror of components/design/PromptBox.tsx) ---- */
.hs-prompt {
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.hs-prompt-ta {
  padding: 0.9rem 1rem;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--foreground);
  min-height: 3.2em;
}
.hs-caret {
  display: inline-block;
  width: 1px;
  height: 1.05em;
  vertical-align: -0.18em;
  margin-left: 1px;
  background: var(--primary);
  animation: hs-caret 1.1s steps(2) infinite;
}
@keyframes hs-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hs-caret { animation: none; } }
.hs-prompt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem 0.5rem 1rem;
  border-top: 1px solid var(--border-subtle);
  background: color-mix(in oklch, var(--background-2), transparent 40%);
}
.hs-prompt-kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted-foreground);
  letter-spacing: 0;
}
.hs-prompt-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hs-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  line-height: 1;
  white-space: nowrap;
}
.hs-btn svg { flex-shrink: 0; }
.hs-btn-ghost {
  background: var(--background);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
}
.hs-btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border: 1px solid var(--primary);
  box-shadow: 0 1px 2px color-mix(in oklch, var(--primary), transparent 75%);
  font-weight: 500;
}

/* ---- Workbench head + current goal ---- */
.hs-work {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.hs-work-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.7rem;
}
.hs-work-title {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--foreground);
  margin: 0;
}
.hs-work-meta {
  font-size: var(--fs-xs);
  color: var(--muted-foreground);
}
.hs-work-beat {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted-foreground);
}

.hs-goal {
  border-radius: var(--radius-lg);
}
.hs-goal.beam {
  /* beam already supplies border */
}
.hs-goal-body {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 0.95rem 1rem;
  box-shadow: var(--shadow-xs);
}
.hs-goal-top {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.hs-goal-icon {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--muted);
  color: var(--foreground);
}
.hs-goal-head { flex: 1; min-width: 0; }
.hs-goal-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 7px;
  font-size: 10.5px;
  color: var(--muted-foreground);
  line-height: 1.5;
}
.hs-goal-id {
  font-family: var(--font-mono);
  color: var(--muted-foreground);
}
.hs-goal-sep {
  color: var(--muted-foreground);
  opacity: 0.85;
}
.hs-goal-hb {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hs-goal-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--foreground);
  margin: 7px 0 2px;
  text-wrap: pretty;
}
.hs-goal-meta {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted-foreground);
}

.hs-goal-stat {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.1rem;
  margin-top: 0.85rem;
}
.hs-progress-head,
.hs-progress-foot {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--muted-foreground);
  line-height: 1.2;
}
.hs-progress-head { margin-bottom: 6px; }
.hs-progress-foot { margin-top: 5px; }
.hs-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--foreground); }
.hs-progress {
  height: 3px;
  background: var(--border-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.hs-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), color-mix(in oklch, var(--primary), var(--awaits) 30%));
}
.hs-goal-meters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.hs-m-l {
  font-size: 10.5px;
  color: var(--muted-foreground);
  margin-bottom: 3px;
}
.hs-m-v {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--foreground);
}
.hs-m-s {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-foreground);
  margin-top: 2px;
}

.hero-shot-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 0.625rem 0.9rem;
  border-top: 1px solid var(--border-subtle);
  background: color-mix(in oklch, var(--background-2), transparent 15%);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: 0;
}
.hero-shot-kv { display: inline-flex; gap: 6px; align-items: center; }
.hero-shot-k { color: var(--muted-foreground); opacity: 0.7; }
.hero-shot-v { color: var(--foreground); }
.hero-shot-sep { opacity: 0.35; }

/* =========================================================
   SECTION 01 · Shift (任务 vs 目标)
   ========================================================= */
.section-shift { background: var(--background); }
.shift-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.shift-col {
  padding: 1.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.shift-col-goal {
  background: linear-gradient(180deg, color-mix(in oklch, var(--primary-soft), transparent 60%), var(--card));
  border-color: color-mix(in oklch, var(--primary), transparent 70%);
  box-shadow: var(--shadow-md);
}
.shift-col-kind {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.shift-col-goal .shift-col-kind { color: var(--primary); }
.shift-col-name {
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: var(--tracking-snug);
  color: var(--foreground);
  margin-top: 0.375rem;
}
.shift-col-desc {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--foreground-subtle);
  margin-top: 0.375rem;
}
.shift-sep {
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
}

.shift-viz {
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  background: var(--background-2);
  border-radius: var(--radius);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}
.shift-viz-task .shift-bubble {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  max-width: 85%;
  background: var(--card);
  border: 1px solid var(--border-subtle);
}
.shift-bubble-q { align-self: flex-start; color: var(--foreground); }
.shift-bubble-a { align-self: flex-end; background: var(--primary-soft); border-color: transparent; color: var(--primary-deep); }
.shift-bubble-fade {
  align-self: center;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  color: var(--muted-foreground);
  margin-top: auto;
  opacity: 0.5;
  padding: 4px 10px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-pill);
}

.shift-goal-card {
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius);
  background: var(--elevated);
  border: 1px solid color-mix(in oklch, var(--primary), transparent 70%);
  box-shadow: var(--shadow-sm);
}
.shift-goal-card-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--primary);
}
.shift-goal-card-name { font-size: var(--fs-body); font-weight: 500; color: var(--foreground); margin-top: 2px; }
.shift-goal-card-bar {
  margin-top: 0.625rem;
  height: 4px;
  background: var(--border-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.shift-goal-card-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), color-mix(in oklch, var(--primary), var(--awaits) 30%));
  animation: shiftBar 3.6s var(--ease-out-soft) infinite;
}
@keyframes shiftBar {
  0% { width: 0; }
  70% { width: 78%; }
  100% { width: 100%; }
}
.shift-goal-stream { display: flex; flex-direction: column; gap: 6px; margin-top: 0.25rem; }
.shift-goal-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--foreground-subtle);
}
.shift-goal-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.shift-goal-dot-done { background: var(--succeed); box-shadow: 0 0 6px color-mix(in oklch, var(--succeed), transparent 30%); }
.shift-goal-dot-run { background: var(--info); box-shadow: 0 0 6px color-mix(in oklch, var(--info), transparent 30%); animation: nodeRing 1.8s ease-in-out infinite; }
.shift-goal-dot-wait { background: var(--awaits); opacity: 0.6; }

.shift-col-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-subtle);
}
.shift-col-points li {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
}
.shift-col-kk {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  color: var(--muted-foreground);
  text-transform: uppercase;
}
.shift-col-vv { color: var(--foreground); }

/* =========================================================
   SECTION 02 · How
   ========================================================= */
.section-how { background: var(--background-2); }
.how-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: 2.75rem 0;
}
.how-step + .how-step { border-top: 1px dashed var(--border-subtle); }
.how-step-reverse .how-step-text { order: 2; }
.how-step-num {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  color: var(--primary);
  margin-bottom: 0.625rem;
}
.how-step-title {
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: var(--tracking-snug);
  color: var(--foreground);
}
.how-step-lead {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--primary);
  margin-top: 0.375rem;
}
.how-step-body {
  margin-top: 0.875rem;
  color: var(--foreground-subtle);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  max-width: 32rem;
}
.how-step-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}
.how-step-points li {
  position: relative;
  padding-left: 1.125rem;
  font-size: var(--fs-sm);
  color: var(--foreground-subtle);
}
.how-step-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* howanim shell */
.how-step-anim {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-md);
  min-height: 280px;
}

/* howanim goal */
.howanim-goal { display: flex; flex-direction: column; gap: 0.75rem; }
.howanim-goal-title {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.howanim-goal-input {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background-2);
  min-height: 2.5rem;
  font-size: var(--fs-body);
}
.howanim-goal-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--primary);
  vertical-align: -0.15em;
  margin-left: 2px;
  animation: caretBlink 1s steps(2) infinite;
}
.howanim-goal-fields { display: flex; flex-direction: column; gap: 6px; }
.howanim-goal-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  opacity: 0.5;
  transition: opacity 260ms var(--ease-out-soft), border-color 260ms var(--ease-out-soft), background 260ms var(--ease-out-soft);
  font-size: var(--fs-sm);
  background: var(--card);
  align-items: center;
}
.howanim-goal-row-filled {
  opacity: 1;
  border-style: solid;
  border-color: color-mix(in oklch, var(--primary), transparent 65%);
  background: color-mix(in oklch, var(--primary-soft), transparent 70%);
}
.howanim-goal-k {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.howanim-goal-v { color: var(--foreground); min-height: 1.05em; }

/* howanim org */
.howanim-org { position: relative; height: 240px; }
.howanim-org-lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.howanim-org-line {
  fill: none;
  stroke: color-mix(in oklch, var(--primary), transparent 55%);
  stroke-width: 1.5;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: orglineDraw 800ms var(--ease-out-soft) forwards;
}
.howanim-org-nodes { position: absolute; inset: 0; }
.howanim-org-node {
  position: absolute;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: var(--elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 320ms var(--ease-out-soft), transform 320ms var(--ease-spring);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.howanim-org-in { opacity: 1; transform: translateY(0) scale(1); }
.howanim-org-node-root {
  background: linear-gradient(135deg, var(--primary-soft), color-mix(in oklch, var(--primary-soft), white 40%));
  border-color: color-mix(in oklch, var(--primary), transparent 60%);
  padding: 8px 14px;
}
.howanim-org-ring {
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius) + 4px);
  border: 2px solid color-mix(in oklch, var(--primary), transparent 60%);
  animation: nodeRing 2.2s ease-in-out infinite;
  pointer-events: none;
}
.howanim-org-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px color-mix(in oklch, var(--primary), transparent 50%);
  flex-shrink: 0;
}
.howanim-org-name { font-size: var(--fs-sm); font-weight: 500; color: var(--foreground); }
.howanim-org-sub {
  font-size: var(--fs-caption);
  font-family: var(--font-mono);
  color: var(--muted-foreground);
  margin-left: 4px;
}

/* howanim run */
.howanim-run { display: flex; flex-direction: column; gap: 0.75rem; }
.howanim-run-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--background-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.howanim-run-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--succeed);
  box-shadow: 0 0 8px color-mix(in oklch, var(--succeed), transparent 30%);
  animation: heroDot 1.8s ease-in-out infinite;
}
.howanim-run-title { font-size: var(--fs-sm); color: var(--foreground); font-weight: 500; }
.howanim-run-mono {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  color: var(--succeed);
}
.howanim-run-bar {
  height: 4px;
  background: var(--border-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.howanim-run-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), color-mix(in oklch, var(--primary), var(--awaits) 30%));
  transition: width 400ms var(--ease-out-soft);
}
.howanim-run-rows { display: flex; flex-direction: column; gap: 4px; }
.howanim-run-row {
  display: grid;
  grid-template-columns: 3.25rem 4.5rem 1fr;
  gap: 0.5rem;
  padding: 5px 8px;
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 280ms var(--ease-out-soft), transform 280ms var(--ease-out-soft);
}
.howanim-run-row-in { opacity: 1; transform: translateX(0); }
.howanim-run-t { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--muted-foreground); }
.howanim-run-r { color: var(--foreground); }
.howanim-run-m { color: var(--foreground-subtle); }
.howanim-run-row-done {
  background: color-mix(in oklch, var(--succeed-soft), transparent 30%);
  border-color: color-mix(in oklch, var(--succeed), transparent 70%);
}
.howanim-run-row-done .howanim-run-r { color: color-mix(in oklch, var(--succeed), black 18%); }

/* =========================================================
   SECTION 03 · Team
   ========================================================= */
.section-team { background: var(--background); }
.team-anim {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}
.team-anim-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}
.team-toolbar-label {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  color: var(--muted-foreground);
  text-transform: uppercase;
}
.team-toolbar-btn {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  cursor: default;
}
.team-anim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.875rem;
  min-height: 220px;
}
.team-card {
  border: 1px solid var(--border);
  background: var(--elevated);
  border-radius: var(--radius);
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  box-shadow: var(--shadow-xs);
  transition: transform 300ms var(--ease-out-soft), opacity 300ms var(--ease-out-soft), border-color 300ms var(--ease-out-soft);
  animation: cardEnter 420ms var(--ease-out-soft) both;
}
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.team-card-hiring { animation: cardHire 500ms var(--ease-spring) both; border-color: color-mix(in oklch, var(--primary), transparent 60%); }
@keyframes cardHire {
  0% { opacity: 0; transform: translateY(12px) scale(0.9); box-shadow: 0 0 0 0 color-mix(in oklch, var(--primary), transparent 60%); }
  60% { opacity: 1; transform: translateY(-2px) scale(1.02); box-shadow: 0 0 0 6px color-mix(in oklch, var(--primary), transparent 85%); }
  100% { opacity: 1; transform: translateY(0) scale(1); box-shadow: var(--shadow-xs); }
}
.team-card-archiving {
  opacity: 0.5;
  border-color: var(--border-subtle);
  background: var(--muted);
  animation: cardArchive 700ms var(--ease-out-soft) forwards;
}
@keyframes cardArchive {
  to { opacity: 0; transform: translateX(14px) scale(0.96); }
}
.team-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.team-card-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px color-mix(in oklch, var(--primary), transparent 50%);
}
.team-card[data-status="done"] .team-card-dot { background: var(--muted-foreground); box-shadow: none; }
.team-card-name { font-size: var(--fs-body); font-weight: 500; color: var(--foreground); }
.team-card-op {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--muted-foreground);
}
.team-card-desc { font-size: var(--fs-sm); color: var(--foreground-subtle); }
.team-card-slot { display: flex; flex-direction: column; gap: 4px; }
.team-card-slot-label {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.team-card-slot-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.team-skill, .team-mcp {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--muted);
  color: var(--muted-foreground);
  border: 1px solid var(--border-subtle);
  letter-spacing: 0;
}
.team-mcp {
  background: color-mix(in oklch, var(--info-soft), transparent 30%);
  color: color-mix(in oklch, var(--info), black 20%);
  border-color: transparent;
}
.team-anim-footnote {
  margin-top: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--muted-foreground);
  letter-spacing: 0;
}
.team-anim-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.team-anim-dot-skill { background: var(--primary); }
.team-anim-dot-mcp { background: var(--info); }
.team-anim-dot-archive { background: var(--muted-foreground); }
.team-anim-sep { opacity: 0.4; }

.team-points {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.team-point {
  padding: 1rem 1.125rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--card);
}
.team-point-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.375rem;
}
.team-point p { font-size: var(--fs-sm); color: var(--foreground-subtle); line-height: var(--lh-relaxed); }

/* =========================================================
   SECTION 04 · Autonomy (mirrors product AutonomyModeSelector)
   ========================================================= */
.section-modes { background: var(--background-2); }

/* Selector still-life (faithful to components/AutonomyModeSelector.tsx) */
.autonomy-picker {
  max-width: 40rem;
  margin: 0 auto 2.25rem;
  padding: 1rem 1.125rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.autonomy-picker-label {
  font-size: 12px;
  color: var(--muted-foreground);
}
.autonomy-picker-opts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.autonomy-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  background: var(--background);
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
  text-align: left;
  cursor: default;
  transition: color 180ms ease, border-color 180ms ease;
}
.autonomy-opt-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  color: inherit;
}
.autonomy-opt-desc {
  font-size: 10.5px;
  line-height: 1.35;
  color: color-mix(in oklch, var(--muted-foreground), transparent 15%);
}
.autonomy-opt-active {
  border-color: var(--primary);
  background: color-mix(in oklch, var(--primary), transparent 90%);
  color: var(--foreground);
}
.autonomy-opt-active .autonomy-opt-title { color: var(--foreground); }
.autonomy-picker-hint {
  margin: 0;
  font-size: 10.5px;
  color: color-mix(in oklch, var(--muted-foreground), transparent 15%);
}

/* Explanatory 3 rows (each mode detail) */
.autonomy-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.autonomy-row {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: box-shadow 240ms var(--ease-out-soft);
}
.autonomy-row:hover { box-shadow: var(--shadow-md); }
.autonomy-row-accent {
  background: linear-gradient(180deg, color-mix(in oklch, var(--primary-soft), transparent 60%), var(--card));
  border-color: color-mix(in oklch, var(--primary), transparent 55%);
  box-shadow: var(--shadow-md);
}
.autonomy-row-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.autonomy-row-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--foreground);
}
.autonomy-row-desc {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--foreground-subtle);
  line-height: var(--lh-relaxed);
}
.autonomy-row-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.autonomy-row-list li {
  position: relative;
  padding-left: 1rem;
  font-size: var(--fs-sm);
  color: var(--foreground-subtle);
  line-height: 1.55;
}
.autonomy-row-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--muted-foreground), transparent 40%);
}


/* =========================================================
   SECTION 05 · Ecosystem
   ========================================================= */
.section-eco { background: var(--background); }
.eco-hub {
  position: relative;
  height: clamp(320px, 42vw, 440px);
  border: 1px solid var(--border);
  background:
    radial-gradient(60% 70% at 50% 50%, color-mix(in oklch, var(--primary-soft), transparent 50%), transparent 70%),
    var(--card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.eco-hub-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.eco-hub-line {
  fill: none;
  stroke: color-mix(in oklch, var(--primary), transparent 60%);
  stroke-width: 1.25;
  stroke-dasharray: 4 4;
  opacity: 0;
  animation: ecoLine 2.2s linear infinite;
}
@keyframes ecoLine {
  0% { opacity: 0; stroke-dashoffset: 0; }
  30% { opacity: 0.7; }
  100% { opacity: 0; stroke-dashoffset: -80; }
}
.eco-hub-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.eco-hub-ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklch, var(--primary), transparent 70%);
  transform: translate(-50%, -50%);
  animation: ecoRing 3.4s ease-in-out infinite;
}
.eco-hub-ring-2 { width: 200px; height: 200px; animation-delay: 0.8s; opacity: 0.6; }
@keyframes ecoRing {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.15; }
}
.eco-hub-core {
  position: relative;
  padding: 1rem 1.25rem;
  background: var(--elevated);
  border: 1px solid color-mix(in oklch, var(--primary), transparent 50%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 180px;
}
.eco-hub-core-name { font-size: var(--fs-body-lg); font-weight: 500; color: var(--foreground); }
.eco-hub-core-sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--primary);
  letter-spacing: var(--tracking-wide);
}
.eco-chip {
  position: absolute;
  left: var(--cx); top: var(--cy);
  transform: translate(-50%, -50%);
  padding: 6px 12px;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  white-space: nowrap;
  animation: ecoChip 3.6s ease-in-out infinite;
}
@keyframes ecoChip {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-3px); }
}
.eco-chip[data-eco="1"] { animation-delay: 0s; }
.eco-chip[data-eco="2"] { animation-delay: 0.4s; }
.eco-chip[data-eco="3"] { animation-delay: 0.8s; }
.eco-chip[data-eco="4"] { animation-delay: 1.2s; }
.eco-chip[data-eco="5"] { animation-delay: 1.6s; }
.eco-chip[data-eco="6"] { animation-delay: 2.0s; }
.eco-chip[data-eco="7"] { animation-delay: 2.4s; }
.eco-chip[data-eco="8"] { animation-delay: 2.8s; }
.eco-chip-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary-deep);
}
.eco-chip-v { font-size: var(--fs-sm); color: var(--foreground); }

.eco-points {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.eco-point {
  padding: 1rem 1.125rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--card);
}
.eco-point-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.375rem;
}
.eco-point p { font-size: var(--fs-sm); color: var(--foreground-subtle); line-height: var(--lh-relaxed); }

/* =========================================================
   SECTION 06 · Runtime
   ========================================================= */
.section-runtime { background: var(--background-2); }
.runtime-map {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}
.runtime-axis {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
  margin-bottom: 1rem;
}
.runtime-axis-label {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--card);
  color: var(--muted-foreground);
}
.runtime-axis-label-local { color: color-mix(in oklch, var(--succeed), black 15%); background: var(--succeed-soft); border-color: transparent; }
.runtime-axis-label-hybrid { color: var(--primary-deep); background: var(--primary-soft); border-color: transparent; }
.runtime-axis-label-cloud { color: color-mix(in oklch, var(--info), black 15%); background: var(--info-soft); border-color: transparent; }
.runtime-axis-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in oklch, var(--succeed), transparent 60%), color-mix(in oklch, var(--primary), transparent 50%), color-mix(in oklch, var(--info), transparent 60%));
}

.runtime-swim { display: flex; flex-direction: column; gap: 0.875rem; }
.runtime-swim-row {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.runtime-swim-row:last-child { border-bottom: none; }
.runtime-swim-role {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--foreground);
  letter-spacing: -0.01em;
  line-height: 1.5;
}
.runtime-swim-where {
  font-size: var(--fs-sm);
  color: var(--muted-foreground);
  line-height: var(--lh-relaxed);
}
.runtime-swim-track {
  position: relative;
  height: 34px;
  border-radius: var(--radius-pill);
  background: var(--background-2);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}
.runtime-swim-track::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    color-mix(in oklch, var(--succeed-soft), transparent 40%) 0%,
    transparent 45%,
    transparent 55%,
    color-mix(in oklch, var(--info-soft), transparent 40%) 100%);
  pointer-events: none;
}
.runtime-swim-chip {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) translateX(-8px);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  background: var(--elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 420ms var(--ease-out-soft), transform 420ms var(--ease-spring);
}
.runtime-swim-chip-in { opacity: 1; transform: translate(-50%, -50%) translateX(0); }
.runtime-swim-chip[data-rt="local"] { background: var(--succeed-soft); color: color-mix(in oklch, var(--succeed), black 18%); border-color: transparent; }
.runtime-swim-chip[data-rt="hybrid"] { background: var(--primary-soft); color: var(--primary-deep); border-color: transparent; }
.runtime-swim-chip[data-rt="cloud"] { background: var(--info-soft); color: color-mix(in oklch, var(--info), black 18%); border-color: transparent; }

.runtime-points {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.runtime-point {
  padding: 1rem 1.125rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--card);
}
.runtime-point-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.375rem;
}
.runtime-point p { font-size: var(--fs-sm); color: var(--foreground-subtle); line-height: var(--lh-relaxed); }

/* =========================================================
   SECTION 07 · Compounding
   ========================================================= */
.section-comp { background: var(--background); }
.comp-anim {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: stretch;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}
.comp-anim-col { display: flex; flex-direction: column; gap: 0.75rem; }
.comp-anim-col-head {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.comp-anim-list { display: flex; flex-direction: column; gap: 0.5rem; }
.comp-anim-card {
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--background-2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms var(--ease-out-soft), transform 320ms var(--ease-out-soft);
}
.comp-anim-card.comp-anim-in { opacity: 1; transform: translateY(0); }
.comp-anim-card-title { font-size: var(--fs-sm); color: var(--foreground); font-weight: 500; }
.comp-anim-card-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--muted-foreground);
  margin-top: 2px;
}

.comp-anim-arrow {
  position: relative;
  width: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.comp-anim-arrow-line {
  display: block;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary) 20%, var(--primary) 80%, transparent);
  position: relative;
}
.comp-anim-arrow-line::after {
  content: "";
  position: absolute;
  right: 10%;
  top: 50%;
  width: 10px; height: 10px;
  border-top: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
  transform: translateY(-50%) rotate(45deg);
}
.comp-anim-arrow-label {
  position: absolute;
  bottom: 30%;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  color: var(--primary);
}

.comp-anim-tplbox { display: flex; flex-direction: column; gap: 0.5rem; }
.comp-anim-tpl {
  padding: 0.625rem 0.875rem;
  border: 1px solid color-mix(in oklch, var(--primary), transparent 70%);
  border-radius: var(--radius-sm);
  background: color-mix(in oklch, var(--primary-soft), transparent 60%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms var(--ease-out-soft), transform 320ms var(--ease-out-soft);
}
.comp-anim-tpl.comp-anim-in { opacity: 1; transform: translateY(0); }
.comp-anim-tpl-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--primary);
}
.comp-anim-tpl-name { font-size: var(--fs-sm); font-weight: 500; color: var(--foreground); }
.comp-anim-tpl-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--muted-foreground);
  margin-top: 2px;
}
.comp-anim-launch {
  margin-top: auto;
  padding: 0.625rem 0.875rem;
  background: var(--elevated);
  border: 1px dashed color-mix(in oklch, var(--primary), transparent 60%);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--foreground-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.comp-anim-launch span { color: var(--primary); font-family: var(--font-mono); }
.comp-anim-launch-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px color-mix(in oklch, var(--primary), transparent 50%);
  animation: heroDot 1.8s ease-in-out infinite;
}

.comp-points {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.comp-point {
  padding: 1rem 1.125rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--card);
}
.comp-point-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.375rem;
}
.comp-point p { font-size: var(--fs-sm); color: var(--foreground-subtle); line-height: var(--lh-relaxed); }

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--background-2);
  text-align: center;
  overflow: hidden;
}
.final-cta-inner { position: relative; z-index: 1; }
.final-cta-glow {
  position: absolute;
  left: 50%; top: 40%;
  width: 560px; height: 280px;
  transform: translate(-50%, -50%);
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in oklch, var(--primary), transparent 75%), transparent 70%);
  filter: blur(30px);
  z-index: 0;
}
.final-cta-title {
  font-size: clamp(1.75rem, 4vw, var(--fs-h1));
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.875rem;
}
.final-cta-sub {
  font-size: var(--fs-body);
  color: var(--foreground-subtle);
  margin-bottom: 1.75rem;
}
.final-cta-ctas {
  display: inline-flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { order: 2; }
  .how-step { grid-template-columns: 1fr; }
  .how-step-reverse .how-step-text { order: 0; }
  .shift-compare { grid-template-columns: 1fr; }
  .shift-sep { display: none; }
  .autonomy-rows { grid-template-columns: 1fr; }
  .autonomy-picker-opts { grid-template-columns: 1fr; }
  .team-points, .eco-points, .runtime-points, .comp-points { grid-template-columns: 1fr; }
  .comp-anim { grid-template-columns: 1fr; }
  .comp-anim-arrow { width: 100%; height: 40px; }
  .comp-anim-arrow-line { width: 100%; }
}

@media (max-width: 640px) {
  .hero { padding: 4rem 0 3rem; }
  .hero-shot-body,
  .hero-shot-body-dash { padding: 1rem 1rem 0.75rem; gap: 1.1rem; }
  .hero-shot-foot { flex-wrap: wrap; }
  .hs-serif { font-size: 1.25rem; }
  .hs-goal-stat { grid-template-columns: 1fr; gap: 0.9rem; }
  .hs-goal-hb { margin-left: 0; }
  .team-anim-grid { grid-template-columns: 1fr; }
  .runtime-swim-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .runtime-swim-role { font-size: var(--fs-body); }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow-dot,
  .howanim-run-dot,
  .comp-anim-launch-dot,
  .shift-goal-dot-run,
  .shift-goal-card-bar i {
    animation: none !important;
  }
  .shift-goal-card-bar i { width: 60%; }
}

/* =========================================================
   v6 · Static product still-lifes
   取代 Section 02/03/05/06 的自创动画结构
   ========================================================= */

/* ---- Section 02 · Step 02 组织图 ---- */
.howanim-org-static {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.howanim-org-root {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-soft), color-mix(in oklch, var(--primary-soft), white 40%));
  border: 1px solid color-mix(in oklch, var(--primary), transparent 60%);
  min-width: 180px;
  text-align: center;
}
.howanim-org-root-name {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--foreground);
}
.howanim-org-root-sub {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--muted-foreground);
}
.howanim-org-line-v {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, color-mix(in oklch, var(--primary), transparent 60%), color-mix(in oklch, var(--border), transparent 0%));
}
.howanim-org-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
  width: 100%;
}
.howanim-org-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  background: var(--elevated);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
}
.howanim-org-card-name { font-size: var(--fs-sm); font-weight: 500; color: var(--foreground); }
.howanim-org-card-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--muted-foreground);
}

/* Force static visibility for elements that previously relied on IO-added classes */
.howanim-goal-row { opacity: 1; }
.howanim-run-row { opacity: 1; transform: none; }
.comp-anim-card,
.comp-anim-tpl { opacity: 1 !important; transform: none !important; }
.comp-anim-arrow,
.comp-anim-arrow-line { opacity: 1 !important; }
.comp-anim-arrow-line { width: 100% !important; }

/* ---- Section 03 · Team toolbar 文案替代按钮 ---- */
.team-toolbar-meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  color: var(--muted-foreground);
}

/* ---- Section 05 · Ecosystem 3 栏适配网格 ---- */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.eco-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem 1.25rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.eco-col-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}
.eco-col-kind {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--primary);
}
.eco-col-title {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--foreground);
  margin: 0;
}
.eco-col-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.eco-col-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--background-2);
  border: 1px solid var(--border-subtle);
}
.eco-adapter {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--foreground);
}
.eco-col-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--muted-foreground);
  text-align: right;
}
/* CLI 一等公民星标 + 规划中态 + 默认空骨架小注 */
.eco-adapter-star {
  margin-left: 0.4rem;
  font-size: var(--fs-caption);
  color: var(--accent-foreground, #a78bfa);
  font-weight: 600;
}
.eco-adapter-planned {
  color: var(--muted-foreground);
  opacity: 0.65;
  font-style: italic;
}
.eco-col-note {
  margin-top: 0.6rem;
  font-size: var(--fs-caption);
  color: var(--muted-foreground);
  line-height: 1.55;
}
/* CLI vs API 立场说明：成对的两条横排 */
.eco-stance {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0 auto 3rem;
  max-width: var(--container-prose, 760px);
}
.eco-stance-row {
  background: var(--background-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}
.eco-stance-row p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--muted-foreground);
  line-height: 1.65;
}
.eco-stance-tag {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--foreground);
  text-transform: none;
}
.eco-stance-row-muted {
  opacity: 0.85;
}
.eco-stance-row-muted .eco-stance-tag {
  color: var(--muted-foreground);
}
@media (max-width: 720px) {
  .eco-stance { grid-template-columns: 1fr; }
}

/* Runtime 规划中态 */
.runtime-swim-row-planned {
  opacity: 0.55;
}
.runtime-swim-tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.05rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--muted-foreground);
  background: var(--background-2);
  vertical-align: middle;
}

/* ============================================================
   SECTION 08 — VS (定位对比)
   ============================================================ */
.section-vs .section-head { max-width: var(--container-prose); margin: 0 auto 3rem; text-align: center; }
.vs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.vs-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.25rem;
}
.vs-card-head { display: flex; flex-direction: column; gap: 4px; }
.vs-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  color: var(--muted-foreground);
  text-transform: lowercase;
}
.vs-card-name {
  font-size: var(--fs-h4);
  font-weight: 500;
  color: var(--foreground);
  margin: 0;
}
.vs-card-kind {
  font-size: var(--fs-sm);
  color: var(--muted-foreground);
  margin: 0;
}
.vs-card-block { display: flex; flex-direction: column; gap: 0.5rem; }
.vs-card-label {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  color: var(--muted-foreground);
  text-transform: uppercase;
}
.vs-card-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.vs-card-block li {
  font-size: var(--fs-sm);
  color: color-mix(in oklch, var(--foreground), var(--muted-foreground) 20%);
  line-height: 1.6;
  padding-left: 0.875rem;
  position: relative;
}
.vs-card-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted-foreground);
}
.vs-card-self .vs-card-label { color: var(--primary); }
.vs-card-self li::before { background: var(--primary); }
.vs-card-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.25rem 0;
}
.vs-card-more {
  font-size: var(--fs-sm);
  color: var(--primary);
  text-decoration: none;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}
.vs-card-more:hover { color: var(--foreground); }
.vs-disclaimer {
  margin: 2rem auto 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--muted-foreground);
}

@media (max-width: 720px) {
  .eco-grid { grid-template-columns: 1fr; }
  .howanim-org-grid { grid-template-columns: 1fr; }
  .runtime-swim-row { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* =========================================================
   v7 · Hero shot — 可交互（脚本驱动）·  Sidebar + Stats + Activity
   复刻真实 UI：Sidebar.tsx / Layout.tsx / pages/Dashboard.tsx
   ========================================================= */

.hs-shell {
  display: flex;
  min-height: 100%;
  background: var(--card);
}
.hs-side {
  flex: 0 0 124px;
  border-right: 1px solid var(--border-subtle);
  background: color-mix(in oklch, var(--background), var(--card) 60%);
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0 0.5rem;
}
.hs-side-brand {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.45rem 0.7rem 0.6rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: -0.01em;
  color: var(--foreground);
}
.hs-side-wordmark { display: inline-flex; align-items: center; gap: 5px; }
.hs-side-wordmark::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--primary);
  border-radius: 2px;
}
.hs-side-heart { display: inline-flex; gap: 2px; align-items: center; }
.hs-side-heart > span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--primary);
  animation: hsHb 1.6s var(--ease-out-soft) infinite;
}
.hs-side-heart > span:nth-child(2) { animation-delay: 0.15s; }
.hs-side-heart > span:nth-child(3) { animation-delay: 0.3s; }
@keyframes hsHb {
  0%,100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}
.hs-side-section {
  padding: 0.55rem 0.7rem 0.3rem;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.hs-nav {
  position: relative;
  display: flex; align-items: center;
  gap: 0.4rem;
  margin: 1px 5px;
  padding: 0.38rem 0.5rem;
  border: 0; background: transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 11px;
  color: var(--muted-foreground);
  text-align: left;
  cursor: default;
  white-space: nowrap;
  transition: background-color 200ms cubic-bezier(.16,1,.3,1),
              color 200ms cubic-bezier(.16,1,.3,1),
              transform 200ms cubic-bezier(.16,1,.3,1);
}
.hs-nav:active { transform: scale(0.97); }
.hs-nav svg { width: 13px; height: 13px; flex-shrink: 0; opacity: 0.85; transition: opacity 200ms cubic-bezier(.16,1,.3,1); }
.hs-nav-active {
  /* 跟 V2 SidebarNavItem 对齐：primary-soft 板块 + primary 文字 */
  background: var(--primary-soft);
  color: var(--primary);
}
.hs-nav-active svg { opacity: 1; }
.hs-nav-active::before {
  content: "";
  position: absolute;
  left: -1px; top: 50%;
  transform: translateY(-50%);
  width: 2.5px; height: 60%;
  border-radius: 0 1.5px 1.5px 0;
  background: var(--primary);
}
.hs-nav-active.hs-nav-pulse::after {
  content: "";
  position: absolute;
  right: 7px; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
  animation: hsNavPulse 2.4s var(--ease-out-soft) infinite;
}
@keyframes hsNavPulse {
  0% { box-shadow: 0 0 0 0 oklch(0.55 0.17 262 / 0.45); }
  70% { box-shadow: 0 0 0 7px oklch(0.55 0.17 262 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.55 0.17 262 / 0); }
}
.hs-nav-badge {
  margin-left: auto;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--destructive);
  color: var(--destructive-foreground);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 15px;
  text-align: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 280ms var(--ease-out-soft), transform 320ms var(--ease-out-soft);
}
.hs-nav-badge.hs-on { opacity: 1; transform: scale(1); }
.hs-side-foot {
  margin-top: auto;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border-subtle);
  display: flex; flex-direction: column;
}

/* 主区列容器：保留 head + body 的纵向叠放 */
.hs-main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}

/* StatCard 行 */
.hs-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.hs-stat {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 0.6rem 0.65rem;
  display: flex; flex-direction: column; gap: 0.3rem;
  min-width: 0;
}
.hs-stat-head {
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--muted-foreground);
}
.hs-stat-val {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--foreground);
}
.hs-stat-foot {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted-foreground);
}
.hs-stat-up { color: var(--succeed); }
.hs-stat-online { color: var(--succeed); }

/* Goal chip */
.hs-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  white-space: nowrap;
}
.hs-chip-running {
  background: var(--primary-soft);
  color: color-mix(in oklch, var(--primary), black 10%);
  border-color: transparent;
}
.dark .hs-chip-running { color: oklch(0.9 0.06 262); }
.hs-chip-running::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: hsDot 2s var(--ease-out-soft) infinite;
}
@keyframes hsDot {
  0%,100% { box-shadow: 0 0 0 0 oklch(0.55 0.17 262 / 0); }
  50% { box-shadow: 0 0 0 4px oklch(0.55 0.17 262 / 0.18); }
}

/* Goal frame fade-in（脚本启动时加 .hs-on） */
.hs-goal { opacity: 0.4; transition: opacity 420ms var(--ease-out-soft); }
.hs-goal.hs-on { opacity: 1; }

/* Goal progress block (替代 hs-goal-stat 双列) */
.hs-goal-progress-block { margin-top: 0.85rem; }

/* Progress shimmer（仅在 hs-progress-shimmer 上） */
.hs-progress-shimmer { position: relative; overflow: hidden; }
.hs-progress-shimmer i { position: relative; }
.hs-progress-shimmer i::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.4), transparent);
  animation: hsProgShim 2.2s var(--ease-out-soft) infinite;
}
@keyframes hsProgShim {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Submit button — 一次性 shimmer 扫光（脚本提交目标时触发） */
.hs-btn-primary { position: relative; overflow: hidden; }
.hs-btn-primary.hs-shimmer-once::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%,
    oklch(1 0 0 / 0.32) 48%, oklch(1 0 0 / 0.45) 50%,
    oklch(1 0 0 / 0.32) 52%, transparent 70%);
  transform: translateX(-110%);
  animation: hsShim 1100ms var(--ease-out-soft) forwards;
  pointer-events: none;
}
@keyframes hsShim {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(110%); }
}

/* 最近动态 */
.hs-activity-title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0 0 0.45rem;
  color: var(--foreground);
}
.hs-activity-list {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  min-height: 64px;
}
.hs-activity-row {
  display: grid;
  grid-template-columns: 24px 56px 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.42rem 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px;
  animation: hsActIn 520ms var(--ease-out-soft), hsActHL 920ms var(--ease-out-soft);
}
.hs-activity-row:last-child { border-bottom: 0; }
.hs-activity-icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--muted);
  display: grid; place-items: center;
  color: var(--foreground);
  opacity: 0.85;
}
.hs-activity-icon svg { width: 12px; height: 12px; }
.hs-activity-time {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted-foreground);
}
.hs-activity-text { color: var(--foreground); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-activity-text .who { font-weight: 500; }
.hs-activity-text .verb { color: var(--muted-foreground); }
@keyframes hsActIn {
  0%   { opacity: 0; transform: translateY(-10px) scale(0.985); filter: blur(3px); }
  60%  { opacity: 1; transform: translateY(2px) scale(1.002); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes hsActHL {
  0%   { box-shadow: inset 2px 0 0 var(--primary);
         background-color: color-mix(in oklab, var(--accent) 55%, transparent); }
  100% { box-shadow: inset 0 0 0 transparent; background-color: transparent; }
}

/* 整体淡入淡出（loop reset 用） */
.hero-shot { transition: opacity 350ms var(--ease-out-soft); }
.hero-shot[data-hero-anim="fade"] { opacity: 0; }
.hero-shot[data-hero-anim="reset"],
.hero-shot[data-hero-anim="play"] { opacity: 1; }

/* 移动端：sidebar / stats / activity 隐藏，只保留 compose + goal */
@media (max-width: 760px) {
  .hs-side { display: none; }
  .hs-stats { display: none; }
  .hs-activity { display: none; }
  .hero-shot-body-dash { padding: 1rem 1rem 0.85rem; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-progress-shimmer i::after,
  .hs-btn-primary.hs-shimmer-once::before,
  .hs-side-heart > span,
  .hs-chip-running::before,
  .hs-nav-active.hs-nav-pulse::after { animation: none !important; }
  .hs-activity-row { animation: none !important; }
  .hs-side-heart > span { opacity: 0.6; }
}

/* ============================================================
   v8 — howItWorks 第3卡（持续执行）：复刻真实 ActivityRow
   ============================================================ */
.howanim-run-v2 {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.howanim-run-v2 .howanim-run-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.howanim-run-head-l {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.howanim-run-v2 .howanim-run-title {
  font-family: var(--font-serif-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--foreground);
}
.howanim-run-goalid {
  font-family: var(--font-mono-tnum);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
}
.howanim-run-chip { font-size: 11px !important; }
.howanim-run-v2 .howanim-run-bar {
  height: 4px;
  background: var(--muted);
  border-radius: 999px;
  overflow: hidden;
}
.howanim-run-v2 .howanim-run-bar > i {
  display: block;
  height: 100%;
  background: var(--succeed, oklch(0.7 0.16 145));
  border-radius: 999px;
}
.howanim-run-v2 .howanim-run-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.howanim-run-rowv2 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  opacity: 1;
  transform: translateY(0);
}
.howanim-run-rowv2:last-child { border-bottom: none; }

/* 飞入动画：一次性、由 JS 加 .howanim-run-rowv2-in 触发 */
.howanim-run-rowv2-in {
  opacity: 0;
  transform: translateY(8px);
  animation: howRunRowIn 480ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes howRunRowIn {
  to { opacity: 1; transform: translateY(0); }
}

.howanim-run-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--muted);
  border-radius: 8px;
  color: var(--muted-foreground);
  flex-shrink: 0;
}
.howanim-run-icon svg { width: 14px; height: 14px; }

.howanim-run-text {
  flex: 1;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  min-width: 0;
}
.howanim-run-actor {
  font-weight: 500;
  color: var(--foreground);
}
.howanim-run-verb {
  color: var(--muted-foreground);
}
.howanim-run-entity {
  font-weight: 500;
  color: var(--foreground);
}
.howanim-run-time {
  font-family: var(--font-mono-tnum, ui-monospace, monospace);
  font-size: 11.5px;
  color: var(--muted-foreground);
  flex-shrink: 0;
  padding-top: 6px;
}

/* 闭环行用 succeed 配色 */
.howanim-run-rowv2-done .howanim-run-icon {
  background: color-mix(in oklch, var(--succeed, oklch(0.7 0.16 145)) 14%, transparent);
  color: var(--succeed, oklch(0.55 0.16 145));
}
.howanim-run-rowv2-done .howanim-run-actor,
.howanim-run-rowv2-done .howanim-run-entity {
  color: color-mix(in oklch, var(--foreground), var(--succeed, oklch(0.55 0.16 145)) 25%);
}

/* ============================================================
   v8 — team Agent 卡（复刻真实 AgentCard）
   ============================================================ */
.team-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 760px) {
  .team-grid-v2 { grid-template-columns: 1fr; }
}

.team-card-v2 {
  background: var(--card);
  border-radius: var(--radius-lg, 14px);
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  overflow: hidden;
  /* stagger 入场起始态 */
  opacity: 0;
  transform: translateY(8px);
}
/* .beam 自带 border:1px solid transparent + ::before 旋转 — 让出 border */
.team-card-v2.beam { border-color: transparent; }

.team-card-v2-in {
  animation: teamCardIn 520ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes teamCardIn {
  to { opacity: 1; transform: translateY(0); }
}

.team-card-v2 .team-card-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px 12px;
}
.team-card-mono {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-serif-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--foreground);
}
.team-card-mid {
  flex: 1;
  min-width: 0;
}
.team-card-line1 {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.team-card-line1-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.team-card-v2 .team-card-name {
  font-family: var(--font-serif-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--foreground);
}
.team-card-role {
  font-size: 12px;
  color: var(--muted-foreground);
}
.team-card-hb { /* heartbeat icon — 已在 tokens.css */
  font-size: 0;
}
.team-card-v2 .team-card-title {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted-foreground);
  line-height: 1.5;
}
.team-card-v2 .team-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 14px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono-tnum, ui-monospace, monospace);
  font-size: 11px;
  color: var(--muted-foreground);
}
.team-card-detail {
  margin-left: auto;
}

@media (prefers-reduced-motion: reduce) {
  .howanim-run-rowv2-in,
  .team-card-v2-in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .team-card-v2 { opacity: 1; transform: none; }
}

/* ============================================================
   SECTION 04 — ORG CANVAS（5 层组织 · 复刻真实 BoardGraph 视觉）
   ============================================================ */
.section-orgcanvas {
  padding-bottom: 5rem;
}
.section-orgcanvas .section-head {
  max-width: var(--container-prose, 760px);
  margin: 0 auto 2.5rem;
  text-align: center;
}

.orgcanvas-frame {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 760px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--background-2, var(--card));
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
/* React Flow 风格的 dot grid 背景 */
.orgcanvas-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border-subtle, rgba(255,255,255,0.05)) 1px, transparent 1.5px);
  background-size: 18px 18px;
  pointer-events: none;
  opacity: 0.7;
}
/* SVG 连线层 */
.orgcanvas-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.oc-edge {
  fill: none;
  stroke: var(--border);
  stroke-width: 1.4;
  stroke-linecap: round;
}
/* 数据流光：仅在 data-flow=1 的边上 */
.oc-edge[data-flow="1"] {
  stroke: url(#oc-edge-grad);
  stroke-width: 1.6;
  stroke-dasharray: 6 8;
  animation: oc-edge-flow 2.4s linear infinite;
}
@keyframes oc-edge-flow {
  to { stroke-dashoffset: -28; }
}

.orgcanvas-nodes {
  position: relative;
  width: 100%;
  height: 100%;
}

/* —— 节点基础形态：跟 BoardGraph 真实卡片对齐 —— */
.oc-node {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  transition: box-shadow 200ms;
  animation: oc-node-enter var(--duration-slow, 480ms) var(--ease-spring-soft, cubic-bezier(0.34,1.56,0.64,1)) backwards;
}
@keyframes oc-node-enter {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
.oc-node[data-enter] { animation-delay: 0ms; }
.oc-node[data-enter="80"]  { animation-delay: 80ms; }
.oc-node[data-enter="200"] { animation-delay: 200ms; }
.oc-node[data-enter="320"] { animation-delay: 320ms; }
.oc-node[data-enter="380"] { animation-delay: 380ms; }
.oc-node[data-enter="440"] { animation-delay: 440ms; }
.oc-node[data-enter="500"] { animation-delay: 500ms; }
.oc-node[data-enter="600"] { animation-delay: 600ms; }
.oc-node[data-enter="660"] { animation-delay: 660ms; }

.oc-node-company   { width: 160px; }
.oc-node-conductor { width: 160px; }
.oc-node-manager   { width: 160px; }
.oc-node-agent     { width: 200px; }
.oc-node-subagent  { width: 160px; }

.oc-node:hover {
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--primary) 18%, transparent), var(--shadow-sm);
}

/* —— 左侧状态条 —— */
.oc-stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
}
.oc-stripe-running   { background: var(--primary, #5a4fcf); }
.oc-stripe-awaits    { background: #d97706; }
.oc-stripe-failed    { background: #dc2626; }
.oc-stripe-idle      { background: var(--muted-foreground, #71717a); }
.oc-stripe-succeeded { background: #10b981; }

/* —— 节点正文 —— */
.oc-node-body {
  padding: 0.55rem 0.7rem 0.5rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.oc-node-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
  overflow: hidden;
}
.oc-node-name {
  font-size: var(--fs-sm, 13px);
  font-weight: 500;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.oc-node-name-sm { font-size: 12px; }
.oc-node-tag {
  font-family: var(--font-mono, ui-monospace);
  font-size: 10px;
  color: var(--muted-foreground);
  background: var(--background-2, var(--muted));
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
}
.oc-node-task {
  font-size: 11px;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oc-node-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-mono, ui-monospace);
  font-size: 10.5px;
  color: var(--muted-foreground);
}

/* —— 状态色点（跟 stripe 同色，但圆点） —— */
.oc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.oc-dot-running   { background: var(--primary, #5a4fcf); box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 30%, transparent); animation: oc-dot-pulse 1.8s ease-in-out infinite; }
.oc-dot-awaits    { background: #d97706; }
.oc-dot-idle      { background: var(--muted-foreground, #71717a); }
.oc-dot-succeeded { background: #10b981; }
@keyframes oc-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 2px color-mix(in oklch, var(--primary) 25%, transparent); }
  50%      { box-shadow: 0 0 0 5px color-mix(in oklch, var(--primary) 5%, transparent); }
}

/* —— monogram（员工首字符方块） —— */
.oc-mono {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--muted, var(--background-2));
  color: var(--foreground);
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.oc-mono-sm {
  width: 18px;
  height: 18px;
  font-size: 10px;
}

/* —— chip —— */
.oc-chip {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.oc-chip-running   { background: color-mix(in oklch, var(--primary) 18%, transparent); color: var(--primary); }
.oc-chip-idle      { background: color-mix(in oklch, var(--muted-foreground) 18%, transparent); color: var(--muted-foreground); }
.oc-chip-succeeded { background: color-mix(in oklch, #10b981 18%, transparent); color: #10b981; }

/* —— 进度条 —— */
.oc-node-progress {
  height: 3px;
  background: var(--muted, var(--background-2));
  border-radius: 999px;
  overflow: hidden;
  margin: 0.1rem 0 0.05rem;
}
.oc-node-progress > i {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}
.oc-node-progress > i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: oc-progress-shimmer 1.6s linear infinite;
}
@keyframes oc-progress-shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* —— 心跳（重用 .heartbeat 同款，体积更小） —— */
.oc-hb {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.oc-hb > span {
  width: 3px;
  height: 8px;
  background: var(--primary);
  border-radius: 1px;
  opacity: 0.4;
  animation: oc-hb-bar 1.2s ease-in-out infinite;
}
.oc-hb > span:nth-child(2) { animation-delay: 0.15s; }
.oc-hb > span:nth-child(3) { animation-delay: 0.3s; }
@keyframes oc-hb-bar {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6); }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* —— 待办 badge（右上角红点） —— */
.oc-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  display: grid;
  place-items: center;
  border: 2px solid var(--background, var(--card));
  box-shadow: 0 0 0 4px color-mix(in oklch, #dc2626 20%, transparent);
}

/* —— 底部说明 —— */
.orgcanvas-foot {
  max-width: var(--container-prose, 760px);
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: var(--fs-sm, 13px);
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* 移动端：组织画布缩放保持视觉，scroll 横向 */
@media (max-width: 980px) {
  .orgcanvas-frame {
    height: 620px;
    overflow: auto;
  }
  .orgcanvas-frame .orgcanvas-nodes,
  .orgcanvas-frame .orgcanvas-edges {
    width: 1200px;
    height: 760px;
  }
}
