@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ink: #06051a;
  --panel: #0d0b26;
  --line: #262150;
  --violet: #6c3ce9;
  --violet-bright: #9b7bff;
  --text: #eeebff;
  --muted: #a7a2c9;
  --mal: #ff6b93;
  --vuln: #f2b84b;

  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ol, ul, dl, dd, pre { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--violet-bright); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--violet); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; z-index: 10; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 34px; height: 34px; flex: none; }
.wordmark { font: 500 1.125rem/1 var(--mono); letter-spacing: -0.02em; }
.wordmark span { color: var(--violet-bright); }
.top nav { display: flex; gap: 28px; margin-left: auto; font-size: 0.9375rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); }

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  font: 600 0.9375rem/1.2 var(--sans);
  text-decoration: none;
  white-space: nowrap;
}
.btn-solid { background: var(--violet); color: #fff; }
.btn-solid:hover { background: #7d51f2; }
.btn-ghost { border-color: #3b3378; color: var(--text); }
.btn-ghost:hover { border-color: var(--violet-bright); }

/* Hero */
.hero { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: min(680px, 86vh);
  padding-block: 56px;
}
h1 {
  font: 700 clamp(2.375rem, 5vw, 3.75rem)/1.05 var(--sans);
  letter-spacing: -0.03em;
  max-width: 13ch;
  text-wrap: balance;
}
.lede { margin-top: 24px; max-width: 46ch; color: var(--muted); font-size: 1.125rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.status { margin-top: 28px; font-size: 0.9375rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vuln); flex: none; }
.globe { aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: end; }
.globe canvas { width: 100%; height: 100%; display: block; }

/* Sections */
.band { padding-block: clamp(56px, 9vw, 104px); border-top: 1px solid var(--line); }
h2 { font: 700 clamp(1.75rem, 3.2vw, 2.5rem)/1.12 var(--sans); letter-spacing: -0.02em; text-wrap: balance; }
h3 { font: 650 1.1875rem/1.3 var(--sans); }
.intro { margin-top: 16px; max-width: 60ch; color: var(--muted); }
.note { margin-top: 16px; max-width: 46ch; font-size: 0.9375rem; color: var(--muted); }

/* The two lists */
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.list { padding: clamp(24px, 3.5vw, 40px); border-top: 3px solid var(--c); border-radius: 10px 0 0 0; }
.list + .list { border-left: 1px solid var(--line); border-radius: 0 10px 0 0; }
.list-mal { --c: var(--mal); }
.list-vuln { --c: var(--vuln); }
.list h3 { font-size: 1.5rem; color: var(--c); }
.list > p { margin-top: 12px; color: var(--muted); max-width: 44ch; }
.list dl { margin-top: 28px; display: grid; gap: 14px; }
.list dt { font-size: 0.875rem; color: var(--muted); }
.list dd { font-weight: 600; }

/* Record specimen */
.record-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.specimen { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tab {
  appearance: none; background: none; border: 0; cursor: pointer;
  padding: 14px 20px; color: var(--muted);
  font: 600 0.9375rem/1 var(--sans);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab-mal[aria-selected="true"] { color: var(--mal); border-bottom-color: var(--mal); }
.tab-vuln[aria-selected="true"] { color: var(--vuln); border-bottom-color: var(--vuln); }
.tab:focus-visible { outline-offset: -3px; }
.specimen pre { padding: 24px 20px; overflow-x: auto; font: 400 0.875rem/1.75 var(--mono); }
.specimen code { font: inherit; }
.k { color: var(--violet-bright); }
.v-mal { color: var(--mal); }
.v-vuln { color: var(--vuln); }

/* Steps: a real sequence, so it is numbered */
.steps { counter-reset: step; margin-top: 44px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: step; border-top: 1px solid #3b3378; padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font: 500 0.9375rem/1 var(--mono); color: var(--violet-bright); margin-bottom: 14px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 0.9688rem; }

/* Tools */
.tools { margin-top: 36px; border-top: 1px solid var(--line); }
.tools li {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto;
  gap: 8px 32px; align-items: baseline;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.tools p { color: var(--muted); max-width: 56ch; }
.tools code {
  grid-column: 2; justify-self: start; max-width: 100%; overflow-x: auto;
  font: 400 0.875rem/1.5 var(--mono); color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px;
}
.planned { grid-column: 3; grid-row: 1; font-size: 0.875rem; color: var(--vuln); }

/* Values */
.values { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 64px; }
.values dt { font-weight: 650; font-size: 1.1875rem; }
.values dd { margin-top: 6px; color: var(--muted); max-width: 46ch; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 40px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.foot p { margin-top: 10px; color: var(--muted); font-size: 0.9375rem; }

@media (max-width: 900px) {
  .top nav { display: none; }
  .top-row .btn { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-block: 48px 0; }
  .globe { width: 100%; max-width: 460px; justify-self: center; margin-bottom: -18%; }
  .hero { overflow: hidden; }
  .record-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .lists { grid-template-columns: 1fr; }
  .list, .list + .list { border-radius: 0; }
  .list:first-child { border-radius: 10px 10px 0 0; }
  .list + .list { border-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .tools li { grid-template-columns: 1fr auto; }
  .tools li p, .tools code { grid-column: 1 / -1; }
  .planned { grid-column: 2; }
  .values { grid-template-columns: 1fr; }
  .wordmark { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
