/* ExactMark — Private equity & venture funds
   Dark navy with gold. Manrope headings (700), Inter body. 8px buttons, gold hairlines. */

:root {
  --bg: #0b1020;
  --surface: #111a30;
  --surface-2: #16213d;
  --text: #e8ebf3;
  --muted: #98a2bd;
  --line: #24304f;
  --gold: #d4b26a;
  --gold-soft: rgba(212, 178, 106, .14);
  --gold-line: rgba(212, 178, 106, .45);
  --radius: 8px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;
  --wrap: 1160px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 .6em;
  color: #fff;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }
code {
  font: 500 .86em/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--gold-soft);
  color: var(--gold);
  padding: .1em .4em;
  border-radius: 4px;
}
img { display: block; }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.rule {
  border: 0;
  height: 1px;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--gold-line) 20%, var(--gold-line) 80%, transparent);
}

/* ---------- Shared components ---------- */
.eyebrow {
  font: 600 .76rem/1 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2em;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: .95em 1.6em;
  background: var(--gold);
  color: var(--bg);
  font: 700 1rem/1 var(--font-body);
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}
.btn:hover { background: #e2c47f; transform: translateY(-1px); }
.btn-sm { padding: .7em 1.2em; font-size: .92rem; }
.text-link {
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 2px;
}
.text-link:hover { border-color: var(--gold); }
.text-link::after { content: " →"; }
.section-head { max-width: 700px; margin-bottom: 3rem; }
.section-head h2 { margin-bottom: 0; }
.section-note { margin-top: 1.2rem; color: var(--muted); }
.section-note a { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 16, 32, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 72px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: #fff;
  font: 700 1.1rem/1 var(--font-head);
}
.brand img { width: 26px; height: 26px; }
.site-nav { display: flex; gap: 1.8rem; margin-left: auto; }
.site-nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--muted); }
.site-nav a:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 6rem 0 5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}
.hero-copy { min-width: 0; }
.lede { font-size: 1.12rem; color: var(--muted); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }
.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  margin: 1.8rem 0 0;
  font-size: .88rem;
  color: var(--muted);
}
.trust-line span + span::before { content: "·"; margin-right: 1rem; color: var(--gold-line); }

/* ---------- Hero visual: fan of copies ---------- */
.hero-visual { position: relative; min-height: 440px; }
.fan { position: relative; height: 340px; }
.doc {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.doc-source {
  left: 0; top: 0;
  width: 58%;
  height: 100%;
  padding: 1.3rem 1.4rem;
  overflow: hidden;
  z-index: 4;
}
.doc-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .25rem; }
.doc-head strong { font: 700 1.05rem/1.2 var(--font-head); color: #fff; }
.doc-tag {
  font: 700 .66rem/1 var(--font-body);
  letter-spacing: .1em;
  padding: .35em .55em;
  border-radius: 4px;
  background: var(--gold-soft);
  color: var(--gold);
}
.doc-sub { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 1.2rem; }
.doc-figures { margin: 0 0 1.2rem; display: grid; gap: .55rem; }
.doc-figures div { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: .4rem; }
.doc-figures dt { font-size: .78rem; color: var(--muted); }
.doc-figures dd { margin: 0; font: 600 .9rem/1 var(--font-head); color: #fff; font-variant-numeric: tabular-nums; }
.doc-lines { display: grid; gap: .5rem; }
.doc-lines i { display: block; height: 6px; border-radius: 3px; background: var(--surface-2); }
.doc-lines i:nth-child(2) { width: 85%; }
.doc-lines i:nth-child(3) { width: 70%; }
.doc-lines i:nth-child(4) { width: 92%; }
.doc-lines i:nth-child(5) { width: 55%; }
.doc-mark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(212, 178, 106, .7) 1px, transparent 1.6px);
  background-size: 20px 20px;
  opacity: .16;
  animation: mark-drift 16s linear infinite;
}
.doc-copy {
  width: 46%;
  height: 78%;
  padding: 1rem 1.1rem;
  transform-origin: bottom left;
  animation: fan-out 1s cubic-bezier(.2, .7, .2, 1) both;
}
.copy-1 { left: 47%; top: 6%; z-index: 1; transform: rotate(-4deg); --r: -4deg; }
.copy-2 { left: 52%; top: 12%; z-index: 2; transform: rotate(2deg); --r: 2deg; animation-delay: .12s; }
.copy-3 { left: 57%; top: 20%; z-index: 3; transform: rotate(7deg); --r: 7deg; animation-delay: .24s; }
.doc-copy.is-match { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-line), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.copy-label {
  display: block;
  font: 600 .74rem/1.3 var(--font-body);
  letter-spacing: .02em;
  color: var(--gold);
  margin-bottom: .9rem;
}
.doc-copy .doc-lines i { background: var(--line); }
.match-card {
  position: absolute;
  right: 0; bottom: 0;
  width: min(320px, 90%);
  z-index: 5;
  background: var(--surface-2);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
  animation: card-rise .8s .4s ease-out both;
}
.match-card p { margin: 0; }
.match-head { font: 600 .68rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.match-label { font-size: .78rem; color: var(--muted); }
.match-value { font: 700 1.15rem/1.2 var(--font-head); color: #fff; margin: .15rem 0 .35rem; }
.match-score { font-size: .84rem; color: var(--muted); }
.match-score strong { color: #fff; font-size: 1rem; }
.ranked {
  list-style: none;
  margin: .9rem 0 0; padding: .8rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .45rem;
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.ranked li { display: grid; grid-template-columns: 3.4em 1fr 2.6em; align-items: center; gap: .6rem; }
.ranked b { text-align: right; color: var(--text); font-weight: 600; }
.bar { height: 5px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.bar::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--gold); border-radius: inherit; }
.bar-1 { --w: 94%; }
.bar-2 { --w: 28%; }
.bar-3 { --w: 9%; }

/* ---------- Value strip ---------- */
.value-strip { padding: 3.5rem 0; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
.value-grid h3 { font-size: 1rem; margin-bottom: .45em; }
.value-grid p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- Problem → solution ---------- */
.problem { padding: 6rem 0; }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.problem-grid > div > p { color: var(--muted); }
.solution {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 2.2rem;
}
.solution h3 { font-size: 1.5rem; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; color: var(--muted); }
.check-list li { position: relative; padding-left: 1.6rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 10px; height: 10px;
  border: 1.5px solid var(--gold);
  border-radius: 2px;
  transform: rotate(45deg);
}
.check-list strong { color: var(--text); }

/* ---------- How it works ---------- */
.how { padding: 6rem 0; }
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.steps li { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.step-num {
  display: block;
  font: 800 4.5rem/1 var(--font-head);
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  margin-bottom: 1rem;
}
@supports not (-webkit-text-stroke: 1px #000) {
  .step-num { color: var(--gold); opacity: .6; }
}
.steps p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ---------- Capabilities ---------- */
.capabilities { padding: 6rem 0; }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cap-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: border-color .2s ease;
}
.cap-grid article:hover { border-color: var(--gold-line); }
.cap-grid h3 { font-size: 1.1rem; }
.cap-grid p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { padding: 6rem 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 4rem; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font: 700 1.05rem/1.35 var(--font-head);
  color: #fff;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 300;
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: .9rem 0 0; color: var(--muted); }

/* ---------- Final CTA ---------- */
.cta-band {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg), var(--surface));
  border-top: 1px solid var(--gold-line);
}
.cta-inner { max-width: 720px; }
.cta-inner > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer { padding: 2.5rem 0; border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; font-size: .9rem; color: var(--muted); }
.tagline { margin: 0; }
.footer-inner nav { display: flex; gap: 1.4rem; margin-left: auto; }
.footer-inner nav a { text-decoration: none; color: var(--muted); }
.footer-inner nav a:hover { color: #fff; }

/* ---------- Motion ---------- */
@keyframes mark-drift {
  from { background-position: 0 0; }
  to { background-position: 40px 20px; }
}
@keyframes fan-out {
  from { opacity: 0; transform: rotate(0deg) translateX(-30px); }
  to { opacity: 1; transform: rotate(var(--r)) translateX(0); }
}
@keyframes card-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .site-nav { display: none; }
  .hero { padding: 4rem 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { min-height: 0; max-width: 560px; padding-bottom: 8rem; }
  .fan { height: 300px; }
  .value-grid, .cap-grid { grid-template-columns: 1fr 1fr; }
  .problem-grid, .faq-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 1rem; }
  .btn { width: 100%; }
  .header-inner .btn { width: auto; margin-left: auto; }
  .text-link { text-align: center; }
  .trust-line span + span::before { display: none; }
  .fan { height: 260px; }
  .doc-source { width: 64%; padding: 1rem; }
  .doc-figures { display: none; }
  .doc-copy { width: 50%; }
  .hero-visual { padding-bottom: 10rem; }
  .match-card { width: 100%; }
  .value-grid, .cap-grid { grid-template-columns: 1fr; }
  .problem, .how, .capabilities, .faq, .cta-band { padding: 4rem 0; }
  .solution { padding: 1.6rem; }
  .step-num { font-size: 3.5rem; }
  .footer-inner nav { margin-left: 0; flex-wrap: wrap; }
}
