:root {
  --bg: #071407;
  --panel: rgba(12, 40, 17, 0.72);
  --panel-strong: rgba(20, 70, 28, 0.85);
  --text: #f4ffd4;
  --muted: #c7dfa1;
  --lime: #d9ff46;
  --lime-soft: #eeff98;
  --green: #58bd1e;
  --border: rgba(222, 255, 107, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 20%, rgba(216, 255, 60, 0.22), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(95, 222, 58, 0.18), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(45, 140, 36, 0.35), transparent 42%),
    linear-gradient(135deg, #061006 0%, #0c260c 48%, #071407 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent);
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(7, 20, 7, 0.72);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 18px;
  z-index: 100;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.03em;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 12px;
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links .nav-btn {
  color: #183100;
  background: var(--lime);
  padding: 10px 16px;
}

.nav-links .nav-btn:hover {
  color: #183100;
  background: var(--lime-soft);
}

.menu-btn {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 99px;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 78px auto 0;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 34px;
  align-items: center;
  min-height: 680px;
}

.eyebrow,
.section-heading span,
.section-tag {
  display: inline-flex;
  color: var(--lime-soft);
  background: rgba(216, 255, 70, 0.12);
  border: 1px solid rgba(216, 255, 70, 0.18);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.hero h1,
.section h2,
.invite h2 {
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.hero p,
.section-heading p,
.invite p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 900;
  transition: 0.2s ease;
}

.primary-btn {
  color: #163500;
  background: linear-gradient(135deg, var(--lime), #8ee92f);
  box-shadow: 0 18px 45px rgba(140, 255, 39, 0.22);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(140, 255, 39, 0.3);
}

.secondary-btn {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
}

.secondary-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.stats div {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  color: var(--lime-soft);
  margin-bottom: 4px;
  font-size: 1rem;
}

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

.hero-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(28, 82, 30, 0.72), rgba(10, 28, 10, 0.84));
  box-shadow: var(--shadow);
  padding: 18px;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  background: rgba(216, 255, 70, 0.22);
  filter: blur(80px);
  right: -80px;
  top: -80px;
}

.hero-card img {
  width: 100%;
  aspect-ratio: 17 / 6;
  object-fit: cover;
  display: block;
  border-radius: 24px;
  position: relative;
  z-index: 1;
}

.status-card {
  position: relative;
  z-index: 2;
  width: calc(100% - 32px);
  margin: -34px auto 0;
  padding: 18px;
  border-radius: 20px;
  background: rgba(6, 18, 6, 0.82);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-card strong,
.status-card p {
  display: block;
  margin: 0;
}

.status-card p {
  color: var(--muted);
  margin-top: 2px;
  font-size: 0.95rem;
}

.pulse {
  width: 14px;
  height: 14px;
  background: var(--lime);
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(216, 255, 70, 0.75);
  animation: pulse 1.8s infinite;
}

.section,
.invite {
  width: min(1180px, calc(100% - 32px));
  margin: 80px auto 0;
}

.section-heading {
  text-align: center;
  margin: 0 auto 34px;
}

.section-heading p {
  margin-left: auto;
  margin-right: auto;
}

.section h2,
.invite h2 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  letter-spacing: -0.07em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card,
.invite {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 24px;
  transition: 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--panel-strong);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(216, 255, 70, 0.12);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.invite {
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(216, 255, 70, 0.2), transparent 35%),
    rgba(12, 40, 17, 0.72);
}

.invite p {
  margin-bottom: 0;
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 50px auto 28px;
  padding: 20px 0;
  color: var(--muted);
  text-align: center;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(12px);
}

.popup-overlay.active {
  display: flex;
}

.popup-box {
  width: min(440px, 100%);
  position: relative;
  padding: 34px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 20% 10%, rgba(216, 255, 70, 0.2), transparent 36%),
    rgba(7, 20, 7, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: popupIn 0.22s ease;
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
}

.popup-close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.popup-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(216, 255, 70, 0.1);
  border: 1px solid var(--border);
}

.popup-icon img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.popup-box h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.popup-box p {
  color: var(--muted);
  line-height: 1.6;
  margin: 16px 0 24px;
}

.popup-invite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  color: #163500;
  background: linear-gradient(135deg, var(--lime), #8ee92f);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 18px 45px rgba(140, 255, 39, 0.22);
  transition: 0.2s ease;
}

.popup-invite:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(140, 255, 39, 0.3);
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 14px rgba(216, 255, 70, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(216, 255, 70, 0);
  }
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 920px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(7, 20, 7, 0.96);
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    margin-top: 48px;
    min-height: unset;
  }

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

@media (max-width: 640px) {
  .hero h1 {
    font-size: 3.6rem;
  }

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

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

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .popup-box {
    padding: 28px 22px;
  }
}
