/* Factory Brain marketing site — standalone, does not affect product UI */

:root {
  --bg: #070d18;
  --bg-elevated: #0d1626;
  --bg-soft: #121c2e;
  --surface: #f7f9fc;
  --surface-white: #ffffff;
  --ink: #e8eef8;
  --ink-muted: #9aacc4;
  --ink-dark: #152033;
  --ink-dark-muted: #5a6b82;
  --brand: #3b82f6;
  --brand-bright: #5ba0ff;
  --brand-deep: #1d4ed8;
  --navy: #0a192f;
  --success: #10b981;
  --amber: #f59e0b;
  --teal: #14b8a6;
  --border: rgba(148, 173, 210, 0.16);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font: "DM Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --display: "DM Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --container: 1120px;
  --container-wide: 80%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

em {
  font-style: italic;
  color: var(--brand-bright);
  font-weight: 600;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 15% -10%, rgba(59, 130, 246, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(20, 184, 166, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(29, 78, 216, 0.18), transparent 60%);
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

#workspace > .container {
  width: var(--container-wide);
  max-width: 100%;
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7, 13, 24, 0.78);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-name b {
  font-weight: 800;
}

.brand-icon {
  height: 40px;
  width: auto;
  max-width: 64px;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  display: block;
}

.footer-icon {
  height: 36px;
  width: auto;
  max-width: 58px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.app-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand-product {
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: none;
  gap: 1.5rem;
  font-size: 0.98rem;
  color: var(--ink-muted);
}

.nav-links a:hover,
.nav-links a.is-current {
  color: var(--ink);
}

.nav-links a.is-current {
  position: relative;
}

.nav-links a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.55rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

/* IMPORTANT: .mobile-nav { display:flex } must not override [hidden] */
.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem 1.25rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 0.85rem 0.5rem;
  border-radius: 10px;
  color: var(--ink);
  font-size: 1.05rem;
}

.mobile-nav a:hover {
  background: rgba(59, 130, 246, 0.12);
}

/* Hero differentiator */
.hero-differentiator {
  margin-top: 1.25rem;
}

.hero-promise {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(91, 160, 255, 0.34);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--ink);
  font-weight: 600;
}

.hero-promise i {
  color: var(--brand-bright);
}

/* Video section */
.video-section {
  padding-top: 2rem;
}

.video-head {
  margin-bottom: 1.5rem;
  text-align: center;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(20, 184, 166, 0.08));
  box-shadow: var(--shadow);
  padding: 1rem;
}

.video-card video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  display: block;
  background: #020617;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--ink);
}

.btn-lg {
  padding: 0.95rem 1.45rem;
  font-size: 1.05rem;
}

.header-actions .btn-ghost {
  display: none;
}

/* Hero */
.hero {
  padding: 4.75rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.55rem, 5.4vw, 3.85rem);
  letter-spacing: -0.035em;
}

.hero-lead {
  font-size: 1.15rem;
  max-width: 36rem;
}

.hero-cta .play {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.65rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.intel-core {
  width: min(100%, 460px);
  padding: 1.35rem;
  border-radius: 28px;
  background:
    linear-gradient(165deg, rgba(18, 28, 46, 0.96), rgba(8, 16, 32, 0.92));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}

.intel-brand {
  text-align: center;
  margin-bottom: 1.1rem;
}

.hero-logo {
  width: min(260px, 82%);
  height: auto;
  margin: 0 auto 0.65rem;
  display: block;
  filter: drop-shadow(0 0 24px rgba(59, 130, 246, 0.35));
}

.intel-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

.intel-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.intel-tiles article {
  padding: 0.85rem 0.8rem;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(91, 160, 255, 0.18);
}

.intel-tiles i {
  color: var(--brand-bright);
  margin-bottom: 0.4rem;
  display: block;
}

.intel-tiles span {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.intel-tiles strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.98rem;
  font-weight: 650;
}

.unify-strip {
  margin: 2.75rem 0 0;
  padding: 1rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.unify-strip > span {
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-bright);
}

.unify-strip strong {
  color: var(--ink);
  font-weight: 600;
}

@media (min-width: 720px) {
  .unify-strip > span {
    width: auto;
    margin-right: 0.5rem;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  color: var(--brand-bright);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.vision h2 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero-lead,
.section-lead {
  color: var(--ink-muted);
  font-size: 1.12rem;
  max-width: 38rem;
  margin: 0 0 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.hero-points i {
  color: var(--success);
  margin-right: 0.4rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Sections */
.section {
  padding: 4.25rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(13, 22, 38, 0.65), rgba(7, 13, 24, 0));
}

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-head.left {
  text-align: left;
  margin-bottom: 0;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}

.section-lead {
  margin-inline: auto;
}

.section-head.left .section-lead {
  margin-inline: 0;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.step-num {
  display: block;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--brand-bright);
  margin-bottom: 0.75rem;
}

.step-icon {
  color: var(--brand-bright);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.steps h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-bright);
}

.steps .step-title {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1rem;
}

/* Demo tabs */
.demo-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.demo-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-muted);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.demo-tab.is-active {
  color: #fff;
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(91, 160, 255, 0.45);
}

.product-stage {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #111827;
  position: relative;
}

.shot-panel {
  margin: 0;
  display: none;
  animation: fadeSlide 0.35s ease;
}

.shot-panel.is-active {
  display: block;
}

.shot-panel[hidden] {
  display: none !important;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.frame-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #1a2333;
  color: #d5deec;
  font-size: 0.95rem;
}

.frame-chrome .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4b5568;
}

.frame-chrome .dot:nth-child(1) { background: #ef4444; }
.frame-chrome .dot:nth-child(2) { background: #f59e0b; }
.frame-chrome .dot:nth-child(3) { background: #22c55e; }

.frame-title {
  margin-left: 0.5rem;
  font-weight: 600;
}

.frame-badge {
  margin-left: auto;
  font-size: 0.85rem;
  color: #9fb0c9;
}

.frame-badge i {
  margin-right: 0.3rem;
  color: var(--success);
}

/* Product HTML mock — crisp recreation of the real UI */
.app-shell {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 0;
  background: #f1f5f9;
  color: #152033;
  width: 100%;
}

.app-sidebar {
  background: #fff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  padding: 0.9rem 0.65rem;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.45rem 0.9rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.app-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.app-sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.65rem;
  border-radius: 10px;
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 500;
}

.app-sidebar .nav-item.active {
  background: #eff6ff;
  color: #2563eb;
  box-shadow: inset 3px 0 0 #2563eb;
}

.app-sidebar .nav-item i {
  width: 1rem;
  text-align: center;
}

.app-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.88rem;
  color: #4b5563;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: lowercase;
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #f9fafb;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.topbar-left strong {
  font-size: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.pill.db {
  background: #ecfdf5;
  color: #047857;
}

.pill.soft {
  background: #f3f4f6;
  color: #4b5563;
}

.pill.green {
  background: #ecfdf5;
  color: #059669;
}

.chat-thread {
  flex: 1;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: auto;
}

.chat-split-main {
  min-height: 620px;
}

.chat-split {
  flex: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 0.85rem;
  padding: 0.9rem;
  min-height: 0;
  overflow: hidden;
}

.chat-question-pane,
.chat-answer-pane {
  min-height: 0;
  overflow: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0.9rem;
}

.pane-label {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

.msg.full {
  max-width: 100%;
  margin-left: 0;
}

.follow-hints {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.follow-hints > span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
}

.follow-hints button {
  text-align: left;
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  color: #1d4ed8;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: default;
}

.answer-copy {
  margin: 0 0 0.85rem;
  color: #374151;
  font-size: 0.98rem;
}

.line-chart {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.55rem 0.5rem 0.35rem;
}

.line-chart svg {
  width: 100%;
  height: 170px;
  display: block;
}

.line-chart .chart-label {
  fill: #1f2937;
  font-size: 10px;
  font-weight: 700;
  font-family: inherit;
}

.line-chart .axis-label {
  fill: #6b7280;
  font-size: 11px;
  font-family: inherit;
}

.next-steps {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eef2f7;
  font-size: 0.9rem;
  color: #374151;
}

.next-steps.open strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #111827;
}

.next-steps ol {
  margin: 0;
  padding-left: 1.15rem;
}

.next-steps li + li {
  margin-top: 0.25rem;
}

.dash-body {
  padding: 0.85rem;
  overflow: auto;
  flex: 1;
}

.dash-dense {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.dash-kpis article {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
}

.dash-kpis span {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.2rem;
}

.dash-kpis strong {
  display: block;
  font-size: 1.05rem;
  color: #111827;
}

.dash-kpis small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: #9ca3af;
}

.dash-charts.dense {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  flex: 1;
}

.dash-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.dash-card.wide {
  grid-column: 1 / -1;
  min-height: 180px;
}

.dash-card header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #111827;
}

.dash-card header small {
  color: #6b7280;
  font-weight: 500;
}

.chart-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 600;
}

.labeled-bars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: end;
  flex: 1;
  min-height: 150px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  height: 100%;
}

.bar-col strong {
  font-size: 0.72rem;
  color: #111827;
}

.bar-col i {
  display: block;
  width: 100%;
  max-width: 36px;
  height: var(--h);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  font-style: normal;
}

.bar-col em {
  font-style: normal;
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 600;
}

.labeled-hbars,
.store-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.labeled-hbars div,
.store-grid div {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  gap: 0.55rem;
  align-items: center;
}

.labeled-hbars em,
.store-grid em {
  font-style: normal;
  font-size: 0.82rem;
  color: #4b5563;
  font-weight: 600;
}

.labeled-hbars i,
.store-grid i {
  display: block;
  height: 12px;
  width: var(--w);
  border-radius: 999px;
  background: #3b82f6;
  font-style: normal;
}

.labeled-hbars strong,
.store-grid strong {
  font-size: 0.82rem;
  color: #111827;
  white-space: nowrap;
}

.combo-chart {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: end;
  flex: 1;
  min-height: 140px;
  position: relative;
}

.combo-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  height: 100%;
}

.combo-col strong {
  font-size: 0.7rem;
  color: #111827;
}

.combo-bar {
  width: 70%;
  max-width: 34px;
  height: var(--h);
  border-radius: 7px 7px 2px 2px;
  background: #93c5fd;
}

.combo-dot {
  position: absolute;
  bottom: calc(1.15rem + var(--h));
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.combo-col em {
  font-style: normal;
  font-size: 0.72rem;
  color: #6b7280;
  font-weight: 600;
}

.legend-row {
  display: flex;
  gap: 1rem;
  margin-top: 0.55rem;
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 600;
}

.legend-row .swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 0.3rem;
  vertical-align: middle;
}

.legend-row .swatch.blue { background: #93c5fd; }
.legend-row .swatch.green { background: #10b981; }


.msg {
  max-width: 94%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.msg.wide { max-width: 100%; width: 100%; }

.msg p { margin: 0.35rem 0 0; }

.msg-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
}

.msg-meta img {
  border-radius: 4px;
}

.msg.user {
  margin-left: auto;
  background: #eff6ff;
  border-bottom-right-radius: 4px;
}

.msg.bot {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 4px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.tag.purple { background: #f5f3ff; color: #7c3aed; }
.tag.green { background: #ecfdf5; color: #059669; margin-left: auto; }

.insight-title {
  margin: 0.65rem 0 0.75rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.insight-title i { color: #3b82f6; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.stat {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
}

.stat span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  font-weight: 600;
}

.stat strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.15rem;
  color: #111827;
}

.stat small {
  color: #6b7280;
  font-size: 0.78rem;
}

.key-insights {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eef2f7;
}

.key-insights h5,
.section-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

.key-insights ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #374151;
  font-size: 0.92rem;
}

.key-insights li + li { margin-top: 0.25rem; }

.chart-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.9rem 0 0.55rem;
  font-size: 0.85rem;
  color: #4b5563;
}

.chart-toolbar .saved {
  color: #2563eb;
  font-weight: 600;
}

.chat-input {
  margin: 0 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #9ca3af;
  font-size: 0.95rem;
}

.chat-input button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  cursor: default;
}

.dash-main {
  background: #f3f4f6;
  min-height: 0;
}

.chat-answer-pane .msg.bot {
  border: 0;
  padding: 0;
}

.shot-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.shot-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(148, 173, 210, 0.35);
  cursor: pointer;
  padding: 0;
}

.shot-dot.is-active {
  background: var(--brand-bright);
  transform: scale(1.15);
}

.workspace-bullets {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  color: var(--ink-muted);
  font-size: 1rem;
}

.workspace-bullets i {
  color: var(--success);
  margin-right: 0.35rem;
}

/* Capabilities */
.cap-grid {
  display: grid;
  gap: 1rem;
}

.cap {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cap:hover {
  border-color: rgba(91, 160, 255, 0.4);
  transform: translateY(-2px);
}

.cap-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.14);
  color: var(--brand-bright);
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.cap-num {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--brand-bright);
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.cap h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.cap p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1rem;
}

/* Domains */
.domain-row {
  display: grid;
  gap: 0.85rem;
}

.domain {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.domain-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 0.85rem;
  background: rgba(59, 130, 246, 0.15);
  color: var(--brand-bright);
  font-size: 1.15rem;
}

.domain h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
}

.domain p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* Trust */
.trust-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.trust-list {
  list-style: none;
  padding: 1.5rem;
  margin: 0;
  border-radius: var(--radius);
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.trust-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 1.05rem;
  padding: 0.55rem 0;
}

.trust-list i {
  color: var(--success);
  margin-top: 0.25rem;
}

/* Vision / CTA */
.vision {
  padding-bottom: 5.5rem;
}

.vision-inner {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(59, 130, 246, 0.22), transparent 55%),
    var(--bg-elevated);
}

.vision blockquote {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.45;
  color: var(--ink);
}

.vision-logo {
  width: min(240px, 65%);
  height: auto;
  margin: 0 auto 1.25rem;
  display: block;
  filter: drop-shadow(0 0 22px rgba(59, 130, 246, 0.3));
}

.vision-note {
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.vision h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.vision p {
  color: var(--ink-muted);
  font-size: 1.1rem;
  max-width: 34rem;
  margin: 0 auto 1.5rem;
}

.msg-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eef2f7;
  font-size: 0.82rem;
  color: #6b7280;
}

.msg-foot i {
  color: #10b981;
  margin-right: 0.25rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
}

.footer-brand img,
.footer-icon {
  height: 36px;
  width: auto;
  max-width: 58px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  border-radius: 0;
  background: transparent;
}

.footer-brand strong {
  display: block;
  font-size: 1rem;
}

.footer-brand span {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer nav a:hover {
  color: var(--ink);
}

.footer-founders {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
}

.footer-founders-label {
  font-weight: 700;
  color: var(--ink);
}

.footer-founders a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-muted);
}

.footer-founders a:hover {
  color: var(--ink);
}

.copy {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    column-gap: 2rem;
    align-items: start;
  }

  .footer-brand,
  .footer-inner > p:not(.copy) {
    grid-column: 1;
  }

  .site-footer nav,
  .footer-founders,
  .copy {
    grid-column: 2;
    justify-self: end;
    text-align: right;
  }

  .site-footer nav,
  .footer-founders {
    justify-content: flex-end;
  }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (min-width: 720px) {
  .header-actions .btn-ghost {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    white-space: nowrap;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .domain-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .cap-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .domain-row {
    grid-template-columns: repeat(5, 1fr);
  }

  .trust-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* Realistic product mocks */
.chat-thread.realistic {
  flex: 1;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: auto;
  background: #f3f4f6;
}

.stat-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.chat-input {
  position: relative;
}

.chat-input .char-count {
  position: absolute;
  left: 1.25rem;
  bottom: -0.15rem;
  font-size: 0.72rem;
  color: #9ca3af;
}

.query-bar {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.fresh-line {
  margin: 0;
  color: #b45309;
  font-size: 0.85rem;
  font-weight: 600;
}

.fresh-line i { margin-right: 0.3rem; }

.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}

.table-toolbar button {
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  color: #2563eb;
  cursor: default;
}

.data-table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  min-width: 720px;
}

.data-table th,
.data-table td {
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid #eef2f7;
  text-align: right;
  white-space: nowrap;
  color: #374151;
}

.data-table thead th,
.data-table tbody th {
  background: #f3f4f6;
  font-weight: 700;
  color: #111827;
}

.data-table thead th:first-child,
.data-table tbody th {
  text-align: left;
  position: sticky;
  left: 0;
}

.data-table .total-row th,
.data-table .total-row td {
  background: #eef2ff;
  font-weight: 700;
}

.dash-shell.app-shell,
.app-shell.dash-shell {
  min-height: 0;
}

.dash-shell .app-main {
  background: #f1f5f9;
  overflow: hidden;
}

.dash-main {
  background: #f1f5f9;
  min-height: 0;
}

.real-dash {
  padding: 0.9rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: auto;
  min-height: 0;
  background: #f1f5f9;
}

.dash-head {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem 1rem;
  align-items: center;
  min-width: 0;
  flex-shrink: 0;
}

.dash-head h3 {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 700;
  color: #0f172a;
  flex: 0 0 auto;
  white-space: nowrap;
}

.dash-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-left: auto;
  overflow: visible;
}

.dash-tools button {
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: default;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dash-tools button i {
  margin-right: 0.28rem;
  font-size: 0.72rem;
}

.dash-tools button .fa-caret-down {
  margin-right: 0;
  margin-left: 0.2rem;
}

.real-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
  flex-shrink: 0;
}

.real-kpis article {
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  min-height: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.real-kpis header {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.real-kpis header small {
  font-size: 0.68rem;
  color: #b45309;
  font-weight: 600;
}

.real-kpis .field {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: #94a3b8;
  font-weight: 700;
}

.real-kpis strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.15rem;
  line-height: 1.2;
  color: #0f172a;
  font-weight: 700;
}

.real-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  flex: 0 0 auto;
  min-height: 0;
  align-items: start;
}

.real-card {
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 12px;
  padding: 0.8rem 0.9rem 0.85rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.real-card > header {
  flex-shrink: 0;
}

.real-card > header strong {
  display: block;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 0.3rem;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  font-size: 0.7rem;
  color: #64748b;
  margin-bottom: 0.45rem;
}

.meta-line b { color: #0f172a; }

.area-chart,
.combo-svg {
  flex: 0 0 auto;
  display: block;
  height: 170px;
  width: 100%;
}

.area-chart svg,
.combo-svg svg {
  width: 100%;
  height: 170px;
  display: block;
}

.area-chart .chart-label,
.combo-svg .chart-label,
.line-chart .chart-label {
  fill: #1e293b;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
}

.area-chart .axis-label,
.combo-svg .axis-label {
  fill: #64748b;
  font-size: 12px;
  font-family: inherit;
}

.cat-bars {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  flex: 0 0 auto;
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
}

.cat-bars div {
  display: grid;
  grid-template-columns: minmax(5.5rem, 38%) 1fr auto;
  gap: 0.45rem;
  align-items: center;
}

.cat-bars em {
  font-style: normal;
  font-size: 0.72rem;
  color: #475569;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-bars i {
  display: block;
  height: 11px;
  width: var(--w);
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  font-style: normal;
}

.cat-bars strong {
  font-size: 0.74rem;
  color: #0f172a;
  white-space: nowrap;
  font-weight: 700;
}

.legend-row.tight {
  margin: 0 0 0.2rem;
  flex-shrink: 0;
}

.dash-table-card {
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 12px;
  padding: 0.85rem 1rem 1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.dash-table-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  align-items: flex-start;
}

.dash-table-head strong {
  display: block;
  font-size: 0.98rem;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.dash-table-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  font-size: 0.74rem;
  color: #64748b;
}

.dash-table-stats b { color: #0f172a; }

.dash-table-wrap {
  max-height: 220px;
}

.dash-table-card .data-table {
  font-size: 0.72rem;
}

.dash-table-card .data-table th,
.dash-table-card .data-table td {
  padding: 0.35rem 0.35rem;
}

@media (max-width: 1100px) {
  .dash-head { flex-wrap: wrap; }
  .dash-tools { margin-left: 0; width: 100%; justify-content: flex-start; }
}

@media (max-width: 980px) {
  #workspace > .container { width: min(100% - 1.25rem, 100%); }
  .real-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .real-charts { grid-template-columns: 1fr; }
  .area-chart,
  .combo-svg,
  .area-chart svg,
  .combo-svg svg { height: 190px; }
  .stat-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .demo-tabs { flex-wrap: wrap; }
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .stat-grid.three { grid-template-columns: 1fr; }
  .cat-bars div { grid-template-columns: 5.5rem 1fr auto; }
}

