/* ========================================
   ForecastHer — Landing Page Styles
   Colors: Purple #A78BFA, Teal #4FD1C5
   Fonts: Playfair Display (headlines), Inter (body)
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a2e;
  background: #fefcff;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* --- Typography --- */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
}

.section-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  color: #1a1a2e;
}

.section-sub {
  text-align: center;
  color: #6b7280;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #A78BFA, #7c5cbf);
  color: #fff;
  padding: 14px 32px;
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(167, 139, 250, 0.5);
}

.btn-secondary {
  background: transparent;
  color: #A78BFA;
  padding: 12px 28px;
  border: 2px solid #A78BFA;
}

.btn-secondary:hover {
  background: rgba(167, 139, 250, 0.08);
  transform: translateY(-1px);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
  border-radius: 14px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 24px 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #ede9fe 0%, #e0e7fe 25%, #ccfbf1 55%, #f0e6ff 100%);
  z-index: 0;
}

/* Moon */
.moon-container {
  position: absolute;
  top: 8%;
  right: 10%;
  z-index: 1;
}

.moon {
  width: 120px;
  height: 120px;
  position: relative;
}

.moon-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.25) 0%, transparent 70%);
  animation: moonPulse 4s ease-in-out infinite;
}

.moon-surface {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f5f0ff, #ddd6fe, #c4b5fd);
  box-shadow: 0 0 40px rgba(167, 139, 250, 0.3), inset -8px -4px 16px rgba(124, 92, 191, 0.2);
}

.moon-phase {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent 45%, rgba(30, 20, 60, 0.12) 55%, rgba(30, 20, 60, 0.2) 100%);
  animation: moonPhaseShift 8s ease-in-out infinite alternate;
}

@keyframes moonPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes moonPhaseShift {
  0% { clip-path: inset(0 0% 0 0); }
  100% { clip-path: inset(0 10% 0 0); }
}

/* Floating Orbs */
.floating-orbs {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
}

.orb-1 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #c4b5fd 0%, transparent 70%);
  top: 60%;
  left: -5%;
  animation: float1 12s ease-in-out infinite;
}

.orb-2 {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, #67e8f9 0%, transparent 70%);
  top: 20%;
  left: 15%;
  animation: float2 10s ease-in-out infinite;
}

.orb-3 {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, #f9a8d4 0%, transparent 70%);
  bottom: 15%;
  right: 8%;
  animation: float3 14s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -40px); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 30px); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(25px, -25px); }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
}

.hero-tag {
  display: inline-block;
  background: rgba(167, 139, 250, 0.12);
  color: #7c3aed;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero-headline {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #4b5563;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* Hero Form */
.hero-form {
  margin-bottom: 24px;
}

.form-row {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.form-row input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}

.form-row input[type="email"]:focus {
  border-color: #A78BFA;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

.hero-form-note {
  font-size: 0.82rem;
  color: #9ca3af;
  margin-top: 12px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Social Proof */
.hero-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.avatars {
  display: flex;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  border: 2px solid #fff;
  margin-left: -8px;
}

.avatar:first-child { margin-left: 0; }

.social-proof-text {
  font-size: 0.88rem;
  color: #6b7280;
}

/* Scroll Hint */
.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #9ca3af;
  font-size: 0.78rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ========================================
   PROBLEM SECTION
   ======================================== */
.problem {
  padding: 100px 0 80px;
  background: #fff;
}

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

.card-problem {
  background: #faf8ff;
  border: 1px solid #ede9fe;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-problem:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(167, 139, 250, 0.1);
}

.card-icon {
  margin-bottom: 16px;
}

.card-problem p {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.6;
}

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

/* ========================================
   MARKETS SECTION
   ======================================== */
.markets {
  padding: 100px 0;
  background: linear-gradient(180deg, #f9fafb 0%, #faf8ff 100%);
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.market-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.market-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-color: #c4b5fd;
}

.market-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.market-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.market-card-header .market-tag {
  margin-bottom: 0;
}

.market-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  width: fit-content;
}

.tag-health { background: #ede9fe; color: #7c3aed; }
.tag-fertility { background: #ccfbf1; color: #0d9488; }
.tag-culture { background: #fce7f3; color: #be185d; }
.tag-tech { background: #e0e7ff; color: #4338ca; }
.tag-business { background: #fef3c7; color: #b45309; }

.market-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.45;
  margin-bottom: 16px;
  flex: 1;
}

/* Odds Bar */
.market-odds {
  margin-bottom: 14px;
}

.odds-bar {
  height: 8px;
  background: #f3f4f6;
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
}

.odds-fill {
  height: 100%;
  background: linear-gradient(90deg, #A78BFA, #4FD1C5);
  border-radius: 100px;
  transition: width 1s ease-out;
}

.odds-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #6b7280;
}

.odds-pct {
  font-weight: 700;
  color: #1a1a2e;
}

.odds-yes .odds-pct { color: #7c3aed; }
.odds-no .odds-pct { color: #9ca3af; }

/* Market Meta */
.market-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.market-date { color: #9ca3af; }

.market-badge {
  background: linear-gradient(135deg, #A78BFA, #4FD1C5);
  color: #fff;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.markets-note {
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* ========================================
   BENEFITS SECTION
   ======================================== */
.benefits {
  padding: 100px 0 80px;
  background: #fff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 40px auto;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: #faf8ff;
  border: 1px solid #ede9fe;
  border-radius: 14px;
  transition: transform 0.2s ease;
}

.benefit-item:hover {
  transform: translateY(-2px);
}

.benefit-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(167, 139, 250, 0.1);
}

.benefit-item h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.benefit-item p {
  font-size: 0.9rem;
  color: #6b7280;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 48px auto 0;
}

.testimonial {
  text-align: center;
  padding: 28px 20px;
  background: linear-gradient(135deg, #faf8ff, #f0fdfa);
  border-radius: 14px;
  border: 1px solid #ede9fe;
}

.testimonial p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.testimonial span {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ========================================
   EMPOWERMENT SECTION
   ======================================== */
.empowerment {
  padding: 80px 0;
  background: linear-gradient(160deg, #ede9fe 0%, #ccfbf1 100%);
  text-align: center;
}

.empowerment-text {
  font-size: 1.1rem;
  color: #4b5563;
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.stat-callout {
  display: inline-block;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 32px 48px;
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #7c3aed, #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-callout p {
  color: #4b5563;
  font-size: 0.95rem;
  max-width: 400px;
}

/* ========================================
   FINAL CTA SECTION
   ======================================== */
.final-cta {
  padding: 100px 0;
  background: #1a1a2e;
  text-align: center;
}

.final-cta .section-headline {
  color: #fff;
}

.final-cta .section-sub {
  color: rgba(255, 255, 255, 0.6);
}

.final-form {
  max-width: 440px;
  margin: 0 auto;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-stack input {
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.form-stack input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-stack input:focus {
  border-color: #A78BFA;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: #111122;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

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

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #A78BFA;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #A78BFA;
}

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

.footer-privacy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-made {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 4px;
}

.footer-contact a {
  color: #A78BFA;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: #c4b5fd;
}

.footer-link {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: underline;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #A78BFA;
}

/* ========================================
   FLOATING CTA BAR
   ======================================== */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 24px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.floating-cta.visible {
  transform: translateY(0);
}

.floating-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.floating-cta-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.floating-cta-text strong {
  color: #fff;
}

.btn-float {
  padding: 10px 24px;
  font-size: 0.9rem;
  border-radius: 10px;
}

/* ========================================
   MODAL
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover { color: #4b5563; }

.modal-icon {
  margin-bottom: 16px;
}

.modal h3 {
  font-size: 1.3rem;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.modal p {
  color: #6b7280;
  font-size: 0.95rem;
}

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

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .cards-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .markets-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .testimonials {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .moon-container {
    top: 5%;
    right: 5%;
  }

  .moon {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 80px 20px 60px;
  }

  .hero-headline {
    font-size: 2.25rem;
  }

  .form-row {
    flex-direction: column;
  }

  .form-row .btn {
    width: 100%;
  }

  .markets-grid {
    grid-template-columns: 1fr;
  }

  .stat-callout {
    padding: 24px 28px;
  }

  .stat-number {
    font-size: 2.25rem;
  }

  .section-headline {
    font-size: 1.5rem;
  }

  .moon-container {
    top: 3%;
    right: 3%;
  }

  .moon {
    width: 60px;
    height: 60px;
  }

  .hero-social-proof {
    flex-direction: column;
    gap: 8px;
  }

  .final-form {
    padding: 0 8px;
  }

  .modal {
    padding: 36px 24px;
  }

  .floating-cta-inner {
    flex-direction: column;
    gap: 10px;
  }

  .floating-cta-text {
    font-size: 0.85rem;
  }

  .btn-float {
    width: 100%;
  }
}
