/* ═══════════════════════════════════════════════════
   HOMEPAGE V2 — Xtract + HeyMessage hybrid
   ═══════════════════════════════════════════════════ */

/* ═══ HERO ═══ */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* HeyMessage-style cinematic hero bg */
.hero-gradient{
  position: absolute;
  inset: 0;
  background: 
    url('/css/hero.jpg') center 30% / cover no-repeat;
}

/* Dark overlay for text readability + fade to bg */
.hero-gradient::after{
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, 
      rgba(10,10,10,0.4) 0%, 
      rgba(10,10,10,0.2) 30%, 
      rgba(10,10,10,0.3) 60%, 
      rgba(10,10,10,0.95) 85%,
      var(--bg) 100%
    );
}

/* Soft moving light — like a distant nebula */
.hero-bg::after{
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(129,74,200,0.08) 0%, rgba(80,40,150,0.04) 40%, transparent 70%);
  filter: blur(60px);
  animation: heroBreath 8s ease-in-out infinite;
}

@keyframes heroBreath{
  0%, 100%{ opacity: 0.6; transform: translateX(-50%) scale(1); }
  50%{ opacity: 1; transform: translateX(-50%) scale(1.15); }
}

.hero-content{
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-content .eyebrow{
  margin-bottom: 24px;
}

.hero-content h1{
  margin-bottom: 24px;
}

.hero-sub{
  font-size: 18px;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-actions{
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-lg{
  padding: 16px 40px;
  font-size: 16px;
}

/* Hero scroll indicator (HeyMessage style) */
.hero-scroll{
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-scroll span{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
}

.hero-scroll-line{
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse{
  0%, 100%{ opacity: 0.3; transform: scaleY(0.6); }
  50%{ opacity: 1; transform: scaleY(1); }
}

/* ═══ MARQUEE ═══ */
.marquee{
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  overflow: hidden;
}

.marquee-track{
  display: flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-track span{
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.marquee-track span::after{
  content: '·';
  margin-left: 48px;
  color: var(--subtle);
}

@keyframes marquee{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}

/* ═══ FEATURES GRID ═══ */
.features-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: 60px;
}

.feature-card{
  text-decoration: none;
  display: block;
  padding: 40px 32px;
  text-align: left;
}

.feature-icon{
  margin-bottom: 24px;
  color: var(--heading);
  opacity: 0.7;
}

.feature-card:hover .feature-icon{
  opacity: 1;
}

.feature-card h3{
  margin-bottom: 12px;
}

.feature-card p{
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.feature-link{
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  transition: color 0.2s;
}

.feature-card:hover .feature-link{
  color: var(--heading);
}

.feature-card:hover .feature-link{
  color: var(--heading);
}

/* ═══ CINEMATIC BREAK (HeyMessage style) ═══ */
.cinema-break{
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cinema-img{
  position: absolute;
  inset: 0;
  /* Placeholder — will be replaced with Midjourney cosmic image */
  background-size: cover;
  background-position: center;
}

.cinema-text{
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  padding: 0 24px;
}

.cinema-text p{
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  letter-spacing: -0.5px;
  line-height: 1.4;
  margin: 0 auto;
}

.cinema-text span{
  display: block;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 1px;
}

/* ═══ SECTION-DARK (subtle bg shift) ═══ */
.section-dark{
  background: #060606;
}

/* ═══ STEPS ═══ */
.steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 60px;
}

.step-num{
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 16px;
  letter-spacing: -2px;
}

.step h4{
  margin-bottom: 8px;
}

.step p{
  color: var(--muted);
  font-size: 15px;
}

/* ═══ STATS ═══ */
.stats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  text-align: center;
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-num{
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -2px;
}

.stat-label{
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

/* ═══ BENEFITS ═══ */
.benefits-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: 60px;
}

.benefit{
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--duration) var(--ease);
}

.benefit:hover{
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.02);
}

.benefit-icon{
  color: var(--heading);
  opacity: 0.5;
  margin-bottom: 16px;
}

.benefit:hover .benefit-icon{
  opacity: 0.8;
}

.benefit h4{
  margin-bottom: 8px;
}

.benefit p{
  color: var(--muted);
  font-size: 14px;
}

/* ═══ TESTIMONIALS ═══ */
.testimonials{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: 48px;
}

.testimonial-card{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px;
}

.testimonial-text{
  font-size: 16px;
  color: var(--text);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-author{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name{
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
}

.testimonial-info{
  font-size: 13px;
  color: var(--muted);
}

/* ═══ FAQ ═══ */
.faq-list{
  margin-top: 48px;
  max-width: 800px;
}

.faq-item{
  border-bottom: 1px solid var(--border);
}

.faq-q{
  width: 100%;
  background: none;
  border: none;
  color: var(--heading);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  text-align: left;
  padding: 24px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.faq-q::after{
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.3s var(--ease);
}

.faq-item.open .faq-q::after{
  transform: rotate(45deg);
  color: var(--accent-light);
}

.faq-a{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-item.open .faq-a{
  max-height: 300px;
}

.faq-a p{
  padding: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ═══ CTA FINAL ═══ */
.cta-final{
  position: relative;
  overflow: hidden;
  padding: 160px 0;
}

.cta-final h2{
  font-size: clamp(36px, 5vw, 56px);
}

.cta-final .btn{
  margin-top: 16px;
}

/* ═══ RESPONSIVE ═══ */
@media(max-width: 768px){
  .features-grid,
  .steps,
  .benefits-grid,
  .testimonials{
    grid-template-columns: 1fr;
  }
  .stats{
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .hero-content{
    padding: 100px 0 80px;
  }
  .hero-content h1 br{ display: none; }
}
