:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1e1e2a;
  --accent-green: #00e676;
  --accent-blue: #448aff;
  --accent-gold: #ffd740;
  --text-primary: #f0f0f5;
  --text-secondary: #9090a8;
  --text-muted: #5a5a70;
  --border: #2a2a3a;
  --border-accent: #3a3a50;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-glow-green: 0 0 24px rgba(0,230,118,0.15);
  --shadow-glow-blue: 0 0 24px rgba(68,138,255,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-green); text-decoration: none; transition: color 0.2s; }
a:hover { color: #69f0ae; }

img { max-width: 100%; display: block; }

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.nav-logo span { color: var(--accent-green); }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.45rem 0.9rem;
  border-radius: 7px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

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

.nav-links a.active { color: var(--accent-green); }

.nav-discord {
  background: #5865f2 !important;
  color: #fff !important;
  padding: 0.45rem 1rem !important;
}

.nav-discord:hover { background: #4752c4 !important; }

/* hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); margin: 5px 0;
  transition: 0.3s;
}

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(68,138,255,0.12) 0%, transparent 70%),
              radial-gradient(ellipse 60% 40% at 80% 110%, rgba(0,230,118,0.08) 0%, transparent 70%);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-green);
  background: rgba(0,230,118,0.1);
  border: 1px solid rgba(0,230,118,0.25);
  padding: 0.3rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .highlight { color: var(--accent-green); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  border: none;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent-green);
  color: #0a0a0f;
  box-shadow: 0 4px 20px rgba(0,230,118,0.3);
}

.btn-primary:hover {
  background: #69f0ae;
  color: #0a0a0f;
  box-shadow: 0 6px 28px rgba(0,230,118,0.45);
}

.btn-discord {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 4px 20px rgba(88,101,242,0.3);
}

.btn-discord:hover {
  background: #4752c4;
  color: #fff;
  box-shadow: 0 6px 28px rgba(88,101,242,0.45);
}

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

.btn-outline:hover { background: var(--bg-card); color: var(--text-primary); }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-green);
  display: block;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ── SECTIONS ── */
.section {
  padding: 5rem 1.5rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

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

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 3rem;
}

/* ── SERVER CARDS ── */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: default;
}

.server-card:hover {
  border-color: var(--accent-green);
  box-shadow: var(--shadow-glow-green);
  transform: translateY(-3px);
}

.server-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.server-flag {
  font-size: 1.6rem;
  line-height: 1;
}

.server-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
}

.badge-css { background: rgba(255,183,77,0.15); color: #ffb74d; border: 1px solid rgba(255,183,77,0.3); }
.badge-cs2 { background: rgba(68,138,255,0.15); color: #82b1ff; border: 1px solid rgba(68,138,255,0.3); }

.server-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.server-ip {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-primary);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.server-ip:hover { border-color: var(--accent-green); color: var(--text-primary); }

.copy-icon { font-size: 0.75rem; opacity: 0.6; }
.copied-text { color: var(--accent-green); font-size: 0.8rem; display: none; }

.server-actions { display: flex; gap: 0.6rem; }

.btn-connect {
  flex: 1;
  background: var(--accent-green);
  color: #0a0a0f;
  border: none;
  padding: 0.55rem 0.9rem;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}

.btn-connect:hover { background: #69f0ae; color: #0a0a0f; }

/* ── ABOUT / TEXT SECTIONS ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 { margin-bottom: 1.25rem; }

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.feature-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-list .icon {
  color: var(--accent-green);
  font-size: 1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* ── FEATURE CARDS ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

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

.feature-card:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-glow-blue);
}

.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ── DISCORD BANNER ── */
.discord-banner {
  background: linear-gradient(135deg, #3d4270 0%, #23264a 100%);
  border: 1px solid #4a4f8a;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  margin: 0 auto;
}

.discord-banner h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 0.75rem; }
.discord-banner p { color: #b0b4d8; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ── CONNECT GUIDE ── */
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 720px;
}

.guide-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--accent-green);
  color: #0a0a0f;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; }
.step-content p { color: var(--text-secondary); font-size: 0.9rem; }
.step-content code {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: 'Courier New', monospace;
  color: var(--accent-green);
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(68,138,255,0.1) 0%, transparent 70%);
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 0.75rem; }
.page-hero p { color: var(--text-secondary); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

/* ── LEGAL / PROSE ── */
.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  color: var(--text-primary);
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.prose h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }

.prose p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.prose a { color: var(--accent-blue); }

/* ── FOOTER ── */
footer {
  margin-top: auto;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand { font-size: 1.1rem; font-weight: 800; }
.footer-brand span { color: var(--accent-green); }

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--text-primary); }

.footer-copy { color: var(--text-muted); font-size: 0.8rem; width: 100%; text-align: center; margin-top: 1rem; }

/* ── DIVIDER ── */
.section-alt { background: var(--bg-secondary); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .stats-inner { gap: 1.5rem; }
  .stat-number { font-size: 1.3rem; }

  .discord-banner { padding: 2rem 1.25rem; }
  .discord-banner h2 { font-size: 1.5rem; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ── ONLINE INDICATOR ── */
.online-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── TOAST ── */
#toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent-green);
  color: #0a0a0f;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 999;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
