/* Mothusi Feature Pages — Shared Design System */

:root {
  --bg:        #0a0a0f;
  --bg-card:   rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --border:    rgba(255,255,255,0.08);
  --text:      #f1f5f9;
  --text-muted:#94a3b8;
  --text-dim:  #475569;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);

  /* Group accent (overridden per page) */
  --accent:    #8b5cf6;
  --accent-dim:rgba(139,92,246,0.12);
  --accent-glow:rgba(139,92,246,0.25);
  --bg-hero:   radial-gradient(ellipse 80% 50% at 50% -10%, var(--accent-glow), transparent);
}

/* ── Group themes ─────────────────────────────── */
.theme-ai       { --accent:#8b5cf6; --accent-dim:rgba(139,92,246,0.12); --accent-glow:rgba(139,92,246,0.2); }
.theme-compliance{ --accent:#10b981; --accent-dim:rgba(16,185,129,0.12); --accent-glow:rgba(16,185,129,0.2); }
.theme-finance  { --accent:#3b82f6; --accent-dim:rgba(59,130,246,0.12); --accent-glow:rgba(59,130,246,0.2); }
.theme-portfolio{ --accent:#f59e0b; --accent-dim:rgba(245,158,11,0.12); --accent-glow:rgba(245,158,11,0.2); }
.theme-market   { --accent:#f97316; --accent-dim:rgba(249,115,22,0.12); --accent-glow:rgba(249,115,22,0.2); }
.theme-agri     { --accent:#22c55e; --accent-dim:rgba(34,197,94,0.12);  --accent-glow:rgba(34,197,94,0.2); }
.theme-people   { --accent:#ec4899; --accent-dim:rgba(236,72,153,0.12); --accent-glow:rgba(236,72,153,0.2); }
.theme-ops      { --accent:#06b6d4; --accent-dim:rgba(6,182,212,0.12);  --accent-glow:rgba(6,182,212,0.2); }

/* ── Reset & base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.85; }

/* ── Nav ──────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; }
.nav-brand img { height: 28px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-muted); font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 8px 18px; border-radius: 8px; font-size: 14px; font-weight: 500;
  transition: opacity .2s !important;
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  text-align: center; padding: 100px 40px 80px;
  background: var(--bg-hero);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, var(--accent-glow), transparent);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-dim); border: 1px solid var(--accent);
  color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 99px; margin-bottom: 28px;
}
.hero-icon {
  width: 80px; height: 80px; margin: 0 auto 28px;
  background: var(--accent-dim); border: 1px solid var(--accent);
  border-radius: 24px; display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}
.hero h1 {
  font-size: clamp(32px,5vw,54px); font-weight: 700; letter-spacing: -.02em;
  max-width: 720px; margin: 0 auto 16px; line-height: 1.15;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 18px; color: var(--text-muted); max-width: 560px;
  margin: 0 auto 36px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: #fff; padding: 13px 28px;
  border-radius: 10px; font-size: 15px; font-weight: 600;
  transition: opacity .2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { opacity: .85; color: #fff; }
.btn-ghost {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  padding: 13px 24px; border-radius: 10px; font-size: 15px;
  transition: background .2s;
}
.btn-ghost:hover { background: var(--bg-card-hover); color: var(--text); }

/* ── Stats strip ──────────────────────────────── */
.stats-strip {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  padding: 32px 40px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.stat { text-align: center; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ── Sections ─────────────────────────────────── */
.section { padding: 80px 40px; max-width: 1100px; margin: 0 auto; }
.section-label {
  display: inline-block; color: var(--accent); font-size: 12px;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px;
}
.section-title { font-size: clamp(24px,3vw,36px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; }
.section-sub { font-size: 16px; color: var(--text-muted); max-width: 560px; line-height: 1.7; margin-bottom: 48px; }

/* ── Demo chat ────────────────────────────────── */
.demo-section {
  padding: 80px 40px; background: rgba(255,255,255,0.015);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.demo-inner { max-width: 720px; margin: 0 auto; }
.demo-window {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.demo-titlebar {
  display: flex; align-items: center; gap: 8px; padding: 14px 20px;
  background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border);
}
.demo-dot { width: 10px; height: 10px; border-radius: 50%; }
.demo-dot:nth-child(1) { background: #ff5f57; }
.demo-dot:nth-child(2) { background: #febc2e; }
.demo-dot:nth-child(3) { background: #28c840; }
.demo-titlebar span { margin-left: 8px; font-size: 13px; color: var(--text-dim); }
.demo-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; gap: 12px; align-items: flex-start; }
.msg.user { flex-direction: row-reverse; }
.msg-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.msg.ai .msg-avatar { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent); }
.msg.user .msg-avatar { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.msg-bubble {
  max-width: 80%; padding: 12px 16px; border-radius: 14px;
  font-size: 14px; line-height: 1.6;
}
.msg.ai .msg-bubble { background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-top-left-radius: 4px; }
.msg.user .msg-bubble { background: var(--accent-dim); border: 1px solid var(--accent); border-top-right-radius: 4px; }
.msg-tool {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  background: var(--accent-dim); border: 1px solid var(--accent);
  color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .05em;
  padding: 3px 10px; border-radius: 99px;
}

/* ── Capabilities grid ────────────────────────── */
.caps-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 20px; margin-top: 40px; }
.cap-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: background .2s, border-color .2s, transform .2s;
}
.cap-card:hover { background: var(--bg-card-hover); border-color: var(--accent); transform: translateY(-2px); }
.cap-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-dim); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 16px;
}
.cap-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.cap-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Personas ─────────────────────────────────── */
.personas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.persona {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 12px 18px; border-radius: 99px; font-size: 14px;
}
.persona i { color: var(--accent); }

/* ── FAQ ──────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 2px; margin-top: 40px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-item:first-child { border-radius: var(--radius) var(--radius) 4px 4px; }
.faq-item:last-child  { border-radius: 4px 4px var(--radius) var(--radius); }
details summary {
  padding: 20px 24px; font-size: 15px; font-weight: 500;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
details summary::after { content: '+'; color: var(--accent); font-size: 20px; font-weight: 300; }
details[open] summary::after { content: '−'; }
.faq-answer { padding: 0 24px 20px; font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ── CTA ──────────────────────────────────────── */
.cta-section {
  text-align: center; padding: 100px 40px;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, var(--accent-glow), transparent);
  border-top: 1px solid var(--border);
}
.cta-section h2 { font-size: clamp(28px,4vw,44px); font-weight: 700; margin-bottom: 16px; }
.cta-section p { font-size: 17px; color: var(--text-muted); margin-bottom: 36px; }

/* ── Feature footer nav ───────────────────────── */
.feature-nav {
  padding: 60px 40px; border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.feature-nav-inner { max-width: 1100px; margin: 0 auto; }
.feature-nav h4 { font-size: 13px; color: var(--text-dim); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 24px; }
.feature-groups { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 32px; }
.feature-group-title {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.feature-group-title i { font-size: 12px; }
.feature-group ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feature-group ul li a { font-size: 13px; color: var(--text-dim); transition: color .2s; }
.feature-group ul li a:hover { color: var(--text); }

/* ── Site footer ──────────────────────────────── */
.site-footer {
  padding: 24px 40px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.site-footer span { font-size: 13px; color: var(--text-dim); }

/* ── Unique group decorators ──────────────────── */

/* AI group — floating document ghost */
.deco-doc {
  position: absolute; right: 10%; top: 20%;
  width: 180px; background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; pointer-events: none; opacity: .6;
}
.deco-doc-line { height: 8px; border-radius: 4px; background: var(--accent-dim); margin-bottom: 8px; }
.deco-doc-line:nth-child(2) { width: 80%; }
.deco-doc-line:nth-child(3) { width: 60%; }
.deco-doc-line:nth-child(4) { width: 90%; }
.deco-doc-line:nth-child(5) { width: 70%; }

/* Compliance group — status chip row */
.deco-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.deco-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 500;
}
.deco-chip.ok  { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #10b981; }
.deco-chip.warn{ background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #f59e0b; }
.deco-chip.err { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: #ef4444; }

/* Finance group — mini bar chart */
.deco-chart { display: flex; align-items: flex-end; gap: 6px; height: 60px; margin-top: 20px; }
.deco-bar {
  flex: 1; border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--accent), var(--accent-dim));
  min-width: 16px;
}

/* Portfolio group — health gauge */
.deco-gauge { position: relative; width: 80px; height: 40px; overflow: hidden; margin-top: 12px; }
.deco-gauge-bg { width: 80px; height: 80px; border-radius: 50%; border: 8px solid rgba(255,255,255,0.08); position: absolute; top: 0; }
.deco-gauge-fill { width: 80px; height: 80px; border-radius: 50%; border: 8px solid var(--accent); border-bottom-color: transparent; border-right-color: transparent; position: absolute; top: 0; transform: rotate(-45deg); }

/* Match score badges */
.deco-match { display: flex; gap: 10px; margin-top: 16px; }
.deco-match-badge {
  background: var(--accent-dim); border: 1px solid var(--accent);
  color: var(--accent); font-size: 13px; font-weight: 700;
  padding: 4px 12px; border-radius: 8px;
}

/* Agri commodity chips */
.deco-commodities { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.deco-commodity {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 8px; font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}
.deco-commodity i { color: var(--accent); }

/* People — progress bar */
.deco-progress { margin-top: 16px; }
.deco-progress-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12px; color: var(--text-muted); }
.deco-progress-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.deco-progress-fill { height: 100%; border-radius: 3px; background: var(--accent); }

/* Ops — timeline */
.deco-timeline { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.deco-timeline-item { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-muted); }
.deco-timeline-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.deco-timeline-line { width: 1px; height: 16px; background: var(--border); margin-left: 3px; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 14px 20px; }
  .hero { padding: 70px 20px 60px; }
  .section { padding: 60px 20px; }
  .stats-strip { gap: 28px; padding: 28px 20px; }
  .demo-section { padding: 60px 20px; }
  .cta-section { padding: 70px 20px; }
  .feature-nav { padding: 40px 20px; }
  .site-footer { padding: 20px; }
  .deco-doc { display: none; }
  .nav-links .nav-features { display: none; }
}
