/* ============================================================
   pages/landing.css — VidForge AI Landing Page
   Scope: Landing-page-only overrides and section styles.
   Rule: Zero raw hex. Consumes tokens + components only.
   ============================================================ */


/* ════════════════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════════════════ */

.hero {
  padding-block: var(--hero-py);          /* clamp(96px, 14vw, 192px) */
  position: relative;
  overflow: hidden;
}

/* Ambient radial glow behind hero content */
.hero::before {
  content: '';
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: var(--primitive-radius-pill);
  background: radial-gradient(
    circle,
    rgba(240, 82, 20, 0.12) 0%,
    transparent 70%
  );
  top: -200px;
  right: -80px;
  pointer-events: none;
  z-index: 0;
}

/* ── Asymmetric 2-column grid (Golden Ratio 1.618fr / 1fr) ── */
.hero-inner {
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  gap: var(--primitive-space-16);
  align-items: center;
  position: relative;
  z-index: 1;                             /* Sits above ::before glow */
}

/* ── Left: Text column ──────────────────────────────────── */
.hero-text {
  display: flex;
  flex-direction: column;
}

.hero-h1 {
  font-size: var(--text-display-xl);      /* clamp(36px, 6vw, 88px) */
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: var(--primitive-space-6);
}

.hero-accent {
  color: var(--accent-primary);
  /* Subtle text-shadow glow on the accent word */
  text-shadow: 0 0 48px var(--accent-glow);
}

.hero-sub {
  font-size: var(--text-body-xl);
  color: var(--text-secondary);
  max-width: 56ch;
  line-height: 1.65;
  margin-bottom: var(--primitive-space-8);
}

/* ── CTA pair ───────────────────────────────────────────── */
.hero-ctas {
  display: flex;
  gap: var(--primitive-space-4);
  flex-wrap: wrap;
  margin-bottom: var(--primitive-space-10);
}

/* ── Stat strip ─────────────────────────────────────────── */
.hero-stats {
  display: flex;
  gap: var(--primitive-space-8);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--primitive-space-1);
}

.stat-value {
  display: block;
  font-family: var(--primitive-font-display);
  font-size: var(--text-h2);
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-label {
  font-size: var(--text-body-sm);
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Right: Visual mockup ───────────────────────────────── */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-mock {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: var(--primitive-space-4);
  /* Subtle float animation to add life to the mock card */
  animation: hero-float 5s var(--primitive-ease-standard) infinite alternate;
}

@keyframes hero-float {
  from { transform: translateY(0);    }
  to   { transform: translateY(-10px); }
}

/* Mock video thumbnail area */
.video-mock-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--primitive-radius-lg);
}

/* Status badges row */
.video-mock-status {
  display: flex;
  gap: var(--primitive-space-2);
  align-items: center;
}

/* Meta text skeleton lines */
.video-mock-meta {
  display: flex;
  flex-direction: column;
}

/* Scene strip — 4 numbered tiles */
.video-mock-scenes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--primitive-space-2);
}

.mock-scene {
  aspect-ratio: 1 / 1;
  border-radius: var(--primitive-radius-md);
  background: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.mock-scene--done {
  background: var(--color-success-bg);
  border-color: var(--color-success);
}

.mock-scene--active {
  background: var(--accent-primary-muted);
  border-color: var(--accent-primary);
  /* Pulsing border on the active scene */
  animation: scene-pulse 1.8s var(--primitive-ease-standard) infinite;
}

@keyframes scene-pulse {
  0%, 100% { box-shadow: 0 0 0 0   var(--accent-glow); }
  50%       { box-shadow: 0 0 0 6px transparent;        }
}

.mock-scene-label {
  font-family: var(--primitive-font-display);
  font-size: var(--text-body-sm);
  font-weight: 700;
  color: var(--text-tertiary);
}

.mock-scene--done   .mock-scene-label { color: var(--color-success);  }
.mock-scene--active .mock-scene-label { color: var(--accent-primary);  }

/* Action buttons row */
.video-mock-actions {
  display: flex;
  gap: var(--primitive-space-3);
  padding-top: var(--primitive-space-2);
  border-top: 1px solid var(--border-subtle);
}


/* ════════════════════════════════════════════════════════════
   HERO RESPONSIVE
   ════════════════════════════════════════════════════════════ */

/* Tablet — collapse to single column, hide visual mock */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--primitive-space-10);
  }

  .hero-visual {
    display: none;
  }

  .hero-h1 {
    /* Slightly tighter on mid-width screens */
    letter-spacing: -0.025em;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
  }

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

  .hero-stats {
    gap: var(--primitive-space-6);
  }
}


/* ════════════════════════════════════════════════════════════
   HOW IT WORKS SECTION
   ════════════════════════════════════════════════════════════ */

/* ── Centered section header ─────────────────────────────── */
.section-header-centered {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--primitive-space-12);
}

.section-header-centered .section-sub {
  margin-inline: auto;
}

/* ── 3-column steps grid ─────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--primitive-space-6);
  position: relative;
}

/* ── Dashed connector line between cards (desktop only) ──── */
/* Rendered as a ::after on the first and second step cards.
   Uses a CSS gradient trick to draw a dashed line at
   mid-card height without extra markup. */
.steps-grid .step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 52px;                              /* Aligns with step-number centre */
  right: calc(-1 * var(--primitive-space-6) / 2 - 12px);
  width: calc(var(--primitive-space-6) + 24px);
  height: 2px;
  background-image: repeating-linear-gradient(
    to right,
    var(--border-default) 0,
    var(--border-default) 6px,
    transparent 6px,
    transparent 12px
  );
  pointer-events: none;
  z-index: 1;
}

/* ── Individual step card ────────────────────────────────── */
.step-card {
  display: flex;
  flex-direction: column;
  gap: var(--primitive-space-4);
  position: relative;                     /* Needed for ::after positioning */
}

.step-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--primitive-space-3);
}

/* Large decorative step number */
.step-number {
  font-family: var(--primitive-font-display);
  font-size: var(--text-display-lg);      /* clamp(28px, 4.5vw, 64px) */
  font-weight: 900;
  /* Muted — purely decorative, not primary info */
  color: var(--accent-primary-muted);
  letter-spacing: -0.04em;
  line-height: 1;
}

.step-title {
  margin: 0;
  font-size: var(--text-h3);
}

.step-body {
  color: var(--text-secondary);
  font-size: var(--text-body-md);
  line-height: 1.65;
  flex: 1;                                /* Pushes icon row to card bottom */
}

/* ── Tech pill tags at the base of each card ─────────────── */
.step-icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--primitive-space-2);
  margin-top: auto;
  padding-top: var(--primitive-space-4);
  border-top: 1px solid var(--border-subtle);
}

.step-icon-pill {
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--text-tertiary);
  background: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--primitive-radius-pill);
  padding: var(--primitive-space-1) var(--primitive-space-3);
  letter-spacing: 0.02em;
}

/* ── HOW IT WORKS RESPONSIVE ─────────────────────────────── */

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

  /* Hide connectors — they only make sense in horizontal flow */
  .steps-grid .step-card::after {
    display: none;
  }

  .section-header-centered {
    margin-bottom: var(--primitive-space-8);
  }
}


/* ════════════════════════════════════════════════════════════
   PRICING SECTION
   ════════════════════════════════════════════════════════════ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--primitive-space-6);
  align-items: start;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: var(--primitive-space-4);
}

/* Scale up the featured middle card */
.pricing-card--featured {
  box-shadow: var(--shadow-accent), var(--shadow-3);
  transform: scale(1.04);
  /* Ensure it layers above siblings */
  position: relative;
  z-index: 1;
}

.pricing-price {
  font-family: var(--primitive-font-display);
  font-size: var(--text-display-lg);      /* clamp(28px, 4.5vw, 64px) */
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-primary);
  margin-top: var(--primitive-space-2);
}

.pricing-credits {
  font-size: var(--text-body-sm);
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--primitive-space-3);
  flex: 1;                                /* Push CTA button to card bottom */
  padding-top: var(--primitive-space-2);
  border-top: 1px solid var(--border-subtle);
}

.pricing-features li {
  font-size: var(--text-body-md);
  color: var(--text-secondary);
  padding-left: var(--primitive-space-6);
  position: relative;
  line-height: 1.5;
}

/* Checkmark via pseudo-element */
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
  font-size: var(--text-body-md);
}

/* ── PRICING RESPONSIVE ──────────────────────────────────── */

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }

  /* Remove scale on mobile — cards stack flat */
  .pricing-card--featured {
    transform: none;
    box-shadow: var(--shadow-accent), var(--shadow-2);
  }
}


/* ════════════════════════════════════════════════════════════
   CTA BANNER SECTION
   ════════════════════════════════════════════════════════════ */

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--primitive-space-8);
  flex-wrap: wrap;
  padding: clamp(var(--primitive-space-8), 4vw, var(--primitive-space-12));
}

.cta-banner-text {
  flex: 1;
  min-width: 240px;
}

.cta-banner-sub {
  font-size: var(--text-body-lg);
  color: var(--text-secondary);
  margin-top: var(--primitive-space-3);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .cta-banner-inner {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
  }

  .cta-banner-inner .btn {
    width: 100%;
    justify-content: center;
  }
}
