/* Plain CSS, no build step, no external requests. Everything the page needs is
   in this file, the inline SVG in the HTML, and the system font stack — a fresh
   VM serves the whole site with no network round trip beyond the HTML itself.

   Ordered: tokens, reset, primitives, then one block per section of the page in
   the order the page renders them. */

/* ── tokens ─────────────────────────────────────────────────────────────
   Two palettes, one set of names. Every colour is defined once on :root and
   redefined under the dark media query, so nothing below this block ever names
   a literal colour — which is what keeps the dark theme from drifting as
   sections are added. */

:root {
  color-scheme: light dark;

  /* brand — the same values as brand/mark.svg, which is the only other place
     they are allowed to appear */
  --green-900: #0a3a2e;
  --green-700: #0f5140;
  --green-500: #17795f;
  --green-300: #4db699;
  --amber:     #f5b544;

  --ink:        #10161c;
  --ink-soft:   #47525c;
  --ink-faint:  #6d7883;
  --bg:         #ffffff;
  --bg-soft:    #f7f8f7;
  --bg-sunk:    #f0f2f1;
  --line:       #e2e6e4;
  --line-soft:  #eef1ef;
  --accent:     var(--green-700);
  --accent-ink: #ffffff;
  --on-dark:    #e9f0ed;
  --on-dark-soft: #a9c2b8;

  --shadow-sm: 0 1px 2px rgba(16, 22, 28, .05);
  --shadow-md: 0 4px 16px -4px rgba(16, 22, 28, .10), 0 1px 3px rgba(16, 22, 28, .05);
  --shadow-lg: 0 24px 48px -24px rgba(10, 58, 46, .30), 0 2px 8px rgba(16, 22, 28, .05);

  --radius:    12px;
  --radius-lg: 18px;
  --radius-sm: 8px;
  --measure:   64ch;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:        #e7ebe9;
    --ink-soft:   #a6b0ac;
    --ink-faint:  #7f8a86;
    --bg:         #0c1110;
    --bg-soft:    #121917;
    --bg-sunk:    #172020;
    --line:       #26302d;
    --line-soft:  #1d2724;
    --accent:     var(--green-300);
    --accent-ink: #06120e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 16px -4px rgba(0, 0, 0, .5);
    --shadow-lg: 0 24px 48px -24px rgba(0, 0, 0, .7);
  }
}

/* ── reset ──────────────────────────────────────────────────────────── */

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

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

/* Anchored sections must clear the sticky header, or clicking a nav link
   scrolls the heading underneath it. */
:target { scroll-margin-top: 88px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

h1, h2, h3 { text-wrap: balance; }

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 20px; border-radius: 0 0 var(--radius) 0; z-index: 100;
}
.skip:focus { left: 0; }

/* ── header ─────────────────────────────────────────────────────────── */

header {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
}

.bar { display: flex; align-items: center; gap: 28px; height: 68px; }

.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; margin-right: auto;
  font-weight: 660; letter-spacing: -0.02em; font-size: 18px;
}
.brand svg { display: block; border-radius: 7px; }
.brand .brand-sub {
  font-weight: 450; color: var(--ink-faint); font-size: 13px;
  letter-spacing: 0; padding-left: 10px; margin-left: 2px;
  border-left: 1px solid var(--line);
}

nav { display: flex; gap: 26px; align-items: center; }
nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 15px;
  text-underline-offset: 5px;
}
nav a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .bar { gap: 16px; }
}

/* ── buttons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; cursor: pointer;
  padding: 11px 20px; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; font-weight: 560; line-height: 1.2;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn-quiet { border-color: var(--line); color: var(--ink); background: var(--bg); }
.btn-quiet:hover { background: var(--bg-soft); border-color: var(--ink-faint); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: progress; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 620; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px;
  background: var(--amber);
}

/* ── hero ───────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 92px 0 84px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* Faint grid, drawn with gradients rather than an image so it costs no
   request. Masked to fade out before it reaches the text. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 56px 100%;
  -webkit-mask-image: radial-gradient(120% 90% at 78% 8%, #000 0%, transparent 68%);
          mask-image: radial-gradient(120% 90% at 78% 8%, #000 0%, transparent 68%);
}

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

.hero-grid {
  display: grid; gap: 56px; align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 64px 0 56px; }
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06; letter-spacing: -0.032em;
  margin: 22px 0 20px; font-weight: 700;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--amber) 42%, transparent) 62%);
}

.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-soft); max-width: var(--measure); margin: 0 0 30px;
}

.hero-note {
  margin: 22px 0 0; font-size: 14px; color: var(--ink-faint);
  display: flex; align-items: center; gap: 8px;
}
.hero-note svg { flex: none; color: var(--accent); }

/* the address panel — the product's one-line explanation, as a picture */

.addresses {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.addresses .chrome {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.addresses .chrome span {
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-faint);
}
.addresses ul { margin: 0; padding: 8px; list-style: none; }
.addresses li {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 12px; border-radius: var(--radius-sm);
}
.addresses li + li { margin-top: 2px; }
.addresses li:hover { background: var(--bg-soft); }
.addresses .host {
  font-size: 15px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.addresses .host b { font-weight: 620; color: var(--accent); }
.addresses .db {
  margin-left: auto; flex: none;
  font-size: 12px; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px;
}
.addresses .foot {
  border-top: 1px solid var(--line); background: var(--bg-soft);
  padding: 12px 18px; font-size: 13px; color: var(--ink-faint);
}

/* ── strip of numbers ───────────────────────────────────────────────── */

.strip { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.strip .wrap {
  display: grid; padding-top: 0; padding-bottom: 0;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
/* A rule between the columns, drawn as a left border on every cell except the
   first in its row. Which cell that is depends on how many columns auto-fit
   chose, so it is done with a border on the cell and a negative offset on the
   track rather than by counting. */
.stat { padding: 30px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; padding-left: 4px; }
@media (max-width: 660px) {
  .stat, .stat:first-child { border-left: none; padding: 22px 4px; }
  .stat + .stat { border-top: 1px solid var(--line); }
}
.stat b {
  display: block; font-size: 28px; font-weight: 680;
  letter-spacing: -0.025em; line-height: 1.1;
}
.stat span { display: block; font-size: 14px; color: var(--ink-soft); margin-top: 6px; }

/* ── sections ───────────────────────────────────────────────────────── */

section { padding: 88px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }

.section-head { max-width: var(--measure); margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.028em;
  margin: 16px 0 14px; font-weight: 680; line-height: 1.12;
}
.section-head p { color: var(--ink-soft); margin: 0; font-size: 17px; }

/* ── feature cards ──────────────────────────────────────────────────── */

.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .grid { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; background: var(--bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow-md); }
.card .ico {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}
.card h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 640; letter-spacing: -0.01em; }
.card p  { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card code {
  font-family: var(--mono); font-size: 13px;
  background: var(--bg-sunk); padding: 1px 5px; border-radius: 4px;
}

/* ── the dark product panel ─────────────────────────────────────────── */

.panel {
  background: var(--green-900); color: var(--on-dark);
  border-radius: var(--radius-lg); padding: 44px;
  position: relative; overflow: hidden;
}
.panel::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--green-300) 22%, transparent), transparent 66%);
  pointer-events: none;
}
.panel .kind {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--amber); margin: 0 0 10px; font-weight: 620;
}
.panel h3 {
  font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 12px;
  letter-spacing: -0.02em; font-weight: 660; color: #fff;
}
.panel > p { color: var(--on-dark-soft); max-width: var(--measure); margin: 0; }

ul.points {
  margin: 30px 0 0; padding: 0; list-style: none;
  display: grid; gap: 0; position: relative;
}
ul.points li {
  padding: 18px 0 18px 32px; position: relative;
  border-top: 1px solid rgba(255, 255, 255, .10);
  color: var(--on-dark-soft); font-size: 15px;
}
ul.points li::before {
  content: ""; position: absolute; left: 6px; top: 26px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
}
ul.points li strong { color: #fff; font-weight: 620; }

@media (max-width: 620px) { .panel { padding: 28px 22px; } }

/* ── isolation diagram ──────────────────────────────────────────────── */

.diagram {
  margin-top: 40px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--bg-soft);
  padding: 32px; overflow-x: auto;
}
.diagram svg { display: block; min-width: 640px; width: 100%; height: auto; }
.diagram figcaption {
  margin-top: 18px; font-size: 14px; color: var(--ink-faint);
  max-width: var(--measure);
}

/* ── contact + form ─────────────────────────────────────────────────── */

.contact-grid {
  display: grid; gap: 48px;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }

.contact-aside p { color: var(--ink-soft); }
.contact-aside .direct {
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 15px;
}
.contact-aside .direct a { color: var(--accent); font-weight: 560; text-decoration: none; }
.contact-aside .direct a:hover { text-decoration: underline; }
.contact-aside dt {
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-faint); font-weight: 620; margin-top: 16px;
}
.contact-aside dd { margin: 4px 0 0; font-size: 15px; }

form.enquiry {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg); padding: 30px; box-shadow: var(--shadow-md);
}
.row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 13.5px; font-weight: 580; color: var(--ink); }
.field label .opt { font-weight: 440; color: var(--ink-faint); }

.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 11px 13px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #c0392b;
}
.field .err { font-size: 13px; color: #c0392b; min-height: 0; }
.field select {
  appearance: none;
  /* the chevron, as a data URI — an <img> would be a second request */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236d7883' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  padding-right: 36px;
}

/* The honeypot. Not display:none — some bots skip hidden inputs, and screen
   readers are told to ignore it by aria-hidden and tabindex instead. */
.trap {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}

.form-foot {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 4px;
}
.form-foot .fine { font-size: 13px; color: var(--ink-faint); margin: 0; }

.notice {
  border-radius: var(--radius-sm); padding: 13px 15px; font-size: 14.5px;
  margin: 0 0 20px; display: flex; gap: 10px; align-items: flex-start;
}
.notice svg { flex: none; margin-top: 2px; }
.notice-ok {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.notice-bad {
  background: color-mix(in srgb, #c0392b 8%, transparent);
  color: #c0392b;
  border: 1px solid color-mix(in srgb, #c0392b 26%, transparent);
}
.notice[hidden] { display: none; }

/* The whole form is replaced by this on success, so the page does not sit
   there inviting a second submission of the same enquiry. */
.thanks { text-align: center; padding: 20px 10px; }
.thanks .tick {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.thanks h3 { margin: 0 0 8px; font-size: 20px; font-weight: 660; letter-spacing: -0.015em; }
.thanks p { margin: 0 auto; color: var(--ink-soft); max-width: 44ch; font-size: 15px; }

/* ── footer ─────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--line); padding: 44px 0 56px;
  color: var(--ink-faint); font-size: 14px; background: var(--bg-soft);
}
.foot { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.foot a { color: var(--ink-faint); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .spacer { margin-left: auto; }
.foot-brand { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); }
.foot-brand svg { display: block; border-radius: 5px; }

/* ── diagram internals ──────────────────────────────────────────────────
   The SVG lives in the HTML, so its colours are set here rather than as
   presentation attributes: CSS custom properties do not resolve inside a
   fill="" attribute, and hardcoding hexes there would leave the diagram in
   light-mode colours on a dark page. */

.d-cap {
  font: 600 10px/1 var(--font); letter-spacing: .12em;
  fill: var(--ink-faint);
}
.d-name { font: 540 13.5px/1 var(--font); fill: var(--ink); }
.d-key  { font: 11px/1 var(--font); fill: var(--ink-faint); }

.d-host rect { fill: var(--bg); stroke: var(--line); stroke-width: 1.5; }
.d-db   rect { fill: var(--bg); stroke: color-mix(in srgb, var(--accent) 45%, var(--line)); stroke-width: 1.5; }

.d-line path { fill: none; stroke: var(--line); stroke-width: 1.5; }
.d-line-accent path { stroke: color-mix(in srgb, var(--accent) 55%, transparent); }

.d-app { fill: var(--green-900); }
.d-app-title {
  font: 640 15px/1 var(--font); fill: #fff; text-anchor: middle;
  letter-spacing: -.01em;
}
.d-app-sub { font: 12px/1 var(--font); fill: var(--on-dark-soft); text-anchor: middle; }
