/**
 * ==============================================================================
 * HEADER BLOCK: "Question Before Making It"
 * ==============================================================================
 * WHAT THIS FILE DOES:
 *   Styles the sleek "Real-Time Analytics & Reports" feature showcase row
 *   on the ProAffiliaters marketing homepage.
 * 
 * WHY THIS FILE EXISTS:
 *   Provides clean styling, responsive 2-column layout, and unified `#f8fafc`
 *   canvas matching the adjacent "Top Features of ProAffiliaters" section.
 * 
 * WHAT MAJOR RESPONSIBILITY IT HANDLES:
 *   - Soft-slate canvas background (`background: #f8fafc`).
 *   - Proportional Lottie container (`max-width: 440px`) with live status badge.
 *   - Typography hierarchy (eyebrow pill, clamp headline, and high-readability lead paragraph).
 *   - Conversion CTA button (`Start Your Free Trial`).
 *   - Responsive tablet and mobile breakpoints (<= 968px and <= 640px).
 * 
 * HOW IT FITS INTO THE OVERALL MARKETING WEBSITE:
 *   Loaded globally via `app/layout.tsx` and applies to `<HomeAnalyticsFeature />`
 *   docked below `BrandsCarousel` and above `CapabilitiesCarousel`.
 * ==============================================================================
 */

/* ==============================================================================
   Main Section Wrapper & Unified Canvas (#f8fafc)
   ============================================================================== */
.home-analytics-section {
  position: relative;
  width: 100%;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 5vw, 60px) 24px;
  background: #f8fafc;
  overflow: hidden;
  box-sizing: border-box;
}

.home-analytics-container {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.98fr 1.02fr;
  gap: clamp(36px, 5.5vw, 76px);
  align-items: center;
  animation: analyticsFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes analyticsFadeUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================================================================
   Left Column: Visual & Proportional Lottie Showcase Container
   ============================================================================== */
.analytics-visual-col {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.analytics-lottie-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: clamp(340px, 35vw, 440px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.analytics-lottie-player {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.analytics-lottie-player svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 14px 28px rgba(15, 23, 42, 0.09));
}

/* Floating Live Indicator Badge */
.analytics-floating-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 9999px;
  box-shadow: 0 8px 22px -4px rgba(15, 23, 42, 0.08);
}

.analytics-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2.5px rgba(16, 185, 129, 0.22);
  animation: analyticsPulseDot 2s infinite ease-in-out;
}

@keyframes analyticsPulseDot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 2.5px rgba(16, 185, 129, 0.22);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.10);
  }
}

.analytics-badge-label {
  font-family: var(--font-display), system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

/* ==============================================================================
   Right Column: Information Details & CTA
   ============================================================================== */
.analytics-content-col {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Eyebrow Pill Badge */
.analytics-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px 5px 7px;
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-radius: 9999px;
  font-family: var(--font-display), system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.analytics-eyebrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  font-size: 9px;
}

/* Section Main Headline */
.analytics-headline {
  font-family: var(--font-display), system-ui, sans-serif;
  font-size: clamp(2rem, 2.7vw, 2.75rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: #0b132b;
  margin-bottom: 16px;
}

.analytics-gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Lead Summary Paragraph */
.analytics-lead-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(1rem, 1.12vw, 1.12rem);
  line-height: 1.68;
  color: #475569;
  margin-bottom: 28px;
  max-width: 540px;
}

/* ==============================================================================
   CTA Actions Row
   ============================================================================== */
.analytics-cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  width: 100%;
}

.analytics-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  border-radius: 12px;
  font-family: var(--font-display), system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.40);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.analytics-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(37, 99, 235, 0.50);
  color: #ffffff !important;
}

.analytics-btn-primary i {
  font-size: 13px;
  transition: transform 0.2s ease;
}

.analytics-btn-primary:hover i {
  transform: translateX(3px);
}

/* ==============================================================================
   Responsive Viewport Adaptations
   ============================================================================== */
@media (max-width: 968px) {
  .home-analytics-section {
    min-height: auto;
    padding: 24px 20px 48px;
  }

  .home-analytics-container {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .analytics-visual-col {
    order: 1;
    max-width: 340px;
    margin: 0 auto;
  }

  .analytics-content-col {
    order: 2;
    align-items: center;
    text-align: center;
  }

  .analytics-headline {
    text-align: center;
  }

  .analytics-lead-text {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .analytics-cta-row {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .home-analytics-section {
    padding: 8px 16px 36px;
  }

  .analytics-visual-col {
    max-width: 290px;
    margin: 0 auto;
  }

  .analytics-lottie-wrap {
    max-width: 270px;
    max-height: 220px;
    aspect-ratio: 16 / 12;
  }

  .analytics-floating-badge {
    bottom: 6px;
    left: 6px;
    padding: 5px 12px;
    font-size: 11px;
  }

  .analytics-btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/**
 * ==============================================================================
 * FOOTER BLOCK: "Answer in the End"
 * ==============================================================================
 * MAIN WORKFLOW & EXECUTION:
 *   1. Container layout uses CSS Grid (1:1 split on desktop, stacked on mobile).
 *   2. Visual column mounts hardware-accelerated Lottie SVG animation.
 *   3. Mobile breakpoints (<= 968px, <= 640px) prioritize visual-col order with
 *      streamlined top padding (8px - 24px) to seamlessly bridge after BrandsCarousel.
 *   4. Typography and CTA button drive conversion to https://app.proaffiliaters.com/trial.
 * 
 * KEY DEPENDENCIES:
 *   - .home-analytics-section: Outer section wrapper.
 *   - .analytics-lottie-wrap: Responsive container preserving SVG proportion.
 *   - .analytics-btn-primary: High-contrast gradient conversion CTA.
 * 
 * ASSUMPTIONS & CAVEATS:
 *   - Tight top padding on mobile eliminates unsightly whitespace beneath the
 *     brands logo ticker.
 * ==============================================================================
 */
