:root {
  --accent: #3DF5A6;
  --accent-rgb: 61 245 166;
  --bg: #05070A;
  --panel: rgb(12 15 20 / 0.72);
  --text: #E9EEF5;
  --dim: #9AA4B2;
  --mute: #66707F;
  --line: rgb(255 255 255 / 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

/* ── Fond : grille néon, légèrement assombrie en haut ── */
.bg { position: fixed; inset: 0; z-index: -1;
      background: linear-gradient(180deg, rgb(5 7 10 / 0.35), rgb(5 7 10 / 0) 40%, rgb(5 7 10 / 0.15) 75%, var(--bg) 100%),
                  url('assets/bg-grid.jpg') center bottom / cover no-repeat;
      background: linear-gradient(180deg, rgb(5 7 10 / 0.35), rgb(5 7 10 / 0) 40%, rgb(5 7 10 / 0.15) 75%, var(--bg) 100%),
                  image-set(url('assets/bg-grid.webp') type('image/webp'), url('assets/bg-grid.jpg') type('image/jpeg')) center bottom / cover no-repeat; }
.bg__glow { position: absolute; inset: 0; background: radial-gradient(ellipse 50% 35% at 50% 38%, rgb(var(--accent-rgb) / 0.10), transparent 70%);
            animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.55; } }

/* ── En-tête ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
       padding: 18px clamp(16px, 4vw, 48px); background: linear-gradient(180deg, rgb(5 7 10 / 0.85), transparent); }
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: 0.06em; font-size: 18px; }
.nav__links { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); font-size: 14px; color: var(--dim); }
.nav__links a:not(.btn):hover { color: var(--text); }

/* ── Boutons ── */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 12px; font-weight: 600; font-size: 15px;
       transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease; cursor: pointer; white-space: nowrap; }
.btn--sm { padding: 8px 16px; font-size: 13px; border-radius: 10px; }
.btn--primary { background: var(--accent); color: #04140D; box-shadow: 0 0 0 1px rgb(var(--accent-rgb) / 0.6), 0 10px 40px rgb(var(--accent-rgb) / 0.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--accent), 0 14px 50px rgb(var(--accent-rgb) / 0.5); }
.btn--ghost { color: var(--text); background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14); backdrop-filter: blur(6px); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.6); color: var(--accent); }
.btn.is-soon { cursor: default; opacity: 0.9; }
.btn.is-soon:hover { transform: none; }
.btn em { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 999px; background: rgb(4 20 13 / 0.18); }

/* ── Héros ── */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
        padding: 110px 16px 120px; position: relative; }
.hero__logo { width: min(560px, 82vw); height: auto; filter: drop-shadow(0 0 34px rgb(var(--accent-rgb) / 0.35)); animation: rise 900ms cubic-bezier(.2,.8,.2,1) both; }
.hero__title { margin: 26px 0 0; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(26px, 4.2vw, 48px); letter-spacing: -0.02em; line-height: 1.15;
               animation: rise 900ms 120ms cubic-bezier(.2,.8,.2,1) both; }
.hero__title span, .section-title span { color: var(--accent); text-shadow: 0 0 24px rgb(var(--accent-rgb) / 0.45); }
.hero__lead { max-width: 620px; margin: 16px 0 0; color: var(--dim); font-size: clamp(15px, 1.6vw, 17px); animation: rise 900ms 220ms cubic-bezier(.2,.8,.2,1) both; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; animation: rise 900ms 320ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__scroll { position: absolute; bottom: 34px; width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.25); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent);
                     animation: scroll 1.8s ease-in-out infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ── Fonctionnalités ── */
.features { padding: 40px clamp(16px, 4vw, 48px) 100px; max-width: 1180px; margin: 0 auto; }
.section-title { text-align: center; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(24px, 3.2vw, 36px); margin: 0 0 40px; letter-spacing: -0.01em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.card { padding: 26px 24px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), 0 18px 50px rgb(0 0 0 / 0.35);
        backdrop-filter: blur(10px); transition: transform 200ms ease, box-shadow 200ms ease; }
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.35), 0 22px 60px rgb(0 0 0 / 0.45), 0 0 40px rgb(var(--accent-rgb) / 0.08); }
.card__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; font-family: 'Space Grotesk', sans-serif; font-weight: 700;
              color: var(--accent); background: rgb(var(--accent-rgb) / 0.10); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.25); }
.card h3 { margin: 16px 0 6px; font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 600; }
.card p { margin: 0; color: var(--dim); font-size: 14.5px; }

.footer { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 28px 16px 36px; color: var(--mute); font-size: 13px; border-top: 1px solid var(--line); }

@media (max-width: 560px) {
  .nav__links a:not(.btn) { display: none; }
  .btn { padding: 13px 20px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
