/* ============================================================
 * landing-v2.css — complements style.css
 * Styles for the refreshed landing: fix contrast issues on nav
 * button + add the new sections (vs-table, pricing, demo, frontier…)
 * ============================================================ */

:root {
  --gold-bright: #e4cd92;
  --gold-ink: #8a6b2b;
  --teal: #0e7c7b;
  --teal-soft: #1fa8a7;
  --emerald: #10b981;
  --rose: #e11d48;
}

/* ============================================================
 * BUTTON FIXES — contrast + size variants
 * ============================================================ */

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
}
.btn-lg {
  padding: 0.95rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Gold button always readable: deep gold bg + near-black text */
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: var(--navy-ink);
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset,
              0 4px 14px -4px rgba(199, 169, 98, 0.45);
  border: 1px solid rgba(199, 169, 98, 0.5);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset,
              0 10px 24px -8px rgba(199, 169, 98, 0.6);
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
}

/* Ghost — transparent, light border, for secondary CTAs on dark bg */
.btn-ghost {
  background: transparent;
  color: var(--navy-ink);
  border: 1px solid rgba(15, 23, 42, 0.2);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.4);
}

.btn-ghost-light {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(247, 243, 234, 0.25);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-ghost-light:hover {
  background: rgba(247, 243, 234, 0.08);
  border-color: rgba(247, 243, 234, 0.6);
}

/* ============================================================
 * HERO TWEAKS
 * ============================================================ */

.hero h1 em {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  margin-right: 0.5rem;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.hero-proof-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: rgba(199, 169, 98, 0.1);
  border: 1px solid rgba(199, 169, 98, 0.25);
  border-radius: 999px;
  color: var(--navy-ink);
  font-size: 0.82rem;
  font-weight: 500;
}
.hero-proof-chip strong {
  color: var(--gold-ink);
  font-weight: 700;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 0.95rem;
}

/* ============================================================
 * PROOF BAR — more columns
 * ============================================================ */

.proof-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

/* ============================================================
 * SECTION HEADER — common
 * ============================================================ */

.section-lead {
  max-width: 44rem;
  margin: 1rem auto 0;
  color: var(--navy-soft);
  font-size: 1.08rem;
  line-height: 1.65;
}
.section-dark .section-lead {
  color: rgba(247, 243, 234, 0.75);
}

.section-gradient {
  background: linear-gradient(180deg, var(--ivory-soft) 0%, #f0e7d0 100%);
}

/* ============================================================
 * VS TABLE — Cabinet IA vs concurrents
 * ============================================================ */

.vs-table {
  max-width: 60rem;
  margin: 3rem auto 0;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  box-shadow: 0 8px 30px -12px rgba(15, 23, 42, 0.12);
}
.vs-row {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1.5fr;
  gap: 0;
}
.vs-row > div {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.95rem;
  color: var(--navy-soft);
  display: flex;
  align-items: center;
}
.vs-row:last-child > div { border-bottom: 0; }
.vs-row.vs-head > div {
  background: var(--navy);
  color: var(--ivory);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1rem 1.5rem;
}
.vs-row.vs-head .vs-us {
  background: var(--gold);
  color: var(--navy-ink);
}
.vs-row .vs-crit {
  font-weight: 600;
  color: var(--navy);
  background: rgba(15, 23, 42, 0.03);
}
.vs-row .vs-us {
  background: rgba(199, 169, 98, 0.06);
  color: var(--navy);
  font-weight: 500;
  border-left: 2px solid var(--gold);
}
.vs-row .vs-us::before {
  content: "✓";
  color: var(--emerald);
  font-weight: 900;
  margin-right: 0.55rem;
  font-size: 1.05rem;
}

/* ============================================================
 * FEATURES — fix contrast + fix layout on large screens
 *
 * Bug 1 : .section-dark h3 forced ivory on ALL h3, including those
 *   inside ivory feature cards → invisible titles. Fix: scope to cards.
 *
 * Bug 2 : grid auto-fit minmax(260px,1fr) gave 4+ columns on 1920px
 *   screens → cards too narrow, titles wrapping awkwardly.
 *   Fix: clamp to max 3 columns and enforce a healthy min width.
 * ============================================================ */

.section-dark .feature h3,
.section .feature h3 {
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.section-dark .feature p,
.section .feature p {
  color: var(--navy-soft);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* Clamp to max 3 columns + sensible min width so nothing breaks on 1440/1920 */
.features {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  max-width: 78rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1200px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}

.feature {
  padding: 1.75rem 1.6rem;
}
.feature .feature-icon {
  margin-bottom: 1rem;
}

/* ============================================================
 * FEATURES — highlight variant + stat footer
 * ============================================================ */

.feature-highlight {
  /* Solid background so titles stay readable regardless of parent section */
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, #fffbf0 0%, var(--ivory-soft) 100%);
  box-shadow: 0 10px 30px -12px rgba(199, 169, 98, 0.35);
  position: relative;
}
.feature-highlight::before {
  content: "P0";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gold-ink);
  background: rgba(199, 169, 98, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(199, 169, 98, 0.3);
}
.feature-stat {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(199, 169, 98, 0.25);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.82rem;
  color: var(--gold-ink);
  letter-spacing: 0.02em;
  font-weight: 600;
}
.feature-stat strong {
  color: var(--emerald);
  font-size: 0.95rem;
}

/* ============================================================
 * FRONTIER (FR/CH) — cards
 * ============================================================ */

.frontier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
  margin-top: 3rem;
}
.frontier-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.frontier-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(15, 23, 42, 0.15);
  border-color: rgba(199, 169, 98, 0.4);
}
.frontier-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  color: var(--navy);
}
.frontier-card p {
  color: var(--navy-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 0.75rem;
}
.frontier-ref {
  display: inline-block;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  color: var(--gold-ink);
  background: rgba(199, 169, 98, 0.08);
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

/* ============================================================
 * STEPS — with number
 * ============================================================ */

.step {
  position: relative;
}
.step-num {
  display: inline-block;
  font-family: var(--font-mono, ui-monospace, monospace);
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  margin-bottom: 0.75rem;
}

/* ============================================================
 * DEMO CASES — 3 scénarios d'usage
 * ============================================================ */

.demo-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.demo-case {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.demo-case:hover {
  box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.18);
  border-color: rgba(199, 169, 98, 0.4);
}
.demo-case-head h3 {
  margin: 0.4rem 0 0;
  color: var(--navy);
  font-size: 1.15rem;
}
.demo-case-tag {
  display: inline-block;
  background: rgba(14, 124, 123, 0.1);
  color: var(--teal);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.demo-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--navy-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}
.demo-steps li { margin-bottom: 0.35rem; }
.demo-steps li em {
  color: var(--gold-ink);
  font-style: normal;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  background: rgba(199, 169, 98, 0.1);
  border-radius: 4px;
}
.demo-gain {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.9rem;
  color: var(--navy-soft);
}
.demo-gain strong {
  color: var(--emerald);
  font-size: 1rem;
}

/* ============================================================
 * PRICING
 * ============================================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 60rem;
  margin: 3rem auto 0;
}
.pricing-card {
  background: #fff;
  border: 2px solid var(--gold);
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 20px 40px -20px rgba(199, 169, 98, 0.35);
  position: relative;
}
.pricing-card.pricing-card-alt {
  background: var(--navy);
  color: var(--ivory);
  border-color: rgba(199, 169, 98, 0.5);
}
.pricing-card.pricing-card-alt .pricing-tier,
.pricing-card.pricing-card-alt .pricing-desc {
  color: rgba(247, 243, 234, 0.85);
}
.pricing-card.pricing-card-alt .pricing-price-num {
  color: var(--gold-bright);
}
.pricing-card.pricing-card-alt .pricing-features {
  color: rgba(247, 243, 234, 0.85);
}
.pricing-card.pricing-card-alt .pricing-features li::before {
  color: var(--gold-bright);
}
.pricing-tier {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--navy-soft);
}
.pricing-price { margin: -0.4rem 0 0; }
.pricing-price-num {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.015em;
}
.pricing-desc {
  color: var(--navy-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 0.3rem;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--navy-soft);
  font-size: 0.92rem;
}
.pricing-features li {
  padding-left: 1.4rem;
  position: relative;
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--emerald);
  font-weight: 700;
}
.pricing-trust {
  max-width: 34rem;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--navy-soft);
  font-style: italic;
}

/* ============================================================
 * CTA FINALE
 * ============================================================ */

.cta-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* ============================================================
 * RESPONSIVE TOUCH-UPS
 * ============================================================ */

@media (max-width: 720px) {
  .nav-links { gap: 0.75rem; }
  .nav-links li:not(:last-child) { display: none; }
  .vs-row { grid-template-columns: 1fr; }
  .vs-row.vs-head { display: none; }
  .vs-row .vs-crit {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-ink);
    background: transparent;
    padding-bottom: 0.25rem;
  }
  .vs-row > div { padding: 0.65rem 1rem; border: 0; }
  .vs-row { border-bottom: 1px solid rgba(15, 23, 42, 0.08); padding: 0.8rem 0; }
  .hero h1 { font-size: 2.2rem; }
  .pricing-grid { grid-template-columns: 1fr; }
}
