:root {
  --pi-primary:#0b5ed7;
  --pi-dark:#0c1b2a;
  --pi-muted:#6c757d;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:#f8fafc;
}

/* NAVBAR */
.navbar-brand .logo-img { height: 42px; display: block; }
.navbar-brand { font-size: 0; line-height: 0; }

/* HERO */
.hero {
  background: radial-gradient(900px 500px at 70% -10%, rgba(13,110,253,.15), transparent),
              linear-gradient(180deg,#fff, #f8fbff 50%, #f4f8ff 100%);
}
.hero-title { font-weight: 800; color: var(--pi-dark); }
.hero-sub { color:#334155; }
.hero img { max-width: 520px; width: 100%; }

/* FEATURE CARDS */
.feature-icon { width: 64px; height: 64px; object-fit: contain; }
.feature-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 24px; transition: .25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10,20,50,0.08); }

/* FORMS */
.form-control { border-radius: 10px; }

/* FOOTER */
footer { border-top: 1px solid #e2e8f0; color: var(--pi-muted); }

/* =========================
   DASHBOARD EXTRAS
   ========================= */
#overview pre { max-height: 360px; overflow:auto; }
.list-group-item { border-left: 0; border-right: 0; }

/* CHAT WINDOW SCROLLBAR */
#chatWindow::-webkit-scrollbar { width: 8px; }
#chatWindow::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
#chatWindow::-webkit-scrollbar-track { background: #f1f5f9; }

/* CHAT BUBBLES */
.chat-window { max-height: 520px; overflow-y: auto; }
.msg-user, .msg-ai {
  width: 85%;
  border-radius: 12px;
  padding: .6rem .8rem;
  margin-bottom: .5rem;
  white-space: pre-wrap;
}
.msg-user { margin-left: auto; background:#0d6efd; color:#fff; }
.msg-ai   { background:#fff; border:1px solid #e2e8f0; color:#0c1b2a; }
.msg-note { font-size:.85rem; color:#6c757d; }

/* Chat bubbles */
.chat-window { max-height: 520px; overflow-y: auto; }
.msg-user, .msg-ai {
  width: 85%;
  border-radius: 12px;
  padding: .6rem .8rem;
  margin-bottom: .5rem;
  white-space: pre-wrap;
}
.msg-user { margin-left: auto; background:#0d6efd; color:#fff; }
.msg-ai   { background:#fff; border:1px solid #e2e8f0; color:#0c1b2a; }
.msg-note { font-size:.85rem; color:#6c757d; }

/* Small scrollbar */
#chatWindow::-webkit-scrollbar { width: 8px; }
#chatWindow::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
#chatWindow::-webkit-scrollbar-track { background: #f1f5f9; }



.msg-ai {
  background: #f4f8ff;
  border-left: 4px solid #3b82f6;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 6px;
}

.msg-user {
  background: #ecfdf5;
  border-left: 4px solid #10b981;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 6px;
}

.msg-ai h3, .msg-ai h4, .msg-ai h5 {
  margin-top: 8px;
  font-weight: 600;
}

.msg-ai ul {
  margin-left: 18px;
}

/* =========================
   HOMEPAGE NEW SECTIONS
   ========================= */

/* HOW IT WORKS - Steps */
.step-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(10,20,50,0.08);
}
.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(13,110,253,0.3);
}

/* DATA SOURCES */
.data-sources-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.source-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}
.source-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(10,20,50,0.06);
  border-color: #0d6efd;
}
.source-icon {
  font-size: 32px;
}

/* USE CASES */
.usecase-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}
.usecase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(10,20,50,0.08);
  border-color: #0d6efd;
}
.usecase-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.usecase-list {
  list-style: none;
  padding: 0;
  margin-top: 12px;
}
.usecase-list li {
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
  color: #64748b;
}
.usecase-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 600;
}

/* STATS SECTION */
.stats-section {
  background: linear-gradient(135deg, #0c1b2a 0%, #1e3a5f 100%);
}
.stat-card {
  padding: 24px;
}
.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

/* WHY CHOOSE US */
.why-icon {
  width: 40px;
  height: 40px;
  background: #f1f5f9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* DEMO PREVIEW */
.demo-preview {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(10,20,50,0.12);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.demo-header {
  background: #f1f5f9;
  padding: 12px 16px;
  display: flex;
  gap: 8px;
}
.demo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
}
.demo-dot:nth-child(1) { background: #ef4444; }
.demo-dot:nth-child(2) { background: #fbbf24; }
.demo-dot:nth-child(3) { background: #22c55e; }
.demo-content {
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
}
.demo-message {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.demo-user {
  background: #0d6efd;
  color: #fff;
  margin-left: 20%;
}
.demo-ai {
  background: #f4f8ff;
  border-left: 4px solid #3b82f6;
  color: #0c1b2a;
}

/* CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 50%, #6366f1 100%);
}

/* BADGES */
.bg-primary-subtle { background-color: rgba(13,110,253,0.1) !important; }
.bg-success-subtle { background-color: rgba(16,185,129,0.1) !important; }
.bg-warning-subtle { background-color: rgba(251,191,36,0.1) !important; }
.bg-info-subtle { background-color: rgba(6,182,212,0.1) !important; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .stat-number { font-size: 32px; }
  .demo-preview { margin-top: 32px; }
  .hero-title { font-size: 2rem; }
}
