:root {
  --navy: #0a1220;
  --navy-2: #101c30;
  --charcoal: #2a3340;
  --blue: #1a5cff;
  --blue-deep: #0d3fd0;
  --cyan: #00c8e0;
  --lime: #9acd32;
  --mist: #d7e2ef;
  --line: rgba(0, 200, 224, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--navy);
  color: var(--mist);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

body { overflow-x: hidden; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  isolation: isolate;
}

.visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 50% at 78% 42%, rgba(26, 92, 255, 0.28), transparent 62%),
    radial-gradient(ellipse 45% 40% at 18% 80%, rgba(0, 200, 224, 0.14), transparent 60%),
    radial-gradient(ellipse 35% 30% at 40% 10%, rgba(154, 205, 50, 0.08), transparent 55%),
    linear-gradient(150deg, var(--navy-2) 0%, var(--navy) 48%, #060b14 100%);
}

.owl-gaze {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
}

.owl-gaze .eye {
  position: absolute;
  width: clamp(7rem, 16vw, 12rem);
  height: clamp(7rem, 16vw, 12rem);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 48%, #fff 0 10%, var(--blue) 11% 42%, transparent 43%),
    radial-gradient(circle at 50% 50%, rgba(26, 92, 255, 0.55), transparent 70%);
  filter: blur(0.2px);
  animation: blink 7s ease-in-out infinite;
}

.owl-gaze .eye.l { left: 6%; top: 14%; }
.owl-gaze .eye.r { left: 18%; top: 16%; animation-delay: 0.15s; }

.owl-gaze .brow {
  position: absolute;
  left: 5%;
  top: 10%;
  width: clamp(14rem, 30vw, 22rem);
  height: 1.1rem;
  background: linear-gradient(90deg, transparent, var(--blue-deep) 20%, var(--blue) 50%, transparent);
  clip-path: polygon(0 100%, 12% 0, 88% 0, 100% 100%);
  opacity: 0.45;
}

@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); opacity: 0.22; }
  94% { transform: scaleY(0.08); opacity: 0.08; }
  96% { transform: scaleY(1); opacity: 0.22; }
}

.speed {
  position: absolute;
  left: 0;
  top: 38%;
  width: 42%;
  height: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  padding-left: 4%;
  opacity: 0.55;
}

.speed i {
  display: block;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--blue) 30%, var(--cyan));
  animation: whoosh 2.8s ease-in-out infinite;
}

.speed i:nth-child(1) { width: 55%; animation-delay: 0s; }
.speed i:nth-child(2) { width: 78%; animation-delay: 0.2s; }
.speed i:nth-child(3) { width: 42%; animation-delay: 0.4s; }
.speed i:nth-child(4) { width: 64%; animation-delay: 0.6s; }

@keyframes whoosh {
  0%, 100% { transform: translateX(0); opacity: 0.35; }
  50% { transform: translateX(18px); opacity: 0.9; }
}

.orbit {
  position: absolute;
  right: 8%;
  top: 50%;
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: 0 0 100px rgba(0, 200, 224, 0.12);
  animation: spin 22s linear infinite;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--cyan);
}

.orbit::before { top: 8%; left: 50%; }
.orbit::after { bottom: 10%; right: 18%; background: var(--lime); }

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

.content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.meta {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(215, 226, 239, 0.55);
  margin-bottom: 1.1rem;
}

.meta em {
  font-style: normal;
  color: var(--cyan);
}

h1 {
  font-family: Outfit, sans-serif;
  font-weight: 800;
  font-size: clamp(3.2rem, 9vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: #f4f8fc;
  margin-bottom: 0.85rem;
}

h1 span {
  color: var(--cyan);
}

.content > p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(215, 226, 239, 0.8);
  max-width: 38ch;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.cta a,
.cta button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.95rem 1.3rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.cta a.primary,
.cta button.primary {
  background: var(--lime);
  color: #13200a;
  font-weight: 500;
  border: none;
}

.cta a.primary:hover,
.cta button.primary:hover {
  transform: translateY(-2px);
  background: #b4e04a;
}

.cta a.ghost {
  border-color: rgba(0, 200, 224, 0.45);
  color: var(--cyan);
  background: transparent;
}

.cta a.ghost:hover {
  border-color: var(--cyan);
  background: rgba(0, 200, 224, 0.08);
  transform: translateY(-2px);
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #5a7a28;
  animation: live 1.8s ease-out infinite;
}

.dot.on { background: #1a5cff; }

@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(26, 92, 255, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(26, 92, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 92, 255, 0); }
}

.mark {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(78%, 420px);
  animation: float-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.mark img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 60px rgba(0, 80, 180, 0.35));
  animation: hover 5s ease-in-out infinite;
}

@keyframes hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float-in {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.edges {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid rgba(0, 200, 224, 0.12);
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(26, 92, 255, 0.12), transparent 70%),
    var(--navy);
}

.edges-head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.edges-head h2 {
  font-family: Outfit, sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  color: #f4f8fc;
  margin-bottom: 0.5rem;
}

.edges-head p {
  font-size: 0.85rem;
  color: rgba(215, 226, 239, 0.6);
  line-height: 1.5;
}

.edge-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.edge-list a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.1rem 1rem 1.15rem;
  border-left: 3px solid var(--charcoal);
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.edge-list a:hover {
  transform: translateY(-2px);
  background: rgba(0, 200, 224, 0.06);
  border-left-color: var(--cyan);
}

.edge-list a.online { border-left-color: var(--lime); }
.edge-list a.degraded { border-left-color: #e6b84d; }

.edge-id {
  font-family: Outfit, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  text-transform: uppercase;
  color: #f4f8fc;
  letter-spacing: -0.02em;
}

.edge-name {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: rgba(215, 226, 239, 0.7);
}

.edge-host {
  margin-top: 0.2rem;
  font-size: 0.68rem;
  color: rgba(215, 226, 239, 0.4);
}

.edge-badge {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}

.edge-badge.warn { color: #e6b84d; }
.edge-badge.off { color: #8a94a3; }

.panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(4, 10, 18, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.panel-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.panel {
  position: fixed;
  z-index: 50;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%) scale(0.98);
  width: min(560px, calc(100vw - 2rem));
  max-height: min(80vh, 640px);
  overflow: auto;
  background: linear-gradient(165deg, #122033 0%, #0a1422 100%);
  border: 1px solid rgba(0, 200, 224, 0.28);
  padding: 1.35rem 1.35rem 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.panel-head h2 {
  font-family: Outfit, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: #f4f8fc;
  letter-spacing: -0.02em;
}

.panel-head p {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: rgba(215, 226, 239, 0.55);
}

.panel-close {
  background: transparent;
  border: 1px solid rgba(0, 200, 224, 0.35);
  color: var(--cyan);
  width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.panel-close:hover { background: rgba(0, 200, 224, 0.1); }

.summary {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  color: rgba(215, 226, 239, 0.7);
}

.summary strong { color: var(--lime); font-weight: 500; }

.node-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.node-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--charcoal);
}

.node-list li.online { border-left-color: var(--lime); }
.node-list li.degraded { border-left-color: #e6b84d; }
.node-list li.offline { border-left-color: #6a7380; }

.node-id {
  font-family: Outfit, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  color: #f4f8fc;
  min-width: 2.2rem;
}

.node-meta .name {
  font-size: 0.88rem;
  color: #e8f0f8;
  margin-bottom: 0.2rem;
}

.node-meta .host {
  font-size: 0.7rem;
  color: rgba(215, 226, 239, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge.ok {
  color: var(--lime);
  border-color: rgba(154, 205, 50, 0.4);
  background: rgba(154, 205, 50, 0.08);
}

.badge.warn {
  color: #e6b84d;
  border-color: rgba(230, 184, 77, 0.4);
  background: rgba(230, 184, 77, 0.08);
}

.badge.off {
  color: #8a94a3;
  border-color: rgba(138, 148, 163, 0.35);
}

.latency {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.65rem;
  color: rgba(215, 226, 239, 0.45);
  text-align: right;
}

.panel-loading, .panel-error {
  font-size: 0.85rem;
  color: rgba(215, 226, 239, 0.65);
  padding: 1.5rem 0;
  text-align: center;
}

.panel-error { color: #e6b84d; }

@media (max-width: 900px) {
  .edge-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .mark {
    order: -1;
    width: min(70%, 280px);
    margin-bottom: 0.5rem;
  }

  .owl-gaze .eye.l { left: 58%; top: 8%; width: 5.5rem; height: 5.5rem; }
  .owl-gaze .eye.r { left: 72%; top: 9%; width: 5.5rem; height: 5.5rem; }
  .owl-gaze .brow { left: 56%; top: 5%; width: 12rem; }
  .speed { display: none; }
  .orbit { width: 280px; height: 280px; right: -40px; opacity: 0.5; }
}

@media (max-width: 480px) {
  .edge-list { grid-template-columns: 1fr; }
}

.motto {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-family: Outfit, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}

.lang-switch {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
  max-width: min(92vw, 28rem);
}

.lang-switch a {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(215, 226, 239, 0.55);
  padding: 0.35rem 0.45rem;
  border: 1px solid transparent;
}

.lang-switch a:hover,
.lang-switch a[aria-current="page"] {
  color: var(--cyan);
  border-color: rgba(0, 200, 224, 0.35);
}

.seo-block {
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  border-top: 1px solid rgba(0, 200, 224, 0.12);
  background: #060b14;
}

.seo-block h2 {
  font-family: Outfit, sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: #f4f8fc;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.seo-block p,
.seo-block li {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(215, 226, 239, 0.7);
  max-width: 62ch;
}

.seo-block ul {
  margin: 1rem 0 0 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.site-footer {
  padding: 1.25rem clamp(1.5rem, 4vw, 3.5rem) 2rem;
  font-size: 0.72rem;
  color: rgba(215, 226, 239, 0.45);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 200, 224, 0.08);
}

.site-footer strong { color: rgba(215, 226, 239, 0.75); font-weight: 500; }
