:root {
  --bg: #070a14;
  --bg-alt: #0b1020;
  --card: #10162b;
  --text: #e8ecf5;
  --muted: #9aa4c0;
  --accent: #ff9d2e;
  --accent-soft: rgba(255, 157, 46, 0.14);
  --border: rgba(255, 255, 255, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

/* ---------- nav ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7, 10, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  font-size: 0.98rem;
}
.btn-primary {
  background: var(--accent);
  color: #1a1005;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 157, 46, 0.35);
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.03);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: 0.45rem 1rem; font-size: 0.85rem; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(255,157,46,0.35); }
.btn-small:hover { background: var(--accent); color: #1a1005; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.25rem 4rem;
  position: relative;
}

.hero-content { max-width: 720px; }

.eyebrow {
  color: var(--accent);
  letter-spacing: 0.28em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 1.25rem;
  text-shadow: 0 0 60px rgba(255, 157, 46, 0.25);
}
.hero h1 span { color: var(--accent); }

.tagline {
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  color: var(--muted);
  margin-bottom: 2.25rem;
}

.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }

.server-ip {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.7rem 0.7rem 1.1rem;
}
.server-ip .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.server-ip code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.05rem;
  color: var(--accent);
}
.server-ip button {
  background: var(--accent-soft);
  border: 1px solid rgba(255,157,46,0.35);
  color: var(--accent);
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
}
.server-ip button:hover { background: var(--accent); color: #1a1005; }

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 1.8rem;
  text-decoration: none;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- stats ---------- */
.stats {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(11, 16, 32, 0.6);
}
.stat { text-align: center; }
.stat .num { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat .lbl { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- sections ---------- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.25rem;
}
.section-alt {
  max-width: none;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}
.section-sub em { color: var(--accent); font-style: normal; font-weight: 600; }

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,157,46,0.4); }
.card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- mod grid ---------- */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
}
.mod {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: border-color 0.2s;
}
.mod:hover { border-color: rgba(255,157,46,0.4); }
.mod strong { font-size: 1rem; }
.mod span { font-size: 0.82rem; color: var(--muted); }
.fineprint { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 1.75rem; }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1005;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- link cards ---------- */
.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.link-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s;
}
.link-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.link-card strong { display: block; font-size: 1.2rem; margin-bottom: 0.4rem; color: var(--accent); }
.link-card span { color: var(--muted); font-size: 0.95rem; }

/* ---------- footer ---------- */
footer {
  text-align: center;
  padding: 2.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}
footer .fineprint { margin-top: 0.4rem; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .stats { gap: 1.75rem; }
}
