:root {
  --bg: #0a0812;
  --bg-2: #120f1f;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f3f0ff;
  --muted: #a49cc2;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --amber: #f5a524;
  --green: #22c55e;
  --grad: linear-gradient(120deg, var(--violet), var(--pink) 55%, var(--amber));
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* ---------- animated background ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: drift 26s ease-in-out infinite alternate;
}
.blob.b1 { background: var(--violet); top: -18vmax; left: -12vmax; }
.blob.b2 { background: var(--pink); top: 20vh; right: -20vmax; animation-duration: 32s; animation-delay: -8s; }
.blob.b3 { background: var(--amber); bottom: -26vmax; left: 25vw; opacity: 0.18; animation-duration: 38s; animation-delay: -16s; }

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(8vmax, 6vmax) scale(1.15); }
  100% { transform: translate(-6vmax, 10vmax) scale(0.95); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}

#particles { position: absolute; inset: 0; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(10, 8, 18, 0.55);
  border-bottom: 1px solid var(--card-border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand img, .brand .logo-fallback { width: 32px; height: 32px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 0.95rem; }
.nav-links a:not(.btn) { transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--text); }

.logo-fallback {
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(.2, .8, .2, 1), box-shadow 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-primary {
  background: var(--grad);
  background-size: 200% 100%;
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(236, 72, 153, 0.7);
  animation: gradient-shift 6s ease infinite;
}
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(236, 72, 153, 0.9); }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 3.6s ease-in-out infinite;
}
.btn-ghost { background: var(--card); border: 1px solid var(--card-border); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; }

@keyframes shine {
  0%, 55% { transform: translateX(-120%); }
  100%    { transform: translateX(120%); }
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ---------- hero ---------- */

.hero { padding: 96px 0 72px; text-align: center; }

.avatar-wrap {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 0 auto 36px;
  animation: float 6s ease-in-out infinite;
}
.avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--violet), var(--pink), var(--amber), var(--violet));
  animation: spin 6s linear infinite;
  filter: blur(1px);
}
.avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.45), transparent 65%);
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}
.avatar-wrap img, .avatar-wrap .logo-fallback {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid var(--bg);
  object-fit: cover;
  font-size: 3.6rem;
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.6; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.05); } }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  margin-bottom: 26px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 0.92rem;
}
.status-pill strong { color: var(--text); font-variant-numeric: tabular-nums; }
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: ping 2s infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  80%  { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

h1 {
  font-size: clamp(3rem, 9vw, 6.2rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 22px;
}
.grad-text {
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 8s ease infinite;
}
.lead { max-width: 620px; margin: 0 auto 38px; color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.22rem); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* staggered intro */
.intro > * { opacity: 0; transform: translateY(24px); animation: rise 0.9s cubic-bezier(.2, .8, .2, 1) forwards; }
.intro > *:nth-child(1) { animation-delay: 0.05s; }
.intro > *:nth-child(2) { animation-delay: 0.18s; }
.intro > *:nth-child(3) { animation-delay: 0.3s; }
.intro > *:nth-child(4) { animation-delay: 0.42s; }
.intro > *:nth-child(5) { animation-delay: 0.54s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- marquee ---------- */

.marquee {
  margin-top: 72px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 12px; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.chip {
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--card-border);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.88rem;
  color: var(--muted);
  white-space: nowrap;
}
.chip b { color: var(--pink); font-weight: 500; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */

section { padding: 88px 0; }
.section-head { text-align: center; margin-bottom: 52px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
}
h2 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.section-head p { max-width: 560px; margin: 14px auto 0; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }

.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), border-color 0.35s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(236, 72, 153, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(236, 72, 153, 0.35); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.4s cubic-bezier(.2, .8, .2, 1);
}
.card:hover .icon { transform: rotate(-8deg) scale(1.1); }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* featured card spans the whole grid */
.card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 36px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(236, 72, 153, 0.08) 60%, rgba(255, 255, 255, 0.03));
  border-color: rgba(236, 72, 153, 0.28);
}
.card.featured h3 { font-size: 1.6rem; }
.card.featured p { font-size: 1.02rem; }
.badge {
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--grad);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: pulse 3s ease-in-out infinite;
}
.card.featured > div:first-child { position: relative; }
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li {
  position: relative;
  padding: 12px 16px 12px 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: 0.95rem;
  transition: transform 0.3s cubic-bezier(.2, .8, .2, 1), border-color 0.3s;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4 4 9-9'/%3E%3C/svg%3E") center / 13px no-repeat, var(--grad);
}
.checklist li:hover { transform: translateX(6px); border-color: rgba(236, 72, 153, 0.35); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius); border: 1px dashed rgba(255, 255, 255, 0.14); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--grad);
  font-weight: 800;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.96rem; }
code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.88em;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

/* CTA */
.cta {
  position: relative;
  padding: 64px 32px;
  border-radius: 28px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(236, 72, 153, 0.16) 60%, rgba(245, 165, 36, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cta h2 { margin-bottom: 14px; }
.cta p { color: var(--muted); margin-bottom: 30px; }
.cta .big-count { font-size: clamp(3rem, 10vw, 5rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin-bottom: 6px; font-variant-numeric: tabular-nums; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s cubic-bezier(.2, .8, .2, 1), transform 0.8s cubic-bezier(.2, .8, .2, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- footer ---------- */

footer { padding: 40px 0 56px; border-top: 1px solid var(--card-border); color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

/* ---------- legal pages ---------- */

.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 44px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; letter-spacing: -0.01em; }
.legal p, .legal li { color: #cfc8e6; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin-top: 10px; display: grid; gap: 6px; }
.legal a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }

/* custom line icons (no emojis): stroked with the brand gradient defined once in the page */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: url(#icon-grad); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.18em; }

/* ---------- community / support server widget ---------- */

.community { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.community-text h2 { margin: 6px 0 14px; }
.community-text > p { color: var(--muted); margin-bottom: 26px; max-width: 480px; }

.dc-widget {
  position: relative; overflow: hidden; border-radius: 24px; padding: 0 24px 24px;
  background: var(--bg-2); border: 1px solid var(--card-border);
  box-shadow: 0 30px 80px -30px rgba(236, 72, 153, 0.35);
}
.dc-banner { height: 84px; margin: 0 -24px; background: var(--grad); }
/* own layer so the icon is drawn on top of the banner */
.dc-head { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 16px; margin-top: -36px; }
.dc-icon, .dc-head img.dc-icon {
  width: 80px; height: 80px; border-radius: 24px; flex: none; object-fit: cover;
  border: 5px solid var(--bg-2); font-size: 2rem;
}
.dc-title { min-width: 0; padding-top: 44px; }
.dc-title h3 { font-size: 1.2rem; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-title p { color: var(--muted); font-size: 0.9rem; }

.dc-stats { display: flex; gap: 20px; margin: 18px 0 4px; color: var(--muted); font-size: 0.92rem; }
.dc-stats strong { color: var(--text); font-variant-numeric: tabular-nums; margin-right: 4px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.dot.online { background: var(--green); box-shadow: 0 0 10px var(--green); }
.dot.members { background: var(--muted); }

.dc-block { margin-top: 18px; }
.dc-block[hidden] { display: none; }
.dc-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.dc-users, .dc-voice { list-style: none; display: grid; gap: 8px; }
.dc-users li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dc-avatar { position: relative; flex: none; width: 34px; height: 34px; }
.dc-avatar img { width: 100%; height: 100%; border-radius: 50%; display: block; background: var(--card); }
.dc-avatar .status {
  position: absolute; right: -2px; bottom: -2px; width: 13px; height: 13px; border-radius: 50%;
  border: 3px solid var(--bg-2); background: var(--muted);
}
.status.online { background: var(--green); }
.status.idle { background: var(--amber); }
.status.dnd { background: #ef4444; }
.dc-user-name { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-user-game { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.dc-voice li {
  padding: 8px 12px; border-radius: 10px; background: var(--card); color: #cfc8e6; font-size: 0.92rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dc-more { color: var(--muted); font-size: 0.85rem; }
.dc-join { width: 100%; justify-content: center; margin-top: 22px; }

@media (max-width: 860px) {
  .community { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- responsive / motion ---------- */

@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 64px 0 48px; }
  section { padding: 64px 0; }
  .cta { padding: 48px 20px; }
  .card.featured { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .intro > *, .reveal { opacity: 1; transform: none; }
}
