/* ============================================================
   Home page (visual layer on top of the shared landing blocks)
   ============================================================ */

.home-page {
  --home-accent: #6366f1;
  --home-accent-soft: rgba(99, 102, 241, 0.14);
  --home-accent-line: rgba(99, 102, 241, 0.32);
  --home-glow: rgba(129, 140, 248, 0.22);
  --home-card: #16213b;
  --home-card-hover: #1b2846;
  --home-radius: 1rem;
  position: relative;
  overflow: hidden;
}

/* Hero ------------------------------------------------------- */

.home-hero {
  position: relative;
  padding: 4.25rem 2rem 3.25rem;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 120%;
  background:
    radial-gradient(ellipse at 50% 0%, var(--home-glow), transparent 55%),
    radial-gradient(ellipse at 15% 30%, rgba(56, 189, 248, 0.1), transparent 45%),
    radial-gradient(ellipse at 85% 30%, rgba(168, 85, 247, 0.1), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.home-hero .hero-content {
  position: relative;
  z-index: 1;
}

.home-hero .hero-eyebrow {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--home-accent-line);
  border-radius: 999px;
  background: var(--home-accent-soft);
  color: #c7d2fe;
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.home-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 820px;
  margin-bottom: 1.1rem;
}

.home-hero h1 .home-hero-highlight {
  background: linear-gradient(90deg, #a5b4fc, #818cf8 55%, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero .hero-content > p {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 1.6rem;
}

.home-perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1.4rem;
}

.home-perks span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(26, 39, 68, 0.7);
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.35;
}

.home-hero .home-search {
  border-radius: 999px;
  padding: 0.4rem 0.4rem 0.4rem 0.6rem;
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow:
    0 0 0 6px rgba(99, 102, 241, 0.06),
    0 24px 48px rgba(2, 6, 23, 0.4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-hero .home-search:focus-within {
  border-color: var(--home-accent);
  box-shadow:
    0 0 0 6px rgba(99, 102, 241, 0.16),
    0 24px 48px rgba(2, 6, 23, 0.4);
}

.home-hero .home-search input {
  font-size: 1.05rem;
  min-height: 2.75rem;
}

.home-hero .home-search .btn-primary {
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
}

.home-hero .quick-searches {
  margin-top: 1.1rem;
  gap: 0.5rem;
}

.home-hero .quick-searches-label {
  color: var(--text-tertiary);
  font-size: 0.82rem;
  align-self: center;
}

.home-hero .quick-searches a {
  padding: 0.38rem 0.85rem;
  background: rgba(26, 39, 68, 0.55);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.home-hero .quick-searches a:hover {
  background: var(--home-accent-soft);
  transform: translateY(-1px);
}

/* Sections --------------------------------------------------- */

.home-section {
  position: relative;
  z-index: 0;
  padding: 3.5rem 2rem;
}

.home-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.2rem;
}

.home-section-head .home-section-eyebrow {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--home-accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-page .home-section h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.home-section-head p {
  margin-top: 0.6rem;
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

/* Full-bleed band behind the alternate sections (the section itself is width-capped). */
.home-section--alt::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(26, 39, 68, 0.45), rgba(26, 39, 68, 0));
  border-top: 1px solid rgba(51, 65, 85, 0.55);
  pointer-events: none;
  z-index: -1;
}

/* Cards ------------------------------------------------------ */

.home-page .feature-card,
.home-page .faq-card,
.home-page .metric-card {
  background: var(--home-card);
  border-radius: var(--home-radius);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.home-page .feature-card:hover,
.home-page .faq-card:hover {
  transform: translateY(-2px);
  border-color: var(--home-accent-line);
  background: var(--home-card-hover);
  box-shadow: 0 16px 32px rgba(2, 6, 23, 0.28);
}

.home-page .feature-card {
  padding: 1.5rem;
}

.home-page .feature-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.home-page .feature-header h3 {
  font-size: 1.08rem;
  line-height: 1.3;
}

.home-page .feature-icon {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 0.8rem;
  border: 1px solid var(--home-accent-line);
  background: var(--home-accent-soft);
  font-size: 1.35rem;
}

.home-page .feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* How it works: numbered steps */

.home-steps .feature-card {
  position: relative;
  padding-top: 1.6rem;
}

.home-step-number {
  position: absolute;
  top: -0.9rem;
  left: 1.4rem;
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--home-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(79, 70, 229, 0.35);
}

.home-steps .feature-header h3 {
  font-size: 1.05rem;
}

/* Why trust: icon + accent bar */

.home-trust .feature-card {
  border-left: 3px solid var(--home-accent);
}

/* FAQ -------------------------------------------------------- */

.home-page .faq-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1000px;
  margin: 0 auto;
}

.home-page .faq-card {
  padding: 1.4rem 1.5rem;
}

.home-page .faq-card h3 {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.home-page .faq-card h3::before {
  content: "?";
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
  border-radius: 999px;
  background: var(--home-accent-soft);
  border: 1px solid var(--home-accent-line);
  color: #c7d2fe;
  font-size: 0.78rem;
  font-weight: 700;
}

.home-page .faq-card p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* CTA + metrics --------------------------------------------- */

.home-cta {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.75rem 2rem 3rem;
  border-radius: 1.5rem;
  border: 1px solid var(--home-accent-line);
  background:
    radial-gradient(ellipse at 50% -20%, rgba(129, 140, 248, 0.28), transparent 60%),
    linear-gradient(180deg, #1a2744, #131d36);
  box-shadow: 0 30px 60px rgba(2, 6, 23, 0.35);
}

.home-cta .home-section-head {
  margin-bottom: 1.6rem;
}

.home-cta .home-search {
  margin-bottom: 2rem;
  border-radius: 999px;
  padding: 0.4rem 0.4rem 0.4rem 0.6rem;
}

.home-cta .home-search .btn-primary {
  border-radius: 999px;
  font-weight: 600;
}

.home-page .metrics-strip {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  max-width: 760px;
  gap: 0.9rem;
}

.home-page .metric-card {
  padding: 1.1rem 0.9rem;
  background: rgba(15, 23, 42, 0.45);
}

.home-page .metric-value {
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #e0e7ff, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-page .metric-card p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* Responsive ------------------------------------------------- */

@media (max-width: 768px) {
  .home-hero {
    padding: 2.75rem 1rem 2.25rem;
  }

  .home-hero h1 {
    font-size: 1.85rem;
    margin-bottom: 0.9rem;
  }

  .home-hero .hero-content > p {
    font-size: 0.98rem;
    margin-bottom: 1.2rem;
  }

  .home-perks {
    gap: 0.4rem;
    margin-bottom: 1.1rem;
  }

  .home-perks span {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
  }

  .home-hero .home-search {
    border-radius: 1rem;
    padding: 0.6rem;
  }

  .home-hero .home-search input {
    font-size: 1rem;
  }

  .home-hero .home-search .btn-primary {
    border-radius: 0.65rem;
  }

  .home-hero .quick-searches-label {
    width: 100%;
    text-align: center;
  }

  .home-section {
    padding: 2.5rem 1rem;
  }

  .home-section-head {
    margin-bottom: 1.5rem;
  }

  .home-page .features-grid,
  .home-page .faq-grid {
    gap: 0.85rem;
  }

  .home-page .feature-card {
    padding: 1.1rem 1.15rem;
  }

  .home-page .feature-header {
    margin-bottom: 0.55rem;
  }

  .home-page .feature-icon {
    width: 2.3rem;
    height: 2.3rem;
    font-size: 1.15rem;
  }

  .home-page .feature-card p,
  .home-page .faq-card p {
    font-size: 0.9rem;
  }

  .home-steps {
    row-gap: 1.4rem;
  }

  .home-page .faq-card {
    padding: 1.1rem 1.15rem;
  }

  .home-cta {
    padding: 2rem 1rem 1.5rem;
    border-radius: 1.1rem;
  }

  .home-cta .home-search {
    border-radius: 1rem;
    padding: 0.6rem;
    margin-bottom: 1.4rem;
  }

  .home-cta .home-search .btn-primary {
    border-radius: 0.65rem;
  }

  .home-page .metrics-strip {
    padding: 0;
  }

  .home-page .metric-value {
    font-size: 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .feature-card:hover,
  .home-page .faq-card:hover,
  .home-hero .quick-searches a:hover {
    transform: none;
  }
}
