:root {
  --accent: #7c5cff;
  --accent-2: #9d8bff;
  --bg: #0b0b0f;
  --text: #edecf2;
  --text-dim: #9b9ba8;
  --text-faint: rgba(255, 255, 255, 0.45);
  --surface-1: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border-1: rgba(255, 255, 255, 0.09);
  --border-2: rgba(255, 255, 255, 0.16);
  --font-display: 'Syne', sans-serif;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Texture grain — atmosphère « studio », très discrète. */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.nav, .hero-inner, .section, .final-cta, .footer { position: relative; z-index: 2; }

/* Révélation au scroll : opacité + léger glissé, staggers via --d. */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s cubic-bezier(.22,1,.36,1), transform 0.6s cubic-bezier(.22,1,.36,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

a { color: inherit; text-decoration: none; }

/* ── Boutons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6b46e0);
  color: #fff;
  box-shadow: 0 8px 28px rgba(124, 92, 255, 0.38);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(124, 92, 255, 0.5); }
.btn-ghost {
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-2); }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 13px; }

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: var(--text-dim); font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav-links a:not(.btn):hover { color: var(--text); }

/* ── Hero ────────────────────────────────────────── */
.hero {
  position: relative;
  text-align: center;
  padding: 70px 24px 40px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(124, 92, 255, 0.28), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 880px; margin: 0 auto; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
}
.grad {
  background: linear-gradient(120deg, var(--accent-2), #c4b5ff 60%, #7c5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 34px;
}
.sub em { color: var(--text); font-style: normal; font-weight: 600; }
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 56px;
}
.cta-note { font-size: 13px; color: var(--text-faint); }

/* Cadre vidéo type fenêtre */
.hero-video {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-1);
  background: #050507;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.hero-video-bar {
  display: flex;
  gap: 7px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-1);
}
.hero-video-bar span {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.hero-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0d0d12;
}
.hero-video.no-video video { object-fit: contain; }

/* ── Sections ────────────────────────────────────── */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 28px;
}
.section-narrow { max-width: 740px; }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.5vw, 38px);
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 14px;
}
.section-sub { text-align: center; color: var(--text-dim); margin: 0 0 44px; }
.section-title + .steps, .section-title + .features { margin-top: 48px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: 16px;
  padding: 28px 24px;
}
.step-num {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.3);
  color: var(--accent-2);
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3, .feature h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 8px;
}
.step p, .feature p { color: var(--text-dim); font-size: 14.5px; margin: 0; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: 14px;
  padding: 24px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover { border-color: var(--border-2); transform: translateY(-2px); }

/* ── Pricing ─────────────────────────────────────── */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.plan {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: 18px;
  padding: 30px 26px;
}
.plan-featured {
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.3), 0 20px 50px rgba(124, 92, 255, 0.12);
}
.plan-badge {
  position: absolute;
  top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #6b46e0);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
}
.plan-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text-dim); }
.plan-price { font-family: var(--font-display); font-weight: 800; font-size: 42px; letter-spacing: -0.02em; margin: 6px 0 2px; }
.plan-unit { font-size: 12.5px; color: var(--text-faint); margin-bottom: 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 11px; }
.plan li { font-size: 14px; color: var(--text-dim); padding-left: 24px; position: relative; }
.plan li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--accent-2); font-weight: 700;
}
.plan .btn { width: 100%; justify-content: center; }

/* ── FAQ ─────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  padding: 4px 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent-2); font-size: 22px; font-weight: 300; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--text-dim); font-size: 14.5px; margin: 0 0 18px; padding-right: 30px; }

/* ── Final CTA ───────────────────────────────────── */
.final-cta {
  text-align: center;
  padding: 90px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.final-cta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.02em;
  margin: 0 0 30px;
}

/* ── Footer ──────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-1);
  padding: 28px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 13px;
}

/* ── Marquee de mouvements ───────────────────────── */
.marquee {
  margin: 40px auto 0;
  max-width: 920px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--text-dim);
  padding: 7px 15px;
  border: 1px solid var(--border-1);
  border-radius: 999px;
  background: var(--surface-1);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; } }

/* ── Bento features ──────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.bento .feature { grid-column: span 1; }
.bento .f-wide { grid-column: span 2; }
.feature { display: flex; flex-direction: column; }
.f-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.28);
  color: var(--accent-2);
  margin-bottom: 16px;
}
.f-icon svg { width: 21px; height: 21px; }
.feature p em { color: var(--text); font-style: normal; font-weight: 600; }

/* Chips (motions) + pills (formats) */
.chips, .pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.chips span, .pills span {
  font-size: 12px; font-weight: 600;
  padding: 5px 11px; border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  color: var(--text-dim);
}
.pills .pill-accent { background: rgba(124,92,255,0.14); border-color: rgba(124,92,255,0.32); color: var(--accent-2); }
.pills .pill-new { position: relative; color: var(--text); border-color: var(--border-2); }
.pills .pill-new::after {
  content: 'new'; position: absolute; top: -7px; right: -7px;
  font-size: 8px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 2px 5px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), #6b46e0); color: #fff;
}

/* ── Final CTA glow ──────────────────────────────── */
.final-cta { position: relative; overflow: hidden; }
.final-glow {
  position: absolute; bottom: -240px; left: 50%; transform: translateX(-50%);
  width: 760px; height: 460px;
  background: radial-gradient(ellipse at center, rgba(124,92,255,0.22), transparent 68%);
  filter: blur(16px); pointer-events: none; z-index: 0;
}
.final-cta h2, .final-cta .btn { position: relative; z-index: 1; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 920px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .f-wide { grid-column: span 2; }
}
@media (max-width: 820px) {
  .nav-links a:not(.btn) { display: none; }
  .steps, .features, .pricing { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento .feature, .bento .f-wide { grid-column: span 1; }
  .plan-featured { order: -1; }
  .section { padding: 56px 22px; }
}
