/* Three Seven v3 — sharp product-grade: deep navy, bold grotesque, cool whites */

:root {
  --paper: #f7f8fa;
  --paper-2: #eef0f4;
  --ink: #0f1522;
  --ink-soft: #4b5568;
  --green-deep: #0d1526;   /* dark frame (navy) — var name kept for shared demo CSS */
  --green-mid: #17233c;
  --line: #e2e5ec;
  --line-dark: rgba(226, 231, 244, 0.12);
  --accent: #7c4ff0;
  --accent-lite: #b79aff;
  --gold: #b79aff;         /* var name kept: sliders, highlights on dark */
  --pos: #34b27b;
  --warm: #e0754a;
  /* Inter first: Helvetica Neue is absent on Windows, and the Arial fallback
     renders bold display sizes poorly. Inter keeps the same grotesque voice
     and is crisp on every platform. */
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: #fff; }

.shell { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

/* headline voice: bold grotesque, tight */
h1, h2, h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.025em; }

/* ---------- header (dark) ---------- */
.v2-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 21, 38, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.v2-head-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.v2-brand { display: flex; align-items: baseline; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: #fff; }
.v2-brand:hover { color: #fff; }
.v2-brand .num { font-family: var(--mono); font-size: 12px; color: var(--accent-lite); letter-spacing: 0.1em; font-weight: 400; }
.v2-nav { display: flex; align-items: center; gap: 30px; }
.v2-nav a { font-size: 13.5px; color: rgba(226,231,244,0.7); }
.v2-nav a:hover { color: #fff; }
.v2-cta {
  font-size: 13.5px; font-weight: 500; padding: 10px 20px;
  background: var(--accent); color: #fff !important;
  border-radius: 4px; transition: background 0.2s;
}
.v2-cta:hover { background: #6a3fd6; }

/* ---------- hero (dark) ---------- */
.v2-hero {
  background: var(--green-deep); color: #fff;
  padding: clamp(70px, 11vh, 130px) 0 clamp(56px, 9vh, 100px);
  position: relative; overflow: hidden;
}
.v2-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(226,231,244,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226,231,244,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 70% 0%, black 30%, transparent 75%);
}
.v2-hero .shell { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }
.v2-hero .kicker { display: flex; align-items: center; gap: 12px; color: var(--accent-lite); margin-bottom: 30px; }
.v2-hero .kicker::before { content: ""; width: 36px; height: 1px; background: var(--accent-lite); }
.v2-hero h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  max-width: 17ch; text-wrap: balance;
}
.v2-hero h1 em { font-style: normal; color: var(--accent-lite); }
.v2-hero .lede {
  margin-top: 32px; max-width: 58ch;
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: rgba(226,231,244,0.72);
}
.v2-hero .hero-foot { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff !important;
  font-size: 15px; font-weight: 500; padding: 15px 28px; border: none; cursor: pointer;
  border-radius: 4px; font-family: var(--sans); transition: background 0.2s;
}
.btn-primary:hover { background: #6a3fd6; }
.btn-primary .arr { transition: transform 0.2s; }
.btn-primary:hover .arr { transform: translateX(4px); }
.hero-note { color: rgba(226,231,244,0.55); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; }
.hero-note .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pos); margin-right: 8px; animation: pulse 2.2s infinite; vertical-align: 1px; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ---------- hero visual ---------- */
.hv-card {
  background: rgba(23, 35, 60, 0.55);
  border: 1px solid var(--line-dark);
  border-radius: 8px; overflow: hidden;
  backdrop-filter: blur(4px);
}
.hv-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 18px; border-bottom: 1px solid var(--line-dark);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(226,231,244,0.5);
}
.hv-bar .hv-live { color: #7fd0a4; }
.hv-bar .hv-live::before { content: "●"; margin-right: 7px; color: var(--pos); animation: pulse 2.2s infinite; }
.hv-rows { display: flex; flex-direction: column; }
.hv-row {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 15px 18px; text-align: left; width: 100%;
  background: none; border: none; border-left: 2px solid transparent;
  border-bottom: 1px solid rgba(226,231,244,0.07);
  font-family: var(--sans); cursor: pointer;
  opacity: 0.45; transition: opacity 0.4s, background 0.4s, border-color 0.4s;
}
.hv-row.on { opacity: 1; background: rgba(124, 79, 240, 0.10); border-left-color: var(--accent-lite); }
.hv-row .hv-k { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; color: #fff; }
.hv-row .hv-line { font-size: 12.5px; line-height: 1.45; color: rgba(226,231,244,0.65); }
.hv-row .hv-tags { display: flex; flex-wrap: wrap; gap: 6px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.45s ease, opacity 0.45s ease, margin-top 0.45s ease; margin-top: 0; }
.hv-row.on .hv-tags { max-height: 60px; opacity: 1; margin-top: 3px; }
.hv-tag {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-lite); border: 1px solid rgba(151,166,255,0.35);
  border-radius: 20px; padding: 3px 9px;
}
.hv-flow { padding: 12px 18px 14px; }
.hv-flow svg { display: block; height: 24px; }
.hv-dash { stroke: var(--accent-lite); stroke-dasharray: 6 8; }
@media (prefers-reduced-motion: no-preference) {
  .hv-dash { animation: hvFlow 1.6s linear infinite; }
}
@keyframes hvFlow { to { stroke-dashoffset: -14; } }
.hv-flow-label { display: block; margin-top: 6px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(226,231,244,0.45); }

/* ---------- chapters ---------- */
.chapter { padding: clamp(60px, 9vh, 110px) 0; border-top: 1px solid var(--line); }
.chapter.intro { padding: clamp(52px, 8vh, 90px) 0 clamp(36px, 5vh, 56px); border-top: none; }
.chapter.intro .chapter-head { margin-bottom: 0; }
.chapter-tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #8a93a6; margin-top: 8px; }
.chapter-head { display: grid; grid-template-columns: 120px 1fr; gap: 24px; margin-bottom: 44px; }
.chapter-no { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.12em; padding-top: 10px; }
.chapter-head h2 {
  font-size: clamp(26px, 3.1vw, 40px); line-height: 1.08;
  max-width: 26ch; text-wrap: balance;
}
.chapter-head h2 em { font-style: normal; color: var(--accent); }
.chapter-head .sub { margin-top: 16px; max-width: 64ch; color: var(--ink-soft); font-size: 16px; }
@media (max-width: 760px) { .chapter-head { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- demo frames ---------- */
.demo-frame {
  background: var(--green-deep); color: #dfe4f0;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(13, 21, 38, 0.5);
}
.demo-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-bottom: 1px solid var(--line-dark);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(226,231,244,0.5);
}
.demo-bar .live { color: #7fd0a4; }
.demo-bar .live::before { content: "●"; margin-right: 7px; color: var(--pos); animation: pulse 2.2s infinite; }
.demo-body { padding: clamp(18px, 3vw, 36px); }

.paper-frame {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  box-shadow: 0 20px 45px -30px rgba(13, 21, 38, 0.25);
}

/* ---------- ingest demo ---------- */
.ingest-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(16px, 2.5vw, 32px); align-items: start; }
@media (max-width: 860px) { .ingest-grid { grid-template-columns: 1fr; } }

.doc {
  background: #fff; color: #232a38; border-radius: 5px;
  padding: 26px 26px 30px; position: relative; overflow: hidden;
  font-size: 12px; line-height: 1.6;
  min-height: 380px;
}
.doc-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 14px; }
.doc-head .gp { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.doc-head .meta { font-family: var(--mono); font-size: 9.5px; color: #8a93a6; margin-top: 4px; letter-spacing: 0.06em; }
.doc p { margin-bottom: 10px; color: #44506a; }
.doc .skl { height: 7px; background: #e9ecf2; border-radius: 2px; margin-bottom: 7px; }
.doc .fig { background: transparent; border-radius: 2px; padding: 0 2px; transition: background 0.4s, color 0.4s; }
.doc .fig.hit { background: rgba(76, 95, 240, 0.14); color: var(--accent); font-weight: 700; }
.scanline {
  position: absolute; left: 0; right: 0; height: 42px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(76,95,240,0), rgba(76,95,240,0.10), rgba(76,95,240,0));
  border-bottom: 1px solid rgba(76, 95, 240, 0.55);
  transition: top 0.5s linear; z-index: 2;
}

.extract-panel { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 5px; overflow: hidden; }
.field { background: var(--green-deep); padding: 12px 14px; opacity: 0.25; transition: opacity 0.35s, background 0.35s; }
.field.on { opacity: 1; background: var(--green-mid); }
.field .k { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(226,231,244,0.5); }
.field .v { font-family: var(--mono); font-size: 16px; margin-top: 5px; color: #f2f4fa; }
.field .v.pos { color: #7fd0a4; }

.registry { border: 1px solid var(--line-dark); border-radius: 5px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.registry table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 12.5px; }
.registry th { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(226,231,244,0.45); text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line-dark); font-weight: 400; }
.registry td { padding: 10px 14px; border-bottom: 1px solid rgba(226,231,244,0.06); font-family: var(--mono); font-size: 12px; }
.registry td:first-child { font-family: var(--sans); font-size: 13px; font-weight: 500; }
.registry tr.new-row td { animation: rowIn 0.5s ease-out; }
.registry .num { text-align: right; }
.registry th.num { text-align: right; }
@keyframes rowIn { from { background: rgba(76,95,240,0.22); } to { background: transparent; } }

.demo-controls { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn-demo {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; color: #dfe4f0; border: 1px solid rgba(226,231,244,0.3);
  padding: 11px 20px; cursor: pointer; border-radius: 4px; transition: all 0.2s;
}
.btn-demo:hover { border-color: var(--accent-lite); color: var(--accent-lite); }
.btn-demo:disabled { opacity: 0.4; cursor: default; }
.status-line { font-family: var(--mono); font-size: 11px; color: rgba(226,231,244,0.55); letter-spacing: 0.04em; }
.status-line .ok { color: #7fd0a4; }

/* ---------- forecast demo ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 5px; overflow: hidden; margin-bottom: 26px; }
.kpi { background: var(--green-deep); padding: 18px 20px; }
.kpi .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(226,231,244,0.5); }
.kpi .v { font-weight: 700; letter-spacing: -0.02em; font-size: clamp(24px, 2.7vw, 34px); margin-top: 6px; }
.kpi .v.call { color: #eb9b77; }
.kpi .v.dist { color: #7fd0a4; }
.kpi .v.gold { color: var(--accent-lite); }
.kpi .note { font-family: var(--mono); font-size: 10px; color: rgba(226,231,244,0.45); margin-top: 4px; }

.slider-row { display: flex; flex-wrap: wrap; gap: 28px; padding: 18px 0 8px; }
.sl { display: flex; flex-direction: column; gap: 8px; min-width: 170px; flex: 1; }
.sl label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(226,231,244,0.55); display: flex; justify-content: space-between; }
.sl label .val { color: var(--accent-lite); }
.sl input[type="range"] { -webkit-appearance: none; appearance: none; height: 2px; background: rgba(226,231,244,0.25); border-radius: 2px; cursor: pointer; }
.sl input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-lite); border: 3px solid var(--green-deep); box-shadow: 0 0 0 1px var(--accent-lite);
}
.chart-wrap { background: rgba(0,0,0,0.22); border: 1px solid var(--line-dark); border-radius: 5px; padding: 20px 16px 10px; }
.chart-legend { display: flex; gap: 22px; padding: 12px 6px 4px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: rgba(226,231,244,0.6); }
.chart-legend .sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 7px; vertical-align: -1px; }

/* ---------- portal demo ---------- */
.browser-chrome { display: flex; align-items: center; gap: 14px; padding: 11px 16px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.browser-chrome .dots { display: flex; gap: 6px; }
.browser-chrome .dots span { width: 10px; height: 10px; border-radius: 50%; background: #cdd3de; }
.browser-chrome .url { flex: 1; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 5px 12px; max-width: 340px; margin: 0 auto; }
.portal-hero { background: var(--green-deep); color: #eef1f8; padding: clamp(20px, 3vw, 34px); }
.portal-hero .fund-name { font-weight: 700; letter-spacing: -0.02em; font-size: clamp(20px, 2.4vw, 27px); }
.portal-hero .as-of { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(226,231,244,0.5); margin-bottom: 8px; }
.portal-stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 60px); margin-top: 22px; }
.portal-stats .s .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(226,231,244,0.5); }
.portal-stats .s .v { font-weight: 700; letter-spacing: -0.02em; font-size: clamp(22px, 2.4vw, 30px); margin-top: 4px; }
.alloc-bar { display: flex; height: 10px; border-radius: 3px; overflow: hidden; margin-top: 24px; }
.alloc-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-family: var(--mono); font-size: 10px; color: rgba(226,231,244,0.65); }
.alloc-legend .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }

.portal-tabs { display: flex; gap: 2px; padding: 0 clamp(16px, 3vw, 30px); background: #fff; border-bottom: 1px solid var(--line); }
.portal-tabs button {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  background: none; border: none; border-bottom: 2px solid transparent;
  padding: 14px 16px; cursor: pointer; color: var(--ink-soft);
}
.portal-tabs button.on { border-bottom-color: var(--accent); color: var(--ink); }
.portal-body { padding: clamp(16px, 3vw, 30px); background: #fff; min-height: 300px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.portal-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; }
.portal-table th { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: #8a93a6; text-align: left; font-weight: 400; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.portal-table td { padding: 11px 12px; border-bottom: 1px solid #eef0f4; font-family: var(--mono); font-size: 12.5px; }
.portal-table td:first-child { font-family: var(--sans); font-size: 13.5px; font-weight: 500; }
.portal-table .num, .portal-table th.num { text-align: right; }
.portal-table .pos { color: #1f8a5b; }
.portal-table .neg { color: #c65a32; }
.cash-item { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 4px; border-bottom: 1px solid #eef0f4; }
.cash-item .t { font-size: 13.5px; font-weight: 500; }
.cash-item .t .tag { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; margin-right: 10px; font-weight: 400; }
.cash-item .tag.call { background: rgba(224,117,74,0.12); color: #c65a32; }
.cash-item .tag.dist { background: rgba(52,178,123,0.12); color: #1f8a5b; }
.cash-item .a { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.cash-item .d { font-family: var(--mono); font-size: 10.5px; color: #8a93a6; white-space: nowrap; }

/* ---------- inbox demo ---------- */
.inbox-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(16px, 2.5vw, 32px); align-items: start; }
@media (max-width: 900px) { .inbox-grid { grid-template-columns: 1fr; } }
.inbox-list { border: 1px solid var(--line-dark); border-radius: 5px; overflow: hidden; }
.inbox-list .hd { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-dark); font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(226,231,244,0.5); }
.inbox-list .hd .cnt { color: #7fd0a4; }
.mail { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(226,231,244,0.06); transition: background 0.3s; }
.mail:last-child { border-bottom: none; }
.mail.active { background: rgba(76,95,240,0.14); }
.mail .av { width: 30px; height: 30px; border-radius: 6px; background: var(--green-mid); color: #aeb9d6; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10px; flex-shrink: 0; }
.mail.active .av { background: var(--accent); color: #fff; }
.mail .m-body { flex: 1; min-width: 0; }
.mail .m-from { font-size: 12.5px; font-weight: 500; color: #eef1f8; }
.mail .m-subj { font-size: 11.5px; color: rgba(226,231,244,0.55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail .m-st { font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; text-align: right; }
.mail .m-st.idle { color: rgba(226,231,244,0.35); }
.mail .m-st.working { color: var(--accent-lite); }
.mail .m-st.pushed { color: #7fd0a4; }

.mail-analysis { background: #fff; color: var(--ink); border-radius: 5px; padding: clamp(18px, 2.5vw, 26px); min-height: 380px; }
.mail-analysis .an-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.mail-analysis .an-hd .t { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.mail-analysis .an-hd .m { font-family: var(--mono); font-size: 10px; color: #8a93a6; }
.sig-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.sig { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; opacity: 0; transform: translateY(4px); transition: opacity 0.4s, transform 0.4s; }
.sig.show { opacity: 1; transform: none; }
.sig.pos { background: rgba(52,178,123,0.12); color: #1f8a5b; }
.sig.warn { background: rgba(224,117,74,0.12); color: #c65a32; }
.sig.info { background: rgba(76,95,240,0.1); color: var(--accent); }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; margin-bottom: 16px; }
.metric { background: #fff; padding: 10px 12px; opacity: 0.2; transition: opacity 0.35s; }
.metric.on { opacity: 1; }
.metric .k { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #8a93a6; }
.metric .v { font-family: var(--mono); font-size: 15px; margin-top: 4px; font-weight: 500; }
.metric .v.up { color: #1f8a5b; }
.metric .v.down { color: #c65a32; }
.hl-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.hl { display: flex; gap: 10px; font-size: 13px; line-height: 1.45; color: #34405c; opacity: 0; transform: translateY(4px); transition: opacity 0.4s, transform 0.4s; }
.hl.show { opacity: 1; transform: none; }
.hl::before { content: "→"; color: var(--accent); flex-shrink: 0; }
.hl.risk::before { content: "!"; color: #c65a32; font-weight: 700; width: 12px; text-align: center; }
.hl.ask::before { content: "?"; color: #b98a24; font-weight: 700; width: 12px; text-align: center; }
.push-note { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10.5px; color: #1f8a5b; background: rgba(52,178,123,0.08); border: 1px solid rgba(52,178,123,0.25); border-radius: 4px; padding: 9px 13px; opacity: 0; transition: opacity 0.4s; }
.push-note.show { opacity: 1; }
.digest-strip {
  margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border: 1px dashed rgba(226,231,244,0.25); border-radius: 5px; padding: 13px 18px;
  font-family: var(--mono); font-size: 11px; color: rgba(226,231,244,0.6); letter-spacing: 0.03em;
}
.digest-strip .em { color: var(--accent-lite); }

/* ---------- diligence demo ---------- */
.dd-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(16px, 2.5vw, 32px); align-items: start; }
@media (max-width: 860px) { .dd-grid { grid-template-columns: 1fr; } }
.dd-files { border: 1px solid var(--line-dark); border-radius: 5px; overflow: hidden; }
.dd-files .hd { padding: 12px 16px; border-bottom: 1px solid var(--line-dark); font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(226,231,244,0.5); }
.dd-file { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid rgba(226,231,244,0.06); font-size: 13px; transition: opacity 0.3s; }
.dd-file:last-child { border-bottom: none; }
.dd-file .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-file .st { font-family: var(--mono); font-size: 10px; color: rgba(226,231,244,0.4); }
.dd-file.read .st { color: #7fd0a4; }
.dd-file.reading .st { color: var(--accent-lite); }
.dd-memo { background: #fff; color: var(--ink); border-radius: 5px; padding: clamp(20px, 3vw, 30px); min-height: 380px; }
.dd-memo .memo-hd { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; }
.dd-memo .memo-hd .t { font-weight: 700; font-size: 18px; letter-spacing: -0.015em; }
.dd-memo .memo-hd .m { font-family: var(--mono); font-size: 10px; color: #8a93a6; letter-spacing: 0.08em; margin-top: 4px; }
.finding { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid #eef0f4; opacity: 0; transform: translateY(6px); transition: opacity 0.45s, transform 0.45s; }
.finding.show { opacity: 1; transform: none; }
.finding .lab { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #8a93a6; padding-top: 3px; }
.finding .body { font-size: 13.5px; line-height: 1.55; }
.finding .body .m { font-family: var(--mono); font-size: 12.5px; }
.finding .flag { display: inline-block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; margin-left: 8px; vertical-align: 1px; }
.finding .flag.warn { background: rgba(224,117,74,0.14); color: #c65a32; }
.finding .flag.ok { background: rgba(52,178,123,0.12); color: #1f8a5b; }
@media (max-width: 560px) { .finding { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- engagement ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; padding: clamp(24px, 3vw, 40px); }
.step .no { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.12em; }
.step h3 { font-size: 21px; margin: 14px 0 10px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- audience ---------- */
.aud-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 820px) { .aud-row { grid-template-columns: 1fr; } }
.aud .who { font-weight: 700; font-size: 20px; letter-spacing: -0.015em; margin-bottom: 10px; }
.aud p { font-size: 14.5px; color: var(--ink-soft); }
.aud .who::after { content: ""; display: block; width: 28px; height: 2px; background: var(--accent); margin-top: 12px; }

/* ---------- ecosystem ---------- */
.tool-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tool {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em;
  background: #fff; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 9px 15px; white-space: nowrap;
}
.tool.dim { background: transparent; border-style: dashed; color: #8a93a6; }

/* ---------- contact ---------- */
.v2-contact { background: var(--green-deep); color: #eef1f8; padding: clamp(80px, 12vh, 140px) 0; }
.v2-contact h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; max-width: 20ch; text-wrap: balance; }
.v2-contact h2 em { font-style: normal; color: var(--accent-lite); }
.v2-contact .sub { margin-top: 22px; color: rgba(226,231,244,0.65); max-width: 52ch; font-size: 16px; }
.v2-contact .row { margin-top: 40px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.v2-contact .btn-gold { background: var(--accent); color: #fff !important; display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; padding: 15px 28px; border: none; cursor: pointer; border-radius: 4px; transition: background 0.2s; }
.v2-contact .btn-gold:hover { background: #6a3fd6; }
.v2-contact a.mail { color: rgba(226,231,244,0.75); font-family: var(--mono); font-size: 13px; }
.v2-contact a.mail:hover { color: var(--accent-lite); }

.v2-foot { background: var(--green-deep); color: rgba(226,231,244,0.45); border-top: 1px solid var(--line-dark); padding: 34px 0 38px; }
.v2-foot .inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px 40px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; }
.v2-foot .foot-co { display: flex; flex-direction: column; gap: 6px; }
.v2-foot .foot-brand { color: rgba(226,231,244,0.85); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.v2-foot .foot-brand .num { color: var(--accent-lite); margin-right: 9px; }
.v2-foot .foot-meta { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.v2-foot a { color: rgba(226,231,244,0.6); }
.v2-foot a:hover { color: var(--accent-lite); }
@media (max-width: 640px) { .v2-foot .foot-meta { text-align: left; } }

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .v2-nav-links { display: none !important; }
  .v2-hero h1 { font-size: clamp(32px, 9.5vw, 40px); }
  .v2-hero { padding-top: 56px; }
  .v2-contact h2 { font-size: clamp(28px, 8.5vw, 34px); }
  .chapter-head h2 { font-size: clamp(23px, 6.5vw, 26px); }
  .btn-primary, .v2-contact .btn-gold { width: 100%; justify-content: center; }
  .doc { min-height: 0; padding: 20px 18px 22px; }
  .dd-memo, .mail-analysis { min-height: 0; }
  .demo-body { padding: 14px; }
  .kpi { padding: 14px 14px; }
  .kpi .v { font-size: 22px; }
  .portal-stats { gap: 18px 28px; }
  .digest-strip { font-size: 10px; }
  .chart-wrap { padding: 12px 8px 6px; }
  .cash-item { flex-wrap: wrap; }
  .mail .m-subj { max-width: 160px; }
}

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
  .reveal.in { opacity: 1; transform: none; }
}
