/* ── 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: #FAFAFA; color: #1A1A1A; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
  --navy:   #1A1A1A;
  --navy-dark: #FAFAFA;
  --orange: #F57C00;
  --orange-light: #E65100;
  --teal:   #2E7D32;
  --indigo: #6366F1;
  --white:  #FFFFFF;
  --text:   #1A1A1A;
  --text-mid: #6B6B6B;
  --text-dim: #8A8A8A;
  --border: rgba(0,0,0,0.08);
  --card-bg: #FFFFFF;
  --card-border: rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 8px;
}

/* ── Navigation — matches main site header ────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: #1B2A4A;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; height: 64px; gap: 40px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: #fff; }
.nav-logo img { display: block; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-link { padding: 6px 14px; border-radius: 6px; font-size: 14px; color: rgba(255,255,255,0.75); transition: .15s; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-link.active { color: #fff; font-weight: 600; }
.nav-cta { padding: 8px 20px; background: var(--orange); color: #fff; border-radius: 8px; font-size: 14px; font-weight: 600; transition: .15s; }
.nav-cta:hover { background: var(--orange-light); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 24px 80px; text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(245,124,0,0.06) 0%, transparent 70%);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 40% 40% at 50% -10%, rgba(245,138,31,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid rgba(245,138,31,0.3); border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--orange); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 28px; }
.hero-title { font-size: clamp(38px,6vw,72px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; max-width: 860px; margin: 0 auto 20px; }
.hero-title span { background: linear-gradient(135deg, var(--orange), #FFBE5C); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 18px; color: var(--text-mid); max-width: 580px; margin: 0 auto 44px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: .2s; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-light); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(245,138,31,0.35); }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--white); }

/* ── Stats bar ────────────────────────────────────────────────────────────── */
.stats-bar { background: var(--card-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; }
.stat-item { flex: 1; padding: 24px 16px; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-val { font-size: 32px; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }

/* ── Section ──────────────────────────────────────────────────────────────── */
.section { max-width: 1200px; margin: 0 auto; padding: 80px 24px; }
.section-center { text-align: center; }
.section-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.section-title { font-size: clamp(26px,4vw,44px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.section-sub { font-size: 17px; color: var(--text-mid); max-width: 560px; margin: 0 auto 52px; line-height: 1.7; }

/* ── Use-case cards ───────────────────────────────────────────────────────── */
.uc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.uc-card {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: .2s;
}
.uc-card:hover { border-color: rgba(0,0,0,0.18); transform: translateY(-2px); }
.uc-card.orange { border-color: rgba(245,138,31,0.25); }
.uc-card.orange:hover { border-color: rgba(245,138,31,0.5); box-shadow: 0 0 40px rgba(245,138,31,0.08); }
.uc-card.teal { border-color: rgba(26,138,138,0.25); }
.uc-card.teal:hover { border-color: rgba(26,138,138,0.5); box-shadow: 0 0 40px rgba(26,138,138,0.08); }
.uc-card.navy-card { border-color: rgba(99,102,241,0.25); }
.uc-card.navy-card:hover { border-color: rgba(99,102,241,0.5); box-shadow: 0 0 40px rgba(99,102,241,0.08); }
.uc-card.indigo { border-color: rgba(99,102,241,0.35); background: rgba(99,102,241,0.06); }
.uc-card.indigo:hover { border-color: rgba(99,102,241,0.6); }
.uc-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.uc-icon.orange { background: rgba(245,138,31,0.15); }
.uc-icon.teal { background: rgba(26,138,138,0.15); }
.uc-icon.navy { background: rgba(26,26,26,0.12); }
.uc-icon.indigo { background: rgba(99,102,241,0.15); }
.uc-num { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.uc-title { font-size: 18px; font-weight: 700; }
.uc-desc { font-size: 14px; color: var(--text-mid); line-height: 1.6; flex: 1; }
.uc-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.uc-tag { font-size: 10px; padding: 2px 8px; border-radius: 10px; background: rgba(0,0,0,0.07); color: var(--text-dim); border: 1px solid var(--border); font-family: monospace; }
.uc-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 8px; margin-top: 4px; transition: .15s; }
.uc-link.orange { background: var(--orange); color: var(--white); }
.uc-link.orange:hover { background: var(--orange-light); }
.uc-link.teal { background: var(--teal); color: var(--white); }
.uc-link.navy { background: var(--navy); color: var(--white); border: 1px solid rgba(0,0,0,0.12); }
.uc-link.indigo { background: var(--indigo); color: var(--white); }

/* ── How it works ─────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.steps::before { content: ''; position: absolute; top: 32px; left: calc(50% - 33%); width: 66%; height: 1px; background: linear-gradient(90deg, var(--orange), var(--teal)); opacity: 0.3; }
.step { text-align: center; padding: 24px; }
.step-num { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; margin: 0 auto 20px; border: 2px solid; }
.step-num.s1 { border-color: var(--orange); background: rgba(245,138,31,0.1); color: var(--orange); }
.step-num.s2 { border-color: var(--teal); background: rgba(26,138,138,0.1); color: var(--teal); }
.step-num.s3 { border-color: var(--indigo); background: rgba(99,102,241,0.1); color: var(--indigo); }
.step-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step-desc { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

/* ── Feature grid ─────────────────────────────────────────────────────────── */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.feat-item { background: var(--card-bg); padding: 28px 24px; }
.feat-icon { font-size: 28px; margin-bottom: 14px; }
.feat-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.feat-desc { font-size: 13px; color: var(--text-mid); line-height: 1.6; }

/* ── Architecture ─────────────────────────────────────────────────────────── */
.arch { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 40px; }
.arch-row { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.arch-box { padding: 16px 24px; border-radius: 10px; text-align: center; min-width: 140px; }
.arch-box .ab-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); margin-bottom: 8px; }
.arch-box .ab-name { font-size: 16px; font-weight: 700; }
.arch-box .ab-sub { font-size: 12px; color: var(--text-mid); margin-top: 4px; }
.arch-box.claude { background: rgba(245,138,31,0.12); border: 1px solid rgba(245,138,31,0.25); }
.arch-box.mcp { background: rgba(26,138,138,0.12); border: 1px solid rgba(26,138,138,0.25); }
.arch-box.epm { background: rgba(26,26,26,0.08); border: 1px solid rgba(26,26,26,0.25); }
.arch-box.user { background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.25); }
.arch-arrow { font-size: 24px; color: var(--text-dim); }

/* ── CTA band ─────────────────────────────────────────────────────────────── */
.cta-band {
  background: var(--navy);
  padding: 80px 24px; text-align: center;
}
.cta-band, .cta-band .section-title, .cta-band .section-sub { color: var(--white); }
.cta-band .section-title { margin-bottom: 20px; }
.cta-band .section-sub { margin-bottom: 36px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 40px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo { font-size: 15px; font-weight: 700; }
.footer-copy { font-size: 13px; color: var(--text-dim); }
.footer-links { display: flex; gap: 24px; }
.footer-link { font-size: 13px; color: var(--text-dim); transition: .15s; }
.footer-link:hover { color: var(--text); }

/* ── Demo shell ───────────────────────────────────────────────────────────── */
.demo-shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 64px); }
.sidebar { background: #FFFFFF; border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.sidebar-logo { padding: 20px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.sidebar-logo-icon { width: 28px; height: 28px; background: var(--orange); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.sidebar-logo-name { font-size: 14px; font-weight: 700; }
.sidebar-logo-sub { font-size: 10px; color: var(--text-dim); }
.sidebar-nav { flex: 1; padding: 12px 8px; overflow-y: auto; }
.nav-section { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); padding: 14px 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; font-size: 13px; color: var(--text-mid); cursor: pointer; transition: .15s; margin-bottom: 2px; }
.nav-item:hover { background: rgba(0,0,0,0.06); color: var(--text); }
.nav-item.active { background: rgba(245,138,31,0.12); color: var(--orange); font-weight: 600; }
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-badge { margin-left: auto; font-size: 9px; padding: 1px 6px; border-radius: 8px; background: rgba(0,0,0,0.08); color: var(--text-dim); }
.nav-divider { border: none; border-top: 1px solid var(--border); margin: 8px 0; }
.sidebar-footer { padding: 12px 16px; border-top: 1px solid var(--border); font-size: 10px; color: var(--text-dim); }

.demo-main { display: flex; flex-direction: column; background: #FAFAFA; }
.topbar { padding: 0 24px; height: 52px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; background: #FFFFFF; }
.topbar-title { font-size: 14px; font-weight: 600; }
.topbar-back { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 4px; margin-right: 4px; }
.topbar-back:hover { color: var(--text); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.tag-offline { background: rgba(26,138,138,0.15); color: #2E7D32; }
.tag-live { background: rgba(34,197,94,0.15); color: #16A34A; }
.tag-uc { background: rgba(245,138,31,0.15); color: var(--orange); }
.tag-edm { background: rgba(99,102,241,0.15); color: #4F46E5; }

.demo-content { flex: 1; padding: 20px 24px; overflow-y: auto; }
.status-bar { padding: 0 24px; height: 32px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 16px; font-size: 11px; color: var(--text-dim); background: #FFFFFF; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #16A34A; display: inline-block; margin-right: 4px; }
.status-sep { color: var(--border); }

/* ── Cards (demo pages) ───────────────────────────────────────────────────── */
.card { background: #FFFFFF; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.card-header { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.card-title { font-size: 13px; font-weight: 600; }
.card-body { padding: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ── NLQ bar ──────────────────────────────────────────────────────────────── */
.nlq-bar { background: #FFFFFF; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.nlq-icon { font-size: 18px; flex-shrink: 0; }
.nlq-input { flex: 1; background: #FAFAFA; border: 1px solid var(--border); border-radius: 6px; padding: 9px 12px; font-size: 13px; color: var(--text); outline: none; font-family: inherit; }
.nlq-input:focus { border-color: var(--orange); }
.nlq-btn { padding: 9px 18px; background: var(--orange); color: var(--white); border: none; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s; }
.nlq-btn:hover:not(:disabled) { background: var(--orange-light); }
.nlq-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.nlq-btn-secondary { padding: 9px 12px; background: transparent; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; color: var(--text-dim); cursor: pointer; }
.nlq-msg { margin-top: -10px; margin-bottom: 12px; padding: 8px 14px; border-radius: 8px; font-size: 12px; line-height: 1.5; }
.nlq-msg-ok   { background: rgba(46,125,50,.08);   color: #2E7D32; border: 1px solid rgba(46,125,50,.2); }
.nlq-msg-warn { background: rgba(245,138,31,.08);  color: #B45309; border: 1px solid rgba(245,138,31,.25); }
.nlq-msg-err  { background: rgba(192,57,43,.08);   color: #c0392b; border: 1px solid rgba(192,57,43,.2); }

/* ── Status tags ──────────────────────────────────────────────────────────── */
.tag-data     { background:rgba(245,138,31,.1);  color:#92400E; border:1px solid rgba(245,138,31,.3); }
.tag-llm      { background:rgba(46,125,50,.1);   color:#166534; border:1px solid rgba(46,125,50,.3);  font-weight:600; }
.tag-llm-proc { background:rgba(99,102,241,.1);  color:#3730A3; border:1px solid rgba(99,102,241,.3); font-weight:600; }
.tag-llm-err  { background:rgba(220,38,38,.08);  color:#991B1B; border:1px solid rgba(220,38,38,.2);  font-weight:600; }
.nlq-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: -8px; margin-bottom: 14px; }
.nlq-ex-label { font-size: 11px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; margin-right: 2px; }
.ex-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: rgba(245,138,31,0.07); border: 1px solid rgba(245,138,31,0.25); border-radius: 20px; font-size: 11px; color: #92400E; cursor: pointer; transition: .12s; white-space: nowrap; }
.ex-chip:hover { background: rgba(245,138,31,0.14); border-color: rgba(245,138,31,0.5); }

/* ── Tables ───────────────────────────────────────────────────────────────── */
.epm-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.epm-table th { text-align: left; padding: 8px 10px; color: var(--text-dim); font-weight: 600; font-size: 11px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.epm-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); color: var(--text-mid); }
.epm-table tr:hover td { background: rgba(0,0,0,0.02); }
.epm-table tr:last-child td { border-bottom: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; font-family: 'SF Mono', 'Fira Mono', monospace; }
.neg { color: #DC2626; }
.pos { color: #16A34A; }
.bold { font-weight: 700; color: var(--text); }
.dim-row { background: rgba(26,26,26,0.04); }

/* ── KPI cards ────────────────────────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: #FFFFFF; border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.kpi-label { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); margin-bottom: 8px; }
.kpi-val { font-size: 26px; font-weight: 800; line-height: 1; }
.kpi-delta { font-size: 11px; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.kpi-delta.up { color: #16A34A; }
.kpi-delta.down { color: #DC2626; }

/* ── Filter bar ───────────────────────────────────────────────────────────── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filter-bar select, .filter-bar input { padding: 7px 10px; background: #FFFFFF; border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 12px; }
.filter-bar label { font-size: 11px; color: var(--text-dim); }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 4px 10px; border-radius: 20px; font-size: 11px; cursor: pointer; border: 1px solid var(--border); color: var(--text-dim); transition: .15s; }
.chip.active { background: var(--orange); color: var(--white); border-color: var(--orange); }

/* ── Empty / loading ──────────────────────────────────────────────────────── */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px; color: var(--text-dim); gap: 12px; }
.empty-icon { font-size: 40px; }
.chart-wrap { position: relative; height: 260px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .demo-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .nav-links .nav-link { display: none; }
  .stats-inner { flex-wrap: wrap; }
  .stat-item { min-width: 50%; }
  .hero-title { font-size: 36px; }
  .uc-grid { grid-template-columns: 1fr; }
  .arch-row { flex-direction: column; }
}
