/* landing.css — Vigil landing page */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:             #F8FAFC;
  --bg-dark:        #0B1120;
  --bg-dark-2:      #111827;
  --surface:        #FFFFFF;
  --border:         #E2E8F0;
  --border-dark:    #1E2D45;

  --text-primary:   #0F172A;
  --text-secondary: #64748B;
  --text-light:     #F1F5F9;
  --text-muted:     #94A3B8;

  --brand:          #3B82F6;
  --brand-dark:     #1E40AF;
  --brand-hover:    #2563EB;
  --accent:         #6366F1;

  --risk-low:       #22C55E;
  --risk-medium:    #CA8A04;
  --risk-high:      #EF4444;

  --font: 'Inter', system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Boutons ─────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 150ms ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--sm   { padding: 7px 16px; font-size: 14px; }
.btn--lg   { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-lg); }
.btn--full { width: 100%; justify-content: center; }

.btn--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn--primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }

.btn--outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn--outline:hover { background: rgba(59,130,246,0.06); }

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn--ghost:hover { color: var(--text-primary); border-color: var(--text-secondary); }

/* ── Nav ─────────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav__logo {
  width: 30px; height: 30px;
  background: var(--brand);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #fff;
}

.nav__name { font-weight: 700; font-size: 16px; color: #fff; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 150ms;
}
.nav__link:hover { color: #fff; }

/* ── Hero ────────────────────────────────────────────────────────────────────── */

.hero {
  background: var(--bg-dark);
  padding: 80px 0 0;
  overflow: hidden;
}

.hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #A5B4FC;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero__accent {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero__sub strong { color: #F1F5F9; }

.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}

.hero__trust {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 64px;
}

/* ── Demo browser ─────────────────────────────────────────────────────────────── */

.hero__demo {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

.demo__browser {
  background: #1a2235;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid #2a3654;
  border-bottom: none;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.demo__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #0f1829;
  border-bottom: 1px solid #2a3654;
}

.demo__dots { display: flex; gap: 6px; }
.demo__dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #2a3654;
}
.demo__dots span:nth-child(1) { background: #FF5F57; }
.demo__dots span:nth-child(2) { background: #FFBD2E; }
.demo__dots span:nth-child(3) { background: #28C840; }

.demo__url {
  flex: 1;
  background: #1a2235;
  border: 1px solid #2a3654;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 13px;
  color: #94A3B8;
  text-align: center;
}

.demo__badge-url {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
}
.badge-url--high { background: var(--risk-high); }

.demo__page {
  padding: 24px 20px 0;
  min-height: 200px;
  position: relative;
}

.demo__page-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.demo__line {
  height: 12px;
  background: #2a3654;
  border-radius: 4px;
}

/* Overlay Vigil */
.demo__vigil-overlay {
  background: rgba(69, 10, 10, 0.9);
  border: 1px solid var(--risk-high);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 0;
}

.demo__overlay-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.demo__overlay-logo {
  width: 20px; height: 20px;
  background: var(--brand);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}

.demo__overlay-brand {
  font-size: 10px;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.05em;
  flex: 1;
}

.demo__overlay-tag {
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tag--high { background: var(--risk-high); color: #fff; }

.demo__overlay-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo__overlay-score {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 3px solid;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  flex-shrink: 0;
}

.score--high { border-color: var(--risk-high); color: var(--risk-high); }

.demo__overlay-text strong {
  display: block;
  font-size: 13px;
  color: #FECACA;
  margin-bottom: 6px;
}

.demo__overlay-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.demo__overlay-tags span {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 11px;
  color: #FECACA;
}

/* Cookie banner originale */
.demo__cookie-banner {
  background: #1a2235;
  border-top: 1px solid #2a3654;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.demo__cookie-text {
  font-size: 12px;
  color: #94A3B8;
  flex: 1;
}

.demo__cookie-btns { display: flex; gap: 8px; }

.demo__btn-accept, .demo__btn-refuse {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
}

.demo__btn-accept { background: #2a3654; color: #94A3B8; }
.demo__btn-refuse { background: transparent; color: #64748B; border: 1px solid #2a3654; }

/* ── Stats ─────────────────────────────────────────────────────────────────── */

.stats {
  background: var(--bg-dark-2);
  padding: 40px 0;
  border-bottom: 1px solid var(--border-dark);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat__value {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.stat__value span {
  font-size: 24px;
  color: var(--brand);
}

.stat__label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Sections communes ───────────────────────────────────────────────────────── */

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

/* ── How it works ────────────────────────────────────────────────────────────── */

.how {
  padding: 96px 0;
  background: var(--bg);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 48px;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}

.step__num {
  width: 48px; height: 48px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.step__content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.step__content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step__connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  margin-top: 24px;
  flex-shrink: 0;
}

/* ── Features ────────────────────────────────────────────────────────────────── */

.features {
  padding: 96px 0;
  background: var(--bg-dark);
}

.features .section-label { color: var(--accent); }
.features .section-title { color: #fff; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: border-color 200ms, transform 200ms;
}

.feature-card:hover {
  border-color: rgba(59,130,246,0.4);
  transform: translateY(-2px);
}

.feature-card__icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Pricing ─────────────────────────────────────────────────────────────────── */

.pricing {
  padding: 96px 0;
  background: var(--bg);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.plan {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan--highlight {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.08);
}

.plan__popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.plan__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.plan__price {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1;
}

.plan__price span {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
}

.plan__features {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan__features li {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.plan__features li::before {
  content: '✓';
  color: var(--brand);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing__note {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── Trust ────────────────────────────────────────────────────────────────────── */

.trust {
  padding: 96px 0;
  background: var(--bg-dark-2);
}

.trust .section-title { color: #fff; text-align: center; margin-bottom: 48px; }

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  text-align: center;
  padding: 24px 16px;
}

.trust-item__icon {
  font-size: 36px;
  margin-bottom: 14px;
  display: block;
}

.trust-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.trust-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Install CTA ──────────────────────────────────────────────────────────────── */

.install {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--brand-dark) 0%, #312e81 100%);
  text-align: center;
}

.install__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.install__sub {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
}

.install__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.install .btn--primary { background: #fff; color: var(--brand-dark); border-color: #fff; }
.install .btn--primary:hover { background: rgba(255,255,255,0.9); }
.install .btn--outline { border-color: rgba(255,255,255,0.4); color: #fff; }
.install .btn--outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.install .btn--ghost { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.6); }
.install .btn--ghost:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

.install__compat {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ── FAQ ──────────────────────────────────────────────────────────────────────── */

.faq {
  padding: 96px 0;
  background: var(--bg);
}

.faq__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  cursor: pointer;
  transition: border-color 150ms;
}

.faq__item:hover { border-color: var(--brand); }
.faq__item[open] { border-color: var(--brand); }

.faq__item summary {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--brand);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 200ms;
}

.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 12px;
}

/* ── Footer ───────────────────────────────────────────────────────────────────── */

.footer {
  background: var(--bg-dark);
  padding: 60px 0 32px;
  border-top: 1px solid var(--border-dark);
}

.footer__top {
  display: flex;
  gap: 64px;
  margin-bottom: 48px;
}

.footer__brand { flex: 1; }

.footer__logo {
  width: 32px; height: 32px;
  background: var(--brand);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: #fff;
  margin-bottom: 8px;
}

.footer__name { font-size: 18px; font-weight: 700; color: #fff; display: block; margin-bottom: 8px; }

.footer__tagline { font-size: 14px; color: var(--text-muted); max-width: 220px; line-height: 1.6; }

.footer__links { display: flex; gap: 48px; }

.footer__col { display: flex; flex-direction: column; gap: 10px; }

.footer__col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer__col a {
  font-size: 14px;
  color: #64748B;
  text-decoration: none;
  transition: color 150ms;
}
.footer__col a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Responsive ───────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .stats__grid       { grid-template-columns: repeat(2, 1fr); }
  .features__grid    { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid     { grid-template-columns: repeat(2, 1fr); }
  .trust__grid       { grid-template-columns: repeat(2, 1fr); }
  .faq__grid         { grid-template-columns: 1fr; }
  .steps             { flex-direction: column; align-items: center; }
  .step__connector   { width: 2px; height: 32px; margin: 0; }
  .footer__top       { flex-direction: column; gap: 32px; }
  .footer__links     { flex-wrap: wrap; gap: 32px; }
}

@media (max-width: 600px) {
  .hero__ctas        { flex-direction: column; align-items: stretch; }
  .stats__grid       { grid-template-columns: repeat(2, 1fr); }
  .features__grid    { grid-template-columns: 1fr; }
  .pricing__grid     { grid-template-columns: 1fr; }
  .trust__grid       { grid-template-columns: 1fr; }
  .install__btns     { flex-direction: column; align-items: center; }
  .nav__links .nav__link { display: none; }
  .footer__bottom    { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── JS-driven states ─────────────────────────────────────────────────────── */

/* Sticky nav — shadow appears after 10px scroll */
.nav--scrolled {
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 24px rgba(0,0,0,0.18);
}

/* Fade-in on scroll (IntersectionObserver) */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero CTA — browser-detected secondary style */
.cta--secondary-hero {
  background: transparent !important;
  color: rgba(255,255,255,0.75) !important;
  border-color: rgba(255,255,255,0.3) !important;
}
.cta--secondary-hero:hover {
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.55) !important;
}

/* Demo browser overlay pulse animation */
@keyframes demo-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
  60%  { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
.demo-pulse {
  animation: demo-pulse 0.6s ease-out;
}
