:root {
  color-scheme: light;
  --ink: #0a0f1a;
  --muted: #5d6675;
  --line: #dfe5ee;
  --line-strong: #b7c0ce;
  --blue: #145dff;
  --blue-dark: #0f3ed6;
  --green: #18a957;
  --amber: #b77900;
  --red: #da3a2a;
  --panel: #ffffff;
  --soft: #f6f8fb;
  --shadow: 0 24px 60px rgba(10, 15, 26, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(20, 93, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 93, 255, 0.035) 1px, transparent 1px),
    #fff;
  background-size: 48px 48px;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.actions,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border: 3px solid var(--ink);
  border-radius: 7px;
  box-shadow: inset 7px 0 0 var(--blue), inset 0 -7px 0 var(--green);
}

.nav {
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav a:hover,
.footer a:hover {
  color: var(--blue);
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 750;
}

.header-cta {
  justify-self: end;
  padding: 0 18px;
  color: #fff;
  background: var(--blue);
}

.button {
  padding: 0 20px;
  border: 1px solid var(--line-strong);
}

.button.primary {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 12px 26px rgba(20, 93, 255, 0.22);
}

.button.primary:hover,
.header-cta:hover {
  background: var(--blue-dark);
}

.button.secondary {
  background: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
  min-height: calc(100vh - 220px);
  padding: clamp(42px, 6vw, 72px) clamp(20px, 5vw, 64px) clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.hero h1,
.section h2,
.section-band h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.98;
  font-weight: 850;
}

.hero p,
.section-heading p,
.section-band p,
.flow p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero p {
  max-width: 680px;
  margin: 28px 0;
}

.actions {
  flex-wrap: wrap;
  gap: 14px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 36px 0 0;
}

.proof-grid div {
  border-top: 2px solid var(--ink);
  padding-top: 12px;
}

.proof-grid dt {
  font-size: 13px;
  font-weight: 800;
}

.proof-grid dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.cockpit {
  overflow: hidden;
  border: 1px solid #1a2231;
  border-radius: 10px;
  background: #0b0f16;
  color: #eef4ff;
  box-shadow: var(--shadow);
}

.window-bar {
  display: grid;
  grid-template-columns: 12px 12px 12px 1fr;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #b8c3d4;
  font-size: 13px;
}

.window-bar span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.window-bar span:nth-child(1) {
  background: #ff5f57;
}

.window-bar span:nth-child(2) {
  background: #ffbd2e;
}

.window-bar span:nth-child(3) {
  background: #28c840;
}

.window-bar strong {
  justify-self: center;
  padding-right: 60px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 18px;
}

.metrics div {
  min-height: 88px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.metrics b {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 8px;
  color: #99a8bd;
  font-size: 12px;
}

.cockpit table {
  width: calc(100% - 36px);
  margin: 0 18px 18px;
  border-collapse: collapse;
  font-size: 13px;
}

.cockpit th,
.cockpit td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.cockpit th {
  color: #8f9db0;
  font-size: 11px;
  text-transform: uppercase;
}

.status {
  font-weight: 800;
}

.status.hot {
  color: var(--red);
}

.status.done {
  color: var(--green);
}

.status.warn {
  color: #ffbd2e;
}

.status.calm {
  color: #8fb7ff;
}

pre {
  margin: 0;
  overflow-x: auto;
  font: 14px/1.7 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.cockpit pre {
  margin: 0 18px 18px;
  padding: 18px;
  border: 1px solid rgba(24, 169, 87, 0.28);
  border-radius: 8px;
  color: #89ffaa;
  background: #05080c;
}

.section,
.section-band {
  padding: clamp(64px, 8vw, 108px) clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.section-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  background: rgba(246, 248, 251, 0.72);
}

.section h2,
.section-band h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
}

.install pre {
  padding: 22px;
  border-radius: 10px;
  color: #e7edf7;
  background: #101722;
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.matrix {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.matrix th,
.matrix td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.matrix th {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--soft);
}

.matrix tr:last-child td {
  border-bottom: 0;
}

.flow {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.flow ol {
  display: grid;
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.flow li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.flow li strong {
  font-size: 18px;
}

.flow li span {
  color: var(--muted);
  line-height: 1.55;
}

figure {
  margin: 0;
}

.flow img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(10, 15, 26, 0.08);
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.example-grid a {
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.example-grid a:hover {
  border-color: var(--blue);
  box-shadow: 0 18px 38px rgba(20, 93, 255, 0.1);
}

.example-grid strong {
  display: block;
  font-size: 20px;
}

.example-grid span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.contribute {
  grid-template-columns: 1fr auto;
}

.footer {
  gap: 18px;
  justify-content: space-between;
  padding: 34px clamp(20px, 5vw, 64px);
  color: var(--muted);
  font-size: 14px;
}

.footer strong {
  color: var(--ink);
  font-size: 18px;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .section-band,
  .flow,
  .contribute {
    grid-template-columns: 1fr;
  }

  .cockpit {
    max-width: 760px;
  }

  .example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 14px 18px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 54px);
  }

  .cockpit {
    display: none;
  }

  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
  }

  .proof-grid div {
    padding-top: 10px;
  }

  .metrics,
  .example-grid {
    grid-template-columns: 1fr;
  }

  .flow li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cockpit table {
    font-size: 12px;
  }

  .cockpit th:nth-child(3),
  .cockpit td:nth-child(3) {
    display: none;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
