:root {
  --bg: #08090b;
  --bg-soft: #0e1013;
  --surface: #131519;
  --surface-2: #1a1d23;
  --border: #23262d;
  --text: #f2f3f5;
  --text-dim: #9a9ea8;
  --text-mute: #666b75;
  --accent: #ff7a00;
  --accent-2: #ff2e63;
  --accent-grad: linear-gradient(135deg, #ff7a00 0%, #ff2e63 100%);
  --green: #23d18b;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --shadow-glow: 0 0 40px rgba(255, 122, 0, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.text-accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Background FX ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}
.bg-glow-1 {
  width: 600px; height: 600px;
  background: #ff7a00;
  top: -200px; left: -150px;
}
.bg-glow-2 {
  width: 500px; height: 500px;
  background: #ff2e63;
  top: 40%; right: -150px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 60, 60, 0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 60, 60, 0.4);
}
.btn--ghost {
  color: var(--text-dim);
  padding: 12px 18px;
}
.btn--ghost:hover { color: var(--text); }
.btn--outline {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn--outline:hover {
  border-color: var(--accent);
  background: rgba(255,122,0,0.06);
}
.btn--lg { padding: 15px 30px; font-size: 15.5px; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.35s ease;
}
.header.scrolled {
  padding: 10px 0;
  background: rgba(10, 11, 14, 0.75);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.logo__mark { color: var(--text); }
.logo__rp {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav {
  display: flex;
  gap: 32px;
}
.nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
}
.nav a:hover { color: var(--text); }
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.burger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s ease;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 80vw);
  height: 100vh;
  background: var(--bg-soft);
  border-left: 1px solid var(--border);
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 100px 28px 28px;
  transition: right 0.35s ease;
}
.mobile-nav.active { right: 0; }
.mobile-nav a {
  padding: 14px 0;
  font-size: 17px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}
.mobile-nav .btn { margin-top: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  z-index: 2;
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 100%);
  z-index: -1;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 60px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.hero__badge strong { color: var(--text); }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot--online {
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(35, 209, 139, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(35, 209, 139, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(35, 209, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(35, 209, 139, 0); }
}
.hero__title {
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.05;
  font-weight: 700;
  max-width: 900px;
  margin-bottom: 22px;
}
.hero__subtitle {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 70px;
}
.hero__stats {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  justify-content: center;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat__num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 36px;
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 4px;
}
.hero__scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--border);
  border-radius: 20px;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--accent);
  border-radius: 4px;
  animation: scrollDown 1.6s infinite;
}
@keyframes scrollDown {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 22px; }
}

/* ---------- Section shared ---------- */
section { position: relative; z-index: 2; padding: 120px 0; }
.section-head { margin-bottom: 56px; max-width: 600px; }
.section-head--center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
}
.section-desc {
  color: var(--text-dim);
  font-size: 16px;
  margin-top: 14px;
}

/* ---------- About ---------- */
.about { background: var(--bg-soft); }
.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.about__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: all 0.3s ease;
}
.about__card:hover {
  border-color: rgba(255,122,0,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.about__card--big { grid-column: span 2; }
.about__icon { font-size: 30px; margin-bottom: 16px; }
.about__card h3 { font-size: 20px; margin-bottom: 10px; }
.about__card p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- Features ---------- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  background: var(--bg);
  padding: 36px 30px;
  transition: background 0.25s ease;
}
.feature:hover { background: var(--surface); }
.feature__num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.feature h4 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--text-dim); font-size: 14px; }

/* ---------- Factions ---------- */
.factions { background: var(--bg-soft); }
.factions__tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.faction-tab {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
}
.faction-tab.active, .faction-tab:hover {
  background: var(--accent-grad);
  color: #fff;
  border-color: transparent;
}
.faction-panel {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.faction-panel.active { display: grid; }
.faction-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.faction-card:hover { transform: translateY(-4px); border-color: rgba(255,122,0,0.4); }
.faction-card__glow {
  position: absolute;
  width: 140px; height: 140px;
  background: var(--accent-grad);
  filter: blur(60px);
  opacity: 0.25;
  top: -40px; right: -40px;
  border-radius: 50%;
}
.faction-card h3 { font-size: 21px; margin-bottom: 10px; position: relative; }
.faction-card p { color: var(--text-dim); font-size: 14px; margin-bottom: 18px; position: relative; }
.faction-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(35, 209, 139, 0.12);
  color: var(--green);
  position: relative;
}
.faction-tag--crime { background: rgba(255, 46, 99, 0.12); color: var(--accent-2); }
.faction-tag--civil { background: rgba(120, 150, 255, 0.12); color: #7c9bff; }

/* ---------- Server ---------- */
.server__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.server__list { margin: 26px 0 32px; }
.server__list li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.server__list li span { color: var(--text-mute); }
.server__list li strong { font-weight: 600; }
.status-ok { color: var(--green); }
.server__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.server__panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.server__panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.server__chart { margin-bottom: 20px; }
.chart-svg { width: 100%; height: 100px; }
.server__panel-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.mini-label { display: block; font-size: 12px; color: var(--text-mute); margin-bottom: 4px; }
.mini-val { font-family: 'Rajdhani', sans-serif; font-size: 18px; font-weight: 700; }

/* ---------- Team ---------- */
.team { background: var(--bg-soft); }
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.team-card:hover { transform: translateY(-4px); border-color: rgba(255,122,0,0.4); }
.team-card__avatar {
  width: 68px; height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}
.team-card h4 { font-size: 17px; margin-bottom: 4px; }
.team-card span { font-size: 13px; color: var(--text-mute); }

/* ---------- FAQ ---------- */
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 600;
  padding: 20px 24px;
  text-align: left;
}
.faq-icon {
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-dim);
  font-size: 14.5px;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--accent-grad);
  border-radius: 28px;
  max-width: var(--container);
  margin: 0 auto 40px;
  padding: 70px 40px;
}
.cta__inner { text-align: center; }
.cta h2 { color: #fff; font-size: clamp(26px, 4vw, 40px); margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,0.85); margin-bottom: 30px; font-size: 16px; }
.cta .btn--primary { background: #fff; color: #ff5a1f; box-shadow: none; }
.cta .btn--primary:hover { transform: translateY(-2px); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding-top: 70px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer__brand p { color: var(--text-mute); font-size: 14px; margin: 16px 0 20px; max-width: 260px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  transition: all 0.25s ease;
}
.footer__social a:hover { border-color: var(--accent); color: var(--accent); }
.footer__col h5 { font-size: 14px; margin-bottom: 18px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.05em; }
.footer__col a { display: block; color: var(--text-dim); font-size: 14.5px; padding: 6px 0; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.footer__bottom p { font-size: 13px; color: var(--text-mute); text-align: center; }

/* ---------- Scroll top ---------- */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 90;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header__actions .btn--ghost { display: none; }
  .about__grid { grid-template-columns: repeat(2, 1fr); }
  .about__card--big { grid-column: span 2; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .faction-panel { grid-template-columns: repeat(2, 1fr); }
  .server__inner { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  section { padding: 80px 0; }
  .about__grid, .features__grid, .faction-panel, .team__grid { grid-template-columns: 1fr; }
  .about__card--big { grid-column: span 1; }
  .hero__stats { gap: 32px; }
  .footer__inner { grid-template-columns: 1fr; }
  .cta { padding: 50px 24px; border-radius: 20px; }
}