/* SKYLANESMP — shared styles */
:root {
  --bg-deep: #07080f;
  --bg-panel: #0e1018;
  --bg-elevated: #141824;
  --text: #e8eaf4;
  --text-muted: #8b92a8;
  --neon-purple: #a855f7;
  --neon-blue: #38bdf8;
  --neon-green: #34d399;
  --glow-purple: rgba(168, 85, 247, 0.45);
  --glow-blue: rgba(56, 189, 248, 0.4);
  --glow-green: rgba(52, 211, 153, 0.35);
  --border: rgba(168, 85, 247, 0.22);
  --radius: 12px;
  --font-display: "Press Start 2P", system-ui, sans-serif;
  --font-body: "Exo 2", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(168, 85, 247, 0.18), transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(56, 189, 248, 0.08), transparent 45%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(52, 211, 153, 0.06), transparent 40%);
  background-attachment: fixed;
}

a {
  color: var(--neon-blue);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: var(--neon-green);
  text-shadow: 0 0 12px var(--glow-green);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- layout ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text);
  text-shadow: 0 0 20px var(--glow-purple), 0 0 40px var(--glow-blue);
  white-space: nowrap;
}

.logo:hover {
  color: var(--neon-purple);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.nav-main ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav-main a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--neon-purple);
  text-shadow: 0 0 10px var(--glow-purple);
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, #5865f2, #4752c4);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(88, 101, 242, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-discord:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(88, 101, 242, 0.5);
  color: #fff;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: 3rem 0 4rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23a855f7' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4vw, 2rem);
  line-height: 1.5;
  margin: 0 0 1.25rem;
  position: relative;
  animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from {
    text-shadow:
      0 0 20px var(--glow-purple),
      0 0 40px var(--glow-blue),
      0 0 60px rgba(168, 85, 247, 0.2);
  }
  to {
    text-shadow:
      0 0 28px var(--glow-purple),
      0 0 56px var(--glow-blue),
      0 0 80px rgba(52, 211, 153, 0.15);
  }
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  position: relative;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--neon-green), var(--neon-blue));
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 0 28px var(--glow-green);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 40px var(--glow-blue);
  color: var(--bg-deep);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--neon-purple);
  box-shadow: 0 0 20px var(--glow-purple);
  color: var(--text);
}

/* ---------- sections ---------- */
.page-intro {
  margin-bottom: 2.5rem;
}

.page-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  line-height: 1.6;
  margin: 0 0 0.75rem;
  color: var(--neon-purple);
  text-shadow: 0 0 16px var(--glow-purple);
}

.page-intro p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 42rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(168, 85, 247, 0.12);
}

.card h2,
.card h3 {
  font-family: var(--font-display);
  font-size: 0.65rem;
  line-height: 1.7;
  margin: 0 0 0.65rem;
  color: var(--neon-blue);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--neon-green);
  background: rgba(52, 211, 153, 0.08);
}

.command {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.9rem;
  color: var(--neon-green);
  background: var(--bg-deep);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.stat-placeholder {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--neon-purple);
}

/* ---------- mobile nav ---------- */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-main {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 8, 15, 0.97);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-main.is-open {
    max-height: 480px;
  }

  .nav-main ul {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.5rem;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .site-header {
    position: relative;
  }
}

@media (min-width: 901px) {
  .nav-main ul {
    justify-content: flex-end;
  }
}
