/* ---------------------------------------------------------------------------
   Proanex — site styles.
   Shares Viiyoo's tokens (warm paper, ink, one teal, a little gold) so the
   company and its flagship product read as one family. Proanex leads in ink;
   Viiyoo sections switch the accent to teal.
   --------------------------------------------------------------------------- */
:root {
  --paper: #f6f5f0;
  --surface: #ffffff;
  --surface-2: #f0eee7;
  --surface-3: #e8e5dc;
  --line: #e4e0d6;
  --line-strong: #cbc5b7;
  --ink: #15191e;
  --ink-2: #3c424a;
  --muted: #6c727c;
  --muted-2: #9a9fa8;
  --brand: #0e6f63;
  --brand-ink: #0a5249;
  --brand-soft: #e2f1ed;
  --brand-line: #a9d6cd;
  --gold: #b8912a;
  --gold-bright: #e0b048;
  --gold-soft: #f8f0d9;
  --ok: #1b7a49;
  --ok-soft: #e2f3e9;
  --warn: #a8640a;
  --warn-soft: #fbefdb;
  --night: #101418;
  --night-2: #181d23;
  --night-line: #262d36;
  --night-ink: #e9e8e3;
  --night-muted: #9aa1ab;

  --shadow-1: 0 1px 2px rgba(20, 25, 30, .06), 0 1px 3px rgba(20, 25, 30, .04);
  --shadow-2: 0 4px 16px rgba(20, 25, 30, .08), 0 1px 3px rgba(20, 25, 30, .05);
  --shadow-3: 0 30px 80px -20px rgba(20, 25, 30, .28), 0 10px 30px -10px rgba(20, 25, 30, .12);

  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 16px;
  --radius-xl: 22px;

  --accent: var(--ink);
  --accent-ink: #fff;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --brandfont: "Outfit", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  font-feature-settings: "cv11", "ss01", "tnum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
::selection { background: var(--gold-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---- Type --------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow.plain::before { display: none; }
.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 5.8vw, 80px); line-height: .98; letter-spacing: -.015em;
}
.display em, .h2 em, .h3 em { font-style: italic; color: var(--accent-em, var(--brand)); }
.h2 { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 56px); line-height: 1.03; letter-spacing: -.01em; }
.h3 { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; }
.h4 { font: 600 17px/1.35 var(--sans); letter-spacing: -.01em; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  --b-bg: var(--accent); --b-fg: var(--accent-ink); --b-line: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 20px; border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-line);
  font: 500 15px/1 var(--sans); letter-spacing: -.005em; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(20, 25, 30, .45); }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn.ghost { --b-bg: transparent; --b-fg: var(--ink); --b-line: var(--line-strong); }
.btn.ghost:hover { --b-line: var(--ink); box-shadow: none; }
.btn.teal { --b-bg: var(--brand); --b-line: var(--brand); --b-fg: #fff; }
.btn.light { --b-bg: var(--paper); --b-fg: var(--ink); --b-line: var(--paper); }
.btn.ghost-light { --b-bg: transparent; --b-fg: var(--night-ink); --b-line: rgba(255, 255, 255, .22); }
.btn.ghost-light:hover { --b-line: rgba(255, 255, 255, .6); box-shadow: none; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .18s; }
.link:hover { border-color: var(--ink); }
.link .arr { transition: transform .18s ease; }
.link:hover .arr { transform: translateX(3px); }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; }
.brand span { font: 600 22px/1 var(--brandfont); letter-spacing: -.02em; color: var(--ink); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 4px auto; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---- Sections ----------------------------------------------------------- */
section { position: relative; }
.pad { padding: clamp(72px, 10vw, 136px) 0; }
.pad-s { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.split-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.night { background: var(--night); color: var(--night-ink); --accent-em: var(--gold-bright); }
.night .eyebrow { color: var(--night-muted); }
.night .lede, .night .muted { color: var(--night-muted); }
.tint { background: var(--surface-2); }

/* ---- Hero --------------------------------------------------------------- */
.hero { padding: clamp(32px, 5vw, 72px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 26px; align-content: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(14, 111, 99, .10), transparent 60%),
    radial-gradient(600px 360px at 70% 90%, rgba(184, 145, 42, .10), transparent 60%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .35;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}

.product-tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  font-size: 13.5px; color: var(--ink-2); box-shadow: var(--shadow-1); width: fit-content;
}
.product-tag img { width: 24px; height: 24px; border-radius: 7px; }
.product-tag b { font-weight: 600; color: var(--ink); }

/* ---- Product mock (an illustrative Viiyoo screen, drawn in HTML) -------- */
.mock {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-3); overflow: hidden;
  font-size: 12px; line-height: 1.4; color: var(--ink);
}
.mock-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-strong); }
.mock-url { flex: 1; max-width: 340px; margin: 0 auto; height: 24px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; gap: 6px; padding: 0 10px; font: 500 11px/1 var(--mono); color: var(--muted); }
.mock-url svg { width: 11px; height: 11px; flex: none; }
.mock-body { display: grid; grid-template-columns: 52px 1fr; min-height: 420px; }
.mock-main { padding-bottom: 28px !important; }
.mock-side { border-right: 1px solid var(--line); background: var(--paper); display: grid; align-content: start; justify-items: center; gap: 14px; padding: 14px 0; }
.mock-side img { width: 26px; height: 26px; border-radius: 8px; }
.mock-side i { width: 18px; height: 18px; border-radius: 5px; background: var(--surface-3); }
.mock-side i.on { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand-line); }
.mock-main { padding: 18px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.mock-crumb { font: 500 10.5px/1 var(--mono); color: var(--muted); letter-spacing: .04em; }
.mock-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mock-title h4 { font: 400 22px/1.1 var(--serif); }
.mock-tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--muted); overflow: hidden; }
.mock-tabs span { padding: 0 0 8px; white-space: nowrap; }
.mock-tabs span.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); font-weight: 500; }
.mock-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; }
.mock-map { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); min-height: 208px; background: #eef0ea; }
.mock-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); display: grid; gap: 8px; align-content: start; }
.mock-label { font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mock-value { font: 400 34px/1 var(--serif); letter-spacing: -.01em; }
.mock-range { position: relative; height: 6px; border-radius: 6px; background: var(--surface-3); margin: 6px 0 2px; }
.mock-range b { position: absolute; left: 22%; right: 26%; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, var(--brand-line), var(--brand)); }
.mock-range i { position: absolute; left: 49%; top: -4px; width: 2px; height: 14px; background: var(--ink); border-radius: 2px; }
.mock-ends { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 999px; font: 500 10.5px/1 var(--sans); background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.chip.teal { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand-line); }
.chip.gold { background: var(--gold-soft); color: #7d5f12; border-color: #ecd9a4; }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: #bfe3cc; }
.chip-row { display: flex; flex-wrap: wrap; gap: 5px; }
.mock-why { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mock-why header { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--paper); border-bottom: 1px solid var(--line); font-weight: 600; font-size: 11.5px; }
.mock-why ol { list-style: none; margin: 0; padding: 0; }
.mock-why li { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 11.5px; }
.mock-why li:last-child { border-bottom: 0; }
.mock-why li b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 600 10px/1 var(--sans); background: var(--ink); color: #fff; }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 4px; }
.mock-tile strong { font: 600 15px/1 var(--sans); letter-spacing: -.01em; }
.mock-note { flex: none; font: 500 9.5px/1 var(--mono); color: var(--muted-2); letter-spacing: .08em; }
.mock-float {
  position: absolute; z-index: 2; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-2); padding: 12px 14px; font-size: 12px;
}
.hero-visual { position: relative; }
.hero-visual .mock-float.a { left: 28px; bottom: -22px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.hero-visual .mock-float.b { right: 28px; top: -18px; display: flex; align-items: center; gap: 10px; }
.float-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }

/* ---- Sources strip ------------------------------------------------------ */
.sources { border-block: 1px solid var(--line); background: var(--surface); }
.sources-inner { display: flex; align-items: center; gap: 36px; padding: 22px 0; overflow: hidden; }
.sources-label { flex: none; font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); max-width: 170px; }
.marquee { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track span { font: 400 21px/1 var(--serif); color: var(--ink-2); white-space: nowrap; }
.marquee-track span i { font-style: normal; color: var(--gold); margin-left: 48px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Cards & grids ------------------------------------------------------ */
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 28px; display: grid; gap: 12px; align-content: start;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
a.card:hover, .card.hover:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--line);
}
.icon svg { width: 22px; height: 22px; }
.icon.teal { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
.icon.gold { background: var(--gold-soft); color: var(--gold); border-color: #ecd9a4; }

/* Products */
.products { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.product-card { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(28px, 3.5vw, 44px); display: grid; gap: 18px; align-content: start; min-height: 440px; transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.product-card.viiyoo { background: linear-gradient(150deg, #0c4b40 0%, #083328 55%, #06261e 100%); color: #eaf5f1; }
.product-card.viiyoo .muted { color: #a8cfc4; }
.product-card.data { background: var(--surface); border: 1px solid var(--line); }
.product-card .pc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-card .pc-logo { display: flex; align-items: center; gap: 12px; font: 600 26px/1 var(--brandfont); letter-spacing: -.02em; }
.product-card .pc-logo img { width: 44px; height: 44px; border-radius: 12px; }
.product-card .pc-by { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.product-card h3 { font: 400 clamp(28px, 3vw, 40px)/1.05 var(--serif); max-width: 18ch; }
.product-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.product-card li { display: flex; gap: 10px; align-items: flex-start; }
.product-card li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.product-card .pc-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pc-glow { position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(224, 176, 72, .25), transparent 65%); pointer-events: none; }
.pc-v { position: absolute; right: -40px; bottom: -40px; width: 300px; opacity: .08; pointer-events: none; }
.data-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; color: var(--gold-bright); }
.data-mark svg { width: 24px; height: 24px; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--night-line); }
.principle { padding: 36px 32px 8px 0; display: grid; gap: 14px; align-content: start; }
.principle + .principle { padding-left: 32px; border-left: 1px solid var(--night-line); }
.principle .n { font: 400 64px/1 var(--serif); color: var(--gold-bright); }
.principle h3 { font: 400 28px/1.1 var(--serif); }
.principle p { color: var(--night-muted); font-size: 15.5px; margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { position: relative; padding: 0 28px 0 0; display: grid; gap: 12px; align-content: start; }
.step .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-strong); font: 500 13px/1 var(--mono); position: relative; z-index: 1; }
.step::before { content: ""; position: absolute; top: 20px; left: 40px; right: 0; height: 1px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 8px); }
.step:last-child::before { display: none; }
.step h3 { font: 600 17px/1.3 var(--sans); letter-spacing: -.01em; margin-top: 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* CTA band */
.cta-band { border-radius: var(--radius-xl); background: var(--ink); color: var(--night-ink); padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; --accent-em: var(--gold-bright); }
.cta-band .h2 { max-width: 16ch; }
.cta-band p { color: var(--night-muted); margin: 14px 0 0; max-width: 52ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(14, 111, 99, .5), transparent 65%); pointer-events: none; }

/* Page hero (inner pages) */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 72px); position: relative; overflow: hidden; }
.page-hero .display { max-width: 15ch; margin: 20px 0 24px; }

/* Viiyoo page: accent becomes teal */
.theme-viiyoo { --accent: var(--brand); --accent-ink: #fff; }
.v-lockup { display: inline-flex; align-items: center; gap: 14px; }
.v-lockup img { height: 54px; width: auto; }
.by-proanex { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.by-proanex img { width: 20px; height: 20px; border-radius: 5px; }
.by-proanex b { color: var(--ink); font-weight: 600; }

/* Explorer (tabs) */
.explorer { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.ex-tabs { display: grid; gap: 6px; position: sticky; top: 96px; }
.ex-tab {
  text-align: left; width: 100%; border: 1px solid transparent; background: transparent; cursor: pointer;
  padding: 16px 18px; border-radius: 14px; display: grid; gap: 4px; font: inherit; color: var(--ink-2);
  transition: background .18s, border-color .18s;
}
.ex-tab strong { font: 600 16px/1.3 var(--sans); color: var(--ink); letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.ex-tab span { font-size: 14px; color: var(--muted); display: none; }
.ex-tab:hover { background: var(--surface); }
.ex-tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-1); }
.ex-tab[aria-selected="true"] span { display: block; }
.ex-tab[aria-selected="true"] strong::before { background: var(--brand); }
.ex-tab strong::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); flex: none; }
.ex-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-2); overflow: hidden; }
.ex-panel[hidden] { display: none; }
.ex-head { padding: 28px 30px 0; display: grid; gap: 10px; }
.ex-head h3 { font: 400 30px/1.1 var(--serif); }
.ex-head p { margin: 0; color: var(--ink-2); max-width: 62ch; }
.ex-body { padding: 24px 30px 30px; display: grid; gap: 14px; }
.ex-foot { border-top: 1px solid var(--line); background: var(--paper); padding: 14px 30px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.ex-foot span { display: inline-flex; align-items: center; gap: 6px; }
.ex-foot svg { width: 14px; height: 14px; color: var(--brand); }

table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
table.data th { text-align: left; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--paper); }
table.data td { padding: 11px 12px; border-bottom: 1px solid var(--line); }
table.data tr:last-child td { border-bottom: 0; }
table.data .r { text-align: right; }
.tbl { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; overflow-x: auto; }
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kv > div { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 6px; }
.kv .mock-label { font-size: 9.5px; }
.kv strong { font: 600 20px/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 70px; gap: 12px; align-items: center; font-size: 13.5px; }
.bar { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.bar b { display: block; height: 100%; border-radius: 8px; background: var(--brand); }
.bar b.gold { background: var(--gold); }
.bar b.muted { background: var(--line-strong); }

/* Audience */
.aud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.aud > div { background: var(--surface); padding: 28px; display: grid; gap: 12px; align-content: start; }
.aud h3 { font: 600 17px/1.3 var(--sans); letter-spacing: -.01em; }
.aud p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.checks li svg { width: 22px; height: 22px; color: var(--brand); margin-top: 1px; }
.checks li b { font-weight: 600; }
.night .checks li svg { color: var(--gold-bright); }

/* Narrative with citations (technology page) */
.narrative { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-2); overflow: hidden; color: var(--ink); }
.narrative .nv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--paper); }
.narrative .nv-body { padding: 24px 22px; font: 400 19px/1.55 var(--serif); }
.narrative .nv-body p { margin: 0 0 14px; }
.cite { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; margin: 0 2px; border-radius: 5px; font: 600 10.5px/1 var(--sans); vertical-align: 3px; background: var(--brand-soft); color: var(--brand-ink); border: 1px solid var(--brand-line); cursor: default; }
.cite.calc { background: var(--gold-soft); color: #7d5f12; border-color: #ecd9a4; }
.narrative .nv-src { border-top: 1px solid var(--line); padding: 14px 22px; display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); background: var(--paper); }
.narrative .nv-src div { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: center; }

/* Pipeline */
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.pipe { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius-l); padding: 22px; display: grid; gap: 10px; align-content: start; position: relative; }
.pipe .k { font: 500 11px/1 var(--mono); letter-spacing: .1em; color: var(--gold-bright); }
.pipe h3 { font: 600 17px/1.3 var(--sans); color: #fff; }
.pipe p { margin: 0; color: var(--night-muted); font-size: 14px; }
.pipe:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 34px; width: 14px; height: 1px; background: var(--gold-bright); opacity: .6; }
.pipe.gate { border-color: rgba(224, 176, 72, .45); background: linear-gradient(180deg, rgba(224, 176, 72, .08), var(--night-2)); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 1px solid var(--line-strong); }
.timeline li { position: relative; padding: 0 0 32px 28px; display: grid; gap: 4px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.timeline li.next::before { border-style: dashed; border-color: var(--muted); }
.timeline time, .timeline .when { font: 500 12px/1.2 var(--mono); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.timeline h3 { font: 600 17px/1.35 var(--sans); letter-spacing: -.01em; }
.timeline p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Facts */
.facts { border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); overflow: hidden; }
.facts dl { margin: 0; display: grid; grid-template-columns: 200px 1fr; }
.facts dt, .facts dd { margin: 0; padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); background: var(--paper); font-size: 14px; }
.facts dl > :nth-last-child(-n+2) { border-bottom: 0; }

/* Forms */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field label .opt { color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; font: 400 15.5px/1.4 var(--sans); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 13px 14px; transition: border-color .15s, box-shadow .15s; appearance: none;
}
.textarea { min-height: 150px; resize: vertical; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c727c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(21, 25, 30, .08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 13px; color: var(--muted); }
.form-status { font-size: 14px; color: var(--ok); min-height: 1.4em; }

.contact-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); overflow: hidden; }
.contact-list a, .contact-list div.ci { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); transition: background .15s; }
.contact-list > :last-child { border-bottom: 0; }
.contact-list a:hover { background: var(--paper); }
.contact-list strong { display: block; font-weight: 600; font-size: 15px; }
.contact-list span { font-size: 14px; color: var(--muted); }

/* Prose (legal pages) */
.prose { max-width: 760px; }
.prose h2 { font: 400 30px/1.15 var(--serif); margin: 48px 0 14px; }
.prose h3 { font: 600 17px/1.4 var(--sans); margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16px; }
.prose ul { padding-left: 20px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--brand); border-bottom: 1px solid var(--brand-line); }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 500 11.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--night); color: var(--night-muted); padding: clamp(56px, 7vw, 88px) 0 32px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--night-line); }
.foot-brand { display: grid; gap: 18px; align-content: start; max-width: 340px; }
.foot-brand .brand span { color: #fff; }
.foot-brand .brand img { filter: none; }
.foot-brand p { margin: 0; }
.foot-col h4 { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col a { transition: color .15s; }
.foot-col a:hover { color: #fff; }
.foot-legal { padding-top: 28px; display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; font-size: 12.5px; line-height: 1.7; color: #7c848e; }
.foot-legal p { margin: 0; }
.foot-product { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--night-line); border-radius: 12px; color: var(--night-ink); width: fit-content; transition: border-color .15s; }
.foot-product:hover { border-color: #3a434e; }
.foot-product img { width: 22px; height: 22px; border-radius: 6px; }

/* ---- Reveal ------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .btn, .card, .product-card { transition: none; }
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-grid, .split, .split-head { grid-template-columns: minmax(0, 1fr); }
  .hero-visual .mock-float.a { left: 12px; }
  .hero-visual .mock-float.b { right: 12px; }
  .products { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipe:not(:last-child)::after { display: none; }
  .explorer { grid-template-columns: 1fr; }
  .ex-tabs { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .ex-tab { padding: 10px 14px; }
  .ex-tab[aria-selected="true"] span { display: none; }
  .aud, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-open .nav-links {
    display: grid; position: absolute; left: 0; right: 0; top: 72px; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px;
    box-shadow: 0 20px 30px -20px rgba(20, 25, 30, .2);
  }
  .nav-open .nav-links a { padding: 14px 12px; font-size: 17px; border-radius: 10px; }
  .cols-3, .principles, .steps { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--night-line); }
  .step { padding: 0 0 28px 56px; }
  .step .dot { position: absolute; left: 0; top: 0; }
  .step h3 { margin-top: 8px; }
  .step::before { left: 20px; top: 40px; bottom: 0; right: auto; width: 1px; height: auto; background: repeating-linear-gradient(180deg, var(--line-strong) 0 4px, transparent 4px 8px); }
  .cta-band { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr 1fr; }
  .mock-grid { grid-template-columns: 1fr; }
  .facts dl { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 4px; }
  .facts dd { padding-top: 4px; }
}
@media (max-width: 640px) {
  .cols-2, .aud, .cols-4, .pipeline, .form-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-legal { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-tiles { grid-template-columns: 1fr 1fr; }
  .hero-visual .mock-float { display: none !important; }
  .sources-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .bar-row { grid-template-columns: 110px 1fr 56px; font-size: 12.5px; }
  .hero-actions .btn { flex: 1; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mock-caption { margin: 52px 0 0; text-align: right; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }

/* ---- Engines (home) ----------------------------------------------------- */
.engines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.engine { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 32px; display: grid; gap: 14px; align-content: start; transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.engine:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.engine .k { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.engine h3 { font: 400 32px/1.05 var(--serif); }
.engine p { margin: 0; color: var(--ink-2); font-size: 15px; }
.engine ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.engine li { display: flex; gap: 10px; }
.engine li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 9px; border-radius: 50%; background: var(--gold); }
.engine .link { margin-top: 8px; width: fit-content; }
.engine.dark { background: linear-gradient(160deg, #0c4b40, #06261e); color: #eaf5f1; border-color: #0c4b40; }
.engine.dark .k { color: var(--gold-bright); }
.engine.dark p, .engine.dark ul { color: #b9d9cf; }
.engine.dark .link { color: #fff; border-color: rgba(255,255,255,.35); }

/* ---- Deploy / scout / agent mocks -------------------------------------- */
.split.flip > :first-child { order: 2; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-3); overflow: hidden; color: var(--ink); font-size: 13px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--paper); }
.panel-head strong { font-size: 13.5px; }
.panel-body { padding: 18px; display: grid; gap: 14px; }
.panel-foot { border-top: 1px solid var(--line); background: var(--paper); padding: 12px 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.panel .kv strong { font-size: 18px; }
.panel .mock-label { font-size: 9.5px; }
.mini-h { font: 600 11.5px/1 var(--sans); color: var(--ink-2); margin-bottom: -4px; }
.frontier { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; height: 92px; padding: 0 2px; }
.frontier div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; font-size: 10.5px; color: var(--muted); }
.frontier b { display: block; width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--brand), var(--brand-ink)); }
.frontier div.cap b { background: var(--surface-3); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: start; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed li > .chip { justify-self: start; }
.feed .t { font-weight: 500; }
.feed .s { color: var(--muted); font-size: 12px; }
.feed .note { grid-column: 2 / -1; margin-top: 2px; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-ink); font-size: 12.5px; line-height: 1.5; }
.feed .note b { display: block; font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: #f0d6ae; }
.chip.muted { background: var(--surface-2); color: var(--muted); }
.code { background: #0b0e11; color: #d7dbe0; border-radius: var(--radius-xl); border: 1px solid #222a33; box-shadow: var(--shadow-3); overflow: hidden; font: 400 13px/1.7 var(--mono); }
.code-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #1e252d; color: #8a939e; font-size: 11.5px; }
.code-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a323c; }
.code pre { margin: 0; padding: 18px 20px 22px; white-space: pre-wrap; word-break: break-word; }
.code .u { color: #fff; }
.code .c { color: #7fd6c8; }
.code .a { color: #c9cdd3; }
.code .g { color: #e0b048; }
.code .ok { color: #56c283; }
.code .dim { color: #6b747f; }
.rule-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14.5px; color: var(--ink-2); }
.rule-note svg { flex: none; width: 20px; height: 20px; color: var(--gold); margin-top: 2px; }
.night .rule-note { background: var(--night-2); border-color: var(--night-line); color: var(--night-muted); }
.night .rule-note b { color: #fff; }
@media (max-width: 1080px) { .engines { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
@media (max-width: 640px) { .feed li { grid-template-columns: 1fr; gap: 4px; } .feed .note { grid-column: 1; } .frontier { height: 80px; } }
