/* ==========================================================================
   ExactMark — Fintech, compliance & fraud teams
   Dark midnight. Inter body, Manrope headings. Cyan accent, one amber
   risk chip. Scanline texture in the hero only; cyan hairlines between
   sections; capability cards with cyan left borders.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --bg: #060a12;
  --surface: #0c1220;
  --surface-2: #111a2c;
  --text: #dbe4f3;
  --muted: #8b98b3;
  --line: #1c2740;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, .14);
  --accent-hair: rgba(34, 211, 238, .22);
  --warn: #f5b849;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Manrope", var(--font-body);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 6px;
  --wrap: 1180px;
  --gutter: 24px;
  --section-y: 96px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code { font-family: var(--font-mono); font-size: .88em; color: var(--accent); background: var(--accent-soft); padding: 2px 6px; border-radius: 4px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; color: #fff; }
h1 { font-size: clamp(38px, 4.6vw, 58px); }
h2 { font-size: clamp(28px, 3.1vw, 40px); font-weight: 600; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.3; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 100;
  padding: 10px 14px; background: var(--accent); color: var(--bg);
  border-radius: var(--radius); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-head { max-width: 640px; margin-bottom: 48px; }

/* Cyan-tinted hairlines between every section */
main > section { border-bottom: 1px solid var(--accent-hair); }

/* 3. Buttons and links ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border-radius: var(--radius);
  background: var(--accent); color: var(--bg);
  font-weight: 700; font-size: 16px; line-height: 1.2; white-space: nowrap;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: #67e3f5; text-decoration: none; }
.btn-sm { padding: 10px 16px; font-size: 15px; }
.text-link { font-weight: 600; }
.text-link::after { content: " \2192"; }

/* 4. Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 10, 18, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-head); font-weight: 700; }
.brand:hover { text-decoration: none; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: #fff; text-decoration: none; }

/* 5. Hero ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; padding: 96px 0 104px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(34, 211, 238, .045) 0 1px, transparent 1px 4px),
    linear-gradient(rgba(34, 211, 238, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, .07) 1px, transparent 1px);
  background-size: 100% 4px, 56px 56px, 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 72% 40%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at 72% 40%, #000 20%, transparent 72%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.hero h1 { max-width: 16ch; }
.lede { margin-top: 24px; font-size: 18px; color: var(--muted); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.trust-line { display: flex; flex-wrap: wrap; margin-top: 28px; font-size: 14px; color: var(--muted); }
.trust-line span + span::before { content: "\00b7"; margin: 0 10px; color: var(--accent); }

/* 5a. Monitoring console illustration */
.hero-visual { position: relative; padding-bottom: 140px; }
.console {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
/* A slow scan line: the detector "reading" the console */
.console::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: sweep 7s linear infinite;
}
.console-bar {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: var(--surface-2); border-radius: 10px 10px 0 0; font-size: 12px;
}
.dots { display: flex; gap: 5px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.console-title { font-family: var(--font-head); font-weight: 700; color: #fff; }
.console-status { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.console-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); animation: pulse 2.4s ease-in-out infinite; }
.console-body { display: grid; grid-template-columns: 1.65fr 1fr; }

.alerts { padding: 10px 14px 16px; border-right: 1px solid var(--line); }
.alert-head, .alert-row { display: grid; grid-template-columns: 76px 66px 1fr 1fr; gap: 10px; align-items: center; padding: 9px 6px; }
.alert-head { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.alert-row { border-bottom: 1px solid rgba(28, 39, 64, .7); }
.alert-row:first-of-type { background: rgba(34, 211, 238, .05); }
.alert-id { font-family: var(--font-mono); font-size: 11px; color: var(--text); }
.chip { display: inline-block; justify-self: start; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; border: 1px solid transparent; line-height: 1.5; }
.chip-warn { color: var(--warn); border-color: rgba(245, 184, 73, .45); background: rgba(245, 184, 73, .1); }
.chip-mid { color: var(--accent); border-color: var(--accent-hair); background: var(--accent-soft); }
.chip-low { color: var(--muted); border-color: var(--line); }
.sk { display: block; height: 7px; border-radius: 3px; background: var(--line); }
.sk-amt { width: 72%; }
.sk-own { width: 56%; }
.alert-foot { display: flex; gap: 8px; padding: 12px 6px 0; }
.alert-foot .sk { flex: 1; }
.alert-foot .sk:nth-child(2) { flex: .55; }
.alert-foot .sk:nth-child(3) { flex: .35; }

.side-panel { padding: 14px 14px 16px; background: rgba(17, 26, 44, .55); border-radius: 0 0 10px 0; }
.panel-label { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.panel-title { margin-top: 4px; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: #fff; }
.panel-chip {
  display: inline-block; margin-top: 10px; padding: 4px 8px; border-radius: 4px;
  font-size: 10.5px; font-weight: 600; color: var(--accent);
  border: 1px solid var(--accent-hair); background: var(--accent-soft);
}
.panel-facts { margin-top: 14px; display: grid; gap: 7px; }
.panel-facts div { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 10.5px; border-top: 1px solid var(--line); padding-top: 7px; }
.panel-facts dt { color: var(--muted); }
.panel-facts dd { color: var(--text); font-weight: 500; text-align: right; }
.panel-facts .sk { width: 46px; }

.match-card {
  position: absolute; right: -5%; bottom: -120px; z-index: 1; width: 44%; min-width: 224px;
  background: var(--surface-2); border: 1.5px solid var(--accent); border-radius: 8px;
  padding: 14px 16px 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  animation: rise .7s .4s cubic-bezier(.2, .7, .2, 1) both;
}
.match-label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.match-kicker { margin-top: 8px; font-size: 11px; color: var(--muted); }
.match-source { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: #fff; }
.match-score { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.match-score .num { font-family: var(--font-head); font-size: 36px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--accent); }
.score-label { font-size: 11px; color: var(--muted); }
.match-ranked { margin-top: 12px; display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.match-ranked li { display: grid; grid-template-columns: 62px 1fr 34px; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.match-ranked b { font-family: var(--font-head); font-weight: 700; color: var(--text); text-align: right; }
.match-ranked i { display: block; height: 4px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.match-ranked i::after { content: ""; position: absolute; inset: 0; background: var(--accent); }
.match-ranked li:nth-child(1) i::after { width: 89%; }
.match-ranked li:nth-child(2) i::after { width: 17%; opacity: .55; }
.match-ranked li:nth-child(3) i::after { width: 6%; opacity: .4; }

@keyframes sweep {
  0% { top: 0; opacity: 0; }
  6% { opacity: .55; }
  44% { opacity: .55; }
  50%, 100% { top: calc(100% - 2px); opacity: 0; }
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px var(--accent-soft); } 50% { box-shadow: 0 0 0 6px rgba(34, 211, 238, .06); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* 6. Value strip ----------------------------------------------------------- */
.value-strip { background: var(--surface); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.value-grid li { padding: 30px 24px; border-left: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.value-grid li:first-child { border-left: 0; padding-left: 0; }
.value-grid li:last-child { padding-right: 0; }
.value-grid strong { font-family: var(--font-head); font-size: 16px; color: #fff; }
.value-grid span { font-size: 14px; color: var(--muted); }

/* 7. Problem → solution ---------------------------------------------------- */
.problem { padding: var(--section-y) 0; }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.problem-col h2 { max-width: 18ch; }
.problem-col p:not(.eyebrow) { margin-top: 18px; color: var(--muted); }
.problem-col p:not(.eyebrow):first-of-type { margin-top: 22px; }
.solution-col {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 36px 36px 40px;
}
.solution-col p:not(.eyebrow) { color: var(--text); }

/* 8. How it works ---------------------------------------------------------- */
.how { padding: var(--section-y) 0; background: var(--surface); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps::before { content: ""; position: absolute; top: 18px; left: 0; right: 0; height: 1px; background: var(--line); }
.steps li { position: relative; }
.step-num {
  position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--accent); color: var(--accent);
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
}
.steps h3 { margin-top: 22px; }
.steps p { margin-top: 12px; font-size: 15.5px; color: var(--muted); }

/* 9. Capabilities ---------------------------------------------------------- */
.capabilities { padding: var(--section-y) 0; }
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cap {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 28px 28px 32px;
  transition: border-color .15s ease, background-color .15s ease;
}
.cap:hover { background: var(--surface-2); }
.cap-tag { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.cap h3 { margin-top: 12px; }
.cap p { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* 10. FAQ ------------------------------------------------------------------ */
.faq { padding: var(--section-y) 0; background: var(--surface); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: 96px; }
.faq-intro { margin-top: 16px; color: var(--muted); }
.faq-list { display: grid; gap: 2px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 20px 44px 20px 0; font-family: var(--font-head); font-weight: 600; font-size: 18px; color: #fff; line-height: 1.35;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 14px; top: 26px; width: 9px; height: 9px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(225deg); top: 30px; }
summary:hover { color: var(--accent); }
details p { padding: 0 44px 22px 0; color: var(--muted); font-size: 16px; }

/* 11. Final CTA band ------------------------------------------------------- */
.cta-band {
  padding: 104px 0; text-align: center;
  background: radial-gradient(ellipse at 50% 110%, rgba(34, 211, 238, .14), transparent 60%);
}
.cta-inner { max-width: 640px; }
.cta-band p { margin-top: 16px; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 24px; margin-top: 32px; }

/* 12. Footer --------------------------------------------------------------- */
.site-footer { padding: 36px 0 44px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.tagline { color: var(--muted); font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.footer-nav a { color: var(--muted); font-size: 14px; font-weight: 500; }
.footer-nav a:hover { color: #fff; }

/* 13. Responsive ----------------------------------------------------------- */
@media (max-width: 940px) {
  :root { --section-y: 72px; }
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero::before { -webkit-mask-image: radial-gradient(ellipse at 50% 60%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 60%, #000 20%, transparent 75%); }
  .console { max-width: 640px; margin-inline: auto; }
  .match-card { right: 0; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .value-grid li { padding: 24px; }
  .value-grid li:first-child, .value-grid li:nth-child(3) { border-left: 0; padding-left: 0; }
  .value-grid li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .problem-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { top: 0; bottom: 0; left: 18px; right: auto; width: 1px; height: auto; }
  .cap-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-grid .section-head { position: static; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .header-inner { gap: 16px; }
  .site-nav { display: none; }
  .btn-sm { margin-left: auto; }
  .hero { padding: 48px 0 56px; }
  h1 { font-size: clamp(32px, 9vw, 40px); }
  .lede { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { padding-bottom: 0; }
  .console-body { grid-template-columns: 1fr; }
  .alerts { border-right: 0; border-bottom: 1px solid var(--line); }
  .alert-head, .alert-row { grid-template-columns: 70px 60px 1fr 1fr; gap: 8px; }
  .side-panel { border-radius: 0 0 10px 10px; }
  .match-card { position: relative; right: auto; bottom: auto; width: 100%; min-width: 0; margin-top: 14px; }
  .value-grid { grid-template-columns: 1fr; }
  .value-grid li { border-left: 0; padding: 20px 0; }
  .value-grid li:nth-child(n + 2) { border-top: 1px solid var(--line); }
  .solution-col { padding: 28px 22px 32px; }
  .cap { padding: 24px 20px 28px; }
  summary { font-size: 17px; }
  .cta-band { padding: 72px 0; }
  .cta-actions .btn { width: 100%; }
  .footer-nav { margin-left: 0; }
}

/* 14. Motion preferences --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .console::after { display: none; }
}
