@font-face {
  font-family: Inter;
  src: url("../fonts/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Tokens follow the shadcn/ui naming and scale, in plain CSS. */
:root {
  --background: #fff;
  --foreground: #09090b;        /* zinc-950 */
  --muted: #f4f4f5;             /* zinc-100 */
  --muted-foreground: #52525b;  /* zinc-600; zinc-500 fails AA on the zinc-100 panels */
  --border: #e4e4e7;            /* zinc-200 */
  --input: #e4e4e7;
  --primary: #18181b;           /* zinc-900 */
  --primary-foreground: #fafafa;
  --accent: #18181b;
  --accent-soft: #f4f4f5;
  --accent-line: #e4e4e7;

  /* A little colour, only on small marks and status chips. The light-background
     mint is darkened to clear the 3:1 bar for meaningful graphics. */
  --brand: #3f8d76;
  --brand-tint: rgba(118, 194, 174, 0.16);
  --brand-edge: rgba(118, 194, 174, 0.5);
  --brand-on-dark: #76c2ae;
  --warn-on-dark: #ffc46b;
  --danger-on-dark: #ff8080;

  /* Store-health bands: under 50 bad, 50-59 warn, 60-79 mid, 80+ good.
     Dark enough to clear 4.5:1 on white, since the scores are text. */
  --sev-bad: #b91c1c;
  --sev-warn: #c2410c;
  --sev-mid: #a16207;
  --sev-good: #2f7a63;

  --d-background: #09090b;
  --d-panel: #09090b;
  --d-card: #18181b;
  --d-border: #27272a;          /* zinc-800 */
  --d-foreground: #fafafa;
  --d-muted-foreground: #a1a1aa;/* zinc-400 */

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;

  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.ico {
  width: 20px;
  height: 20px;
  flex: none;
}

.skip { position: absolute; left: -9999px; }

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 60;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 10px 16px;
  border-radius: var(--radius);
}

/* ---------- Button ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding-inline: 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn--primary:hover { background: #27272a; }

.btn--outline {
  background: var(--background);
  border-color: var(--input);
  color: var(--foreground);
}

.btn--outline:hover { background: var(--muted); }

.btn--lg {
  height: 42px;
  padding-inline: 20px;
  font-size: 15px;
}

/* ---------- Wordmark ---------- */

.wordmark {
  display: block;
  width: 112px;
  aspect-ratio: 285 / 43;
  background: currentColor;
  -webkit-mask: url("../img/logo-mask.svg") no-repeat center / contain;
  mask: url("../img/logo-mask.svg") no-repeat center / contain;
}

.wordmark--sm { width: 86px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__in {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  height: 64px;
}

.nav__brand { display: block; color: var(--foreground); flex: none; }

.nav__links {
  display: none;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}

.nav__links a {
  text-decoration: none;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}

.nav__links a:hover { color: var(--foreground); }
.nav__cta { margin-left: auto; }

.nav__toggle {
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--input);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav__toggle:hover { background: var(--muted); }
.nav__toggle .ico--close { display: none; }
.nav__toggle[aria-expanded="true"] .ico--open { display: none; }
.nav__toggle[aria-expanded="true"] .ico--close { display: inline; }

.nav__menu {
  border-top: 1px solid var(--border);
  background: var(--background);
  padding-block: 8px 12px;
}

.nav__menu[hidden] { display: none; }

.nav__menu .wrap { display: grid; }

.nav__menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}

.nav__menu a:last-child { border-bottom: 0; }

@media (min-width: 860px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .nav__menu { display: none !important; }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(44px, 6vw, 88px) clamp(48px, 7vw, 96px);
  background: var(--background);
}

.hero__in {
  position: relative;
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 1000px) {
  .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding-inline: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 24px;
}

.badge b { color: var(--foreground); font-weight: 600; }

.hl {
  white-space: nowrap;
  background: #e4e4e7;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 0.1em 0.03em;
  border-radius: var(--radius-sm);
}

.hero h1 {
  font-size: clamp(2.375rem, 4.6vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.042em;
  max-width: 17ch;
}

.lede {
  margin-top: 20px;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  color: var(--muted-foreground);
  max-width: 52ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

/* ---------- Product mock ---------- */

.mock {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--background);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--muted);
}

.mock__dots { display: flex; gap: 5px; flex: none; }

.mock__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--input);
}

.mock__url {
  flex: 1;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock__url em { font-style: normal; color: var(--input); padding-inline: 4px; }

.mock__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 20px 14px;
}

.mock__title { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
.mock__head p { font-size: 13px; color: var(--muted-foreground); margin-top: 3px; }

.mock__score { text-align: right; flex: none; }

.mock__score strong {
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.mock__score span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.mock__rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 28px;
  align-items: center;
  gap: 16px;
  padding: 13px 20px;
  border-top: 1px solid var(--border);
}

.mock__rows strong { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.mock__rows p { font-size: 12px; color: var(--muted-foreground); margin-top: 1px; }

.meter {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
}

.meter i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

.mock__rows b {
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.is-bad .meter i { background: var(--sev-bad); }
.is-warn .meter i { background: var(--sev-warn); }
.is-mid .meter i { background: var(--sev-mid); }
.is-good .meter i { background: var(--sev-good); }

.mock__rows .is-bad b { color: var(--sev-bad); }
.mock__rows .is-warn b { color: var(--sev-warn); }
.mock__rows .is-mid b { color: var(--sev-mid); }
.mock__rows .is-good b { color: var(--sev-good); }

.mock__score.is-bad strong { color: var(--sev-bad); }
.mock__score.is-warn strong { color: var(--sev-warn); }
.mock__score.is-mid strong { color: var(--sev-mid); }
.mock__score.is-good strong { color: var(--sev-good); }

.mock__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 13px 20px;
  border-top: 1px solid var(--border);
  background: var(--muted);
  font-size: 13px;
  color: var(--muted-foreground);
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--foreground);
  background: var(--brand-tint);
  border: 1px solid var(--brand-edge);
  border-radius: 999px;
  padding: 2px 9px;
}

@media (max-width: 560px) {
  .mock__rows li {
    grid-template-columns: minmax(0, 1fr) 56px 26px;
    gap: 10px;
    padding-inline: 16px;
  }
  .mock__head, .mock__foot { padding-inline: 16px; }
}

/* ---------- Clients ---------- */

.clients {
  background: var(--muted);
  border-block: 1px solid var(--border);
  padding-block: clamp(26px, 3.4vw, 38px);
}

.clients__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: clamp(18px, 2.4vw, 26px);
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 30px) clamp(16px, 3vw, 36px);
  align-items: center;
  justify-items: center;
}

@media (min-width: 560px) {
  .clients__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .clients__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.clients__grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

/* Ten brands sit together in grey; the real colours come back on hover.
   grayscale keeps each mark's internal light and shade, which a flat
   silhouette would have destroyed. */
.clients__grid img {
  /* --cap lets a logo be trimmed optically: a heavy mark needs to sit
     smaller than a light wordmark to look the same size. */
  max-width: min(100%, 136px);
  max-height: var(--cap, 32px);
  width: auto;
  height: auto;
  /* brightness evens out the pale brands, which plain grayscale leaves washed out */
  filter: grayscale(1) brightness(0.72);
  opacity: 0.88;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

@media (hover: hover) {
  /* on the li, so the one logo without a link lights up too */
  .clients__grid li:hover img { filter: none; opacity: 1; }
}

.clients__grid a:focus-visible img { filter: none; opacity: 1; }

/* ---------- Tech chips ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chips li {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-foreground);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---------- Services ---------- */

.work { padding-block: clamp(56px, 8vw, 104px); }

.work__head {
  display: grid;
  gap: 16px 60px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

@media (min-width: 900px) {
  .work__head {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: end;
  }
}

.work__head h2,
.deep h2,
.close h2 {
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.038em;
  text-wrap: balance;
  max-width: 18ch;
}

.work__head p { color: var(--muted-foreground); max-width: 42ch; }

/* Columns divided by hairlines rather than boxed cards. */
.svc { display: grid; gap: 0; }

.svc > li { padding-block: 26px; border-top: 1px solid var(--border); }
.svc > li:first-child { border-top: 0; padding-top: 0; }

.svc .ico { color: var(--brand); margin-bottom: 18px; }

.svc h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.svc > li > p {
  color: var(--muted-foreground);
  font-size: 14px;
  max-width: 46ch;
}

@media (min-width: 640px) {
  .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc > li { padding: 26px 24px; border-left: 1px solid var(--border); }
  .svc > li:nth-child(-n + 2) { border-top: 0; padding-top: 0; }
  .svc > li:nth-child(odd) { border-left: 0; padding-left: 0; }
}

@media (min-width: 1100px) {
  .svc { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .svc > li { border-top: 0; padding-top: 0; }
  .svc > li:nth-child(odd) { border-left: 1px solid var(--border); padding-left: 24px; }
  .svc > li:first-child { border-left: 0; padding-left: 0; }
}

.ticks {
  margin-top: 18px;
  display: grid;
  gap: 7px;
  font-size: 13px;
}

.ticks li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--muted-foreground);
}

.ticks li::before {
  content: "";
  width: 16px;
  height: 20px;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 13px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 13px;
}

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

.deep {
  position: relative;
  overflow: hidden;
  background: var(--d-background);
  color: var(--d-foreground);
  padding-block: clamp(56px, 8vw, 104px);
}

.deep__in {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
}

@media (min-width: 1000px) {
  .deep__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-on-dark);
  margin-bottom: 16px;
}

.deep__lede { margin-top: 18px; color: var(--d-muted-foreground); max-width: 42ch; }

.steps { display: grid; margin-top: clamp(28px, 4vw, 40px); }

.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 24px;
}

.steps li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 46px;
  bottom: 2px;
  width: 1px;
  background: var(--d-border);
}

.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::before { display: none; }

.step__ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--d-border);
  border-radius: var(--radius);
  background: var(--d-card);
  color: var(--brand-on-dark);
}

.step__ico .ico { width: 18px; height: 18px; }

.step__n {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--d-muted-foreground);
}

.steps h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 2px 0 6px;
}

.steps div > p:last-child {
  font-size: 14px;
  color: var(--d-muted-foreground);
  max-width: 46ch;
}

/* ---------- Monitoring log mock ---------- */

.log {
  border: 1px solid var(--d-border);
  border-radius: var(--radius-lg);
  background: var(--d-panel);
  overflow: hidden;
}

.log__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--d-border);
  background: var(--d-card);
}

.log__dots { display: flex; gap: 5px; flex: none; }
.log__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--d-border); }

.log__file {
  flex: 1;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--d-muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log__state {
  flex: none;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--brand-on-dark);
  border: 1px solid var(--brand-edge);
  border-radius: 999px;
  padding: 3px 9px;
}

.log__lines li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--d-border);
  font-size: 14px;
}

.log__lines li:first-child { border-top: 0; }

.log__lines i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  line-height: 1;
}

.log__lines .ok i { background: rgba(118, 194, 174, 0.16); color: var(--brand-on-dark); }
.log__lines .ok i::before { content: "\2713"; }

.log__lines .warn i { background: rgba(255, 196, 107, 0.16); color: var(--warn-on-dark); }
.log__lines .warn i::before { content: "!"; font-weight: 700; }
.log__lines .warn b { color: var(--warn-on-dark); }

.log__lines .bad i { background: rgba(255, 128, 128, 0.16); color: var(--danger-on-dark); }
.log__lines .bad i::before { content: "\00d7"; font-size: 11px; }
.log__lines .bad b { color: var(--danger-on-dark); }

.log__lines span {
  color: #e4e4e7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log__lines b {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--d-muted-foreground);
}

.log__foot {
  padding: 16px;
  border-top: 1px solid var(--d-border);
  background: var(--d-card);
}

.spark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 44px;
  margin-bottom: 12px;
}

.spark i {
  flex: 1;
  min-width: 0;
  background: #a1a1aa;
  opacity: 0.55;
  border-radius: 2px;
}

.spark i.bad { background: var(--danger-on-dark); opacity: 1; }

.log__foot p { font-size: 13px; color: var(--d-muted-foreground); }

/* ---------- Closing ---------- */

.close {
  padding-block: clamp(56px, 8vw, 104px);
  border-bottom: 1px solid var(--border);
}

.close__in { display: grid; justify-items: start; gap: 16px; }
.close p { color: var(--muted-foreground); max-width: 50ch; }
.close .btn { margin-top: 12px; }

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

.foot { padding-block: 24px 32px; }

.foot__in {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 13px;
  color: var(--muted-foreground);
}

.foot .wordmark { color: var(--foreground); }
.foot a { text-decoration: none; border-bottom: 1px solid var(--input); }
.foot a:hover { color: var(--foreground); }

.foot__link {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--input);
  padding: 0;
  cursor: pointer;
}

.foot__link:hover { color: var(--foreground); }

/* ---------- Cookie consent ---------- */

.consent {
  position: fixed;
  z-index: 70;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 420px;
  padding: 18px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  color: var(--muted-foreground);
}

.consent[hidden] { display: none; }

.consent strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
}

.consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

@media (min-width: 640px) {
  .consent { left: 24px; right: auto; bottom: 24px; }
}
