/* ============================================================
   HOMEPAGE FX — Dramatic visual upgrade layer
   Listings Junkie — AI-Powered Business Directory
   ============================================================ */

/* ========================
   HERO — Cinematic depth
   ======================== */
.hero {
  min-height: clamp(400px, 80vh, 580px);
  position: relative;
  overflow: hidden;
}

/* Layered gradient overlay for depth */
.hero::before {
  background:
    linear-gradient(135deg, rgba(10,22,40,0.95) 0%, rgba(10,22,40,0.7) 40%, rgba(26,58,92,0.6) 100%),
    radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.1) 0%, transparent 50%);
}

/* Animated dot grid on hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(59,130,246,0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
  animation: heroGridDrift 25s linear infinite;
}

@keyframes heroGridDrift {
  0% { background-position: 0 0; }
  100% { background-position: 32px 32px; }
}

.hero__content {
  z-index: 2;
}

/* Gradient text on hero title */
.hero__title {
  background: linear-gradient(135deg, #ffffff 0%, #60a5fa 50%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroTextShimmer 6s ease-in-out infinite;
}

@keyframes heroTextShimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

/* Hero label — glowing pill */
.hero__label {
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  animation: labelGlow 3s ease-in-out infinite;
}

@keyframes labelGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
  50% { box-shadow: 0 0 20px 2px rgba(59,130,246,0.15); }
}

/* Hero buttons — enhanced */
.hero .btn--primary {
  box-shadow: 0 4px 20px rgba(59,130,246,0.3);
  position: relative;
  overflow: hidden;
}

.hero .btn--primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  animation: btnSheen 4s ease-in-out infinite;
}

@keyframes btnSheen {
  0%, 100% { left: -60%; }
  50% { left: 120%; }
}

.hero .btn--secondary {
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.05);
}

.hero .btn--secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.5);
  color: #ffffff;
}

/* ========================
   MISSION CARDS — Glass morphism
   ======================== */
.home-mission-section {
  background: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.home-mission-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow:
    0 4px 24px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

.home-mission-card::before {
  height: 4px;
  background: linear-gradient(90deg, #0a1628, #1a3a5c);
}

.home-mission-card:hover {
  background: rgba(255,255,255,0.9);
  box-shadow:
    0 12px 40px rgba(59,130,246,0.1),
    inset 0 1px 0 rgba(255,255,255,1);
}

.home-mission-card__icon {
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  box-shadow: 0 4px 12px rgba(59,130,246,0.12);
  transition: all 0.4s ease;
}

.home-mission-card:hover .home-mission-card__icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 24px rgba(59,130,246,0.2);
}

.home-mission-card h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
}

/* Staggered entrance */
.home-mission-card:nth-child(1) { animation: cardReveal 0.6s ease both; animation-delay: 0.1s; }
.home-mission-card:nth-child(2) { animation: cardReveal 0.6s ease both; animation-delay: 0.25s; }
.home-mission-card:nth-child(3) { animation: cardReveal 0.6s ease both; animation-delay: 0.4s; }

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================
   LISTINGS GRID — Enhanced cards
   ======================== */
.home-listing-card {
  border: 1px solid var(--color-border);
  border-left: 4px solid transparent;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(10,22,40,0.12);
  border-left-color: #0a1628;
}

.home-listing-card__badge {
  background: rgba(59,130,246,0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
}

.home-listing-card__body h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 1.2rem;
}

/* ========================
   WHY LIST — Creative split
   ======================== */
.why-list__image {
  border-radius: 16px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.1),
    0 0 0 1px rgba(0,0,0,0.03);
  transition: transform 0.5s ease;
}

.split:hover .why-list__image {
  transform: scale(1.02) rotate(-0.5deg);
}

.why-list__content h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 2rem;
}

.why-list__content h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
}

/* ========================
   PRICING — FREE should glow
   ======================== */
.home-pricing-section {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(139,92,246,0.1) 0%, transparent 50%),
    linear-gradient(135deg, #0a1628 0%, #0f2744 50%, #0a1628 100%);
  position: relative;
  overflow: hidden;
}

/* Animated grid bg for pricing */
.home-pricing-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.home-pricing__content h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
}

.home-pricing__card-inner {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(59,130,246,0.1);
}

/* Subtle rotating gradient on price card */
.home-pricing__card-inner::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(59,130,246,0.05), transparent, rgba(139,92,246,0.05), transparent);
  animation: priceCardRotate 10s linear infinite;
  pointer-events: none;
}

@keyframes priceCardRotate {
  to { transform: rotate(360deg); }
}

/* FREE text glow */
.home-pricing__number {
  position: relative;
  text-shadow: 0 0 30px rgba(59,130,246,0.3);
  animation: freeGlow 2.5s ease-in-out infinite;
}

@keyframes freeGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(59,130,246,0.2); }
  50% { text-shadow: 0 0 40px rgba(59,130,246,0.5), 0 0 80px rgba(59,130,246,0.2); }
}

.home-pricing__card-label {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

/* ========================
   CTA BANNER — Elevated
   ======================== */
.cta-banner {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(59,130,246,0.3) 0%, transparent 60%),
    linear-gradient(135deg, #1a3a5c 0%, #3b82f6 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.cta-banner h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  position: relative;
}

.cta-banner .btn--primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* ========================
   BLOG CARDS — Glass on dark
   ======================== */
.blog-card {
  border: none;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.blog-card:hover::before {
  transform: scaleX(1);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59,130,246,0.08);
}

.blog-card__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
}

/* ========================
   REVIEWS — Premium feel
   ======================== */
.review-card {
  border: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.03) 0%, transparent 50%),
    #ffffff;
}

.review-card__quote {
  color: #3b82f6;
}

.review-card__avatar {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  box-shadow: 0 4px 12px rgba(59,130,246,0.25);
}

.review-card__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
}

/* ========================
   SECTION HEADERS — Refined
   ======================== */
.section__header h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
}

.about-section-label {
  background: rgba(10,22,40,0.06);
  border: 1px solid rgba(10,22,40,0.12);
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  font-size: 0.7rem;
  color: #0f2744;
  font-weight: 600;
}

/* ========================
   SECTION DIVIDERS — SVG waves
   ======================== */
.sdv {
  line-height: 0;
  position: relative;
  z-index: 2;
  margin-top: -1px;
  margin-bottom: -1px;
}

.sdv svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ========================
   CONSISTENT BLUE THREAD
   ======================== */

/* All white sections get a dark navy accent bar on headings */
.section__header h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, #0a1628, #1a3a5c);
  margin: var(--space-md) auto 0;
  border-radius: 2px;
}

/* Why list heading gets the same treatment */
.why-list__content h3::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, #0a1628, #1a3a5c);
  margin-top: var(--space-md);
  border-radius: 2px;
}

/* View All buttons — consistent dark navy outline on light sections */
.section .btn--secondary {
  border-color: #0a1628;
  color: #0a1628;
  border-width: 2px;
}

.section .btn--secondary:hover {
  background: #0a1628;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(10,22,40,0.2);
}

.section--alt {
  background: var(--color-bg-surface);
}

/* ========================
   GLOBAL BUTTON UPGRADES
   ======================== */
.btn--primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--primary:hover {
  box-shadow: 0 8px 24px rgba(59,130,246,0.3);
}

.btn--secondary:hover {
  box-shadow: 0 4px 16px rgba(59,130,246,0.15);
}

/* ========================
   SMOOTH SCROLL REVEAL
   ======================== */
@media (prefers-reduced-motion: no-preference) {
  .section__header,
  .home-listing-card,
  .blog-card,
  .why-list__image,
  .why-list__content,
  .review-card,
  .cta-banner {
    animation: smoothReveal 0.8s ease both;
  }
}

@keyframes smoothReveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
