@import url("https://fonts.cdnfonts.com/css/satoshi");

/* --- RESET & BASE --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-size: 16px;
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  line-height: 1.6;
  /* Smooth background without visible banding/lines */
  background-color: #141c26; /* solid base to prevent seams */
  /* Add subtle noise layer first to break gradient banding */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.02 0'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n1)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.015 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n2)'/%3E%3C/svg%3E"),
    radial-gradient(
      90vmax 90vmax at 20% 50%,
      rgba(132, 204, 22, 0.07) 0%,
      rgba(132, 204, 22, 0.01) 30%,
      rgba(132, 204, 22, 0) 70%
    ),
    radial-gradient(
      90vmax 90vmax at 80% 80%,
      rgba(34, 197, 94, 0.07) 0%,
      rgba(34, 197, 94, 0.01) 30%,
      rgba(34, 197, 94, 0) 70%
    ),
    radial-gradient(
      90vmax 90vmax at 40% 20%,
      rgba(132, 204, 22, 0.05) 0%,
      rgba(132, 204, 22, 0.008) 30%,
      rgba(132, 204, 22, 0) 70%
    );
  background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
  background-size: 160px 160px, 320px 320px, auto, auto, auto; /* two noise scales, large gradients */
  background-position: 0 0, 0 0, center, center, center;
  background-blend-mode: normal, normal, soft-light, soft-light, soft-light;
  /* Avoid fixed attachment which can cause visible seams on some GPUs */
  color: #84cc16;
  min-height: 100vh;
  overflow-x: hidden;
}

/* JS-driven intro uses inline styles; no CSS animation to avoid scroll lock */

/* Hide native scrollbar */
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: auto; /* allow immediate, non-animated scroll */
}
::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #84cc16;
  border-radius: 50%;
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(132, 204, 22, 0.6);
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  from {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.4;
  }
  to {
    transform: translateY(-150vh) translateX(50px) rotate(360deg);
    opacity: 0;
  }
}

/* --- SCROLL BEAN --- */
#scroll-bean {
  position: fixed;
  right: 0;
  top: 0;
  width: 6px;
  height: 28px;
  border-radius: 999px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  background: linear-gradient(180deg, #84cc16, #00cc55);
  box-shadow: 0 0 6px rgba(0, 255, 106, 0.4);
  transform-origin: right;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.9;
  cursor: grab;
  pointer-events: auto;
  z-index: 1002;
  touch-action: none;
}
#scroll-bean.scrolling {
  opacity: 0.95;
}
#scroll-bean.dragging {
  cursor: grabbing;
}
#scroll-bean.at-top {
  border-top-left-radius: 2px;
}
#scroll-bean.at-bottom {
  border-bottom-left-radius: 2px;
}

/* --- NAVBAR --- */
.modern-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px 40px;
}

.modern-navbar.at-top {
  background: transparent;
}

.modern-navbar.scrolled {
  width: min(1100px, calc(100% - 40px));
  top: 16px;
  background: rgba(10, 30, 20, 0.164);
  border-radius: 50px;
  border: 1px solid rgba(0, 255, 106, 0.048);
  backdrop-filter: blur(12px);
  padding: 12px 32px;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 24px;
  width: auto;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #84cc16;
  letter-spacing: 1px;
}

.navbar-center {
  display: flex;
  gap: 32px;
}

.navbar-center a {
  color: #84cc16;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.navbar-center a:hover {
  color: #84cc16;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- BUTTONS --- */
.btn-filled,
.btn-primary {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, #48aa06, #02aa56);
  color: #030806;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-filled:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 255, 106, 0.3);
}

.btn-secondary {
  display: inline-block;
  padding: 10px 24px;
  background: transparent;
  color: #84cc16;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  text-decoration: none;
  border: 1px solid rgba(0, 255, 106, 0.3);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover {
  border-color: #1eff00;
  color: #84cc16;
}

/* --- HERO SECTION (Reference layout: left text, right image) --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 60px 80px;
  position: relative;
  z-index: 10;
}

/* Stats bar at top of hero */
.stats-bar {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 16px 32px;
  background: rgba(0, 20, 12, 0.3);
  border-radius: 50px;
  border: 1px solid rgba(40, 20, 109, 0.1);
  z-index: 5;
}

.stat-mini {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: #84cc16;
}

.stat-lbl {
  font-size: 0.85rem;
  color: #84cc16;
  opacity: 0.8;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-tagline {
  font-size: 0.95rem;
  color: #90ff7a;
  font-weight: 500;
  opacity: 0.8;
}

.main-heading {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 800;
  color: #84cc16;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.hero-description {
  font-size: 1.1rem;
  color: #99ff7a;
  max-width: 480px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1500px;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 620px;
  border-radius: 12px;
  overflow: visible;
  background: linear-gradient(
    145deg,
    rgba(20, 30, 40, 0.95),
    rgba(15, 20, 30, 0.98)
  );
  border: 1px solid rgba(82, 82, 82, 0.301);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset, 20px 20px 60px rgba(0, 0, 0, 0.4);
  transform: perspective(1500px) rotateY(-25deg);
  transform-style: preserve-3d;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 12px 12px;
  /* Reserve layout space so scrollable height is stable before image loads */
  aspect-ratio: 16 / 9;
}

/* --- FEATURES SECTION (Reference layout: left text, right images) --- */
.features-section {
  padding: 80px 60px;
  position: relative;
  z-index: 10;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-title {
  font-size: 2rem;
  font-weight: 700;
  color: #84cc16;
}

.feature-description,
.feature-extra {
  font-size: 1rem;
  color: #99ff7a;
  line-height: 1.7;
  opacity: 0.9;
}

.feature-visuals {
  display: flex;
  gap: 20px;
}

.feature-card {
  flex: 1;
  background: rgba(41, 41, 41, 0.747);
  border: 1px solid rgba(41, 41, 41, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9; /* avoid reflow that can interfere with initial scroll */
}

/* --- STATS SECTION --- */
.stats-section {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 60px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #84cc16;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: #84cc16;
  opacity: 0.8;
}

/* --- DASHBOARD SECTION --- */
.dashboard-section {
  text-align: center;
  padding: 40px 20px;
}

.dashboard-btn {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* --- CTA SECTION --- */
.cta-section {
  text-align: center;
  padding: 80px 40px;
  position: relative;
  z-index: 10;
}

.cta-container {
  max-width: 600px;
  margin: 0 auto;
}

.cta-heading {
  font-size: 2rem;
  font-weight: 700;
  color: #84cc16;
  margin-bottom: 16px;
}

.cta-text {
  font-size: 1.1rem;
  color: #99ff7a;
  margin-bottom: 32px;
  line-height: 1.6;
}

.cta-box {
  display: flex;
  justify-content: center;
}

.cta-btn {
  padding: 14px 32px;
  font-size: 1rem;
}

/* --- FOOTER --- */
.site-footer {
  padding: 40px 60px;
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left p {
  color: #84cc16;
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-right {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-right a {
  color: #84cc16;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-right a:hover {
  color: #84cc16;
}

.discord-link {
  background: #5865f2;
  color: white !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.discord-link:hover {
  background: #4752c4;
}

/* Profile picture */
.profile-link {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  text-decoration: none;
}

.profile-username {
  color: #84cc16;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s;
}

.profile-picture {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #99ff7a;
  transition: transform 0.2s;
  display: block;
}
.profile-link:hover .profile-picture,
.profile-link:hover .profile-username {
  transform: translateY(-2px);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .hero-section {
    padding: 100px 24px 60px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-left {
    text-align: center;
    align-items: center;
  }

  .hero-description {
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image-wrapper {
    transform: none;
    max-width: 400px;
  }

  .stats-bar {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 24px;
    padding: 12px 20px;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-text {
    text-align: center;
  }

  .feature-visuals {
    flex-direction: column;
  }

  .stats-section {
    flex-wrap: wrap;
    gap: 40px;
  }

  .stat-item {
    flex: 1 1 40%;
    min-width: 120px;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-right {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .modern-navbar {
    padding: 12px 20px;
  }

  .modern-navbar.scrolled {
    padding: 10px 20px;
    width: calc(100% - 24px);
  }

  .navbar-center {
    display: none;
  }

  .main-heading {
    font-size: 2.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .stats-section {
    gap: 24px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .features-section {
    padding: 60px 24px;
  }

  .feature-title {
    font-size: 1.5rem;
  }
}

/* --- WHY JOIN SECTION --- */
.why-section {
  padding: 100px 60px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #84cc16;
  margin-bottom: 60px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.why-card {
  background: rgba(22, 22, 24, 0.15);
  border: 1px solid rgba(40, 20, 109, 0.1);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 106, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #84cc16;
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.95rem;
  color: #99ff7a;
  line-height: 1.6;
  opacity: 0.9;
}

/* --- COMMUNITY SECTION --- */
.community-section {
  padding: 100px 60px;
  position: relative;
  z-index: 10;
}

.community-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.community-text {
  font-size: 1.2rem;
  color: #99ff7a;
  margin-bottom: 48px;
  line-height: 1.7;
}

.community-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.comm-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.comm-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: #84cc16;
}

.comm-label {
  font-size: 0.95rem;
  color: #99ff7a;
  opacity: 0.8;
}

/* Responsive for new sections */
@media (max-width: 900px) {
  .stats-bar {
    flex-wrap: wrap;
    gap: 24px;
    padding: 12px 20px;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .why-section {
    padding: 60px 24px;
  }

  .community-section {
    padding: 60px 24px;
  }

  .community-stats {
    flex-wrap: wrap;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .stats-bar {
    flex-direction: column;
    gap: 12px;
    border-radius: 16px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .comm-num {
    font-size: 2rem;
  }
}
