/* Dorus — marketing + product demo site. No framework, no build step.
   Dark only. Colors are tokens; the eight entity colors are the validated
   dark categorical palette (fixed order = fixed identity across every page). */

:root {
  color-scheme: dark;
  --bg: #06070b;
  --bg-2: #090b11;
  --surface: #0d1017;
  --surface-2: #121621;
  --surface-3: #191e2b;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.2);
  --text: #eef1f7;
  --text-2: #a7aec0;
  --text-3: #6e7589;
  --white: #ffffff;

  --accent: #8f90ff;
  --accent-2: #5ad1ff;
  --accent-3: #6ee7c4;
  --grad: linear-gradient(92deg, #b3b4ff 0%, #6fd3ff 48%, #7ff0cf 100%);
  --grad-soft: linear-gradient(135deg, rgba(143, 144, 255, 0.18), rgba(90, 209, 255, 0.10) 50%, rgba(110, 231, 196, 0.12));

  /* Entity identity (dark categorical slots 1-8, in order) */
  --c-paper: #3987e5;
  --c-people: #d95926;
  --c-concept: #199e70;
  --c-patent: #c98500;
  --c-trial: #d55181;
  --c-code: #0ca30c;
  --c-grant: #9085e9;
  --c-press: #e66767;

  /* Status (reserved; always with an icon + label) */
  --good: #0ca30c;
  --warn: #fab219;
  --serious: #ec835a;
  --bad: #d03b3b;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --max: 1200px;
  --gutter: 24px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(143, 144, 255, 0.35); color: var(--white); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 640px) { :root { --gutter: 16px; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; color: var(--text); }
.display {
  font-size: clamp(42px, 6.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -0.04em; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -0.025em; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--text-2); max-width: 640px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.mono { font-family: var(--mono); }
p { margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px/1 var(--sans); letter-spacing: 0.01em; color: var(--text-2);
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-2);
}
.eyebrow .tag { font: 600 11px/1 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: #0b0c12; background: var(--grad); padding: 5px 8px; border-radius: 999px; }
.kicker { font: 500 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); }
.kicker.alt { color: var(--accent-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font: 500 15px/1 var(--sans); letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-primary { background: var(--white); color: #07080c; }
.btn-primary:hover { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12), 0 10px 40px -10px rgba(143, 144, 255, 0.6); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--line-3); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(6, 7, 11, 0.72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom-color: var(--line); }
.nav .container { display: flex; align-items: center; gap: 28px; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 19px/1 var(--sans); letter-spacing: -0.03em; }
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links > a, .nav-links > .dd > button {
  font: 500 14px/1 var(--sans); color: var(--text-2); padding: 9px 12px; border-radius: 8px;
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: color .15s ease, background .15s ease;
}
.nav-links > a:hover, .nav-links > .dd > button:hover, .nav-links > .dd.open > button { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links .dd button svg { width: 12px; height: 12px; transition: transform .2s ease; }
.nav-links .dd.open button svg { transform: rotate(180deg); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.dd { position: relative; }
.dd-panel {
  position: absolute; top: calc(100% + 10px); left: -16px; width: 620px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px;
  background: rgba(14, 17, 24, 0.96); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.02);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.dd.open .dd-panel { opacity: 1; transform: none; pointer-events: auto; }
.dd-item { display: flex; gap: 12px; padding: 12px; border-radius: var(--r); transition: background .15s ease; }
.dd-item:hover { background: rgba(255, 255, 255, 0.05); }
.dd-item .pi { flex: none; }
.dd-item strong { display: block; font: 500 14px/1.3 var(--sans); color: var(--text); }
.dd-item span { display: block; font-size: 13px; line-height: 1.4; color: var(--text-3); margin-top: 3px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    display: block; position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 49;
    background: rgba(6, 7, 11, 0.97); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px; max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  .nav.menu-open + .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
  .nav.menu-open { background: rgba(6, 7, 11, 0.97); }
  .mobile-menu a { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }
  .mobile-menu .btn { margin-top: 16px; width: 100%; }
}

/* ---------- Product icons (tile) ---------- */
.pi {
  --pc: var(--accent);
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--pc) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 40%, transparent);
  color: color-mix(in srgb, var(--pc) 70%, white);
}
.pi svg { width: 18px; height: 18px; }
.pi.lg { width: 52px; height: 52px; border-radius: 14px; }
.pi.lg svg { width: 26px; height: 26px; }
.p-paper { --pc: var(--c-paper); }
.p-prior { --pc: var(--c-patent); }
.p-field { --pc: var(--c-concept); }
.p-reading { --pc: var(--c-grant); }
.p-people { --pc: var(--c-people); }
.p-radar { --pc: var(--c-trial); }

/* ---------- Sections ---------- */
section { position: relative; overflow-x: clip; }
main { overflow-x: clip; }
.section { padding: 128px 0; }
.section.tight { padding: 88px 0; }
@media (max-width: 760px) { .section { padding: 88px 0; } .section.tight { padding: 64px 0; } }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.section-head .kicker { display: block; margin-bottom: 18px; }
.section-head .lede { margin-top: 20px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); border: 0; margin: 0; }

.glow {
  position: absolute; pointer-events: none; border-radius: 50%; filter: blur(80px); opacity: .55; z-index: 0;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 96px) 0 96px; overflow: hidden; min-height: 760px; }
.hero .container { position: relative; z-index: 2; }
.hero-copy { max-width: 820px; }
.hero-copy .lede { max-width: 620px; }
.hero-copy .eyebrow { margin-bottom: 28px; }
.hero-copy .lede { margin-top: 24px; }
.hero-copy .btn-row { margin-top: 36px; }
.hero-canvas { position: absolute; z-index: 1; top: 40px; right: -6%; width: min(62vw, 900px); height: min(62vw, 900px); max-height: 860px; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 200px; background: linear-gradient(to bottom, transparent, var(--bg)); z-index: 1; pointer-events: none; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px 40px; margin-top: 64px; }
.hero-meta div { min-width: 120px; }
.hero-meta strong { display: block; font: 600 30px/1 var(--sans); letter-spacing: -0.03em; }
.hero-meta span { display: block; margin-top: 8px; font-size: 13px; color: var(--text-3); }
@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 64px); }
  .hero-canvas { top: 30px; right: -30%; width: 120vw; height: 120vw; opacity: .45; }
}

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track span { font: 500 17px/1 var(--sans); letter-spacing: -0.01em; color: var(--text-3); white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.marquee-track span i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-3); display: inline-block; }
.marquee-label { text-align: center; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  position: relative; background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.card h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.card .num { font: 500 12px/1 var(--mono); color: var(--text-3); letter-spacing: .08em; margin-bottom: 22px; display: block; }
a.card:hover, .card.hover:hover { border-color: var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)); }

/* Product card (main page grid) */
.pcard { display: flex; flex-direction: column; padding: 0; overflow: hidden; min-height: 100%; }
.pcard .pcard-body { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pcard .pcard-top { display: flex; align-items: center; gap: 12px; }
.pcard .pcard-top .label { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.pcard h3 { font-size: 22px; margin: 0; }
.pcard p { font-size: 15px; }
.pcard .more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text); }
.pcard .more svg { width: 14px; height: 14px; transition: transform .2s ease; }
.pcard:hover .more svg { transform: translateX(3px); }
.pcard .pcard-viz { height: 170px; border-top: 1px solid var(--line); background: var(--bg-2); position: relative; overflow: hidden; }
.pcard .pcard-viz svg { width: 100%; height: 100%; }
.pcard.flagship { grid-column: span 2; }
.pcard.flagship .pcard-viz { height: 170px; }
@media (max-width: 1000px) { .pcard.flagship { grid-column: span 2; } }
@media (max-width: 680px) { .pcard.flagship { grid-column: auto; } }
.badge-flag { font: 600 10px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; padding: 5px 8px; border-radius: 999px; color: #06120e; background: var(--accent-3); margin-left: auto; }

/* ---------- Chips / badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; font: 500 12.5px/1 var(--sans); color: var(--text-2); padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); white-space: nowrap; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--text-3)); flex: none; }
.chip.mono { font-family: var(--mono); font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dot-paper { --dot: var(--c-paper); } .dot-people { --dot: var(--c-people); } .dot-concept { --dot: var(--c-concept); } .dot-patent { --dot: var(--c-patent); }
.dot-trial { --dot: var(--c-trial); } .dot-code { --dot: var(--c-code); } .dot-grant { --dot: var(--c-grant); } .dot-press { --dot: var(--c-press); }

.status { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px/1.2 var(--sans); padding: 5px 9px 5px 7px; border-radius: 999px; white-space: nowrap; }
.status svg { width: 13px; height: 13px; flex: none; }
.status.good { color: #8fe08f; background: rgba(12, 163, 12, 0.12); }
.status.warn { color: #ffd27a; background: rgba(250, 178, 25, 0.12); }
.status.serious { color: #f6b296; background: rgba(236, 131, 90, 0.13); }
.status.bad { color: #f19595; background: rgba(208, 59, 59, 0.15); }
.status.neutral { color: var(--text-2); background: rgba(255, 255, 255, 0.06); }

/* ---------- Product mockup window ---------- */
.window {
  position: relative; border-radius: var(--r-xl); background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02), 0 40px 120px -30px rgba(0,0,0,0.9), 0 0 80px -20px rgba(143,144,255,0.18);
  overflow: hidden; text-align: left;
}
.window-bar { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.015); }
.window-bar .dots { display: flex; gap: 7px; }
.window-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a2f3c; display: block; }
.window-bar .crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); min-width: 0; }
.window-bar .crumbs b { color: var(--text-2); font-weight: 500; }
.window-bar .crumbs svg { width: 16px; height: 16px; }
.window-bar .sample { margin-left: auto; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); border: 1px dashed var(--line-3); padding: 5px 8px; border-radius: 6px; white-space: nowrap; }
.window-body { padding: 24px; }
@media (max-width: 640px) { .window-body { padding: 16px; } .window-bar .crumbs .hide-sm { display: none; } }

.app-query { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line-2); font-size: 15px; color: var(--text); }
.app-query svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.app-query .q { flex: 1; min-width: 0; }
.app-query kbd { font: 500 11px/1 var(--mono); color: var(--text-3); border: 1px solid var(--line-2); border-radius: 5px; padding: 4px 6px; }

.app-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 20px 0 22px; overflow-x: auto; scrollbar-width: none; }
.app-tabs::-webkit-scrollbar { display: none; }
.app-tab { background: none; border: 0; color: var(--text-3); font: 500 14px/1 var(--sans); padding: 12px 14px; cursor: pointer; position: relative; white-space: nowrap; transition: color .15s ease; }
.app-tab:hover { color: var(--text-2); }
.app-tab[aria-selected="true"] { color: var(--text); }
.app-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad); }
.app-panel[hidden] { display: none; }
.app-panel { animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.pane { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.pane-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 500 13px/1.2 var(--sans); color: var(--text-2); margin-bottom: 14px; }
.pane-title .faint { font-weight: 400; font-size: 12px; }
.pane + .pane { margin-top: 14px; }
.app-grid > .pane + .pane { margin-top: 0; }
.app-grid { display: grid; gap: 14px; }
.app-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.app-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.app-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.app-grid.side { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 860px) { .app-grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .app-grid.side, .app-grid.c3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .app-grid.c2 { grid-template-columns: minmax(0, 1fr); } }

.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; }
.stat .label { font-size: 12.5px; color: var(--text-3); }
.stat .value { font: 600 26px/1.1 var(--sans); letter-spacing: -0.03em; margin-top: 8px; }
.stat .value small { font-size: 14px; font-weight: 500; color: var(--text-3); letter-spacing: 0; margin-left: 2px; }
.stat .sub { margin-top: 8px; font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.list li:first-child { border-top: 0; padding-top: 0; }
.list li:last-child { padding-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list strong { color: var(--text); font-weight: 500; }
.list .meta { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }

.quote { border-left: 2px solid var(--line-3); padding: 2px 0 2px 12px; font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.45; color: var(--text); }
.quote mark { background: rgba(250, 178, 25, 0.18); color: inherit; border-radius: 3px; padding: 0 2px; }

.meter { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 500; color: var(--text-3); font-size: 12px; padding: 0 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td strong { color: var(--text); font-weight: 500; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll-x { overflow-x: auto; }

/* chart text */
.viz text { font-family: var(--sans); fill: var(--text-3); font-size: 11px; }
.viz .t2 { fill: var(--text-2); }
.viz .t1 { fill: var(--text); }
.viz .grid-line { stroke: rgba(255,255,255,0.07); stroke-width: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; background: var(--dot); }
.legend i.ln { height: 2px; width: 14px; border-radius: 2px; }

.tip { position: fixed; z-index: 80; pointer-events: none; background: rgba(18, 22, 33, 0.97); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; line-height: 1.4; color: var(--text); box-shadow: 0 10px 30px rgba(0,0,0,.5); opacity: 0; transition: opacity .12s ease; max-width: 260px; }
.tip.show { opacity: 1; }
.tip .faint { font-size: 11.5px; }

/* ---------- Feature rows (product pages) ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.feature + .feature { margin-top: 120px; }
.feature.flip .feature-copy { order: 2; }
.feature-copy .kicker { display: block; margin-bottom: 16px; }
.feature-copy h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; letter-spacing: -0.035em; }
.feature-copy p { margin-top: 18px; color: var(--text-2); font-size: 17px; line-height: 1.6; }
.feature-copy ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.feature-copy li { display: flex; gap: 12px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.feature-copy li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent-3); }
.feature-visual { position: relative; }
@media (max-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr); gap: 36px; } .feature.flip .feature-copy { order: 0; } .feature + .feature { margin-top: 88px; } }

/* ---------- Product hero ---------- */
.phero { position: relative; padding: calc(var(--nav-h) + 80px) 0 40px; overflow: hidden; text-align: center; }
.phero .container { position: relative; z-index: 2; }
.phero .pi.lg { margin: 0 auto 26px; }
.phero .lede { margin: 22px auto 0; }
.phero .btn-row { justify-content: center; margin-top: 32px; }
.phero .reads { justify-content: center; margin-top: 28px; }
.phero-shot { position: relative; z-index: 2; margin-top: 64px; }
.phero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.phero-bg::before { content: ""; position: absolute; left: 50%; top: -260px; width: 1100px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--pc, var(--accent)) 30%, transparent), transparent); filter: blur(10px); }
.phero-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%); }

/* Crumb/switcher under nav on product pages */
.switcher { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 40px; }
.switcher a { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid transparent; transition: color .15s, border-color .15s, background .15s; }
.switcher a .pi { width: 22px; height: 22px; border-radius: 7px; }
.switcher a .pi svg { width: 13px; height: 13px; }
.switcher a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.switcher a[aria-current="page"] { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,0.04); }

/* Measured block */
.measure { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); }
.measure > div { padding: 40px; }
.measure > div + div { border-left: 1px solid var(--line); }
.measure h3 { font-size: 26px; letter-spacing: -0.03em; line-height: 1.15; margin-top: 14px; }
.measure p { color: var(--text-2); margin-top: 14px; }
.measure dl { margin: 0; display: grid; gap: 0; }
.measure dl div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.measure dl div:first-child { border-top: 0; padding-top: 0; }
.measure dt { font: 500 12px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.measure dd { margin: 0; font-size: 15px; color: var(--text); }
@media (max-width: 860px) { .measure { grid-template-columns: minmax(0, 1fr); } .measure > div + div { border-left: 0; border-top: 1px solid var(--line); } .measure > div { padding: 28px; } .measure dl div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Persona */
.persona .role { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; display: block; }
.persona blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.35; color: var(--text); }
.persona p { margin-top: 16px; }

/* Atlas reads strip */
.reads-strip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: center; padding: 40px; border-radius: var(--r-xl); border: 1px solid var(--line); background: radial-gradient(600px 300px at 0% 0%, rgba(143,144,255,0.08), transparent), var(--bg-2); }
.reads-strip h3 { font-size: 28px; letter-spacing: -0.03em; line-height: 1.15; margin-top: 14px; }
.reads-strip p { color: var(--text-2); margin-top: 14px; }
.reads-strip .layers { display: grid; gap: 10px; }
.reads-strip .layer { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: rgba(255,255,255,0.025); border: 1px solid var(--line); font-size: 14px; }
.reads-strip .layer .chip { justify-self: start; }
.reads-strip .layer span.mono { font-size: 12.5px; color: var(--text-2); }
@media (max-width: 860px) { .reads-strip { grid-template-columns: minmax(0, 1fr); padding: 28px; gap: 28px; } .reads-strip .layer { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* Next products */
.next-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.next-grid a { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255,255,255,0.015); transition: border-color .2s, background .2s; }
.next-grid a:hover { border-color: var(--line-2); background: rgba(255,255,255,0.04); }
.next-grid strong { font-weight: 500; font-size: 15px; }
.next-grid span { font-size: 13px; color: var(--text-3); line-height: 1.45; }
@media (max-width: 1000px) { .next-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .next-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- CTA + footer ---------- */
.cta { position: relative; overflow: hidden; text-align: center; padding: 120px 24px; border-radius: 32px; border: 1px solid var(--line); background: radial-gradient(700px 360px at 50% 0%, rgba(143, 144, 255, 0.22), transparent 70%), radial-gradient(500px 300px at 85% 100%, rgba(110, 231, 196, 0.12), transparent 70%), var(--bg-2); }
.cta .h2 { max-width: 760px; margin: 0 auto; }
.cta .lede { margin: 20px auto 0; }
.cta .btn-row { justify-content: center; margin-top: 36px; }
@media (max-width: 640px) { .cta { padding: 80px 20px; border-radius: 24px; } }

.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; margin-top: 48px; color: var(--text-3); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer .brand { color: var(--text); }
.footer h4 { font: 500 13px/1 var(--sans); color: var(--text); margin-bottom: 16px; letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--text); }
.footer .fine { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
.footer .about { max-width: 300px; margin-top: 16px; line-height: 1.6; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: span 2; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .app-panel { animation: none; } }

/* =========================================================
   Main page specifics
   ========================================================= */

/* Problem cards */
.problem .card { padding: 32px; }
.problem .card .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); margin-bottom: 22px; color: var(--text-2); }
.problem .card .ico svg { width: 20px; height: 20px; }
.problem .card h3 { font-size: 21px; }

/* Atlas layer builder */
.atlas { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; align-items: start; }
.atlas-steps { display: grid; gap: 6px; position: sticky; top: calc(var(--nav-h) + 24px); }
.atlas-step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; text-align: left; width: 100%; background: none; border: 1px solid transparent; border-radius: var(--r); padding: 12px 14px; cursor: pointer; color: var(--text-3); transition: background .2s, border-color .2s, color .2s; font: inherit; }
.atlas-step:hover { color: var(--text-2); background: rgba(255,255,255,0.025); }
.atlas-step .n { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font: 500 12px/1 var(--mono); border: 1px solid var(--line-2); color: var(--text-3); transition: all .2s; }
.atlas-step.done .n { background: color-mix(in srgb, var(--dot) 25%, transparent); border-color: color-mix(in srgb, var(--dot) 55%, transparent); color: var(--text); }
.atlas-step strong { display: block; font-weight: 500; font-size: 15px; color: inherit; line-height: 1.3; margin-top: 4px; }
.atlas-step small { display: none; font-size: 13px; line-height: 1.5; color: var(--text-2); margin-top: 6px; }
.atlas-step.active { background: rgba(255,255,255,0.04); border-color: var(--line-2); color: var(--text); }
.atlas-step.active small { display: block; }
.atlas-stage { position: relative; border-radius: var(--r-xl); border: 1px solid var(--line); background: radial-gradient(800px 500px at 50% 45%, rgba(57,135,229,0.07), transparent 70%), var(--bg-2); overflow: hidden; }
.atlas-stage svg.graph { width: 100%; height: auto; aspect-ratio: 900 / 620; }
.atlas-stage .stage-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.atlas-stage .stage-bar .counts { display: flex; gap: 16px; font-family: var(--mono); font-size: 12px; }
.atlas-stage .stage-bar .counts b { color: var(--text); font-weight: 500; }
.atlas-stage .stage-bar .ctrl { margin-left: auto; display: flex; gap: 6px; }
.atlas-stage .stage-bar button { background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); color: var(--text-2); font: 500 12.5px/1 var(--sans); padding: 7px 10px; border-radius: 8px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.atlas-stage .stage-bar button:hover { color: var(--text); border-color: var(--line-3); }
.atlas-stage .stage-bar button svg { width: 12px; height: 12px; }
.atlas-record { border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.atlas-record > div { padding: 18px 20px; min-width: 0; }
.atlas-record > div + div { border-left: 1px solid var(--line); }
.atlas-record h4 { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.atlas-record pre { margin: 0; font: 12.5px/1.65 var(--mono); color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.atlas-record pre .k { color: #9fb4d9; } .atlas-record pre .s { color: #8fdcc0; } .atlas-record pre .n { color: #f5c97a; }
.atlas-record .src { display: grid; gap: 10px; font-size: 14px; color: var(--text-2); }
.atlas-record .src .chips { margin-top: 2px; }
@media (max-width: 980px) { .atlas { grid-template-columns: minmax(0, 1fr); } .atlas-steps { position: static; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .atlas-step small { display: none !important; } .atlas-record { grid-template-columns: minmax(0, 1fr); } .atlas-record > div + div { border-left: 0; border-top: 1px solid var(--line); } }

svg.graph .edge { stroke: rgba(255,255,255,0.16); stroke-width: 1.3; fill: none; transition: opacity .5s ease, stroke .4s ease, stroke-width .4s ease; }
svg.graph .edge.hot { stroke: rgba(255,255,255,0.55); stroke-width: 1.6; }
svg.graph .edge.path { stroke: url(#pathGrad); stroke-width: 3; }
svg.graph .node { transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1.2); transform-box: fill-box; transform-origin: center; }
svg.graph .node circle.core { stroke: var(--bg-2); stroke-width: 2; }
svg.graph .node text { font: 500 14px var(--sans); fill: var(--text-2); }
svg.graph .node text, svg.graph .elabel { paint-order: stroke; stroke: var(--bg-2); stroke-width: 5px; stroke-linejoin: round; }
svg.graph .node text.sub { font: 400 11.5px var(--mono); fill: var(--text-3); }
svg.graph .node.hot text { fill: var(--text); }
svg.graph .elabel { font: 500 12px var(--mono); fill: var(--text-2); transition: opacity .4s ease; }
svg.graph .elabel-bg { fill: var(--bg-2); transition: opacity .4s ease; }
svg.graph .off { opacity: 0; pointer-events: none; }
svg.graph .node.off { transform: scale(.4); }
svg.graph .dim { opacity: .28; }

/* Fact anatomy */
.fact { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.record-card { border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--surface); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.record-card .rc-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 500 12px/1 var(--mono); color: var(--text-3); letter-spacing: .04em; }
.record-card .rc-row { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.record-card .rc-row:last-child { border-bottom: 0; }
.record-card .rc-row .k { font: 500 12px/1.4 var(--mono); color: var(--text-3); }
.record-card .rc-row .v { color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.record-card .rc-row .v.mono { font-size: 13px; }
.record-card .rc-row.hl { background: rgba(143,144,255,0.06); }
.pillars { display: grid; gap: 14px; }
.pillar { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255,255,255,0.015); }
.pillar .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--text); }
.pillar .ico svg { width: 20px; height: 20px; }
.pillar h3 { font-size: 17px; letter-spacing: -0.015em; }
.pillar p { font-size: 14.5px; color: var(--text-2); margin-top: 6px; line-height: 1.55; }
@media (max-width: 900px) { .fact { grid-template-columns: minmax(0, 1fr); } .record-card .rc-row { grid-template-columns: 100px 1fr; } }

/* Time axes */
.timeaxes { margin-top: 48px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--bg-2); padding: 28px; }
.timeaxes .ta-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.timeaxes h3 { font-size: 20px; }
.timeaxes svg { width: 100%; height: auto; }
.asof { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
.asof button { background: none; border: 0; color: var(--text-3); font: 500 12.5px/1 var(--mono); padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.asof button[aria-pressed="true"] { background: rgba(255,255,255,0.09); color: var(--text); }
.asof-answer { margin-top: 18px; font-size: 14.5px; color: var(--text-2); min-height: 44px; }
.asof-answer b { color: var(--text); font-weight: 500; }


/* Pipeline */
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: var(--bg-2); }
.pipe-step { padding: 28px 24px 30px; position: relative; min-width: 0; }
.pipe-step + .pipe-step { border-left: 1px solid var(--line); }
.pipe-step .who { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; margin-bottom: 18px; }
.pipe-step .who.code { color: #9fb4d9; background: rgba(57,135,229,0.12); }
.pipe-step .who.model { color: #c4bdfa; background: rgba(144,133,233,0.16); }
.pipe-step .who.check { color: #8fe08f; background: rgba(12,163,12,0.12); }
.pipe-step .n { font: 500 12px/1 var(--mono); color: var(--text-3); }
.pipe-step h3 { font-size: 18px; margin-top: 10px; letter-spacing: -0.015em; }
.pipe-step p { font-size: 14px; color: var(--text-2); margin-top: 10px; line-height: 1.55; }
.pipe-step .flow { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-2), transparent); background-size: 200% 100%; opacity: 0; }
.pipeline.in .pipe-step .flow { animation: flow 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * .35s); }
@keyframes flow { 0% { opacity: 0; background-position: 100% 0; } 30% { opacity: 1; } 100% { opacity: 0; background-position: -100% 0; } }
@media (max-width: 1000px) { .pipeline { grid-template-columns: minmax(0, 1fr); } .pipe-step + .pipe-step { border-left: 0; border-top: 1px solid var(--line); } }
.pipe-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.pipe-notes div { padding: 4px 4px 0; }
.pipe-notes strong { display: block; font-weight: 500; font-size: 15px; }
.pipe-notes span { display: block; color: var(--text-2); font-size: 14px; margin-top: 6px; line-height: 1.55; }
@media (max-width: 760px) { .pipe-notes { grid-template-columns: minmax(0, 1fr); } }

/* Eval scoreboard */
.evals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.eval { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; transition: background .2s; }
.eval:hover { background: rgba(255,255,255,0.02); }
.eval:nth-child(3n) { border-right: 0; }
.eval:nth-last-child(-n+3) { border-bottom: 0; }
.eval .top { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.eval .metric { font: 600 28px/1.1 var(--sans); letter-spacing: -0.03em; }
.eval .metric small { font: 400 13px/1.4 var(--sans); color: var(--text-3); letter-spacing: 0; display: block; margin-top: 6px; }
.eval p { font-size: 14px; color: var(--text-2); line-height: 1.55; }
@media (max-width: 1000px) { .evals { grid-template-columns: repeat(2, minmax(0, 1fr)); } .eval:nth-child(3n) { border-right: 1px solid var(--line); } .eval:nth-child(2n) { border-right: 0; } .eval:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); } .eval:nth-last-child(-n+2) { border-bottom: 0; } }
@media (max-width: 640px) { .evals { grid-template-columns: minmax(0, 1fr); } .eval { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; } .eval:last-child { border-bottom: 0 !important; } }

/* Trust */
.trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.trust .card.big { grid-row: span 2; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; min-height: 420px; background: radial-gradient(500px 300px at 100% 0%, rgba(90,209,255,0.10), transparent 70%), linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)); }
.trust .card.big h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.12; letter-spacing: -0.035em; }
.trust .rig { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.trust .rig div { padding: 14px; border-radius: var(--r); background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
.trust .rig b { display: block; font: 600 22px/1.1 var(--sans); letter-spacing: -0.03em; }
.trust .rig span { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
@media (max-width: 900px) { .trust { grid-template-columns: minmax(0, 1fr); } .trust .card.big { grid-row: auto; min-height: 0; } }
@media (max-width: 520px) { .trust .rig { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   Product pages
   ========================================================= */
.phero h1 { font-size: clamp(40px, 5.4vw, 70px); line-height: 1.04; letter-spacing: -0.042em; max-width: 920px; margin: 0 auto; }
.phero .kicker { display: block; margin-bottom: 18px; }
.viz .hov .xh { opacity: 0; transition: opacity .1s; }
.viz .hov:hover .xh { opacity: 1; }
.doc-head { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.doc-head h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.02em; max-width: 760px; }
.doc-head .meta { margin-top: 8px; font-size: 13px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.doc-head .actions { display: flex; gap: 8px; }
.fake-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.fake-btn.primary { background: var(--white); color: #07080c; border-color: transparent; }
.claim { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: var(--bg-2); display: grid; gap: 12px; }
.claim + .claim { margin-top: 12px; }
.claim .row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: baseline; font-size: 14px; color: var(--text-2); }
.claim .row > span:first-child { font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.claim .verdict { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-2); }
@media (max-width: 560px) { .claim .row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.sim { display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); color: var(--text-2); white-space: nowrap; }
.sim .meter { width: 64px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; color: var(--text); }
.ptag { font: 500 11px/1 var(--mono); padding: 4px 7px; border-radius: 5px; background: rgba(255,255,255,0.06); color: var(--text-2); white-space: nowrap; }
@media (max-width: 640px) {
  svg.graph .node text { font-size: 19px; }
  svg.graph .node text.sub, svg.graph .elabel, svg.graph .elabel-bg { display: none; }
}

.asof { flex-wrap: wrap; }
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .mobile-scroll { margin: 0 -8px; padding: 0 8px 6px; }
  .mobile-scroll > svg#asof-svg { min-width: 760px; }
  .mobile-scroll > svg#prog-svg { min-width: 600px; }
  .timeaxes { padding: 20px; }
  .prog { padding: 20px; }
}
@media (max-width: 560px) {
  .list li { flex-wrap: wrap; }
  .list li .sim { flex-basis: 100%; }
  .window .pane { overflow-x: auto; }
  .window .pane > svg.viz, .window .scroll-x > svg.viz { min-width: 460px; }
}

/* =========================================================
   v2 (11-15): hero ask bar, "Why Dorus" cards, stat strip
   ========================================================= */
.ask { margin-top: 56px; max-width: 580px; }
.ask-box { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(13, 16, 23, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04); font-size: 16px; color: var(--text); }
.ask-ico { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.ask-q { flex: 1; min-width: 0; }
.ask-caret { display: inline-block; width: 2px; height: 1.1em; background: var(--accent-2); vertical-align: -3px; margin-left: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ask kbd { font: 500 12px/1 var(--mono); color: var(--text-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 7px; flex: none; }
.ask-a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; min-height: 28px; padding-left: 4px; transition: opacity .35s ease, transform .35s ease; }
.ask-a.out { opacity: 0; transform: translateY(4px); }
.ask-prod { font: 500 11.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin-right: 4px; }
@media (max-width: 640px) { .ask { margin-top: 40px; } .ask-box { font-size: 15px; } .ask-a { min-height: 64px; align-content: flex-start; } }

.problem .why-card { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.why-card h3 { font-size: 22px; margin: 26px 28px 10px; }
.why-card > p { margin: 0 28px 24px; }
.why-viz { position: relative; height: 184px; border-bottom: 1px solid var(--line); background: radial-gradient(360px 180px at 50% 40%, rgba(90, 209, 255, 0.06), transparent 70%), var(--bg-2); overflow: hidden; }
.why-viz > svg { position: absolute; inset: 18px 20px; width: calc(100% - 40px); height: calc(100% - 36px); overflow: visible; }
.why-viz text { font: 500 11.5px var(--sans); fill: var(--text-3); }
.why-viz text.t1 { fill: var(--text); font-weight: 500; }
.why-viz text.t2 { fill: var(--text-2); }
.why-viz text.t3 { font-family: var(--mono); font-size: 10.5px; }
.why-fix { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 16px 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); transition: color .2s, background .2s; }
.why-fix::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pc); flex: none; }
.why-fix span { flex: 1; }
.why-fix svg { width: 16px; height: 16px; color: var(--text-3); transition: transform .2s, color .2s; flex: none; }
.why-fix:hover { color: var(--text); background: rgba(255, 255, 255, 0.02); }
.why-fix:hover svg { transform: translateX(3px); color: var(--text); }
@media (min-width: 681px) and (max-width: 1000px) { .why > :last-child { grid-column: span 2; } }

/* card 1: a paper with flags stamped on it */
.v-real .mini-doc { position: absolute; left: 24px; top: 26px; width: 48%; height: 150px; padding: 16px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); transform: rotate(-3deg); display: grid; align-content: start; gap: 9px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.v-real .mini-doc b { display: block; height: 9px; width: 72%; border-radius: 4px; background: rgba(255, 255, 255, 0.24); margin-bottom: 6px; }
.v-real .mini-doc i { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.09); }
.v-real .stamps { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); display: grid; gap: 9px; justify-items: end; }
.v-real .stamps .status { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background-color: rgba(18, 22, 33, 0.82); border: 1px solid var(--line-2); }
.why-card.in .stamps .status { animation: stamp .55s cubic-bezier(.2, .9, .3, 1.35) both; }
.why-card.in .stamps .status:nth-child(1) { animation-delay: .35s; }
.why-card.in .stamps .status:nth-child(2) { animation-delay: .65s; }
.why-card.in .stamps .status:nth-child(3) { animation-delay: .95s; }
@keyframes stamp { from { opacity: 0; transform: scale(1.35) rotate(-4deg); } to { opacity: 1; transform: none; } }

/* card 2: two fields on the same problem, never linked */
.v-silo .cl line { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.v-silo .cl circle { stroke: var(--bg-2); stroke-width: 2; }
.v-silo .cl.a circle { fill: var(--c-concept); }
.v-silo .cl.b circle { fill: var(--c-paper); }
.v-silo .bridge { fill: none; stroke: var(--accent-3); stroke-width: 1.6; stroke-dasharray: 4 5; opacity: .8; animation: dashmove 1.6s linear infinite; }
@keyframes dashmove { to { stroke-dashoffset: -18; } }

/* card 3: every source flowing into one feed */
.v-flow .src-l text { font: 500 10.5px var(--mono); fill: var(--text-3); }
.v-flow .streams path { fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2 8; opacity: .9; animation: dashmove 1.1s linear infinite; animation-delay: calc(var(--i) * -.17s); }
.v-flow .hub { fill: var(--accent-3); stroke: var(--bg-2); stroke-width: 3; filter: drop-shadow(0 0 8px rgba(110, 231, 196, 0.6)); }
.v-flow .out { stroke: var(--accent-3); stroke-width: 2.4; stroke-linecap: round; }

.why-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.why-stats b { display: block; font: 600 clamp(40px, 4.6vw, 60px)/1 var(--sans); letter-spacing: -0.045em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.why-stats span { display: block; margin-top: 12px; color: var(--text-2); font-size: 15px; line-height: 1.45; max-width: 280px; }
.why-src { margin-top: 24px; font-size: 12.5px; color: var(--text-3); }
.why-src a { color: var(--text-3); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.why-src a:hover { color: var(--text-2); }
@media (max-width: 760px) { .why-stats { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (prefers-reduced-motion: reduce) { .ask-caret, .v-silo .bridge, .v-flow .streams path, .why-card.in .stamps .status { animation: none; } }
.pcard.pcard-open { border-style: dashed; border-color: var(--line-3); background: transparent; }
.reads-strip .layer span.plain { font-size: 14px; color: var(--text-2); }

/* Field timeline (atlas block): best result over time, linked patents, trials, clearances and press */
.prog { margin-top: 32px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--bg-2); padding: 28px; }
.prog-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.prog-head h3 { font-size: 20px; }
.prog-head .faint { font-size: 13px; margin-top: 6px; }
.prog-btn { background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); color: var(--text-2); font: 500 12.5px/1 var(--sans); padding: 7px 10px; border-radius: 8px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.prog-btn:hover { color: var(--text); border-color: var(--line-3); }
.prog-btn svg { width: 12px; height: 12px; }
.prog-body { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 28px; align-items: start; }
#prog-svg { width: 100%; height: auto; display: block; }
.prog-chart .legend { margin-top: 14px; }
.prog-card { border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--surface); padding: 20px; display: grid; gap: 12px; align-content: start; min-height: 312px; }
.prog-card .pc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.prog-card .pc-date { font: 500 12.5px/1 var(--mono); color: var(--text-3); }
.prog-card .pc-claim { font-size: 18px; line-height: 1.35; color: var(--text); letter-spacing: -0.01em; }
.prog-card .pc-claim b { font-weight: 600; }
.prog-card .status { justify-self: start; white-space: normal; }
.prog-card .pc-src { font-size: 13.5px; color: var(--text-2); }
.prog-card .pc-links { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 2px; }
.prog-card .pc-links h4 { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.prog-card .pc-links ul { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0; }
.prog-card .pc-links li { display: flex; gap: 9px; align-items: baseline; font-size: 13.5px; color: var(--text-2); }
.prog-card .pc-links li i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
#prog-svg .pm { cursor: pointer; outline: none; transition: opacity .35s ease; }
#prog-svg .pm .hit { fill: transparent; }
#prog-svg .pm.fut { opacity: .1; }
#prog-svg .pm:focus-visible .hit { stroke: var(--accent-2); stroke-width: 1.5; }
#prog-svg .lk-line { fill: none; stroke: rgba(255,255,255,.38); stroke-width: 1.5; stroke-dasharray: 3 4; }
#prog-svg .ring { fill: none; stroke: var(--text); stroke-width: 1.5; }
#prog-svg .ring.lk { stroke: var(--text-2); stroke-dasharray: 2 3; }
@media (max-width: 900px) { .prog-body { grid-template-columns: minmax(0, 1fr); } .prog-card { min-height: 280px; } }

/* AI-native block: an agent session and its runs against the field */
.agent-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.agent-log { list-style: none; margin: 0; padding: 4px 0 0; display: grid; gap: 18px; font: 13px/1.6 var(--mono); }
.agent-log li { opacity: .18; transform: translateY(4px); transition: opacity .45s ease, transform .45s ease; transition-delay: calc(var(--i) * .7s); }
.agent.go .agent-log li { opacity: 1; transform: none; }
.agent-log .al-in { color: var(--text); }
.agent-log .al-in::before { content: "\25B8"; color: var(--accent-2); margin-right: 8px; }
.agent-log .al-cmd { color: var(--accent-2); margin-right: 10px; }
.agent-log .al-out { color: var(--text-3); padding-left: 18px; margin-top: 2px; }
.agent-log .al-out::before { content: "\21B3"; margin-right: 8px; }
.agent-log .al-out.good { color: #8fe08f; }
.agent-chart #agent-svg { width: 100%; height: auto; display: block; }
.agent-chart .legend { margin-top: 12px; }
#agent-svg .run { transition: opacity .25s ease; }
#agent-svg .later { opacity: 0; }
@media (max-width: 900px) { .agent-body { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .agent-log li { transition: none; } }
@media (max-width: 560px) { .window .pane.agent-chart { overflow: visible; } .window .pane.agent-chart > svg.viz { min-width: 0; } #agent-svg text { font-size: 16px; } }
