/* ===========================
   SideHustleQuiz — styles.css
   =========================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple: #7C3AED;
  --purple-dark: #5B21B6;
  --purple-light: #EDE9FE;
  --gold: #F59E0B;
  --gold-dark: #D97706;
  --gold-light: #FEF3C7;
  --bg: #FAFAFA;
  --white: #FFFFFF;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --text: #1F2937;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(124, 58, 237, 0.1);
  --shadow-lg: 0 8px 48px rgba(124, 58, 237, 0.18);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Utility --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover {
  background: var(--purple-dark);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.45);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}
.btn-gold:hover {
  background: var(--gold-dark);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.45);
}

.btn-lg {
  padding: 20px 44px;
  font-size: 1.2rem;
}

.section-label {
  display: inline-block;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto 48px;
}

.text-center { text-align: center; }

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  padding: 14px 0;
  transition: box-shadow var(--transition);
}
nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.08); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo span { color: var(--gray-900); }

.nav-cta {
  padding: 10px 24px;
  font-size: 0.95rem;
}

/* ===== HERO ===== */
.hero {
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-title .highlight {
  color: var(--purple);
  position: relative;
}
.hero-title .highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray-500);
}

.avatars {
  display: flex;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--white);
  margin-left: -8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-light);
}
.avatar:first-child { margin-left: 0; }

.social-text strong { color: var(--gray-900); }

.hero-image-area {
  margin-top: 60px;
  position: relative;
  display: flex;
  justify-content: center;
}

.quiz-preview-card {
  background: var(--white);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124, 58, 237, 0.08);
  max-width: 480px;
  width: 100%;
  text-align: left;
  position: relative;
}

.quiz-preview-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--purple), var(--gold));
  z-index: -1;
  opacity: 0.2;
}

.progress-bar-wrap {
  background: var(--gray-100);
  border-radius: 50px;
  height: 8px;
  margin-bottom: 24px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  border-radius: 50px;
  width: 40%;
  animation: progress-pulse 2s ease-in-out infinite alternate;
}
@keyframes progress-pulse {
  from { width: 20%; }
  to { width: 60%; }
}

.quiz-step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.quiz-question {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quiz-option {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
  text-align: center;
}
.quiz-option.selected {
  border-color: var(--purple);
  background: var(--purple-light);
  color: var(--purple);
}
.quiz-option:hover:not(.selected) {
  border-color: var(--purple);
  background: var(--gray-100);
}

.floating-badge {
  position: absolute;
  background: var(--white);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.badge-left {
  left: -80px;
  top: 40px;
  animation-delay: 0s;
}
.badge-right {
  right: -80px;
  bottom: 60px;
  animation-delay: 1.5s;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 96px 0;
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 0;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(16.6% + 24px);
  right: calc(16.6% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  z-index: 0;
}

.step-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--gray-200);
  position: relative;
  z-index: 1;
  transition: transform var(--transition), box-shadow var(--transition);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
}

.step-tag {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  margin-top: 14px;
}

/* ===== CATEGORIES ===== */
.categories {
  padding: 96px 0;
  background: var(--bg);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--purple);
}

.category-emoji {
  font-size: 2.5rem;
  margin-bottom: 14px;
  display: block;
}
.category-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.category-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 14px;
}
.category-income {
  display: inline-block;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

.categories-cta {
  text-align: center;
}
.categories-cta p {
  font-size: 1.1rem;
  color: var(--gray-700);
  margin-bottom: 20px;
  font-weight: 500;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--purple) 0%, #5B21B6 100%);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  pointer-events: none;
}

.testimonials .section-label {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.testimonials .section-title { color: #fff; }
.testimonials .section-sub { color: rgba(255,255,255,0.75); }

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

.testimonial-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform var(--transition), background var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.15);
}

.stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 1rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.testimonial-info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.testimonial-info span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

.testimonial-earning {
  margin-left: auto;
  background: var(--gold);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

/* ===== FAQ ===== */
.faq {
  padding: 96px 0;
  background: var(--white);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-item:first-child { border-top: 1px solid var(--gray-200); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--purple); }

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--purple-light);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
  font-weight: 400;
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--purple);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.75;
}

/* ===== FINAL CTA ===== */
.final-cta {
  padding: 96px 0;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card {
  background: var(--white);
  border-radius: 32px;
  padding: 72px 48px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124, 58, 237, 0.06);
  position: relative;
  z-index: 1;
}

.cta-emoji {
  font-size: 3.5rem;
  margin-bottom: 20px;
  display: block;
}

.cta-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cta-card p {
  font-size: 1.1rem;
  color: var(--gray-500);
  margin-bottom: 36px;
}

.cta-note {
  font-size: 0.85rem !important;
  color: var(--gray-500) !important;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
}

/* ===== FOOTER ===== */
footer {
  background: var(--gray-900);
  color: var(--gray-500);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-logo small {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gray-500);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--gray-500);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .floating-badge { display: none; }
}

@media (max-width: 640px) {
  .categories-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .how-it-works, .categories, .testimonials, .faq, .final-cta { padding: 64px 0; }
  .cta-card { padding: 48px 28px; }
  .nav-logo span { display: none; }
  .quiz-options { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ===== COUNTER ANIMATION ===== */
.count-up {
  display: inline-block;
}

/* ===== PULSE ANIMATION ON CTA ===== */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(124, 58, 237, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}
.btn-pulse {
  animation: pulse-ring 2s ease-out infinite;
}
