/* ExploitBench marketing site */

/* ---------- Fonts (self-hosted, SIL OFL 1.1, see fonts/OFL.txt) ---------- */
/* Latin and latin-ext subsets from the design system; the browser only fetches the ones a page needs. */

@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/Geist-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/Geist-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('/assets/fonts/GeistMono-latin.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('/assets/fonts/GeistMono-latin-ext.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */

:root {
  --bg: #0b0d11;
  --text: #f0f2f4;
  --button-bg: #f3f5f8;
  --muted-1: #adb1b7;
  --muted-2: #a0a5ab;
  --muted-3: #9a9fa5;
  --muted-4: #94999e;
  --muted-5: #82878c;
  --line: #23272b;
  --timeline-rule: #52565b;
  --mint: #76e9d4;

  --report-bg: #f5f7f9;
  --report-ink: #13161c;
  --report-muted: #51555c;
  --report-line: #d2d4d8;
  --report-row-line: #dfe1e5;
  --flag-bg: #ffeae7;
  --flag-line: #f1cec9;
  --flag-red: #de3d34;
  --flag-text: #ac040c;
  --flag-identifier: #494d54;

  --net-node: #4e5359;
  --net-label-bg: #111418;
  --net-label-box: #32363b;
  --net-label-ink: #e9ebee;
  --net-signal: #ed413b;
  --net-signal-text: #fc7b6f;

  --sans: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --gutter: clamp(20px, 5vw, 56px);
  --section-pad: clamp(72px, 10vw, 120px);
}

/* ---------- Base ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:hover { opacity: .8; }

.page {
  position: relative;
  z-index: 1;
  overflow-x: hidden;
  overflow-x: clip;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Standard two-column section: h2 left, content right; wraps on narrow screens */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
}

.split-body {
  flex: 999 1 560px;
  min-width: 0;
}

.section { padding: var(--section-pad) 0; }

.section-title {
  flex: 1 1 240px;
  margin: 0;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.note {
  margin: 48px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-3);
  max-width: 640px;
  text-wrap: pretty;
}

.mono { font-family: var(--mono); }

/* ---------- Header ---------- */

.site-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  padding: 22px var(--gutter);
}

/* Logo 2a: node mark + Geist 500 wordmark. Mark = 1.14 × font size, gap = 0.32 × font size. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--text);
}

.logo-mark {
  flex: none;
  width: 1.14em;
  height: 1.14em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 15px;
}

.nav a {
  color: var(--muted-1);
  text-decoration: none;
}

.nav a[aria-current="page"] { color: var(--text); }

.nav .pill {
  color: var(--text);
  font-weight: 500;
  padding: 9px 16px;
  border: 1px solid rgba(240, 242, 244, .3);
  border-radius: 999px;
}

.nav .pill:hover {
  border-color: var(--mint);
  color: var(--mint);
  opacity: 1;
}

/* ---------- Primary button ---------- */

.btn {
  display: inline-flex;
  padding: 17px 30px;
  background: var(--button-bg);
  color: var(--bg);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
}

.btn:hover {
  background: var(--mint);
  opacity: 1;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: calc(100vh - clamp(150px, 22vh, 220px));
  min-height: calc(100svh - clamp(150px, 22vh, 220px));
  display: flex;
  flex-direction: column;
}

.hero-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px var(--gutter) max(72px, calc(200px - 12vw));
}

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted-2);
}

.hero-title {
  margin: 24px 0 0;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.035em;
  max-width: 980px;
  text-wrap: balance;
}

.hero-lead {
  margin: 26px 0 0;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--muted-1);
  max-width: 560px;
  text-wrap: balance;
}

.hero .btn { margin-top: 44px; }

.hero-sub {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-2);
  text-wrap: balance;
}

.hero-sub a {
  color: var(--text);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  margin: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-5);
  pointer-events: none;
}

/* ---------- Example report ---------- */

.report-section {
  padding: 8px 0 var(--section-pad);
  scroll-margin-top: 24px;
}

.report-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px 64px;
}

.report-head-note {
  flex: 999 1 560px;
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted-2);
}

.report {
  margin-top: 32px;
  background: var(--report-bg);
  color: var(--report-ink);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 48px);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .8);
}

.report-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--report-line);
}

.report-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--report-muted);
}

.report-product {
  margin: 8px 0 0;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.report-meta {
  margin: 0;
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 20px;
  font-family: var(--mono);
  font-size: 12px;
}

.report-meta dt { color: var(--report-muted); }
.report-meta dd { margin: 0; }

.report-summary {
  margin: 24px 0 20px;
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.report-summary::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--flag-red);
}

.report-summary strong { font-weight: 600; }
.report-summary span { color: var(--report-muted); }

.table-scroll {
  overflow-x: auto;
  margin: 0 calc(-1 * clamp(8px, 1vw, 12px));
}

.report-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}

.report-table th {
  text-align: left;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--report-muted);
  border-bottom: 1px solid var(--report-line);
}

.report-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--report-row-line);
  color: var(--report-muted);
}

.report-table tbody tr:last-child td { border-bottom: 0; }

/* Columns: component, version, identifier, status, verdict */
.report-table td:nth-child(1) { font-weight: 500; color: var(--report-ink); }
.report-table td:nth-child(2) { font-family: var(--mono); font-size: 13px; color: var(--report-ink); }
.report-table td:nth-child(3) { font-family: var(--mono); font-size: 12px; }

.report-table .is-flagged { background: var(--flag-bg); }
.report-table .is-flagged td { border-bottom-color: var(--flag-line); }
.report-table .is-flagged td:nth-child(1) { box-shadow: inset 3px 0 0 var(--flag-red); }
.report-table .is-flagged td:nth-child(3) { color: var(--flag-identifier); }
.report-table .is-flagged td:nth-child(4) { color: var(--flag-text); font-weight: 600; }
.report-table .is-flagged td:nth-child(5) { color: var(--report-ink); }
.report-table .cve { font-family: var(--mono); font-size: 13px; }

.readiness {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--report-line);
}

.readiness h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.checklist {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 32px;
  font-size: 15px;
  line-height: 1.45;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checklist li::before {
  content: "";
  flex: none;
  margin-top: 3px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--report-ink);
  border-radius: 2px;
}

/* ---------- CRA timeline ---------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px 32px;
}

.timeline li {
  position: relative;
  border-top: 1px solid var(--timeline-rule);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text);
}

.timeline-figure {
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.timeline p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted-1);
  text-wrap: pretty;
}

/* ---------- How it works ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.steps li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child { border-bottom: 1px solid var(--line); }

.step-number {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted-4);
  padding-top: 4px;
}

.steps h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.steps p {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted-1);
  text-wrap: pretty;
}

/* ---------- Ongoing monitoring ---------- */

.pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
  align-items: flex-start;
}

.price-col { flex: 1 1 260px; }

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.price-amount {
  font-size: clamp(44px, 5vw, 60px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.price-unit {
  font-size: 16px;
  color: var(--muted-1);
}

.price-vat {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted-4);
}

.offer {
  margin: 28px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(118, 233, 212, .45);
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
}

.offer strong {
  color: var(--mint);
  font-weight: 500;
}

.includes { flex: 1 1 300px; }

.includes-label {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-4);
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
}

.ticks li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.ticks li:last-child { border-bottom: 1px solid var(--line); }

.ticks li::before {
  content: "✓";
  content: "✓" / "";
  color: var(--mint);
}

.monitoring-note { margin-top: 40px; }

/* ---------- Your data ---------- */

.statement {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 720px;
  text-wrap: balance;
}

.statement-body {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted-1);
  max-width: 600px;
  text-wrap: pretty;
}

/* ---------- Final CTA ---------- */

.cta {
  padding: clamp(96px, 12vw, 160px) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.035em;
  max-width: 820px;
  text-wrap: balance;
}

.cta .btn { margin-top: 40px; }

.cta p {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--muted-2);
}

/* ---------- FAQ ---------- */

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  content: "+" / "";
  flex: none;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--muted-4);
  transition: transform .2s;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted-1);
  max-width: 620px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 28px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-3);
}

.site-footer p { margin: 0; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-meta a { text-decoration: none; }
.footer-brand { color: var(--text); }

.security-link {
  font-family: var(--mono);
  font-size: 12px;
  text-underline-offset: 3px;
}

/* ---------- Short pages (About, 404): content centred between header and footer ---------- */

.page--fill {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(64px, 10vw, 140px) 0;
}

.page-main .container {
  width: 100%;
  box-sizing: border-box;
}

.page-title {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.statement-body a {
  color: var(--text);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ---------- About page ---------- */

.about-body {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  align-items: flex-start;
}

.portrait {
  flex: none;
  display: block;
  width: 168px;
  height: 208px;
  border-radius: 8px;
  object-fit: cover;
}

/* Shown until the real photo is added */
.portrait--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: rgba(127, 127, 127, .08);
  border: 1.5px dashed rgba(240, 242, 244, .35);
  font-size: 12px;
  color: var(--muted-4);
}

.about-text {
  flex: 1 1 300px;
  min-width: 0;
}

.about-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
}

.about-name {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.about-link {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted-1);
  text-underline-offset: 3px;
}

.about-bio {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted-1);
  max-width: 580px;
  text-wrap: pretty;
}

/* ---------- Network background ---------- */

.net {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.net-layer {
  position: absolute;
  inset: 0;
  -webkit-mask-image: radial-gradient(ellipse 58% 46% at 50% 40%, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .22) 55%, #000 100%);
  mask-image: radial-gradient(ellipse 58% 46% at 50% 40%, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .22) 55%, #000 100%);
}

.net.is-phone .net-layer {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .22) 58%, #000 85%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .22) 58%, #000 85%);
}

.net svg { display: block; }

.net-edge { stroke: var(--line); }
.net-node { fill: var(--net-node); }
.net-hot-edge { stroke: var(--net-signal); }
.net-hot-dot { fill: var(--net-signal); }

.net-hot-ring {
  fill: none;
  stroke: var(--net-signal);
  stroke-width: 1.25;
}

.net-label-box {
  fill: var(--net-label-bg);
  stroke: var(--net-label-box);
}

.net-label-name {
  fill: var(--net-label-ink);
  font-family: var(--mono);
  font-size: 12px;
}

.net-label-status {
  fill: var(--net-signal-text);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
}

/* --dur and --delay are set per hot node by site.js */
.net-on { animation: ebOn var(--dur) linear var(--delay) infinite both; }

.net-hot-ring {
  animation: ebRing var(--dur) linear var(--delay) infinite both;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes ebOn {
  0% { opacity: 0; }
  2% { opacity: 1; }
  15% { opacity: 1; }
  19% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes ebRing {
  0% { transform: scale(1); opacity: 0; }
  1% { transform: scale(1); opacity: .8; }
  10% { transform: scale(4); opacity: 0; }
  100% { transform: scale(4); opacity: 0; }
}

/* Reduced motion: no flashes; the openssl node and label stay visible as a static example */
@media (prefers-reduced-motion: reduce) {
  .net-on { animation: none; opacity: 0; }
  .net-on.net-still { opacity: 1; }
  .net-hot-ring { animation: none; opacity: 0; }
}
