/* =====================================================================
   RelanceOps V2 — "Obsidian Signal"
   Dark premium SaaS aesthetic (Linear / Vercel / Resend inspired)
   ===================================================================== */

:root {
  /* Palette */
  --bg:            #070D14;   /* near-black background */
  --bg-alt:        #0D1520;   /* alternate section surface */
  --surface:       #0D1520;   /* card base */
  --surface-2:     #111D2C;   /* raised card */
  --footer-bg:     #050B12;

  --accent:        #00D97E;   /* electric emerald */
  --accent-dark:   #05B368;
  --accent-soft:   rgba(0, 217, 126, 0.15);
  --accent-line:   rgba(0, 217, 126, 0.35);

  --text:          #E8F0F7;   /* ivory main text */
  --text-muted:    #6B8196;   /* muted text */
  --text-dim:      #4A5D70;   /* dimmest text */

  --border:        rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);

  --amber:         #F5B544;
  --red:           #FF6B6B;

  /* Type */
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius:    20px;
  --radius-sm: 12px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------ Buttons ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: #04120B;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 13px 22px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  box-shadow: 0 8px 24px rgba(0, 217, 126, 0.22);
}
.btn:hover {
  transform: translateY(-2px);
  background: #12E58C;
  box-shadow: 0 12px 34px rgba(0, 217, 126, 0.38);
}
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

.btn-light {
  background: var(--text);
  border-color: var(--text);
  color: #06101A;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}
.btn-light:hover {
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(255, 255, 255, 0.2);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.text-link svg { transition: transform 0.25s var(--ease); }
.text-link:hover { color: var(--accent); }
.text-link:hover svg { transform: translateX(4px); }

/* ------------------------------- Eyebrow ------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 1px var(--accent);
  animation: pulse-glow 2.4s var(--ease) infinite;
}

/* ------------------------------- Brand -------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #04120B;
  font-weight: 900;
  font-size: 17px;
  box-shadow: 0 4px 14px rgba(0, 217, 126, 0.35);
}

/* ------------------------------- Header ------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 13, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  margin-right: 30px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }

/* ================================ HERO ================================ */
.hero {
  position: relative;
  padding: 90px 0 110px;
  overflow: hidden;
}
.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.mesh-1 {
  width: 620px; height: 620px;
  top: -180px; left: -120px;
  background: radial-gradient(circle, rgba(0, 217, 126, 0.28), transparent 70%);
  animation: gradient-shift 16s ease-in-out infinite;
}
.mesh-2 {
  width: 520px; height: 520px;
  top: 40px; right: -140px;
  background: radial-gradient(circle, rgba(0, 130, 255, 0.16), transparent 70%);
  animation: gradient-shift 20s ease-in-out infinite reverse;
}
.mesh-3 {
  width: 480px; height: 480px;
  bottom: -200px; left: 40%;
  background: radial-gradient(circle, rgba(0, 217, 126, 0.14), transparent 70%);
  animation: gradient-shift 24s ease-in-out infinite;
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 900;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.grad-text {
  background: linear-gradient(120deg, var(--accent), #6EF3B8 60%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.hero-proof {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-proof li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  color: var(--text-muted);
}
.hero-proof svg { color: var(--accent); flex-shrink: 0; }

/* ---------------------------- Hero visual ----------------------------- */
.hero-visual {
  position: relative;
  perspective: 1600px;
}
.pipeline-halo {
  position: absolute;
  inset: -40px -20px;
  background: radial-gradient(ellipse at 60% 40%, rgba(0, 217, 126, 0.18), transparent 68%);
  filter: blur(30px);
  z-index: 0;
}
.pipeline {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: linear-gradient(160deg, rgba(17, 29, 44, 0.9), rgba(13, 21, 32, 0.82));
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  transform: rotateY(-4deg) rotateX(2deg);
  transform-style: preserve-3d;
  animation: none;
}
.pipeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  margin-bottom: 4px;
}
.pipeline-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.pipeline-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 1px var(--accent);
  animation: pulse-glow 2s ease-in-out infinite;
}

.pline-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 15px;
  background: rgba(7, 13, 20, 0.55);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pline-card:hover { transform: translateX(-4px); border-color: var(--border-strong); }
.pline-icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.pline-body { flex: 1; min-width: 0; }
.pline-body strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
}
.pline-body small {
  font-size: 12px;
  color: var(--text-dim);
}

.pline-card.is-active {
  border-color: var(--accent-line);
  background: linear-gradient(120deg, rgba(0, 217, 126, 0.1), rgba(7, 13, 20, 0.55));
  box-shadow: 0 0 0 1px var(--accent-line), 0 0 20px rgba(0, 217, 126, 0.16);
  animation: none;
}
.pline-card.is-active .pline-icon {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.badge {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.01em;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-red   { color: var(--red);   background: rgba(255, 107, 107, 0.12); border: 1px solid rgba(255, 107, 107, 0.3); }
.badge-amber { color: var(--amber); background: rgba(245, 181, 68, 0.12);  border: 1px solid rgba(245, 181, 68, 0.3); }
.badge-green { color: var(--accent); background: var(--accent-soft);        border: 1px solid var(--accent-line); }

.pipeline-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-dim);
}
.foot-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
}

/* --------------------- Pipeline live animation ------------------------ */
.pipeline-track {
  position: relative;
  padding-left: 6px;
}
.pipeline-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Vertical signal rail running through the node dots */
.pipeline-rail {
  position: absolute;
  left: 21px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  z-index: 0;
  pointer-events: none;
}
.rail-line {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, var(--border-strong) 12%, var(--border-strong) 88%, transparent);
}
.rail-signal {
  position: absolute;
  left: 50%;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px 4px rgba(0, 217, 126, 0.6), 0 0 4px 1px var(--accent);
  transform: translate(-50%, -50%);
  transition: top 1.15s var(--ease);
  opacity: 0;
}
.pipeline.is-running .rail-signal { opacity: 1; }
.rail-signal::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 217, 126, 0.35), transparent 70%);
}

/* Node dot on each card, sitting on the rail */
.pline-card { position: relative; z-index: 1; }
.pline-node {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border-strong);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.pline-card.is-active .pline-node {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px 2px rgba(0, 217, 126, 0.6);
}
.pline-card.is-done .pline-node {
  background: var(--accent-dark);
  border-color: var(--accent-line);
}

/* Done state (opportunity brought back) */
.pline-card.is-done {
  border-color: var(--accent-line);
  background: linear-gradient(120deg, rgba(0, 217, 126, 0.05), rgba(7, 13, 20, 0.55));
}
.pline-card.is-done .pline-icon {
  color: var(--accent);
  border-color: var(--accent-line);
}

/* Badge state colours (JS-driven) */
.badge {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  transition: color 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.badge.is-active {
  color: var(--amber);
  background: rgba(245, 181, 68, 0.12);
  border-color: rgba(245, 181, 68, 0.32);
}
.badge.is-done {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.badge.badge-red:not(.is-active):not(.is-done) {
  color: var(--red);
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.3);
}
.badge.badge-amber:not(.is-active):not(.is-done) {
  color: var(--amber);
  background: rgba(245, 181, 68, 0.12);
  border-color: rgba(245, 181, 68, 0.3);
}
.badge.badge-green:not(.is-active):not(.is-done) {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

/* Foot phase indicator */
.foot-phase {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.35s var(--ease);
}
.foot-phase::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 1px var(--accent);
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ============================== SECTIONS ============================== */
.section {
  position: relative;
  padding: 100px 0;
}
.section.alt { background: var(--bg-alt); }
.section > .container > .eyebrow { margin-bottom: 18px; }
.section h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  max-width: 780px;
  margin-bottom: 18px;
}
.section-intro {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 52px;
}

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* Cards */
.card {
  padding: 30px 26px;
  background: rgba(17, 29, 44, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  margin-bottom: 18px;
}
.card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}
.card p { color: var(--text-muted); font-size: 15px; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step {
  padding: 28px 24px;
  background: rgba(17, 29, 44, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.step:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.step-num {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #04120B;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  margin-bottom: 20px;
  box-shadow: 0 8px 22px rgba(0, 217, 126, 0.3);
}
.step-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 9px; }
.step-body p { color: var(--text-muted); font-size: 14.5px; }

/* Features */
.feature {
  display: flex;
  gap: 18px;
  padding: 26px 24px;
  background: rgba(17, 29, 44, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.feature-arrow {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 15px; }

/* Split (ce que RelanceOps n'est pas) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.split-left h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; margin-bottom: 16px; }
.split-left .section-intro { margin-bottom: 0; }
.checklist { display: flex; flex-direction: column; gap: 16px; }
.checklist li {
  display: flex;
  gap: 15px;
  padding: 20px 22px;
  background: rgba(17, 29, 44, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-muted);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.checklist li:hover { border-color: var(--border-strong); transform: translateX(4px); }
.checklist strong { color: var(--text); font-weight: 700; }
.check-x {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: var(--red);
}

/* ================================ FAQ ================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
}
.faq-item {
  background: rgba(17, 29, 44, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.faq-item.open { border-color: var(--accent-line); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 22px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}
.faq-chevron {
  position: relative;
  width: 16px; height: 16px;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}
.faq-chevron::before,
.faq-chevron::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}
.faq-chevron::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.35s var(--ease); }
.faq-item.open .faq-chevron::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-a p {
  padding: 0 24px 24px;
  color: var(--text-muted);
  font-size: 15.5px;
}

/* ============================= CTA FINAL ============================== */
.cta-section { padding: 40px 0 110px; }
.cta-box {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding: 56px 52px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0A1F17 0%, #0B1622 55%, #081019 100%);
  border: 1px solid var(--accent-line);
  box-shadow: 0 0 60px rgba(0, 217, 126, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.cta-glow {
  position: absolute;
  width: 460px; height: 460px;
  top: -230px; right: -120px;
  background: radial-gradient(circle, rgba(0, 217, 126, 0.35), transparent 68%);
  filter: blur(50px);
  pointer-events: none;
}
.cta-copy { position: relative; z-index: 1; max-width: 620px; }
.cta-copy h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; margin-bottom: 14px; }
.cta-copy p { color: var(--text-muted); font-size: 17px; }
.cta-box .btn { position: relative; z-index: 1; flex-shrink: 0; }

/* ============================== FOOTER ================================ */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-top: 14px;
  max-width: 340px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 14.5px;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--accent); }
.copyright {
  padding-top: 26px;
  color: var(--text-dim);
  font-size: 13.5px;
}

/* Legal pages (mentions-legales / confidentialite) */
.legal { padding: 70px 0 90px; min-height: 60vh; }
.legal .content { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; margin-bottom: 24px; }
.legal h2 { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin: 34px 0 10px; }
.legal p { color: var(--text-muted); margin-bottom: 12px; }
.legal a { color: var(--accent); }
.legal .placeholder {
  background: rgba(245, 181, 68, 0.08);
  border: 1px solid rgba(245, 181, 68, 0.28);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  color: var(--amber);
  font-size: 14.5px;
}

/* =========================== SCROLL REVEAL ============================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================= KEYFRAMES ============================== */
@keyframes float {
  0%, 100% { transform: rotateY(-9deg) rotateX(4deg) translateY(0); }
  50%      { transform: rotateY(-9deg) rotateX(4deg) translateY(-14px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 1px var(--accent-line), 0 0 22px rgba(0, 217, 126, 0.22); }
  50%      { opacity: 0.85; box-shadow: 0 0 0 1px var(--accent-line), 0 0 40px rgba(0, 217, 126, 0.42); }
}

@keyframes gradient-shift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-30px, 24px) scale(0.94); }
}

/* ============================ BENTO (mesure) ========================== */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.bento-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: rgba(17, 29, 44, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.bento-lg { grid-column: span 2; }
.bento-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.metric-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}
.metric-tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}
.metric-tag-amber { color: var(--amber);  background: rgba(245, 181, 68, 0.1); border-color: rgba(245, 181, 68, 0.3); }
.metric-tag-green { color: var(--accent); background: var(--accent-soft);       border-color: var(--accent-line); }
.bento-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 9px; }
.bento-card p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 22px; }
.metric-viz { margin-top: auto; }

/* Viz — honest, number-free placeholders */
.viz-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 72px;
}
.viz-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  opacity: 0.55;
  transform-origin: bottom;
  animation: bar-rise 0.9s var(--ease) both;
}
.viz-bars span:last-child { opacity: 1; }
.viz-dots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
}
.viz-dots span {
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}
.viz-dots span.on {
  background: rgba(245, 181, 68, 0.18);
  border-color: rgba(245, 181, 68, 0.4);
  box-shadow: 0 0 10px rgba(245, 181, 68, 0.3);
}
.viz-line {
  width: 100%;
  height: 62px;
  color: var(--accent);
  display: block;
}
.viz-line-fill { fill: rgba(0, 217, 126, 0.12); }
.viz-stack {
  display: flex;
  gap: 3px;
  height: 16px;
}
.viz-seg { height: 100%; border-radius: 4px; }
.viz-seg-1 { flex: 5; background: var(--accent); }
.viz-seg-2 { flex: 3; background: rgba(0, 217, 126, 0.5); }
.viz-seg-3 { flex: 2; background: rgba(255, 255, 255, 0.1); }
.viz-caption {
  display: block;
  margin-top: 11px;
  font-size: 11.5px;
  color: var(--text-dim);
}

/* ======================= AUDIT 90 JOURS (funnel) ====================== */
.funnel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 840px;
  padding-left: 26px;
}
/* Signal spine — proprietary "pipeline path" motif */
.funnel-flow {
  position: absolute;
  left: 5px;
  top: 26px;
  bottom: 26px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-line), rgba(245, 181, 68, 0.4) 52%, var(--accent));
}
.funnel-stage {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
}
.funnel-stage::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 1px rgba(0, 217, 126, 0.55);
}
.funnel-leak::before { background: var(--amber); box-shadow: 0 0 10px 1px rgba(245, 181, 68, 0.55); }
.funnel-win::before  { background: var(--accent); box-shadow: 0 0 14px 2px rgba(0, 217, 126, 0.7); }
.funnel-bar {
  position: relative;
  width: var(--fill);
  min-width: 200px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(7, 13, 20, 0.5);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.funnel-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 217, 126, 0.22), rgba(0, 217, 126, 0.05));
}
.funnel-shine {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 46px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: translateX(-60px);
  animation: funnel-shine 3.4s ease-in-out infinite;
}
.funnel-stage:nth-child(3) .funnel-shine { animation-delay: 0.4s; }
.funnel-stage:nth-child(4) .funnel-shine { animation-delay: 0.8s; }
.funnel-stage:nth-child(5) .funnel-shine { animation-delay: 1.2s; }
.funnel-stage:nth-child(6) .funnel-shine { animation-delay: 1.6s; }
.funnel-leak .funnel-bar { border-color: rgba(245, 181, 68, 0.35); }
.funnel-leak .funnel-fill { background: linear-gradient(90deg, rgba(245, 181, 68, 0.22), rgba(245, 181, 68, 0.05)); }
.funnel-win .funnel-bar {
  border-color: var(--accent-line);
  box-shadow: 0 0 26px rgba(0, 217, 126, 0.2);
}
.funnel-win .funnel-fill { background: linear-gradient(90deg, rgba(0, 217, 126, 0.38), rgba(0, 217, 126, 0.1)); }
.funnel-meta { flex-shrink: 0; }
.funnel-meta strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.funnel-meta small { font-size: 12.5px; color: var(--text-dim); }
.funnel-tag {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.funnel-tag-amber { color: var(--amber);  background: rgba(245, 181, 68, 0.1); border-color: rgba(245, 181, 68, 0.3); }
.funnel-tag-green { color: var(--accent); background: var(--accent-soft);       border-color: var(--accent-line); }
.funnel-note {
  margin-top: 30px;
  max-width: 680px;
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ===================== BRAND MOTIF — recovery loop ==================== */
.brand-mark { position: relative; }
.brand-mark::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 12px;
  background: conic-gradient(from 0deg, transparent 0 68%, var(--accent) 86%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  animation: motif-orbit 4.5s linear infinite;
  opacity: 0.9;
  pointer-events: none;
}

@keyframes motif-orbit { to { transform: rotate(360deg); } }
@keyframes funnel-shine {
  0%   { transform: translateX(-60px); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateX(880px); opacity: 0; }
}
@keyframes bar-rise {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); }
}

/* ============================ RESPONSIVE ============================== */
/* --- Breakpoint 1200px --- */
@media (max-width: 1200px) {
  .hero-grid { gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 22px; margin-right: 22px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-lg { grid-column: span 2; }
}

/* --- Breakpoint 850px --- */
@media (max-width: 850px) {
  .nav-links { display: none; }
  .hero { padding: 60px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 480px; }
  .pipeline { transform: rotateY(-5deg) rotateX(2deg); animation: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .section { padding: 72px 0; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 42px 32px; }
  /* Perf: lighten heavy blurs on smaller screens */
  .mesh { filter: blur(60px); opacity: 0.4; }
  .mesh-3 { display: none; }
  /* Bento stacks */
  .bento { grid-template-columns: 1fr; }
  .bento-lg { grid-column: span 1; }
  /* Funnel: bars go full-width, meta wraps below */
  .funnel { padding-left: 22px; }
  .funnel-stage { flex-wrap: wrap; gap: 10px 14px; }
  .funnel-bar { width: 100%; min-width: 0; height: 44px; }
  .funnel-tag { margin-left: 0; }
}

/* --- Breakpoint 520px --- */
@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero-actions .btn { width: 100%; }
  .text-link { justify-content: center; }
  .pipeline { transform: none; padding: 18px; }
  .pline-card { flex-wrap: wrap; }
  .badge { order: 3; }
  .section h2 { font-size: clamp(26px, 8vw, 32px); }
  .section-intro { font-size: 16px; margin-bottom: 38px; }
  .cta-box { padding: 34px 24px; }
  .footer-links { align-items: flex-start; }
  .brand-name { font-size: 17px; }
}

/* ===================== REDUCED MOTION (accessibility) ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  /* Keep everything visible without motion */
  .reveal { opacity: 1 !important; transform: none !important; }
  .pipeline { animation: none; transform: rotateY(-6deg) rotateX(3deg); }
  .rail-signal { display: none; }
  .funnel-shine { display: none; }
  .viz-bars span { animation: none; transform: none; }
  .eyebrow-dot, .live-dot, .foot-phase::before { animation: none; }
}


.demo-note {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 181, 68, 0.28);
  background: rgba(245, 181, 68, 0.08);
  color: #E7C57A;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Fixed semantic status colors: preserved while the scan animation runs */
.badge.badge-red {
  color: var(--red) !important;
  background: rgba(255, 107, 107, 0.12) !important;
  border-color: rgba(255, 107, 107, 0.3) !important;
}
.badge.badge-amber {
  color: var(--amber) !important;
  background: rgba(245, 181, 68, 0.12) !important;
  border-color: rgba(245, 181, 68, 0.3) !important;
}
.badge.badge-green {
  color: var(--accent) !important;
  background: var(--accent-soft) !important;
  border-color: var(--accent-line) !important;
}
