:root {
  color-scheme: dark;
  --bg: #04100b;
  --bg-soft: #071711;
  --panel: rgba(8, 29, 21, 0.78);
  --panel-strong: rgba(7, 24, 18, 0.94);
  --line: rgba(121, 255, 182, 0.16);
  --line-strong: rgba(121, 255, 182, 0.34);
  --green: #70f5a5;
  --green-bright: #a4ffc4;
  --green-dark: #1e8f55;
  --text: #e8fff0;
  --muted: #91ad9b;
  --danger: #ffbf69;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(24, 112, 66, 0.14), transparent 34rem),
    radial-gradient(circle at 80% 5%, rgba(41, 156, 90, 0.10), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(112, 245, 165, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 245, 165, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 76%);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  font: inherit;
}

code {
  padding: .15rem .45rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: rgba(112, 245, 165, .06);
  color: var(--green-bright);
  overflow-wrap: anywhere;
}

#network-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: .38;
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: .025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

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

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  color: var(--green);
  filter: drop-shadow(0 0 16px rgba(112, 245, 165, .28));
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: .14em;
}

.brand strong {
  font-size: .93rem;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .62rem;
}

.nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: .86rem;
}

.nav a {
  transition: color .2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--green-bright);
}

.host-pill {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 290px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 20, 14, .62);
  color: var(--green-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
  white-space: nowrap;
  overflow: hidden;
}

.host-pill > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(112, 245, 165, .08), 0 0 18px var(--green);
  animation: pulse 2.2s ease-in-out infinite;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
  gap: 70px;
  align-items: center;
  min-height: 720px;
  padding: 72px 0 76px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.terminal-copy h2,
.mission-section h2 {
  margin: 0;
  text-wrap: balance;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(3.6rem, 8vw, 7.3rem);
  line-height: .84;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(164, 255, 196, .68);
  text-shadow: 0 0 38px rgba(112, 245, 165, .07);
}

.hero-text {
  max-width: 650px;
  margin: 30px 0 0;
  color: #abc0b2;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.75;
}

.hero-text strong {
  color: var(--green-bright);
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 750;
  letter-spacing: .015em;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

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

.button:focus-visible,
.node:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 4px;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  background: var(--green);
  color: #02150a;
  box-shadow: 0 10px 34px rgba(44, 214, 113, .16);
}

.button-primary:hover {
  background: var(--green-bright);
  box-shadow: 0 14px 40px rgba(44, 214, 113, .24);
}

.button-primary kbd {
  padding: 3px 7px;
  border: 1px solid rgba(0, 30, 12, .28);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: rgba(0, 25, 10, .08);
  font-family: inherit;
  font-size: .7rem;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(112, 245, 165, .055);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary.is-active {
  border-color: rgba(112, 245, 165, .6);
  background: rgba(112, 245, 165, .12);
}

.scan-panel {
  max-width: 560px;
  margin-top: 25px;
  opacity: .9;
}

.scan-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
}

.scan-meta strong {
  color: var(--green-bright);
}

.progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(164, 255, 196, .09);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-dark), var(--green-bright));
  box-shadow: 0 0 18px rgba(112, 245, 165, .45);
  transition: width .18s linear;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.radar {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(112, 245, 165, .12) 0 1px, transparent 2px),
    radial-gradient(circle at center, rgba(44, 214, 113, .08), transparent 58%),
    rgba(4, 20, 13, .72);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .48), 0 35px 90px rgba(0, 0, 0, .36);
}

.radar::before,
.radar::after {
  content: "";
  position: absolute;
  background: var(--line);
}

.radar::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.radar::after {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
}

.radar-grid {
  position: absolute;
  inset: 12%;
  border: 1px solid var(--line);
  border-radius: 50%;
  background-image:
    linear-gradient(rgba(112, 245, 165, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 245, 165, .05) 1px, transparent 1px);
  background-size: 25px 25px;
  mask-image: radial-gradient(circle, black, transparent 72%);
}

.radar-sweep {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 72%, rgba(112, 245, 165, .06) 78%, rgba(112, 245, 165, .34) 99%, transparent 100%);
  animation: sweep 7s linear infinite;
}

.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 { width: 25%; height: 25%; }
.ring-2 { width: 51%; height: 51%; }
.ring-3 { width: 76%; height: 76%; }

.radar-center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 140px;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(4, 18, 12, .87);
  box-shadow: 0 0 0 12px rgba(112, 245, 165, .025), 0 0 50px rgba(112, 245, 165, .08);
  transform: translate(-50%, -50%);
  text-align: center;
}

.radar-center span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .59rem;
  letter-spacing: .17em;
}

.radar-center strong {
  display: block;
  max-width: 105px;
  color: var(--green-bright);
  font-size: .88rem;
  letter-spacing: .08em;
  overflow-wrap: anywhere;
}

.node {
  position: absolute;
  z-index: 4;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid rgba(164, 255, 196, .8);
  border-radius: 50%;
  background: rgba(112, 245, 165, .14);
  box-shadow: 0 0 22px rgba(112, 245, 165, .54);
  cursor: pointer;
}

.node::before {
  content: attr(data-node);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  width: max-content;
  max-width: 150px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(3, 17, 10, .92);
  color: var(--green-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .6rem;
  letter-spacing: .08em;
  opacity: 0;
  transform: translate(-50%, 5px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.node:hover::before,
.node:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.node span {
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: var(--green-bright);
  animation: blink 1.6s ease-in-out infinite;
}

.node-main { top: 26%; left: 61%; width: 23px; height: 23px; }
.node-a { top: 63%; left: 72%; }
.node-b { top: 72%; left: 31%; }
.node-c { top: 29%; left: 24%; }

.visual-caption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .66rem;
  letter-spacing: .11em;
}

.visual-caption strong {
  color: var(--green-bright);
  text-align: right;
  overflow-wrap: anywhere;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 25, 18, .58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.stats article {
  min-width: 0;
  padding: 24px 26px;
}

.stats article + article {
  border-left: 1px solid var(--line);
}

.stats span,
.stats small {
  display: block;
  color: var(--muted);
}

.stats span {
  margin-bottom: 11px;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.stats strong {
  display: block;
  color: var(--green-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1rem, 2vw, 1.38rem);
  overflow-wrap: anywhere;
}

.stats small {
  margin-top: 7px;
  font-size: .7rem;
}

.content-section,
.terminal-section,
.mission-section {
  margin-top: 120px;
}

.section-heading {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  column-gap: 80px;
  align-items: end;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2,
.terminal-copy h2,
.mission-section h2 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: .98;
  letter-spacing: -.05em;
}

.section-heading > p:last-child,
.terminal-copy > p:not(.eyebrow),
.mission-section > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.feature-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(112, 245, 165, .045), transparent 60%),
    rgba(5, 21, 14, .72);
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background-color: rgba(9, 31, 21, .88);
}

.card-index {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
}

.feature-card h3 {
  margin: 74px 0 12px;
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.terminal-section {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: center;
}

.terminal-window {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(2, 13, 8, .91);
  box-shadow: var(--shadow);
}

.terminal-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  min-height: 47px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(112, 245, 165, .035);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .65rem;
}

.terminal-topbar > span:first-of-type {
  justify-self: center;
}

.terminal-topbar > span:last-child {
  justify-self: end;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(164, 255, 196, .22);
}

.terminal-body {
  min-height: 330px;
  max-height: 330px;
  overflow: hidden;
  padding: 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .76rem;
  line-height: 1.72;
}

.terminal-line {
  display: flex;
  gap: 10px;
  color: #a8c3b1;
}

.terminal-line time {
  flex: 0 0 auto;
  color: #4f7960;
}

.terminal-line .ok { color: var(--green); }
.terminal-line .warn { color: var(--danger); }

.terminal-command {
  display: flex;
  gap: 11px;
  min-height: 49px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  color: var(--green-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
}

.terminal-copy .mini-list {
  display: grid;
  gap: 11px;
  margin-top: 32px;
}

.mini-list span {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  color: #bad0c1;
  font-size: .87rem;
}

.mini-list b {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .7rem;
}

.mission-section {
  display: grid;
  grid-template-columns: 1fr .8fr auto;
  gap: 60px;
  align-items: end;
  padding: 50px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(110deg, rgba(112, 245, 165, .065), transparent 55%),
    var(--panel);
  box-shadow: var(--shadow);
}

.mission-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .7rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 80px;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .75rem;
}

footer strong,
footer span {
  display: block;
}

footer strong {
  color: var(--text);
  letter-spacing: .12em;
}

footer p {
  margin: 0;
  text-align: right;
}

.toast {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(4, 20, 13, .95);
  color: var(--green-bright);
  box-shadow: var(--shadow);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes sweep {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: .55; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes blink {
  0%, 100% { opacity: .48; }
  50% { opacity: 1; }
}

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

  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
    width: min(620px, 100%);
    margin-inline: auto;
  }

  .radar {
    margin-inline: auto;
  }

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

  .stats article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stats article:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .section-heading,
  .terminal-section,
  .mission-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 24px;
  }

  .terminal-section,
  .mission-section {
    gap: 38px;
  }

  .terminal-copy {
    order: -1;
  }

  .mission-section {
    align-items: start;
  }

  .mission-status {
    justify-self: start;
  }
}

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

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

  .brand small {
    display: none;
  }

  .host-pill {
    max-width: 145px;
  }

  .hero {
    gap: 45px;
    padding: 58px 0;
  }

  .hero h1 {
    font-size: clamp(3rem, 17vw, 5.4rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

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

  .stats article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .content-section,
  .terminal-section,
  .mission-section {
    margin-top: 82px;
  }

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

  .feature-card {
    min-height: 215px;
  }

  .mission-section {
    padding: 28px;
  }

  footer {
    display: grid;
  }

  footer p {
    text-align: left;
  }

  .visual-caption {
    display: grid;
  }

  .visual-caption strong {
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
