:root {
  --bg: #0a0f1a;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.76);
  --panel-strong: #111b31;
  --line: rgba(148, 163, 184, 0.16);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #1418eb;
  --accent-strong: #0f13c8;
  --accent-soft: #5c67ff;
  --accent-warm: #e8d4b5;
  --lime: #a3e635;
  --lime-soft: #bef264;
  --success: #43d17a;
  --warning: #f4c15d;
  --danger: #ff7777;
  --shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(129, 140, 248, 0.12), transparent 32%),
    linear-gradient(180deg, #0a0f1a 0%, #0d1424 45%, #090e18 100%);
  font-family: "Manrope", sans-serif;
}

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

body::before {
  background:
    radial-gradient(circle 400px at 18% 24%, rgba(129, 140, 248, 0.34) 0%, rgba(129, 140, 248, 0.18) 32%, rgba(129, 140, 248, 0.07) 54%, transparent 74%),
    radial-gradient(circle 420px at 84% 70%, rgba(129, 140, 248, 0.24) 0%, rgba(129, 140, 248, 0.1) 38%, transparent 74%);
  filter: blur(10px);
  mix-blend-mode: screen;
  animation: spotlight-drift 18s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

body::after {
  background:
    radial-gradient(circle 540px at 50% 18%, rgba(129, 140, 248, 0.14) 0%, rgba(129, 140, 248, 0.06) 40%, transparent 74%),
    linear-gradient(180deg, rgba(7, 10, 18, 0.02) 0%, rgba(7, 10, 18, 0.22) 100%);
  opacity: 0.82;
}

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

button {
  font: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 92%);
  pointer-events: none;
  z-index: 0;
}

.page-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 260px at 18% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 72%),
    radial-gradient(circle 300px at 78% 66%, rgba(255, 255, 255, 0.055) 0%, transparent 74%);
  mix-blend-mode: screen;
  opacity: 0.85;
  z-index: 0;
  animation: spotlight-shimmer 12s ease-in-out infinite alternate;
}

.page-shell > * {
  position: relative;
  z-index: 1;
}

.topbar,
.hero,
.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lime), var(--lime-soft));
  box-shadow: 0 0 24px rgba(163, 230, 53, 0.6);
  animation: pulse-brand 2.4s ease-in-out infinite;
}

.topnav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--muted);
}

.topnav a[aria-current="page"],
.topnav a:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    background 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out),
    color 220ms var(--ease-out);
}

.button-with-icon {
  gap: 10px;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 1;
  transition: transform 220ms var(--ease-out);
}

.button:hover svg {
  transform: translateX(3px);
}

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

.button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.18) 32%, rgba(255, 255, 255, 0.06) 56%, transparent 72%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition:
    width 320ms var(--ease-out),
    height 320ms var(--ease-out),
    opacity 220ms var(--ease-out);
}

.button:hover::after {
  opacity: 1;
  width: 220px;
  height: 220px;
}

.button-primary {
  color: #f8fbff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 40px rgba(20, 24, 235, 0.3);
}

.button-primary:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #2a2eff, #1418eb);
  box-shadow: 0 20px 46px rgba(20, 24, 235, 0.34);
}

.button-primary:active {
  background: linear-gradient(135deg, var(--accent), #0b0fb3);
}

.button-secondary,
.button-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(15, 23, 42, 0.45);
}

.button-secondary:hover,
.button-ghost:hover {
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(22, 32, 57, 0.82);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.08);
}

.button-secondary:active,
.button-ghost:active {
  background: rgba(11, 17, 31, 0.92);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  padding: 24px 0 72px;
  align-items: center;
}

.hero-copy,
.hero-panel,
.section-head,
.server-card {
  animation: fade-up 700ms var(--ease-out) both;
}

.hero-panel {
  animation-delay: 120ms;
  margin-top: 18px;
}

.server-card:nth-child(1) {
  animation-delay: 80ms;
}

.server-card:nth-child(2) {
  animation-delay: 140ms;
}

.server-card:nth-child(3) {
  animation-delay: 200ms;
}

.server-card:nth-child(4) {
  animation-delay: 260ms;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero h1,
.section-head h2 {
  margin: 18px 0 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.02;
}

.hero h1 {
  font-size: clamp(24px, 3.5vw, 40px);
  max-width: 18ch;
}

.hero-text,
.section-head p,
.server-meta,
.last-updated,
.last-updated-inline {
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.panel,
.server-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel,
.summary-card {
  height: 100%;
}

.panel {
  position: relative;
  padding: 28px;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(232, 212, 181, 0.04) 55%, transparent 72%);
  pointer-events: none;
}

.panel-header,
.card-head,
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-head {
  align-items: flex-start;
  flex-direction: row;
}

.live-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-pill {
  min-height: 28px;
  padding: 0 12px;
  color: var(--lime-soft);
  background: rgba(163, 230, 53, 0.16);
  border: 1px solid rgba(163, 230, 53, 0.22);
}

.status-pill {
  min-height: 32px;
  min-width: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.live-dot,
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.live-dot {
  background: var(--lime);
  box-shadow: 0 0 14px rgba(163, 230, 53, 0.7);
}

.status-dot {
  background: var(--success);
  box-shadow: 0 0 14px rgba(67, 209, 122, 0.75);
}

.summary-grid,
.server-grid {
  display: grid;
  gap: 18px;
}

.summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.summary-item {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-item strong,
.server-title strong,
.metric strong,
.status-note strong {
  display: block;
  font-size: 1.1rem;
}

.summary-item span,
.metric span,
.server-title span,
.status-note span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 54px 0;
}

.hero + .section {
  padding-top: 26px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: none;
}

.section-head h2 {
  font-size: clamp(17px, 2.1vw, 25px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 100%;
}

.server-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.last-updated-inline {
  margin: 18px 0 0;
  text-align: right;
  font-size: 0.95rem;
}

.server-card {
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  transition:
    transform 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}

.server-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.28);
  box-shadow: 0 34px 88px rgba(2, 6, 23, 0.56);
}

.server-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.location-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.server-title strong {
  display: inline-flex;
  align-items: flex-start;
  gap: 2px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
}

.country-name {
  white-space: nowrap;
}

.server-latency {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 500;
  top: -6px;
  position: relative;
}

.status-pill[data-status="online"] .status-dot {
  background: var(--success);
}

.status-pill[data-status="offline"] .status-dot {
  background: var(--danger);
  box-shadow: 0 0 14px rgba(255, 119, 119, 0.75);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric,
.status-note {
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.empty-state {
  padding: 34px;
  text-align: center;
  color: var(--muted);
}

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

.footer-shell {
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid var(--line);
  border-radius: 32px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 0.8fr));
  gap: 24px;
  padding: 32px;
}

.footer-brand p {
  margin: 18px 0 0;
  max-width: 42ch;
  color: var(--muted);
  line-height: 1.7;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column h3 {
  font-size: 16px;
  line-height: 1.2;
}

.footer-column a,
.footer-links a {
  color: var(--muted);
  transition: color 220ms var(--ease-out);
}

.footer-column a:hover,
.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 32px 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@keyframes pulse-brand {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(163, 230, 53, 0.45);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 0 28px rgba(163, 230, 53, 0.78);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spotlight-drift {
  0% {
    transform: translate3d(-10%, -8%, 0) scale(0.94);
    opacity: 0.74;
  }

  50% {
    transform: translate3d(8%, 3%, 0) scale(1.02);
    opacity: 1;
  }

  100% {
    transform: translate3d(12%, 11%, 0) scale(1.08);
    opacity: 0.86;
  }
}

@keyframes spotlight-shimmer {
  0% {
    transform: translate3d(-8%, -6%, 0) scale(0.96);
    opacity: 0.52;
  }

  100% {
    transform: translate3d(10%, 8%, 0) scale(1.08);
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-grid,
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .last-updated-inline {
    text-align: left;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    width: min(100% - 32px, 1180px);
  }
}

@media (max-width: 560px) {
  .topbar,
  .hero,
  .section {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding-top: 28px;
  }

  .hero h1 {
    max-width: none;
  }

  .summary-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

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

  .server-card,
  .panel {
    padding: 20px;
    border-radius: 22px;
  }

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

  .footer-top,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-top {
    gap: 22px;
    padding: 24px 20px;
  }

  .footer-bottom {
    gap: 10px;
    padding: 16px 20px 20px;
  }

  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .footer-shell {
    border-radius: 24px;
  }
}
