*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0d1117;
  --bg-elevated: #161b22;
  --bg-card: #21262d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #3fb950;
  --accent-dim: #238636;
  --border: #30363d;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('assets/img/mcbgzz.webp') center / cover no-repeat;
  filter: blur(8px);
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

main {
  max-width: 56rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 0 2.5rem;
}

.logo-img {
  display: block;
  max-width: 100%;
  width: min(420px, 90vw);
  height: auto;
  margin: 0 auto;
}

.hero-content {
  max-width: 100%;
}

.server-ip-card {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.version {
  font-size: 0.9rem;
  color: var(--text-muted);
  width: 100%;
}

.ip-address {
  font-family: 'Outfit', ui-monospace, monospace;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0.35rem 0.75rem;
  background: rgba(63, 185, 80, 0.12);
  border-radius: 6px;
}

.copy-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  min-width: 9rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.copy-btn:hover {
  background: var(--accent-dim);
}

.copy-btn:active {
  transform: scale(0.98);
}

.copy-btn.copied .copy-text { display: none; }
.copy-btn .copied-text { display: none; }
.copy-btn.copied .copied-text { display: inline; }

/* Servers */
.servers {
  padding: 2.5rem 0;
}

.servers h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text);
  text-align: center;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .server-grid {
    grid-template-columns: 1fr;
  }
}

.server-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.server-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.server-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Discord CTA */
.discord-cta {
  padding: 2rem 0 3rem;
  text-align: center;
}

.discord-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #5865f2;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  transition: filter 0.2s;
}

.discord-link:hover {
  filter: brightness(1.1);
}

/* Links */
.links {
  padding: 2rem 0 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  transition: border-color 0.2s, background 0.2s;
}

.links a:hover {
  border-color: var(--accent-dim);
  background: var(--bg-elevated);
}

/* Footer */
footer {
  margin-top: auto;
  padding: 1.5rem 1.5rem;
  background: rgba(0, 0, 0, 0.85);
  text-align: center;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-badges a {
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

.footer-badges a:hover {
  opacity: 0.8;
}

.footer-badges img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.badge-stack {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.badge-stack img {
  height: 28px;
  width: auto;
}

.badge-stack--wide img {
  height: 38px;
  width: 120px;
}

footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}
