/* ── Last War Server Manager — Public Site Styles ── */

:root {
  --bg: #0d1117;
  --card: #161b22;
  --accent: #21262d;
  --highlight: #e94560;
  --brand: #5865f2;
  --text: #e6edf3;
  --text-dim: #8b949e;
  --success: #2ecc71;
  --link: #58a6ff;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* ── Nav ── */

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--card);
  border-bottom: 1px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.logo:hover { text-decoration: none; }

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--text-dim); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.btn-cta {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--brand);
  color: #fff !important;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-cta:hover { background: #4752c4; text-decoration: none; }

.btn-large { padding: 0.8rem 2rem; font-size: 1.05rem; }

/* ── Hero ── */

.hero {
  text-align: center;
  padding: 5rem 2rem 4rem;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text), var(--highlight));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ── Features ── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 1.5rem;
}

.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }

.feature-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

.feature-card code {
  background: var(--accent);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* ── CTA ── */

.cta-section {
  text-align: center;
  padding: 4rem 2rem;
}

.cta-section h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

/* ── Legal pages ── */

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.last-updated {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--accent);
}

.legal-page h3 {
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  color: var(--text-dim);
}

.legal-page p, .legal-page ul {
  color: var(--text-dim);
  margin-bottom: 0.8rem;
}

.legal-page ul {
  padding-left: 1.5rem;
}

.legal-page li { margin-bottom: 0.3rem; }

/* ── Footer ── */

footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--accent);
  margin-top: 3rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.8rem;
}

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

.footer-copy { color: var(--text-dim); font-size: 0.8rem; }

/* ── Responsive ── */

@media (max-width: 600px) {
  .hero h1 { font-size: 1.8rem; }
  .site-nav { flex-direction: column; gap: 0.8rem; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
}
