/* ============================================================
   HOMEPAGE STYLES
   Hero, social proof, problem, product showcase, bento
   features, benefits, video demo, and final CTA sections.
   ============================================================ */

/* ===========================================
   HERO — Full-viewport cinematic opening
   =========================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: calc(var(--navbar-height) + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  overflow: hidden;
}

/* Animated gradient orbs — atmospheric background depth */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  pointer-events: none;
}

.hero__orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(91, 58, 255, 0.3) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation: orbDrift1 20s ease-in-out infinite;
}

.hero__orb--2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(91, 58, 255, 0.2) 0%, transparent 70%);
  bottom: -5%;
  left: -10%;
  animation: orbDrift2 25s ease-in-out infinite;
}

.hero__orb--3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(124, 94, 255, 0.15) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation: orbDrift3 18s ease-in-out infinite;
}

.hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

/* Left column — text content */
.hero__content {
  max-width: 560px;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: var(--space-lg);
  animation: fadeUp 0.6s var(--ease-out) 0.1s both;
}

/* Headline uses Lexend (not Syne): weight 800 felt heavy at large sizes; 700 reads
   cleaner. A slightly smaller clamp than global --text-hero keeps this block (~560px)
   to about two lines instead of three at typical laptop widths. */
.hero__title {
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: clamp(1.95rem, 4.1vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  animation: fadeUp 0.6s var(--ease-out) 0.2s both;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 540px;
  line-height: 1.7;
  animation: fadeUp 0.6s var(--ease-out) 0.3s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  animation: fadeUp 0.6s var(--ease-out) 0.4s both;
}

.hero__trust {
  font-size: var(--text-sm);
  color: var(--text-muted);
  animation: fadeUp 0.6s var(--ease-out) 0.5s both;
}

/* Right column — product image */
.hero__visual {
  position: relative;
  animation: fadeUp 0.8s var(--ease-out) 0.4s both;
}

/* PNG with transparent background — no box, no rounded corners,
   no rectangular shadow. The image blends directly into the hero. */
.hero__image {
  width: 100%;
  max-width: 580px;
  border-radius: 0;
  background: none;
  filter: drop-shadow(0 0 40px rgba(91, 58, 255, 0.25));
  transition: filter var(--duration-slow) var(--ease-out);
}

.hero__image:hover {
  filter: drop-shadow(0 0 50px rgba(91, 58, 255, 0.35));
}

@media (max-width: 968px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--navbar-height) + var(--space-xl));
    padding-bottom: var(--space-xl);
  }

  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__trust {
    text-align: center;
  }

  .hero__visual {
    margin-bottom: var(--space-lg);
  }

  .hero__image {
    max-width: 280px;
    margin: 0 auto;
  }

  .hero__orb--1 { width: 300px; height: 300px; }
  .hero__orb--2 { width: 250px; height: 250px; }
  .hero__orb--3 { display: none; }
}

/* Mobile-only: homepage hero headline.
   Global mobile `h1` uses clamp(1.85rem, 6vw, 2.75rem). On narrow viewports the
   middle term (vw) is *smaller* than 1.85rem, so the size locks to 1.85rem (~30px).
   Our first tweak only raised the floor to 2rem — too subtle. This rule sets a
   higher minimum plus fluid scaling so the hero title is clearly larger on phones. */
@media (max-width: 768px) {
  .hero__title {
    /* Slightly reduced from prior mobile clamp to match the lighter desktop headline. */
    font-size: clamp(2rem, 4.5vw + 0.75rem, 3rem);
  }
}


/* ===========================================
   SOCIAL PROOF STRIP
   =========================================== */

.social-proof {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.social-proof__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}

.social-proof__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.social-proof__logos {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  justify-content: center;
}

.social-proof__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--duration-fast);
}

.social-proof__item i {
  font-size: 1.25rem;
}

.social-proof__item:hover {
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .social-proof {
    padding: var(--space-xl) 0;
  }

  .social-proof__inner {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .social-proof__logos {
    gap: var(--space-lg);
  }
}


/* ===========================================
   PROBLEM STATEMENT — Pain-point cards (quote + description)
   Centered headline → 3-column card row → solution strip
   =========================================== */

.problems {
  padding: var(--space-section) 0;
}

/* ── Header: centered above the cards ── */
.problems__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-3xl);
}

.problems__title {
  margin-bottom: var(--space-md);
}

.problems__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

/* ── Three cards side by side ── */
.problems__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

/* Individual pain-point card — compact padding; no ordinals above the quote */
.problem-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  /* Red top accent — signals "this is a problem" */
  border-top: 3px solid var(--accent-danger);
  border-radius: 12px;
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  /* Smooth hover transition */
  transition: border-top-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* On hover: red → brand purple, slight lift */
.problem-card:hover {
  border-top-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* The pain-point quote — bold italic, prominent */
.problem-card__quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0; /* reset default blockquote margins for tighter card height */
}

/* Supporting context — stacks under quote without margin-top:auto (that stretched equal-height rows) */
.problem-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ── Solution strip: centered below the cards ── */
.problems__solution {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
  max-width: 600px;
  margin: 0 auto;
}

.problems__body {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Mobile: stack cards vertically ── */
@media (max-width: 768px) {
  .problems__cards {
    grid-template-columns: 1fr;
  }
}


/* ===========================================
   PRODUCT SHOWCASE — "How It Works"
   Alternating image/text vertical flow
   =========================================== */

.showcase {
  padding: var(--space-section) 0;
  background: var(--bg-secondary);
}

.showcase__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
}

.showcase__step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

/* Reverse every other step for visual rhythm */
.showcase__step:nth-child(even) {
  direction: rtl;
}

.showcase__step:nth-child(even) > * {
  direction: ltr;
}

.showcase__step-number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--brand-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.showcase__step-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.showcase__step-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
}

.showcase__step-image {
  display: block;
  width: 100%;
  max-width: 580px;
  margin-inline: auto;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  /* Crop inside a fixed aspect frame so mixed assets don’t fight each other in the grid */
  object-fit: cover;
  transition:
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
}

/* People shots: same aspect as Podcaster man asset (823×900) so step 1 & 3 feel like a pair.
   Step 3 source is very tall/narrow (198×317); without this it grows much taller than step 1. */
.showcase__step:nth-child(1) .showcase__step-image {
  aspect-ratio: 823 / 900;
  object-position: center;
}

/* Laptop mockup — matches 1200×900 (4:3) source */
.showcase__step:nth-child(2) .showcase__step-image {
  aspect-ratio: 4 / 3;
  object-position: center;
}

/* Step 3 image is landscape (1376×768 ≈ 16:9); center crop keeps face and studio in frame */
.showcase__step:nth-child(3) .showcase__step-image {
  aspect-ratio: 16 / 9;
  object-position: center;
}

.showcase__step-image:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow-brand), var(--shadow-elevated);
}

@media (max-width: 768px) {
  .showcase__step {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .showcase__step-number,
  .showcase__step-title {
    text-align: center;
  }

  .showcase__step:nth-child(even) {
    direction: ltr;
  }

  /* Text column (number, title, body copy): extra horizontal inset on narrow screens.
     The .container already has side padding, but long paragraphs still feel flush;
     this nudges copy inward so lines are less likely to clip or feel edge-to-edge. */
  .showcase__step > div:first-child {
    padding-inline: var(--space-md);
  }

  .showcase__step-desc {
    max-width: 100%;
  }

  .showcase__step-image {
    max-width: 400px;
    margin: 0 auto;
  }
}


/* ===========================================
   BENTO FEATURE GRID
   =========================================== */

/* ---------- Bento Section ---------- */
.bento {
  padding: var(--space-section) 0;
}

/* --- Grid: 3 columns, zigzag wide cards (L-R-L) filling every row --- */
.bento__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/*
 * Zigzag span pattern — guarantees 3 column-units per row:
 *   Row 1: Card 1 (span 2) + Card 2 (span 1) → wide LEFT
 *   Row 2: Card 3 (span 1) + Card 4 (span 2) → wide RIGHT
 *   Row 3: Card 5 (span 2) + Card 6 (span 1) → wide LEFT
 */
.bento__card:nth-child(1),
.bento__card:nth-child(5) { grid-column: span 2; }
.bento__card:nth-child(4) { grid-column: span 2; }

/* --- Per-card accent colors for icon tint and hover glow --- */
.bento__card:nth-child(1) { --_accent: #22d3ee; --_glow: rgba(34, 211, 238, 0.12); }
.bento__card:nth-child(2) { --_accent: #34d399; --_glow: rgba(52, 211, 153, 0.12); }
.bento__card:nth-child(3) { --_accent: #fbbf24; --_glow: rgba(251, 191, 36, 0.12); }
.bento__card:nth-child(4) { --_accent: #f472b6; --_glow: rgba(244, 114, 182, 0.12); }
.bento__card:nth-child(5) { --_accent: #fb923c; --_glow: rgba(251, 146, 60, 0.12); }
.bento__card:nth-child(6) { --_accent: var(--brand-light); --_glow: rgba(91, 58, 255, 0.12); }

/* --- Base Card --- */
.bento__card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition:
    background var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out);
}

/* Thin gradient accent line across the top of wide (featured) cards */
.bento__card:nth-child(1)::before,
.bento__card:nth-child(4)::before,
.bento__card:nth-child(5)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--_accent), transparent);
  opacity: 0.5;
}

.bento__card:hover {
  background: var(--bg-card-hover);
  border-color: color-mix(in srgb, var(--_accent) 40%, transparent);
  box-shadow: 0 0 40px var(--_glow);
  transform: translateY(-4px);
}

/* Icon — tinted per card */
.bento__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
  background: var(--_glow);
  color: var(--_accent);
  margin-bottom: var(--space-lg);
  flex-shrink: 0;
}

.bento__icon svg {
  width: 24px;
  height: 24px;
}

.bento__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.bento__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Mobile: single-column stack --- */
@media (max-width: 768px) {
  .bento__grid {
    grid-template-columns: 1fr;
  }

  .bento__card:nth-child(1),
  .bento__card:nth-child(4),
  .bento__card:nth-child(5) {
    grid-column: span 1;
  }
}

/* --- Tablet: even 2×3 grid (all cards equal width for clean fill) --- */
@media (min-width: 769px) and (max-width: 1024px) {
  .bento__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento__card:nth-child(1),
  .bento__card:nth-child(4),
  .bento__card:nth-child(5) {
    grid-column: span 1;
  }
}


/* ===========================================
   BENEFITS
   =========================================== */

.benefits {
  padding: var(--space-section) 0;
  background: var(--bg-secondary);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.benefit {
  padding: var(--space-xl);
  border-left: 3px solid var(--brand);
}

.benefit__icon {
  font-size: 1.5rem;
  color: var(--brand-light);
  margin-bottom: var(--space-lg);
}

.benefit__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.benefit__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.benefit__outcome {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--brand-light);
  letter-spacing: 0.05em;
}

/* Feature checklist */
.checklist {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
}

.checklist__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.checklist__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.checklist__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.checklist__item i {
  color: var(--accent-success);
  font-size: var(--text-sm);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .benefits__grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .checklist__grid {
    grid-template-columns: 1fr;
  }
}


/* ===========================================
   VIDEO DEMO SECTION
   =========================================== */

.video-section {
  padding: var(--space-section) 0;
}

.video-section__wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 80px rgba(91, 58, 255, 0.12),
    0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-section__wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* ===========================================
   FAQ (homepage variant)
   =========================================== */

.home-faq {
  padding: var(--space-section) 0;
  background: var(--bg-secondary);
}


/* ===========================================
   FINAL CTA
   =========================================== */

.final-cta {
  position: relative;
  padding: var(--space-section) 0;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      var(--bg-primary) 0%,
      rgba(91, 58, 255, 0.08) 50%,
      var(--bg-primary) 100%
    );
}

/* Decorative glow behind the CTA */
.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(91, 58, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.final-cta__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.final-cta__title {
  margin-bottom: var(--space-md);
}

.final-cta__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.final-cta__trust {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.final-cta__socials {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.final-cta__socials-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.final-cta__social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.final-cta__social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-size: var(--text-base);
  transition:
    color var(--duration-fast),
    border-color var(--duration-fast),
    background var(--duration-fast);
}

.final-cta__social-link:hover {
  color: var(--brand-light);
  border-color: var(--brand);
  background: var(--brand-subtle);
}
