:root {
  --void: #070807;
  --void-2: #0C0E0C;
  --line: #1A1E1A;
  --ink: #E8EDE6;
  --mute: #8A9186;
  --lime: #C6FF3D;
  --lime-dim: #6A8F1F;
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --edge: max(var(--gutter), calc(50% - (var(--max) / 2)));
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  background: var(--void);
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--lime); color: var(--void); }

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: fixed;
  left: 8px;
  top: 8px;
  z-index: 20;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  background: var(--lime);
  color: var(--void);
  padding: 6px 10px;
  font-size: 12px;
  font-family: var(--mono);
  outline: none;
}

/* ——— header ——— */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--edge);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand .glyph { display: block; color: var(--mute); }
.brand .glyph .pivot { fill: var(--ink); }
.brand:hover .glyph,
.brand:focus-visible .glyph { color: var(--ink); }
.brand:hover .glyph .pivot,
.brand:focus-visible .glyph .pivot { fill: var(--lime); }
.brand:hover .word .i,
.brand:focus-visible .word .i { color: var(--lime); }

.word {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.22em;
}
.word .i { letter-spacing: 0.22em; }

.header-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 22px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mute);
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  background: var(--lime);
  color: var(--void);
  font-weight: 600;
  border-radius: 2px;
}
.nav-cta:hover { color: var(--void); filter: brightness(1.07); }

.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.lang button { color: var(--mute); padding: 4px 2px; }
.lang button[aria-pressed="true"] { color: var(--ink); }
.lang button:hover { color: var(--ink); }
.lang-sep { color: var(--line); }

/* ——— hero ——— */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(56px, 10vw, 120px) var(--edge) clamp(48px, 8vw, 96px);
}

.axis {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  pointer-events: none;
}

.sys {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--mute);
  position: relative;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 6px color-mix(in srgb, var(--lime) 55%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}

.combat-kicker {
  position: relative;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mute);
}
h1 {
  position: relative;
  margin: 0 auto;
  max-width: 22ch;
  font-family: var(--mono);
  font-size: clamp(1.7rem, 4.6vw, 3.15rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}
h1 span { display: block; }
.h1-name { letter-spacing: 0.08em; }

.ipa {
  position: relative;
  margin: 20px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--mute);
}

.sub {
  position: relative;
  margin: 16px auto 0;
  max-width: 36ch;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.45;
  color: var(--ink);
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: 28px;
  padding: 12px 20px;
  background: var(--lime);
  color: var(--void);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.cta:hover { filter: brightness(1.07); }
.cta:active { transform: translateY(1px); }
.cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ——— how ——— */
.how {
  padding: 0 var(--edge) clamp(56px, 8vw, 96px);
}

.kicker {
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mute);
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  pointer-events: none;
}
.steps li {
  padding: 8px 28px;
  text-align: center;
}
.steps .num {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mute);
  margin-bottom: 10px;
}
.steps h2 {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.steps p {
  margin: 0 auto;
  max-width: 28ch;
  font-size: 14px;
  color: var(--mute);
}

/* ——— plans ——— */
.plans {
  padding: 0 var(--edge) clamp(56px, 8vw, 96px);
  text-align: center;
}

.offer {
  margin: 0 auto 28px;
  max-width: 36ch;
  font-family: var(--mono);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--ink);
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  max-width: 720px;
  margin: 0 auto;
}
.plan {
  position: relative;
  padding: 28px 24px 26px;
  text-align: left;
  background: var(--void-2);
}
.plan + .plan { border-left: 1px solid var(--line); }
.plan h2 {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--mute);
}
.price {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.plan-copy {
  margin: 0;
  font-size: 14px;
  color: var(--mute);
}
.plan-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.plan-list li {
  position: relative;
  padding: 5px 0 5px 14px;
  font-size: 14px;
  color: var(--mute);
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--line);
}
.plan-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--void);
  background: var(--ink);
  border-radius: 2px;
}
.plan-actif .price { color: var(--ink); }

/* ——— agents ——— */
.agents {
  padding: 0 var(--edge) clamp(56px, 8vw, 96px);
}

.agents-kicker {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.kicker-meta {
  color: var(--mute);
  opacity: 0.55;
  letter-spacing: 0.12em;
}
.kicker-meta::before {
  content: "· ";
}

.agent-stage {
  position: relative;
  overflow: hidden;
  background: var(--void-2);
  border: 1px solid var(--line);
  padding: 28px 22px 24px;
  min-height: 248px;
}

.agent-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.agent-wires .wire {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}
.agent-wires .wire.on {
  stroke: color-mix(in srgb, var(--ink) 22%, var(--line));
}
.agent-wires .wire.hot { stroke: var(--lime); }
.agent-wires .signal {
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.35;
  stroke-linecap: round;
  opacity: 0;
}
.agent-wires .signal.run {
  opacity: 1;
  animation: signal-run 0.56s linear forwards;
}

.nodes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 56px;
}
.node {
  background: var(--void);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 11px 10px 10px;
  min-width: 0;
  min-height: 72px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.node:nth-child(1) { grid-column: 1; grid-row: 1; }
.node:nth-child(2) { grid-column: 2; grid-row: 2; }
.node:nth-child(3) { grid-column: 3; grid-row: 1; }
.node:nth-child(4) { grid-column: 4; grid-row: 2; }
.node:nth-child(5) { grid-column: 5; grid-row: 1; }
.node:nth-child(6) { grid-column: 6; grid-row: 2; }
.node:nth-child(7) { grid-column: 7; grid-row: 1; }
.node .name {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.node .status {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.node[data-status="processing"] { border-color: var(--lime-dim); }
.node[data-status="processing"] .name,
.node[data-status="processing"] .status-val { color: var(--ink); }
.node[data-status="processing"] .status-val::after {
  content: "_";
  animation: blink 0.9s steps(1) infinite;
}
.node[data-status="processing"] { animation: node-process 1.2s ease-in-out infinite; }
.node[data-status="active"] {
  border-color: var(--lime);
  background: color-mix(in srgb, var(--lime) 8%, var(--void));
  box-shadow:
    0 0 0 1px var(--lime),
    0 0 18px color-mix(in srgb, var(--lime) 32%, transparent);
}
.node[data-status="active"] .name,
.node[data-status="active"] .status-val { color: var(--lime); }
.node[data-status="complete"] {
  border-color: var(--line);
}
.node[data-status="complete"] .name { color: var(--ink); }
.node[data-status="complete"] .status-val { color: var(--mute); }

.deploy-banner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--void) 78%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.deploy-banner[hidden] { display: none !important; }
.deploy-banner.show { opacity: 1; }
.deploy-b {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--lime);
}

/* ——— nom teaser ——— */
.nom-teaser {
  padding: 0 var(--edge) clamp(64px, 9vw, 112px);
  text-align: center;
}
.fold {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  letter-spacing: 0.08em;
  color: var(--ink);
}
.fold .dim { color: var(--mute); }
.fold .mid { color: var(--line); }
.nom-copy {
  margin: 0 auto 18px;
  max-width: 36ch;
  font-size: 16px;
  color: var(--ink);
}
.text-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mute);
  border-bottom: 1px solid var(--line);
}
.text-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ——— contact ——— */
.contact {
  padding: 0 var(--edge) clamp(64px, 9vw, 112px);
  text-align: center;
}
.contact-name {
  margin: 0;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.contact-role,
.contact-place {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--mute);
}
.contact-mail {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.contact-mail a { border-bottom: 1px solid var(--line); }
.contact-mail a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ——— footer ——— */
.site-footer {
  padding: 28px var(--edge) 40px;
  border-top: 1px solid var(--line);
}
.foot-story {
  margin: 0 0 18px;
  max-width: 62ch;
  font-size: 13px;
  line-height: 1.55;
  color: var(--mute);
}
.foot-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mute);
}
.foot-nom {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.foot-nom a { color: var(--mute); border-bottom: 1px solid var(--line); }
.foot-nom a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.foot-meta a:hover { color: var(--ink); }
.foot-legal {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--mute);
}
.staging { color: var(--lime); }

/* ——— inner pages (le-nom, confidentialite) ——— */
.page {
  padding: clamp(40px, 7vw, 80px) var(--edge) clamp(56px, 8vw, 96px);
}
.page-axis {
  position: relative;
}
.letters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 420px;
  margin: 0 auto 48px;
  text-align: center;
  font-family: var(--mono);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.letters span { display: block; color: var(--ink); }
.letters .pivot-l {
  color: var(--ink);
  position: relative;
}
.letters .pivot-l::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  width: 1px;
  height: 28px;
  background: var(--line);
}

.prose {
  max-width: 36rem;
  margin: 0 auto;
}
.prose p {
  margin: 0 0 1.15em;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.5;
  color: var(--ink);
}
.prose .mute { color: var(--mute); }
.prose .combat {
  margin-top: 2em;
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.mirrors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 36rem;
  margin: 28px auto 36px;
  border: 1px solid var(--line);
}
.mirror {
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
}
.mirror + .mirror { border-left: 1px solid var(--line); text-align: right; }
.mirror .code { color: var(--ink); letter-spacing: 0.06em; }
.mirror .lang-line { color: var(--mute); margin-top: 6px; }

.legal p {
  margin: 0 0 1em;
  max-width: 42rem;
  color: var(--mute);
  font-size: 15px;
}
.legal h1 {
  font-family: var(--mono);
  font-size: clamp(1.4rem, 3vw, 2rem);
  max-width: none;
  margin: 0 0 18px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes node-process {
  0%, 100% { border-color: var(--lime-dim); }
  50% { border-color: color-mix(in srgb, var(--lime) 50%, var(--line)); }
}
@keyframes signal-run {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: calc((var(--len) * -1px) - 14px); }
}

@media (max-width: 980px) {
  .nodes {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 12px;
  }
  .node:nth-child(n) { grid-column: 1; grid-row: auto; }
  .node { min-height: 0; }
  .agent-stage { padding: 16px 12px; min-height: 0; }
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .steps::before { display: none; }
  .steps li { padding: 0; text-align: left; }
  .steps p { margin: 0; }
}

@media (max-width: 720px) {
  .nav { gap: 10px; font-size: 11px; flex-wrap: wrap; justify-content: flex-end; }
  .nav-cta { padding: 5px 8px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .mirrors { grid-template-columns: 1fr; }
  .mirror + .mirror { border-left: 0; border-top: 1px solid var(--line); text-align: left; }
  h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot,
  .node[data-status="processing"],
  .node[data-status="processing"] .status-val::after,
  .agent-wires .signal.run { animation: none; }
  .deploy-banner { transition: none; }
}
