/* ===== HERO ===== */
  .cb-hero {
    position: relative;
    padding: 88px 24px 64px;
    background:
      radial-gradient(ellipse 800px 600px at 80% 0%, color-mix(in srgb, var(--cb-primary, #326ce5) 12%, transparent), transparent 60%),
      radial-gradient(ellipse 600px 400px at 0% 100%, color-mix(in srgb, var(--cb-accent, #00d26a) 8%, transparent), transparent 60%),
      var(--cb-bg, #ffffff);
    overflow: hidden;
    isolation: isolate;
  }
  .cb-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(var(--cb-border, rgba(15,23,42,.05)) 1px, transparent 1px),
      linear-gradient(90deg, var(--cb-border, rgba(15,23,42,.05)) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
    z-index: -1;
    opacity: .6;
  }

  .cb-hero-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 28px 40px;
    align-items: start;
  }
  .cb-hero-visual {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .cb-hero-content {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
  .cb-hero-terminal-row {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    max-width: 520px;
    width: 100%;
  }

  @media (max-width: 960px) {
    .cb-hero { padding: 56px 20px 40px; }
    .cb-hero-grid {
      grid-template-columns: 1fr;
      grid-template-rows: auto;
      gap: 28px;
    }
    .cb-hero-visual,
    .cb-hero-content,
    .cb-hero-terminal-row {
      grid-column: 1;
      max-width: none;
    }
    .cb-hero-visual {
      justify-self: start;
      max-width: 220px;
    }
  }

  /* Eyebrow */
  .cb-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background-color: color-mix(in srgb, var(--cb-accent, #00d26a) 12%, transparent);
    color: color-mix(in srgb, var(--cb-accent, #00d26a) 80%, var(--cb-text, #1f2328));
    border: 1px solid color-mix(in srgb, var(--cb-accent, #00d26a) 25%, transparent);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    animation: cb-fadeInDown .6s cubic-bezier(.16,1,.3,1) both;
  }
  .cb-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cb-accent, #00d26a);
    box-shadow: 0 0 8px var(--cb-accent, #00d26a);
    animation: cb-pulse 2s ease-in-out infinite;
  }
  @keyframes cb-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(1.4); } }

  /* Titre */
  .cb-hero-title {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--cb-text, #1f2328);
    margin: 0 0 20px;
    animation: cb-fadeInUp .7s .1s cubic-bezier(.16,1,.3,1) both;
  }
  .cb-hero-title-accent {
    background: linear-gradient(135deg, var(--cb-primary, #326ce5), #6ea8ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
  }

  /* Subtitle */
  .cb-hero-subtitle {
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.6;
    color: var(--cb-text-muted, #57606a);
    max-width: 540px;
    margin: 0 0 32px;
    animation: cb-fadeInUp .7s .2s cubic-bezier(.16,1,.3,1) both;
  }
  .cb-hero-subtitle strong {
    color: var(--cb-text, #1f2328);
    font-weight: 600;
  }

  /* CTAs */
  .cb-hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: cb-fadeInUp .7s .3s cubic-bezier(.16,1,.3,1) both;
  }
  .cb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    transition: transform .15s cubic-bezier(.16,1,.3,1), box-shadow .15s cubic-bezier(.16,1,.3,1), background-color .15s ease;
    cursor: pointer;
    border: 1px solid transparent;
  }
  .cb-btn-primary {
    background: var(--cb-primary, #326ce5);
    color: #fff !important;
    box-shadow: 0 4px 14px -2px color-mix(in srgb, var(--cb-primary, #326ce5) 50%, transparent);
  }
  .cb-btn-primary:hover {
    transform: translateY(-2px);
    background: var(--cb-primary-hover, #2557c4);
    box-shadow: 0 8px 24px -4px color-mix(in srgb, var(--cb-primary, #326ce5) 60%, transparent);
  }
  .cb-btn-ghost {
    background: transparent;
    color: var(--cb-text, #1f2328) !important;
    border: 1px solid var(--cb-border, #d0d7de);
  }
  .cb-btn-ghost:hover {
    border-color: var(--cb-primary, #326ce5);
    color: var(--cb-primary, #326ce5) !important;
    background: color-mix(in srgb, var(--cb-primary, #326ce5) 5%, transparent);
  }

  /* Trust row */
  .cb-hero-trust {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: cb-fadeInUp .7s .4s cubic-bezier(.16,1,.3,1) both;
  }
  .cb-hero-trust-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cb-text-muted, #57606a);
    font-weight: 600;
  }
  .cb-hero-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .cb-badge {
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--cb-surface, #f6f8fa);
    border: 1px solid var(--cb-border, #d0d7de);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--cb-text, #1f2328);
    transition: all .2s cubic-bezier(.16,1,.3,1);
  }
  .cb-badge:hover {
    border-color: var(--cb-primary, #326ce5);
    color: var(--cb-primary, #326ce5);
    transform: translateY(-1px);
  }

  /* Haut à gauche : portrait compact + miniatures */
  .cb-hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 260px;
    margin: 0;
    animation: cb-fadeIn 1s .3s cubic-bezier(.16,1,.3,1) both;
  }

  .cb-hero-portrait-frame {
    position: relative;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    width: 100%;
    border: 1px solid var(--cb-border, #d0d7de);
    box-shadow:
      0 1px 0 rgba(255,255,255,.5) inset,
      0 24px 48px -12px rgba(15, 23, 42, .12),
      0 0 0 1px color-mix(in srgb, var(--cb-primary, #326ce5) 8%, transparent);
    background: var(--cb-surface, #f6f8fa);
  }
  .cb-hero-portrait-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
  }
  .cb-hero-portrait-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    margin: 0;
    padding: 22px 14px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
    background: linear-gradient(to top, rgba(15, 23, 42, .88) 0%, rgba(15, 23, 42, .35) 55%, transparent 100%);
    pointer-events: none;
  }

  .cb-hero-event-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .cb-hero-strip-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--cb-border, #d0d7de);
    background: var(--cb-surface, #f6f8fa);
  }
  .cb-hero-strip-cell img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .cb-hero-strip-cell--wide img {
    object-position: 24% center;
  }

  .cb-terminal-wrap {
    position: relative;
    width: 100%;
  }

  .cb-terminal {
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 10px;
    box-shadow:
      0 1px 0 rgba(255,255,255,.05) inset,
      0 12px 32px -16px rgba(0,0,0,.35),
      0 6px 16px -8px color-mix(in srgb, var(--cb-primary, #326ce5) 22%, transparent);
    overflow: hidden;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    color: #e6edf3;
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg) scale(0.98);
    transition: transform .4s cubic-bezier(.16,1,.3,1);
  }
  .cb-terminal:hover { transform: perspective(1000px) rotateY(0) rotateX(0) scale(1); }

  .cb-terminal-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #161b22;
    border-bottom: 1px solid #21262d;
  }
  .cb-terminal-dot { width: 9px; height: 9px; border-radius: 50%; }
  .cb-terminal-title {
    margin-left: 8px;
    font-size: 10px;
    color: #8b949e;
    font-weight: 500;
  }
  .cb-terminal-body {
    padding: 12px 14px;
    font-size: 11px;
    line-height: 1.45;
    min-height: 0;
    max-height: 220px;
    overflow-y: auto;
  }
  @media (max-width: 960px) {
    .cb-terminal-body {
      max-height: 200px;
      padding: 10px 12px;
      font-size: 10px;
    }
  }
  .cb-line { display: flex; gap: 6px; }
  .cb-prompt { color: var(--cb-accent, #00d26a); font-weight: 700; }
  .cb-cmd { color: #e6edf3; }
  .cb-output { color: #8b949e; padding-left: 12px; margin: 2px 0 6px; }
  .cb-output > div { white-space: pre; }
  .cb-ok { color: var(--cb-accent, #00d26a); font-weight: 700; }
  .cb-success { color: var(--cb-accent, #00d26a); font-weight: 600; margin-top: 6px; }
  .cb-cursor { color: var(--cb-accent, #00d26a); animation: cb-blink 1s steps(2) infinite; }
  @keyframes cb-blink { 50% { opacity: 0; } }

  /* Typing animation — typewriter sans JS */
  .cb-typing-1, .cb-typing-2, .cb-typing-3, .cb-typing-4 {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid transparent;
  }
  .cb-typing-1 { width: 0; animation: cb-typeIn 0.8s .3s steps(12, end) forwards; }
  .cb-typing-2 { width: 0; animation: cb-typeIn 0.7s 2.0s steps(9, end) forwards; }
  .cb-typing-3 { width: 0; animation: cb-typeIn 1.5s 3.6s steps(30, end) forwards; }
  .cb-typing-4 { width: 0; animation: cb-typeIn 1.4s 6.0s steps(29, end) forwards; }
  @keyframes cb-typeIn { to { width: 100%; } }

  /* Fade-in séquentiel des lignes & outputs */
  .cb-fade-1 { opacity: 0; animation: cb-fadeIn .4s 1.3s forwards; }
  .cb-fade-2 { opacity: 0; animation: cb-fadeIn .4s 1.9s forwards; }
  .cb-fade-3 { opacity: 0; animation: cb-fadeIn .4s 2.9s forwards; }
  .cb-fade-4 { opacity: 0; animation: cb-fadeIn .4s 3.5s forwards; }
  .cb-fade-5 { opacity: 0; animation: cb-fadeIn .4s 5.3s forwards; }
  .cb-fade-6 { opacity: 0; animation: cb-fadeIn .4s 5.9s forwards; }
  .cb-fade-7 { opacity: 0; animation: cb-fadeIn .4s 7.6s forwards; }
  .cb-fade-8 { opacity: 0; animation: cb-fadeIn .4s 8.0s forwards; }

  @keyframes cb-fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes cb-fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes cb-fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

  /* Floating badges */
  .cb-float-badge {
    position: absolute;
    background: var(--cb-bg, #ffffff);
    border: 1px solid var(--cb-border, #d0d7de);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 12px 32px -8px rgba(15, 23, 42, .15);
    animation: cb-float 4s ease-in-out infinite;
  }
  .cb-float-badge svg { color: var(--cb-primary, #326ce5); flex-shrink: 0; }
  .cb-float-badge div { display: flex; flex-direction: column; line-height: 1.1; }
  .cb-float-badge strong { font-size: 16px; font-weight: 700; color: var(--cb-text, #1f2328); font-family: 'JetBrains Mono', monospace; }
  .cb-float-badge span { font-size: 11px; color: var(--cb-text-muted, #57606a); text-transform: uppercase; letter-spacing: .05em; }

  .cb-hero-float--terminal-years {
    top: -8px;
    left: -8px;
    right: auto;
    bottom: auto;
    animation-delay: 0s;
    z-index: 2;
  }
  .cb-hero-float--terminal-migrations {
    bottom: -8px;
    right: -8px;
    left: auto;
    top: auto;
    animation-delay: -2s;
    z-index: 2;
  }
  @media (max-width: 960px) {
    .cb-float-badge { display: none; }
  }
  @keyframes cb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

  @media (max-width: 520px) {
    .cb-hero-event-strip {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }
  }

  /* Stats row */
  .cb-stats-row {
    max-width: 1280px;
    margin: 80px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 32px;
    background: var(--cb-surface, #f6f8fa);
    border: 1px solid var(--cb-border, #d0d7de);
    border-radius: 20px;
  }
  @media (max-width: 768px) { .cb-stats-row { grid-template-columns: repeat(2, 1fr); padding: 20px; } }

  .cb-stat { text-align: center; }
  .cb-stat-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: var(--cb-primary, #326ce5);
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
  }
  .cb-stat-lbl {
    margin-top: 8px;
    font-size: 13px;
    color: var(--cb-text-muted, #57606a);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .cb-hero *,
    .cb-hero *::before,
    .cb-hero *::after {
      animation: none !important;
      transition: none !important;
    }
    .cb-typing-1, .cb-typing-2, .cb-typing-3, .cb-typing-4 { width: 100% !important; }
    .cb-fade-1, .cb-fade-2, .cb-fade-3, .cb-fade-4,
    .cb-fade-5, .cb-fade-6, .cb-fade-7, .cb-fade-8 { opacity: 1 !important; }
    .cb-terminal { transform: none !important; }
  }