:root {
  --bg: #050008;
  --panel: rgba(8, 1, 14, .92);
  --panel-soft: rgba(14, 4, 24, .76);
  --border: rgba(213, 87, 255, .46);
  --text: #fbf8ff;
  --muted: #c2b6c9;
  --accent: #d45dff;
  --accent-2: #ff2ca7;
  --success: #21ef86;
  --danger: #ff5c69;
}

* { box-sizing: border-box; }
html { min-height: 100%; overflow-x: hidden; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(115, 24, 177, .23), transparent 34%),
    linear-gradient(145deg, #030006 0%, #090011 54%, #030006 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background: radial-gradient(circle at center, transparent 34%, rgba(0,0,0,.56) 100%);
  pointer-events: none;
}

.page-shell { width: min(1180px, calc(100% - 34px)); margin: 0 auto; }
.ambient { position: fixed; z-index: -2; border-radius: 50%; filter: blur(95px); opacity: .13; pointer-events: none; }
.ambient-one { width: 390px; height: 390px; left: 17%; top: 1%; background: #8d24d0; }
.ambient-two { width: 330px; height: 330px; right: 11%; top: 42%; background: #d71f90; }
.rain { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.drop {
  position: absolute;
  top: -160px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(to bottom, transparent, #f0acff 40%, #7f29bd);
  box-shadow: 0 0 9px rgba(220, 105, 255, .5);
  animation: fall linear infinite;
}
@keyframes fall { to { transform: translate(var(--drift), calc(100vh + 330px)); } }

.hero { padding: 8px 14px 18px; display: flex; flex-direction: column; align-items: center; }
.logo-link { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.hero-logo-mark {
  width: min(270px, 65vw);
  aspect-ratio: 267 / 85;
  display: block;
  background: linear-gradient(
    90deg,
    #ff254f 0%,
    #ff2b8d 25%,
    #ed28c9 50%,
    #b846ff 75%,
    #ff254f 100%
  );
  background-size: 300% 100%;
  -webkit-mask: url("xero-logo.png") center / contain no-repeat;
  mask: url("xero-logo.png") center / contain no-repeat;
  animation: logoColorFlow 8s ease-in-out infinite, logoGlow 3.8s ease-in-out infinite alternate;
}
@keyframes logoColorFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes logoGlow {
  from { filter: drop-shadow(0 0 7px rgba(255,45,120,.42)); }
  to { filter: drop-shadow(0 0 17px rgba(194,72,255,.62)); }
}
.logo-sub { margin-top: -1px; color: #eadcf3; font: 700 14px/1 Space Grotesk, sans-serif; letter-spacing: 10px; text-indent: 10px; }
.top-buttons { margin-top: 13px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.nav-button {
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f7f0fb;
  border: 1px solid transparent;
  border-radius: 9px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: .2s ease;
}
.nav-button i { color: #dd80ff; }
.nav-button:hover { transform: translateY(-2px); border-color: rgba(212,109,255,.26); background: rgba(255,255,255,.05); }

main { padding-bottom: 12px; }
.server-card {
  min-height: 326px;
  display: grid;
  grid-template-columns: 50% 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(12,3,21,.96), rgba(4,0,8,.94));
  box-shadow: 0 24px 72px rgba(0,0,0,.50), 0 0 34px rgba(158,54,205,.08), inset 0 1px 0 rgba(255,255,255,.03);
  backdrop-filter: blur(12px);
}
.server-map-wrap {
  position: relative;
  min-height: 326px;
  overflow: hidden;
  background: #050208;
  border-right: 1px solid rgba(221,91,255,.55);
}
.server-map {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  display: block;
  object-fit: cover;
  object-position: center center;
  animation: mapDrift 23s ease-in-out infinite alternate;
}
@keyframes mapDrift { from { transform: scale(1.015); } to { transform: scale(1.045); } }
.map-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2,0,5,.05) 0%, rgba(2,0,5,.02) 68%, rgba(7,0,12,.50) 100%),
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.24));
}
.server-content { min-width: 0; padding: 28px 34px 28px; display: flex; flex-direction: column; }
.server-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.server-header-row h1 { margin: 0; font: 700 clamp(24px,2.35vw,31px)/1.1 Space Grotesk, sans-serif; letter-spacing: -.025em; text-transform: uppercase; }
.animated-title {
  background: linear-gradient(
    90deg,
    #ff254f 0%,
    #ff2b8d 25%,
    #ed28c9 50%,
    #b846ff 75%,
    #ff254f 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleFlow 8s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255,55,155,.25));
}
@keyframes titleFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.server-description { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.status { margin-top: 5px; display: inline-flex; align-items: center; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.status.is-online { color: var(--success); }
.status.is-offline, .status.is-error { color: var(--danger); }
.status.is-loading { color: #dda4fa; }

.server-stats { margin: 28px 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.stat-block {
  min-width: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  border: 0;
  background: transparent;
  text-align: left;
}
button.stat-block { cursor: pointer; font: inherit; }
.stat-icon-wrap { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; color: #b84cff; font-size: 22px; filter: drop-shadow(0 0 9px rgba(189,70,255,.36)); }
.stat-block > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.eyebrow { color: #ed7ee8; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.stat-block strong { overflow: hidden; color: #fff; font-size: 16px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.stat-block small { color: #96889f; font-size: 11px; }
.address-stat:hover strong, .address-stat.copied strong { color: #e5a0ff; }

.connect-button {
  width: 100%;
  margin-top: auto;
  padding: 15px 20px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: #fff;
  border: 1px solid rgba(225,77,255,.88);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(83,23,104,.42), rgba(255,255,255,.035));
  box-shadow: 0 0 0 3px rgba(182,53,211,.09), 0 0 24px rgba(214,53,255,.20);
  text-decoration: none;
  text-transform: uppercase;
  font: 800 16px/1 Inter, sans-serif;
  transition: .2s ease;
}
.connect-button i { font-size: 22px; }
.connect-button:hover { transform: translateY(-2px); background: linear-gradient(135deg, rgba(139,39,169,.50), rgba(255,42,153,.16)); box-shadow: 0 0 0 4px rgba(187,58,214,.13), 0 0 32px rgba(219,65,255,.34); }

.about-section { padding-top: 24px; }
.section-heading { text-align: center; }
.about-section h2 { margin: 0; font: 700 clamp(30px,3.6vw,40px)/1 Space Grotesk, sans-serif; letter-spacing: -.03em; }
.heading-line { width: 46px; height: 2px; margin: 12px auto 16px; background: linear-gradient(90deg, #b957ff, #ff3ca8); box-shadow: 0 0 10px rgba(220,98,255,.6); }
.info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.info-card {
  position: relative;
  min-height: 188px;
  padding: 22px 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(198,101,245,.24);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(13,4,24,.82), rgba(5,0,11,.76));
  text-align: center;
  transition: .22s ease;
}
.info-glow { position: absolute; width: 130px; height: 130px; top: -88px; left: 50%; transform: translateX(-50%); border-radius: 50%; background: #b42aff; filter: blur(45px); opacity: .10; transition: .22s ease; }
.info-card:hover { transform: translateY(-4px); border-color: rgba(219,121,255,.44); box-shadow: 0 18px 45px rgba(0,0,0,.24); }
.info-card:hover .info-glow { opacity: .20; }
.info-icon { width: 46px; height: 46px; display: grid; place-items: center; color: #dd87ff; font-size: 29px; filter: drop-shadow(0 0 10px rgba(214,117,255,.30)); }
.info-card h3 { margin: 8px 0 0; font: 700 20px/1 Space Grotesk, sans-serif; }
.info-card p { margin: 14px 0 14px; color: #cfc3d5; font-size: 12px; line-height: 1.5; }
.card-link { margin-top: auto; color: #e78aff; text-decoration: none; font-size: 12px; font-weight: 800; }
.card-link span { margin-left: 7px; transition: .18s ease; }
.card-link:hover span { margin-left: 11px; }
footer { padding: 20px 20px 24px; color: #756879; text-align: center; font-size: 11px; }

@media (max-width: 920px) {
  .server-card { grid-template-columns: 1fr; }
  .server-map-wrap { min-height: 255px; border-right: 0; border-bottom: 1px solid rgba(214,101,255,.48); }
  .map-overlay { background: linear-gradient(180deg, rgba(4,0,8,.02), rgba(8,0,14,.42)); }
}
@media (max-width: 700px) {
  .page-shell { width: min(100% - 20px, 1180px); }
  .hero-logo-mark { width: min(235px,72vw); }
  .top-buttons { gap: 5px; }
  .server-content { padding: 24px 20px 22px; }
  .server-header-row { flex-direction: column; gap: 8px; }
  .server-stats { grid-template-columns: 1fr; gap: 14px; margin: 22px 0; }
  .info-grid { grid-template-columns: 1fr; }
  .info-card { min-height: 170px; }
}
@media (max-height: 860px) and (min-width: 921px) {
  .hero { padding-top: 4px; padding-bottom: 14px; }
  .hero-logo-mark { width: 238px; }
  .top-buttons { margin-top: 10px; }
  .server-card, .server-map-wrap { min-height: 300px; }
  .server-content { padding-top: 24px; padding-bottom: 24px; }
  .server-stats { margin: 23px 0 18px; }
  .about-section { padding-top: 20px; }
  .info-card { min-height: 174px; padding-top: 18px; padding-bottom: 15px; }
  .info-card p { margin-top: 11px; margin-bottom: 11px; }
  footer { padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}