:root {
  --bg: #0c0c0f;
  --surface: #13131a;
  --border: #1f1f2e;
  --accent: #51c248;
  --accentb: #78d970;
  --accent-glow: rgba(81, 194, 72, 0.15);
  --accent-glow-strong: rgba(81, 194, 72, 0.25);
  --text: #e2e8f0;
  --muted: #64748b;
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
}

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

/* === NAV === */
.nav {
  background: rgba(19, 19, 26, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  letter-spacing: -0.02em;
  transition: opacity 0.15s;
}

.nav-logo:hover { text-decoration: none; opacity: 0.85; }

.nav-logo .nuke-icon {
  color: var(--accent);
  font-size: 1.1em;
  filter: drop-shadow(0 0 10px rgba(81, 194, 72, 0.5));
  transition: filter 0.2s, transform 0.45s ease;
  display: inline-block;
}

.nav-logo:hover .nuke-icon {
  filter: drop-shadow(0 0 14px rgba(81, 194, 72, 0.9));
  transform: rotate(60deg);
}

.logo-rp { color: var(--accent); }

.nav-logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  order: 2;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  filter: drop-shadow(0 0 22px rgba(81, 194, 72, 0.3));
  color: #0c0c0f;
}

.btn-primary:hover {
  background: var(--accentb);
  box-shadow: 0 0 22px var(--accent-glow-strong);
  text-decoration: none;
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 22px var(--accent-glow-strong);
  border-color: var(--accent);
  text-decoration: none;
}

/* === LAYOUT === */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

/* === HERO === */
.hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 65% 50% at 50% 45%, rgba(81, 194, 72, 0.03) 0%, transparent 70%);
}

#nuke-particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-rings {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-rings span {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  top: 0; left: 0;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  animation: ring-pulse 5s ease-out forwards;
}

@keyframes ring-pulse {
  0%   { transform: translate(-50%, -50%) scale(0.2); opacity: 0.45; }
  100% { transform: translate(-50%, -50%) scale(3.8); opacity: 0; }
}

.hero-title {
  position: relative;
  z-index: 1;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--accentb) 0%, var(--accent) 50%, var(--accentb) 100%);
  filter: drop-shadow(0 0 22px rgba(81, 194, 72, 0.3));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  animation: gradient-scroll 8s ease-in-out infinite, slide-up 0.7s ease 0.1s both;
}

.hero-sub {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2.25rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  animation: slide-up 0.7s ease 0.3s both;
}

.hero-ctas {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: slide-up 0.7s ease 0.5s both;
}

@keyframes gradient-scroll {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* === CARD REVEAL === */
.reveal-ready {
  opacity: 0;
  transform: translateY(22px);
}

.reveal-ready.revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

/* === CARDS === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 28px var(--accent-glow-strong);
}

.card-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.card-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.card-body { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

/* === STATS === */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  text-shadow: 0 0 18px rgba(81, 194, 72, 0.4);
}

.stat-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* === SECTION HEADERS === */
.section-header {
  margin: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.section-title { font-size: 1.4rem; font-weight: 700; }
.section-sub { font-size: 0.9rem; color: var(--muted); margin-top: 0.25rem; }

/* === JOB CARDS === */
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.job-card:hover { border-color: var(--accent); }
.job-card-name { font-weight: 700; font-size: 0.95rem; color: var(--text); margin-bottom: 0.4rem; }
.job-card-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.45; }

/* === BADGES === */
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.5rem;
}

.badge-civilian   { background: rgba(74, 222, 128, 0.12);  color: #4ade80; }
.badge-government { background: rgba(96, 165, 250, 0.12);  color: #60a5fa; }
.badge-criminal   { background: rgba(248, 113, 113, 0.12); color: #f87171; }
.badge-owner      { background: rgba(251, 191, 36, 0.15);  color: #fbbf24; }
.badge-admin      { background: rgba(129, 140, 248, 0.15); color: #818cf8; }
.badge-dev        { background: rgba(138, 173, 244, 0.15); color: #8aadf4; }
.badge-discord    { background: rgba(163, 82, 255, 0.15);  color: #a352ff; }
.badge-hadmin     { background: rgba(248, 113, 113, 0.15); color: #f87171; }
.badge-mod        { background: rgba(52, 211, 153, 0.15);  color: #34d399; }
.badge-comingsoon { background: rgba(243, 232, 112, 0.15); color: #f3e870; }

/* === STAFF CARDS === */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.staff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s;
}

.staff-card:hover { border-color: var(--accent); }

.staff-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--border);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.staff-name { font-weight: 700; color: var(--text); margin-bottom: 0.5rem; font-size: 0.95rem; }
.staff-role { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }

/* === PAGE HEADERS === */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  animation: slide-up 0.6s ease 0.05s both;
}

.page-sub {
  color: var(--muted);
  font-size: 0.95rem;
  animation: slide-up 0.6s ease 0.2s both;
}

/* === RULES CONTENT === */
.rules-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.75rem 0;
}

.rules-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.rules-content h3 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 1.5rem 0 0.5rem;
}

.rules-content p { color: var(--muted); margin-bottom: 0.6rem; font-size: 0.9rem; }
.rules-content strong { color: var(--text); }

.rules-content ul {
  margin: 0.4rem 0 0.75rem 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.rules-content ul li { margin-bottom: 0.25rem; }

.rules-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.25rem;
  font-size: 0.875rem;
}

.rules-content thead tr { background: rgba(19, 19, 26, 0.75); }

.rules-content thead th {
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.rules-content tbody tr { border-bottom: 1px solid var(--border); transition: background 0.1s; }
.rules-content tbody tr:hover { background: rgba(19, 19, 26, 0.5); }

.rules-content tbody td {
  padding: 8px 12px;
  color: var(--muted);
  vertical-align: top;
  font-size: 0.875rem;
}

.rules-content tbody td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.rules-content code {
  background: rgba(129, 140, 248, 0.1);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: 'Consolas', 'Fira Code', monospace;
}

/* === SLIDESHOW === */
.slideshow { margin: 2.5rem 0; }

.slideshow-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.slideshow-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.slideshow-track {
  position: relative;
  flex: 1;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slideshow-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.slideshow-btn:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 0 14px var(--accent-glow);
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.slideshow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.slideshow-dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(81, 194, 72, 0.5);
  transform: scale(1.3);
}

/* === CTA SECTION === */
.cta-section {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 3rem 0;
}

.cta-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.cta-section p { color: var(--muted); margin-bottom: 1.5rem; font-size: 0.95rem; }

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  margin-top: 5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

.footer-copy { color: #2e2e3e; font-size: 0.8rem; }

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  #nuke-particles,
  .hero-rings { display: none; }
  .reveal-ready { opacity: 1; transform: none; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 2rem;
    gap: 1rem;
    display: none;
  }

  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; gap: 0.6rem; }
  main { padding: 1.5rem 1rem; }
  .hero { padding: 3.5rem 1rem 2.5rem; }
  .stats-bar { gap: 2rem; padding: 2rem 1rem; }
}

/* === STORE === */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.rank-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rank-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 28px var(--accent-glow-strong);
}

.rank-card.featured {
  border-top: 2px solid var(--accent);
}

.rank-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.rank-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(81, 194, 72, 0.4);
  margin: 1rem 0 0.25rem;
}

.rank-price-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.rank-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.rank-perks li {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.rank-perks li:last-child {
  border-bottom: none;
}

.rank-perks li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.rank-cta {
  margin-top: auto;
}

.rank-cta .btn {
  width: 100%;
  text-align: center;
  display: block;
}

.rank-coming-soon {
  margin-top: 1rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border);
}

.rank-coming-soon-title {
  font-style: italic;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.rank-coming-soon ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rank-coming-soon ul li {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.7;
}

.rank-coming-soon ul li::before {
  content: '◦';
  color: var(--muted);
  flex-shrink: 0;
}
