/* ============================================
   ALGORIS — automatisation.css
   Styles exclusifs au hero automatisation
   ============================================ */

.auto-hero {
  position: relative;
  min-height: var(--vh-stable, 100svh);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 100px;
  background: var(--bg-primary);
}

#netCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── Sweep lumineux ─── */

.auto-hero__sweep {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.auto-hero__sweep::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(59,130,246,0.025) 45%,
    rgba(59,130,246,0.06)  50%,
    rgba(59,130,246,0.025) 55%,
    transparent 100%
  );
  animation: heroSweep 9s ease-in-out infinite;
}

@keyframes heroSweep {
  0%   { left: -60%; }
  100% { left: 160%; }
}

/* ─── Glows ─── */

.auto-hero__glow {
  position: absolute;
  bottom: -25%; left: -15%;
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 60%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
}

.auto-hero__glow2 {
  position: absolute;
  top: -20%; right: -10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 60%);
  filter: blur(110px);
  pointer-events: none;
  z-index: 1;
}

/* ─── Contenu centré ─── */

.auto-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-3xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2xl);
}

/* ─── Service label ─── */

.auto-hero__service {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.05s both;
}

.auto-hero__service-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: labelPulse 2.4s ease-in-out infinite;
}

/* ─── Titre ALGORIS ─── */

.auto-hero__title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 13vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--text-primary);
  cursor: default;
  user-select: none;
  animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.12s both;
}

.auto-hero__letter {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), color 0.3s ease;
  will-change: transform;
}

/* ─── Chips flottants ─── */

.auto-hero__chips {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.28s both;
}

.auto-hero__chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: default;
  user-select: none;
  animation: neonBreath 3.5s ease-in-out infinite, chipFloat 4s ease-in-out infinite;
}

.auto-hero__chip:nth-child(1) { animation-delay: 0s,    0s;   }
.auto-hero__chip:nth-child(2) { animation-delay: 0.75s, 0.6s; }
.auto-hero__chip:nth-child(3) { animation-delay: 1.5s,  1.2s; }

.auto-hero__chip-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: labelPulse 2s ease-in-out infinite;
}

.auto-hero__chip:nth-child(2) .auto-hero__chip-dot { animation-delay: 0.7s; }
.auto-hero__chip:nth-child(3) .auto-hero__chip-dot { animation-delay: 1.4s; }

@keyframes neonBreath {
  0%, 100% {
    color: var(--accent);
    border-color: rgba(59,130,246,0.4);
    box-shadow: 0 0 12px rgba(59,130,246,0.25), inset 0 0 12px rgba(59,130,246,0.04);
    text-shadow: 0 0 8px rgba(59,130,246,0.6), 0 0 20px rgba(59,130,246,0.3);
  }
  50% {
    color: rgba(59,130,246,0.55);
    border-color: rgba(59,130,246,0.14);
    box-shadow: 0 0 4px rgba(59,130,246,0.06);
    text-shadow: none;
  }
}

@keyframes chipFloat {
  0%, 100% { transform: translateY(0px);  }
  50%       { transform: translateY(-7px); }
}

.auto-hero__chip-sep {
  color: var(--border);
  font-size: 1.1rem;
  opacity: 0.4;
  flex-shrink: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.28s both;
}

/* ─── Description ─── */

.auto-hero__desc {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.72;
  max-width: 580px;
  animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.42s both;
}

/* ─── CTA ─── */

.auto-hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.55s both;
}

.auto-hero__scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.auto-hero__scroll-line {
  width: 28px; height: 1px;
  background: var(--text-muted);
  opacity: 0.4;
}

/* ─── Keyframes ─── */

@keyframes labelPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Light theme ─── */

[data-theme="light"] .auto-hero__chip {
  background: rgba(37,99,235,0.06);
  border-color: rgba(37,99,235,0.18);
}

/* ─── Rotating subtitle ─── */

.auto-hero__rotating {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.2rem;
  overflow: hidden;
  animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.5s both;
}

.auto-hero__rotating-word {
  position: absolute;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1);
}

.auto-hero__rotating-word--active {
  opacity: 1;
  transform: translateY(0);
}

.auto-hero__rotating-word--exit {
  opacity: 0;
  transform: translateY(-20px);
}

/* ─── Responsive ─── */

@media (max-width: 700px) {
  .auto-hero__inner { padding: 0 var(--space-lg); gap: var(--space-xl); }
  .auto-hero__title { font-size: clamp(3.5rem, 16vw, 6rem); }
  .auto-hero__chip  { font-size: 0.65rem; padding: 8px 16px; }
  .auto-hero__rotating-word { font-size: 1.2rem; }
}


/* ═══════════════════════════════════════════
   ICOSAÈDRE 3D
   ═══════════════════════════════════════════ */

/* Halo derrière la forme */
.auto-hero__ico-glow {
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
  z-index: 2;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.11) 0%, transparent 62%);
  filter: blur(55px);
  opacity: 0;
  animation:
    icoFadeIn   1.4s cubic-bezier(0.16,1,0.3,1) 0.7s forwards,
    icoGlowPulse 4.5s ease-in-out 2.2s infinite;
}

@keyframes icoGlowPulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1;   }
}

#icoCanvas {
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  z-index: 3;
  pointer-events: auto;
  cursor: grab;
  opacity: 0;
  animation: icoFadeIn 1.4s cubic-bezier(0.16,1,0.3,1) 0.8s forwards;
}

#icoCanvas:active { cursor: grabbing; }

@keyframes icoFadeIn {
  from { opacity: 0; transform: translateY(-50%) scale(0.82); }
  to   { opacity: 1; transform: translateY(-50%) scale(1); }
}

@media (max-width: 1280px) {
  #icoCanvas,
  .auto-hero__ico-glow { display: none; }
}


/* ═══════════════════════════════════════════
   SECTIONS DÉTAILLÉES
   ═══════════════════════════════════════════ */

.auto-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Section inversée (visuel à gauche) */
.auto-section--reverse .auto-section__visual { order: -1; }

/* ─── Contenu ─── */

.auto-section__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.auto-section__label-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
  animation: labelPulse 2.4s ease-in-out infinite;
}

.auto-section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.auto-section__text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 520px;
}

/* ─── Features list ─── */

.auto-section__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.auto-section__feature {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.auto-section__feature:hover {
  border-color: var(--border-accent);
  transform: translateX(5px);
  box-shadow: -3px 0 20px var(--accent-glow);
}

.auto-section__feature-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.8;
  padding: 7px;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  margin-top: 1px;
}

.auto-section__feature-icon svg { width: 100%; height: 100%; }

.auto-section__feature div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auto-section__feature strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.auto-section__feature span {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.55;
}


/* ─── Placeholder visuel ─── */

.auto-section__visual {
  position: relative;
}

.auto-section__placeholder {
  position: relative;
  min-height: 400px;
  border-radius: var(--radius-xl);
  border: 1px dashed rgba(59,130,246,0.22);
  background:
    linear-gradient(135deg, rgba(59,130,246,0.04) 0%, transparent 60%),
    var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.4s;
}

.auto-section__placeholder:hover {
  border-color: rgba(59,130,246,0.4);
}

/* Scan line animée dans le placeholder */
.auto-section__placeholder::after {
  content: '';
  position: absolute;
  top: -100%; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.4), transparent);
  animation: phScan 5s ease-in-out infinite;
}

@keyframes phScan {
  0%   { top: -2%; }
  100% { top: 102%; }
}

/* Coin brackets */
.auto-section__ph-corner {
  position: absolute;
  width: 20px; height: 20px;
  pointer-events: none;
}

.auto-section__ph-corner--tl {
  top: 14px; left: 14px;
  border-top: 1.5px solid var(--accent);
  border-left: 1.5px solid var(--accent);
  opacity: 0.4;
}

.auto-section__ph-corner--br {
  bottom: 14px; right: 14px;
  border-bottom: 1.5px solid var(--accent);
  border-right: 1.5px solid var(--accent);
  opacity: 0.4;
}

.auto-section__ph-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
  padding: var(--space-2xl);
}

.auto-section__ph-icon {
  width: 64px; height: 64px;
  color: var(--accent);
  opacity: 0.18;
}

.auto-section__ph-icon svg { width: 100%; height: 100%; }

.auto-section__ph-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
  text-align: center;
}


/* ─── Responsive ─── */

@media (max-width: 1100px) {
  .auto-section__grid { gap: var(--space-2xl); }
}

@media (max-width: 960px) {
  .auto-section__grid  { grid-template-columns: 1fr; gap: var(--space-xl); }
  .auto-section--reverse .auto-section__visual { order: 0; }
  .auto-section__placeholder { min-height: 280px; }
  .auto-section__text { max-width: 100%; }
}

@media (max-width: 700px) {
  .auto-section__feature { padding: var(--space-md) var(--space-lg); }
}


/* ═══════════════════════════════════════════
   DEPLOY STACK — Glassmorphism section 01
   ═══════════════════════════════════════════ */

.deploy-stack {
  position: relative;
  width: 100%;
  min-height: 400px;
  padding: 52px 20px 32px;
  animation: deployFloat 6s ease-in-out infinite;
}

@keyframes deployFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

/* ─── Base carte glass ─── */

.deploy-card {
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* ─── Cartes arrière ─── */

.deploy-card--bg3 {
  position: absolute;
  inset: 44px 48px 64px 4px;
  background: rgba(59,130,246,0.05);
  border: 1px solid rgba(255,255,255,0.04);
  transform: rotate(-5.5deg);
  z-index: 1;
}

.deploy-card--bg2 {
  position: absolute;
  inset: 38px 28px 60px 2px;
  background: rgba(59,130,246,0.07);
  border: 1px solid rgba(255,255,255,0.065);
  transform: rotate(-2.5deg);
  z-index: 2;
}

/* ─── Carte principale ─── */

.deploy-card--main {
  position: relative;
  z-index: 3;
  background: rgba(255,255,255,0.065);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.06),
    0 24px 64px rgba(0,0,0,0.38),
    inset 0 1px 0 rgba(255,255,255,0.14);
}

/* Reflet lumière haut-gauche */
.deploy-card--main::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    130deg,
    rgba(255,255,255,0.11) 0%,
    rgba(255,255,255,0.04) 35%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

/* ─── Chrome navigateur ─── */

.deploy-card__chrome {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
  z-index: 1;
}

.deploy-card__dots { display: flex; gap: 5px; flex-shrink: 0; }
.deploy-card__dots span { width: 9px; height: 9px; border-radius: 50%; }
.deploy-card__dots span:nth-child(1) { background: rgba(255,95,87,0.75); }
.deploy-card__dots span:nth-child(2) { background: rgba(254,188,46,0.75); }
.deploy-card__dots span:nth-child(3) { background: rgba(40,200,64,0.75); }

.deploy-card__url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.32);
  text-align: center;
  background: rgba(255,255,255,0.05);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.05);
}

.deploy-card__status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.16em;
  color: #86efac;
  flex-shrink: 0;
}

.deploy-card__status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #22C55E;
  animation: labelPulse 1.8s ease-in-out infinite;
}

/* ─── Preview site ─── */

.deploy-card__preview {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* Skeleton shimmer commun */
@keyframes skeletonShimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

/* Navbar */
.deploy-preview__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.deploy-preview__nav-logo {
  width: 38px; height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(59,130,246,0.5), rgba(59,130,246,0.2));
  flex-shrink: 0;
}

.deploy-preview__nav-links {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.deploy-preview__nav-links span {
  width: 26px; height: 5px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.05) 25%,
    rgba(255,255,255,0.10) 50%,
    rgba(255,255,255,0.05) 75%
  );
  background-size: 200px 100%;
  animation: skeletonShimmer 2.8s ease-in-out infinite;
}

.deploy-preview__nav-btn {
  width: 44px; height: 7px;
  border-radius: 4px;
  border: 1px solid rgba(59,130,246,0.35);
  flex-shrink: 0;
}

/* Hero */
.deploy-preview__hero {
  padding: 12px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.deploy-preview__line {
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.11) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 600px 100%;
  animation: skeletonShimmer 2.8s ease-in-out infinite;
}

.deploy-preview__line--title { height: 12px; width: 60%; }
.deploy-preview__line--sub   { height: 7px;  width: 82%; animation-delay: 0.25s; }
.deploy-preview__line--sub2  { height: 7px;  width: 50%; animation-delay: 0.5s; }

.deploy-preview__cta-row {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.deploy-preview__cta-btn {
  width: 68px; height: 9px;
  border-radius: 5px;
  background: rgba(59,130,246,0.45);
}

.deploy-preview__cta-ghost {
  width: 58px; height: 9px;
  border-radius: 5px;
  border: 1px solid rgba(59,130,246,0.25);
}

/* Cards — styled as metric badges inside the fake site */
.deploy-preview__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.deploy-preview__card {
  height: 54px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.055);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

/* Value — large accent number */
.deploy-preview__card::before {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  background: none;
  position: static;
  height: auto;
  width: auto;
  animation: none;
}

/* Label — tiny mono */
.deploy-preview__card::after {
  font-family: var(--font-mono);
  font-size: 0.38rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  position: static;
  height: auto;
  width: auto;
  background: none;
}

.deploy-preview__card:nth-child(1)::before { content: '98'; }
.deploy-preview__card:nth-child(1)::after  { content: 'PERF'; }
.deploy-preview__card:nth-child(2)::before { content: '100'; }
.deploy-preview__card:nth-child(2)::after  { content: 'SEO'; }
.deploy-preview__card:nth-child(3)::before { content: '✓'; }
.deploy-preview__card:nth-child(3)::after  { content: 'MOBILE'; }

/* Subtle glow on the third card (mobile check) */
.deploy-preview__card:nth-child(3) {
  border-color: rgba(34,197,94,0.15);
  background: rgba(34,197,94,0.04);
}
.deploy-preview__card:nth-child(3)::before {
  color: #22C55E;
}

/* ─── Notification ─── */

.deploy-notif {
  position: absolute;
  top: 14px; right: 8px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 0 20px rgba(34,197,94,0.12),
    inset 0 1px 0 rgba(255,255,255,0.10);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  color: #86efac;
  white-space: nowrap;
  animation: notifIn 0.7s cubic-bezier(0.16,1,0.3,1) 0.4s both;
}

@keyframes notifIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.deploy-notif__check {
  color: #22C55E;
  font-size: 0.65rem;
  font-weight: 700;
}

/* ─── Métriques — hidden, content moved elsewhere ─── */

.deploy-metrics { display: none; }


/* ─── Light theme ─── */

[data-theme="light"] .deploy-card--main {
  background: rgba(255,255,255,0.72);
  border-color: rgba(0,0,0,0.07);
  box-shadow: 0 24px 64px rgba(0,0,0,0.10), inset 0 1px 0 rgba(255,255,255,0.95);
}

[data-theme="light"] .deploy-card--main::before {
  background: linear-gradient(130deg, rgba(255,255,255,0.65) 0%, transparent 50%);
}

[data-theme="light"] .deploy-card--bg2 {
  background: rgba(255,255,255,0.52);
  border-color: rgba(0,0,0,0.05);
}

[data-theme="light"] .deploy-card--bg3 {
  background: rgba(255,255,255,0.35);
  border-color: rgba(0,0,0,0.04);
}

[data-theme="light"] .deploy-card__chrome { border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .deploy-card__url    { color: rgba(0,0,0,0.38); background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.05); }

[data-theme="light"] .deploy-preview__line {
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.09) 50%, rgba(0,0,0,0.04) 75%);
  background-size: 600px 100%;
}

[data-theme="light"] .deploy-preview__nav-links span {
  background: linear-gradient(90deg, rgba(0,0,0,0.05) 25%, rgba(0,0,0,0.10) 50%, rgba(0,0,0,0.05) 75%);
  background-size: 200px 100%;
}

[data-theme="light"] .deploy-preview__card {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.05);
}

[data-theme="light"] .deploy-preview__card::after {
  color: rgba(0,0,0,0.35);
}

[data-theme="light"] .deploy-preview__card:nth-child(3) {
  background: rgba(34,197,94,0.05);
  border-color: rgba(34,197,94,0.12);
}

[data-theme="light"] .deploy-preview__hero { border-bottom-color: rgba(0,0,0,0.05); }


[data-theme="light"] .deploy-notif {
  background: rgba(34,197,94,0.09);
  color: #15803d;
  border-color: rgba(34,197,94,0.25);
}

[data-theme="light"] .deploy-notif__check { color: #16a34a; }


/* ═══════════════════════════════════════════
   BULLES TECH
   ═══════════════════════════════════════════ */

.auto-bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.auto-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(59,130,246,0.18) 0%,
    rgba(59,130,246,0.06) 45%,
    transparent 70%
  );
  border: 1px solid rgba(59,130,246,0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(59,130,246,0.08),
    0 0 30px rgba(59,130,246,0.06);
}

/* Bulle 1 — grande, gauche */
.auto-bubble--1 {
  width: 140px; height: 140px;
  left: -40px; top: 20%;
  animation: bubbleDrift1 18s ease-in-out infinite;
  opacity: 0.55;
}

/* Bulle 2 — petite, haut droite */
.auto-bubble--2 {
  width: 72px; height: 72px;
  right: 8%; top: 8%;
  animation: bubbleDrift2 13s ease-in-out infinite 2s;
  opacity: 0.4;
}

/* Bulle 3 — moyenne, bas gauche */
.auto-bubble--3 {
  width: 96px; height: 96px;
  left: 12%; bottom: 10%;
  animation: bubbleDrift3 20s ease-in-out infinite 1s;
  opacity: 0.35;
}

/* Bulle 4 — très petite, milieu haut */
.auto-bubble--4 {
  width: 48px; height: 48px;
  left: 40%; top: 5%;
  animation: bubbleDrift2 11s ease-in-out infinite 3.5s;
  opacity: 0.3;
}

/* Bulle 5 — grande, bas droite */
.auto-bubble--5 {
  width: 120px; height: 120px;
  right: -30px; bottom: 5%;
  animation: bubbleDrift1 22s ease-in-out infinite 1.5s;
  opacity: 0.45;
}

@keyframes bubbleDrift1 {
  0%   { transform: translate(0,   0  ) scale(1);    }
  33%  { transform: translate(18px,-22px) scale(1.04); }
  66%  { transform: translate(-12px,14px) scale(0.97); }
  100% { transform: translate(0,   0  ) scale(1);    }
}

@keyframes bubbleDrift2 {
  0%   { transform: translate(0,  0  ) scale(1);    }
  40%  { transform: translate(-14px,18px) scale(1.06); }
  75%  { transform: translate(10px,-10px) scale(0.96); }
  100% { transform: translate(0,  0  ) scale(1);    }
}

@keyframes bubbleDrift3 {
  0%   { transform: translate(0,   0  ) scale(1);    }
  50%  { transform: translate(20px,-16px) scale(1.03); }
  100% { transform: translate(0,   0  ) scale(1);    }
}

/* Light theme bubbles */
[data-theme="light"] .auto-bubble {
  background: radial-gradient(
    circle at 30% 30%,
    rgba(37,99,235,0.22) 0%,
    rgba(37,99,235,0.10) 50%,
    rgba(37,99,235,0.03) 70%
  );
  border-color: rgba(37,99,235,0.35);
  border-width: 1.5px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 0 30px rgba(37,99,235,0.14),
    0 0 60px rgba(37,99,235,0.06);
}

/* S'assurer que le contenu de section passe par-dessus les bulles */
#web .container { position: relative; z-index: 1; }


/* ═══════════════════════════════════════════
   DEPLOY SCENE — browser + phone côte à côte
   ═══════════════════════════════════════════ */

.deploy-scene {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  justify-content: center;
}

/* Browser stack takes remaining space */
.deploy-scene .deploy-stack {
  flex: 1;
  min-width: 0;
  padding: 44px 16px 28px;
}



/* ═══════════════════════════════════════════
   TÉLÉPHONE GLASSMORPHISM
   ═══════════════════════════════════════════ */

.deploy-phone {
  flex-shrink: 0;
  width: 130px;
  animation: deployPhoneFloat 7s ease-in-out 1s infinite;
}

@keyframes deployPhoneFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.deploy-phone__body {
  position: relative;
  width: 130px;
  height: 250px;
  border-radius: 28px;
  background: rgba(255,255,255,0.065);
  border: 1.5px solid rgba(255,255,255,0.13);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    0 0 0 1px rgba(59,130,246,0.10),
    0 24px 60px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Reflet lumière phone */
.deploy-phone__body::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    140deg,
    rgba(255,255,255,0.14) 0%,
    rgba(255,255,255,0.05) 30%,
    transparent 55%
  );
  pointer-events: none;
  z-index: 10;
}

/* Notch */
.deploy-phone__notch {
  width: 44px; height: 10px;
  background: rgba(0,0,0,0.5);
  border-radius: 0 0 8px 8px;
  margin: 0 auto;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* Écran */
.deploy-phone__screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 6px 8px 0;
  gap: 6px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Status bar */
.deploy-phone__status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.38rem;
  color: rgba(255,255,255,0.4);
}

.deploy-phone__status-icons {
  display: flex;
  gap: 3px;
  align-items: center;
}

.deploy-phone__status-icons span {
  width: 6px; height: 4px;
  border-radius: 1px;
  background: rgba(255,255,255,0.3);
}

.deploy-phone__status-icons span:last-child {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(34,197,94,0.7);
}

/* Navbar mobile */
.deploy-phone__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 2px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.deploy-phone__nav-logo {
  width: 28px; height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(59,130,246,0.6), rgba(59,130,246,0.2));
}

.deploy-phone__nav-burger {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.deploy-phone__nav-burger span {
  display: block;
  width: 12px; height: 1.5px;
  background: rgba(255,255,255,0.25);
  border-radius: 1px;
}

/* Badge compatible */
.deploy-phone__badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border-radius: 8px;
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.deploy-phone__badge svg {
  width: 10px; height: 10px;
  color: #22C55E;
  flex-shrink: 0;
}

.deploy-phone__badge span {
  font-family: var(--font-mono);
  font-size: 0.36rem;
  letter-spacing: 0.08em;
  color: #86efac;
  white-space: nowrap;
}

/* Contenu skeleton */
.deploy-phone__content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.deploy-phone__line {
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.10) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 300px 100%;
  animation: skeletonShimmer 2.8s ease-in-out infinite;
}

.deploy-phone__line--h  { height: 7px;  width: 70%; }
.deploy-phone__line--p  { height: 4px;  width: 90%; animation-delay: 0.2s; }
.deploy-phone__line--p2 { height: 4px;  width: 60%; animation-delay: 0.4s; }

.deploy-phone__btn {
  width: 58px; height: 8px;
  border-radius: 5px;
  background: rgba(59,130,246,0.4);
  margin-top: 2px;
}

/* Bottom nav */
.deploy-phone__bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 2;
}

.deploy-phone__bottom-nav span {
  width: 18px; height: 18px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}

.deploy-phone__bottom-nav span:nth-child(1) {
  background: rgba(59,130,246,0.22);
  border-color: rgba(59,130,246,0.25);
}

/* Home indicator */
.deploy-phone__home {
  width: 36px; height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.18);
  margin: 5px auto 8px;
  flex-shrink: 0;
}


/* ─── Light theme phone ─── */

[data-theme="light"] .deploy-phone__body {
  background: rgba(255,255,255,0.72);
  border-color: rgba(0,0,0,0.08);
  box-shadow:
    0 0 0 1px rgba(59,130,246,0.08),
    0 24px 60px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

[data-theme="light"] .deploy-phone__body::before {
  background: linear-gradient(140deg, rgba(255,255,255,0.6) 0%, transparent 45%);
}

[data-theme="light"] .deploy-phone__notch { background: rgba(0,0,0,0.15); }

[data-theme="light"] .deploy-phone__status-bar { color: rgba(0,0,0,0.35); }
[data-theme="light"] .deploy-phone__status-icons span { background: rgba(0,0,0,0.2); }
[data-theme="light"] .deploy-phone__nav-burger span { background: rgba(0,0,0,0.2); }
[data-theme="light"] .deploy-phone__nav { border-bottom-color: rgba(0,0,0,0.05); }
[data-theme="light"] .deploy-phone__bottom-nav { border-top-color: rgba(0,0,0,0.05); }
[data-theme="light"] .deploy-phone__bottom-nav span { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.06); }

[data-theme="light"] .deploy-phone__line {
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.09) 50%, rgba(0,0,0,0.04) 75%);
  background-size: 300px 100%;
}

[data-theme="light"] .deploy-phone__badge {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.2);
}

[data-theme="light"] .deploy-phone__badge span { color: #15803d; }
[data-theme="light"] .deploy-phone__home { background: rgba(0,0,0,0.12); }

/* ─── Responsive scène — browser + phone side by side at all sizes ─── */

@media (max-width: 1100px) {
  .deploy-phone { width: 110px; }
  .deploy-phone__body { width: 110px; height: 215px; }
}

@media (max-width: 960px) {
  .deploy-phone { width: 105px; }
  .deploy-phone__body { width: 105px; height: 200px; border-radius: 24px; }
  .deploy-scene .deploy-stack { padding: 36px 12px 22px; }
  .deploy-notif { top: 6px; right: 4px; }
}

@media (max-width: 820px) {
  .deploy-phone { width: 95px; }
  .deploy-phone__body { width: 95px; height: 182px; border-radius: 22px; }
  .deploy-preview__card { height: 44px; }
  .deploy-preview__card::before { font-size: 0.85rem; }
  .deploy-preview__card::after { font-size: 0.34rem; }
}

@media (max-width: 600px) {
  /* ── Deploy scene ── */
  .deploy-scene { gap: 12px; }
  .deploy-scene .deploy-stack { padding: 28px 6px 20px; }
  .deploy-notif { top: 2px; right: 4px; padding: 5px 10px; gap: 5px; font-size: 0.46rem; }
  .deploy-notif__check { font-size: 0.55rem; }

  /* Phone — readable, "Compatible mobile" visible */
  .deploy-phone { width: 100px; }
  .deploy-phone__body { width: 100px; height: 190px; border-radius: 22px; }
  .deploy-phone__notch { width: 34px; height: 8px; border-radius: 0 0 6px 6px; }
  .deploy-phone__screen { padding: 4px 6px 0; gap: 4px; }
  .deploy-phone__badge { padding: 4px 6px; border-radius: 6px; gap: 3px; }
  .deploy-phone__badge svg { width: 8px; height: 8px; }
  .deploy-phone__badge span { font-size: 0.34rem; letter-spacing: 0.06em; }
  .deploy-phone__nav-logo { width: 22px; height: 3px; }
  .deploy-phone__nav-burger span { width: 10px; height: 1px; }
  .deploy-phone__line--h { height: 5px; }
  .deploy-phone__line--p { height: 3px; }
  .deploy-phone__line--p2 { height: 3px; }
  .deploy-phone__content { gap: 4px; }
  .deploy-phone__btn { width: 40px; height: 6px; border-radius: 3px; }
  .deploy-phone__bottom-nav { padding: 4px 5px; }
  .deploy-phone__bottom-nav span { width: 14px; height: 14px; border-radius: 3px; }
  .deploy-phone__home { width: 26px; height: 2px; margin: 3px auto 5px; }

  /* Metric cards inside browser */
  .deploy-preview__cards { gap: 5px; }
  .deploy-preview__card { height: 38px; gap: 1px; }
  .deploy-preview__card::before { font-size: 0.75rem; }
  .deploy-preview__card::after { font-size: 0.3rem; letter-spacing: 0.08em; }
}


/* ═══════════════════════════════════════════
   TRANSITION HERO → SECTION
   ═══════════════════════════════════════════ */

.auto-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--bg-primary) 100%
  );
  pointer-events: none;
  z-index: 4;
}


/* ═══════════════════════════════════════════
   WORKFLOW CUBES — section 02
   ═══════════════════════════════════════════ */

.wf-scene {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ─── Ligne verticale centrale ─── */

.wf-spine {
  position: absolute;
  left: 50%;
  top: 28px;
  bottom: 54px;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    transparent,
    var(--accent) 15%,
    var(--accent) 85%,
    transparent
  );
  opacity: 0;
  transform-origin: top center;
  transition: opacity 0.6s ease 1.1s;
}

.wf-scene.is-live .wf-spine {
  opacity: 0.25;
}


/* ─── Rangées ─── */

.wf-row {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
  gap: 0;
  min-height: 100px;
  position: relative;
}


/* ─── Nœud central ─── */

.wf-node {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.wf-node span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-accent);
  box-shadow: 0 0 10px var(--accent-glow);
  display: block;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.wf-node--accent span {
  background: var(--accent);
  box-shadow: 0 0 16px rgba(59,130,246,0.5);
}

.wf-scene.is-live .wf-node span {
  transform: scale(1);
}

.wf-scene.is-live .wf-row:nth-child(2) .wf-node span { transition-delay: 0.25s; }
.wf-scene.is-live .wf-row:nth-child(3) .wf-node span { transition-delay: 0.50s; }
.wf-scene.is-live .wf-row:nth-child(4) .wf-node span { transition-delay: 0.75s; }


/* ─── Cubes ─── */

.wf-cube {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.wf-cube:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

/* État initial — hors écran */
.wf-cube--left {
  opacity: 0;
  transform: translateX(-80px) scale(0.88);
  transition:
    opacity  0.55s ease,
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wf-cube--right {
  opacity: 0;
  transform: translateX(80px) scale(0.88);
  transition:
    opacity  0.55s ease,
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* État final — snappé en place */
.wf-scene.is-live .wf-cube {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Délais en cascade via JS (data-delay attribute) */
.wf-scene.is-live .wf-cube[data-delay="0"]   { transition-delay: 0.0s,  0.0s; }
.wf-scene.is-live .wf-cube[data-delay="120"]  { transition-delay: 0.12s, 0.12s; }
.wf-scene.is-live .wf-cube[data-delay="260"]  { transition-delay: 0.26s, 0.26s; }
.wf-scene.is-live .wf-cube[data-delay="380"]  { transition-delay: 0.38s, 0.38s; }
.wf-scene.is-live .wf-cube[data-delay="520"]  { transition-delay: 0.52s, 0.52s; }
.wf-scene.is-live .wf-cube[data-delay="640"]  { transition-delay: 0.64s, 0.64s; }


/* ─── Icône ─── */

.wf-cube__icon {
  width: 36px; height: 36px;
  padding: 8px;
  color: var(--accent);
  opacity: 0.7;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
}

.wf-cube__icon svg { width: 100%; height: 100%; }

.wf-cube__icon--accent {
  background: rgba(59,130,246,0.18);
  border-color: var(--accent);
  opacity: 1;
}

.wf-cube__icon--done {
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.35);
  color: #22C55E;
  opacity: 1;
}

.wf-cube--done {
  border-color: rgba(34,197,94,0.28);
  box-shadow: 0 0 20px rgba(34,197,94,0.1);
}

/* ─── Label ─── */

.wf-cube__label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  line-height: 1.2;
}

/* ─── Numéro ─── */

.wf-cube__num {
  font-family: var(--font-mono);
  font-size: 0.42rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  opacity: 0.45;
}

/* ─── Connecteurs horizontaux cube → nœud ─── */

.wf-cube__connector {
  position: absolute;
  top: 50%;
  height: 1px;
  width: 0;
  background: linear-gradient(to right, var(--accent), transparent);
  opacity: 0.35;
  transition: width 0.4s ease;
}

.wf-cube__connector--right {
  right: -40px;
  transform: translateY(-50%);
  transform-origin: left center;
  background: linear-gradient(to right, transparent, var(--accent));
}

.wf-cube__connector--left {
  left: -40px;
  transform: translateY(-50%);
  transform-origin: right center;
  background: linear-gradient(to left, transparent, var(--accent));
}

.wf-scene.is-live .wf-cube__connector {
  width: 40px;
  transition-delay: 0.7s;
}


/* ─── Badge -87% ─── */

.wf-badge {
  position: absolute;
  bottom: 8px; right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 1.2s, transform 0.5s cubic-bezier(0.16,1,0.3,1) 1.2s;
}

.wf-scene.is-live .wf-badge {
  opacity: 1;
  transform: translateY(0);
}

.wf-badge__val {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}

.wf-badge .mono {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* ─── Responsive ─── */

@media (max-width: 700px) {
  .wf-row { grid-template-columns: 1fr 28px 1fr; }
  .wf-cube { padding: var(--space-md); }
  .wf-cube__icon { width: 28px; height: 28px; padding: 6px; }
}


/* ═══════════════════════════════════════════
   SNAP GRID — section 02
   ═══════════════════════════════════════════ */

.snap-scene {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
  gap: var(--space-xl);
  max-width: 860px;
  margin: 0 auto var(--space-3xl);
  min-height: 200px;
  align-items: center;
}

/* ─── Cases fantômes ─── */

.snap-ghost {
  position: relative;
  height: 160px;
  border: 1.5px dashed rgba(59,130,246,0.22);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59,130,246,0.025);
}

.snap-ghost span {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.12;
  letter-spacing: 0.1em;
}

.snap-ghost--a { grid-column: 1; }
.snap-ghost--b { grid-column: 2; }
.snap-ghost--c { grid-column: 3; }
.snap-ghost--d { grid-column: 4; }

/* ─── Blocs ─── */

.snap-block {
  position: absolute;
  width: calc(25% - var(--space-xl) * 3/4);
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px var(--accent-glow), var(--shadow-card);
  z-index: 10;
  cursor: default;
  transition:
    transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity   0.7s ease,
    box-shadow var(--transition-base);
}

.snap-block:hover {
  box-shadow: 0 0 28px var(--accent-glow), var(--shadow-hover);
}

.snap-block__icon {
  width: 40px; height: 40px;
  padding: 9px;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
}

.snap-block__icon svg  { width: 100%; height: 100%; }

.snap-block__icon--done {
  color: #22C55E;
  border-color: rgba(34,197,94,0.35);
  background: rgba(34,197,94,0.1);
}

.snap-block__letter {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  opacity: 0.5;
}

.snap-block__label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
  padding: 0 var(--space-sm);
}

/* ─── Features row ─── */

.snap-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  max-width: 860px;
  margin: 0 auto;
}

.snap-feat {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.3s;
}

.snap-feat:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.snap-feat__icon {
  width: 32px; height: 32px;
  padding: 7px;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  flex-shrink: 0;
}

.snap-feat__icon svg { width: 100%; height: 100%; }

.snap-feat strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.snap-feat span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── Responsive ─── */

@media (max-width: 860px) {
  .snap-scene { grid-template-columns: repeat(2, 1fr); min-height: 380px; gap: var(--space-lg); }
  .snap-ghost--a { grid-column: 1; grid-row: 1; }
  .snap-ghost--b { grid-column: 2; grid-row: 1; }
  .snap-ghost--c { grid-column: 1; grid-row: 2; }
  .snap-ghost--d { grid-column: 2; grid-row: 2; }
  .snap-arrow { display: none; }
  .snap-features { grid-template-columns: repeat(2, 1fr); }
  .snap-block { width: calc(50% - var(--space-lg) / 2); }
}

@media (max-width: 580px) {
  .snap-features { grid-template-columns: 1fr; }

  /* Hide the complex animated panel on mobile —
     the snap-list below already shows the same 4 steps cleanly */
  .snap-panel { display: none; }
}


/* ═══════════════════════════════════════════
   PANNEAU GLASSMORPHISM — wrap de la snap grid
   ═══════════════════════════════════════════ */

.snap-panel {
  position: relative;
  max-width: 920px;
  margin: 0 auto var(--space-3xl);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.042);
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    0 0 0 1px rgba(59,130,246,0.10),
    0 32px 80px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(255,255,255,0.03);
  overflow: hidden;
}

/* Reflet diagonal */
.snap-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    125deg,
    rgba(255,255,255,0.07) 0%,
    rgba(255,255,255,0.02) 30%,
    transparent 55%
  );
  pointer-events: none;
  z-index: 0;
}

/* ─── Chrome du panneau ─── */

.snap-panel__header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: 11px var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
  z-index: 2;
}

.snap-panel__dots { display: flex; gap: 6px; flex-shrink: 0; }
.snap-panel__dots span { width: 9px; height: 9px; border-radius: 50%; }
.snap-panel__dots span:nth-child(1) { background: rgba(255,95,87,0.6); }
.snap-panel__dots span:nth-child(2) { background: rgba(254,188,46,0.6); }
.snap-panel__dots span:nth-child(3) { background: rgba(40,200,64,0.6); }

.snap-panel__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  justify-content: center;
}

.snap-panel__logo {
  height: 14px;
  width: auto;
  opacity: 0.55;
  filter: brightness(0) invert(1);
}

.snap-panel__logo--light { display: none; }
[data-theme="light"] .snap-panel__logo--dark  { display: none; }
[data-theme="light"] .snap-panel__logo--light { display: block; filter: none; }

.snap-panel__title {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.28);
  white-space: nowrap;
}

[data-theme="light"] .snap-panel__title { color: rgba(0,0,0,0.28); }

.snap-panel__badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.12em;
  color: #86efac;
  flex-shrink: 0;
  white-space: nowrap;
}

.snap-panel__badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #22C55E;
  animation: labelPulse 1.8s ease-in-out infinite;
}

/* ─── Logo filigrane centré ─── */

.snap-panel__watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.snap-panel__watermark img {
  height: 120px;
  width: auto;
  opacity: 0.04;
  filter: brightness(0) invert(1);
}

.snap-panel__watermark .snap-panel__logo--light { display: none; }
[data-theme="light"] .snap-panel__watermark .snap-panel__logo--dark  { display: none; }
[data-theme="light"] .snap-panel__watermark .snap-panel__logo--light { display: block; filter: none; opacity: 0.04; }

/* Snap scene inside panel */
.snap-panel .snap-scene {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: var(--space-2xl);
}

/* Light theme panel */
[data-theme="light"] .snap-panel {
  background: rgba(255,255,255,0.65);
  border-color: rgba(0,0,0,0.07);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.08), 0 32px 80px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}

[data-theme="light"] .snap-panel__header { border-bottom-color: rgba(0,0,0,0.05); }
[data-theme="light"] .snap-panel__badge { color: #15803d; }


/* ═══════════════════════════════════════════
   FLÈCHES — repositionnées en JS
   ═══════════════════════════════════════════ */

.snap-arrow {
  position: absolute;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.snap-scene.is-snapped .snap-arrow { opacity: 1; }
.snap-scene.is-snapped .snap-arrow--ab { transition-delay: 1.1s; }
.snap-scene.is-snapped .snap-arrow--bc { transition-delay: 1.3s; }
.snap-scene.is-snapped .snap-arrow--cd { transition-delay: 1.5s; }

.snap-arrow__line {
  height: 1px;
  background: linear-gradient(to right, rgba(59,130,246,0.5), rgba(59,130,246,0.25));
  flex: 1;
}

.snap-arrow__head {
  width: 0; height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid rgba(59,130,246,0.4);
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════
   LISTE ÉDITORIALE
   ═══════════════════════════════════════════ */

.snap-list {
  max-width: 920px;
  margin: 0 auto var(--space-xl);
  border-top: 1px solid var(--border);
}

.snap-list__row {
  display: grid;
  grid-template-columns: 40px 1fr 1.4fr;
  align-items: baseline;
  gap: var(--space-xl);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.25s;
}

.snap-list__row:hover { background: rgba(59,130,246,0.03); }

.snap-list__num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  opacity: 0.7;
}

.snap-list__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.snap-list__text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (max-width: 700px) {
  .snap-list__row { grid-template-columns: 32px 1fr; }
  .snap-list__text { grid-column: 2; }
}


/* ═══════════════════════════════════════════
   PIPELINE DE DONNÉES — fond section 02
   ═══════════════════════════════════════════ */

.auto-pipeline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Lignes 1 & 3 — marge GAUCHE uniquement */
.auto-pipeline__track--1,
.auto-pipeline__track--3 {
  position: absolute;
  left: 0; width: 24%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(59,130,246,0.09) 30%,
    rgba(59,130,246,0.09) 70%,
    transparent 100%
  );
  overflow: hidden;
}

/* Lignes 2 & 4 — marge DROITE uniquement */
.auto-pipeline__track--2,
.auto-pipeline__track--4 {
  position: absolute;
  right: 0; width: 24%;
  height: 1px;
  background: linear-gradient(
    to left,
    transparent 0%,
    rgba(59,130,246,0.09) 30%,
    rgba(59,130,246,0.09) 70%,
    transparent 100%
  );
  overflow: hidden;
}

/* Positions verticales */
.auto-pipeline__track--1 { top: 22%; }
.auto-pipeline__track--2 { top: 40%; }
.auto-pipeline__track--3 { top: 62%; }
.auto-pipeline__track--4 { top: 78%; }

/* Point glissant */
.auto-pipeline__dot {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(59,130,246,1), 0 0 32px rgba(59,130,246,0.5);
  animation: pipelineSlide linear infinite;
}

/* Traîne lumineuse via ::after */
.auto-pipeline__dot::after {
  content: '';
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  width: 70px; height: 2px;
  background: linear-gradient(to left, rgba(59,130,246,0.7), transparent);
  border-radius: 1px;
}

/* Traîne inversée pour les points qui vont de droite à gauche */
.auto-pipeline__track--2 .auto-pipeline__dot::after,
.auto-pipeline__track--4 .auto-pipeline__dot::after {
  right: auto;
  left: 4px;
  background: linear-gradient(to right, rgba(59,130,246,0.7), transparent);
}

/* Durées différentes par ligne = jamais synchronisés */
.auto-pipeline__track--1 .auto-pipeline__dot {
  animation-duration: 5s;
  animation-delay: 0s;
}
.auto-pipeline__track--2 .auto-pipeline__dot {
  animation-name: pipelineSlideRev;
  animation-duration: 7s;
  animation-delay: -2s;
}
.auto-pipeline__track--3 .auto-pipeline__dot {
  animation-duration: 6s;
  animation-delay: -1s;
}
.auto-pipeline__track--4 .auto-pipeline__dot {
  animation-name: pipelineSlideRev;
  animation-duration: 8s;
  animation-delay: -3s;
}

/* Gauche → droite dans la marge gauche */
@keyframes pipelineSlide {
  0%   { left: -5%;  opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 105%; opacity: 0; }
}

/* Droite → gauche dans la marge droite */
@keyframes pipelineSlideRev {
  0%   { left: 105%; opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: -5%;  opacity: 0; }
}

/* S'assurer que le contenu passe par dessus */
#automation .container { position: relative; z-index: 1; }

/* Light theme — discret sur fond clair */
[data-theme="light"] .auto-pipeline__track--1,
[data-theme="light"] .auto-pipeline__track--2,
[data-theme="light"] .auto-pipeline__track--3,
[data-theme="light"] .auto-pipeline__track--4 {
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(37,99,235,0.22) 20%,
    rgba(37,99,235,0.22) 80%,
    transparent 100%
  );
}

[data-theme="light"] .auto-pipeline__dot {
  background: rgba(37,99,235,0.85);
  box-shadow: 0 0 14px rgba(37,99,235,0.7), 0 0 28px rgba(37,99,235,0.3);
}


/* ═══════════════════════════════════════════
   AI VISUAL — réseau neural + chat glass
   ═══════════════════════════════════════════ */

.ai-visual {
  position: relative;
  width: 100%;
  height: 480px;
}

/* Canvas réseau — fond subtil avec mask vers le chat */
#neuralCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  opacity: 0.45;
  mask-image: radial-gradient(ellipse 90% 80% at 30% 35%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 30% 35%, #000 30%, transparent 75%);
}

/* Chat — plein, glassmorphism premium */
.ai-chat {
  position: absolute;
  inset: 8px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow:
    0 0 0 1px rgba(59,130,246,0.08),
    0 0 60px rgba(59,130,246,0.05),
    0 32px 80px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.16);
  display: flex;
  flex-direction: column;
  animation: chatSlideUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.4s both;
}

.ai-chat::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.02) 35%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Header ─── */
.ai-chat__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
  z-index: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.ai-chat__window-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.ai-chat__window-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
}

.ai-chat__window-dots span:nth-child(1) { background: rgba(255,95,87,0.7); }
.ai-chat__window-dots span:nth-child(2) { background: rgba(254,188,46,0.7); }
.ai-chat__window-dots span:nth-child(3) { background: rgba(40,200,64,0.7); }

.ai-chat__header-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
}

.ai-chat__header-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
  flex-shrink: 0;
}

.ai-chat__status {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  color: #86efac;
  font-family: var(--font-mono);
  font-size: 0.46rem;
  letter-spacing: 0.1em;
}

.ai-chat__status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #22C55E;
  animation: labelPulse 1.8s ease-in-out infinite;
}

/* ─── Body ─── */
.ai-chat__body {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Timestamp */
.ai-chat__timestamp {
  text-align: center;
  font-size: 0.46rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.2);
  padding: 4px 0 6px;
  flex-shrink: 0;
}

/* ─── Messages ─── */
.ai-chat__msg {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity  0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-chat__msg--user { justify-content: flex-end; }
.ai-chat__msg--hidden { display: none; }

.ai-chat__msg--entering {
  opacity: 0;
  transform: translateY(20px);
}

.ai-chat__msg--leaving {
  opacity: 0;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.4, 0, 1, 1),
              opacity  0.3s cubic-bezier(0.4, 0, 1, 1);
}

/* ─── Bubbles ─── */
.ai-chat__bubble {
  max-width: 82%;
  padding: 8px 12px 6px;
  border-radius: 16px;
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
  position: relative;
}

.ai-chat__bubble-text { display: inline; }

.ai-chat__bubble-time {
  display: block;
  font-size: 0.4rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.25);
  text-align: right;
  margin-top: 3px;
}

.ai-chat__msg--user .ai-chat__bubble {
  background: var(--accent);
  border-radius: 16px 16px 4px 16px;
  color: #fff;
}

.ai-chat__msg--user .ai-chat__bubble-time {
  color: rgba(255,255,255,0.45);
}

.ai-chat__msg--ai .ai-chat__bubble {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px 16px 16px 4px;
}

.ai-chat__check { color: #22C55E; margin-right: 3px; }

/* ─── Avatar ─── */
.ai-chat__avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.ai-chat__avatar svg {
  width: 11px; height: 11px;
}

/* ─── Typing dots ─── */
.ai-chat__bubble--typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
}

.ai-chat__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  animation: typingBounce 1.2s ease-in-out infinite;
}

.ai-chat__dot:nth-child(2) { animation-delay: 0.2s; }
.ai-chat__dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-4px); opacity: 1; }
}

/* ─── Input bar ─── */
.ai-chat__input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.ai-chat__input-field {
  flex: 1;
  position: relative;
  padding: 8px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.85);
  min-height: 18px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ai-chat__input-placeholder {
  color: rgba(255,255,255,0.2);
  font-size: 0.65rem;
  pointer-events: none;
  white-space: nowrap;
}

.ai-chat__input-text {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
}

.ai-chat__input-cursor {
  display: none;
  width: 1.5px;
  height: 14px;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
  animation: cursorBlink 0.8s steps(1) infinite;
}

.ai-chat__input-cursor--active {
  display: inline-block;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.ai-chat__input-send {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  cursor: default;
  flex-shrink: 0;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.ai-chat__input-send svg {
  width: 13px; height: 13px;
}

.ai-chat__input-send--active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(59,130,246,0.4);
  transform: scale(1.08);
}

.ai-chat__input-send--flash {
  transform: scale(0.88);
  transition: transform 0.12s ease;
}

/* ─── Light theme ─── */
[data-theme="light"] .ai-chat {
  background: rgba(255,255,255,0.78);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.06), 0 0 50px rgba(59,130,246,0.04), 0 32px 80px rgba(0,0,0,0.10), inset 0 1px 0 rgba(255,255,255,0.95);
}

[data-theme="light"] .ai-chat__header-center { color: rgba(0,0,0,0.3); }
[data-theme="light"] .ai-chat__header { border-bottom-color: rgba(0,0,0,0.05); }
[data-theme="light"] .ai-chat__timestamp { color: rgba(0,0,0,0.18); }
[data-theme="light"] .ai-chat__bubble { color: rgba(0,0,0,0.8); }
[data-theme="light"] .ai-chat__bubble-time { color: rgba(0,0,0,0.2); }
[data-theme="light"] .ai-chat__msg--user .ai-chat__bubble-time { color: rgba(255,255,255,0.5); }
[data-theme="light"] .ai-chat__msg--ai .ai-chat__bubble { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .ai-chat__input { background: rgba(0,0,0,0.02); border-top-color: rgba(0,0,0,0.05); }
[data-theme="light"] .ai-chat__input-field { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.07); }
[data-theme="light"] .ai-chat__input-placeholder { color: rgba(0,0,0,0.25); }
[data-theme="light"] .ai-chat__input-text { color: rgba(0,0,0,0.85); }
[data-theme="light"] .ai-chat__input-cursor { background: var(--accent); }


/* ═══════════════════════════════════════════
   SECTION DIVIDERS
   ═══════════════════════════════════════════ */

.sp-section::after,
.sp-section--alt::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: min(80%, 600px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.2) 30%, rgba(59,130,246,0.2) 70%, transparent);
  pointer-events: none;
}

[data-theme="light"] .sp-section::after,
[data-theme="light"] .sp-section--alt::after {
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.15) 30%, rgba(37,99,235,0.15) 70%, transparent);
}


/* ═══════════════════════════════════════════
   DEPLOY CURSOR — section 01
   ═══════════════════════════════════════════ */

.deploy-cursor {
  position: absolute;
  z-index: 20;
  width: 16px; height: 16px;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  opacity: 0;
  animation: cursorMove 6s ease-in-out 2s infinite;
  pointer-events: none;
}

.deploy-cursor svg { width: 100%; height: 100%; }

@keyframes cursorMove {
  0%   { top: 55%; left: 35%; opacity: 0; }
  8%   { opacity: 1; }
  25%  { top: 52%; left: 42%; }
  35%  { top: 52%; left: 42%; transform: scale(0.85); }
  40%  { transform: scale(1); }
  55%  { top: 38%; left: 55%; }
  70%  { top: 60%; left: 30%; }
  90%  { opacity: 1; }
  100% { top: 55%; left: 35%; opacity: 0; }
}

[data-theme="light"] .deploy-cursor { color: #1e293b; }


/* ═══════════════════════════════════════════
   WORKFLOW SPINE PULSE — section 02
   ═══════════════════════════════════════════ */

.wf-spine::after {
  content: '';
  position: absolute;
  left: 0;
  width: 3px;
  height: 20px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(59,130,246,0.8), 0 0 28px rgba(59,130,246,0.4);
  opacity: 0;
  animation: spinePulse 3.5s ease-in-out 2s infinite;
  transform: translateX(-1px);
}

@keyframes spinePulse {
  0%   { top: 0%; opacity: 0; }
  10%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}


/* ═══════════════════════════════════════════
   SNAP BLOCK TOOLTIPS — section 02
   ═══════════════════════════════════════════ */

.snap-block::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16,1,0.3,1);
  z-index: 20;
}

.snap-block:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ═══════════════════════════════════════════
   STATS COUNTER BAND
   ═══════════════════════════════════════════ */

.stats-band {
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.stats-band__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}

.stats-band__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 140px;
}

.stats-band__val {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}

.stats-band__suffix {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--accent);
  opacity: 0.6;
  line-height: 1;
}

.stats-band__label {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stats-band__sep {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--border) 30%, var(--border) 70%, transparent);
  flex-shrink: 0;
}

@media (max-width: 700px) {
  /* Clean 2×2 grid instead of random flex wrap */
  .stats-band__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
  .stats-band__sep  { display: none; }
  .stats-band__item { min-width: auto; }
}


/* ═══════════════════════════════════════════
   SECTION 03 — AI GLOW FEATURES
   ═══════════════════════════════════════════ */

#ai .auto-section__feature {
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s, background 0.3s;
}

#ai .auto-section__feature:hover {
  background: rgba(59,130,246,0.03);
  box-shadow: -3px 0 20px var(--accent-glow), 0 0 30px rgba(59,130,246,0.04);
}

#ai .auto-section__feature-icon {
  transition: box-shadow 0.3s, opacity 0.3s;
}

#ai .auto-section__feature:hover .auto-section__feature-icon {
  opacity: 1;
  box-shadow: 0 0 16px rgba(59,130,246,0.3);
}


/* ═══════════════════════════════════════════
   MIC ICON — Input bar
   ═══════════════════════════════════════════ */

.ai-chat__input-mic {
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  flex-shrink: 0;
  position: relative;
}

.ai-chat__input-mic svg { width: 14px; height: 14px; }

.ai-chat__input-mic::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1.5px solid rgba(59,130,246,0.25);
  animation: micPulse 2.5s ease-in-out infinite;
}

@keyframes micPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50%      { transform: scale(1.15); opacity: 0.6; }
}

[data-theme="light"] .ai-chat__input-mic { color: rgba(0,0,0,0.2); }
[data-theme="light"] .ai-chat__input-mic::after { border-color: rgba(37,99,235,0.2); }


/* ═══════════════════════════════════════════
   CTA PARALLAX GLOWS
   ═══════════════════════════════════════════ */

.sp-cta-section--hero .sp-cta-hero__bg-glow {
  transition: transform 0.5s ease-out;
  will-change: transform;
}


/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE — Chat & sections
   ═══════════════════════════════════════════ */

@media (max-width: 960px) {
  .ai-visual { height: 420px; }
  #neuralCanvas { display: none; }
}

@media (max-width: 700px) {
  .ai-visual { height: 380px; }
  .ai-chat__bubble { font-size: 0.66rem; }
  .ai-chat__input-field { font-size: 0.62rem; }
  .ai-chat__header-center { font-size: 0.46rem; }
  .ai-chat__avatar { width: 18px; height: 18px; }
  .ai-chat__avatar svg { width: 9px; height: 9px; }

  .deploy-cursor { display: none; }
}


/* ─── Fix pipeline — mask centre ─── */

.auto-pipeline__track {
  mask-image: linear-gradient(
    to right,
    black 0%,
    black 22%,
    transparent 35%,
    transparent 65%,
    black 78%,
    black 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    black 0%,
    black 22%,
    transparent 35%,
    transparent 65%,
    black 78%,
    black 100%
  );
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}


/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE FIXES
   ═══════════════════════════════════════════ */

/* ─── iPad / Tablet (<= 820px) ─── */

@media (max-width: 820px) {
  .auto-hero__inner {
    padding: 0 var(--space-xl);
  }
}

/* ─── Phone (<= 600px) ─── */

@media (max-width: 600px) {
  .auto-hero__inner {
    padding: 0 var(--space-lg);
    gap: var(--space-lg);
  }

  .auto-hero__title {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

  .auto-hero__subtitle {
    font-size: 0.9rem;
  }

  .auto-hero__chip {
    font-size: 0.58rem;
    padding: 6px 12px;
  }

  .auto-hero__rotating-word {
    font-size: 1rem;
  }

  .auto-section__grid {
    gap: var(--space-xl);
  }

  .auto-section__title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .auto-section__text {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .auto-section__feature {
    padding: var(--space-md);
    gap: var(--space-md);
  }

  .auto-section__feature-icon {
    width: 30px;
    height: 30px;
    padding: 6px;
  }

  .auto-section__feature strong { font-size: 0.85rem; }
  .auto-section__feature span { font-size: 0.78rem; }

  .auto-section__placeholder {
    min-height: 220px;
  }

  .auto-section__ph-icon {
    width: 48px;
    height: 48px;
  }

  /* ── Workflow cubes ── */
  .wf-row { grid-template-columns: 1fr 24px 1fr; min-height: 80px; }
  .wf-cube { padding: var(--space-sm); gap: 4px; }
  .wf-cube__icon { width: 24px; height: 24px; padding: 5px; }
  .wf-cube__label { font-size: 0.5rem; }
  .wf-cube__desc { display: none; }
  .wf-badge__val { font-size: 1.4rem; }

  /* ── Snap panel & list (580px handles grid→flex, this just fine-tunes) ── */
  .snap-feat { padding: var(--space-md); }
  .snap-feat strong { font-size: 0.75rem; }
  .snap-feat span { font-size: 0.68rem; }
  .snap-list__row { gap: var(--space-md); padding: var(--space-md) 0; }
  .snap-list__title { font-size: 0.85rem; }
  .snap-list__text { font-size: 0.78rem; }

  .ai-visual {
    height: 340px;
  }

  .ai-chat__body {
    padding: 10px 12px;
  }

  .ai-chat__bubble {
    max-width: 88%;
    font-size: 0.62rem;
    padding: 6px 10px 5px;
  }

  .stats-band {
    padding: var(--space-2xl) 0;
  }

  .stats-band__item {
    min-width: auto;
  }

  .auto-pipeline { display: none; }
}

/* ─── Small phone (<= 400px) ─── */

@media (max-width: 400px) {
  .auto-hero__inner { padding: 0 var(--space-md); }
  .auto-hero__title { font-size: clamp(1.8rem, 11vw, 2.8rem); }
  .auto-hero__chip { font-size: 0.52rem; padding: 5px 10px; }

  .ai-visual { height: 300px; }
  .ai-chat__bubble { font-size: 0.58rem; }
  .ai-chat__input-field { font-size: 0.56rem; }

  /* Deploy phone — slightly smaller on tiny screens */
  .deploy-phone { width: 88px; }
  .deploy-phone__body { width: 88px; height: 168px; border-radius: 20px; }
  .deploy-phone__badge span { font-size: 0.28rem; }
}