:root {
  color-scheme: dark;
  --bg: #080b16;
  --surface: #101426;
  --line: rgba(220, 225, 255, 0.12);
  --line-strong: rgba(220, 225, 255, 0.2);
  --text: #f6f5fb;
  --muted: #a9adc3;
  --violet: #9b7cff;
  --violet-bright: #b7a3ff;
  --yellow: #ffd46a;
  --mint: #75dfc5;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(118, 78, 225, 0.16), transparent 29rem),
    radial-gradient(circle at 4% 46%, rgba(65, 116, 190, 0.1), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header,
main {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  display: block;
  width: 134px;
  height: auto;
}

.service-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 20, 38, 0.68);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 212, 106, 0.12);
}

.service-status.is-online .status-dot {
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(117, 223, 197, 0.12);
}

.service-status.is-offline .status-dot {
  background: #ff7f8d;
  box-shadow: 0 0 0 4px rgba(255, 127, 141, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  min-height: 680px;
  padding-block: 72px 88px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--violet-bright);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 20px;
  height: 1px;
  background: currentColor;
}

h1,
p {
  margin-top: 0;
}

h1 {
  max-width: 730px;
  margin-bottom: 26px;
  font-size: clamp(48px, 6.2vw, 82px);
  font-weight: 670;
  letter-spacing: -0.064em;
  line-height: 0.99;
}

.hero-description {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.65;
}

.brand:focus-visible {
  outline: 3px solid rgba(155, 124, 255, 0.5);
  outline-offset: 3px;
}

.network-card {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 35%),
    rgba(16, 20, 38, 0.88);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.network-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 80%, transparent);
}

.network-header,
.network-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.network-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.panel-label {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-title {
  margin-bottom: 0;
  font-size: 15px;
  font-weight: 680;
}

.live-pill {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-pill {
  border-color: rgba(117, 223, 197, 0.24);
  background: rgba(117, 223, 197, 0.08);
  color: var(--mint);
}

.network-map {
  position: relative;
  z-index: 1;
  height: 340px;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(155, 124, 255, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-one {
  width: 236px;
  height: 236px;
}

.orbit-two {
  width: 330px;
  height: 330px;
  border-style: dashed;
}

.control-node {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: flex;
  width: 136px;
  height: 136px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(183, 163, 255, 0.46);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 24%, #31285d, #16182d 70%);
  box-shadow:
    0 0 0 12px rgba(155, 124, 255, 0.04),
    0 0 48px rgba(155, 124, 255, 0.22);
  transform: translate(-50%, -50%);
}

.control-node strong {
  margin-top: 8px;
  font-size: 12px;
}

.control-node small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.control-icon {
  position: relative;
  display: flex;
  width: 29px;
  height: 29px;
  align-items: end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 6px;
  border-radius: 8px;
  background: var(--yellow);
}

.control-icon i {
  width: 3px;
  border-radius: 2px;
  background: #171629;
}

.control-icon i:nth-child(1) {
  height: 7px;
}

.control-icon i:nth-child(2) {
  height: 13px;
}

.control-icon i:nth-child(3) {
  height: 10px;
}

.instance-node {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #171b30;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.instance-node span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(117, 223, 197, 0.6);
}

.instance-node small {
  color: #d5d7e4;
  font-size: 9px;
  font-weight: 650;
}

.node-one {
  top: 43px;
  left: 48px;
}

.node-two {
  right: 32px;
  bottom: 62px;
}

.node-three {
  bottom: 42px;
  left: 42px;
}

.connector {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 145px;
  height: 1px;
  background: linear-gradient(90deg, var(--violet), transparent);
  transform-origin: left center;
  opacity: 0.42;
}

.connector-one {
  transform: rotate(215deg);
}

.connector-two {
  transform: rotate(31deg);
}

.connector-three {
  transform: rotate(139deg);
}

.network-footer {
  padding: 17px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.network-pulse {
  flex: 1;
  height: 1px;
  margin-inline: 14px;
  background: linear-gradient(90deg, transparent, rgba(117, 223, 197, 0.6), transparent);
}

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

  .network-card {
    width: min(100%, 560px);
  }

}

@media (max-width: 600px) {
  .site-header,
  main {
    width: min(calc(100% - 32px), var(--max-width));
  }

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

  .service-status {
    padding: 8px;
  }

  .service-status span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .hero {
    min-height: auto;
    padding-block: 58px 72px;
  }

  h1 {
    font-size: clamp(43px, 14vw, 64px);
  }

  .network-card {
    min-height: 430px;
  }

  .network-map {
    height: 290px;
    transform: scale(0.84);
  }

  .network-footer {
    padding-inline: 16px;
  }

}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
