/* HELIX concept — "lab notebook + instrument console" */
:root {
  --paper: #F4F1EA;
  --paper-2: #EAE5D8;
  --card: #FBF9F4;
  --ink: #12161C;
  --ink-2: #3A414B;
  --muted: #6F6A60;
  --line: #D8D0BF;
  --line-2: #C6BCA7;
  --signal: #E5482D;
  --signal-ink: #B8321B;
  --eluent: #0F6B5C;
  --console: #0D1115;
  --console-2: #151B21;
  --console-3: #1E262E;
  --console-line: #2A333C;
  --glow: #7CF5C8;
  --amber: #F2B544;
  --c-text: #DCE3E8;
  --c-muted: #8A97A3;

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-body: "Geist", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r: 14px;
  --r-lg: 22px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { /* paper grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.26 0 0 0 0 0.2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.locked { overflow: hidden; }
main, header, footer { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- concept bar ---------- */
.concept-bar {
  position: relative; z-index: 2;
  display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: 8px var(--gutter); font-size: .82rem; background: var(--ink); color: #E9E4D8; text-align: center;
}
.concept-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(242,181,68,.18); }
.concept-link { background: none; border: 0; padding: 0; color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.logo svg { width: 34px; height: 20px; color: var(--signal); }
.logo-word { font-weight: 700; letter-spacing: .14em; font-size: 1.02rem; }
.logo-sub { font-family: var(--f-display); font-style: italic; font-size: 1.12rem; color: var(--ink-2); margin-left: -2px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { white-space: nowrap; text-decoration: none; font-size: .92rem; color: var(--ink-2); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1.5px; background: var(--signal); transition: right .3s var(--ease); }
.nav-links a:hover::after { right: 0; }
.nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; flex-direction: column; justify-content: center; gap: 6px; padding: 0 10px; }
.nav-burger span { display: block; height: 1.5px; background: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 10px 18px; font-size: .9rem; font-weight: 500; text-decoration: none; border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 24px; font-size: .98rem; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--signal-ink); }
.btn-signal { background: var(--signal); color: #fff; box-shadow: 0 10px 30px -12px rgba(229,72,45,.7); }
.btn-signal:hover { background: var(--signal-ink); }
.btn-line { border-color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); }

/* ---------- typography ---------- */
.eyebrow { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--signal-ink); margin: 0 0 18px; }
.display { font-family: var(--f-display); font-weight: 400; font-size: clamp(3rem, 7.4vw, 6.6rem); line-height: .94; letter-spacing: -.02em; margin: 0 0 26px; }
.display em, .h2 em { color: var(--signal); font-style: italic; }
.h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1; letter-spacing: -.015em; margin: 0; }
.lede { font-size: clamp(1.02rem, 1.4vw, 1.16rem); color: var(--ink-2); max-width: 36em; margin: 0; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 34px 0 44px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line-2); }
.hero-stats div { padding: 16px 16px 0 0; }
.hero-stats div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.hero-stats dt { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; }
.hero-stats dd { margin: 6px 0 0; font-size: .82rem; color: var(--muted); line-height: 1.35; }

/* ---------- console ---------- */
.console {
  position: relative; background: var(--console); color: var(--c-text); border-radius: var(--r-lg);
  padding: 18px; box-shadow: 0 40px 80px -40px rgba(13,17,21,.55), 0 0 0 1px rgba(255,255,255,.04) inset;
  transform: rotate(.6deg);
}
.console::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 60% at 80% 0%, rgba(124,245,200,.10), transparent 60%); }
.console-head { display: flex; align-items: center; gap: 10px; color: var(--c-muted); }
.console-led { width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.console-tag { margin-left: auto; color: var(--amber); border: 1px solid rgba(242,181,68,.4); padding: 2px 8px; border-radius: 999px; font-size: .64rem; }
.console-trace { position: relative; height: 128px; margin: 14px 0; background: var(--console-2); border-radius: var(--r); overflow: hidden; }
.console-trace svg { width: 100%; height: 100%; }
.grid-lines line { stroke: var(--console-line); stroke-dasharray: 2 5; }
.trace { fill: none; stroke: url(#traceFade); stroke-width: 2; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 3.2s var(--ease) .4s forwards; filter: drop-shadow(0 0 6px rgba(124,245,200,.55)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.trace-label { position: absolute; top: 6px; color: var(--glow); font-size: .62rem; opacity: 0; animation: fadeIn .6s 2.6s forwards; }
.trace-label.l1 { left: 19.5%; } .trace-label.l2 { left: 63%; }
@keyframes fadeIn { to { opacity: .9; } }
.console-form { display: flex; gap: 10px; align-items: flex-end; background: var(--console-3); border: 1px solid var(--console-line); border-radius: var(--r); padding: 10px 10px 10px 14px; transition: border-color .2s; }
.console-form:focus-within { border-color: var(--glow); }
.console-form textarea, .composer textarea { flex: 1; resize: none; background: transparent; border: 0; outline: 0; color: var(--c-text); font: inherit; font-size: 1rem; line-height: 1.45; min-height: 2.9em; }
.console-form textarea::placeholder, .composer textarea::placeholder { color: #66727D; }
.console-send { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--glow); color: var(--console); display: grid; place-items: center; transition: transform .2s var(--ease); }
.console-send:hover { transform: translateX(2px); }
.console-send svg { width: 20px; height: 20px; }
.console-chips, .finder-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { border: 1px solid var(--console-line); background: transparent; color: var(--c-text); border-radius: 999px; padding: 7px 12px; font-size: .82rem; text-align: left; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--glow); background: rgba(124,245,200,.06); }
.console-foot { margin: 14px 0 0; color: #66727D; font-size: .62rem; line-height: 1.5; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-head { margin-bottom: clamp(32px, 5vw, 64px); max-width: 860px; }
.section-head .lede { margin-top: 22px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; flex-wrap: wrap; }
.section-paper2 { background: var(--paper-2); }
.section-ink { background: var(--console); color: var(--c-text); }
.section-ink .h2 { color: #F1EEE6; }
.eyebrow-glow { color: var(--glow); }
.lede-inv { color: var(--c-muted); }

/* families */
.families { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.family { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; min-height: 340px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.family:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(18,22,28,.45); }
.family-k { display: flex; justify-content: space-between; color: var(--muted); }
.family h3 { font-family: var(--f-display); font-weight: 400; font-size: 2.6rem; margin: 26px 0 8px; line-height: 1; }
.family p { color: var(--ink-2); font-size: .95rem; margin: 0 0 20px; }
.family-cols { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.family-cols span { font-family: var(--f-mono); font-size: .7rem; padding: 4px 8px; border-radius: 6px; background: var(--paper-2); color: var(--ink-2); }
.family-mini { position: absolute; right: -10px; top: 70px; width: 160px; opacity: .55; }
.family-mini path { fill: none; stroke: var(--signal); stroke-width: 1.6; }
.family-actions { display: flex; gap: 14px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.product-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.strip-item { padding: 18px 22px; text-decoration: none; font-size: .9rem; color: var(--ink-2); background: var(--card); transition: background .2s; }
.strip-item + .strip-item { border-left: 1px solid var(--line); }
.strip-item:hover { background: var(--paper-2); }
.strip-item .mono { display: block; color: var(--signal-ink); margin-bottom: 6px; }

.link-arrow { background: none; border: 0; padding: 0; font-size: .88rem; font-weight: 500; color: var(--ink); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* evidence */
.evidence { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--console-line); border-radius: var(--r-lg); overflow: hidden; }
.ev { background: var(--console-2); padding: 28px; }
.ev h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; color: #F1EEE6; margin: 22px 0 10px; line-height: 1.05; }
.ev p { color: var(--c-muted); margin: 0; font-size: .94rem; }
.ev-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .66rem; }
.ev-verified .ev-badge, .tag-verified { background: rgba(124,245,200,.12); color: var(--glow); border: 1px solid rgba(124,245,200,.35); }
.ev-hypo .ev-badge, .tag-hypo { background: rgba(242,181,68,.10); color: var(--amber); border: 1px solid rgba(242,181,68,.35); }
.ev-missing .ev-badge, .tag-missing { background: rgba(229,72,45,.10); color: #FF8A70; border: 1px solid rgba(229,72,45,.4); }
.finder-try { margin-top: 36px; }
.finder-try > .mono { color: var(--c-muted); margin: 0; }

/* applications */
.app-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 7px 13px; font-size: .82rem; color: var(--ink-2); }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.app { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.app:hover { transform: translateY(-3px); box-shadow: 0 28px 50px -36px rgba(18,22,28,.5); }
.app-img { aspect-ratio: 16/9; background: #fff; border-bottom: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.app-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.app-img .app-noimg { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); }
.app-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.app-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.app-meta span { font-family: var(--f-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; padding: 3px 7px; border-radius: 5px; background: var(--paper-2); color: var(--ink-2); }
.app-meta .app-col { background: var(--ink); color: var(--paper); }
.app h3 { font-size: 1rem; font-weight: 600; line-height: 1.35; margin: 0; }
.app-foot { margin-top: auto; display: flex; justify-content: space-between; gap: 10px; align-items: center; padding-top: 8px; }
.app-foot a { font-size: .82rem; color: var(--muted); }

/* services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc { background: var(--card); border-radius: var(--r-lg); padding: 24px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.svc-num { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--signal-ink); }
.svc h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; line-height: 1.05; margin: 10px 0 0; }
.svc p { margin: 0 0 8px; color: var(--ink-2); font-size: .92rem; }
.svc .link-arrow { margin-top: auto; }

/* tech */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.tech-grid .lede { margin-top: 22px; }
.levers { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.levers li { display: grid; grid-template-columns: 110px 1fr; gap: 6px 16px; align-items: center; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.lever-k { color: var(--signal-ink); }
.lever-bar { grid-column: 1 / -1; height: 6px; background: var(--paper-2); border-radius: 6px; overflow: hidden; }
.lever-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--eluent), var(--signal)); border-radius: inherit; transition: width 1.4s var(--ease); }
.levers.in .lever-bar i { width: var(--w); }

/* cta + footer */
.cta-band { background: var(--signal); color: #fff; padding: clamp(48px, 7vw, 88px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.h2-inv { color: #fff; }
.cta-band .btn-signal { background: var(--ink); box-shadow: none; }
.cta-band .btn-signal:hover { background: #000; }
.footer { background: var(--ink); color: #BDB7AA; padding: 56px 0 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.logo-inv { color: #F1EEE6; } .logo-inv .logo-sub { color: #BDB7AA; }
.footer-note { font-size: .84rem; max-width: 30em; margin-top: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.footer-col .mono { color: #7F796D; margin: 0 0 4px; }
.footer-col a { text-decoration: none; } .footer-col a:hover { color: #fff; }

/* launcher */
.launcher { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: inline-flex; gap: 10px; align-items: center; padding: 12px 18px 12px 14px; border-radius: 999px; border: 0; background: var(--console); color: var(--c-text); box-shadow: 0 0 0 1px rgba(124,245,200,.35), 0 18px 40px -16px rgba(13,17,21,.7); font-size: .9rem; transform: translateY(120px); transition: transform .5s var(--ease); }
.launcher.show { transform: none; }
.launcher svg { width: 30px; height: 18px; color: var(--glow); }

/* ---------- assistant ---------- */
.assistant { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.assistant-scrim { position: absolute; inset: 0; background: rgba(13,17,21,.42); opacity: 0; transition: opacity .35s; backdrop-filter: blur(2px); }
.assistant-panel { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(1040px, calc(100vw - 24px)); background: var(--console); color: var(--c-text); border-radius: var(--r-lg); display: flex; flex-direction: column; overflow: hidden; transform: translateX(105%); transition: transform .5s var(--ease); box-shadow: -30px 0 80px -30px rgba(0,0,0,.6); }
.assistant.open { pointer-events: auto; }
.assistant.open .assistant-scrim { opacity: 1; }
.assistant.open .assistant-panel { transform: none; }
.assistant-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--console-line); }
.assistant-title { display: flex; align-items: center; gap: 10px; }
.assistant-title h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; color: #F1EEE6; }
.assistant-tools { margin-left: auto; display: flex; gap: 6px; }
.tool-btn { white-space: nowrap; border: 1px solid var(--console-line); background: transparent; color: var(--c-muted); border-radius: 10px; padding: 7px 11px; transition: color .2s, border-color .2s; }
.tool-btn:hover, .tool-btn[aria-pressed="true"] { color: var(--glow); border-color: var(--glow); }
.tool-close { font-size: 1.3rem; line-height: 1; padding: 4px 11px 6px; }
.assistant-body { flex: 1; display: grid; grid-template-columns: 1fr 0; min-height: 0; transition: grid-template-columns .4s var(--ease); }
.assistant-body.with-insights { grid-template-columns: 1fr 320px; }
.thread { position: relative; overflow-y: auto;padding: 24px clamp(16px, 3vw, 36px) 32px; scroll-behavior: smooth; }
.insights { overflow-y: auto; border-left: 1px solid var(--console-line); background: var(--console-2); padding: 20px; min-width: 0; visibility: hidden; }
.with-insights .insights { visibility: visible; }
.insights-k { color: var(--amber); margin: 0 0 14px; }
.composer { display: flex; gap: 10px; align-items: flex-end; margin: 0 16px 16px; padding: 10px 10px 10px 16px; background: var(--console-3); border: 1px solid var(--console-line); border-radius: var(--r); }
.composer:focus-within { border-color: var(--glow); }
.composer textarea { min-height: 1.5em; max-height: 160px; padding: 8px 0; }

/* messages */
.msg { max-width: 860px; margin: 0 auto 26px; animation: msgIn .5s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } }
.msg-user { display: flex; justify-content: flex-end; }
.msg-user .bubble { background: var(--console-3); border: 1px solid var(--console-line); padding: 12px 16px; border-radius: 16px 16px 4px 16px; max-width: 78%; white-space: pre-wrap; }
.msg-bot .who { display: flex; gap: 8px; align-items: center; color: var(--c-muted); margin-bottom: 10px; }
.msg-bot .who svg { width: 26px; height: 16px; color: var(--glow); }
.msg-bot p { margin: 0 0 12px; }
.msg-bot a { color: var(--glow); text-underline-offset: 3px; }
.msg-bot a.btn { text-decoration: none; }
.msg-bot a.btn-glow { color: var(--console); }
.msg-bot a.btn-dark { color: var(--c-text); }
.msg-bot a.btn-dark:hover { color: var(--glow); }
.steps { list-style: none; margin: 0 0 14px; padding: 12px 14px; border: 1px dashed var(--console-line); border-radius: var(--r); display: grid; gap: 6px; font-family: var(--f-mono); font-size: .76rem; color: var(--c-muted); }
.steps li { display: flex; gap: 10px; align-items: center; opacity: .35; transition: opacity .3s; }
.steps li.on { opacity: 1; }
.steps li.done::before { content: "✓"; color: var(--glow); width: 12px; }
.steps li:not(.done)::before { content: "·"; width: 12px; text-align: center; }
.steps li.on:not(.done)::before { content: ""; width: 10px; height: 10px; border: 1.5px solid var(--glow); border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps .n { margin-left: auto; color: var(--glow); }
.collapsed-steps { font-family: var(--f-mono); font-size: .7rem; color: #66727D; margin: 0 0 12px; }

.status { display: inline-flex; gap: 8px; align-items: center; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; margin-bottom: 12px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-ok { color: var(--glow); background: rgba(124,245,200,.08); }
.status-partial { color: var(--amber); background: rgba(242,181,68,.08); }
.status-none { color: #FF8A70; background: rgba(229,72,45,.08); }

.card { background: var(--console-2); border: 1px solid var(--console-line); border-radius: var(--r); padding: 18px; margin: 0 0 14px; }
.card-k { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 10px; color: var(--c-muted); }
.tag { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.rec { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; background: linear-gradient(135deg, #18231F, var(--console-2) 60%); border-color: rgba(124,245,200,.28); }
.rec-name { font-family: var(--f-display); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: #F1EEE6; margin: 4px 0 6px; }
.rec-modes { color: var(--c-muted); font-size: .9rem; margin: 0 0 10px; }
.rec-why { margin: 0; font-size: .94rem; }
.rec-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.btn-glow { background: var(--glow); color: var(--console); }
.btn-glow:hover { background: #A5FBDB; }
.btn-dark { border-color: var(--console-line); color: var(--c-text); background: transparent; }
.btn-dark:hover { border-color: var(--glow); color: var(--glow); }
.params { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); background: var(--console); border: 1px solid var(--console-line); border-radius: 10px; overflow: hidden; margin: 6px 0 12px; }
.params div { padding: 10px 12px; box-shadow: 0 0 0 .5px var(--console-line); }
.params dt { font-family: var(--f-mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .07em; color: var(--c-muted); }
.params dd { margin: 3px 0 0; font-size: .92rem; color: #F1EEE6; }
.params .wide { grid-column: 1 / -1; }
.chrom { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.chrom figure { margin: 0; background: #fff; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.chrom figure img { width: 100%; }
.chrom figcaption { font-size: .72rem; color: #555; padding: 6px 10px; background: #F4F4F2; }
.peaks { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.peaks li { display: flex; gap: 10px; align-items: baseline; font-size: .92rem; }
.peaks .pk { font-family: var(--f-mono); font-size: .7rem; color: var(--glow); min-width: 54px; }
.note { font-size: .84rem; color: var(--c-muted); border-left: 2px solid var(--console-line); padding-left: 10px; margin: 8px 0 0; }
.checks { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: .92rem; }
.checks .ic { font-family: var(--f-mono); font-weight: 600; }
.ic-ok { color: var(--glow); } .ic-warn { color: var(--amber); } .ic-bad { color: #FF8A70; } .ic-q { color: var(--c-muted); }
.alts { display: grid; gap: 10px; }
.alt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--console-line); border-radius: 12px; }
.alt-col { font-family: var(--f-mono); font-size: .72rem; color: var(--console); background: var(--c-text); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.alt p { margin: 0; font-size: .88rem; }
.alt small { color: var(--c-muted); display: block; margin-top: 2px; }
.ask-group { margin: 0 0 14px; }
.ask-group > p { font-size: .86rem; color: var(--c-muted); margin: 0 0 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { border: 1px solid var(--console-line); background: var(--console); color: var(--c-text); border-radius: 10px; padding: 8px 12px; font-size: .86rem; transition: border-color .2s, background .2s; }
.opt:hover { border-color: var(--glow); }
.opt[aria-pressed="true"] { background: rgba(124,245,200,.12); border-color: var(--glow); color: var(--glow); }
.opt:disabled { opacity: .5; cursor: default; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lead-form label { display: grid; gap: 4px; font-size: .78rem; color: var(--c-muted); }
.lead-form input, .lead-form textarea { background: var(--console); border: 1px solid var(--console-line); border-radius: 10px; padding: 10px 12px; color: var(--c-text); font: inherit; font-size: .92rem; }
.lead-form input:focus, .lead-form textarea:focus { outline: 0; border-color: var(--glow); }
.lead-form .full { grid-column: 1 / -1; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }
.welcome h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); color: #F1EEE6; margin: 0 0 10px; line-height: 1.05; }
.welcome .chips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.welcome .chip { border-radius: 12px; padding: 14px; }
.welcome .chip b { display: block; font-family: var(--f-mono); font-size: .64rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--glow); margin-bottom: 4px; }

/* insights */
.ins-block { border: 1px solid var(--console-line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; background: var(--console); }
.ins-block h4 { margin: 0 0 8px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); font-weight: 500; }
.ins-row { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; padding: 3px 0; }
.ins-row span:first-child { color: var(--c-muted); }
.ins-row span:last-child { text-align: right; color: #F1EEE6; }
.ins-score { font-family: var(--f-display); font-size: 2.4rem; color: var(--amber); line-height: 1; }
.ins-empty { font-size: .86rem; color: var(--c-muted); }
.ins-list { margin: 0; padding-left: 18px; font-size: .84rem; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.8); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-height: 90vh; background: #fff; border-radius: 10px; }

/* brief dialog */
.brief { border: 0; border-radius: var(--r-lg); padding: 0; max-width: 860px; width: calc(100vw - 32px); background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0,0,0,.5); }
.brief::backdrop { background: rgba(13,17,21,.5); backdrop-filter: blur(3px); }
.brief-inner { position: relative; padding: clamp(24px, 4vw, 44px); }
.brief-close { position: absolute; top: 16px; right: 16px; color: var(--ink-2); border-color: var(--line-2); }
.brief .h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 26px; padding-right: 40px; }
.brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.brief-grid div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.brief-grid h3 { margin: 0 0 6px; font-size: 1rem; }
.brief-grid p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.brief-foot { margin: 22px 0 0; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: .74rem; line-height: 1.5; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease) forwards; }
.hero-copy .reveal:nth-child(1) { animation-delay: .05s; }
.hero-copy .reveal:nth-child(2) { animation-delay: .15s; }
.hero-copy .reveal:nth-child(3) { animation-delay: .28s; }
.hero-copy .reveal:nth-child(4) { animation-delay: .38s; }
.hero-copy .reveal:nth-child(5) { animation-delay: .48s; }
.console.reveal { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.console.reveal { animation-name: riseTilt; }
@keyframes riseTilt { from { opacity: 0; transform: translateY(20px) rotate(.6deg); } to { opacity: 1; transform: rotate(.6deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .trace { stroke-dashoffset: 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 18px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .apps { grid-template-columns: repeat(2, 1fr); }
  .assistant-body.with-insights { grid-template-columns: 1fr 280px; }
}
@media (max-width: 1000px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-burger { display: flex; }
  .nav-actions .btn-ghost { display: none; }
}
@media (max-width: 900px) {
  .hero-grid, .tech-grid { grid-template-columns: 1fr; }
  .console { transform: none; }
  .console.reveal { animation-name: rise; }
  .families, .evidence, .product-strip { grid-template-columns: 1fr; }
  .strip-item + .strip-item { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .assistant-body.with-insights { grid-template-columns: 1fr; }
  .with-insights .thread { display: none; }
  .with-insights .insights { border-left: 0; }
}
@media (max-width: 640px) {
  .nav-actions .btn-ink { display: none; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats div, .hero-stats div + div { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; }
  .hero-stats dt { font-size: 1.9rem; min-width: 70px; }
  .apps, .services, .brief-grid, .lead-form { grid-template-columns: 1fr; }
  .assistant-panel { top: 0; right: 0; bottom: 0; width: 100vw; border-radius: 0; }
  .rec, .chrom { grid-template-columns: 1fr; }
  .rec-actions { flex-direction: row; flex-wrap: wrap; }
  .welcome .chips-grid { grid-template-columns: 1fr; }
  .alt { grid-template-columns: 1fr; gap: 6px; }
  .alt-col { justify-self: start; }
  .launcher span { display: none; }
  .assistant-head { padding: 12px 12px 12px 16px; gap: 8px; }
  .assistant-title h2 { font-size: 1.3rem; white-space: nowrap; }
  .assistant-title .console-tag { display: none; }
  .tool-btn { padding: 6px 8px; }
  .launcher { padding: 14px; }
  .msg-user .bubble { max-width: 90%; }
}
