/* demo-player.css — shared styles for all 7 AI employee interactive demos */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #090e1a;
  --bg-panel:  #0d1526;
  --bg-screen: #0b1220;
  --border:    rgba(255,255,255,0.07);
  --border-lt: rgba(255,255,255,0.12);
  --text:      #e8edf5;
  --muted:     #7a8fa8;
  --muted-lt:  #9aafcc;
  --accent:    var(--emp-color, #1d6ef5);
  --accent-dim: var(--emp-dim, rgba(29,110,245,0.12));
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex; flex-direction: column;
}

/* ── NAV ─────────────────────────────────────────────────────────── */
.demo-nav {
  position: sticky; top: 0; z-index: 50;
  padding: 0.85rem 2rem;
  background: rgba(9,14,26,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.demo-nav-left { display: flex; align-items: center; gap: 1.25rem; }
.logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.logo em { font-style: normal; color: var(--accent); }
.back-link {
  font-size: 0.8rem; color: var(--muted); text-decoration: none;
  display: flex; align-items: center; gap: 0.35rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--text); }
.back-link::before { content: '←'; }
.demo-nav-right { display: flex; gap: 0.75rem; align-items: center; }
.btn-nav-cta {
  font-size: 0.8rem; font-weight: 600;
  padding: 0.4rem 1rem; border-radius: 6px;
  background: var(--accent); color: #fff;
  text-decoration: none; transition: opacity 0.2s;
}
.btn-nav-cta:hover { opacity: 0.85; color: #fff; }

/* ── PROGRESS BAR ────────────────────────────────────────────────── */
.progress-track {
  height: 2px;
  background: rgba(255,255,255,0.05);
  position: sticky; top: 57px; z-index: 49;
}
.progress-fill {
  height: 100%; background: var(--accent);
  width: 0%; transition: width 0.35s ease;
}

/* ── DEMO HEADER ─────────────────────────────────────────────────── */
.demo-header {
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 1.25rem;
}
.demo-emp-avatar {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  background: var(--accent-dim);
  flex-shrink: 0;
}
.demo-emp-info { flex: 1; }
.demo-emp-name {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.2rem;
}
.demo-emp-tagline { font-size: 0.82rem; color: var(--muted); margin-top: 0.15rem; }
.demo-scenario-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-top: 0.5rem;
}
.demo-scenario-text { font-size: 0.85rem; color: var(--muted-lt); line-height: 1.5; }

/* ── MAIN LAYOUT ─────────────────────────────────────────────────── */
.demo-body {
  flex: 1;
  display: grid;
  grid-template-columns: 340px 1fr;
  grid-template-rows: 1fr auto;
  min-height: 0;
}
@media (max-width: 900px) {
  .demo-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
}

/* ── LEFT PANEL: CHAT ─────────────────────────────────────────────── */
.chat-panel {
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  min-height: 0; overflow: hidden;
}
.chat-panel-header {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.step-list {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.35rem;
  max-height: 220px; overflow-y: auto;
}
.step-item {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.5rem 0.6rem; border-radius: 8px;
  cursor: pointer; transition: background 0.18s;
  border: 1px solid transparent;
}
.step-item:hover { background: rgba(255,255,255,0.04); }
.step-item.active { background: var(--accent-dim); border-color: rgba(255,255,255,0.06); }
.step-item.done .step-dot { background: var(--accent); color: #fff; font-size: 0.6rem; }
.step-dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 700; color: var(--muted);
  flex-shrink: 0; transition: all 0.2s;
}
.step-item.active .step-dot { background: var(--accent); color: #fff; }
.step-label { font-size: 0.78rem; color: var(--muted-lt); line-height: 1.3; }
.step-item.active .step-label { color: var(--text); }

.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 1rem 0.85rem;
  display: flex; flex-direction: column; gap: 0.85rem;
  scroll-behavior: smooth;
}
.chat-msg {
  display: flex; gap: 0.6rem; align-items: flex-start;
  animation: msgIn 0.22s ease both;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-msg.chat-user { flex-direction: row-reverse; }
.chat-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 700; flex-shrink: 0;
}
.ai-avatar { background: var(--accent-dim); color: var(--accent); font-size: 0.9rem; }
.user-avatar { background: rgba(255,255,255,0.08); color: var(--muted); font-size: 0.58rem; letter-spacing: 0.03em; }
.chat-bubble {
  max-width: 220px; padding: 0.55rem 0.75rem;
  border-radius: 12px; font-size: 0.8rem; line-height: 1.5;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
}
.chat-msg.chat-ai .chat-bubble { background: var(--accent-dim); border-color: rgba(255,255,255,0.06); }
.chat-msg.chat-user .chat-bubble { background: rgba(255,255,255,0.07); }
.chat-system-text {
  width: 100%; text-align: center;
  font-size: 0.72rem; color: var(--muted);
  padding: 0.25rem 0;
  border-top: 1px dashed rgba(255,255,255,0.06);
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}

/* ── RIGHT PANEL: MOCK SCREEN ─────────────────────────────────────── */
.screen-panel {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--bg-screen);
}
.screen-panel-header {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.75rem;
}
.mock-browser-dots { display: flex; gap: 5px; }
.mock-browser-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.mock-browser-dots span:nth-child(1) { background: #ff5f57; }
.mock-browser-dots span:nth-child(2) { background: #febc2e; }
.mock-browser-dots span:nth-child(3) { background: #28c840; }
.mock-browser-url {
  flex: 1; font-size: 0.75rem; color: var(--muted);
  background: rgba(255,255,255,0.04); border-radius: 4px;
  padding: 0.25rem 0.6rem; font-family: monospace;
}
.mock-screen {
  flex: 1; overflow-y: auto;
  padding: 1.5rem;
}

/* ── WHY TOOLTIP ──────────────────────────────────────────────────── */
.why-tooltip {
  padding: 0.85rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  display: none; align-items: flex-start; gap: 0.6rem;
  font-size: 0.8rem; color: var(--muted-lt); line-height: 1.5;
}
.why-icon { flex-shrink: 0; font-size: 1rem; }

/* ── NAV BAR (BOTTOM) ─────────────────────────────────────────────── */
.demo-nav-bar {
  grid-column: 1 / -1;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(9,14,26,0.97);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.step-counter { font-size: 0.78rem; color: var(--muted); }
.nav-btns { display: flex; gap: 0.75rem; }
.btn-prev, .btn-next {
  padding: 0.55rem 1.25rem; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; border: none; font-family: 'DM Sans', sans-serif;
}
.btn-prev {
  background: rgba(255,255,255,0.06);
  color: var(--muted); border: 1px solid var(--border);
}
.btn-prev:hover:not(:disabled) { background: rgba(255,255,255,0.1); color: var(--text); }
.btn-prev:disabled { opacity: 0.3; cursor: default; }
.btn-next { background: var(--accent); color: #fff; }
.btn-next:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-next.btn-finish { background: #10c97a; }

/* ── END-OF-DEMO CTA ─────────────────────────────────────────────── */
.demo-cta {
  display: none;
  align-items: center; gap: 0.75rem;
  flex-wrap: wrap;
}
.btn-cta-trial {
  padding: 0.55rem 1.25rem; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600;
  background: var(--accent); color: #fff;
  text-decoration: none; transition: opacity 0.2s;
  border: none; cursor: pointer;
}
.btn-cta-trial:hover { opacity: 0.85; color: #fff; }
.btn-cta-sales {
  padding: 0.55rem 1.25rem; border-radius: 8px;
  font-size: 0.85rem; font-weight: 500;
  background: transparent; color: var(--muted-lt);
  text-decoration: none; transition: color 0.2s;
  border: 1px solid var(--border);
}
.btn-cta-sales:hover { color: var(--text); border-color: var(--border-lt); }

/* ── MOCK SCREEN COMPONENTS ──────────────────────────────────────── */
/* Used inside each step's .screen HTML */
.mock-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 1rem 1.25rem;
  margin-bottom: 0.85rem;
}
.mock-card-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.6rem;
}
.mock-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.45rem 0; border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.82rem;
}
.mock-row:last-child { border-bottom: none; }
.mock-row-label { color: var(--muted); }
.mock-row-val { color: var(--text); font-weight: 500; }
.mock-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.55rem; border-radius: 4px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.badge-green  { background: rgba(16,201,122,0.15); color: #10c97a; }
.badge-amber  { background: rgba(245,158,11,0.15); color: #f5a623; }
.badge-red    { background: rgba(239,68,68,0.15); color: #ef4444; }
.badge-blue   { background: rgba(77,143,247,0.15); color: #4d8ff7; }
.badge-purple { background: rgba(139,92,246,0.15); color: #8b5cf6; }
.badge-gray   { background: rgba(255,255,255,0.07); color: var(--muted); }
.mock-progress-bar {
  height: 4px; background: rgba(255,255,255,0.07);
  border-radius: 2px; overflow: hidden; margin-top: 0.35rem;
}
.mock-progress-fill { height: 100%; border-radius: 2px; transition: width 0.4s ease; }
.mock-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.mock-table th { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 0.35rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
.mock-table td { padding: 0.55rem 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--muted-lt); }
.mock-table tr:last-child td { border-bottom: none; }
.mock-table tr:hover td { background: rgba(255,255,255,0.02); }
.mock-stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
  margin-bottom: 1rem;
}
.mock-stat {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.85rem; text-align: center;
}
.mock-stat-val { font-size: 1.4rem; font-weight: 700; color: var(--text); }
.mock-stat-label { font-size: 0.68rem; color: var(--muted); margin-top: 0.2rem; }
.mock-highlight {
  background: var(--accent-dim);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 1rem 1.25rem;
  margin-bottom: 0.85rem;
}
.mock-highlight-title {
  font-weight: 700; font-size: 0.88rem; color: var(--text);
  margin-bottom: 0.4rem;
}
.mock-highlight-text { font-size: 0.8rem; color: var(--muted-lt); line-height: 1.55; }
.mock-tag {
  display: inline-block; padding: 0.18rem 0.5rem; border-radius: 4px;
  font-size: 0.68rem; font-weight: 600; margin-right: 0.3rem; margin-bottom: 0.3rem;
  background: rgba(255,255,255,0.07); color: var(--muted-lt);
}
.mock-section-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 1rem 0 0.5rem;
}
.mock-ai-typing {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; color: var(--muted); padding: 0.5rem 0;
}
.mock-ai-dots { display: flex; gap: 3px; }
.mock-ai-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: 0.5;
  animation: dotPulse 1.2s ease infinite;
}
.mock-ai-dots span:nth-child(2) { animation-delay: 0.2s; }
.mock-ai-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse { 0%,100%{opacity:0.2} 50%{opacity:1} }

/* Mobile: stack panels vertically */
@media (max-width: 900px) {
  .demo-body { display: block; }
  .chat-panel { border-right: none; border-bottom: 1px solid var(--border); }
  .step-list { max-height: 160px; }
  .chat-messages { max-height: 200px; }
  .screen-panel { min-height: 360px; }
  .demo-nav-bar { flex-wrap: wrap; }
  .demo-cta { width: 100%; }
}
