:root {
  --primary: #0c8322;
  --issa: #fa7908;
  --secondary: #0d6efd;
  --accent: #41c130;
  --dark: #212529;
  --light: #f8f9fa;
  --grey: #6c757d;
  --font-main: 'Roboto', Arial, sans-serif;
  --font-heading: 'Montserrat', Arial, sans-serif;
  --transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 10px 30px rgba(16, 24, 32, 0.06);
  --shadow-lg: 0 24px 48px rgba(16, 24, 32, 0.12);
  --border-radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: var(--light);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1300px; /* slightly wider for hero */
  margin: 0 auto;
  padding: 0 6px; /* tighter inner gutters */
}

.section {
  padding: 40px 0; /* tighter vertical spacing */
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  margin-bottom: 1rem; /* reduce gap to subtitle */
  text-align: center;
  color: var(--primary);
  letter-spacing: 0.6px;
}

.section-subtitle {
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 1.6rem; /* tighter spacing below subtitle */
  color: var(--grey);
}

.btn {
  display: inline-block;
  padding: 13px 34px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::after {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  font-weight: bold;
  letter-spacing: 2px;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  margin-right: 12px;
  filter: drop-shadow(0 2px 4px rgba(254, 132, 2, 0.7));
}

.nav-menu ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--dark);
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 4px;
  transition: var(--transition);
  text-decoration: none;
}

.nav-link::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--primary);
  transition: var(--transition);
  position: absolute;
  left: 0;
  bottom: 0;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* Hamburger icon styling and animation */
.menu-toggle {
  display: none; /* shown only under mobile media query */
  width: 42px;
  height: 36px;
  padding: 6px;
  align-items: center;
  justify-content: center;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle .hamburger,
.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease, background 0.28s ease;
  position: relative;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu-toggle .hamburger::before {
  top: -7px;
}

.menu-toggle .hamburger::after {
  top: 7px;
}

/* Open state -> morph into a cross */
.menu-toggle.open .hamburger {
  background: transparent;
}
.menu-toggle.open .hamburger::before {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open .hamburger::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Fix: ensure hamburger bars are visible and colored on mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    z-index: 1600 !important;
    width: 48px !important;
    height: 48px !important;
    padding: 6px !important;
  }

  .menu-toggle .hamburger,
  .menu-toggle .hamburger::before,
  .menu-toggle .hamburger::after {
    display: block !important;
    width: 28px !important;
    height: 3px !important;
    background-color: #2e8b56 !important; /* green */
    background: #2e8b56 !important;
    border-radius: 3px !important;
    content: '' !important;
  }

  .menu-toggle .hamburger {
    position: relative !important;
  }
  .menu-toggle .hamburger::before,
  .menu-toggle .hamburger::after {
    position: absolute !important;
    left: 0 !important;
  }
  .menu-toggle .hamburger::before {
    top: -9px !important;
  }
  .menu-toggle .hamburger::after {
    top: 9px !important;
  }

  /* If an icon font or color property was overriding, force opacity and color neutrality */
  .menu-toggle,
  .menu-toggle * {
    color: inherit !important;
    opacity: 1 !important;
  }
}

/* Hero Section */
.hero {
  background: var(--issa);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 90px 0 60px;
}

/* Hero Section background */
.hero {
  background: url('img/oil.webp') no-repeat center center;
  background-size: cover;
  position: relative;
  /* Ajoute une superposition pour réduire l'opacité */
  animation: heroBgAnim 25s ease-in-out infinite alternate;
}

@keyframes heroBgAnim {
  0% {
    background-position: center center;
    filter: brightness(1) saturate(1);
  }
  50% {
    background-position: center 40px;
    filter: brightness(1.08) saturate(1.15);
  }
  100% {
    background-position: center center;
    filter: brightness(1) saturate(1);
  }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Dégradé transparent (foncé en haut, plus léger en bas) */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.32) 40%,
    rgba(0, 0, 0, 0.22) 100%
  );
  z-index: 0; /* sous les icônes flottantes et le contenu */
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url('https://www.transparenttextures.com/patterns/diamond-upholstery.png');
  opacity: 0.04; /* texture très légère au-dessus du bg, sous le contenu */
  z-index: 0;
  pointer-events: none;
}

/* ===========================
   Hero Highlights
   =========================== */
.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.highlight-card {
  background: rgba(9, 20, 15, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 22px 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.45s ease;
  text-align: center;
}

.highlight-card:hover,
.highlight-card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
}

.highlight-icon {
  font-size: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 12px;
}

.highlight-metric {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.highlight-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 6px;
}

.fuel-bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0; /* behind content but above background gradient */
  pointer-events: none;
}
.fuel-bubbles .bubble {
  position: absolute;
  bottom: -120px;
  width: 38px;
  height: 38px;
  background: radial-gradient(
    circle at 30% 30%,
    #ffe0b3,
    #ac8760 65%,
    #9b8a7c 100%
  );
  border-radius: 50%;
  opacity: 0.38;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
  animation: rise 18s linear infinite;
  will-change: transform, opacity;
  mix-blend-mode: screen;
}
.fuel-bubbles .bubble::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 8px;
  width: 14px;
  height: 14px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.1)
  );
  border-radius: 50%;
  filter: blur(1px);
}
@keyframes rise {
  0% {
    transform: translateY(0) translateX(0) scale(0.6);
    opacity: 0;
  }
  5% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-120vh) translateX(40px) scale(1);
    opacity: 0;
  }
}

/* Individual bubble tuning (position, size, delay, speed) */
.bubble.b1 {
  left: 8%;
  animation-duration: 22s;
  animation-delay: 0s;
}
.bubble.b2 {
  left: 18%;
  width: 26px;
  height: 26px;
  animation-duration: 17s;
  animation-delay: 3s;
}
.bubble.b3 {
  left: 30%;
  width: 44px;
  height: 44px;
  animation-duration: 25s;
  animation-delay: 6s;
}
.bubble.b4 {
  left: 45%;
  width: 22px;
  height: 22px;
  animation-duration: 16s;
  animation-delay: 2s;
}
.bubble.b5 {
  left: 57%;
  width: 52px;
  height: 52px;
  animation-duration: 27s;
  animation-delay: 4s;
}
.bubble.b6 {
  left: 68%;
  width: 34px;
  height: 34px;
  animation-duration: 19s;
  animation-delay: 1s;
}
.bubble.b7 {
  left: 78%;
  width: 28px;
  height: 28px;
  animation-duration: 21s;
  animation-delay: 8s;
}
.bubble.b8 {
  left: 90%;
  width: 40px;
  height: 40px;
  animation-duration: 24s;
  animation-delay: 10s;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .fuel-bubbles .bubble {
    animation: none;
    opacity: 0.15;
  }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}
.hero-content h1,
.hero-content p {
  text-shadow: 6px 2px 4px rgb(0, 0, 0);
}

.hero-title {
  font-size: 3.7rem;
  margin-bottom: 22px;
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 1.6rem;
  margin-bottom: 44px;
  opacity: 0.95;
}

/* Floating Icons */
.floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-icon {
  --float-size: 72px;
  --float-duration: 18s;
  --float-distance: 32px;
  position: absolute;
  left: var(--icon-left, 50%);
  top: var(--icon-top, 50%);
  width: var(--float-size);
  height: var(--float-size);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.8s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.floating-icon.is-visible {
  opacity: 0.26;
  transform: translate(-50%, -50%)
    translate3d(0, calc(var(--float-distance) * -0.12), 0);
}

.floating-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.25));
  animation: iconFloat var(--float-duration) ease-in-out infinite alternate;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.floating-icon--xl {
  --float-size: 150px;
  --float-distance: 46px;
}

.floating-icon--lg {
  --float-size: 108px;
  --float-distance: 38px;
}

.floating-icon--md {
  --float-size: 72px;
  --float-distance: 32px;
}

.floating-icon--sm {
  --float-size: 54px;
  --float-distance: 24px;
}

@keyframes iconFloat {
  0% {
    transform: translateY(calc(var(--float-distance) * -0.4));
  }
  100% {
    transform: translateY(calc(var(--float-distance) * 0.4));
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-icon,
  .floating-icon img {
    animation: none !important;
    transition: none !important;
    transform: translate(-50%, -50%) !important;
  }
  .floating-icon {
    opacity: 0.18;
  }
}

/* Mission Section */
/* New mission layout to match mock */
.mission-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr; /* give more room to the heading */
  gap: 32px;
  align-items: center;
  background: linear-gradient(90deg, #edf7ef 60%, #f1f6ff 60%);
  border-radius: 24px;
  padding: 56px 44px; /* more breathing room */
  overflow: hidden;
  z-index: 1; /* base layer */
}

.mission-left {
  padding: 8px 8px 8px 24px;
}

.mission-badge {
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}
.mission-badge .eco {
  color: #2e8b56;
}
.mission-badge .tadji {
  color: #e52828;
}

.mission-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  line-height: 1.18;
  color: #111827;
  margin-bottom: 18px;
  font-weight: 800;
}

.mission-lead {
  color: #6b7280;
  font-size: 1.05rem;
}

.mission-right {
  display: flex;
  justify-content: center;
}
.mission-figure {
  position: relative;
  width: min(440px, 94%);
  isolation: isolate;
}
.mission-figure img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 30px rgba(16, 24, 32, 0.18));
  position: relative;
  z-index: 2; /* above shapes */
}
.mission-figure .shape {
  position: relative;
  border-radius: 50%;
  opacity: 0.8;
  filter: blur(0.2px);
  z-index: -1; /* force behind image within hero */
  pointer-events: none;
}
.mission-figure .s1 {
  width: 120px;
  height: 120px;
  left: -16px;
  top: 12%;
  background: #ff6b3d;
  border-radius: 28px;
}
.mission-figure .s2 {
  width: 260px;
  height: 260px;
  right: -30px;
  top: -10%;
  background: #9ca3af; /* soft grey like the mock */
  border-radius: 40px;
}
.mission-figure .s3 {
  width: 90px;
  height: 90px;
  right: 19px;
  bottom: -17px;
  background: #2563eb;
  border-radius: 24px;
}

.mission-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: -64px; /* stronger overlap */
  position: relative;
  z-index: 20; /* above mission-hero and orbs */
  max-width: 1120px; /* keep cards aligned and not too wide */
  margin-left: auto;
  margin-right: auto;
}

.mission-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(16, 24, 32, 0.1);
  padding: 24px 22px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mission-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(16, 24, 32, 0.12);
}
.mission-card-icon {
  font-size: 28px;
  margin-bottom: 12px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px #eef2f7;
  margin-left: auto;
  margin-right: auto;
}
.mission-card-number {
  font-weight: 800;
  font-size: 1.55rem;
  color: #111827;
  letter-spacing: 0.4px;
}
.mission-card-underline {
  width: 60px;
  height: 3px;
  background: #e54848;
  border-radius: 2px;
  margin: 12px 0 12px;
}
.mission-card-text {
  color: #6b7280;
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Decorative orbs for depth */
.mission-orb {
  position: absolute;
  border-radius: 50%;
  background: #e5e7eb;
  opacity: 0.6;
  filter: blur(0.4px);
  z-index: 0; /* behind hero and cards */
}
.mission-orb.o1 {
  width: 28px;
  height: 28px;
  right: 18%;
  top: calc(100% - 18px);
}
.mission-orb.o2 {
  width: 46px;
  height: 46px;
  right: 6%;
  top: calc(100% - 32px);
  opacity: 0.5;
}

/* Technology Section */
.tech-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tech-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  margin-top: 18px;
  list-style: none;
}

.tech-step {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 22px;
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  text-align: left;
}
.mission-content.align-center {
  align-items: center;
}

/* Mission section background (arriere image) with overlay for readability */
/* Section Mission simple background; internal panel handles the two-tone */
.section.mission {
  position: relative;
  background: transparent;
}
.section.mission::before,
.section.mission::after {
  content: none;
}

@media (max-width: 992px) {
  .mission-hero {
    grid-template-columns: 1fr;
    padding: 36px 22px;
  }
  .mission-right {
    order: -1;
  }
  .mission-cards {
    grid-template-columns: 1fr;
    margin-top: 18px;
    max-width: 680px;
  }
}

/* On larger screens keep cards in 3 columns (handled above) */

.tech-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.tech-step:focus-within {
  outline: 3px solid rgba(14, 110, 253, 0.12);
}

.tech-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  /* background: var(--primary); */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 12px;
  margin-left: auto;
  margin-right: auto;
}

.tech-step-title {
  font-family: var();
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.tech-step-desc {
  color: var(--grey);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Hide legacy diagram but show on small screens */
.tech-diagram {
  display: none;
  margin-bottom: 44px;
  max-width: 900px;
  width: 100%;
  background: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.process-step {
  position: absolute;
  width: 170px;
  height: 110px;
  background: #f8faf8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.tech-advantages {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  width: 100%;
  margin-top: 40px;
}

.advantage-card {
  flex: 1;
  min-width: 260px;
  background: linear-gradient(90deg, #fff, #eaf6f6 80%);
  padding: 32px 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.advantage-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 12px 36px rgba(254, 132, 2, 0.12);
}

.advantage-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.advantage-title {
  margin-bottom: 12px;
  font-size: 1.4rem;
  color: var(--dark);
}

/* Solutions Section */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.solution-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 24, 32, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  height: 100%;
  border: 1px solid rgba(16, 24, 32, 0.06);
}
.solution-card.featured {
  position: relative;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.6),
      rgba(255, 255, 255, 0.35)
    ),
    linear-gradient(135deg, #ff7ab6 0%, #7b61ff 50%, #4cc3ff 100%);
  box-shadow: 0 18px 36px rgba(123, 97, 255, 0.18),
    0 36px 72px rgba(123, 97, 255, 0.2);
  border: none;
  overflow: hidden;
}
.solution-card.featured .solution-content {
  background: rgba(255, 255, 255, 0.9);
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(16, 24, 32, 0.12);
}

.solution-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
/* Solution image fill + overlay label */
.solution-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.solution-label {
  position: relative;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
/* keep optional background-color accents if desired */
.solution-img.img-zones {
  background-color: #2f855a;
}
.solution-img.img-industrie {
  background-color: #4c51bf;
}
.solution-img.img-distribution {
  background-color: #2b6cb0;
}

.solution-content {
  padding: 22px 22px 24px;
}

.solution-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--dark);
  font-family: var(--font-heading);
}

@media (max-width: 992px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .solution-img {
    height: 180px;
    font-size: 1.1rem;
  }
}

/* Solutions – mobile horizontal scroll */
@media (max-width: 768px) {
  .solutions-grid {
    display: flex; /* override grid for carousel behavior */
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0 8px 12px; /* breathing room for scrollbar */
  }
  .solutions-grid::-webkit-scrollbar {
    height: 8px;
  }
  .solutions-grid::-webkit-scrollbar-track {
    background: transparent;
  }
  .solutions-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 4px;
  }
  .solution-card {
    flex: 0 0 70%; /* smaller cards on mobile */
    scroll-snap-align: start;
  }
  .solution-img {
    height: 160px; /* shorter images on mobile */
  }
}

@media (max-width: 480px) {
  .solution-card {
    flex: 0 0 65%; /* tighter on small phones */
  }
  .solution-img {
    height: 140px; /* further reduce image height */
  }
}

/* Impact Section */
.section.impact {
  position: relative;
  overflow: hidden;
}
.section.impact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/Arriere_plan.gif') center / cover no-repeat;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}
.section.impact > .container {
  position: relative;
  z-index: 1;
}

.impact-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  gap: 20px;
  flex-wrap: wrap;
}

.impact-tab {
  padding: 12px 20px;
  border-radius: 25px;
  background-color: #f8f9fa;
  color: var(--dark);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.impact-tab:hover,
.impact-tab.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--accent);
}

.impact-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.impact-panel {
  display: none;
}

.impact-panel.active {
  display: block;
  animation: fadeIn 1s;
}

.impact-panel h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--dark);
  font-family: var(--font-heading);
}

.impact-panel ul {
  list-style: none;
  padding-left: 0;
}

.impact-panel ul li {
  font-size: 1.1rem;
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  color: var(--dark);
}

.impact-panel ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Team Section */
.team-grid {
  display: flex;
  gap: 20px;
  justify-content: flex-start; /* start from left */
  align-items: stretch;
  flex-wrap: nowrap; /* single line */
  overflow-x: auto; /* horizontal scroll if needed */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px; /* space for scrollbar */
  margin: 0 auto;
  max-width: 100%;
}
/* ==========================
   Team Grid – Responsive
   ========================== */
@media (max-width: 768px) {
  .team-grid {
    gap: 12px;
    padding-bottom: 6px; /* small space for scrollbar */
  }
  .team-card {
    flex: 0 0 auto;
    width: 200px; /* narrower cards on tablets/phones */
    border-radius: 12px;
  }
  .team-img-container {
    aspect-ratio: 1 / 1; /* Instagram-like square */
    height: auto;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    overflow: hidden;
  }
  .team-meta {
    padding: 12px 14px;
  }
  .team-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
  }
  .team-role {
    font-size: 0.85rem;
    color: #6c757d;
  }
}

@media (max-width: 480px) {
  .team-grid {
    gap: 10px;
  }
  .team-card {
    width: 170px; /* compact cards on small phones */
  }
  .team-img-container {
    aspect-ratio: 1 / 1; /* keep square */
    height: auto;
  }
  .team-meta {
    padding: 10px 12px;
  }
  .team-name {
    font-size: 0.9rem;
  }
  .team-role {
    font-size: 0.8rem;
  }
}

.team-card {
  background: #08da1323;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  width: 260px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  flex: 0 0 auto; /* prevent shrinking; stay in one row */
}

/* Optional: hide scrollbar for WebKit for cleaner look */
.team-grid::-webkit-scrollbar {
  height: 8px;
}
.team-grid::-webkit-scrollbar-track {
  background: transparent;
}
.team-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}

.team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) scale(1.03);
}

.team-img-container {
  position: relative;
  width: 100%;
  height: 290px;
  overflow: hidden;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px 10px 0 0;
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.team-social {
  display: flex;
  gap: 16px;
}

.team-icon {
  background: var(--accent);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
}

.team-icon img {
  width: 22px;
  height: 22px;
}

.team-icon:hover {
  background: var(--primary);
  transform: scale(1.1);
}

.team-card-info {
  padding: 18px;
  text-align: left;
}

.team-card-info .name {
  font-weight: 600;
  font-size: 1.12rem;
  margin-bottom: 4px;
  color: var(--dark);
}

.team-card-info .role {
  color: var(--grey);
  font-size: 0.98rem;
}

/* New semantic text block for team cards */
.team-meta {
  padding: 18px;
  text-align: left;
}
.team-name {
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 4px;
  color: var(--dark);
}
.team-role {
  color: var(--grey);
  font-size: 1rem;
}

/* Contact Section */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.contact-form {
  flex: 1;
  min-width: 320px;
  background: #ffffff;
  padding: 36px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-family: var(--font-heading);
}

.form-control {
  width: 100%;
  padding: 13px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1.05rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(254, 132, 2, 0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.contact-info {
  flex: 1;
  min-width: 320px;
}

.info-item {
  display: flex;
  margin-bottom: 22px;
  align-items: center;
}

.info-icon {
  width: 54px;
  height: 54px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 18px;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(254, 132, 2, 0.12);
}

.info-content h4 {
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.map-container {
  height: 260px;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-top: 28px;
}

/* Footer */
footer {
  background: var(--dark);
  color: #fff;
  padding: 70px 0 32px;
  margin-top: 40px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 44px;
  margin-bottom: 38px;
}

.footer-col {
  flex: 1;
  min-width: 220px;
}

.footer-col h3 {
  font-size: 1.35rem;
  margin-bottom: 18px;
  color: #fff;
  font-family: var(--font-heading);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #adb5bd;
  transition: var(--transition);
  font-size: 1.05rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.3rem;
  color: #fff;
  text-decoration: none;
}

.social-link img {
  width: 22px;
  height: 22px;
  display: block;
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-4px) scale(1.1);
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #adb5bd;
  font-size: 0.98rem;
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Improved Responsive Styles */
@media (max-width: 992px) {
  .section-title {
    font-size: 2.1rem;
  }

  .hero-title {
    font-size: 2.7rem;
  }

  .tech-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Ensure mission section stacks cleanly on medium/small screens */
@media (max-width: 900px) {
  .mission-content {
    justify-content: center;
    align-items: stretch;
    gap: 20px;
  }
  .mission-text,
  .mission-stats {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .text-box {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero {
    min-height: auto;
    padding: 70px 0 40px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  /* stronger entrance with scale and fade */
  .hero-title.animate__animated.animate__fadeInDown {
    animation-name: heroFadeScaleDown;
    animation-duration: 900ms;
    animation-fill-mode: both;
  }

  @keyframes heroFadeScaleDown {
    0% {
      opacity: 0;
      transform: translateY(-30px) scale(0.96);
    }
    60% {
      opacity: 1;
      transform: translateY(6px) scale(1.02);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  /* Show mobile menu button */
  .menu-toggle {
    display: block;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-menu ul {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .nav-link {
    display: block;
    padding: 10px 0;
  }

  /* Make tech diagram more responsive for small screens */
  .tech-diagram {
    display: none;
  }

  .footer-container {
    gap: 30px;
  }
}

/* Mobile / responsive menu (hamburger) */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    background: transparent;
    border: none;
    font-size: 1.9rem;
    cursor: pointer;
    color: var(--dark);
    padding: 6px 10px;
  }

  /* Hide header actions (CTA) on small screens to save space */
  .header-actions {
    display: none;
  }

  /* Make nav menu a slide-in panel from the right */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    max-width: 85%;
    background: #ffffff;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 1500;
    padding-top: 90px; /* leave space for header */
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .nav-menu li {
    border-bottom: 1px solid #f3f4f6;
  }

  .nav-link {
    display: block;
    padding: 16px 22px;
    font-size: 1.15rem;
    color: var(--dark);
  }

  /* Backdrop to dim page when menu open */
  .menu-backdrop {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    background: rgba(0, 0, 0, 0.45);
    z-index: 1400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .menu-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
  }

  /* Slightly reduce hero padding on small screens to keep things visible */
  .hero {
    padding: 100px 0 60px;
  }

  /* Make header layout more compact */
  .header-container {
    gap: 12px;
    padding: 12px 0;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .tech-steps {
    grid-template-columns: 1fr;
  }

  .team-card {
    width: 100%;
    max-width: 280px;
  }

  .stat-number {
    font-size: 2rem;
    min-width: 80px;
  }

  .advantage-card,
  .contact-form,
  .contact-info {
    min-width: 100%;
  }
}

/* Team Section mobile optimisé */
@media (max-width: 768px) {
  .team-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 12px;
  }
  .team-card {
    flex: 0 0 80%; /* chaque carte prend 80% de la largeur d'écran */
    scroll-snap-align: start;
    margin: 0 auto;
  }
}

.main-header {
  background: transparent;
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

/* Active state when page scrolled (JS already sets styles inline) */
.main-header.is-scrolled {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 32px -12px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  min-height: 90px; /* base height */
  transition: min-height 0.35s ease;
}
.main-header.is-scrolled .header-container {
  min-height: 64px; /* shrinked */
}

/* Shrink logo */
.logo-img {
  transition: transform 0.35s ease, filter 0.35s ease;
}
.main-header.is-scrolled .logo-img {
  transform: scale(0.78);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25));
}

/* Progress bar at top */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 6px;
  width: 100%;
  background: rgba(3, 12, 24, 0.28);
  z-index: 999;
  pointer-events: none;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(calc(var(--scroll-progress, 0) / 100));
  background: linear-gradient(90deg, #41c130 0%, #fe8402 100%);
  transition: transform 0.18s ease-out;
}

/* Active nav link (scrollspy) enhancement */
.nav-link.active {
  color: var(--primary);
}
.nav-link.active::after {
  width: 100%;
}

.logo-text {
  letter-spacing: 1px;
}
.nav-menu ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  color: #212529;
  text-decoration: none;
  font-size: 1.08rem;
  padding: 8px 0;
  transition: color 0.2s;
  position: relative;
}
.nav-link:hover,
.nav-link:focus {
  color: #41c130;
}
.nav-link::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: #41c130;
  transition: width 0.3s;
  position: absolute;
  left: 0;
  bottom: -2px;
}
.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}
.header-actions .btn-accent {
  background: var(--accent);
  color: #fff;
  border-radius: 24px;
  padding: 8px 22px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.12s;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(16, 24, 32, 0.06);
}

/* Logo size adjustments on mobile */
@media (max-width: 768px) {
  .logo {
    font-size: 1.6rem;
    letter-spacing: 1px;
  }
  .logo-img {
    height: 40px;
  }
}
@media (max-width: 480px) {
  .logo {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
  }
  .logo-img {
    height: 34px;
  }
}

/* ===========================
   Video Presentation Section
   =========================== */
.section.video {
  padding: 40px 0 28px;
}
.video-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 48px;
}
.video-left {
  padding: 12px 0;
}
.video-eyebrow {
  display: inline-block;
  width: 72px;
  height: 6px;
  background: #e74c3c;
  border-radius: 4px;
  margin-bottom: 20px;
}
.video-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  line-height: 1.2;
  color: #1f2937; /* near #192230 */
  margin: 0 0 16px;
  font-weight: 800;
}
.video-desc {
  color: #6b7280; /* gray-500 */
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 560px;
}
.video-cta {
  color: #41c130;
  font-weight: 600;
  text-decoration: none;
}
.video-cta .arrow {
  margin-left: 8px;
}

.video-right {
  display: flex;
  justify-content: center;
}
.video-card {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  position: relative;
  /* box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12); */
  overflow: hidden;
}
.video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  /* background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.35)); */
}

.video-card video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video card iframe fill */
.video-card .video-embed,
.video-card .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Hide play button when autoplaying */
.video-card .video-play {
  display: none;
}

/* Modal */
.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.video-modal[aria-hidden='false'] {
  display: flex;
}
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.video-modal-dialog {
  position: relative;
  width: min(960px, 92vw);
  background: #0b1621;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.video-modal-close {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
}
.video-modal-body {
  padding: 10px;
}
.video-responsive {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
}
.video-responsive iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Responsive */
@media (max-width: 992px) {
  .video-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .video-left {
    text-align: left;
  }
  .video-title {
    font-size: 2.1rem;
  }
}
@media (max-width: 600px) {
  .video-title {
    font-size: 1.8rem;
  }
  .video-desc {
    font-size: 0.96rem;
  }
  .video-play {
    width: 68px;
    height: 68px;
  }
  .video-play::before {
    left: 30px;
    border-left-width: 16px;
    border-top-width: 10px;
    border-bottom-width: 10px;
  }
}

/* Flaticon attribution */
/* Impact Section */
.section.impact {
  position: relative;
  overflow: hidden;
  color: var(--dark);
}

.section.impact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/Arriere_plan.gif') center / cover no-repeat;
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}

.section.impact > .container {
  position: relative;
  z-index: 1;
}

.impact-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 24px;
  box-shadow: 0 24px 50px -28px rgba(7, 20, 40, 0.35);
  backdrop-filter: blur(3px);
}

.impact-tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.impact-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(22, 46, 65, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: var(--dark);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease,
    background 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 6px 16px -12px rgba(0, 0, 0, 0.35);
}

.impact-tab:focus-visible {
  outline: 3px solid rgba(254, 132, 2, 0.45);
  outline-offset: 3px;
}

.impact-tab:not(.is-active):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -18px rgba(0, 0, 0, 0.35);
}

.impact-tab.is-active {
  background: linear-gradient(
    120deg,
    rgba(65, 193, 48, 0.12),
    rgba(254, 132, 2, 0.18)
  );
  border-color: rgba(65, 193, 48, 0.28);
  color: var(--primary);
  box-shadow: 0 18px 40px -26px rgba(65, 193, 48, 0.55);
}

.impact-tab-icon {
  font-size: 1.3rem;
}

.impact-progress {
  position: relative;
  height: 4px;
  margin: 0 auto 24px;
  max-width: 480px;
  opacity: 0.9;
}

.impact-progress-track {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(13, 42, 58, 0.16);
  overflow: hidden;
}

.impact-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #41c130 0%, #fe8402 100%);
  transform-origin: left center;
  transform: scaleX(calc(var(--impact-progress, 0) / 100));
  transition: transform 0.4s ease;
}

.impact-panels {
  position: relative;
}

.impact-panel {
  display: none;
  gap: 24px;
  opacity: 0;
}

.impact-panel.is-active {
  display: grid;
  animation: impactFadeIn 0.55s ease forwards;
}

.impact-panel-header {
  display: grid;
  gap: 8px;
}

.impact-panel-title {
  font-size: 1.9rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: #0b2b28;
}

.impact-panel-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(13, 42, 58, 0.82);
}

.impact-panel-list {
  list-style: none;
  padding-left: 0;
  margin: 20px 0 26px;
  display: grid;
  gap: 12px;
}

.impact-panel-list li {
  position: relative;
  padding-left: 26px;
  font-size: 1.05rem;
  color: rgba(7, 35, 48, 0.88);
}

.impact-panel-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.impact-panel-kpi {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 18px;
  background: linear-gradient(
    120deg,
    rgba(65, 193, 48, 0.14),
    rgba(254, 132, 2, 0.12)
  );
  border-radius: 16px;
  color: #04342e;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(65, 193, 48, 0.25);
}

.impact-kpi-value {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.impact-kpi-label {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.88;
}

@keyframes impactFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .impact-shell {
    padding: 24px 20px;
    border-radius: 20px;
  }
  .impact-panel-title {
    font-size: 1.6rem;
  }
  .impact-panel-list {
    gap: 10px;
  }
  .impact-panel-kpi {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .impact-tabs {
    gap: 10px;
  }
  .impact-tab {
    width: 100%;
    justify-content: center;
  }
}

/* ===========================
   Factory Immersion
   =========================== */
.factory-lab {
  position: relative;
  background: radial-gradient(
    120% 120% at 50% 10%,
    rgba(65, 193, 48, 0.14),
    rgba(12, 131, 34, 0)
  );
}

.factory-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

.factory-visual {
  position: relative;
  background: radial-gradient(circle at 20% 20%, #0b1c24 0%, #050d12 100%);
  border-radius: 28px;
  padding: clamp(24px, 3vw, 38px);
  box-shadow: 0 28px 70px rgba(5, 15, 20, 0.55);
  overflow: hidden;
}

.factory-svg {
  width: 100%;
  height: auto;
}

.factory-pipe {
  stroke: url(#pipeGradient);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 22 18;
  animation: pipeFlow 9s linear infinite;
  opacity: 0.92;
}

.factory-flow {
  filter: drop-shadow(0 0 14px rgba(65, 193, 48, 0.7));
}

.factory-nodes circle {
  opacity: 0.8;
  filter: blur(0.2px);
}

.factory-gears .gear {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 6;
  stroke-dasharray: 8 12;
  transform-origin: center;
}

.gear-large {
  animation: gearRotate 14s linear infinite;
}

.gear-small {
  animation: gearRotateReverse 10s linear infinite;
}

.factory-spark {
  position: absolute;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 200, 120, 0.68);
  filter: blur(1px);
  animation: sparkDrift 4.6s ease-in-out infinite;
}

.factory-spark.spark-1 {
  top: 18%;
  right: 24%;
  animation-delay: 0.2s;
}

.factory-spark.spark-2 {
  bottom: 18%;
  left: 22%;
  animation-delay: 1.1s;
}

.factory-spark.spark-3 {
  top: 38%;
  left: 50%;
  animation-delay: 2.3s;
}

.factory-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.factory-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 2.6vw, 2.4rem);
  color: #103b29;
}

.factory-tagline {
  font-size: 1.05rem;
  color: #39624c;
  max-width: 360px;
}

.factory-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.factory-card {
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.factory-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(16, 24, 32, 0.16);
}

.factory-icon {
  font-size: 1.4rem;
  background: rgba(65, 193, 48, 0.1);
  color: #2e8b56;
  border-radius: 12px;
  padding: 8px;
  align-self: center;
}

.factory-label {
  font-weight: 600;
  color: #274f3b;
  align-self: center;
}

.factory-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.factory-badge {
  background: rgba(16, 59, 41, 0.08);
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
}

.badge-metric {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #103b29;
}

.badge-label {
  font-size: 0.85rem;
  color: #4b7060;
}

/* ===========================
   Workflow Avatars
   =========================== */
.workflow {
  position: relative;
}

.workflow-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.workflow-stage-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(18px, 2.8vw, 26px);
}

.workflow-stage {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.92),
    rgba(236, 247, 240, 0.9)
  );
  border-radius: 22px;
  padding: 28px 18px 26px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
  opacity: 0.7;
  cursor: pointer;
}

.workflow-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    rgba(65, 193, 48, 0.08),
    rgba(254, 132, 2, 0.06)
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.workflow-stage.is-active {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 28px 56px rgba(16, 24, 32, 0.16);
  opacity: 1;
}

.workflow-stage.is-active::before {
  opacity: 1;
}

.workflow-stage.is-past {
  opacity: 0.85;
}

.workflow-stage:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(65, 193, 48, 0.35),
    0 20px 44px rgba(16, 24, 32, 0.18);
}

.stage-title {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: #0f3f2b;
}

.stage-caption {
  text-align: center;
  font-size: 0.92rem;
  color: #4b6a5b;
}

.avatar {
  width: 140px;
  height: 160px;
  margin: 0 auto 16px;
  position: relative;
}

.avatar-shadow {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 88px;
  height: 18px;
  background: radial-gradient(
    circle,
    rgba(16, 59, 41, 0.28),
    rgba(16, 59, 41, 0)
  );
  transform: translateX(-50%);
}

.avatar-head {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffd6b3;
  border: 3px solid rgba(15, 63, 43, 0.1);
  transform: translateX(-50%);
}

.avatar-body {
  position: absolute;
  bottom: 38px;
  left: 50%;
  width: 80px;
  height: 98px;
  border-radius: 38px 38px 18px 18px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #1f6f4c, #0f3f2b);
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.18);
}

.avatar-helmet,
.avatar-glasses,
.avatar-mask {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
}

.avatar-helmet {
  width: 72px;
  height: 32px;
  border-radius: 18px 18px 12px 12px;
  background: linear-gradient(90deg, #ffb703, #fe8402);
  top: -8px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25);
}

.avatar-glasses {
  width: 54px;
  height: 18px;
  border-radius: 10px;
  background: linear-gradient(90deg, #1d3557, #0f2d4a);
  top: 18px;
}

.avatar-mask {
  width: 60px;
  height: 30px;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(15, 63, 43, 0.9),
    rgba(33, 93, 68, 0.8)
  );
  top: 22px;
}

.avatar-arm {
  position: absolute;
  top: 68px;
  width: 18px;
  height: 70px;
  border-radius: 14px;
  background: linear-gradient(180deg, #184835, #0f3f2b);
  transform-origin: 50% 16px;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.18);
}

.avatar-arm.arm-left {
  left: 18px;
}

.avatar-arm.arm-right {
  right: 18px;
}

.avatar-tool {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.22));
}

.tool-bag {
  width: 44px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, #f4a261, #f77f00);
  left: 26px;
}

.tool-scan {
  width: 50px;
  height: 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, #2d6a4f, #118ab2);
  top: 96px;
  transform: translateX(-50%) rotate(-6deg);
}

.tool-flame {
  width: 32px;
  height: 48px;
  border-radius: 16px 16px 10px 10px;
  background: radial-gradient(
    circle at 50% 20%,
    #ffe066,
    #fe8402 60%,
    #d62828 100%
  );
  right: 24px;
  left: auto;
}

.tool-can {
  width: 38px;
  height: 50px;
  border-radius: 10px;
  background: linear-gradient(180deg, #adb5bd, #6c757d);
  right: 24px;
  left: auto;
}

.avatar-effect {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  animation-duration: 1.6s;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

.effect-dust {
  background: radial-gradient(
    circle at 30% 80%,
    rgba(244, 162, 97, 0.34),
    rgba(244, 162, 97, 0)
  );
  animation-name: dustPulse;
}

.effect-spark {
  background: radial-gradient(
    circle at 70% 40%,
    rgba(17, 138, 178, 0.38),
    rgba(17, 138, 178, 0)
  );
  animation-name: sparkPulse;
}

.effect-heat {
  background: radial-gradient(
    circle at 50% 60%,
    rgba(254, 132, 2, 0.45),
    rgba(254, 132, 2, 0)
  );
  animation-name: heatPulse;
}

.effect-drop {
  background: radial-gradient(
    circle at 60% 90%,
    rgba(65, 193, 48, 0.4),
    rgba(65, 193, 48, 0)
  );
  animation-name: dropPulse;
}

.arm-motion {
  animation-duration: 1.9s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

.avatar-collect .arm-left.arm-motion,
.avatar-collect .arm-right.arm-motion {
  animation-name: collectArm;
}

.avatar-collect .tool-bag.arm-motion {
  animation-name: collectBag;
  animation-duration: 2.1s;
}

.avatar-tri .arm-right.arm-motion {
  animation-name: triArm;
}

.avatar-tri .tool-scan.arm-motion {
  animation-name: scanBeam;
  animation-duration: 2.2s;
}

.avatar-pyro .arm-left.arm-motion,
.avatar-pyro .arm-right.arm-motion {
  animation-name: pyroArm;
  animation-duration: 2.4s;
}

.avatar-pyro .tool-flame.arm-motion {
  animation-name: flamePulse;
  animation-duration: 1.8s;
}

.avatar-carbu .arm-right.arm-motion {
  animation-name: fuelPourArm;
}

.avatar-carbu .tool-can.arm-motion {
  animation-name: fuelPour;
  animation-duration: 2.1s;
}

.workflow-stage.is-active .arm-motion,
.workflow-stage.is-active .avatar-effect {
  animation-play-state: running;
  opacity: 1;
}

.workflow-stage.is-active .avatar-body {
  filter: brightness(1.1) saturate(1.12);
  box-shadow: inset 0 -10px 16px rgba(0, 0, 0, 0.28);
}

.avatar-tri .avatar-body {
  background: linear-gradient(180deg, #1d3557, #102b3f);
}

.avatar-pyro .avatar-body {
  background: linear-gradient(180deg, #b33f00, #811d00);
}

.avatar-carbu .avatar-body {
  background: linear-gradient(180deg, #274c77, #274f3b);
}

.workflow-progress {
  margin-top: 34px;
}

.workflow-progress-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(18, 83, 52, 0.12);
  overflow: visible;
}

.workflow-progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, #41c130 0%, #fe8402 100%);
  transition: width 0.7s ease;
  border-radius: 999px;
}

.workflow-progress-fill::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fe8402;
  box-shadow: 0 0 14px rgba(254, 132, 2, 0.6);
  transform: translate(50%, -50%);
}

/* ===========================
   Simulator
   =========================== */
.simulator {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(15, 63, 43, 0.06),
    rgba(12, 131, 34, 0)
  );
}

.simulator-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

.simulator-card {
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.96),
    rgba(238, 249, 240, 0.92)
  );
  border-radius: 28px;
  padding: clamp(28px, 5vw, 42px);
  box-shadow: 0 30px 60px rgba(16, 24, 32, 0.14);
  position: relative;
  overflow: hidden;
}

.simulator-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(65, 193, 48, 0.08),
    rgba(254, 132, 2, 0.1)
  );
  opacity: 0.6;
  pointer-events: none;
}

.simulator-card > * {
  position: relative;
  z-index: 1;
}

.simulator-range {
  margin: 24px 0 12px;
}

.simulator-range input[type='range'] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 12px;
  border-radius: 999px;
  background: rgba(18, 83, 52, 0.12);
  outline: none;
  overflow: hidden;
}

.simulator-range input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #41c130, #fe8402);
  box-shadow: 0 0 0 6px rgba(65, 193, 48, 0.22);
  cursor: pointer;
  border: none;
}

.simulator-range input[type='range']::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #41c130, #fe8402);
  border: none;
  box-shadow: 0 0 0 6px rgba(65, 193, 48, 0.22);
  cursor: pointer;
}

.simulator-range-label {
  text-align: right;
  font-size: 0.95rem;
  color: #274f3b;
  margin-top: 8px;
}

.simulator-meter {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: rgba(18, 83, 52, 0.15);
  overflow: hidden;
  margin: 26px 0;
}

.simulator-meter-fill {
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, #41c130 0%, #fe8402 100%);
  transition: width 0.5s ease;
}

.simulator-meter-glow {
  position: absolute;
  inset: -12px;
  background: radial-gradient(
    circle,
    rgba(65, 193, 48, 0.2),
    rgba(65, 193, 48, 0)
  );
  pointer-events: none;
}

.simulator-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.simulator-stat {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #4b7060;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #103b29;
  line-height: 1.2;
}

.stat-unit {
  font-size: 0.8rem;
  color: #6e8a7c;
}

.simulator-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.simulator-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(18, 83, 52, 0.08);
  color: #274f3b;
  font-size: 0.85rem;
}

.simulator-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  --sim-level: 0.3;
}

.simulator-tank {
  position: relative;
  width: min(280px, 80%);
  height: 320px;
  border-radius: 24px;
  background: linear-gradient(180deg, #111f29, #0a131a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(5, 15, 20, 0.55);
}

.simulator-liquid {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(var(--sim-level) * 100%);
  background: linear-gradient(
    180deg,
    rgba(65, 193, 48, 0.85),
    rgba(254, 132, 2, 0.95)
  );
  transition: height 0.6s ease;
}

.simulator-liquid.is-pulse {
  animation: liquidPulse 1s ease;
}

.simulator-tank-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.simulator-tank-gauge {
  position: absolute;
  inset: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gauge-mark {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.simulator-tank-glow {
  position: absolute;
  inset: -18px;
  background: radial-gradient(
    circle,
    rgba(65, 193, 48, 0.18),
    rgba(65, 193, 48, 0)
  );
  animation: tankGlow 3.8s ease-in-out infinite;
  pointer-events: none;
}

.simulator-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1f3d2f;
  font-size: 0.9rem;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.legend-dot-green {
  background: linear-gradient(135deg, #41c130, #fe8402);
  box-shadow: 0 0 12px rgba(65, 193, 48, 0.4);
}

/* ===========================
   Animations keyframes
   =========================== */
@keyframes pipeFlow {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -200;
  }
}

@keyframes gearRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes gearRotateReverse {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

@keyframes sparkDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(0.6);
    opacity: 0.8;
  }
  50% {
    transform: translate3d(12px, -18px, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate3d(-10px, -30px, 0) scale(0.5);
    opacity: 0;
  }
}

@keyframes collectArm {
  0%,
  100% {
    transform: rotate(14deg);
  }
  50% {
    transform: rotate(-28deg);
  }
}

@keyframes collectBag {
  0% {
    transform: translate(-50%, -4px) rotate(-6deg);
  }
  50% {
    transform: translate(-30%, 6px) rotate(10deg);
  }
  100% {
    transform: translate(-50%, -4px) rotate(-6deg);
  }
}

@keyframes triArm {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(22deg);
  }
}

@keyframes scanBeam {
  0% {
    box-shadow: 0 0 0 rgba(17, 138, 178, 0);
    transform: translateX(-50%) rotate(-6deg);
  }
  50% {
    box-shadow: 0 0 18px rgba(17, 138, 178, 0.5);
    transform: translateX(-20%) rotate(4deg);
  }
  100% {
    box-shadow: 0 0 0 rgba(17, 138, 178, 0);
    transform: translateX(-50%) rotate(-6deg);
  }
}

@keyframes pyroArm {
  0%,
  100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(18deg);
  }
}

@keyframes flamePulse {
  0%,
  100% {
    transform: translateX(0) scale(0.94);
    filter: drop-shadow(0 0 6px rgba(254, 132, 2, 0.55));
  }
  50% {
    transform: translateX(-4px) scale(1.06);
    filter: drop-shadow(0 0 18px rgba(254, 132, 2, 0.75));
  }
}

@keyframes fuelPourArm {
  0%,
  100% {
    transform: rotate(14deg);
  }
  50% {
    transform: rotate(-22deg);
  }
}

@keyframes fuelPour {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  50% {
    transform: translateX(-10px) rotate(-18deg);
  }
  100% {
    transform: translateX(0) rotate(0deg);
  }
}

@keyframes dustPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.08);
  }
}

@keyframes sparkPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(-4px) scale(0.8);
  }
  50% {
    opacity: 0.75;
    transform: translateY(4px) scale(1.05);
  }
}

@keyframes heatPulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes dropPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: translateY(0);
  }
  50% {
    opacity: 0.9;
    transform: translateY(6px);
  }
}

@keyframes tankGlow {
  0%,
  100% {
    opacity: 0.28;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes liquidPulse {
  0% {
    filter: drop-shadow(0 0 0 rgba(65, 193, 48, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 22px rgba(65, 193, 48, 0.6));
  }
  100% {
    filter: drop-shadow(0 0 0 rgba(65, 193, 48, 0.2));
  }
}

/* ===========================
   Responsive adjustments
   =========================== */
@media (max-width: 1024px) {
  .factory-grid,
  .simulator-wrapper {
    grid-template-columns: 1fr;
  }

  .factory-info {
    order: -1;
  }

  .simulator-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .hero-highlights {
    margin-top: 24px;
    gap: 14px;
  }

  .highlight-card {
    padding: 18px;
  }

  .factory-card {
    padding: 16px;
  }

  .workflow-stage {
    padding: 24px 16px 22px;
  }

  .workflow-stage-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .avatar {
    transform: scale(0.88);
    transform-origin: top center;
  }
}

@media (max-width: 560px) {
  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .factory-badges {
    flex-direction: column;
  }

  .simulator-card {
    padding: 24px;
  }

  .simulator-range-label {
    text-align: left;
  }

  .simulator-visual {
    width: 100%;
  }

  .simulator-tank {
    width: 100%;
    max-width: 260px;
    height: 280px;
  }
}
