/* Fanalytics - Home Page (index.php) - High-Conversion Landing */

/* ── Shared tokens ─────────────────────────────────────────────── */
.home-section {
  padding: 72px 20px;
}
.home-container {
  max-width: 1100px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--gray-500);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Full-bleed helper - escapes body padding */
.home-full-bleed {
  margin-left: -20px;
  margin-right: -20px;
  padding-left: 20px;
  padding-right: 20px;
}

/* ── 1. Hero ───────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-500) 45%, var(--purple-500) 100%);
  color: white;
  text-align: center;
  padding: 84px 20px 0;
  overflow: hidden;
}
/* subtle radial glow behind the hero */
.hero-section::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
  color: white;
}
.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: white;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
  color: white;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}
.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}
.hero-btn-primary {
  background: white;
  color: var(--blue-600);
}
.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}
.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}
.hero-foot {
  margin: 20px 0 0;
  font-size: 0.85rem;
  opacity: 0.8;
  color: white;
}

/* Pending-approval notice inside hero */
.hero-pending {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  max-width: 500px;
  margin: 24px auto 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ── Hero product preview (CSS dashboard mockup) ───────────────── */
.hero-preview {
  position: relative;
  max-width: 940px;
  margin: 56px auto -90px;   /* overlap into the next section */
  padding-bottom: 0;
}
.app-frame {
  background: white;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.35), 0 10px 24px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  text-align: left;
}
.app-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}
.app-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.app-dot--red { background: #ef4444; }
.app-dot--yellow { background: #eab308; }
.app-dot--green { background: #22c55e; }
.app-url {
  margin-left: 8px;
  flex: 1;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 0.78rem;
  color: var(--gray-400);
}
.app-body {
  padding: 22px 24px 26px;
  background: var(--gray-50);
}
.app-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.app-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--blue-500);
  margin-bottom: 4px;
}
.app-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
}
.app-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.app-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  background: white;
  border: 1px solid var(--gray-200);
  color: var(--gray-500);
}
.app-pill--on {
  background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
  border-color: transparent;
  color: white;
}
.app-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 16px;
  margin-bottom: 18px;
}
.app-kpis {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-kpi {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 14px 16px;
}
.app-kpi-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.app-kpi-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.app-kpi-delta {
  font-size: 0.74rem;
  font-weight: 600;
  margin-top: 2px;
}
.app-up { color: var(--green-500); }
.app-sov {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
}
.app-sov-row {
  display: grid;
  grid-template-columns: 92px 1fr 38px;
  align-items: center;
  gap: 10px;
}
.app-sov-name {
  font-size: 0.78rem;
  color: var(--gray-600);
  font-weight: 500;
}
.app-sov-track {
  height: 9px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.app-sov-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gray-300);
}
.app-sov-fill--you {
  background: linear-gradient(90deg, var(--blue-500), var(--purple-500));
}
.app-sov-pct {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gray-700);
  text-align: right;
}
.app-trend {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 12px 14px;
}
.app-trend svg {
  display: block;
  width: 100%;
  height: 56px;
}

/* ── 2. Provider strip ─────────────────────────────────────────── */
.provider-section {
  padding: 118px 20px 8px;   /* top clears the overlapping hero preview */
  text-align: center;
}
.provider-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 20px;
  font-weight: 600;
}
.provider-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.provider-chip {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-600);
  padding: 9px 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: white;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.provider-chip:hover {
  color: var(--blue-600);
  border-color: var(--blue-500);
  transform: translateY(-2px);
}

/* ── 3. Core Features ─────────────────────────────────────────── */
.core-section {
  padding: 64px 20px 72px;
}
.core-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.core-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 30px;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.core-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
  border-color: var(--gray-300);
}
.core-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
}
.core-icon svg {
  width: 23px;
  height: 23px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.core-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.core-card p {
  font-size: 0.93rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0;
}

/* ── 4. Power Features ────────────────────────────────────────── */
.power-section {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 72px 20px;
}
.power-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}
.power-row:last-child {
  margin-bottom: 0;
}
.power-row.power-row--reverse .power-text {
  order: 2;
}
.power-row.power-row--reverse .power-visual {
  order: 1;
}
.power-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-500);
  font-weight: 700;
  margin-bottom: 8px;
}
.power-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.power-desc {
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.98rem;
}
.power-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.power-bullets li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.5;
}
.power-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
}
.power-bullets li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}

/* ── Power-feature visuals (real CSS/SVG) ──────────────────────── */
.power-visual {
  min-width: 0;
}
.viz {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  padding: 24px;
}

/* competitor-gap list */
.viz--gaps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}
.viz-gap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--gray-400);
  padding: 0 2px 2px;
}
.viz-gap-row {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 10px 13px;
  background: white;
}
.viz-gap-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.viz-gap-icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.viz-gap-icon--miss {
  background: rgba(220, 53, 69, 0.12);
}
.viz-gap-icon--miss svg {
  stroke: var(--red-500);
}
.viz-gap-icon--won {
  background: rgba(40, 167, 69, 0.14);
}
.viz-gap-icon--won svg {
  stroke: var(--green-600);
}
.viz-gap-prompt {
  flex: 1;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.viz-gap-win {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue-600);
}
.viz-gap-you {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-md);
  background: rgba(40, 167, 69, 0.12);
  color: var(--green-600);
}

/* horizontal provider bars */
.viz--bars {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
}
.viz-bar-row {
  display: grid;
  grid-template-columns: 96px 1fr 42px;
  align-items: center;
  gap: 12px;
}
.viz-bar-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
}
.viz-bar-track {
  height: 12px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.viz-bar-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--blue-500), var(--purple-500));
}
.viz-bar-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-700);
  text-align: right;
}

/* funnel */
.viz--funnel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
}
.viz-funnel-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.viz-funnel-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
}
.viz-funnel-bar {
  position: relative;
  height: 30px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--blue-500), var(--purple-500));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 64px;
}
.viz-funnel-bar span {
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding-right: 12px;
}

/* ── 5. Stats band ────────────────────────────────────────────── */
.stats-section {
  padding: 64px 20px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.stat {
  text-align: center;
  padding: 8px 16px;
}
.stat-num {
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.5;
  max-width: 240px;
  margin: 0 auto;
}

/* ── 6. Closing CTA ───────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-500) 45%, var(--purple-500) 100%);
  color: white;
  text-align: center;
  padding: 76px 20px;
  margin-bottom: 40px;
}
.cta-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: white;
  letter-spacing: -0.02em;
}
.cta-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  opacity: 0.92;
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.6;
  color: white;
}
.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Responsive: Tablet ≤ 900px ────────────────────────────────── */
@media (max-width: 900px) {
  .power-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .power-row.power-row--reverse .power-text,
  .power-row.power-row--reverse .power-visual {
    order: unset;
  }
  .core-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Responsive: Mobile ≤ 767px ────────────────────────────────── */
@media (max-width: 767px) {
  .home-section {
    padding: 48px 16px;
  }
  .hero-section {
    padding: 56px 16px 0;
  }
  .hero-h1 {
    font-size: 1.85rem;
  }
  .hero-sub {
    font-size: 1rem;
  }
  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .hero-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  .hero-preview {
    margin: 40px auto -60px;
  }
  .app-grid {
    grid-template-columns: 1fr;
  }
  .app-head {
    flex-direction: column;
  }
  .provider-section {
    padding: 92px 16px 4px;
  }
  .provider-chip {
    font-size: 0.85rem;
    padding: 8px 14px;
  }
  .core-grid {
    grid-template-columns: 1fr;
  }
  .core-card {
    padding: 24px;
  }
  .power-section,
  .core-section,
  .stats-section {
    padding: 48px 16px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cta-section {
    padding: 48px 16px;
  }
  .cta-title {
    font-size: 1.5rem;
  }
  .section-header {
    margin-bottom: 32px;
  }
}
