:root {
  --bg: #0b0b12;
  --bg-alt: #12121d;
  --bg-card: #171724;
  --bg-card-2: #1d1d2e;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ececf4;
  --text-dim: #a3a3bd;
  --violet: #8b5cf6;
  --magenta: #d946ef;
  --cyan: #22d3ee;
  --grad: linear-gradient(120deg, #22d3ee, #8b5cf6 55%, #d946ef);
  --radius: 16px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

.container { width: min(1140px, 92%); margin-inline: auto; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--grad);
  color: #0b0b12;
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.4);
}
.btn--primary:hover { box-shadow: 0 10px 32px rgba(217, 70, 239, 0.5); }
.btn--outline { border-color: var(--border); color: var(--text); background: rgba(255, 255, 255, 0.04); }
.btn--outline:hover { border-color: rgba(34, 211, 238, 0.5); color: #7dd3fc; }
.btn--ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--violet); color: #c4b5fd; }
.btn--sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(11, 11, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}
.nav--scrolled { background: rgba(11, 11, 18, 0.94); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.nav__brand { display: flex; align-items: baseline; gap: 0.5rem; font-family: var(--font-display); }
.nav__logo {
  font-weight: 700;
  font-size: 1.35rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--grad);
  color: #0b0b12;
  align-self: center;
  transform: skewX(-6deg);
}
.nav__word { font-weight: 700; font-size: 1.3rem; letter-spacing: 0.2px; }
.nav__tag { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.nav__links { display: flex; align-items: center; gap: 1.4rem; font-size: 0.88rem; color: var(--text-dim); }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s ease; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 80px; }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("img/hero.jpg") center 30% / cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 70% 20%, rgba(139, 92, 246, 0.28), transparent 60%),
    linear-gradient(180deg, rgba(11, 11, 18, 0.82) 0%, rgba(11, 11, 18, 0.72) 40%, var(--bg) 98%);
}
.hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; max-width: 760px; }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #7dd3fc;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.5px;
}
.hero__sub { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 700; color: var(--text-dim); }
.hero__text { font-size: 1.1rem; color: var(--text-dim); max-width: 560px; }
.hero__text strong { color: var(--text); }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.6rem; }
.hero__hint { font-size: 0.82rem; color: var(--text-dim); }

/* terminal */
.hero__terminal { width: 100%; max-width: 560px; margin-top: 1.2rem; }
.terminal__bar {
  display: flex; align-items: center; gap: 6px;
  background: #141420; border: 1px solid var(--border); border-bottom: 0;
  border-radius: 12px 12px 0 0; padding: 10px 14px;
}
.terminal__bar span { width: 10px; height: 10px; border-radius: 50%; }
.terminal__bar span:nth-child(1) { background: #f87171; }
.terminal__bar span:nth-child(2) { background: #fbbf24; }
.terminal__bar span:nth-child(3) { background: #34d399; }
.terminal__bar em { font-style: normal; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); margin-left: 8px; }
.terminal__body {
  font-family: var(--font-mono); font-size: 0.8rem;
  background: #0f0f1a; border: 1px solid var(--border); border-radius: 0 0 12px 12px;
  padding: 14px 16px;
  height: 120px;
  overflow: hidden;
}
.t-prompt { color: #22d3ee; }
.t-cmd { color: #e2e8f0; }
.t-out { color: #34d399; }
.t-out.error { color: #f87171; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin: 0.6rem 0 1.4rem;
}
.section__lead { color: var(--text-dim); font-size: 1.05rem; max-width: 640px; margin-bottom: 2.5rem; }
.section__result { font-size: 1.05rem; color: var(--text); max-width: 760px; margin-top: 2.2rem; }
.section__result strong { color: #7dd3fc; }

/* ---------- Cards / grid ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2rem; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, 0.4); }
.card__icon { font-size: 1.6rem; margin-bottom: 0.8rem; }
.card h3 { font-family: var(--font-display); font-size: 1.12rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-dim); font-size: 0.95rem; }
.card--dark { background: var(--bg-card-2); }

/* ---------- Split (musique) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; margin-top: 2rem; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--border); }
.chip--media {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(11, 11, 18, 0.85); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.78rem; color: #c4b5fd;
  padding: 0.4rem 0.8rem; border-radius: 8px;
}
.quote {
  border-left: 3px solid var(--violet);
  background: rgba(139, 92, 246, 0.08);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.2rem;
  color: var(--text-dim);
  font-style: italic;
  margin: 1.2rem 0;
}
.quote--center { border-left: 0; border-top: 3px solid var(--violet); border-radius: 12px; text-align: center; max-width: 720px; margin-inline: auto; }
.tool-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.8rem; }
.tool-list li { display: flex; align-items: center; gap: 0.8rem; font-size: 0.9rem; }
.tool-list code { min-width: 200px; }
.tool-list span { color: var(--text-dim); }

/* ---------- Cinéma ---------- */
.cinema { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; margin-top: 2rem; }
.cinema__media { position: relative; display: flex; flex-direction: column; gap: 1rem; }
.cinema__media img { border-radius: var(--radius); border: 1px solid var(--border); object-fit: cover; aspect-ratio: 16 / 10; }
.cinema__media--small { width: 70%; align-self: flex-end; margin-top: -3rem; aspect-ratio: 16 / 9; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); }
.agent-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.agent-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1rem 1.2rem;
  transition: border-color 0.2s ease;
}
.agent-list li:hover { border-color: rgba(34, 211, 238, 0.45); }
.agent-list__num {
  font-family: var(--font-mono); font-weight: 600; color: #22d3ee;
  background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 8px; padding: 0.2rem 0.5rem; font-size: 0.8rem; flex-shrink: 0;
}
.agent-list__hot { border-color: rgba(217, 70, 239, 0.45) !important; }
.agent-list__hot .agent-list__num { color: #f0abfc; background: rgba(217, 70, 239, 0.12); border-color: rgba(217, 70, 239, 0.4); }
.agent-list strong { font-family: var(--font-display); }
.agent-list p { color: var(--text-dim); font-size: 0.9rem; }
.badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: #0b0b12; background: var(--grad);
  padding: 0.15rem 0.5rem; border-radius: 999px; vertical-align: middle; margin-left: 6px;
}

/* ---------- Formation steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2rem; }
.step { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem 1.5rem 1.5rem; }
.step__icon { font-size: 1.6rem; margin-bottom: 0.7rem; }
.step h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-dim); font-size: 0.92rem; }
.step__num {
  position: absolute; top: -14px; left: 18px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  background: var(--grad); color: #0b0b12;
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
}

/* ---------- Holacratie ---------- */
.section--hola { position: relative; overflow: hidden; }
.hola__bg {
  position: absolute; inset: 0; opacity: 0.14;
  background: radial-gradient(50% 50% at 20% 10%, rgba(139, 92, 246, 0.8), transparent 70%);
  z-index: 0;
}
.hola__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: start; }
.hola__img { border-radius: var(--radius); border: 1px solid var(--border); margin-top: 1.4rem; aspect-ratio: 3 / 2; object-fit: cover; }
.hola__cards { display: flex; flex-direction: column; gap: 1.2rem; }
.quote--hola { border-left-color: var(--cyan); background: rgba(34, 211, 238, 0.07); }

/* ---------- Pipeline ---------- */
.pipeline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 1.4rem 0 0.6rem; }
.pipeline__node {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.6rem 1rem;
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-dim);
}
.pipeline__node--hot { border-color: rgba(217, 70, 239, 0.5); color: #f0abfc; background: rgba(217, 70, 239, 0.08); }
.pipeline__arrow { color: var(--text-dim); font-family: var(--font-mono); }
.howto { display: flex; flex-direction: column; gap: 0.6rem; margin: 1.6rem 0 0; padding-left: 1.2rem; color: var(--text-dim); }
.howto li::marker { color: var(--violet); }
.howto strong { color: var(--text); }

.tool-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-top: 1.6rem;
}
.tool-block__head { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tool-block__icon { font-size: 1.5rem; }
.tool-block h3 { font-family: var(--font-display); font-size: 1.15rem; flex: 1; }
.tool-block--cinema { border-color: rgba(34, 211, 238, 0.3); }
.tool-block--cinema .tool-block__head h3 { color: #7dd3fc; }
.tool-block__note { margin-top: 1.2rem; font-size: 0.92rem; color: var(--text-dim); }
.tool-block .pipeline { margin-top: 0; }
.badge--wip { background: linear-gradient(120deg, #f59e0b, #ef4444); }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; margin-top: 2rem; }
.cmp { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.cmp th, .cmp td { padding: 0.9rem 1.2rem; text-align: left; border-bottom: 1px solid var(--border); }
.cmp th { font-family: var(--font-display); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); }
.cmp td:first-child { font-weight: 600; white-space: nowrap; }
.cmp td:last-child { color: #c4b5fd; }
.cmp td:nth-child(2) { color: var(--text-dim); }
.cmp tr:hover td { background: rgba(255, 255, 255, 0.02); }
.cmp__win { color: #f0abfc; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.6rem; margin-top: 2rem; }
.post {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.post:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.45); }
.post__meta { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; font-size: 0.8rem; }
.post__tag {
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 1px;
  color: #0b0b12; background: var(--grad);
  padding: 0.22rem 0.6rem; border-radius: 999px;
}
.post__meta time { color: var(--text-dim); font-family: var(--font-mono); }
.post__title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
.post__excerpt { color: var(--text-dim); font-size: 0.95rem; }
.post__link { color: #7dd3fc; font-weight: 600; font-size: 0.92rem; margin-top: auto; }
.post__link:hover { text-decoration: underline; }
.post__link--more { font-size: 1rem; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 2rem; }
.testimonial { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; }
.testimonial__img { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 1.2rem; border: 1px solid var(--border); }
.testimonial__img img { width: 100%; height: 100%; object-fit: cover; }
.testimonial blockquote { color: var(--text-dim); font-style: italic; font-size: 0.98rem; }
.testimonial figcaption { margin-top: 1rem; font-family: var(--font-display); font-weight: 700; font-size: 0.88rem; color: var(--text); }

/* ---------- Promo / CTA ---------- */
.section--promo { background: var(--bg-alt); }
.promo h2 { margin-bottom: 0.4rem; }
.section--cta { position: relative; }
.section--cta::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 50% 0%, rgba(139, 92, 246, 0.18), transparent 70%);
}
.cta { max-width: 640px; margin-inline: auto; text-align: center; }
.cta .section__lead { margin-inline: auto; }
.cta__grist {
  width: 100%;
  max-width: 640px;
  margin: 1.6rem auto 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  background: #fff;
}
.cta__grist iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
}
.cta__gh { margin-top: 1.6rem; font-size: 0.92rem; color: var(--text-dim); }
.cta__gh a { color: #7dd3fc; text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; background: var(--bg-alt); }
.footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.footer__tag { color: var(--text-dim); font-size: 0.9rem; margin-top: 0.4rem; max-width: 340px; }
.footer__links { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9rem; }
.footer__links a { color: var(--text-dim); }
.footer__links a:hover { color: #7dd3fc; }
.footer__note { color: var(--text-dim); font-size: 0.82rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid3, .steps, .testimonials { grid-template-columns: 1fr 1fr; }
  .split, .cinema, .hola__inner { grid-template-columns: 1fr; }
  .cinema__media--small { margin-top: 0; width: 100%; }
}

@media (max-width: 700px) {
  .nav__links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 11, 18, 0.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav__links.is-open { max-height: 480px; }
  .nav__links a { padding: 0.9rem 1.4rem; border-top: 1px solid var(--border); }
  .nav__burger { display: flex; }
  .grid3, .steps, .testimonials { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .hero { padding: 110px 0 60px; }
  .tool-list li { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .tool-list code { min-width: 0; }
  .nav__tag { display: none; }
}
