/* home.css — "VVB Instagram Earning" public marketing homepage.
   Loaded only by layouts/marketing.php. Reuses app.css's --ie-* variables
   for brand consistency; adds a small set of --home-* variables scoped to
   .home-body for marketing-only needs (heading font, WhatsApp brand color). */

.home-body {
  --home-font-heading: 'Sora', sans-serif;
  --home-whatsapp: #25D366;
  --home-whatsapp-dark: #1DA851;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ie-ink);
  background: var(--ie-bg);
  overflow-x: hidden;
}

.home-body h1,
.home-body h2,
.home-body h3,
.home-body h4 {
  font-family: var(--home-font-heading);
  font-weight: 700;
  color: var(--ie-ink);
}

.home-body section {
  padding: 5.5rem 0;
}

/* ── Sticky nav ─────────────────────────────────────────────────────────── */

.home-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(246, 246, 251, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.home-nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--ie-shadow);
  padding: 0.65rem 0;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--home-font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ie-ink);
  text-decoration: none;
}

.home-brand:hover {
  color: var(--ie-primary);
}

.home-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
}

.home-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.home-nav-links a {
  color: var(--ie-ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  transition: color 0.15s ease;
}

.home-nav-links a:hover {
  color: var(--ie-primary);
}

.home-nav-links a.btn-home-primary,
.home-nav-links a.btn-home-primary:hover {
  color: #fff;
}

.home-nav-toggle {
  border: 1px solid var(--ie-border);
  background: var(--ie-surface);
  border-radius: var(--ie-radius-sm);
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  color: var(--ie-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991.98px) {
  .home-nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    background: var(--ie-surface);
    border-top: 1px solid var(--ie-border);
    box-shadow: var(--ie-shadow-lg);
    padding: 1.25rem 1.5rem 1.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
  }

  .home-nav-links.show {
    max-height: 260px;
    opacity: 1;
  }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn-home-primary,
.btn-home-outline,
.btn-home-whatsapp,
.btn-home-whatsapp-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--ie-radius-sm);
  font-weight: 600;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  text-decoration: none;
}

.btn-home-primary {
  background: var(--ie-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(91, 79, 233, 0.28);
}

.btn-home-primary:hover {
  background: var(--ie-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(91, 79, 233, 0.36);
}

.btn-home-outline {
  background: transparent;
  border-color: var(--ie-border);
  color: var(--ie-ink);
}

.btn-home-outline:hover {
  border-color: var(--ie-primary);
  color: var(--ie-primary);
}

.btn-home-whatsapp {
  background: var(--home-whatsapp);
  color: #fff;
}

.btn-home-whatsapp:hover {
  background: var(--home-whatsapp-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-home-whatsapp-lg {
  flex-direction: column;
  background: var(--home-whatsapp);
  color: #fff;
  padding: 1.1rem 2.5rem;
  border-radius: 999px;
  font-size: 1.15rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
}

.btn-home-whatsapp-lg i {
  font-size: 1.6rem;
  margin-bottom: 0.15rem;
}

.btn-home-whatsapp-lg .home-cta-sub {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.9;
}

.btn-home-whatsapp-lg:hover {
  background: var(--home-whatsapp-dark);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
}

.btn-home-whatsapp-lg::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid var(--home-whatsapp);
  animation: home-pulse-ring 2.6s ease-out infinite;
  pointer-events: none;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.home-hero {
  position: relative;
  padding-top: 6rem;
  padding-bottom: 6rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ie-primary) 0%, var(--ie-primary-dark) 55%, #241d5e 100%);
  color: #fff;
}

.home-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.15;
  margin: 1rem 0 1.1rem;
}

.home-hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.08rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.home-steps .home-eyebrow,
.home-cta-band .home-eyebrow {
  background: var(--ie-primary-soft);
  color: var(--ie-primary-dark);
}

.home-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.5rem;
  margin-top: 2rem;
}

.home-trust-chips span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* Each chip's icon carries its own .ie-icon-* color class in the markup. */

.home-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: 0;
}

.home-blob-1 {
  width: 340px;
  height: 340px;
  top: -80px;
  right: -60px;
  background: radial-gradient(circle, var(--ie-accent) 0%, transparent 70%);
  animation: home-float-1 12s ease-in-out infinite;
}

.home-blob-2 {
  width: 260px;
  height: 260px;
  bottom: -60px;
  left: -40px;
  background: radial-gradient(circle, #8B7CFF 0%, transparent 70%);
  animation: home-float-2 15s ease-in-out infinite;
}

.home-blob-3 {
  width: 200px;
  height: 200px;
  top: 40%;
  left: 55%;
  background: radial-gradient(circle, #ffffff 0%, transparent 70%);
  opacity: 0.12;
  animation: home-float-3 18s ease-in-out infinite;
}

/* ── Hero mockup card ───────────────────────────────────────────────────── */

.home-mockup {
  position: relative;
  z-index: 1;
  background: var(--ie-surface);
  border-radius: var(--ie-radius);
  box-shadow: var(--ie-shadow-lg);
  padding: 1.5rem;
  max-width: 400px;
  margin: 0 auto;
  animation: home-hover-float 5s ease-in-out infinite;
}

.home-mockup-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--ie-border);
}

.home-mockup-head i {
  font-size: 1.4rem;
  /* color comes from the global .bi-instagram glyph rule in app.css */
}

.home-mockup-title {
  font-weight: 700;
  color: var(--ie-ink);
  font-size: 0.98rem;
}

.home-mockup-sub {
  font-size: 0.78rem;
  color: var(--ie-ink-soft);
}

.home-mockup-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--ie-ink-soft);
  padding: 0.45rem 0;
}

.home-mockup-row i {
  width: 18px;
  text-align: center;
  /* each row's icon carries its own .ie-icon-* color class in the markup */
}

.home-mockup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ie-border);
}

.home-mockup-rate {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ie-ink);
}

.home-mockup-rate small {
  font-weight: 500;
  color: var(--ie-ink-soft);
  font-size: 0.7rem;
}

/* ── Scroll-reveal + hero load-in ──────────────────────────────────────── */

.home-anim {
  opacity: 0;
  transform: translateY(18px);
  animation: home-fade-up 0.7s ease forwards;
  animation-delay: var(--d, 0s);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-left {
  transform: translateX(-32px);
}

.reveal-right {
  transform: translateX(32px);
}

.reveal-left.is-visible,
.reveal-right.is-visible {
  transform: none;
}

/* ── "How it works" timeline ───────────────────────────────────────────── */

.home-section-sub {
  color: var(--ie-ink-soft);
  max-width: 32rem;
  margin: 0.6rem auto 0;
}

.home-timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 2.5rem;
}

.home-timeline::before {
  content: '';
  position: absolute;
  left: 1.15rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(var(--ie-primary), var(--ie-accent));
  opacity: 0.35;
}

.home-timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.home-timeline-item:last-child {
  margin-bottom: 0;
}

.home-timeline-dot {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--ie-primary-soft);
  color: var(--ie-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
  margin-left: -1.15rem;
}

/* Per-step color variants — compound selectors so they reliably outrank
   the glyph-keyed semantic rules in app.css when a glyph is reused here
   with a deliberately different color. */
.home-timeline-dot.home-timeline-dot-green { background: var(--ie-accent-soft); }
.home-timeline-dot.home-timeline-dot-green i { color: var(--ie-accent); }
.home-timeline-dot.home-timeline-dot-amber { background: var(--ie-warn-soft); }
.home-timeline-dot.home-timeline-dot-amber i { color: var(--ie-warn); }
.home-timeline-dot.home-timeline-dot-blue { background: var(--ie-blue-soft); }
.home-timeline-dot.home-timeline-dot-blue i { color: var(--ie-blue); }
.home-timeline-dot.home-timeline-dot-pink { background: var(--ie-pink-soft); }
.home-timeline-dot.home-timeline-dot-pink i { color: var(--ie-pink); }
.home-timeline-dot.home-timeline-dot-teal { background: var(--ie-teal-soft); }
.home-timeline-dot.home-timeline-dot-teal i { color: var(--ie-teal); }
.home-timeline-dot.home-timeline-dot-whatsapp { background: #DFF7E9; }
.home-timeline-dot.home-timeline-dot-whatsapp i { color: var(--home-whatsapp); }

.home-timeline-card {
  background: var(--ie-surface);
  border: 1px solid var(--ie-border);
  border-radius: var(--ie-radius);
  box-shadow: var(--ie-shadow);
  padding: 1.1rem 1.4rem;
  flex: 1;
}

.home-timeline-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.home-timeline-card p {
  color: var(--ie-ink-soft);
  font-size: 0.92rem;
  margin: 0;
}

@media (min-width: 992px) {
  .home-timeline {
    padding-left: 0;
  }

  .home-timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .home-timeline-item {
    width: 50%;
  }

  .home-timeline-item:nth-child(odd) {
    margin-left: 0;
    padding-right: 2.5rem;
    flex-direction: row-reverse;
  }

  .home-timeline-item:nth-child(odd) .home-timeline-dot {
    margin-left: 0;
    margin-right: -1.25rem;
  }

  .home-timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 2.5rem;
  }
}

/* ── Feature strip ──────────────────────────────────────────────────────── */

.home-features {
  background: var(--ie-surface);
}

.home-feature {
  text-align: center;
  padding: 1.75rem 1rem;
  border-radius: var(--ie-radius);
  border: 1px solid var(--ie-border);
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-feature:hover {
  transform: translateY(-4px);
  border-color: var(--ie-primary);
  box-shadow: var(--ie-shadow);
}

.home-feature-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.9rem;
  border-radius: 14px;
  background: var(--ie-primary-soft);
  color: var(--ie-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: transform 0.2s ease;
}

.home-feature:hover .home-feature-icon {
  transform: scale(1.08);
}

.home-feature-icon.home-feature-icon-green { background: var(--ie-accent-soft); }
.home-feature-icon.home-feature-icon-green i { color: var(--ie-accent); }
.home-feature-icon.home-feature-icon-amber { background: var(--ie-warn-soft); }
.home-feature-icon.home-feature-icon-amber i { color: var(--ie-warn); }
.home-feature-icon.home-feature-icon-blue { background: var(--ie-blue-soft); }
.home-feature-icon.home-feature-icon-blue i { color: var(--ie-blue); }
.home-feature-icon.home-feature-icon-teal { background: var(--ie-teal-soft); }
.home-feature-icon.home-feature-icon-teal i { color: var(--ie-teal); }

.home-feature h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.home-feature p {
  color: var(--ie-ink-soft);
  font-size: 0.86rem;
  margin: 0;
}

/* ── CTA band ───────────────────────────────────────────────────────────── */

.home-cta-band {
  background: linear-gradient(135deg, var(--ie-accent-soft) 0%, var(--ie-primary-soft) 100%);
  text-align: center;
}

.home-cta-band h2 {
  margin-bottom: 0.6rem;
}

.home-cta-band p {
  color: var(--ie-ink-soft);
  max-width: 30rem;
  margin: 0 auto 2rem;
}

/* ── Floating WhatsApp button ───────────────────────────────────────────── */

.home-whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--home-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.home-whatsapp-float.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.home-whatsapp-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--home-whatsapp);
  animation: home-pulse-ring 3s ease-out infinite;
  opacity: 0.7;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.home-footer {
  background: var(--ie-ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.home-footer h5 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.home-brand-footer {
  color: #fff;
}

.home-footer-tagline {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  max-width: 22rem;
}

.home-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.home-footer-links li {
  margin-bottom: 0.6rem;
}

.home-footer-links a,
.home-footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.home-footer-links a:hover,
.home-footer-contact a:hover {
  color: #fff;
}

.home-footer hr {
  border-color: rgba(255, 255, 255, 0.12);
  margin: 2rem 0 1.5rem;
}

.home-footer-copy {
  font-size: 0.82rem;
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Keyframes ──────────────────────────────────────────────────────────── */

@keyframes home-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes home-float-1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 25px); }
}

@keyframes home-float-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(25px, -20px); }
}

@keyframes home-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-15px, 15px) scale(1.08); }
}

@keyframes home-hover-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes home-pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .home-anim,
  .reveal,
  .reveal-left,
  .reveal-right,
  .home-blob,
  .home-mockup,
  .btn-home-whatsapp-lg::after,
  .home-whatsapp-float::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 767.98px) {
  .home-body section {
    padding: 3.5rem 0;
  }

  .home-hero {
    padding-top: 4rem;
    padding-bottom: 3rem;
    text-align: center;
  }

  .home-hero .d-flex.flex-wrap {
    justify-content: center;
  }

  .home-trust-chips {
    justify-content: center;
  }

  .home-mockup {
    margin-bottom: 2.5rem;
  }
}
