/* LinuxGaming 2.5 — Landing Page Styles */

:root {
  --bg: #0d1a14;
  --surface: rgba(20, 32, 26, 0.78);
  --surface-solid: #14201a;
  --surface-2: #1a2a20;
  --line: rgba(76, 175, 80, 0.12);
  --line-strong: rgba(76, 175, 80, 0.25);
  --ink: #e8eef7;
  --muted: #8493ad;
  --body: #c2cdda;
  --accent: #4caf50;
  --accent-soft: #81c784;
  --accent-glow: rgba(76, 175, 80, 0.35);
  --warn: #fbbf24;
  --radius: 24px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --maxw: 1080px;
  --measure: 640px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Background slideshow ──────────────────────────────── */

.bg-slideshow {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--bg);
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.8s ease-in-out, transform 8s ease-out;
}

.bg-slide.active {
  opacity: 1;
  transform: scale(1);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.48) 100%);
  z-index: 1;
}

/* ── Header ────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(13, 26, 20, 0.72);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(76, 175, 80, 0.25);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.site-nav .nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #08101f;
  font-weight: 600;
  box-shadow: 0 6px 18px var(--accent-glow);
}

.site-nav .nav-cta:hover {
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ── Content cards ─────────────────────────────────────── */

.page-content {
  padding: 48px 0 80px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin: 0 auto 40px;
  max-width: 960px;
  padding: 56px 48px;
}

.card:first-child {
  margin-top: 0;
}

.card h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  text-align: center;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-soft);
  margin: 0 0 12px;
}

.card p {
  color: var(--body);
  font-size: 17px;
  line-height: 1.7;
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ── About / signature ─────────────────────────────────── */

.hero-about {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.hero-about p {
  margin: 0 auto 12px;
}

.signature {
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
  margin: 8px 0 0;
}

/* ── Rules ─────────────────────────────────────────────── */

.rules-intro {
  margin: 0 auto;
}

/* ── Step lists (Join + Rules) ─────────────────────────── */

.join-steps,
.rules-list {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 28px auto 0;
  max-width: var(--measure);
  text-align: left;
}

.join-steps li,
.rules-list li {
  counter-increment: step;
  position: relative;
  min-height: 32px;
  padding: 14px 0 14px 48px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  border-top: 1px solid var(--line);
}

.join-steps li:first-child,
.rules-list li:first-child {
  border-top: none;
}

.join-steps li::before,
.rules-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ── Hero ──────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 72px 48px 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 24px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 16px;
}

.hero h1 .accent {
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
}

.hero-sub {
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}

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

.btn-primary {
  background: var(--accent);
  color: #08101f;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-soft);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}

/* ── About ─────────────────────────────────────────────── */

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 0;
  margin: 32px 0 0;
}

.stats li {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
}

.stats strong {
  display: block;
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 4px;
}

.stats span {
  font-size: 13px;
  color: var(--muted);
}

/* ── Mods ──────────────────────────────────────────────── */

.mod-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.mod-group {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.mod-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mod-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

.mod-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── How to join ───────────────────────────────────────── */

.server-address {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  color: var(--accent-soft);
  user-select: all;
}

/* ── Returning players ─────────────────────────────────── */

.returning-players {
  margin: 32px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: var(--measure);
  text-align: left;
}

.returning-players h3 {
  margin-bottom: 8px;
}

.returning-players p {
  margin: 0;
  text-align: left;
}

/* ── Stream placeholder ────────────────────────────────── */

.stream-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  max-width: 720px;
  background: var(--surface-2);
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
  margin: 20px auto 0;
}

/* ── Gallery ───────────────────────────────────────────── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.shot {
  display: block;
  padding: 0;
  margin: 0;
  aspect-ratio: 1840 / 1064;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

/* ── Lightbox ──────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(5, 11, 8, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(1120px, 94vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.lightbox-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Discord CTA ───────────────────────────────────────── */

.discord-cta {
  text-align: center;
  background:
    linear-gradient(135deg, rgba(76, 175, 80, 0.12), rgba(129, 199, 132, 0.08)),
    var(--surface);
  border-color: var(--line-strong);
}

.discord-cta p {
  margin: 0 auto 24px;
}

/* ── Footer ────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(13, 26, 20, 0.9);
  padding: 32px 0;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent);
}

/* ── Mobile ────────────────────────────────────────────── */

@media (max-width: 768px) {
  .site-header .wrap {
    height: 64px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface-solid);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
  }

  .site-nav .nav-cta {
    margin-top: 8px;
    text-align: center;
    justify-content: center;
  }

  .page-content {
    padding: 24px 0 48px;
  }

  .card {
    margin: 0 16px 24px;
    padding: 32px 24px;
    border-radius: 20px;
  }

  .hero {
    padding: 48px 24px 56px;
  }

  .mod-groups {
    grid-template-columns: 1fr;
  }

  .site-footer .wrap {
    flex-direction: column;
    text-align: center;
  }
}
