/* ==========================================
   style.css - Main Body Styles
   (Hero, Stats, Sections, Footer)
   ========================================== */

/* Variables are already defined in :root in index.php,
   but we duplicate them here so this file can be used standalone. */
:root {
  --bg-deep: #0c0920;
  --bg-card: #161130;
  --bg-soft: #211b4a;
  --accent: #7b5cff;
  --accent-glow: #5f3ee6;
  --gold: #f5c842;
  --white: #ffffff;
  --gray: #c8c0e6;
  --border-light: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-deep);
  color: var(--white);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* glassmorphism base */
.glass {
  background: rgba(22, 17, 48, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--border-light);
}

/* header */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(12, 9, 32, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.25s;
}
header.scrolled {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
}

nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.3px;
  color: white;
}
.logo i {
  font-size: 2.1rem;
  color: #25D366;
  filter: drop-shadow(0 0 6px rgba(37, 211, 102, 0.3));
}

.nav-links {
  display: flex;
  gap: 2.8rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-weight: 500;
  font-size: 0.95rem;
  transition: 0.2s;
  letter-spacing: 0.2px;
}
.nav-links a:hover { color: white; }

.nav-join {
  background: var(--gold);
  color: #0c0920 !important;
  padding: 0.4rem 0.6rem;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.2s;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-join:hover {
  background: #e6b800;
  box-shadow: 0 0 20px rgba(245, 200, 66, 0.4);
  transform: translateY(-1px);
  color: #0c0920 !important;
}

.nav-cta {
  background: var(--accent);
  padding: 0.6rem 1.6rem;
  border-radius: 12px;
  color: white !important;
  font-weight: 600;
  transition: 0.2s;
  border: 1px solid transparent;
}
.nav-cta:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 20px rgba(123, 92, 255, 0.4);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light);
  color: white;
  font-size: 1.6rem;
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
  cursor: pointer;
}

.mobile-nav-links {
  display: none;
  flex-direction: column;
  background: var(--bg-deep);
  padding: 1.5rem 2rem;
  gap: 1rem;
  border-bottom: 1px solid var(--border-light);
}
.mobile-nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
}
.mobile-nav-links.active {
  display: flex;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
}

/* hero */
.hero {
  margin-top: 80px;
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 20%, #1f174a 0%, #0c0920 70%);
}
.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 1.5rem;
}
.hero-text h1 .highlight {
  color: var(--gold);
}
.hero-text p {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 0.9rem 2.8rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary i { font-size: 1.1rem; }
.btn-primary:hover {
  background: var(--accent-glow);
  box-shadow: 0 8px 30px rgba(123, 92, 255, 0.45);
  transform: translateY(-3px);
}

.btn-secondary {
  background: transparent;
  color: white;
  padding: 0.9rem 2.8rem;
  border-radius: 12px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border-light);
  transition: 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.floating-card {
  background: rgba(22, 17, 48, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border-light);
  border-radius: 32px;
  padding: 2.5rem 2.2rem;
  box-shadow: var(--shadow);
}
.floating-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
  color: var(--gold);
  text-align: center;
  letter-spacing: -0.3px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.2rem;
  border-radius: 18px;
  border-left: 3px solid var(--accent);
}
.feature-list .icon {
  font-size: 1.8rem;
  width: 2.4rem;
  color: var(--gold);
}
.feature-list strong {
  color: white;
  font-weight: 600;
}
.feature-list span { color: var(--gray); }

/* stats */
.stats {
  padding: 4rem 2rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.stats-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item {
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem 1rem;
  border-radius: 28px;
  border: 1px solid var(--border-light);
  transition: 0.2s;
}
.stat-item:hover { border-color: var(--accent); }
.stat-item h3 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.5px;
}
.stat-item p {
  color: var(--gray);
  font-weight: 400;
  margin-top: 0.3rem;
}

/* sections */
.section-title {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 3rem;
  color: white;
}
.section-title .highlight {
  color: var(--gold);
}

.how-it-works, .features, .earnings, .testimonials, .faq {
  padding: 5rem 2rem;
}
.how-it-works { background: var(--bg-deep); }
.features { background: var(--bg-soft); }
.earnings { background: var(--bg-deep); }
.testimonials { background: var(--bg-soft); }
.faq { background: var(--bg-deep); }

.steps-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.step {
  background: rgba(255, 255, 255, 0.02);
  padding: 2.2rem 1.8rem;
  border-radius: 28px;
  border: 1px solid var(--border-light);
  text-align: center;
  transition: 0.25s;
}
.step:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.step-number {
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 1.2rem;
  color: white;
}
.step h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: white;
}
.step p { color: var(--gray); font-size: 0.95rem; }

.features-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 2.5rem 2rem;
  border-radius: 28px;
  border: 1px solid var(--border-light);
  transition: 0.25s;
}
.feature-card:hover {
  border-color: var(--gold);
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.04);
}
.feature-icon {
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: white;
}
.feature-card p { color: var(--gray); }

.earnings-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.earnings-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.earnings-list li {
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem 1.8rem;
  border-radius: 20px;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  border-left: 3px solid var(--gold);
}
.earnings-list .icon {
  font-size: 2rem;
  color: var(--gold);
  width: 2.8rem;
}
.earnings-list strong {
  color: white;
  font-weight: 600;
  display: block;
}
.earnings-list p { color: var(--gray); margin: 0; }

.earnings-visual {
  background: rgba(255, 255, 255, 0.02);
  padding: 3rem 2.5rem;
  border-radius: 32px;
  border: 1px solid var(--border-light);
  text-align: center;
}
.earnings-visual h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: white;
}
.earnings-amount {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -2px;
  margin: 0.5rem 0;
}
.earnings-breakdown {
  background: rgba(0,0,0,0.3);
  padding: 1.8rem;
  border-radius: 20px;
  margin-top: 2rem;
  text-align: left;
}
.earnings-breakdown p {
  display: flex;
  justify-content: space-between;
  color: var(--gray);
  margin-bottom: 0.3rem;
}
.earnings-breakdown strong { color: white; }

.testimonials-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.testimonial {
  background: rgba(255, 255, 255, 0.02);
  padding: 2.5rem 2rem;
  border-radius: 28px;
  border: 1px solid var(--border-light);
  transition: 0.25s;
}
.testimonial:hover { border-color: var(--accent); }
.testimonial-text {
  font-style: italic;
  color: var(--gray);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.author-avatar {
  width: 52px;
  height: 52px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}
.author-info h4 { color: white; font-weight: 600; }
.author-info p { color: var(--gray); font-size: 0.9rem; }

/* FAQ */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 24px;
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: 0.2s;
}
.faq-question:hover { background: rgba(255,255,255,0.02); }
.faq-toggle {
  font-size: 1.2rem;
  color: var(--gold);
  transition: 0.2s;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s;
  padding: 0 2rem;
  color: var(--gray);
}
.faq-answer.active {
  max-height: 300px;
  padding: 0 2rem 2rem;
}
.faq-toggle.active { transform: rotate(180deg); }

/* footer */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-light);
  padding: 4rem 2rem 2rem;
}
.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
}
.footer-section h3 {
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: white;
}
.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-section a {
  color: var(--gray);
  text-decoration: none;
  transition: 0.2s;
}
.footer-section a:hover { color: white; }
.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.social-links a {
  background: rgba(255,255,255,0.04);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: 0.2s;
  text-decoration: none;
  font-size: 1.3rem;
}
.social-links a:hover {
  background: var(--accent);
  color: white;
}
.footer-bottom {
  max-width: 1280px;
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
}

/* fade in */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* responsive */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text h1 { font-size: 2.8rem; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .earnings-content { grid-template-columns: 1fr; }
  .stats-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 4rem 1.5rem; }
  .hero-text h1 { font-size: 2.2rem; }
  .stats-container { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stat-item h3 { font-size: 2rem; }
  .section-title { font-size: 2rem; }
  .floating-card { padding: 1.8rem; }
}

@media (max-width: 500px) {
  .stats-container { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 1.8rem; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}