/* ============================================================
   Qualify CRM — Landing Page CSS
   ============================================================ */

:root {
  --primary:        #6366f1;
  --primary-dark:   #4f46e5;
  --primary-light:  #e0e7ff;
  --text:           #0f172a;
  --text-muted:     #64748b;
  --bg:             #ffffff;
  --bg-alt:         #f8fafc;
  --border:         #e2e8f0;
  --success:        #22c55e;
  --radius:         0.75rem;
  --shadow:         0 4px 24px rgba(99,102,241,0.10);
  --shadow-lg:      0 8px 40px rgba(99,102,241,0.16);
  --font:           -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w:          1200px;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ─── Utilitaires ────────────────────────────────────────── */
.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.sr-only    { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
  text-decoration: none;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(99,102,241,0.25);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 20px rgba(99,102,241,0.35); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.btn-white:hover { background: var(--primary-light); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-primary { background: var(--primary-light); color: var(--primary-dark); }

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav__logo-icon {
  width: 34px;
  height: 34px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav__links a:hover, .nav__links a.active { color: var(--primary); }
.nav__cta { display: flex; align-items: center; gap: 0.75rem; }

/* Mobile nav toggle */
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; color: var(--text); }
.nav__toggle svg { width: 24px; height: 24px; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f4ff 0%, #fafbff 60%, #f8fafc 100%);
  padding: 6rem 0 5rem;
}
.hero::before {
  content: '';
  position: absolute;
  top: -180px; right: -180px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero__content { position: relative; z-index: 1; }
.hero__eyebrow { margin-bottom: 1.25rem; }
.hero__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.hero__title span { color: var(--primary); }
.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.7;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero__social-proof {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero__avatars {
  display: flex;
}
.hero__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--primary-light);
  margin-right: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}
.hero__visual { position: relative; z-index: 1; }
.hero__mockup {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.mockup__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.mockup__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.mockup__dot:nth-child(1) { background: #ff5f57; }
.mockup__dot:nth-child(2) { background: #febc2e; }
.mockup__dot:nth-child(3) { background: #28c840; }
.mockup__content { padding: 1.25rem; }
.mockup__stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.mockup__stat {
  background: var(--bg-alt);
  border-radius: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
}
.mockup__stat-value { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.mockup__stat-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.1rem; }
.mockup__lead-list { display: flex; flex-direction: column; gap: 0.5rem; }
.mockup__lead {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg-alt);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}
.mockup__lead-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}
.mockup__lead-name { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.mockup__lead-source { font-size: 0.7rem; color: var(--text-muted); }
.mockup__score {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.score-green { background: #dcfce7; color: #16a34a; }
.score-orange { background: #fff7ed; color: #ea580c; }
.score-red { background: #fee2e2; color: #dc2626; }
.mockup__tag-green { background: #dcfce7; color: #16a34a; border-radius: 4px; padding: 0.15rem 0.4rem; font-size: 0.68rem; font-weight: 600; }
.mockup__tag-orange { background: #fff7ed; color: #ea580c; border-radius: 4px; padding: 0.15rem 0.4rem; font-size: 0.68rem; font-weight: 600; }
.mockup__tag-blue { background: #dbeafe; color: #1d4ed8; border-radius: 4px; padding: 0.15rem 0.4rem; font-size: 0.68rem; font-weight: 600; }

/* ─── Section générique ──────────────────────────────────── */
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }
.section__header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section__eyebrow { margin-bottom: 0.75rem; }
.section__title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.section__subtitle { font-size: 1rem; color: var(--text-muted); line-height: 1.7; }

/* ─── Features ───────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-card__icon {
  width: 48px; height: 48px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
.feature-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card__desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ─── Stats ──────────────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 4rem 0;
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat__value { font-size: 2.5rem; font-weight: 900; letter-spacing: -0.03em; }
.stat__label { font-size: 0.85rem; opacity: 0.8; margin-top: 0.25rem; font-weight: 500; }

/* ─── Steps (how it works mini) ──────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 16.5%;
  right: 16.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  opacity: 0.25;
}
.step {
  text-align: center;
  position: relative;
}
.step__number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(99,102,241,0.30);
}
.step__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.step__desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ─── CTA Band ───────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  padding: 5rem 0;
  text-align: center;
  color: #fff;
}
.cta-band__title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.cta-band__subtitle { font-size: 1rem; opacity: 0.75; margin-bottom: 2rem; }
.cta-band__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer__brand-name { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.footer__brand-desc { font-size: 0.85rem; line-height: 1.7; }
.footer__col-title { font-size: 0.8rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.footer__col-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col-links a { font-size: 0.85rem; transition: color 0.15s; }
.footer__col-links a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer__bottom a { transition: color 0.15s; }
.footer__bottom a:hover { color: #fff; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__visual { order: -1; }
  .hero__title { font-size: 2rem; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #fff;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .steps-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps-grid::before { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .cta-band { padding: 3.5rem 0; }
}
