/* ═══════════════════ Landing Page — CSS ═══════════════════ */
/* Design tokens aligned with dashboard/css/variables.css */

:root {
  --lp-primary: #0052D9;
  --lp-primary-light: #3D80FF;
  --lp-primary-lighter: #6EA1FF;
  --lp-primary-dark: #0042AB;
  --lp-on-primary: #fff;
  --lp-surface: #ffffff;
  --lp-surface-1: #f8f9fc;
  --lp-surface-2: #f1f2f8;
  --lp-surface-3: #e8e9f0;
  --lp-on-surface: #1a1a2e;
  --lp-on-surface-secondary: #5f6368;
  --lp-outline: #dadce0;
  --lp-bg: #fafafa;
  --lp-hero-bg: #f0f4ff;
  --lp-card-bg: rgba(255, 255, 255, 0.7);
  --lp-card-border: rgba(0, 82, 217, 0.08);
  --lp-card-shadow: 0 4px 24px rgba(0, 82, 217, 0.06);
  --lp-glass-bg: rgba(255, 255, 255, 0.6);
  --lp-glass-border: rgba(255, 255, 255, 0.3);
  --lp-gradient-text: linear-gradient(135deg, #0042AB, #0052D9, #3D80FF);
  --lp-gradient-btn: linear-gradient(135deg, #0042AB, #0052D9);
  --lp-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --lp-font-mono: 'SF Mono', 'Cascadia Code', Consolas, monospace;
  --lp-radius-sm: 8px;
  --lp-radius-md: 12px;
  --lp-radius-lg: 16px;
  --lp-radius-xl: 24px;
  --lp-nav-height: 64px;
  --lp-max-width: 1200px;
  --lp-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════ Dark Mode ═══════════════════ */
[data-theme="dark"] {
  --lp-primary: #6EA1FF;
  --lp-primary-light: #A3C4FF;
  --lp-primary-lighter: #D4E4FF;
  --lp-primary-dark: #3D80FF;
  --lp-on-primary: #002260;
  --lp-surface: #1c1b1f;
  --lp-surface-1: #211f26;
  --lp-surface-2: #2b2930;
  --lp-surface-3: #36343b;
  --lp-on-surface: #e6e1e5;
  --lp-on-surface-secondary: #cac4d0;
  --lp-outline: #49454f;
  --lp-bg: #0d1b2e;
  --lp-hero-bg: #0f1d30;
  --lp-card-bg: rgba(33, 31, 38, 0.7);
  --lp-card-border: rgba(110, 161, 255, 0.12);
  --lp-card-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --lp-glass-bg: rgba(33, 31, 38, 0.6);
  --lp-glass-border: rgba(110, 161, 255, 0.15);
  --lp-gradient-text: linear-gradient(135deg, #3D80FF, #6EA1FF, #A3C4FF);
  --lp-gradient-btn: linear-gradient(135deg, #3D80FF, #6EA1FF);
}

/* ═══════════════════ Reset & Base ═══════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--lp-font);
  background: var(--lp-bg);
  color: var(--lp-on-surface);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
img { max-width: 100%; height: auto; }

/* ═══════════════════ Buttons ═══════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--lp-gradient-btn);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform var(--lp-transition), box-shadow var(--lp-transition);
  box-shadow: 0 2px 8px rgba(0, 82, 217, 0.2);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 82, 217, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: transparent;
  color: var(--lp-primary);
  border: 1.5px solid var(--lp-primary);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: background var(--lp-transition), transform var(--lp-transition);
}
.btn-secondary:hover {
  background: rgba(0, 82, 217, 0.06);
  transform: translateY(-1px);
}

.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ═══════════════════ Navigation ═══════════════════ */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--lp-nav-height);
  z-index: 1000;
  transition: background var(--lp-transition), backdrop-filter var(--lp-transition), box-shadow var(--lp-transition);
}
.landing-nav.scrolled {
  background: var(--lp-glass-bg);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 1px 0 var(--lp-outline);
}

.nav-inner {
  max-width: var(--lp-max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
@media (max-width: 768px) {
  .nav-inner { padding: 0 16px; }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo { height: 28px; width: auto; }
.nav-logo-dark { display: none; }
[data-theme="dark"] .nav-logo-light { display: none; }
[data-theme="dark"] .nav-logo-dark { display: block; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-link {
  font-size: 14px;
  color: var(--lp-on-surface-secondary);
  transition: color var(--lp-transition);
}
.nav-link:hover { color: var(--lp-primary); }

.nav-cta { font-size: 13px; padding: 8px 20px; }

/* Theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--lp-transition);
}
.theme-toggle:hover { background: var(--lp-surface-2); }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* ═══════════════════ Global Background (dot-grid, always visible) ═══════════════════ */
.global-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.global-bg canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ═══════════════════ Hero Section ═══════════════════ */
.hero-section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--lp-nav-height) + 40px) 24px 60px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--lp-max-width);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 1023px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}

.hero-text { opacity: 0; animation: heroTextIn 1s ease forwards 0.3s; }
/* 渐变裁剪只放在叶子 span 上：容器若也用 background-clip:text，
   会把 roller 的字形二次绘制到容器原点，出现重影 */
.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
}
@media (max-width: 1023px) {
  .hero-title { justify-content: center; }
}
.hero-title-static {
  flex: none;
  white-space: nowrap;
  background: var(--lp-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title-roller {
  flex: none;
  display: block;
  height: 1.2em;
  overflow: hidden;
}
.roller-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.roller-word {
  flex: none;
  height: 1.2em;
  line-height: 1.2;
  white-space: nowrap;
  background: var(--lp-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  transition: opacity 0.6s ease;
}
.roller-word.active {
  opacity: 1;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--lp-on-surface-secondary);
  margin-bottom: 12px;
  font-weight: 500;
}
.hero-desc {
  font-size: 15px;
  color: var(--lp-on-surface-secondary);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}
@media (max-width: 1023px) {
  .hero-desc { margin: 0 auto 32px; }
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 1023px) {
  .hero-actions { justify-content: center; }
}

.hero-demo { opacity: 0; animation: heroDemoIn 0.8s ease forwards 0.8s; }

/* Demo window (shared between hero and capabilities) */
.demo-window, .cap-demo-window {
  background: var(--lp-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--lp-card-border);
  border-radius: var(--lp-radius-lg);
  box-shadow: var(--lp-card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.demo-window { height: 420px; }
.cap-demo-window { height: 380px; position: relative; }
@media (max-width: 1023px) {
  .demo-window { height: 360px; }
}
@media (max-width: 640px) {
  .demo-window { height: 300px; }
}

.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--lp-outline);
  background: var(--lp-surface-1);
}
.demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.demo-dot.red { background: #ff5f57; }
.demo-dot.yellow { background: #febc2e; }
.demo-dot.green { background: #28c840; }
.demo-titlebar-text {
  margin-left: 8px;
  font-size: 12px;
  color: var(--lp-on-surface-secondary);
  font-weight: 500;
}

.demo-chat {
  flex: 1;
  min-height: 0;                   /* Allow flex child to shrink & enable overflow scroll */
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity 0.4s ease;
  /* Hide scrollbar but keep scroll behavior */
  scrollbar-width: none;           /* Firefox */
  -ms-overflow-style: none;        /* IE / Edge */
}
.demo-chat::-webkit-scrollbar {
  display: none;                   /* Chrome / Safari / Opera */
}

.demo-input-bar {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--lp-outline);
  background: var(--lp-surface-1);
}
.demo-input-placeholder {
  flex: 1;
  font-size: 13px;
  color: var(--lp-on-surface-secondary);
  opacity: 0.6;
}
.demo-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lp-gradient-btn);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chat bubbles */
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: var(--lp-radius-md);
  font-size: 13px;
  line-height: 1.5;
  animation: msgIn 0.3s ease;
}
.chat-msg.ai {
  max-width: 100%;
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--lp-gradient-btn);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg.ai {
  align-self: flex-start;
  background: var(--lp-surface-2);
  color: var(--lp-on-surface);
  border-bottom-left-radius: 4px;
}
/* AI response rich formatting */
.chat-msg.ai .ai-line {
  line-height: 1.6;
}
.chat-msg.ai .ai-line--empty {
  height: 8px;
}
.chat-msg.ai .ai-line--bullet {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-left: 4px;
}
.chat-msg.ai .ai-line--bullet .ai-bullet {
  color: var(--lp-primary);
  font-weight: 700;
  flex-shrink: 0;
}
.chat-msg.ai .ai-line--highlight {
  font-weight: 500;
  margin-top: 2px;
}

/* ═══════════════════ Dashboard-style Step Bar (inside demo chat) ═══════════════════ */
.chat-msg.tool-call {
  align-self: flex-start;
  background: var(--lp-surface-1);
  border: 1px solid var(--lp-card-border);
  border-radius: var(--lp-radius-sm);
  padding: 0;
  font-size: 12px;
  font-family: var(--lp-font);
  overflow: hidden;
  max-width: 90%;
}
.tool-steps {
  padding: 6px 12px 4px;
}
.tool-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  margin-bottom: 3px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--lp-on-surface-secondary);
  animation: msgIn 0.3s ease both;
}
.tool-step.running {
  color: var(--lp-primary);
}
.tool-step.done {
  color: var(--lp-on-surface-secondary);
}
.tool-step-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
}
.tool-step-icon.spinner {
  border: 1.5px solid rgba(0, 82, 217, 0.15);
  border-top-color: var(--lp-primary);
  animation: aclSpin 0.7s linear infinite;
}
.tool-step-icon.check {
  border: 1.5px solid #1E8E3E;
  background: #1E8E3E;
  color: #fff;
}
.tool-step-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tool-step-dur {
  color: var(--lp-on-surface-secondary);
  font-size: 10px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  min-width: 3em;
  text-align: right;
}
@keyframes aclSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* Thinking / reasoning block */
.chat-msg.thinking {
  align-self: flex-start;
  background: var(--lp-surface-2);
  color: var(--lp-on-surface-secondary);
  font-size: 12px;
  border: 1px solid var(--lp-card-border);
  border-radius: var(--lp-radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.thinking-spinner {
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(0, 82, 217, 0.15);
  border-top-color: var(--lp-primary);
  border-radius: 50%;
  animation: aclSpin 0.7s linear infinite;
  flex-shrink: 0;
}
.thinking-text {
  font-style: italic;
  opacity: 0.8;
}

/* ═══════════════════ Hero Rich Visual Components ═══════════════════ */
.hero-rich-wrapper {
  max-width: 100%;
  width: 100%;
  align-self: flex-start;
  animation: msgIn 0.3s ease;
}
.hero-rich {
  border-radius: var(--lp-radius-md);
  border: 1px solid var(--lp-card-border);
  background: var(--lp-surface-1);
  overflow: hidden;
  font-size: 12px;
}

/* ─── Shared header ─── */
.hrc-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--lp-card-border);
  font-weight: 600;
  font-size: 12px;
  color: var(--lp-on-surface);
}
.hrc-header svg { color: var(--lp-primary); flex-shrink: 0; }
.hrc-status {
  margin-left: auto;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
}
.hrc-status--ok {
  background: rgba(30, 142, 62, 0.1);
  color: #1E8E3E;
}
.hrc-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.hrc-badge--up {
  background: rgba(0, 82, 217, 0.08);
  color: var(--lp-primary);
}
.hrc-time {
  margin-left: auto;
  font-size: 10px;
  font-weight: 400;
  color: var(--lp-on-surface-secondary);
}

/* ─── Action Card (投放) ─── */
.hrc-body { padding: 8px 12px; }
.hrc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid var(--lp-card-border);
}
.hrc-row:last-child { border-bottom: none; }
.hrc-label {
  color: var(--lp-on-surface-secondary);
  font-size: 11px;
}
.hrc-value {
  font-weight: 500;
  font-size: 12px;
  color: var(--lp-on-surface);
}
.hrc-value--hl {
  color: var(--lp-primary);
  font-weight: 700;
}
.hrc-footer {
  padding: 6px 12px;
  border-top: 1px solid var(--lp-card-border);
  background: var(--lp-surface-2);
}
.hrc-tip {
  font-size: 10px;
  color: var(--lp-on-surface-secondary);
}

/* ─── Data Chart (洞察) ─── */
.hrc-chart-area {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 12px 12px 4px;
  height: 100px;
}
.hrc-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
}
.hrc-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hrc-bar {
  width: 100%;
  max-width: 28px;
  border-radius: 4px 4px 0 0;
  background: var(--lp-primary);
  position: relative;
  min-height: 4px;
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hrc-bar--warn {
  background: #ea4335;
}
.hrc-bar-tip {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 600;
  color: var(--lp-on-surface);
  white-space: nowrap;
}
.hrc-chart-label {
  font-size: 9px;
  color: var(--lp-on-surface-secondary);
  white-space: nowrap;
}
.hrc-insights {
  padding: 6px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hrc-insight {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
}
.hrc-insight--warn {
  background: rgba(234, 67, 53, 0.06);
  color: #ea4335;
}
.hrc-insight--ok {
  background: rgba(30, 142, 62, 0.06);
  color: #1E8E3E;
}
.hrc-insight-icon {
  font-size: 11px;
  flex-shrink: 0;
}

/* ─── Status Panel (托管) ─── */
.hrc-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1E8E3E;
  animation: pulse 2s ease infinite;
  flex-shrink: 0;
}
.hrc-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--lp-card-border);
  border-bottom: 1px solid var(--lp-card-border);
}
.hrc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 6px;
  background: var(--lp-surface-1);
}
.hrc-stat-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--lp-on-surface);
  font-variant-numeric: tabular-nums;
}
.hrc-stat-num--green { color: #1E8E3E; }
.hrc-stat-num--orange { color: #e8710a; }
.hrc-stat-label {
  font-size: 10px;
  color: var(--lp-on-surface-secondary);
  margin-top: 2px;
}
.hrc-log {
  padding: 6px 10px 8px;
}
.hrc-log-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  font-size: 11px;
}
.hrc-log-time {
  font-size: 10px;
  color: var(--lp-on-surface-secondary);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
}
.hrc-log-action {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.hrc-log--down { background: rgba(234, 67, 53, 0.08); color: #ea4335; }
.hrc-log--up { background: rgba(30, 142, 62, 0.08); color: #1E8E3E; }
.hrc-log--stop { background: rgba(232, 113, 10, 0.08); color: #e8710a; }
.hrc-log-detail {
  flex: 1;
  color: var(--lp-on-surface-secondary);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dark mode adjustments for hero rich components */
[data-theme="dark"] .hero-rich {
  background: var(--lp-surface-2);
}
[data-theme="dark"] .hrc-stat {
  background: var(--lp-surface-2);
}
[data-theme="dark"] .hrc-footer {
  background: var(--lp-surface-3);
}

/* (cap-chat-fade removed — replaced by card layout) */

/* ═══════════════════ Sections (shared) ═══════════════════ */
.section {
  position: relative;
  z-index: 2;
  background: color-mix(in srgb, var(--lp-bg) 92%, transparent);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  padding: 100px 24px;
}

.section-inner {
  max-width: var(--lp-max-width);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  background: var(--lp-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  text-align: center;
  color: var(--lp-on-surface-secondary);
  font-size: 16px;
  margin-bottom: 48px;
}

/* ═══════════════════ Capabilities — Horizontal Scroll Cards ═══════════════════ */
.capabilities-section {
  overflow: hidden; /* clip the scrolling track */
}
.cap-header {
  text-align: center;
}

/* Viewport — full width, no horizontal scrollbar */
.cap-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 8px 0 16px;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

/* Track — holds original + cloned cards, animates */
.cap-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: capScroll 40s linear infinite;
  will-change: transform;
}
.cap-track:hover,
.cap-track.dragging {
  animation-play-state: paused;
}
@keyframes capScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Individual card — show exactly 3 cards in viewport */
.cap-card {
  flex-shrink: 0;
  width: calc((100vw - 28px * 4) / 3);  /* 3 cards + 2 inner gaps + 2 edge padding */
  max-width: 480px;
  min-height: 500px;
  background: var(--lp-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--lp-card-border);
  border-radius: var(--lp-radius-xl);
  box-shadow: var(--lp-card-shadow);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: default;
  user-select: none;
}
.cap-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 82, 217, 0.12);
}

/* Card header (icon + title row) */
.cap-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cap-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--lp-surface-2);
  color: var(--lp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cap-card-icon svg { width: 22px; height: 22px; }
.cap-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--lp-on-surface);
}

/* Card description */
.cap-card-desc {
  font-size: 14px;
  color: var(--lp-on-surface-secondary);
  line-height: 1.7;
}

/* Mini demo window inside card */
.cap-card-demo {
  flex: 1;
  min-height: 0;
  background: var(--lp-surface-1);
  border: 1px solid var(--lp-outline);
  border-radius: var(--lp-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cap-card-demo .mini-titlebar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--lp-outline);
  background: var(--lp-surface-2);
}
.cap-card-demo .mini-dot {
  width: 7px; height: 7px; border-radius: 50%;
}
.cap-card-demo .mini-dot.r { background: #ff5f57; }
.cap-card-demo .mini-dot.y { background: #febc2e; }
.cap-card-demo .mini-dot.g { background: #28c840; }
.cap-card-demo .mini-title {
  margin-left: 6px;
  font-size: 10px;
  color: var(--lp-on-surface-secondary);
  font-weight: 500;
}
.cap-card-demo .mini-chat {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.cap-card-demo .mini-msg {
  max-width: 88%;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 11.5px;
  line-height: 1.5;
  animation: msgIn 0.3s ease;
}
.cap-card-demo .mini-msg.user {
  align-self: flex-end;
  background: var(--lp-gradient-btn);
  color: #fff;
  border-bottom-right-radius: 3px;
}
.cap-card-demo .mini-msg.ai {
  align-self: flex-start;
  background: var(--lp-surface-3);
  color: var(--lp-on-surface);
  border-bottom-left-radius: 3px;
}
.cap-card-demo .mini-msg.ai .ai-line { line-height: 1.5; }
.cap-card-demo .mini-msg.ai .ai-line--empty { height: 4px; }
.cap-card-demo .mini-msg.ai .ai-line--bullet {
  display: flex; align-items: baseline; gap: 4px; padding-left: 2px;
}
.cap-card-demo .mini-msg.ai .ai-bullet {
  color: var(--lp-primary); font-weight: 700; flex-shrink: 0;
}

/* ═══════════════════ Differentiated Demo Styles ═══════════════════ */

/* --- Shared demo container --- */
.demo-action-card,
.demo-data-chart,
.demo-status-panel,
.demo-multi-channel,
.demo-material-grid {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  font-size: 11.5px;
}

/* ─── 1. Action Card (投放管理) ─── */
.demo-action-card {
  gap: 0;
}
.action-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--lp-surface-2);
  border-radius: 8px 8px 0 0;
  font-weight: 600;
  font-size: 12px;
  color: var(--lp-on-surface);
  border-bottom: 1px solid var(--lp-outline);
}
.action-card-header svg {
  color: var(--lp-primary);
}
.action-card-body {
  padding: 6px 0;
}
.action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--lp-outline) 40%, transparent);
}
.action-row:last-child {
  border-bottom: none;
}
.action-label {
  font-size: 11px;
  color: var(--lp-on-surface-secondary);
  flex-shrink: 0;
}
.action-value {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--lp-on-surface);
  text-align: right;
}
.action-value--highlight {
  color: var(--lp-primary);
  font-weight: 700;
}
.action-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.status-dot--pending {
  background: #febc2e;
  box-shadow: 0 0 4px rgba(254, 188, 46, 0.5);
  animation: pulse 1.5s ease infinite;
}
.status-dot--active {
  background: #28c840;
  box-shadow: 0 0 4px rgba(40, 200, 64, 0.5);
}
.action-card-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--lp-outline);
  margin-top: auto;
}
.action-btn {
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: default;
  border: none;
}
.action-btn--secondary {
  background: var(--lp-surface-2);
  color: var(--lp-on-surface-secondary);
}
.action-btn--primary {
  background: var(--lp-gradient-btn);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 82, 217, 0.2);
}

/* ─── 2. Data Chart (数据洞察) ─── */
.demo-data-chart {
  gap: 6px;
}
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chart-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-on-surface);
}
.chart-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.chart-badge--up {
  background: rgba(40, 200, 64, 0.12);
  color: #1E8E3E;
}
[data-theme="dark"] .chart-badge--up {
  background: rgba(40, 200, 64, 0.15);
  color: #5fe07a;
}
.chart-area {
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 4px 0;
  min-height: 0;
}
.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.chart-bar-wrap {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
}
.chart-bar {
  width: 70%;
  max-width: 28px;
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, var(--lp-primary-light), var(--lp-primary));
  position: relative;
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 4px;
}
.chart-bar:hover {
  opacity: 0.85;
}
.chart-bar-tip {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 600;
  color: var(--lp-on-surface-secondary);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}
.chart-col:hover .chart-bar-tip {
  opacity: 1;
}
.chart-label {
  font-size: 9px;
  color: var(--lp-on-surface-secondary);
}
.chart-metrics {
  display: flex;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid color-mix(in srgb, var(--lp-outline) 50%, transparent);
}
.chart-metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.metric-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.metric-dot--blue { background: var(--lp-primary); }
.metric-dot--green { background: #28c840; }
.metric-dot--orange { background: #ff9800; }
.metric-label {
  font-size: 9px;
  color: var(--lp-on-surface-secondary);
}
.metric-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--lp-on-surface);
}

/* ─── 3. Status Panel (智能托管) ─── */
.demo-status-panel {
  gap: 6px;
}
.status-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--lp-outline) 50%, transparent);
}
.status-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 6px rgba(40, 200, 64, 0.5);
  animation: pulse 1.5s ease infinite;
}
.status-live-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-on-surface);
}
.status-time {
  margin-left: auto;
  font-size: 10px;
  color: var(--lp-on-surface-secondary);
}
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.status-cell {
  background: var(--lp-surface-2);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.status-cell-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--lp-on-surface);
  line-height: 1.2;
}
.status-cell-num small {
  font-size: 10px;
  font-weight: 500;
}
.status-cell-num--green { color: #1E8E3E; }
[data-theme="dark"] .status-cell-num--green { color: #5fe07a; }
.status-cell-num--orange { color: #e67700; }
[data-theme="dark"] .status-cell-num--orange { color: #ffb74d; }
.status-cell-label {
  font-size: 10px;
  color: var(--lp-on-surface-secondary);
}
.status-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.status-log-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--lp-on-surface-secondary);
  margin-bottom: 2px;
}
.status-log-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--lp-surface-2);
}
.log-time {
  font-size: 9px;
  color: var(--lp-on-surface-secondary);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  width: 30px;
}
.log-action {
  font-weight: 600;
  flex-shrink: 0;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
}
.log-action--down {
  background: rgba(230, 119, 0, 0.1);
  color: #e67700;
}
.log-action--up {
  background: rgba(30, 142, 62, 0.1);
  color: #1E8E3E;
}
.log-action--stop {
  background: rgba(255, 87, 34, 0.1);
  color: #ff5722;
}
[data-theme="dark"] .log-action--down { background: rgba(255, 183, 77, 0.12); color: #ffb74d; }
[data-theme="dark"] .log-action--up { background: rgba(95, 224, 122, 0.12); color: #5fe07a; }
[data-theme="dark"] .log-action--stop { background: rgba(255, 87, 34, 0.12); color: #ff8a65; }
.log-detail {
  font-size: 10px;
  color: var(--lp-on-surface-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-next {
  font-size: 10px;
  color: var(--lp-on-surface-secondary);
  text-align: center;
  padding-top: 4px;
  border-top: 1px solid color-mix(in srgb, var(--lp-outline) 50%, transparent);
}
.status-next strong {
  color: var(--lp-primary);
}

/* ─── 4. Multi-Channel (多渠道接入) ─── */
.demo-multi-channel {
  gap: 6px;
}
.channel-card {
  border-radius: 8px;
  border: 1px solid var(--lp-outline);
  overflow: hidden;
}
.channel-card-head {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--lp-on-surface);
  border-bottom: 1px solid color-mix(in srgb, var(--lp-outline) 50%, transparent);
}
.channel-card-head svg {
  color: var(--lp-primary);
  flex-shrink: 0;
}
.channel-tag {
  margin-left: auto;
  font-size: 9px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 82, 217, 0.08);
  color: var(--lp-primary);
}
.channel-tag--warn {
  background: rgba(255, 87, 34, 0.1);
  color: #ff5722;
}
[data-theme="dark"] .channel-tag--warn {
  background: rgba(255, 87, 34, 0.15);
  color: #ff8a65;
}
.channel-tag--ok {
  background: rgba(30, 142, 62, 0.1);
  color: #1E8E3E;
}
[data-theme="dark"] .channel-tag--ok {
  background: rgba(95, 224, 122, 0.12);
  color: #5fe07a;
}
.channel-card-body {
  padding: 6px 8px;
}
.channel-line {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}
.channel-key {
  font-size: 10px;
  color: var(--lp-on-surface-secondary);
}
.channel-val {
  font-size: 11px;
  font-weight: 600;
  color: var(--lp-on-surface);
}
.channel-val--up {
  color: #1E8E3E;
}
[data-theme="dark"] .channel-val--up {
  color: #5fe07a;
}
.channel-alert {
  font-size: 11px;
  font-weight: 500;
  color: var(--lp-on-surface);
  padding: 2px 0;
}
.channel-alert-sub {
  font-size: 10px;
  color: var(--lp-on-surface-secondary);
}

/* Channel card accent borders */
.channel-card--wecom { border-left: 3px solid var(--lp-primary); }
.channel-card--qq { border-left: 3px solid #ff5722; }
.channel-card--wx { border-left: 3px solid #28c840; }

/* ─── 5. Material Grid (素材飞轮) ─── */
.demo-material-grid {
  gap: 6px;
}
.material-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.material-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-on-surface);
}
.material-count {
  font-size: 10px;
  color: var(--lp-on-surface-secondary);
  background: var(--lp-surface-2);
  padding: 2px 8px;
  border-radius: 999px;
}
.material-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 1;
}
.material-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.material-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.material-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 6px;
}
.material-star {
  position: absolute;
  top: 3px;
  right: 4px;
  font-size: 10px;
  color: #ffd700;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.material-play {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.material-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
}
.material-label {
  font-size: 10px;
  color: var(--lp-on-surface);
  font-weight: 500;
}
.material-ctr {
  font-size: 9px;
  color: var(--lp-on-surface-secondary);
  font-variant-numeric: tabular-nums;
}
.material-footer {
  padding-top: 4px;
  border-top: 1px solid color-mix(in srgb, var(--lp-outline) 50%, transparent);
}
.material-best {
  font-size: 10px;
  color: var(--lp-primary);
  font-weight: 500;
}

/* ═══════════════════ End Differentiated Demo Styles ═══════════════════ */

/* Card bullet points */
.cap-card-points {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}
.cap-card-points .point {
  font-size: 13px;
  color: var(--lp-on-surface);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cap-card-points .point-check {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(0, 82, 217, 0.08);
  color: var(--lp-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 9px; font-weight: 700;
}
[data-theme="dark"] .cap-card-points .point-check {
  background: rgba(110, 161, 255, 0.12);
}

/* "Coming soon" badge for 素材飞轮 */
.cap-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cap-badge--wip {
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 87, 34, 0.25);
}
.cap-card--wip {
  opacity: 0.75;
}
.cap-card--wip:hover {
  opacity: 0.9;
}

/* Dot indicators */
.cap-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.cap-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp-outline);
  transition: all 0.3s ease;
  cursor: pointer;
}
.cap-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--lp-primary);
}

@media (max-width: 1024px) {
  .cap-card {
    width: calc((100vw - 28px * 3) / 2);  /* 2 cards on tablet */
    max-width: none;
    min-height: 460px;
  }
}
@media (max-width: 640px) {
  .cap-card {
    width: calc(100vw - 56px);  /* 1 card on mobile */
    min-height: 420px;
    padding: 20px 18px 18px;
  }
}

/* ═══════════════════ Industry Showcase (Plan C) ═══════════════════ */

/* Pill tabs */
.ind-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.ind-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-on-surface-secondary);
  background: var(--lp-surface-2);
  border: 1.5px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}
.ind-pill:hover {
  color: var(--lp-on-surface);
  background: var(--lp-surface-3);
}
.ind-pill.active {
  color: var(--pill-color, var(--lp-primary));
  background: color-mix(in srgb, var(--pill-color, var(--lp-primary)) 8%, var(--lp-surface));
  border-color: color-mix(in srgb, var(--pill-color, var(--lp-primary)) 30%, transparent);
  box-shadow: 0 2px 12px color-mix(in srgb, var(--pill-color, var(--lp-primary)) 15%, transparent);
}
.ind-pill-icon {
  display: flex;
  align-items: center;
}
.ind-pill-icon svg {
  width: 18px;
  height: 18px;
}
.ind-pill.active .ind-pill-icon {
  color: var(--pill-color, var(--lp-primary));
}

/* Showcase container */
.ind-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  min-height: 420px;
  transition: opacity 0.25s ease;
}
.ind-showcase.ind-transitioning {
  opacity: 0;
}
@media (max-width: 900px) {
  .ind-showcase {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

/* ─── Left: Chat Window ─── */
.ind-chat-window {
  background: var(--lp-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--lp-card-border);
  border-radius: var(--lp-radius-lg);
  box-shadow: var(--lp-card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 380px;
}
.ind-chat-titlebar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--lp-outline);
  background: var(--lp-surface-1);
}
.ind-chat-titlebar .mini-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.ind-chat-titlebar .mini-dot.r { background: #ff5f57; }
.ind-chat-titlebar .mini-dot.y { background: #febc2e; }
.ind-chat-titlebar .mini-dot.g { background: #28c840; }
.ind-chat-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--lp-on-surface-secondary);
  font-weight: 500;
}
.ind-chat-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.ind-chat-input {
  padding: 10px 14px;
  border-top: 1px solid var(--lp-outline);
  background: var(--lp-surface-1);
}
.ind-chat-placeholder {
  font-size: 13px;
  color: var(--lp-on-surface-secondary);
  opacity: 0.5;
}

/* Chat messages */
.ind-msg {
  max-width: 90%;
  padding: 10px 14px;
  border-radius: var(--lp-radius-md);
  font-size: 13px;
  line-height: 1.6;
  animation: indMsgIn 0.4s ease both;
}
.ind-msg--user {
  align-self: flex-end;
  background: var(--lp-gradient-btn);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ind-msg--steps {
  align-self: flex-start;
  background: var(--lp-surface-1);
  border: 1px solid var(--lp-card-border);
  padding: 8px 12px;
  animation-delay: 0.1s;
}
.ind-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ind-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--lp-on-surface-secondary);
}
.ind-step-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1E8E3E;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}
.ind-msg--ai {
  align-self: flex-start;
  background: var(--lp-surface-2);
  color: var(--lp-on-surface);
  border-bottom-left-radius: 4px;
  animation-delay: 0.2s;
}
.ind-msg--ai:has(.hero-rich) {
  padding: 0;
  background: transparent;
  max-width: 100%;
  width: 100%;
}
.ind-msg--ai .hero-rich {
  width: 100%;
}
.ind-ai-line { line-height: 1.6; }
.ind-ai-line--empty { height: 6px; }
.ind-ai-line--bullet {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-left: 2px;
}
.ind-ai-bullet {
  color: var(--lp-primary);
  font-weight: 700;
  flex-shrink: 0;
}

@keyframes indMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Right: KPI Dashboard ─── */
.ind-dashboard {
  background: var(--lp-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--lp-card-border);
  border-radius: var(--lp-radius-lg);
  box-shadow: var(--lp-card-shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  min-height: 380px;
}
.ind-dash-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ind-dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: pulse 1.5s ease infinite;
}
.ind-dash-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--lp-on-surface);
}
.ind-dash-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(40, 200, 64, 0.1);
  color: #1E8E3E;
}
[data-theme="dark"] .ind-dash-badge {
  background: rgba(95, 224, 122, 0.12);
  color: #5fe07a;
}

/* KPI grid */
.ind-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ind-kpi-card {
  background: var(--lp-surface-1);
  border: 1px solid color-mix(in srgb, var(--lp-outline) 50%, transparent);
  border-radius: var(--lp-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: indMsgIn 0.4s ease both;
}
.ind-kpi-card:nth-child(1) { animation-delay: 0.05s; }
.ind-kpi-card:nth-child(2) { animation-delay: 0.1s; }
.ind-kpi-card:nth-child(3) { animation-delay: 0.15s; }
.ind-kpi-card:nth-child(4) { animation-delay: 0.2s; }
.ind-kpi-label {
  font-size: 12px;
  color: var(--lp-on-surface-secondary);
  font-weight: 500;
}
.ind-kpi-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--lp-on-surface);
  line-height: 1.2;
}
.ind-kpi-trend {
  font-size: 12px;
  font-weight: 600;
}
.ind-trend--good {
  color: #1E8E3E;
}
[data-theme="dark"] .ind-trend--good {
  color: #5fe07a;
}
.ind-trend--warn {
  color: #e67700;
}
[data-theme="dark"] .ind-trend--warn {
  color: #ffb74d;
}

/* Progress bar */
.ind-dash-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ind-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--lp-on-surface-secondary);
  font-weight: 500;
}
.ind-progress-score {
  font-weight: 700;
}
.ind-progress-bar {
  height: 6px;
  background: var(--lp-surface-3);
  border-radius: 3px;
  overflow: hidden;
}
.ind-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tags */
.ind-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ind-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tag-color, var(--lp-primary)) 8%, var(--lp-surface-1));
  color: var(--tag-color, var(--lp-primary));
  border: 1px solid color-mix(in srgb, var(--tag-color, var(--lp-primary)) 15%, transparent);
}

/* ─── Bottom: Prompt Suggestions ─── */
.ind-prompts {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.ind-prompt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--lp-on-surface-secondary);
  background: var(--lp-surface-1);
  border: 1px solid var(--lp-outline);
  transition: all 0.25s ease;
  cursor: default;
}
.ind-prompt-chip:hover {
  color: var(--lp-primary);
  border-color: var(--lp-primary);
  background: color-mix(in srgb, var(--lp-primary) 4%, var(--lp-surface));
  transform: translateY(-1px);
}
.ind-prompt-chip svg {
  flex-shrink: 0;
  opacity: 0.5;
}
.ind-prompt-chip:hover svg {
  opacity: 1;
  color: var(--lp-primary);
}

/* ═══════════════════ Workflow — Interactive Tour ═══════════════════ */

/* Timeline bar with nodes */
.wf-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  margin-bottom: 48px;
  padding: 0 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.wf-timeline-bar {
  position: absolute;
  left: 40px;
  right: 40px;
  top: 24px; /* vertically centered with 48px dot */
  height: 2px;
  background: var(--lp-surface-3);
  border-radius: 1px;
  z-index: 0;
}
.wf-timeline-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--lp-gradient-btn);
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Node buttons */
.wf-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
  outline: none;
  transition: transform 0.3s ease;
}
.wf-node:hover { transform: translateY(-2px); }

.wf-node-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--lp-surface);
  border: 2px solid var(--lp-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lp-on-surface-secondary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}
.wf-node-dot svg { width: 18px; height: 18px; }

.wf-node.active .wf-node-dot,
.wf-node.done .wf-node-dot {
  border-color: var(--lp-primary);
  color: #fff;
  background: var(--lp-primary);
  box-shadow: 0 2px 8px rgba(0, 82, 217, 0.3);
}
.wf-node.active .wf-node-dot {
  animation: wfNodePulse 2.5s ease-in-out infinite;
}

.wf-node-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-on-surface-secondary);
  transition: color 0.3s ease;
  white-space: nowrap;
}
.wf-node.active .wf-node-label,
.wf-node.done .wf-node-label {
  color: var(--lp-primary);
}

@keyframes wfNodePulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(0, 82, 217, 0.3); }
  50% { box-shadow: 0 2px 12px rgba(0, 82, 217, 0.4), 0 0 0 4px rgba(0, 82, 217, 0.08); }
}

/* Content area: left text + right demo */
.wf-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
  min-height: 480px;
  position: relative;
}
@media (max-width: 1200px) {
  .wf-content {
    min-height: 420px;
  }
}
@media (max-width: 900px) {
  .wf-content {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
  }
  .wf-timeline { padding: 0 20px; }
}

/* Left: text description */
.wf-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
}
.wf-step-num {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  background: var(--lp-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.15;
}
.wf-step-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--lp-on-surface);
  line-height: 1.3;
}
.wf-step-desc {
  font-size: 15px;
  color: var(--lp-on-surface-secondary);
  line-height: 1.8;
}
.wf-step-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.wf-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--lp-on-surface);
}
.wf-point-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--lp-primary) 8%, var(--lp-surface-1));
  color: var(--lp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
}

/* Right: demo simulation — matches dashboard design language */
.wf-demo {
  background: var(--lp-surface);
  border: 1px solid var(--lp-outline);
  border-radius: var(--lp-radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  height: 100%;
  max-height: 560px;
  display: flex;
  flex-direction: column;
}
.wf-demo-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--lp-outline);
  background: var(--lp-surface-1);
}
.wf-demo-titlebar .mini-dot { width: 10px; height: 10px; border-radius: 50%; }
.wf-demo-titlebar .mini-dot.r { background: #ff5f57; }
.wf-demo-titlebar .mini-dot.y { background: #febc2e; }
.wf-demo-titlebar .mini-dot.g { background: #28c840; }
.wf-demo-title {
  margin-left: 10px;
  font-size: 13px;
  color: var(--lp-on-surface);
  font-weight: 600;
}
.wf-demo-body {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.wf-demo-body::-webkit-scrollbar {
  display: none;
}

/* ─── Step 1: OAuth simulation ─── */
/* ─── Step 1: OAuth — matches dashboard onboarding-oauth.html ─── */
.wf-oauth-sim {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0;
}
.wf-oauth-head {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.wf-oauth-head.visible { opacity: 1; transform: translateY(0); }
.wf-oauth-platform-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--lp-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.wf-oauth-platform-name { font-size: 16px; font-weight: 600; color: var(--lp-on-surface); }
.wf-oauth-platform-desc { font-size: 11px; color: var(--lp-on-surface-secondary); margin-top: 1px; }
.wf-oauth-badge {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--lp-primary) 8%, var(--lp-surface-1));
  color: var(--lp-primary);
  font-size: 11px;
  font-weight: 600;
}
.wf-oauth-flow {
  padding: 14px 16px;
  border-radius: var(--lp-radius-sm);
  background: var(--lp-surface-1);
  border: 1px solid var(--lp-surface-3);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.wf-oauth-flow.visible { opacity: 1; transform: translateY(0); }
.wf-oauth-flow-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-on-surface);
  margin-bottom: 2px;
}
.wf-oauth-flow-title svg { color: var(--lp-primary); }
.wf-oauth-flow-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--lp-on-surface-secondary);
  line-height: 1.6;
  transition: color 0.3s ease;
}
.wf-oauth-flow-step.done { color: var(--lp-on-surface); }
.wf-oauth-step-dot {
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lp-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.3s ease;
}
.wf-oauth-flow-step.done .wf-oauth-step-dot { background: #1E8E3E; }
.wf-oauth-token-info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--lp-surface-2);
  font-size: 11px;
  color: var(--lp-on-surface-secondary);
}
.wf-oauth-token-info svg { flex-shrink: 0; }
.wf-oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px;
  border-radius: var(--lp-radius-sm);
  background: var(--lp-gradient-btn);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: default;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s ease;
}
.wf-oauth-btn.visible { opacity: 1; transform: translateY(0); }
.wf-oauth-btn.done { background: #1E8E3E; }
.wf-oauth-success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--lp-radius-sm);
  background: rgba(30, 142, 62, 0.06);
  border: 1px solid rgba(30, 142, 62, 0.15);
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.wf-oauth-success svg { color: #1E8E3E; flex-shrink: 0; margin-top: 1px; }
.wf-oauth-success-title { font-size: 14px; font-weight: 600; color: #0D652D; }
.wf-oauth-success-detail { font-size: 12px; color: #0D652D; margin-top: 3px; opacity: 0.7; }
[data-theme="dark"] .wf-oauth-success { background: rgba(95, 224, 122, 0.06); border-color: rgba(95, 224, 122, 0.15); }
[data-theme="dark"] .wf-oauth-success svg { color: #5fe07a; }
[data-theme="dark"] .wf-oauth-success-title { color: #5fe07a; }
[data-theme="dark"] .wf-oauth-success-detail { color: #5fe07a; }
.wf-oauth-success.visible { opacity: 1; transform: scale(1); }

/* ─── Step 2: Avatar — matches dashboard onboarding wizard ─── */
.wf-avatar-sim {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0;
}
.wf-avatar-header {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.wf-avatar-header.visible { opacity: 1; transform: translateY(0); }
.wf-avatar-header h3 { font-size: 16px; font-weight: 600; color: var(--lp-on-surface); margin-bottom: 4px; }
.wf-avatar-header p { font-size: 12px; color: var(--lp-on-surface-secondary); line-height: 1.5; }
.wf-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.wf-form-group.visible { opacity: 1; transform: translateY(0); }
.wf-form-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-on-surface-secondary);
}
.wf-form-label svg { color: var(--lp-primary); }
.wf-form-input {
  padding: 10px 14px;
  background: var(--lp-surface);
  border: 1.5px solid var(--lp-surface-3);
  border-radius: var(--lp-radius-sm);
  font-size: 13px;
  color: var(--lp-on-surface);
  cursor: default;
  transition: border-color 0.3s ease;
}
.wf-form-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wf-form-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--lp-surface);
  color: var(--lp-on-surface-secondary);
  border: 1px solid var(--lp-surface-3);
  cursor: default;
  transition: all 0.3s ease;
}
.wf-form-tag svg { width: 12px; height: 12px; }
.wf-form-tag.selected {
  background: color-mix(in srgb, var(--lp-primary) 8%, var(--lp-surface));
  color: var(--lp-primary);
  border-color: var(--lp-primary);
}
.wf-form-account {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--lp-surface);
  border: 1.5px solid var(--lp-surface-3);
  border-radius: var(--lp-radius-sm);
  font-size: 13px;
  color: var(--lp-on-surface);
}
.wf-form-account svg { color: #1E8E3E; flex-shrink: 0; }
.wf-avatar-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--lp-radius-sm);
  background: color-mix(in srgb, var(--lp-primary) 6%, var(--lp-surface-1));
  font-size: 12px;
  color: var(--lp-on-surface-secondary);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.wf-avatar-info.visible { opacity: 1; transform: translateY(0); }
.wf-avatar-info svg { color: var(--lp-primary); flex-shrink: 0; margin-top: 1px; }
.wf-avatar-ready {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(30, 142, 62, 0.06);
  border: 1px solid rgba(30, 142, 62, 0.15);
  border-radius: var(--lp-radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: #1E8E3E;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
[data-theme="dark"] .wf-avatar-ready { background: rgba(95, 224, 122, 0.06); border-color: rgba(95, 224, 122, 0.15); color: #5fe07a; }
.wf-avatar-ready.visible { opacity: 1; transform: scale(1); }

/* ─── Step 3: Chat — matches dashboard acl-msg + acl-bubble system ─── */
.wf-chat-sim {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 4px 0;
  background: var(--lp-surface-1);
  border-radius: 0 0 var(--lp-radius-lg) var(--lp-radius-lg);
  margin: -24px;
  margin-top: 0;
  padding: 14px;
}
.wf-chat-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 90%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.wf-chat-row.visible { opacity: 1; transform: translateY(0); }
.wf-chat-user { align-self: flex-end; flex-direction: row-reverse; }
.wf-chat-ai { align-self: flex-start; max-width: 100%; }
.wf-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.wf-avatar-user {
  background: var(--lp-primary);
  color: #fff;
  letter-spacing: 0;
}
.wf-avatar-ai {
  background: var(--lp-gradient-btn);
  color: #fff;
}
.wf-avatar-ai svg { width: 16px; height: 16px; }
.wf-chat-bubble {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}
.wf-bubble-user {
  background: linear-gradient(135deg, #0052D9, #003185);
  color: #fff;
  border-radius: 16px;
  border-bottom-right-radius: 4px;
}
.wf-chat-bubble-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
.wf-bubble-ai {
  background: var(--lp-surface);
  border: 1px solid var(--lp-surface-3);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  color: var(--lp-on-surface);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.wf-bubble-ai.visible { opacity: 1; transform: translateY(0); }
.wf-bubble-ai:has(.hero-rich) {
  padding: 0;
  border: none;
  background: transparent;
}
.wf-bubble-ai .hero-rich {
  min-width: 320px;
}
.wf-ai-content {
  white-space: normal;
  line-height: 1.5;
}
.wf-ai-content strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}
.wf-ai-content .wf-ai-bullet {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 3px 0;
  font-size: 12px;
  color: var(--lp-on-surface-secondary);
}
.wf-ai-content .wf-ai-bullet .dot {
  color: var(--lp-primary);
  font-weight: 700;
  flex-shrink: 0;
}
.wf-chat-tool-steps {
  padding: 8px 12px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-surface-3);
  border-radius: var(--lp-radius-sm);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.wf-tool-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--lp-on-surface-secondary);
  transition: color 0.3s ease;
}
.wf-tool-step.done { color: var(--lp-on-surface); }
.wf-tool-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--lp-surface-3);
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
}
.wf-tool-step.done .wf-tool-dot {
  background: #1E8E3E;
  border-color: #1E8E3E;
}
.wf-tool-step.done .wf-tool-dot::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 7px;
  font-weight: 700;
}
.wf-chat-input-sim {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--lp-outline);
  background: var(--lp-surface);
  margin: auto -24px -24px -24px;
  border-radius: 0 0 var(--lp-radius-lg) var(--lp-radius-lg);
}
.wf-chat-input-box {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--lp-surface-3);
  border-radius: var(--lp-radius-sm);
  background: var(--lp-surface-1);
}
.wf-chat-input-box span {
  font-size: 13px;
  color: var(--lp-on-surface-secondary);
  opacity: 0.5;
}
.wf-chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0052D9, #003185);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Transition for content swap — slide + fade */
.wf-text,
.wf-demo {
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.wf-content.transitioning .wf-text {
  opacity: 0;
  transform: translateX(-16px);
}
.wf-content.transitioning .wf-demo {
  opacity: 0;
  transform: translateX(16px);
}

/* Auto-play progress indicator — subtle bottom bar on active node */
.wf-node.active .wf-node-dot::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  border-radius: 1px;
  background: var(--lp-primary);
  animation: wfProgressBar 6s linear;
  transform-origin: left center;
}
@keyframes wfProgressBar {
  from { width: 0; left: 50%; transform: translateX(-50%); }
  to { width: 24px; left: 50%; transform: translateX(-50%); }
}

/* ═══════════════════ CTA Section ═══════════════════ */
.cta-section {
  text-align: center;
  background: color-mix(in srgb, var(--lp-surface-1) 85%, transparent);
}
.cta-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--lp-on-surface);
}
.cta-desc {
  font-size: 16px;
  color: var(--lp-on-surface-secondary);
  margin-bottom: 32px;
}
.cta-btn { font-size: 18px; padding: 16px 40px; }

/* ═══════════════════ Footer ═══════════════════ */
.landing-footer {
  position: relative;
  z-index: 2;
  background: var(--lp-surface);
  border-top: 1px solid var(--lp-outline);
  padding: 24px;
}
.footer-inner {
  max-width: var(--lp-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-copy {
  font-size: 13px;
  color: var(--lp-on-surface-secondary);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-sep {
  color: var(--lp-on-surface-secondary);
  font-size: 13px;
}
.footer-links a {
  font-size: 13px;
  color: var(--lp-on-surface-secondary);
  transition: color var(--lp-transition);
}
.footer-links a:hover { color: var(--lp-primary); }

/* ═══════════════════ Animations ═══════════════════ */
@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroDemoIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.section { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.section.visible { opacity: 1; transform: translateY(0); }

/* Stagger for workflow nodes */
.wf-node { opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.4s ease; }
.workflow-section.visible .wf-node:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.workflow-section.visible .wf-node:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.workflow-section.visible .wf-node:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.workflow-section.visible .wf-content { opacity: 1; }

/* Card hover lift */
.cap-card { transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease; }

/* ═══════════════════ Capability Card Entrance Animations ═══════════════════ */

/* --- Fade-in (action rows, status cells, log items) --- */
.cap-anim-fade {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.cap-anim-fade--visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Slide-in from right (channel cards) --- */
.cap-anim-slide {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0, 0, 1);
}
.cap-anim-slide--visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Scale-in (material cells) --- */
.cap-anim-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0, 0, 1);
}
.cap-anim-scale--visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Persistent: float (chart badge ↑12%) --- */
.cap-anim-float {
  animation: capFloat 2.5s ease-in-out infinite;
}
@keyframes capFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* --- Persistent: pulse glow (confirm button) --- */
.cap-anim-pulse {
  animation: capBtnPulse 2s ease-in-out infinite;
}
@keyframes capBtnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 82, 217, 0.3); }
  50% { box-shadow: 0 0 0 4px rgba(0, 82, 217, 0.08); }
}

/* --- Persistent: blink (alert text) --- */
.cap-anim-blink {
  animation: capAlertBlink 3s ease-in-out infinite;
}
@keyframes capAlertBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ═══════════════════ Shine border (for CTA card) ═══════════════════ */
.cta-section::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--lp-radius-lg);
  padding: 1px;
  background: conic-gradient(from var(--shine-angle, 0deg), transparent 60%, var(--lp-primary-light) 80%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: shineRotate 4s linear infinite;
  opacity: 0.5;
  pointer-events: none;
}
@keyframes shineRotate {
  to { --shine-angle: 360deg; }
}
@property --shine-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ═══════════════════ Reduced Motion ═══════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .section { opacity: 1; transform: none; }
  .workflow-step { opacity: 1; transform: none; }
  .hero-text, .hero-demo { opacity: 1; animation: none; }
  .cap-anim-fade, .cap-anim-slide, .cap-anim-scale { opacity: 1; transform: none; }
  .cap-anim-bar { height: var(--target-height, 50%) !important; }
}
