:root {
  --bg: #0b0614;
  --bg-2: #140a24;
  --panel: rgba(30, 14, 52, 0.72);
  --panel-border: rgba(168, 85, 247, 0.35);
  --text: #efe7ff;
  --muted: #b9a6d9;
  --violet: #a855f7;
  --violet-2: #7c3aed;
  --magenta: #d946ef;
  --glow: 0 0 24px rgba(168, 85, 247, 0.55);
  --discord: #5865f2;
  --radius: 4px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(124, 58, 237, 0.35), transparent 60%),
    radial-gradient(800px 600px at 100% 60%, rgba(217, 70, 239, 0.12), transparent 60%),
    radial-gradient(800px 600px at 0% 90%, rgba(124, 58, 237, 0.15), transparent 60%),
    var(--bg);
  overflow-x: hidden;
}

body.is-rickrolled { overflow: hidden; }

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(11, 6, 20, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.brand img {
  border-radius: var(--radius);
  image-rendering: pixelated;
  box-shadow: var(--glow);
}

.accent { color: var(--violet); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, .domain-box:focus-visible, .footer-links a:focus-visible, .brand:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
}

.btn-join {
  color: #fff;
  background: linear-gradient(180deg, var(--violet), var(--violet-2));
  border-color: #c084fc;
  box-shadow: var(--glow), inset 0 -4px 0 rgba(0, 0, 0, 0.25);
  animation: pulse 2.4s ease-in-out infinite;
}

.btn-join:hover { box-shadow: 0 0 36px rgba(217, 70, 239, 0.8), inset 0 -4px 0 rgba(0, 0, 0, 0.25); }

.btn-ghost {
  color: var(--text);
  background: var(--panel);
  border-color: var(--panel-border);
}

.btn-ghost .ip { font-family: var(--mono); text-transform: none; letter-spacing: 0; }
.btn-ghost .copy-label { color: var(--muted); font-size: 0.8rem; }
.btn-ghost:hover { border-color: var(--violet); box-shadow: var(--glow); }

.btn-discord {
  color: #fff;
  background: var(--discord);
  border-color: #7983f5;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25);
}

.btn-discord:hover { box-shadow: 0 0 28px rgba(88, 101, 242, 0.7), inset 0 -4px 0 rgba(0, 0, 0, 0.25); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(168, 85, 247, 0.45), inset 0 -4px 0 rgba(0, 0, 0, 0.25); }
  50% { box-shadow: 0 0 34px rgba(217, 70, 239, 0.85), inset 0 -4px 0 rgba(0, 0, 0, 0.25); }
}

/* Layout */
main {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(40px, 8vw, 88px) 0 48px;
}

.hero-art {
  width: min(320px, 70vw);
  aspect-ratio: 1;
  margin-bottom: 28px;
  border: 2px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.45), 0 0 140px rgba(124, 58, 237, 0.25);
  animation: float 6s ease-in-out infinite;
}

.hero-art img { width: 100%; height: 100%; object-fit: cover; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.eyebrow {
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--muted);
}

h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.1;
  font-weight: 900;
}

.glow {
  color: var(--violet);
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.8), 0 0 42px rgba(217, 70, 239, 0.5);
}

.lead {
  max-width: 56ch;
  margin: 20px 0 28px;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.divider {
  height: 2px;
  margin: 24px auto;
  border: 0;
  max-width: 640px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
}

.section { padding: 32px 0; }

h2 {
  margin: 0 0 20px;
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.panel {
  padding: clamp(20px, 4vw, 32px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: inset 0 0 40px rgba(124, 58, 237, 0.12);
}

.panel p { margin: 0 0 12px; font-size: 1.05rem; }
.panel p:last-child { margin-bottom: 0; }

.panel-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.panel-cta p { flex: 1 1 320px; margin: 0; }

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.card {
  padding: 22px 18px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--violet);
  box-shadow: var(--glow);
}

.card-icon { display: block; font-size: 2rem; margin-bottom: 8px; }
.card p { margin: 0; font-weight: 600; }

/* Domain */
.domain { text-align: center; }

.domain-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px clamp(28px, 8vw, 64px);
  color: var(--text);
  background: var(--panel);
  border: 2px solid var(--violet);
  border-radius: var(--radius);
  box-shadow: var(--glow);
  font: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.domain-box:hover { transform: scale(1.03); box-shadow: 0 0 40px rgba(217, 70, 239, 0.7); }

.domain-name {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 7vw, 3rem);
  font-weight: 800;
  text-shadow: 0 0 16px rgba(168, 85, 247, 0.8);
}

.domain-box .copy-label { font-size: 0.85rem; color: var(--muted); }

.slogan { margin: 24px 0 6px; font-size: 1.15rem; font-weight: 600; }
.tagline { margin: 0; font-weight: 800; letter-spacing: 0.12em; color: var(--violet); }

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  padding: 28px 16px 36px;
  text-align: center;
  border-top: 1px solid var(--panel-border);
  background: rgba(11, 6, 20, 0.8);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover { color: var(--violet); text-decoration: underline; }

.copyright { margin: 0; font-size: 0.8rem; color: #8a78aa; }

/* Cookie dialog */
.cookie-dialog {
  max-width: min(460px, calc(100vw - 32px));
  padding: 28px;
  color: var(--text);
  background: var(--bg-2);
  border: 2px solid var(--violet);
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.5);
}

.cookie-dialog::backdrop { background: rgba(5, 2, 10, 0.75); backdrop-filter: blur(4px); }
.cookie-dialog h2 { font-size: 1.3rem; text-transform: none; letter-spacing: 0; }
.cookie-dialog p { color: var(--muted); }
.cookie-dialog form { margin-top: 20px; text-align: right; }

/* Rickroll */
.rickroll {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: #000;
  cursor: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.rickroll[hidden] { display: none; }

.rickroll video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-join, .hero-art { animation: none; }
}
