/* ───────── Lead Research Operator — showcase ───────── */
:root {
  --bg: #07090f; --bg-2: #0b0f19; --panel: #0f1523; --panel-2: #131a2b; --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --ink: #e6e9f2; --ink-2: #b7bfd0; --muted: #7d879c; --brand: #7c8cff; --brand-2: #22d3ee; --violet: #a78bfa;
  --ok: #34d399; --warn: #fbbf24; --bad: #fb7185; --info: #60a5fa;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r: 16px; --r-sm: 10px; --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
b { font-weight: 650; } em { font-style: normal; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.025em; line-height: 1.1; }
p { margin: 0; }
img { max-width: 100%; display: block; }
code { font: 13px var(--mono); background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 6px; }

.bg-glow { position: fixed; inset: -20% -10% auto; height: 70vh; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 60% at 30% 30%, rgba(124,140,255,.22), transparent 60%),
              radial-gradient(45% 45% at 75% 20%, rgba(34,211,238,.16), transparent 60%),
              radial-gradient(40% 40% at 60% 70%, rgba(167,139,250,.14), transparent 60%);
  filter: blur(40px); animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-3%, 4%, 0) scale(1.08); } }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px; padding: 12px 22px;
  background: rgba(7,9,15,.7); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.mark { width: 22px; height: 22px; border-radius: 7px; background: conic-gradient(from 210deg, #6366f1, #a855f7, #22d3ee, #6366f1);
  box-shadow: 0 0 0 4px rgba(99,102,241,.18); }
.nav .links { display: flex; gap: 6px; margin-left: 8px; }
.nav .links a { color: var(--muted); font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.nav .links a:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.nav .btn { margin-left: auto; }
@media (max-width: 860px) { .nav .links { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 15px;
  background: linear-gradient(135deg, #7c8cff, #a78bfa); color: #0b0f19; box-shadow: 0 8px 30px -10px rgba(124,140,255,.7); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 34px -10px rgba(124,140,255,.9); }
.btn.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.04); }
.btn.light { background: #fff; color: #0b0f19; box-shadow: 0 8px 30px -10px rgba(255,255,255,.5); }
.btn.ghost.light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); box-shadow: none; }

/* hero */
.hero { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 84px 22px 40px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; padding-top: 48px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 6px 12px; background: rgba(255,255,255,.03); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52,211,153,.2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(52,211,153,.2);} 50% { box-shadow: 0 0 0 8px rgba(52,211,153,.05);} }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 800; margin: 20px 0 18px; }
.hero h1 em { background: linear-gradient(90deg, #7c8cff, #22d3ee 60%, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--ink-2); font-size: 18px; max-width: 58ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stats div { border-top: 1px solid var(--line-2); padding-top: 12px; }
.stats b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 13px; line-height: 1.35; display: block; }

/* terminal */
.term { background: #0a0e18; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3145; }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; color: var(--muted); font: 12px var(--mono); }
.term-body { margin: 0; padding: 16px 18px; height: 340px; overflow: hidden; font: 12.5px/1.65 var(--mono); color: #cbd5e1; white-space: pre-wrap; }
.term-body .ok { color: var(--ok); } .term-body .warn { color: var(--warn); } .term-body .bad { color: var(--bad); } .term-body .dim { color: var(--muted); }
.term-body .cursor { display: inline-block; width: 8px; height: 14px; background: #cbd5e1; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-caption { color: var(--muted); font-size: 13px; margin-top: 12px; text-align: center; }

/* sections */
.section { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 96px 22px; }
.section.alt { max-width: none; background: linear-gradient(180deg, transparent, rgba(255,255,255,.025) 20%, rgba(255,255,255,.025) 80%, transparent); }
.section.alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.kicker { display: inline-block; font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.kicker.light { color: #c7d2fe; }
.section h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--ink-2); font-size: 17px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* pairs */
.pairs { display: grid; gap: 14px; }
.pair { display: grid; grid-template-columns: 1fr 44px 1.2fr; gap: 12px; align-items: stretch; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px; transition: border-color .2s, transform .2s; }
.pair:hover { border-color: rgba(124,140,255,.45); transform: translateY(-2px); }
@media (max-width: 800px) { .pair { grid-template-columns: 1fr; } .pair-arrow { transform: rotate(90deg); } }
.pair-src p { color: var(--ink-2); font-size: 15px; }
.pair-src b, .pair-out q { color: #fff; }
.pair-out q { quotes: "“" "”"; font-style: italic; }
.pair-arrow { display: grid; place-items: center; color: var(--brand); font-size: 26px; font-weight: 300; }
.pair-out p { font-size: 15.5px; color: var(--ink); }
.pair-out small { display: block; margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.tag { display: inline-block; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 5px 9px; margin-bottom: 10px; }
.tag.out { color: #0b0f19; background: linear-gradient(90deg, #7c8cff, #22d3ee); border-color: transparent; }

.claims { margin-top: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.claims-head { font-weight: 700; margin-bottom: 12px; }
.claim { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.claim em { color: var(--muted); font-style: normal; white-space: nowrap; margin-left: auto; padding-left: 12px; }
@media (max-width: 720px) { .claim { flex-wrap: wrap; } .claim em { white-space: normal; margin-left: 0; padding-left: 0; } }
.cls { font: 700 11px/1 var(--mono); padding: 5px 8px; border-radius: 6px; letter-spacing: .06em; flex: 0 0 auto; }
.cls.fact { background: rgba(52,211,153,.15); color: var(--ok); } .cls.inf { background: rgba(96,165,250,.15); color: var(--info); } .cls.hyp { background: rgba(251,191,36,.15); color: var(--warn); }
.claims-foot { margin-top: 12px; color: var(--muted); font-size: 13.5px; }

/* pipeline */
.pipe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.step { background: var(--panel); border: 1px solid var(--line-2); color: var(--ink-2); padding: 9px 13px; border-radius: 999px; font: 600 13.5px var(--sans); cursor: pointer;
  position: relative; transition: .15s; }
.step:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 300; }
.step:hover, .step.is-active { color: #0b0f19; background: linear-gradient(90deg, #7c8cff, #22d3ee); border-color: transparent; }
.step.human { border-color: var(--ok); color: var(--ok); }
.step.human.is-active { background: var(--ok); color: #0b0f19; }
.pipe-detail { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; min-height: 200px; }
.pd { display: none; } .pd.is-active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none; } }
.pd h4 { font-size: 20px; margin-bottom: 8px; } .pd p { color: var(--ink-2); max-width: 78ch; }
.pd pre { margin: 14px 0 0; background: #0a0e18; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; font: 12.5px/1.6 var(--mono); color: #cbd5e1; white-space: pre-wrap; overflow-x: auto; }

/* verdicts */
.verdicts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.v { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; font-size: 14px; }
.v .who { color: var(--muted); font-size: 12.5px; margin-bottom: 6px; display: flex; justify-content: space-between; gap: 8px; }
.v .q { color: var(--ink); font-style: italic; }
.v .q::before { content: "“"; color: var(--muted); } .v .q::after { content: "”"; color: var(--muted); }
.v.bad { border-left: 3px solid var(--bad); } .v.ok { border-left: 3px solid var(--ok); } .v.warn { border-left: 3px solid var(--warn); }
.badge { font: 700 10.5px/1 var(--mono); letter-spacing: .06em; padding: 4px 7px; border-radius: 6px; text-transform: uppercase; white-space: nowrap; flex: 0 0 auto; }
.badge.bad { background: rgba(251,113,133,.15); color: var(--bad); } .badge.ok { background: rgba(52,211,153,.15); color: var(--ok); } .badge.warn { background: rgba(251,191,36,.15); color: var(--warn); }
.verdict-foot { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; margin-top: 18px; }
.verdict-foot b.bad { color: var(--bad); } .verdict-foot b.ok { color: var(--ok); } .verdict-foot b.warn { color: var(--warn); }

/* ledger */
.ledger { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; } }
.row > div { padding: 14px 16px; font-size: 14.5px; }
.hit { color: var(--ink-2); position: relative; padding-left: 40px !important; }
.hit::before { content: "✕"; position: absolute; left: 14px; top: 13px; color: var(--bad); font-weight: 700; }
.fix { color: var(--ink); background: rgba(52,211,153,.06); position: relative; padding-left: 40px !important; }
.fix::before { content: "✓"; position: absolute; left: 14px; top: 13px; color: var(--ok); font-weight: 700; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 800px) { .bento { grid-template-columns: 1fr; } }
.bento figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .2s, border-color .2s; }
.bento figure:hover { transform: translateY(-3px); border-color: rgba(124,140,255,.4); }
.bento figure.wide { grid-column: 1 / -1; }
.bento img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.bento figure.wide img { aspect-ratio: 16 / 7; }
.bento figcaption { padding: 12px 16px 14px; color: var(--ink-2); font-size: 14px; }

/* tabs */
.tab-bar { display: inline-flex; gap: 4px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; margin-bottom: 22px; }
.tab { border: 0; background: transparent; color: var(--ink-2); padding: 9px 16px; border-radius: 999px; font: 600 14px var(--sans); cursor: pointer; }
.tab.is-active { background: #fff; color: #0b0f19; }
.tab-pane { display: none; } .tab-pane.is-active { display: block; animation: fade .3s ease; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.cols h3 { font-size: 24px; margin-bottom: 12px; }
.cols ul { margin: 0; padding-left: 18px; color: var(--ink-2); } .cols li { margin: 8px 0; }
.fine { color: var(--muted); font-size: 13.5px; margin-top: 12px; }
.fine.light { color: #c7d2fe; }
.email { background: #fff; color: #111; border-radius: var(--r); padding: 20px 22px; font-family: Arial, Helvetica, sans-serif; font-size: 14.5px; line-height: 1.55; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.email p { margin: 0 0 12px; }
.email-h { display: flex; flex-direction: column; gap: 2px; color: #666; font-size: 12.5px; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 14px; }
.email-f { border-top: 1px solid #eee; padding-top: 10px; color: #16a34a; font-size: 12.5px; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr; } }
.facts div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; color: var(--ink-2); font-size: 14.5px; }
.facts b { color: var(--ink); display: block; margin-bottom: 4px; }

/* cta */
.section.cta { padding-bottom: 60px; }
.cta-box { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #0e7490 100%); border-radius: 22px; padding: 44px; color: #fff; position: relative; overflow: hidden; }
.cta-box::after { content: ""; position: absolute; inset: auto -20% -60% auto; width: 60%; height: 120%; background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent); }
.cta-box h2 { color: #fff; max-width: 22ch; }
.cta-box p { color: #e0e7ff; max-width: 70ch; margin-top: 12px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 22px 50px; }
