:root {
  color-scheme: dark;
  --bg: #0b0d0c;
  --panel: #111512;
  --line: #293129;
  --text: #f1f5ef;
  --muted: #9da89e;
  --accent: #a8ff60;
  --accent-dim: rgba(168, 255, 96, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 20%, rgba(109, 176, 75, 0.11), transparent 34rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image:
    repeating-linear-gradient(17deg, transparent 0 3px, #fff 4px, transparent 5px 9px),
    repeating-linear-gradient(103deg, transparent 0 5px, #fff 6px, transparent 7px 13px);
  background-size: 73px 61px, 89px 83px;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--accent-dim);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
  padding: 84px 0 76px;
}

.eyebrow,
.number {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 22px 0 28px;
  font-size: clamp(3.25rem, 7.4vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.067em;
}

.lead {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.primary {
  border-color: var(--accent);
  color: #10150d;
  background: var(--accent);
}

.secondary:hover {
  border-color: #536054;
  background: #151a16;
}

.mesh-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(14, 18, 15, 0.76);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.grid {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, #000, transparent 75%);
}

.node {
  position: absolute;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  background: #111612;
  box-shadow: 0 0 0 12px var(--accent-dim), 0 0 36px rgba(168, 255, 96, 0.12);
  font: 700 0.72rem/1 "SFMono-Regular", Consolas, monospace;
}

.node-a {
  left: 13%;
  top: 18%;
}

.node-b {
  right: 14%;
  top: 37%;
}

.node-c {
  left: 30%;
  bottom: 16%;
}

.signal {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(168, 255, 96, 0.08));
  transform-origin: left center;
}

.signal-a {
  width: 66%;
  left: 21%;
  top: 28%;
  transform: rotate(16deg);
}

.signal-b {
  width: 50%;
  left: 37%;
  bottom: 26%;
  transform: rotate(-27deg);
}

.mesh-label {
  position: absolute;
  right: 22px;
  bottom: 20px;
  display: grid;
  gap: 5px;
  text-align: right;
}

.mesh-label span {
  color: var(--muted);
  font: 0.66rem/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.15em;
}

.mesh-label strong {
  font-size: 0.83rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.features article {
  min-height: 230px;
  padding: 36px 34px;
  border-right: 1px solid var(--line);
}

.features article:last-child {
  border-right: 0;
}

.features h2 {
  margin: 36px 0 12px;
  font-size: 1.15rem;
}

.features p {
  max-width: 30ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #6f786f;
  font-size: 0.75rem;
}

@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 68px;
  }

  .mesh-card {
    min-height: 380px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .features article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .features article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 76px;
  }

  .status {
    max-width: 130px;
    justify-content: flex-end;
    text-align: right;
    font-size: 0.62rem;
  }

  .hero {
    min-height: auto;
    gap: 54px;
    padding: 56px 0;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.7rem);
  }

  .actions,
  .button {
    width: 100%;
  }

  .mesh-card {
    min-height: 340px;
  }

  .node {
    width: 66px;
    height: 66px;
  }

  footer {
    min-height: 150px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
