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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #10b981;
  --dark: #0a0a0f;
  --dark-2: #111118;
  --dark-3: #1a1a2e;
  --card-bg: #16162a;
  --border: rgba(255,255,255,0.07);
  --text-muted: #94a3b8;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark);
  color: #e2e8f0;
  line-height: 1.6;
}

/* ── NAVBAR ── */
#mainNav {
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

#mainNav.scrolled {
  background: rgba(10, 10, 15, 0.95);
  padding: 0.75rem 0;
}

.brand-icon { font-size: 1.1rem; }

.navbar-brand { color: #fff !important; letter-spacing: -0.5px; }

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem !important;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.navbar-nav .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.06);
}

.btn-primary {
  background: var(--gradient);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: -0.2px;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-outline-light {
  border-radius: 12px;
  font-weight: 600;
  border-color: rgba(255,255,255,0.25);
  transition: all 0.2s;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: rgba(255,255,255,0.85);
  border-radius: 12px;
  transition: all 0.2s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ── HERO ── */
.hero-section {
  min-height: 100vh;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}
.shape-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: -150px; right: -100px;
}
.shape-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  bottom: -100px; left: -100px;
}
.shape-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
  top: 40%; left: 30%;
  opacity: 0.15;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #a5b4fc;
}
.dot {
  width: 7px; height: 7px;
  background: #6366f1;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: #fff;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
}

.avatar-stack {
  display: flex;
}
.avatar-stack img {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--dark);
  margin-left: -8px;
}
.avatar-stack img:first-child { margin-left: 0; }

/* Hero dashboard */
.hero-card-wrap { position: relative; }

.hero-dashboard {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.hero-card {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  z-index: 2;
}
.card-float-1 { top: -20px; left: -40px; min-width: 200px; }
.card-float-2 { bottom: 30px; right: -40px; min-width: 200px; }

.card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}

.proj-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}

.project-row:last-child { border: none !important; }

.stars { color: #f59e0b; }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

.stat-item {
  padding: 1rem;
}

/* ── SECTIONS ── */
.section-padding { padding: 100px 0; }

.section-tag {
  display: inline-block;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  color: #a5b4fc;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #fff;
  line-height: 1.15;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  line-height: 1.7;
}

.bg-light-custom { background: var(--dark-2) !important; }

/* ── HOW IT WORKS ── */
.step-card {
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
}

.step-number {
  font-size: 3.5rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.step-icon {
  width: 60px; height: 60px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0 auto;
}

.steps-line {
  position: absolute;
  top: 110px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(99,102,241,0.4), transparent);
  z-index: 0;
}

/* ── REWARDS ── */
.rewards-section { background: var(--dark-3); }

.reward-list li { color: #cbd5e1; }

.check-icon {
  width: 22px; height: 22px;
  background: rgba(99,102,241,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--primary);
}

.rewards-visual { position: relative; padding: 40px 40px 40px 0; }

.reward-card-main {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

.rank-badge {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.1);
  color: #94a3b8;
  flex-shrink: 0;
}
.rank-badge.gold { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.rank-badge.silver { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }
.rank-badge.bronze { background: linear-gradient(135deg, #b87333, #92400e); color: #fff; }

.reward-bubble {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  white-space: nowrap;
}
.bubble-1 { top: 10px; right: -20px; }
.bubble-2 { bottom: 50px; left: -20px; }

/* ── SERVICES ── */
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 20px 60px rgba(99,102,241,0.1);
}

.service-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}

.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
}

/* ── PROJECTS ── */
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99,102,241,0.3);
}

.progress { background: rgba(255,255,255,0.08); border-radius: 100px; }
.progress-bar { border-radius: 100px; }

/* ── TESTIMONIALS ── */
.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  color: #cbd5e1;
  transition: transform 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-card p:first-of-type { font-size: 0.95rem; line-height: 1.7; font-style: italic; }

.featured-testimonial {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.1));
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 0 40px rgba(99,102,241,0.15);
}

/* ── CTA ── */
.cta-section {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.3) 0%, transparent 70%);
}

.cta-box { max-width: 640px; position: relative; z-index: 1; }

.btn-light {
  background: #fff;
  color: var(--primary-dark) !important;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.2s;
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

/* ── FOOTER ── */
.footer-section {
  background: var(--dark);
  border-top: 1px solid var(--border);
}

.footer-links { padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.9rem;
}
.social-link:hover {
  background: rgba(99,102,241,0.2);
  border-color: rgba(99,102,241,0.4);
  color: #a5b4fc;
}

.footer-bottom { border-color: var(--border) !important; }

/* ── DEV ROW ── */
.dev-row { border-radius: 12px; transition: background 0.2s; }
.dev-row:hover { background: rgba(99,102,241,0.08) !important; }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
  .hero-section { padding: 100px 0 60px; }
  .hero-title { font-size: 2.4rem; letter-spacing: -1.5px; }
  .card-float-1, .card-float-2 { display: none; }
  .rewards-visual { padding: 0; }
  .bubble-1, .bubble-2 { display: none; }
}

@media (max-width: 575px) {
  .section-padding { padding: 70px 0; }
  .hero-title { font-size: 2rem; }
  .stat-number { font-size: 1.8rem; }
  .step-card { padding: 1.5rem 1rem; }
}

/* ── EARN SECTION ── */
.earn-section { background: var(--dark-2); }

.earn-step-icon {
  width: 40px; height: 40px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
}

.earn-email {
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(165,180,252,0.4);
  transition: color 0.2s;
}
.earn-email:hover { color: #6366f1; }

.earn-visual { position: relative; }

.earn-info-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);
}

.earn-badge-icon {
  width: 48px; height: 48px;
  background: rgba(99,102,241,0.1);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.quality-bar-item .progress { background: rgba(255,255,255,0.06); border-radius: 100px; }
.quality-bar-item .progress-bar { border-radius: 100px; }

.earn-highlight-box {
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
}

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