:root {
  color-scheme: dark;
  --bg: #050506;
  --text: #f5f4f1;
  --muted: #89888f;
  --line: rgba(255, 255, 255, .14);
  --accent: #ff7a4d;
  --online: #b8f28c;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
}

body.home {
  background: transparent;
  overflow-x: hidden;
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

body.home::before,
body.home::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body.home::before {
  z-index: -2;
  background:
    radial-gradient(ellipse 55% 52% at 4% 96%, rgba(255, 86, 40, .32), transparent 62%),
    radial-gradient(ellipse 52% 54% at 98% 2%, rgba(70, 92, 255, .40), transparent 64%),
    radial-gradient(ellipse 64% 58% at 58% 58%, rgba(30, 210, 185, .14), transparent 70%),
    linear-gradient(145deg, #07070b 0%, #050506 52%, #09070c 100%);
  animation: drift 22s ease-in-out infinite alternate;
}

body.home::after {
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 0%, transparent 78%);
  opacity: .45;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 1px solid rgba(255, 255, 255, .7);
  outline-offset: 6px;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: 26px 0;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 560;
  letter-spacing: .02em;
}

.home-brand::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(255, 122, 77, .7);
}

.home-nav nav a {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .02em;
}

.home-nav nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.home-main {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: clamp(80px, 16vh, 190px) 0 80px;
}

.server {
  max-width: 760px;
}

.server-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6d6b70;
}

.dot.is-online {
  background: var(--online);
  box-shadow: 0 0 0 4px rgba(184, 242, 140, .08);
}

.dot.is-offline {
  background: #ff6b5f;
  box-shadow: 0 0 0 4px rgba(255, 107, 95, .08);
}

.server-count {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.075em;
  line-height: .86;
}

.server-count strong {
  font-size: clamp(88px, 15vw, 168px);
  font-weight: 520;
  text-shadow: 0 0 70px rgba(255, 255, 255, .12);
}

.server-sep {
  color: rgba(255, 255, 255, .35);
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -.04em;
}

.server-count > span:last-child {
  color: var(--muted);
  font-size: clamp(30px, 4.4vw, 52px);
  letter-spacing: -.05em;
}

.server-address {
  margin: 27px 0 0;
  color: rgba(245, 244, 241, .74);
  font: 13px/1.5 var(--mono);
  letter-spacing: .035em;
  overflow-wrap: anywhere;
}

.server-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 52px;
  margin-top: 54px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.metric {
  min-width: 110px;
}

.metric-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  color: rgba(245, 244, 241, .92);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 620px) {
  .home-nav,
  .home-main {
    width: calc(100% - 36px);
  }

  .home-nav {
    padding-top: 20px;
  }

  .home-main {
    padding-top: clamp(64px, 18vh, 140px);
    padding-bottom: 56px;
  }

  .server-state {
    margin-bottom: 18px;
  }

  .server-count {
    gap: 8px;
  }

  .server-count strong {
    font-size: clamp(76px, 27vw, 112px);
  }

  .server-sep,
  .server-count > span:last-child {
    font-size: 24px;
  }

  .server-address {
    margin-top: 22px;
    font-size: 12px;
  }

  .server-metrics {
    gap: 22px 30px;
    margin-top: 40px;
  }

  .metric {
    min-width: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home::before {
    animation: none;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}

@keyframes drift {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1.02);
  }
  to {
    transform: translate3d(1.5%, 1%, 0) scale(1.08);
  }
}
