@font-face {
  font-family: "JBM";
  src: url("/assets/jbm.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #0a0a0b;
  --panel: #111113;
  --line: #222226;
  --text: #ededf0;
  --muted: #8b8b94;
  --accent: #d4ff3a;
  --ok: #4ade80;
  --err: #f87171;
  --sans: ui-sans-serif, -apple-system, "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JBM", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.1; font-weight: 650; }
p { margin: 0; }
.dim { color: var(--muted); }
.accent { color: var(--accent); }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* fond : grille fine qui s'efface + halo lime */
.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 70% -5%, rgb(212 255 58 / 0.12), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.6;
}

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 16px; }
.logo { font: 600 18px var(--mono); letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.logo__mark {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px;
  background: var(--accent); color: var(--bg); font-size: 11px;
}
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.nav nav a:hover { color: var(--text); }

/* boutons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px;
  background: var(--accent); color: var(--bg); font-weight: 600; font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 30px -8px rgb(212 255 58 / 0.5); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--muted); box-shadow: none; }

/* hero */
.hero { padding: 88px 0 40px; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px;
  font-size: 13px; color: var(--muted); background: rgb(255 255 255 / 0.02);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 { font-size: clamp(42px, 7.5vw, 84px); margin: 28px 0 24px; }
.lead { max-width: 640px; margin: 0 auto; font-size: clamp(16px, 2vw, 19px); color: var(--muted); }

/* terminal */
.term {
  max-width: 760px; margin: 72px auto 0; text-align: left;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  box-shadow: 0 40px 120px -40px rgb(212 255 58 / 0.18), 0 0 0 1px rgb(255 255 255 / 0.02) inset;
  overflow: hidden;
}
.term__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2a2f; }
.term__bar span { margin-left: 10px; font: 12px var(--mono); color: var(--muted); }
.term__body, .code pre {
  margin: 0; padding: 20px 22px; overflow-x: auto;
  font: 13.5px/1.75 var(--mono); color: var(--text);
}
.term__body b { color: var(--text); font-weight: 500; }
.p { color: var(--accent); }
.ok { color: var(--ok); }
.err { color: var(--err); }
.term .l { opacity: 0; animation: in .35s ease forwards; }
.term .l:nth-child(1) { animation-delay: .3s; }
.term .l:nth-child(2) { animation-delay: .9s; }
.term .l:nth-child(3) { animation-delay: 1.4s; }
.term .l:nth-child(4) { animation-delay: 1.9s; }
.term .l:nth-child(5) { animation-delay: 2.6s; }
.term .l:nth-child(6) { animation-delay: 3.3s; }
.term .l:nth-child(7) { animation-delay: 4s; }
.term .l:nth-child(8) { animation-delay: 4.5s; }
.cursor { display: inline-block; width: 8px; height: 16px; vertical-align: -3px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }

/* sections */
.section { padding: 120px 0 0; }
.eyebrow { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: 16px; }
.section h2 { font-size: clamp(30px, 4.5vw, 48px); max-width: 720px; }
.sub { color: var(--muted); max-width: 600px; margin-top: 18px; font-size: 17px; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px; margin-top: 56px;
  background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.card { background: var(--bg); padding: 32px; transition: background .2s ease; }
.card:hover { background: var(--panel); }
.card__icon {
  display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 9px; font: 15px var(--mono); color: var(--accent);
}
.card h3 { font-size: 18px; margin: 20px 0 8px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; counter-reset: s; display: grid; gap: 28px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; row-gap: 4px; }
.steps li::before {
  content: counter(s, decimal-leading-zero); grid-row: span 2;
  font: 13px var(--mono); color: var(--accent); padding-top: 3px;
}
.steps span { color: var(--muted); font-size: 15px; }
.code { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.code__head { padding: 12px 18px; border-bottom: 1px solid var(--line); font: 12px var(--mono); color: var(--muted); }
.k { color: var(--accent); }
.s { color: #a5b4fc; }

.checks {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px 48px;
}
.checks li { position: relative; padding-left: 30px; color: var(--muted); font-size: 15px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }
.checks b { color: var(--text); font-weight: 600; }

.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 120px; padding: 28px 0 40px; border-top: 1px solid var(--line);
  font: 13px var(--mono);
}
.foot .logo__mark { width: 20px; height: 20px; font-size: 9px; border-radius: 5px; margin-right: 6px; }

.notfound { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 28px; }

@media (max-width: 820px) {
  .nav { flex-wrap: wrap; row-gap: 10px; }
  .nav nav { gap: 18px; font-size: 13px; white-space: nowrap; }
  .hero { padding-top: 56px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .section { padding-top: 88px; }
  .grid, .checks { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .term .l { animation: none; opacity: 1; }
  .cursor { animation: none; }
}
