/* ============ VARIABLES ============ */
:root {
  --bg: #0c1210;
  --bg-alt: #0f1713;
  --surface: #141d18;
  --surface-2: #1a251f;
  --border: #24332b;
  --text: #eaf2ec;
  --text-dim: #a9bab0;
  --text-dimmer: #74897d;
  --green: #58cc4a;
  --green-light: #7ee06c;
  --green-dark: #3a8f2c;
  --gold: #f2c94c;
  --danger: #e6584f;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font-body: "Inter", system-ui, sans-serif;
  --font-pixel: "Press Start 2P", monospace;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
code { font-family: "SFMono-Regular", Consolas, monospace; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--green-light); }

/* ============ BACKGROUND PARTICLES ============ */
.bg-particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(88, 204, 74, 0.08), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(88, 204, 74, 0.06), transparent 35%),
    radial-gradient(circle at 50% 90%, rgba(88, 204, 74, 0.05), transparent 45%);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--green-light), var(--green));
  color: #0c1a0e;
  box-shadow: 0 4px 0 var(--green-dark), 0 10px 24px rgba(88, 204, 74, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--green-dark), 0 14px 28px rgba(88, 204, 74, 0.3); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--green-dark); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--green); color: var(--green-light); transform: translateY(-2px); }

.btn-discord {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}
.btn-discord:hover { border-color: var(--green); }

.btn-small {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: 18px;
}
.btn-small:hover { border-color: var(--green); background: rgba(88, 204, 74, 0.08); color: var(--green-light); }

.btn-full { width: 100%; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(12, 18, 16, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.site-header.scrolled {
  background: rgba(12, 18, 16, 0.92);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}
.logo-block {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  box-shadow: inset -4px -4px 0 rgba(0,0,0,0.2), inset 4px 4px 0 rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.15s ease;
  position: relative;
}
.main-nav a:hover { color: var(--text); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--green);
  transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-btn {
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-dimmer);
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-btn.active { background: var(--green); color: #0c1a0e; }
.lang-btn:not(.active):hover { color: var(--text); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  padding: 4px;
}
.burger span {
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 90px;
  text-align: center;
  overflow: hidden;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(88, 204, 74, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 204, 74, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 20%, #000 40%, transparent 90%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 800px; margin: 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.hero-badge #onlineCount { color: var(--green-light); font-weight: 800; }

.pulse-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  position: relative;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.8s ease-out infinite;
}
.pulse-dot.small { width: 7px; height: 7px; }
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(3); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 36px;
}

.ip-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  max-width: 420px;
  margin: 0 auto 32px;
}
.ip-box-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dimmer);
  margin-bottom: 10px;
}
.ip-box-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ip-box-row code {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-light);
}
.btn-copy {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-copy:hover { border-color: var(--green); color: var(--green-light); }

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 10px;
}
.stat-num {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--green-light);
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-dimmer);
  margin-top: 4px;
}

/* ============ SECTIONS ============ */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.section-head p { color: var(--text-dim); font-size: 1.02rem; }

.grid { display: grid; gap: 22px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: #32463a; box-shadow: var(--shadow); }

/* ============ SERVERS ============ */
.servers-grid { grid-template-columns: repeat(3, 1fr); }
.server-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.server-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--green-light);
  background: rgba(88, 204, 74, 0.1);
  padding: 5px 10px;
  border-radius: 999px;
}
.status-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.server-card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.server-card p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 18px; min-height: 66px; }
.server-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}
.server-meta code { color: var(--text-dim); }
.server-meta .players { color: var(--green-light); font-weight: 700; }

/* ============ SHOP ============ */
.shop-grid { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.plan-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
}
.plan-card.featured {
  border-color: var(--green);
  background: linear-gradient(180deg, rgba(88, 204, 74, 0.08), var(--surface) 40%);
  transform: scale(1.03);
}
.plan-card.legend { border-color: rgba(242, 201, 76, 0.4); }
.plan-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #0c1a0e;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.plan-card.featured .plan-name { color: var(--green-light); }
.plan-card.legend .plan-name { color: var(--gold); }
.plan-price {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 22px;
}
.plan-price span { font-size: 0.95rem; font-weight: 600; color: var(--text-dimmer); }
.plan-price .plan-period { margin-left: 2px; }
.plan-features {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.plan-features li {
  font-size: 0.88rem;
  color: var(--text-dim);
  padding-left: 24px;
  position: relative;
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-light);
  font-weight: 800;
}
.shop-note {
  text-align: center;
  color: var(--text-dimmer);
  font-size: 0.85rem;
  margin-top: 40px;
}

/* ============ LIVE FEED ============ */
.live-feed-wrap {
  max-width: 700px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
}
.live-feed { display: flex; flex-direction: column; }
.live-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  opacity: 1;
}
.live-item:last-child { border-bottom: none; }
.live-item-new { opacity: 0; transform: translateY(-8px); transition: opacity 0.4s ease, transform 0.4s ease; }
.live-item-new.show { opacity: 1; transform: translateY(0); }

.live-avatar {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  color: #0c1a0e;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.live-text { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 0.9rem; }
.live-player { font-weight: 800; }
.live-action { color: var(--text-dim); }
.live-action strong { color: var(--green-light); }
.live-price {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dimmer);
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 999px;
}
.live-time { font-size: 0.78rem; color: var(--text-dimmer); white-space: nowrap; flex-shrink: 0; }

/* ============ RULES ============ */
.rules-grid { grid-template-columns: repeat(3, 1fr); }
.rule-num {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--green-dark);
  margin-bottom: 14px;
}
.rule-card h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.rule-card p { font-size: 0.9rem; color: var(--text-dim); }

/* ============ NEWS ============ */
.news-grid { grid-template-columns: repeat(3, 1fr); }
.news-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--green-light);
  background: rgba(88, 204, 74, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.news-date { font-size: 0.8rem; color: var(--text-dimmer); margin-bottom: 8px; }
.news-card h4 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.news-card p { font-size: 0.9rem; color: var(--text-dim); }

/* ============ FAQ ============ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 0.98rem;
  text-align: left;
}
.faq-icon {
  font-size: 1.3rem;
  color: var(--green-light);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 24px;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 24px 20px; }
.faq-a p { color: var(--text-dim); font-size: 0.92rem; }

/* ============ CTA BANNER ============ */
.cta-banner {
  padding: 90px 0;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-inner h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; margin-bottom: 14px; }
.cta-inner p { color: var(--text-dim); margin-bottom: 32px; }

/* ============ FOOTER ============ */
.site-footer { padding: 70px 0 0; background: var(--bg-alt); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p { color: var(--text-dim); font-size: 0.9rem; margin: 16px 0 20px; max-width: 320px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s ease;
}
.socials a:hover { border-color: var(--green); }
.footer-col h5 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 18px; color: var(--text-dimmer); }
.footer-col a { display: block; font-size: 0.92rem; color: var(--text-dim); margin-bottom: 12px; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--green-light); }
.footer-ip { font-weight: 700; color: var(--green-light); margin-bottom: 10px; }
.footer-status { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-dim); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px 24px 30px;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.82rem;
  color: var(--text-dimmer);
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-2);
  border: 1px solid var(--green);
  color: var(--text);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .servers-grid, .news-grid, .rules-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .plan-card.featured { transform: none; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(12, 18, 16, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .btn-discord { display: none; }
  .burger { display: flex; }

  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
  .logo { font-size: 1.02rem; gap: 8px; }
  .logo-block { width: 22px; height: 22px; }
  .lang-btn { padding: 6px 10px; font-size: 0.72rem; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .servers-grid, .news-grid, .rules-grid, .shop-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .live-item { flex-wrap: wrap; }
  .live-time { margin-left: 52px; }
}
