@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500&display=swap');

:root {
  --ink:  #07080E;
  --ink2: #0C0E1A;
  --ink3: #111422;
  --ink4: #17192B;
  --fog:  rgba(255,255,255,0.05);
  --fog2: rgba(255,255,255,0.03);
  --line: rgba(237,240,255,0.08);
  --line-mid: rgba(237,240,255,0.15);

  --text:  #EDF0FF;
  --muted: rgba(237,240,255,0.50);
  --dim:   rgba(237,240,255,0.22);

  --red:      #E31D24;
  --red-glow: rgba(227,29,36,0.22);
  --blue:      #1B40A6;
  --blue-glow: rgba(27,64,166,0.22);
  --white: #ffffff;

  --grad:     linear-gradient(135deg, #E31D24 0%, #1B40A6 100%);
  --grad-rev: linear-gradient(135deg, #1B40A6 0%, #E31D24 100%);

  --hrp:          #f59e0b;
  --hrp-glow:     rgba(245,158,11,0.15);
  --illegal:      #E31D24;
  --illegal-glow: rgba(227,29,36,0.15);
  --police:       #1B40A6;
  --police-glow:  rgba(27,64,166,0.15);
  --samu:         #16a34a;
  --samu-glow:    rgba(22,163,74,0.15);

  --radius: 4px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9997;
  opacity: 0.4;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(7,8,14,0.9);
  backdrop-filter: blur(28px) saturate(180%);
}

nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--red) 0%, rgba(237,240,255,0.1) 45%, rgba(237,240,255,0.1) 55%, var(--blue) 100%);
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* ── PLAYER COUNT ── */
.nav-players {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}
.nav-players-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,0.7);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(34,197,94,0.7); }
  50%       { opacity: 0.6; box-shadow: 0 0 12px rgba(34,197,94,0.5); }
}

.nav-join {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad) !important;
  color: #fff !important;
  padding: 8px 22px;
  border-radius: var(--radius);
  font-weight: 500 !important;
  transition: opacity var(--transition) !important;
}
.nav-join::after { display: none !important; }
.nav-join:hover { opacity: 0.85; color: #fff !important; }

/* ── PAGE TRANSITION ── */
.page-enter { animation: pageIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }

/* ── REVEAL ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].in { opacity: 1; transform: none; }

/* ── FOOTER ── */
footer {
  margin-top: 120px;
  position: relative;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--red), rgba(237,240,255,0.12), var(--blue));
}
.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
}
.footer-copy { font-size: 0.72rem; color: var(--dim); letter-spacing: 0.05em; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a {
  font-size: 0.72rem;
  color: var(--dim);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }
