:root {
  --bg: #040406;
  --panel: #0c0c10;
  --panel-2: #16161c;
  --border: #1c1c24;
  --border-hover: #2f2f3a;
  --text: #f6f6f8;
  --muted: #8b8b97;
  --muted-2: #63636e;
  --accent: #22c55e;
  --paid: #f5b301;
  --brand: #6d8bff;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.035) 1px, transparent 0);
  background-size: 34px 34px;
}

/* ambient glow behind hero */
body::before {
  content: "";
  position: fixed;
  top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(109,139,255,0.14), transparent 65%);
  pointer-events: none; z-index: 0;
}

a { color: inherit; text-decoration: none; }
main { position: relative; z-index: 1; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(4,4,6,0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 16px 24px;
}
.brand {
  font-weight: 800; font-size: 20px; letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 8px;
}
.brand-logo {
  width: 28px; height: 28px; border-radius: 7px; object-fit: cover;
  box-shadow: 0 0 14px rgba(109,139,255,0.35);
}
.nav-links { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.btn-purchase {
  background: linear-gradient(135deg, #ffffff, #e6e6ee); color: #000;
  font-weight: 600; font-size: 14px;
  padding: 9px 22px; border-radius: 999px;
  transition: transform .15s, box-shadow .15s;
}
.btn-purchase:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(255,255,255,0.14); }

/* ---------- Hero ---------- */
.hero { max-width: 1200px; margin: 0 auto; padding: 110px 24px 100px; text-align: center; position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(30px, 5.2vw, 52px); font-weight: 800; letter-spacing: -1.4px;
  background: linear-gradient(180deg, #ffffff, #b9b9c6);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { color: var(--muted); margin-top: 14px; font-size: 16px; }

/* ---------- Sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 80px 24px; position: relative; z-index: 1; }
.section-title {
  text-align: center; font-size: clamp(26px, 4vw, 38px); font-weight: 800;
  letter-spacing: -0.8px; margin-bottom: 52px;
}

/* ---------- Games grid ---------- */
.games-grid {
  margin-top: 64px;
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  text-align: left;
}
.card {
  background: linear-gradient(180deg, var(--panel), #08080b);
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-5px); border-color: var(--border-hover);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
}
.card-img { aspect-ratio: 16/9; width: 100%; object-fit: cover; background: var(--panel-2); display: block; }
.card-body { padding: 18px 18px 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 18px; font-weight: 700; }
.check { color: var(--accent); font-size: 18px; filter: drop-shadow(0 0 6px rgba(34,197,94,0.5)); }
.card-tags { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.tag {
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  padding: 4px 10px; border-radius: 999px;
}
.tag.paid { color: var(--paid); border: 1px solid rgba(245,179,1,.35); background: rgba(245,179,1,.06); }
.tag.free { color: var(--accent); border: 1px solid rgba(34,197,94,.35); background: rgba(34,197,94,.06); }
.tag.count { color: var(--muted); background: var(--panel-2); }
.card-btn {
  margin-top: 18px; padding: 14px; text-align: center;
  border-top: 1px solid var(--border); color: var(--muted);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: color .15s, background .15s;
}
.card-btn:hover { color: var(--text); background: var(--panel-2); }

/* ---------- Feature cards ---------- */
.features-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.feature-card {
  background: linear-gradient(180deg, var(--panel), #08080b);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: transform .2s, border-color .2s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(109,139,255,0.5), transparent);
  opacity: 0; transition: opacity .25s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-hover); }
.feature-card:hover::before { opacity: 1; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14px; }

/* ---------- Stat ---------- */
.stat-section { text-align: center; padding: 90px 24px; }
.stat-title { font-size: clamp(28px, 4.5vw, 46px); font-weight: 800; letter-spacing: -1px; }
.stat-number {
  background: linear-gradient(135deg, var(--brand), #a78bfa);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-sub { color: var(--muted); margin-top: 12px; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; color: var(--text);
  font-family: inherit; font-size: 16px; font-weight: 600; text-align: left;
  padding: 22px 4px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: color .15s;
}
.faq-q:hover { color: #fff; }
.faq-icon { color: var(--muted); transition: transform .25s; font-size: 14px; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { color: var(--muted); font-size: 15px; padding: 0 4px 22px; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.72); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative; width: 100%; max-width: 460px; max-height: 82vh;
  background: linear-gradient(180deg, var(--panel), #08080b);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: pop .2s ease;
}
@keyframes pop { from { transform: scale(.97); opacity: .6; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 18px; right: 20px;
  background: none; border: none; color: var(--muted);
  font-size: 26px; line-height: 1; cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.modal-title { font-size: 24px; font-weight: 800; }
.modal-count { color: var(--muted); font-size: 13px; margin-top: 4px; }
.modal-body { margin-top: 22px; display: flex; flex-direction: column; gap: 22px; }
.feat-group-title {
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  color: var(--muted); text-transform: uppercase; margin-bottom: 10px;
}
.feat-list { display: flex; flex-direction: column; gap: 8px; }
.feat {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; font-size: 14px;
}

/* ---------- Contact ---------- */
.contact-section { text-align: center; padding-bottom: 100px; }
.contact-discord {
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s, filter .2s;
  filter: drop-shadow(0 10px 30px rgba(88,101,242,0.35));
}
.contact-discord img {
  width: 96px; height: 96px; border-radius: 22px; object-fit: cover;
  border: 1px solid var(--border);
}
.contact-discord:hover { transform: translateY(-4px) scale(1.03); filter: drop-shadow(0 14px 40px rgba(88,101,242,0.55)); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border); padding: 34px 24px; text-align: center;
  color: var(--muted-2); font-size: 13px; position: relative; z-index: 1;
}

/* scrollbar */
.modal::-webkit-scrollbar { width: 8px; }
.modal::-webkit-scrollbar-thumb { background: #2a2a30; border-radius: 8px; }
