:root {
  --bg: #0a0710;
  --bg-2: #110c1a;
  --surface: #160f22;
  --surface-2: #1d142d;
  --border: #2c1f44;
  --text: #ece6f7;
  --muted: #9d90b5;
  --purple: #8b5cf6;
  --purple-2: #a78bfa;
  --purple-deep: #5b21b6;
  --green: #4ade80;
  --red: #f87171;
  --radius: 14px;
  --pixel: "Silkscreen", ui-monospace, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(139, 92, 246, .18), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(91, 33, 182, .14), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-2); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
.muted { color: var(--muted); }
.accent { color: var(--purple-2); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(16px, calc((100% - 1120px) / 2));
  background: rgba(10, 7, 16, .75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--pixel); font-size: 18px; }
.nav-brand img { border-radius: 8px; image-rendering: auto; }
.nav-links { display: flex; gap: 22px; font-weight: 500; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* Layout */
main, .footer { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.section { padding: 72px 0; }
.section-head { margin-bottom: 32px; max-width: 640px; }
.section-head h2 { font-family: var(--pixel); font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin-bottom: 10px; }
.section-head h2::before { content: "> "; color: var(--purple); }
.section-head p { color: var(--muted); margin: 0; }
.section-head strong { color: var(--text); }
.eyebrow { font-family: var(--pixel); color: var(--purple-2); font-size: 14px; letter-spacing: .04em; margin: 0 0 12px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  padding: 72px 0 48px;
}
.hero h1 { font-size: clamp(36px, 5.5vw, 60px); font-weight: 700; letter-spacing: -.02em; }
.lede { color: var(--muted); font-size: 18px; max-width: 520px; margin: 20px 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 28px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hero-facts strong { display: block; font-family: var(--pixel); font-size: 26px; color: var(--text); }
.hero-art { position: relative; justify-self: center; width: min(100%, 420px); }
.hero-art img {
  position: relative; border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -20px rgba(139, 92, 246, .45);
}
.hero-glow { position: absolute; inset: 10%; background: var(--purple); filter: blur(80px); opacity: .35; border-radius: 50%; }

/* 2K celebration (temporary) */
.celebrate {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 20px;
  margin-top: 28px; padding: 18px 24px;
  border: 1px solid #e11d48; border-radius: var(--radius);
  background: linear-gradient(110deg, rgba(225, 29, 72, .38), rgba(127, 6, 30, .3) 55%, rgba(20, 2, 6, .7));
  color: var(--text);
  box-shadow: 0 10px 40px -12px rgba(225, 29, 72, .6);
}
.celebrate:hover { color: var(--text); border-color: #fb7185; }
.celebrate > :not(.celebrate-confetti) { position: relative; }
.celebrate-logo { width: 56px; height: 56px; border-radius: 12px; border: 1px solid rgba(251, 113, 133, .5); flex-shrink: 0; }
.celebrate-big { font-family: var(--pixel); font-size: 40px; font-weight: 700; line-height: 1; color: #fff; text-shadow: 3px 3px 0 #9f1239; }
.celebrate-text { flex: 1; color: #f3c4cc; }
.celebrate-text b { display: block; color: var(--text); font-size: 17px; }
.celebrate-cta { font-weight: 600; color: #fda4af; white-space: nowrap; }
.celebrate:hover .celebrate-cta { color: #fff; }
.celebrate-confetti { position: absolute; inset: 0; pointer-events: none; }
.celebrate-confetti i { position: absolute; top: -10px; width: 6px; height: 6px; opacity: .85; animation: confetti-fall linear infinite; }
@keyframes confetti-fall {
  to { transform: translateY(140px) rotate(270deg); opacity: 0; }
}
.celebrate-tag { color: #fff; background: #e11d48; padding: 1px 7px; border-radius: 5px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 8px 24px -8px rgba(139, 92, 246, .7); }
.btn-primary:hover { background: #7c4dee; color: #fff; }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--purple); color: #fff; }

/* Servers */
.servers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.server {
  display: flex; flex-direction: column; gap: 16px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
  transition: border-color .2s, transform .2s;
}
.server:hover { border-color: var(--purple-deep); transform: translateY(-2px); }
.server-top { display: flex; align-items: center; gap: 14px; }
.server-icon { width: 56px; height: 56px; border-radius: 10px; image-rendering: pixelated; background: var(--bg); flex-shrink: 0; }
.server-title { flex: 1; min-width: 0; }
.server-title h3 { font-size: 19px; }
.tag { font-size: 12px; color: var(--purple-2); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.status {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  color: var(--muted); white-space: nowrap; align-self: flex-start;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.online { color: var(--green); }
.status.online::before { background: var(--green); box-shadow: 0 0 0 3px rgba(74, 222, 128, .2); }
.status.offline { color: var(--red); }
.status.offline::before { background: var(--red); }

.ip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 12px 14px; cursor: pointer;
  background: var(--bg); color: var(--text);
  border: 1px dashed var(--purple-deep); border-radius: 10px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; font-weight: 600; text-align: left;
  transition: border-color .15s, background .15s;
}
.ip:hover { border-color: var(--purple-2); background: #0e0918; }
.ip-text { overflow-wrap: anywhere; }
.ip-hint { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--purple-2); flex-shrink: 0; }
.ip.copied .ip-hint { color: var(--green); }

.server-desc { margin: 0; color: var(--text); }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.features li { position: relative; padding-left: 18px; }
.features li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; background: var(--purple); }
.features b { color: var(--text); font-weight: 600; }
.server-meta {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted);
}
.server-meta b { color: var(--text); }
.server-meta a { margin-left: auto; }

/* Mods */
.mods { display: grid; gap: 14px; }
.mod {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px;
}
.mod-icon { width: 72px; height: 72px; border-radius: 12px; background: var(--bg); }
.mod h3 { font-size: 19px; margin-bottom: 6px; }
.mod h3 a { color: var(--text); }
.mod h3 a:hover { color: var(--purple-2); }
.mod p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.mod-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mod-tags span { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(139, 92, 246, .14); color: var(--purple-2); }
.mod-stats { text-align: right; }
.mod-stats b { display: block; font-family: var(--pixel); font-size: 22px; }
.mod-stats span { font-size: 12px; color: var(--muted); }

.mod-feature {
  margin-top: 28px;
  display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, rgba(91, 33, 182, .22), rgba(10, 7, 16, 0) 70%), var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 32px;
}
.mod-feature img { border-radius: 10px; border: 1px solid var(--border); image-rendering: pixelated; }
.mod-feature h3 { font-family: var(--pixel); font-size: 28px; margin-bottom: 12px; }
.mod-feature p { color: var(--muted); max-width: 520px; }
.mod-feature .btn { margin-top: 8px; }
kbd { font-family: var(--pixel); background: var(--bg); border: 1px solid var(--border); border-radius: 5px; padding: 1px 7px; color: var(--text); }

/* Footer */
.footer {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding-top: 40px; padding-bottom: 48px; border-top: 1px solid var(--border); font-size: 14px;
}
.footer img { border-radius: 6px; margin-bottom: 8px; }
.footer p { margin: 0; }
.footer .muted { font-size: 12px; }
.footer-email { font-weight: 600; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--purple); color: #fff; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 10px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 20;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 960px) {
  .servers { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .hero-art { order: -1; width: min(70%, 280px); }
}
@media (max-width: 640px) {
  .nav-links { gap: 14px; font-size: 14px; }
  .nav-brand span { display: none; }
  .section { padding: 56px 0; }
  .mod { grid-template-columns: auto 1fr; }
  .mod-icon { width: 56px; height: 56px; }
  .mod-stats { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .mod-stats b { display: inline; }
  .mod-feature { grid-template-columns: 1fr; padding: 22px; gap: 24px; }
  .mod-feature img { max-width: 220px; margin: 0 auto; }
  .celebrate { flex-wrap: wrap; gap: 12px 16px; padding: 16px; }
  .celebrate-big { font-size: 32px; }
  .celebrate-logo { width: 48px; height: 48px; }
  .celebrate-text { flex-basis: 100%; }
  .celebrate-cta { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .celebrate-confetti { display: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
