:root {
  --bg: #020617;
  --bg-elevated: rgba(9, 13, 34, 0.96);
  --accent: #22c55e;
  --accent-strong: #4ade80;
  --text-main: #f5f5f5;
  --text-muted: #9ca3af;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.65);
  --shadow-subtle: 0 10px 25px rgba(0, 0, 0, 0.45);
  --transition-med: 0.22s ease-out;

  --ark-blue: #38bdf8;
  --ark-green: #22c55e;
  --ark-gold: #eab308;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);

  background-color: var(--bg);
  background-image: url("/data/nb-bg-main.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;

  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 12px;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: -15%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
      circle at 22% 30%,
      rgba(56, 189, 248, 0.35),
      transparent 58%
    ),
    radial-gradient(circle at 78% 80%, rgba(34, 197, 94, 0.22), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.4;
  filter: blur(16px);
  transform-origin: center;
  animation: nbNebulaDrift 40s ease-in-out infinite alternate;
}

@keyframes nbNebulaDrift {
  0% {
    transform: translate3d(-40px, -20px, 0) scale(1);
    opacity: 0.35;
  }

  50% {
    transform: translate3d(10px, 10px, 0) scale(1.04);
    opacity: 0.5;
  }

  100% {
    transform: translate3d(40px, -30px, 0) scale(1.02);
    opacity: 0.38;
  }
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page {
  width: 100%;
  max-width: 1100px;
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.97),
    rgba(15, 23, 42, 0.92)
  );
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 20px 20px 26px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.page-inner {
  position: relative;
  z-index: 1;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 4px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: auto;
  display: block;
}

.brand-text h1 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.brand-text span {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge-private {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: rgba(21, 128, 61, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.38);
  color: #bbf7d0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
}
.btn-home,
.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(56, 189, 248, 0.85);
  color: #e5e7eb;
  background: radial-gradient(
    circle at 20% 0%,
    rgba(56, 189, 248, 0.4),
    rgba(15, 23, 42, 0.9)
  );
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-med), box-shadow var(--transition-med);
  white-space: nowrap;
}
.btn-home:hover,
.btn-discord:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(56, 189, 248, 0.45);
}

main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: flex-start;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero {
  background: radial-gradient(
      circle at 0% 0%,
      rgba(56, 189, 248, 0.16),
      transparent 60%
    ),
    var(--bg-elevated);
  border-radius: var(--radius-xl);
  padding: 26px 22px 22px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -30%;
  top: -40px;
  height: 120px;
  background: linear-gradient(
    120deg,
    rgba(34, 197, 94, 0.18),
    rgba(56, 189, 248, 0.18),
    rgba(234, 179, 8, 0.16)
  );
  opacity: 0.4;
  transform: skewY(-6deg);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-strong);
  margin-bottom: 6px;
}

.hero-title {
  font-size: 1.7rem;
  margin: 0 0 6px;
  letter-spacing: 0.04em;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  max-width: 36rem;
}

.hero-description {
  font-size: 0.9rem;
  color: #cbd5f5;
  margin-bottom: 14px;
  line-height: 1.55;
  max-width: 40rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.hero-tag {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.95);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.hero-tag--ark {
  border-color: rgba(56, 189, 248, 0.85);
  color: #e0f2fe;
}

.hero-tag--pve {
  border-color: rgba(34, 197, 94, 0.85);
  color: #bbf7d0;
}

.hero-meta-line {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.access-panel {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  padding: 18px 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-subtle);
}

.access-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
}

.access-text {
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: #cbd5f5;
}

.access-note {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a5b4fc;
  margin-bottom: 10px;
}

.list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.84rem;
  color: #cbd5f5;
}

.list li {
  margin-bottom: 4px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-ark-discord,
.btn-ark-donate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.btn-ark-discord {
  border: 1px solid rgba(56, 189, 248, 0.9);
  color: #e5e7eb;
  background: radial-gradient(
    circle at 20% 0%,
    rgba(56, 189, 248, 0.45),
    rgba(15, 23, 42, 0.98)
  );
}

.btn-ark-donate {
  border: 1px solid rgba(234, 179, 8, 0.9);
  color: #fefce8;
  background: radial-gradient(
    circle at 0% 0%,
    rgba(234, 179, 8, 0.45),
    rgba(24, 24, 27, 0.98)
  );
}

.btn-ark-discord:hover,
.btn-ark-donate:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.7);
}

.info-panel {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  padding: 18px 18px 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-subtle);
}

.info-title {
  font-size: 1.02rem;
  margin: 0 0 6px;
}

.info-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  font-size: 0.82rem;
}

.info-item {
  padding: 10px 10px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #020617, #030712);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.info-value {
  font-weight: 600;
}

.info-good {
  color: var(--ark-green);
}

.info-pending {
  color: var(--ark-gold);
}

.mods-panel {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  padding: 18px 18px 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-subtle);
}

.mods-title {
  font-size: 1.02rem;
  margin: 0 0 6px;
}

.mods-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.mods-list {
  list-style: none;
  padding-left: 0;
  margin: 6px 0 0;
  font-size: 0.84rem;
}

.mods-list li {
  margin-bottom: 4px;
}

.mods-list a {
  color: #e0f2fe;
  text-decoration: none;
}

.mods-list a:hover {
  text-decoration: underline;
}

.grid-panel {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  padding: 18px 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-subtle);
}

.grid-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.grid-header h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #e5e7eb;
  margin: 0;
}

.grid-header span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.category-heading {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin: 6px 2px 4px;
}

.server-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.server-card {
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #020617, #030712);
  border: 1px solid rgba(148, 163, 184, 0.5);
  text-decoration: none;
  transition: transform var(--transition-med), box-shadow var(--transition-med);
  color: inherit;
  position: relative;
  overflow: hidden;
}

.server-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at 0 0,
    rgba(56, 189, 248, 0.16),
    transparent 55%
  );
  opacity: 0.5;
  pointer-events: none;
}

.server-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.server-name {
  font-size: 1rem;
  font-weight: 600;
}

.server-tag {
  font-size: 0.75rem;
  color: #a5b4fc;
  text-transform: uppercase;
  margin-top: 1px;
}

.server-desc {
  font-size: 0.84rem;
  margin-top: 6px;
  color: #cbd5f5;
}

.back-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

footer {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 880px) {
  body {
    padding: 18px 10px;
    background-attachment: scroll;
    background-position: center top;
  }

  .page {
    padding: 18px 14px 22px;
    border-radius: 20px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  main {
    grid-template-columns: 1fr;
  }

  .brand-mark {
    width: 70px;
  }
}

@media (max-width: 540px) {
  body {
    padding: 14px 8px;
  }

  header {
    align-items: center;
    text-align: center;
  }

  .brand {
    flex-direction: column;
    align-items: center;
  }

  .brand-text h1 {
    font-size: 1.3rem;
  }

  .brand-text span {
    letter-spacing: 0.14em;
  }

  .header-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .badge-private {
    justify-content: center;
  }

  .btn-discord {
    justify-content: center;
    width: 100%;
  }

  .brand-mark {
    width: 64px;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .hero-subtitle,
  .hero-description {
    font-size: 0.86rem;
  }
}
