/**
 * Homepage redesign (Lattice-inspired) — layout overrides only.
 * Reversible: remove this file + body.home-v2 class + index.legacy.html restore.
 */

/* ─── Section rhythm ─── */
.home-v2 section {
  padding: clamp(72px, 9vw, 100px) 5%;
}

.home-v2 .section-sub,
.home-v2 .problem-card p,
.home-v2 .founder-note-card p,
.home-v2 .hero-sub {
  max-width: 42rem;
  line-height: 1.65;
}

.home-v2 #problem-unseen,
.home-v2 #founder-built,
.home-v2 #why-use,
.home-v2 #pricing {
  background: var(--gray-1, #f7f9fc);
}

.home-v2 #demo {
  background: linear-gradient(180deg, #f0f6ff 0%, #ffffff 55%);
  border-top: 1px solid var(--border, #dde5f0);
  border-bottom: 1px solid var(--border, #dde5f0);
}

.home-v2 #solution {
  background: #fff;
}

.home-v2 .demo-card {
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(21, 101, 216, 0.08);
  border: 1px solid rgba(221, 229, 240, 0.9);
}

.home-v2 .problem-card,
.home-v2 .founder-note-card,
.home-v2 .why-card,
.home-v2 .pain-card {
  border-radius: 16px;
}

/* ─── Hero video frame ─── */
.home-v2 .hero-media {
  position: relative;
}

.home-v2 .hero-media-shell {
  position: relative;
  padding: 14px;
}

.home-v2 .hero-media-glow {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 20%, rgba(10, 175, 176, 0.35), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(21, 101, 216, 0.4), transparent 50%),
    linear-gradient(135deg, rgba(126, 179, 255, 0.2), rgba(126, 237, 245, 0.15));
  filter: blur(2px);
  z-index: 0;
}

.home-v2 .hero-media-frame {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  background: #0a152a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.home-v2 .hero-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #0a152a;
}

.home-v2 .hero-video.is-hidden {
  display: none;
}

.home-v2 .hero-video-fallback {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: linear-gradient(145deg, #0f2848, #152a4a);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.home-v2 .hero-video-fallback[hidden] {
  display: none !important;
}

.home-v2 .hero-video-caption {
  margin: 0;
  padding: 12px 16px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ─── Trust strip ─── */
.home-v2 .home-trust-strip {
  padding: 18px 5%;
  background: #fff;
  border-bottom: 1px solid var(--border, #dde5f0);
  text-align: center;
}

.home-v2 .home-trust-text {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gray-text, #5a6880);
}

/* ─── Bottom CTA band ─── */
.home-v2 .home-bottom-cta {
  padding: clamp(64px, 8vw, 88px) 5%;
  background: linear-gradient(135deg, #1565d8 0%, #0aaFB0 100%);
  text-align: center;
}

.home-v2 .home-bottom-cta-inner {
  max-width: 720px;
}

.home-v2 .home-bottom-cta h2 {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.home-v2 .home-bottom-cta p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.home-v2 .home-bottom-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.home-v2 .home-cta-ghost {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.home-v2 .home-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: #fff !important;
}

/* ─── Nav polish ─── */
.home-v2 nav.site-nav {
  background: rgba(255, 255, 255, 0.96);
}

/* ─── Mobile: show hero video below copy ─── */
@media (max-width: 900px) {
  .home-v2 .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .home-v2 .hero-visual {
    display: block !important;
    order: 2;
  }

  .home-v2 .hero-text {
    order: 1;
  }

  .home-v2 .hero-actions {
    margin-bottom: 0;
  }
}

@media (max-width: 600px) {
  .home-v2 section {
    padding: 56px 5%;
  }

  .home-v2 .home-trust-text {
    font-size: 0.8rem;
  }
}
