/* =========================================
   EarnView — Landing Page v2.0
   Clean, premium, human-designed
   ========================================= */

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10,10,18,0.75);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--spring);
}
.logo-icon:hover { transform: rotate(-8deg) scale(1.05); }
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
  border-radius: 1px;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-login {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.btn-login:hover { color: var(--text-primary); }
.btn-register {
  padding: 9px 22px;
  background: var(--accent);
  color: #0a0a12;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease);
}
.btn-register:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* === Hero === */
.hero {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 140px 24px 60px;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeIn 0.8s var(--ease);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: var(--accent-dim);
  border: 1px solid rgba(74,222,128,0.18);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.hero-title {
  font-size: 54px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 22px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}
.hero-stat { text-align: center; }
.hero-stat-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.hero-stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 500;
}
.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* === Ticker === */
.ticker-section {
  position: relative;
  z-index: 10;
  padding: 0 0 60px;
  overflow: hidden;
}
.ticker-container {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.ticker-label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.5px;
  padding: 5px 12px;
  background: var(--red-dim);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  text-transform: uppercase;
}
.ticker-track {
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.ticker-content {
  display: flex;
  gap: 36px;
  animation: scroll 50s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.ticker-item strong { color: var(--text-secondary); }
.ticker-item em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === How It Works === */
.how-section {
  position: relative;
  z-index: 10;
  padding: 80px 0;
}
.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.step-card {
  text-align: center;
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 280px;
  transition: all 0.35s var(--ease);
  backdrop-filter: blur(8px);
}
.step-card:hover {
  border-color: var(--border-active);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.step-number {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a12;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-icon { font-size: 36px; margin-bottom: 14px; }
.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.step-connector {
  padding: 0 10px;
  opacity: 0.4;
}

/* === Earnings === */
.earnings-section {
  position: relative;
  z-index: 10;
  padding: 80px 0;
}
.earnings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.earning-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  position: relative;
}
.earning-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.earning-card.featured {
  border-color: rgba(251,191,36,0.25);
  background: rgba(251,191,36,0.04);
}
.earning-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  padding: 3px 10px;
  background: var(--gold);
  color: #0a0a12;
  font-size: 10px;
  font-weight: 800;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.earning-icon { font-size: 32px; flex-shrink: 0; }
.earning-info { flex: 1; }
.earning-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.earning-info p { font-size: 13px; color: var(--text-muted); }
.earning-amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  text-align: right;
  letter-spacing: -0.02em;
}
.earning-amount span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.earnings-calculator {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.calc-header {
  padding: 16px 24px;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.calc-body { padding: 16px 24px; }
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.calc-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.calc-result {
  font-weight: 700;
  color: var(--text-primary);
}
.calc-result.highlight { color: var(--accent); font-size: 17px; }

/* === Referral === */
.referral-section {
  position: relative;
  z-index: 10;
  padding: 40px 0 80px;
}
.referral-card {
  display: flex;
  gap: 48px;
  align-items: center;
  padding: 48px;
  background: linear-gradient(135deg, rgba(74,222,128,0.05), rgba(96,165,250,0.04));
  border: 1px solid rgba(74,222,128,0.12);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
}
.referral-info { flex: 1; }
.referral-info h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.referral-info p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.referral-info ul { list-style: none; }
.referral-info li {
  padding: 5px 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.referral-visual {
  flex-shrink: 0;
}
.ref-tree { text-align: center; }
.ref-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
}
.ref-you {
  background: var(--accent);
  color: #0a0a12;
  font-size: 15px;
  margin-bottom: 8px;
}
.ref-line {
  width: 2px;
  height: 24px;
  background: rgba(74,222,128,0.25);
  margin: 0 auto;
}
.ref-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.ref-friend {
  background: var(--bg-card);
  border: 1px solid var(--border);
  flex-direction: column;
  gap: 4px;
}
.ref-friend span {
  display: block;
  font-size: 12px;
  color: var(--accent);
}

/* === Trust === */
.trust-section {
  position: relative;
  z-index: 10;
  padding: 60px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-item {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(8px);
}
.trust-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.trust-icon { font-size: 28px; margin-bottom: 12px; }
.trust-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.trust-item p { font-size: 13px; color: var(--text-muted); line-height: 1.45; }

/* === FAQ === */
.faq-section {
  position: relative;
  z-index: 10;
  padding: 80px 0;
}
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-arrow {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.35s var(--spring);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p {
  padding: 0 24px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* === Final CTA === */
.final-cta {
  position: relative;
  z-index: 10;
  padding: 40px 0 80px;
}
.cta-card {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(74,222,128,0.06), rgba(96,165,250,0.04));
  border: 1px solid rgba(74,222,128,0.12);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
}
.cta-card h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.cta-card p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.cta-note {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* === Footer === */
.footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
}
.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 48px;
}
.footer-brand { max-width: 280px; }
.footer-logo {
  font-size: 19px;
  font-weight: 800;
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 64px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* === Ad Banner Wrapper === */
.ad-banner-section {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  position: relative;
  z-index: 10;
}
.ad-banner-frame {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 90%;
  background: var(--bg-elevated);
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-title { font-size: 34px; letter-spacing: -0.03em; }
  .hero-subtitle { font-size: 16px; }
  .hero-stats { flex-direction: column; gap: 14px; padding: 20px 24px; }
  .hero-stat-divider { width: 40px; height: 1px; }
  .steps-grid { flex-direction: column; }
  .step-connector { transform: rotate(90deg); }
  .earnings-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .referral-card { flex-direction: column; padding: 32px 24px; gap: 24px; }
  .footer-container { flex-direction: column; }
  .footer-links { gap: 32px; flex-wrap: wrap; }
  .nav-actions .btn-login { display: none; }
  .cta-card { padding: 40px 24px; }
  .cta-card h2 { font-size: 26px; }
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.06); }
.nav-hamburger svg { display: block; }

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
}

/* === Testimonials === */
.testimonials-section { position:relative; z-index:10; padding:80px 0; }
.testimonials-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.testimonial-card {
  padding:28px 24px;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  transition:all .3s var(--ease);
  backdrop-filter:blur(8px);
}
.testimonial-card:hover { border-color:var(--border-active); transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.testimonial-stars { font-size:14px; margin-bottom:14px; letter-spacing:2px; }
.testimonial-text { font-size:14px; color:var(--text-secondary); line-height:1.7; margin-bottom:18px; font-style:italic; }
.testimonial-author { display:flex; align-items:center; gap:12px; }
.testimonial-avatar {
  width:38px; height:38px; border-radius:50%;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:15px; color:#0a0a12; flex-shrink:0;
}
.testimonial-author strong { display:block; font-size:14px; font-weight:700; }
.testimonial-author span { display:block; font-size:12px; color:var(--text-muted); margin-top:2px; }

/* === Live Counter === */
.live-counter-section { position:relative; z-index:10; padding:40px 0; }
.live-counter-grid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:16px;
  padding:32px 40px;
  background:linear-gradient(135deg,rgba(74,222,128,0.04),rgba(96,165,250,0.04));
  border:1px solid rgba(74,222,128,0.1);
  border-radius:var(--radius-xl);
  backdrop-filter:blur(8px);
}
.counter-item { text-align:center; }
.counter-value { font-size:28px; font-weight:900; color:var(--accent); letter-spacing:-0.03em; }
.counter-label { font-size:13px; color:var(--text-muted); margin-top:4px; font-weight:500; }

/* === Sticky Mobile CTA === */
.sticky-mobile-cta {
  display:none;
  position:fixed; bottom:0; left:0; right:0; z-index:999;
  padding:12px 16px; padding-bottom:max(12px,env(safe-area-inset-bottom));
  background:rgba(10,10,18,0.92);
  backdrop-filter:blur(16px);
  border-top:1px solid var(--border);
}
.sticky-cta-btn {
  display:block; width:100%; padding:14px;
  background:var(--accent); color:#0a0a12;
  font-size:15px; font-weight:800;
  border-radius:var(--radius); text-align:center;
  transition:all .25s var(--ease);
  box-shadow:0 4px 20px var(--accent-glow);
}
.sticky-cta-btn:hover { background:var(--accent-hover); transform:translateY(-1px); }

@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns:1fr; }
  .live-counter-grid { grid-template-columns:repeat(2,1fr); padding:24px 20px; }
  .sticky-mobile-cta { display:block; }
  body { padding-bottom:70px; }
}
