@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #0f141c;
  --panel: #151c27;
  --raised: #1b2431;
  --line: #253041;
  --text: #e4e8ee;
  --muted: #8a95a6;
  --faint: #5f6b7d;
  --brand: #7c93ff;
  --ok: #39c98a;
  --warn: #f1b04a;
  --bad: #ef5d50;
  --idle: #3a4556;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid #a9b8ff;
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.nav nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
}
.nav nav a {
  text-decoration: none;
  color: var(--muted);
}
.nav nav a:hover {
  color: var(--text);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.mark {
  display: inline-flex;
  gap: 3px;
}

.l {
  display: inline-block;
  width: 9px;
  height: 12px;
  border-radius: 2.5px;
  background: var(--idle);
}
.l.ok,
.on.ok .l {
  background: var(--ok);
  box-shadow: 0 0 10px 1px color-mix(in oklab, var(--ok) 45%, transparent);
}
.l.warn,
.on.warn .l {
  background: var(--warn);
  box-shadow: 0 0 10px 1px color-mix(in oklab, var(--warn) 45%, transparent);
}
.on.bad .l {
  background: var(--bad);
  box-shadow: 0 0 10px 1px color-mix(in oklab, var(--bad) 45%, transparent);
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--brand);
  color: #0b1230;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: filter 0.15s;
}
.btn:hover {
  filter: brightness(1.1);
}
.btn.small {
  height: 34px;
  padding: 0 14px;
  font-size: 14px;
  color: #0b1230 !important;
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn.ghost:hover {
  border-color: #33415a;
  filter: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
  padding: 56px 0 96px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.032em;
  font-weight: 650;
  max-width: 14ch;
}
.lede {
  margin: 22px 0 32px;
  color: var(--muted);
  font-size: 18px;
  max-width: 46ch;
}
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.rack {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 18px;
}
.rack-head {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--muted);
  padding: 0 2px 14px;
}
.rack-head span:first-child {
  color: var(--text);
  font-weight: 600;
}
.rack-count b {
  color: var(--ok);
  font-variant-numeric: tabular-nums;
}
.rack-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.cell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
  font: 500 11.5px/1 "JetBrains Mono", ui-monospace, monospace;
  color: var(--faint);
  transition: color 0.4s, border-color 0.4s;
}
.cell .l {
  transition: background 0.35s, box-shadow 0.35s;
}
.cell.on {
  color: var(--text);
}
.cell.on.bad {
  border-color: color-mix(in oklab, var(--bad) 35%, var(--line));
}
.cell span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.term {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  overflow: hidden;
}
.term-bar {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font: 500 11.5px/1 "JetBrains Mono", monospace;
  color: var(--faint);
}
.term pre {
  margin: 0;
  padding: 12px 14px 14px;
  font: 400 12.5px/1.65 "JetBrains Mono", ui-monospace, monospace;
  white-space: pre-wrap;
  word-break: break-all;
}
.dim {
  color: var(--faint);
}
.ok-t {
  color: var(--ok);
}

h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-weight: 650;
  margin: 0 0 36px;
  max-width: 22ch;
}

.how {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.steps li {
  border-top: 2px solid var(--line);
  padding-top: 20px;
}
.step-n {
  font: 600 13px/1 "JetBrains Mono", monospace;
  color: var(--brand);
}
.steps h3 {
  margin: 10px 0 8px;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.steps p,
.feature p,
.sec-grid p,
.sec-grid li {
  color: var(--muted);
  margin: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 96px;
}
.feature {
  background: var(--bg);
  padding: 32px;
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.security {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.sec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.sec-grid p {
  font-size: 18px;
  color: var(--text);
  max-width: 42ch;
}
.sec-grid ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
}

.close {
  padding: 80px 0 96px;
  border-top: 1px solid var(--line);
}
.close h2 {
  margin-bottom: 10px;
}
.close p {
  color: var(--muted);
  margin: 0 0 26px;
}

.foot {
  display: flex;
  justify-content: space-between;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--faint);
}
.foot a {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }
  .rack-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .steps,
  .features,
  .sec-grid {
    grid-template-columns: 1fr;
  }
  .nav nav a:not(.btn) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cell,
  .cell .l {
    transition: none;
  }
}
