:root {
  --bg: #08110d;
  --panel: rgba(16, 28, 21, 0.82);
  --text: #eefbf1;
  --muted: #a7c4af;
  --line: rgba(170, 220, 183, 0.14);
  --green: #63d471;
  --lime: #9be15d;
  --gold: #f5cf63;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --container: 1160px;

  --runner-height: 170px;
  --runner-speed: 18s;
  --scene-width: 480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(111, 255, 145, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(245, 207, 99, 0.08), transparent 24%),
    linear-gradient(180deg, #07100c 0%, #0b1510 55%, #08110d 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 17, 13, 0.6);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  padding: 5.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-label {
  display: inline-flex;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(99, 212, 113, 0.12);
  border: 1px solid rgba(99, 212, 113, 0.25);
  color: #b7f3bc;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 11ch;
}

.hero-text,
.section-heading p,
.about p,
.join-box p,
.footer-text,
.feature-card p,
.about-item p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 62ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.8rem 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.2rem;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  color: #08110d;
  background: linear-gradient(135deg, var(--lime), var(--green));
  box-shadow: 0 12px 30px rgba(99, 212, 113, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--text);
}

.hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.hero-stats li {
  min-width: 120px;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}

.hero-stats strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-card {
  display: grid;
  gap: 1rem;
}

.server-widget,
.pixel-card,
.feature-card,
.about-panel,
.join-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.server-widget {
  padding: 1.25rem;
}

.server-widget-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
  color: #ccefd0;
  font-weight: 600;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5eff7e;
  box-shadow: 0 0 0 6px rgba(94, 255, 126, 0.12);
}

.widget-label {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.ip-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font-weight: 700;
}

.copy-btn {
  border: 0;
  background: linear-gradient(135deg, #ffe08a, var(--gold));
  color: #2f2507;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.server-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.server-tags span {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: #d4ebd9;
  font-size: 0.88rem;
  font-weight: 600;
}

.pixel-card {
  padding: 1rem;
}

.block-image-wrap {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.06), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.16));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 20px 34px rgba(0,0,0,0.28);
}

.block-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.section-heading h2,
.about h2,
.join-box h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.04em;
  margin: 0.9rem 0 0.75rem;
}

.features,
.about,
.join {
  padding: 2rem 0 5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-card {
  padding: 1.4rem;
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 1rem;
  color: #dfffe2;
  background: linear-gradient(135deg, rgba(99, 212, 113, 0.18), rgba(155, 225, 93, 0.08));
  border: 1px solid rgba(99, 212, 113, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.feature-icon-svg {
  width: 28px;
  height: 28px;
  display: block;
}

.feature-card h3,
.about-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.about-panel {
  padding: 1.4rem;
}

.about-list {
  display: grid;
  gap: 1rem;
}

.about-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.about-bullet {
  width: 12px;
  height: 12px;
  margin-top: 0.45rem;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--lime), var(--green));
  box-shadow: 0 0 0 6px rgba(99, 212, 113, 0.08);
  flex: 0 0 auto;
}

.join-box {
  padding: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 14, 10, 0.5), rgba(5, 9, 7, 0.92));
  padding-top: calc(var(--runner-height) + 10px);
}

.png-runner {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--runner-height);
  overflow: hidden;
  pointer-events: none;
}

.png-runner-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  height: 100%;
  will-change: transform;
  animation: pngRunnerScroll var(--runner-speed) linear infinite;
}

.png-scene {
  width: auto;
  height: 100%;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  image-rendering: auto;
}

.footer-content {
  position: relative;
  z-index: 2;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0 1.6rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
}

.footer-logo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--text);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.25;
  pointer-events: none;
}

.hero-glow-1 {
  width: 320px;
  height: 320px;
  background: #5be86b;
  top: -80px;
  right: 10%;
}

.hero-glow-2 {
  width: 260px;
  height: 260px;
  background: #f3d35b;
  bottom: 0;
  left: 8%;
}

@keyframes pngRunnerScroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(var(--scene-width) * -1), 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .png-runner-track {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .join-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    min-height: auto;
    padding: 1rem 0;
    flex-wrap: wrap;
  }

  .brand-logo {
    width: 220px;
  }

  :root {
    --runner-height: 140px;
    --runner-speed: 14s;
  }
}

@media (max-width: 760px) {
  .nav {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 3rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 100%;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo {
    width: min(220px, 72vw);
  }

  .footer-logo {
    width: min(200px, 68vw);
  }

  .ip-box {
    flex-direction: column;
    align-items: flex-start;
  }

  :root {
    --runner-height: 120px;
    --runner-speed: 12s;
  }
}