:root {
  --bg:       #09091a;
  --surface:  #11112a;
  --elevated: #1a1a38;
  --border:   rgba(255,255,255,0.08);
  --text:     #f0f0ff;
  --textsub:  #9090b8;
  --textdim:  #5a5a80;
  --gold:     #f5c842;
  --gold-dk:  #c49b1a;
  --purple:   #7c3aed;
  --blue:     #1d4ed8;
  --success:  #22c55e;
  --radius:   16px;
  --radius-sm:10px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: rgba(9,9,26,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

nav ul a {
  color: var(--textsub);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}
nav ul a:hover, nav ul a.active { color: var(--text); text-decoration: none; }

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 100px 24px 80px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.22), transparent);
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 99px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.4);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #c084fc;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 40%, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--textsub);
  max-width: 560px;
  margin: 0 auto 36px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(124,58,237,0.4);
  transition: transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(124,58,237,0.55); text-decoration: none; }

/* ── SECTIONS ── */
section { padding: 80px 24px; }
section:nth-child(even) { background: var(--surface); }

.container { max-width: 980px; margin: 0 auto; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.subtitle {
  color: var(--textsub);
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 48px;
}

/* ── GAME MODES GRID ── */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.mode-card {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform 0.2s, border-color 0.2s;
}
.mode-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.15); }

.mode-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.mode-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.mode-card p  { font-size: 0.88rem; color: var(--textsub); }

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-row h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.feature-row p  { font-size: 0.83rem; color: var(--textsub); }

/* ── LEGAL PAGES ── */
.legal-header {
  padding: 80px 24px 40px;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(124,58,237,0.18), transparent);
  text-align: center;
}
.legal-header h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; margin-bottom: 12px; }
.legal-header p { color: var(--textsub); font-size: 0.95rem; }

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-body h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 40px 0 12px;
  color: var(--text);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 0.95rem; color: var(--textsub); margin-bottom: 12px; }
.legal-body ul { padding-left: 20px; }
.legal-body ul li { margin-bottom: 8px; }
.legal-body a { color: var(--gold); }

.legal-date {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(245,200,66,0.1);
  border: 1px solid rgba(245,200,66,0.25);
  font-size: 0.82rem;
  color: var(--gold);
  margin-bottom: 36px;
}

/* ── FOOTER ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  color: var(--textdim);
  font-size: 0.85rem;
}

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

footer a { color: var(--textsub); }
footer a:hover { color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  nav { padding: 12px 20px; }
  nav ul { gap: 16px; }
  section { padding: 60px 20px; }
}
