/* SPDX-License-Identifier: AGPL-3.0-or-later */
/* Homepage only. */

.hero {
  padding: var(--nm-space-8) 0 var(--nm-space-8);
}
.hero-copy {
  max-width: 44rem;
}
.hero h1 {
  font-size: var(--nm-text-3xl);
  letter-spacing: -0.03em;
}
.hero .lede {
  margin-top: 18px;
  font-size: var(--nm-text-lg);
  max-width: 34em;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--nm-font-mono);
  font-size: var(--nm-text-xs);
  color: var(--nm-text-faint);
}
.hero-facts li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  background: var(--nm-accent);
  vertical-align: 2px;
}
.hero-demo {
  margin-top: var(--nm-space-7);
}
@media (max-width: 640px) {
  .hero {
    padding-top: var(--nm-space-7);
  }
  .hero-demo {
    margin-top: var(--nm-space-6);
  }
}

/* Linked knowledge mocks */
.mock {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 20px;
  min-height: 250px;
}
.mock figcaption {
  margin-top: auto;
  padding-top: 18px;
  color: var(--nm-text-muted);
  font-size: var(--nm-text-sm);
}
.mock figcaption b {
  color: var(--nm-text);
  font-weight: 600;
}
.mock-line {
  font-size: 15px;
}
.m-link {
  color: var(--nm-accent);
  font-family: var(--nm-font-mono);
  font-size: 0.9em;
}
.m-caret {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  vertical-align: -3px;
  background: var(--nm-accent);
  animation: d-blink 1.1s steps(1) infinite;
}
@keyframes d-blink {
  50% {
    opacity: 0;
  }
}
.mock-menu {
  margin: 8px 0 0;
  padding: 4px;
  list-style: none;
  width: min(100%, 270px);
  background: var(--nm-surface);
  border: 1px solid var(--nm-border-strong);
  border-radius: var(--nm-radius-md);
  box-shadow: var(--nm-shadow-md);
  font-size: 13px;
}
.mock-menu li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  border-radius: var(--nm-radius-sm);
}
.mock-menu li.on {
  background: var(--nm-active);
}
.mock-menu .faint {
  font-family: var(--nm-font-mono);
  font-size: 11px;
}
.mock-bl {
  display: grid;
  gap: 6px;
  font-size: 12.5px;
}
.mock-bl-h {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nm-text-muted);
}
.mock-bl .d-count {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--nm-accent-subtle);
  color: var(--nm-accent);
  font: 500 11px/18px var(--nm-font-mono);
  text-align: center;
}
.mock-bl-i {
  display: grid;
  padding: 7px 10px;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius-md);
}
.mock-bl-i b {
  font-weight: 500;
}
.mock-bl-i span {
  color: var(--nm-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-bl-i.dim {
  border-style: dashed;
}
.mock-bl-i.dim b {
  color: var(--nm-text-muted);
  font-weight: 400;
}
.mock-graph {
  width: 100%;
  height: auto;
}
.mock-graph .e line {
  stroke: var(--nm-border-strong);
}
.mock-graph .on line {
  stroke: var(--nm-accent);
  stroke-width: 1.4;
}
.mock-graph circle {
  fill: var(--nm-text-muted);
}
.mock-graph circle.act {
  fill: var(--nm-accent);
}
.mock-graph circle.miss {
  fill: var(--nm-surface);
  stroke: var(--nm-text-faint);
  stroke-dasharray: 2 2;
}

/* Research workflow */
.steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--nm-border);
}
.steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 4px 0;
}
.steps li + li {
  padding-left: 20px;
  border-left: 1px solid var(--nm-border);
}
.steps li::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--nm-bg);
  border: 1px solid var(--nm-text-faint);
}
.steps li + li::before {
  left: -4px;
}
.steps li:first-child::before {
  background: var(--nm-accent);
  border-color: var(--nm-accent);
}
.steps .n {
  font-family: var(--nm-font-mono);
  font-size: var(--nm-text-xs);
  color: var(--nm-text-faint);
}
.steps h3 {
  font-size: var(--nm-text-lg);
}
.steps p {
  color: var(--nm-text-muted);
  font-size: var(--nm-text-sm);
}
.steps code {
  margin-top: auto;
  color: var(--nm-accent);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 1060px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 28px;
  }
  .steps li:nth-child(4) {
    padding-left: 0;
    border-left: 0;
  }
  .steps li:nth-child(4)::before {
    left: 0;
  }
}
@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 1px solid var(--nm-border);
    row-gap: 0;
  }
  .steps li,
  .steps li + li,
  .steps li:nth-child(4) {
    padding: 0 0 26px 22px;
    border-left: 0;
  }
  .steps li::before,
  .steps li + li::before,
  .steps li:nth-child(4)::before {
    top: 6px;
    left: -4px;
  }
}

/* Local diagram */
.local-diagram {
  max-width: 420px;
  width: 100%;
  justify-self: center;
}
.no-cloud {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  font-family: var(--nm-font-mono);
  font-size: var(--nm-text-xs);
  color: var(--nm-text-faint);
}

/* Open source links */
.os-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.os-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius-md);
  background: var(--nm-surface);
  color: var(--nm-text);
  text-decoration: none;
  font-size: var(--nm-text-sm);
  font-weight: 500;
}
.os-links a:hover {
  border-color: var(--nm-border-strong);
}
.os-links svg {
  color: var(--nm-text-muted);
}

/* Platforms row */
.platforms {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.platforms a {
  display: grid;
  gap: 2px;
  padding: 18px;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius-lg);
  background: var(--nm-surface);
  color: var(--nm-text);
  text-decoration: none;
}
.platforms a:hover {
  border-color: var(--nm-border-strong);
}
.platforms svg {
  width: 20px;
  height: 20px;
  margin-bottom: 10px;
  color: var(--nm-text-muted);
}
.platforms b {
  font-weight: 600;
}
.platforms span {
  font-family: var(--nm-font-mono);
  font-size: var(--nm-text-xs);
  color: var(--nm-text-faint);
}
@media (max-width: 860px) {
  .platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.community .card svg {
  width: 18px;
  height: 18px;
  color: var(--nm-text-muted);
}
