/* ==========================================================================
   NeoSur Intelligence N.V. — design system v2
   Type: Inter (self-hosted, variable). Colour: brand blue lifted from the mark.
   No inline styles anywhere: the site runs under a strict style-src 'self' CSP.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  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;
}

:root {
  /* surfaces */
  --ink: #0a0b0e;
  --ink-2: #0e1015;
  --ink-3: #13161c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  /* type — all ratios verified against --ink for WCAG AA */
  --text: #eef1f6;
  --muted: #a7b0c0;
  --dim: #8d97a8;

  /* brand */
  --accent: #1173d4;
  --accent-hi: #56b0f5;
  --accent-wash: rgba(17, 115, 212, 0.12);
  --warn: #e0a458;

  --max: 1180px;
  --radius: 6px;
  --radius-lg: 12px;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  font-feature-settings: "cv11" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

::selection { background: rgba(86, 176, 245, 0.28); color: #fff; }

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

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

img, svg { display: block; max-width: 100%; }
img { height: auto; }

/* --- skip link ----------------------------------------------------------- */

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: top 0.16s var(--ease);
}
.skip:focus { top: 16px; color: #fff; }

/* --- layout ------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
}

.section { padding: clamp(72px, 9vw, 116px) 0; }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section--line { border-top: 1px solid var(--line); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --- header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 11, 14, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { height: 34px; width: auto; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-name {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-parent {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 2px;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a.nav-link {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 450;
  padding: 9px 12px;
  border-radius: var(--radius);
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.nav a.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav a.nav-link[aria-current="page"] { color: var(--text); }

.nav .btn { margin-left: 12px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-2);
  color: var(--text);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
}

/* --- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.16s var(--ease);
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #1582ea; color: #fff; }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.05); color: var(--text); }

.btn .arrow { font-family: var(--mono); font-size: 13px; opacity: 0.75; }

/* --- type --------------------------------------------------------------- */

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.1vw, 2.65rem); }
h3 { font-size: 1.14rem; letter-spacing: -0.014em; line-height: 1.3; }

p { margin: 0 0 1.05em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 58ch;
}

.small { font-size: 13.5px; line-height: 1.55; color: var(--dim); }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

/* --- hero --------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: clamp(64px, 8vw, 104px) 0 clamp(64px, 8vw, 104px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 40% 40% -20%;
  background: radial-gradient(circle at 30% 30%, rgba(17, 115, 212, 0.22), transparent 62%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.45;
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 26px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}

.hero-facts span { display: flex; align-items: center; gap: 8px; }

.hero-facts span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-hi);
  flex: none;
}

/* --- artifact panel (hero visual) --------------------------------------- */

.artifact {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)), var(--ink-2);
  box-shadow: 0 32px 80px -32px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.artifact-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.artifact-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.artifact-bar .dot:first-child { background: rgba(86, 176, 245, 0.6); }
.artifact-bar .name { margin-left: 6px; }

.artifact-body { padding: 18px 18px 8px; }

.finding {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.finding:last-child { border-bottom: 0; }

.chip {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.5;
}
.chip-high { background: rgba(224, 122, 95, 0.16); color: #f0a48c; border: 1px solid rgba(224, 122, 95, 0.3); }
.chip-med { background: rgba(224, 164, 88, 0.14); color: #e8bb85; border: 1px solid rgba(224, 164, 88, 0.28); }
.chip-nv { background: rgba(86, 176, 245, 0.12); color: #8cc9f2; border: 1px solid rgba(86, 176, 245, 0.26); }

.finding .claim { display: block; color: var(--text); font-weight: 500; }
.finding .trace { display: block; color: var(--dim); font-family: var(--mono); font-size: 11.5px; margin-top: 5px; }

.artifact-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}

/* --- section head ------------------------------------------------------- */

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 56px);
}

.section-head .lead { margin: 0; }
.section-head h2 { max-width: 20ch; }

/* --- cards / grids ------------------------------------------------------ */

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  display: block;
  background: var(--ink);
  padding: 32px 28px;
  transition: background 0.2s var(--ease);
}
a.card:hover { background: var(--ink-3); color: inherit; }

.card .num {
  display: block;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-hi);
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; line-height: 1.6; color: var(--muted); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--text);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
}
.card-link:hover { color: var(--accent-hi); border-color: var(--accent-hi); }

/* --- icons -------------------------------------------------------------- */

.icon {
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  stroke: var(--accent-hi);
  stroke-width: 1.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- feature list ------------------------------------------------------- */

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }

.features li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}

.features li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border: 1px solid var(--accent-hi);
  transform: rotate(45deg);
}

.features strong { color: var(--text); font-weight: 600; }

/* --- band --------------------------------------------------------------- */

.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.quote {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.32;
  letter-spacing: -0.022em;
  font-weight: 500;
}
.quote em { font-style: normal; color: var(--accent-hi); }

/* --- steps -------------------------------------------------------------- */

.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }

.step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(16px, 3vw, 40px);
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.step .n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--dim);
  padding-top: 4px;
}

.step h3 { padding-top: 0; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* --- severity table ----------------------------------------------------- */

.table-wrap { overflow-x: auto; }

.sev { width: 100%; border-collapse: collapse; font-size: 15px; }
.sev th {
  text-align: left;
  padding: 0 16px 14px 0;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.sev td {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}
.sev td:first-child {
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.sev tr:last-child td { border-bottom: 0; }

/* --- code --------------------------------------------------------------- */

.code {
  margin: 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #06070a;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: #c3ccd9;
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
}
.code .k { color: var(--accent-hi); }
.code .c { color: var(--dim); }

/* --- price -------------------------------------------------------------- */

.price-card {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  background: linear-gradient(180deg, rgba(17, 115, 212, 0.09), transparent 55%), var(--ink-2);
}

.tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 9px;
  border: 1px solid rgba(86, 176, 245, 0.28);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-hi);
}

.price {
  margin: 0 0 8px;
  font-size: clamp(2rem, 3.6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.price span { font-size: 0.95rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }

/* --- page hero ---------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 92px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.page-hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(17, 115, 212, 0.14), transparent 62%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 22ch; font-size: clamp(2.1rem, 4vw, 3.2rem); }
.page-hero .lead { margin-top: 22px; }

/* --- breadcrumbs -------------------------------------------------------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--dim);
}
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.crumbs a { color: var(--dim); }
.crumbs a:hover { color: var(--accent-hi); }

/* --- cta ---------------------------------------------------------------- */

.cta {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 55% 100% at 50% 0%, rgba(17, 115, 212, 0.16), transparent 68%),
    var(--ink);
  padding: clamp(72px, 9vw, 112px) 0;
  text-align: center;
}
.cta h2 { max-width: 24ch; margin: 0 auto 20px; }
.cta p { max-width: 54ch; margin: 0 auto 34px; color: var(--muted); }
.cta .btn { margin: 0 5px; }

/* --- footer ------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 36px;
  font-size: 14px;
  color: var(--dim);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.45fr;
  gap: 40px;
  padding-bottom: 40px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.footer-brand img { height: 46px; width: auto; opacity: 0.65; margin-bottom: 18px; }

.footer-heading {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col a { display: block; padding: 5px 0; color: var(--dim); font-size: 13.5px; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  font-size: 12.5px;
}

/* --- contact ------------------------------------------------------------ */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); }

.contact-block { border-top: 1px solid var(--line); padding-top: 22px; }
.contact-block h3 { margin-bottom: 8px; }
.contact-block p { font-size: 15px; color: var(--muted); }

a.mail {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--accent-hi);
  word-break: break-all;
}

/* --- utilities ---------------------------------------------------------- */

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.measure-32 { max-width: 32ch; }
.measure-48 { max-width: 48ch; }
.measure-62 { max-width: 62ch; }
.measure-70 { max-width: 70ch; }
.center { text-align: center; }

/* --- responsive --------------------------------------------------------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 20ch; }
  .section-head { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 18px; }
  .band .wrap { grid-template-columns: minmax(0, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 48px minmax(0, 1fr); }
  .step p { grid-column: 2; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 64px; }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: #0b0d11;
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a.nav-link { padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 16px 0 0; width: 100%; }
  .nav-toggle { display: block; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .step { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .step p { grid-column: 1; }
  .hero-facts { gap: 8px 16px; }
  .cta .btn { margin: 0 0 10px; width: 100%; }
}
