/* ============================================================
   ReversePro Landing Page – style (réplique fidèle de la page React)
   Palette : slate-50 #F8FAFC · slate-900 #0F172A · blue-600 #2563EB
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #F8FAFC;
  color: #0F172A;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
svg { display: block; }

.container    { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.container-md { max-width: 896px;  margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 768px;  margin: 0 auto; padding: 0 24px; }

/* ================= Header ================= */
.lp-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E2E8F0;
  transition: box-shadow 0.3s;
}
.lp-header.scrolled { box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06); }
.lp-header .inner {
  max-width: 1152px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.logo { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: #0F172A; }
.logo span { color: #2563EB; }

.desktop-nav { display: none; align-items: center; gap: 32px; }
.nav-link { font-size: 14px; font-weight: 500; color: #475569; transition: color 0.2s; }
.nav-link:hover { color: #0F172A; }

.header-actions { display: none; align-items: center; gap: 12px; }
.link-login { font-size: 14px; font-weight: 500; color: #475569; padding: 8px 16px; transition: color 0.2s; }
.link-login:hover { color: #0F172A; }
.btn-trial {
  font-size: 14px; font-weight: 600; color: #fff; background: #2563EB;
  padding: 8px 16px; border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background 0.2s;
}
.btn-trial:hover { background: #1D4ED8; }

.menu-btn { display: block; padding: 8px; color: #475569; }
.menu-btn svg { width: 20px; height: 20px; }

.mobile-menu { display: none; background: #fff; border-top: 1px solid #E2E8F0; padding: 16px 24px; }
.mobile-menu.open { display: block; }
.mobile-menu > a { display: block; font-size: 14px; font-weight: 500; color: #475569; padding: 6px 0; }
.mobile-actions { padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.mobile-actions .btn-outline { border: 1px solid #E2E8F0; border-radius: 12px; text-align: center; padding: 8px 16px; font-size: 14px; font-weight: 500; color: #475569; }
.mobile-actions .btn-primary { background: #2563EB; color: #fff; border-radius: 12px; text-align: center; padding: 8px 16px; font-size: 14px; font-weight: 600; }

/* ================= Hero ================= */
.hero { position: relative; background: #F8FAFC; overflow: hidden; padding: 128px 0 96px; }
.orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(100px); }
.orb-1 {
  width: 500px; height: 500px; top: 40px; left: 10%;
  background: linear-gradient(to right, rgba(219, 234, 254, 0.6), rgba(191, 219, 254, 0.4));
  animation: float1 8s ease-in-out infinite;
}
.orb-2 {
  width: 600px; height: 600px; bottom: 80px; right: 5%;
  background: linear-gradient(to right, rgba(191, 219, 254, 0.5), rgba(147, 197, 253, 0.3));
  animation: float2 10s ease-in-out 1s infinite;
}
@keyframes float1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -20px) scale(1.1); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-20px, 30px) scale(1.15); } }

.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.03;
  background-image:
    linear-gradient(to right, #0F172A 1px, transparent 1px),
    linear-gradient(to bottom, #0F172A 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-content { position: relative; z-index: 10; max-width: 960px; margin: 0 auto; padding: 0 24px; text-align: center; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 9999px;
  background: #fff; border: 1px solid #E2E8F0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-bottom: 32px;
}
.badge .dot { width: 6px; height: 6px; background: #2563EB; border-radius: 50%; }
.badge .txt { font-size: 14px; font-weight: 500; color: #475569; }

.hero h1 { font-size: 36px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 24px; }
.hero h1 .accent { display: block; color: #2563EB; }
.hero .subtitle { font-size: 18px; color: #64748B; max-width: 672px; margin: 0 auto 40px; line-height: 1.625; }

.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 32px; border-radius: 12px;
  background: #2563EB; color: #fff;
  font-size: 16px; font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
  transition: background 0.2s, transform 0.2s;
}
.cta-btn:hover { background: #1D4ED8; transform: translateY(-2px); }
.cta-btn svg { width: 20px; height: 20px; }
.trial-note { margin-top: 16px; font-size: 12px; color: #94A3B8; }

/* Hero entrance animations */
.fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp 0.6s ease forwards; }
.d1 { animation-delay: 0.2s; } .d2 { animation-delay: 0.3s; }
.d3 { animation-delay: 0.4s; } .d4 { animation-delay: 0.5s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ================= Sections ================= */
.section { padding: 96px 0; }
.section-white { background: #fff; }
.section-gray { background: #F8FAFC; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 16px; }
.section-head p { font-size: 18px; color: #64748B; max-width: 672px; margin: 0 auto; line-height: 1.625; }

.grid-3, .grid-2 { display: grid; gap: 24px; }

/* ================= Cards ================= */
.card {
  position: relative; background: #fff;
  border: 1px solid #E2E8F0; border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 32px; height: 100%;
}
.card.hoverable { transition: box-shadow 0.3s; }
.card.hoverable:hover { box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08); }
.card.muted { opacity: 0.8; background: rgba(248, 250, 252, 0.5); }

.step-badge {
  position: absolute; top: -12px; left: 32px;
  background: #2563EB; color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.icon-box {
  width: 48px; height: 48px; border-radius: 12px;
  background: #EFF6FF; border: 1px solid #DBEAFE;
  display: flex; align-items: center; justify-content: center;
  margin: 8px 0 20px; color: #2563EB;
}
.icon-box svg { width: 24px; height: 24px; }

.card h3 { font-size: 18px; font-weight: 700; color: #0F172A; margin-bottom: 8px; }
.card-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.card-title-row h3 { margin-bottom: 0; }

.soon-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 6px;
  background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  white-space: nowrap;
}
.soon-badge .pulse { width: 4px; height: 4px; border-radius: 50%; background: #10B981; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.card .subtitle { color: #2563EB; font-weight: 500; font-size: 14px; margin-bottom: 12px; }
.card .desc { font-size: 14px; color: #64748B; line-height: 1.625; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 8px;
  background: #F8FAFC; border: 1px solid #E2E8F0;
  font-size: 12px; font-weight: 500; color: #475569;
}
.chip svg { width: 14px; height: 14px; color: #2563EB; stroke-width: 2; }

/* ================= Pricing ================= */
.plan { display: flex; flex-direction: column; }
.plan-featured { border: 2px solid #2563EB; box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1); }
.featured-tag {
  position: absolute; top: -12px; left: 32px;
  background: #2563EB; color: #fff;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 12px; border-radius: 9999px;
}
.plan-head { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.plan-head h3 { margin-bottom: 0; }
.plan-icon {
  width: 36px; height: 36px; border-radius: 8px; background: #F1F5F9;
  display: flex; align-items: center; justify-content: center; color: #475569;
}
.plan-icon.blue { background: #EFF6FF; border: 1px solid #DBEAFE; color: #2563EB; }
.plan-icon svg { width: 16px; height: 16px; }

.price { font-size: 36px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.price .per { font-size: 14px; color: #64748B; font-weight: 500; }
.plan-sub { font-size: 14px; color: #64748B; margin-bottom: 32px; }

.plan ul { display: flex; flex-direction: column; gap: 12px; flex: 1; margin-bottom: 32px; }
.plan ul li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #475569; }
.plan ul li svg { width: 16px; height: 16px; color: #2563EB; stroke-width: 2; flex-shrink: 0; }

.fine-print { font-size: 11px; color: #94A3B8; line-height: 1.625; margin-bottom: 24px; }
.btn-plan { display: block; text-align: center; padding: 12px 24px; border-radius: 12px; font-size: 14px; font-weight: 600; transition: all 0.2s; }
.btn-plan.outline { border: 1px solid #CBD5E1; color: #0F172A; }
.btn-plan.outline:hover { background: #F8FAFC; }
.btn-plan.primary { background: #2563EB; color: #fff; box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2); }
.btn-plan.primary:hover { background: #1D4ED8; }

/* ================= FAQ ================= */
.faq-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); padding: 0 24px; }
.faq-item { border-bottom: 1px solid #F1F5F9; }
.faq-item:last-child { border-bottom: none; }
.faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left; padding: 20px 0;
  font-size: 14px; font-weight: 600; color: #0F172A;
}
.faq-trigger svg { width: 16px; height: 16px; color: #64748B; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-trigger svg { transform: rotate(180deg); }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-content p { font-size: 14px; color: #64748B; line-height: 1.625; padding: 0 0 20px; }

/* ================= Footer ================= */
.lp-footer { background: #fff; border-top: 1px solid #E2E8F0; padding: 48px 0; }
.lp-footer .inner { max-width: 1152px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.lp-footer .tagline { font-size: 14px; color: #64748B; max-width: 560px; line-height: 1.6; }
.lp-footer .copy { font-size: 12px; color: #94A3B8; }
.lp-footer .legal { font-size: 11px; color: #94A3B8; max-width: 760px; line-height: 1.6; }

/* ================= Reveal on scroll ================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.15s; }
.reveal[data-delay="2"] { transition-delay: 0.3s; }
.reveal[data-delay="3"] { transition-delay: 0.45s; }

/* ================= Responsive ================= */
@media (min-width: 768px) {
  .hero h1 { font-size: 60px; }
  .section-head h2 { font-size: 36px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .desktop-nav { display: flex; }
  .header-actions { display: flex; }
  .menu-btn { display: none; }
  .mobile-menu { display: none !important; }
}
@media (max-width: 767px) {
  .hero { padding-top: 96px; padding-bottom: 80px; }
  .section { padding: 64px 0; }
}
