:root {
  --bg: #07080c;
  --bg-2: #0d0f16;
  --surface: #121521;
  --surface-2: #181c2b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f6;
  --muted: #9097ab;
  --accent: #7cf5c8;
  --accent-2: #7aa2ff;
  --accent-3: #c58bff;
  --radius: 16px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); border: 0;
}

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.container-narrow { width: min(780px, 100% - 40px); }
.muted { color: var(--muted); }

/* Fond */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.5;
}
.bg-glow {
  position: fixed; z-index: -1; pointer-events: none;
  width: 900px; height: 900px; top: -450px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(124, 245, 200, 0.16), rgba(122, 162, 255, 0.08) 40%, transparent 70%);
  filter: blur(20px);
}

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 15px;
  color: #04110c;
  background: linear-gradient(135deg, var(--accent), #5fe0ff);
  box-shadow: 0 10px 30px -10px rgba(124, 245, 200, 0.6);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(124, 245, 200, 0.75); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong); box-shadow: none;
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); box-shadow: none; }
.btn-small { padding: 9px 18px; font-size: 14px; }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 8, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.logo-mark i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 5s infinite;
}
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .3s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero { padding: 150px 0 90px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(124,245,200,.6); animation: pulse 2s infinite; }
h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 800; }
.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 50%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 22px; font-size: 18px; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-stats { list-style: none; padding: 0; margin: 46px 0 0; display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 28px; font-weight: 700; }
.hero-stats span { font-size: 14px; color: var(--muted); }

/* Visuel hero */
.hero-visual { position: relative; padding-top: 50px; }
.bot {
  position: absolute; top: 0; right: 40px; z-index: 2;
  animation: float 5s ease-in-out infinite;
}
.bot-antenna {
  width: 3px; height: 18px; margin: 0 auto; background: var(--border-strong); position: relative;
}
.bot-antenna::before {
  content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent);
}
.bot-head {
  width: 86px; height: 62px; border-radius: 20px;
  background: linear-gradient(160deg, #22283a, #141826);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; gap: 16px;
  box-shadow: var(--shadow);
}
.bot-eye {
  width: 13px; height: 13px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: blink 4s infinite;
  transition: transform .15s ease-out;
}
.window {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px rgba(124,245,200,0.04), 0 0 80px -30px rgba(124,245,200,0.35);
  overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: 7px; padding: 13px 16px;
  border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02);
}
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2c3245; }
.window-bar span:nth-child(1) { background: #ff6b6b; }
.window-bar span:nth-child(2) { background: #ffcc66; }
.window-bar span:nth-child(3) { background: #5fd38d; }
.window-bar p { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.window-body { padding: 22px; }
.terminal { font-family: var(--mono); font-size: 13.5px; min-height: 230px; line-height: 1.85; }
.terminal .line { display: flex; gap: 10px; opacity: 0; transform: translateY(4px); animation: lineIn .35s ease forwards; }
.terminal .tag { color: var(--accent-2); flex-shrink: 0; }
.terminal .ok { color: var(--accent); }
.terminal .cursor { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: middle; animation: caret 1s steps(1) infinite; }
.progress { margin-top: 18px; height: 6px; border-radius: 99px; background: rgba(255,255,255,0.06); overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: inherit; transition: width .6s ease; }

/* Bande défilante */
.strip { padding: 30px 0 20px; border-block: 1px solid var(--border); background: rgba(255,255,255,0.01); }
.strip p { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { font-weight: 600; font-size: 18px; color: #5d6479; white-space: nowrap; }

/* Sections */
.section { padding: 110px 0; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-2) 20%, var(--bg-2) 80%, transparent); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 17px; }

/* Fonctionnalités */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s ease, border-color .3s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(124,245,200,0.09), transparent 40%);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(124,245,200,0.08); color: var(--accent); border: 1px solid rgba(124,245,200,0.18);
  margin-bottom: 20px;
}
.icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.step { position: relative; text-align: center; padding: 0 10px; }
.step-num {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  font-family: var(--mono); font-weight: 500; color: var(--accent); margin-bottom: 22px;
  position: relative; z-index: 1;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 600; font-size: 16.5px; border-radius: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--accent); transition: transform .3s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }
.faq details[open] p { animation: fadeDown .35s ease; }

/* CTA */
.cta {
  text-align: center; padding: 70px 30px; border-radius: 24px;
  background:
    radial-gradient(600px circle at 20% 0%, rgba(124,245,200,0.14), transparent 60%),
    radial-gradient(600px circle at 80% 100%, rgba(197,139,255,0.12), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-strong);
}
.cta h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.cta > p { color: var(--muted); margin-top: 14px; font-size: 17px; }
.cta-form { display: flex; gap: 10px; justify-content: center; max-width: 480px; margin: 32px auto 0; }
.cta-form input {
  flex: 1; min-width: 0; padding: 14px 20px; border-radius: 999px; font: inherit; font-size: 15px;
  background: rgba(0,0,0,0.3); color: var(--text); border: 1px solid var(--border-strong);
}
.cta-form input::placeholder { color: #626a80; }
.cta-msg { margin-top: 16px; min-height: 1.6em; color: var(--accent); font-size: 15px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 50px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-inner .muted { margin-top: 10px; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.footer-links a { color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; }

/* Apparition au scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Animations */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(124,245,200,.6); } 70% { box-shadow: 0 0 0 10px rgba(124,245,200,0); } 100% { box-shadow: 0 0 0 0 rgba(124,245,200,0); } }
@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }
@keyframes lineIn { to { opacity: 1; transform: none; } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px;
    background: rgba(7, 8, 12, 0.96); border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: 16px; }
  .nav.menu-open { background: rgba(7, 8, 12, 0.96); }
  .hero { padding: 120px 0 70px; }
  .features { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .hero-stats { gap: 28px; }
  .bot { right: 16px; }
  .terminal { font-size: 12.5px; }
  .cta-form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .terminal .line { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
