/* Suisse IT Ecosystem section — self-contained, scoped under .eco-root */
.eco-root, .eco-root * { box-sizing: border-box; }
.eco-root {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.eco-root a { color: inherit; text-decoration: none; }
.eco-root img { max-width: 100%; display: block; }
.eco-root ul { list-style: none; padding: 0; margin: 0; }

.eco-section {
  background: #ffffff;
  padding: 80px 0;
}
.eco-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.eco-header {
  text-align: center;
  max-width: 768px;
  margin: 0 auto 56px;
}
.eco-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
}
.eco-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px;
  line-height: 1.15;
}
.eco-gradient {
  background: linear-gradient(135deg, #4f46e5, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.eco-subtitle {
  font-size: 18px;
  color: #64748b;
  margin: 0;
}

.eco-cards { display: flex; flex-direction: column; gap: 40px; }

.eco-card {
  border: 1px solid color-mix(in srgb, var(--c) 9%, transparent);
  background: color-mix(in srgb, var(--c) 5%, white);
  border-radius: 24px;
  padding: 32px 24px;
}
@media (min-width: 768px) { .eco-card { padding: 48px; } }

.eco-card__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 768px) {
  .eco-card__grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .eco-card--reverse .eco-card__grid > :first-child { order: 2; }
}

.eco-card__media {
  position: relative;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease;
}
.eco-card__media:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.eco-card__media::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
  pointer-events: none;
}
.eco-card__img {
  width: 100%;
  height: 256px;
  object-fit: cover;
  object-position: top;
}
@media (min-width: 768px) { .eco-card__img { height: 320px; } }

.eco-owner { margin-bottom: 24px; display: flex; flex-direction: column; align-items: flex-start; }
.eco-owner__avatar {
  width: 128px; height: 128px;
  border-radius: 9999px;
  object-fit: cover;
  margin-bottom: 12px;
  box-shadow:
    0 0 0 4px white,
    0 0 0 6px color-mix(in srgb, var(--c) 19%, transparent),
    0 12px 32px color-mix(in srgb, var(--c) 13%, transparent);
}
.eco-owner__row { display: flex; align-items: center; gap: 12px; }
.eco-owner__name { font-size: 18px; font-weight: 700; color: #0f172a; margin: 0; }
.eco-owner__icons { display: flex; align-items: center; gap: 6px; }
.eco-owner__icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  transition: opacity 0.2s;
}
.eco-owner__icons a:hover { opacity: 0.7; }
.eco-owner__icon-li { color: #0A66C2; }
.eco-owner__icon-mail { color: #64748b; }
.eco-owner__role { font-size: 14px; color: #94a3b8; margin: 4px 0 0; }

.eco-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--c) 10%, white);
  color: var(--c);
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eco-tag__dot { width: 6px; height: 6px; border-radius: 9999px; background: var(--c); }

.eco-card__title {
  margin: 16px 0 0;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  color: #0f172a;
}
.eco-card__title a {
  display: inline-flex; align-items: center; gap: 8px;
  transition: opacity 0.2s;
}
.eco-card__title a:hover { opacity: 0.7; }
.eco-card__title svg { opacity: 0.4; flex-shrink: 0; }

.eco-features { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.eco-features li {
  display: flex; align-items: flex-start; gap: 12px;
  color: #475569;
  font-size: 15px;
}
.eco-features svg { flex-shrink: 0; margin-top: 4px; }

.eco-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 32px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: var(--c);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--c) 15%, transparent);
  transition: filter 0.2s, box-shadow 0.2s;
}
.eco-cta:hover { filter: brightness(1.1); }
.eco-cta svg { transition: transform 0.2s; }
.eco-cta:hover svg { transform: translate(2px, -2px); }

/* Custom AI Solutions block */
.eco-custom {
  background: #f8fafc;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.eco-custom::before {
  content: "";
  position: absolute;
  top: -100px; right: 10%;
  width: 400px; height: 400px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.04);
  filter: blur(80px);
  pointer-events: none;
}
.eco-custom__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
@media (min-width: 768px) {
  .eco-custom__grid { grid-template-columns: 1fr 1fr; }
}
.eco-custom__badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 16px;
}
.eco-custom__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.15;
}
.eco-custom__subtitle {
  margin: 20px 0 0;
  font-size: 18px;
  color: #64748b;
  line-height: 1.6;
}
.eco-checks { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.eco-checks li {
  display: flex; align-items: flex-start; gap: 12px;
  color: #334155;
  font-size: 16px;
}
.eco-checks svg { flex-shrink: 0; margin-top: 2px; color: #6366f1; }

.eco-custom__cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 40px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: #6366f1;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
  transition: filter 0.2s, box-shadow 0.2s;
}
.eco-custom__cta:hover { filter: brightness(1.1); box-shadow: 0 12px 32px rgba(99, 102, 241, 0.3); }

.eco-custom__media { width: 100%; }
.eco-custom__photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.eco-custom__photo img { width: 100%; height: auto; object-fit: cover; }
.eco-custom__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-top: 16px;
}
.eco-custom__person { display: flex; align-items: center; gap: 12px; }
.eco-custom__name { font-size: 16px; font-weight: 600; color: #0f172a; margin: 0; }
.eco-custom__role { font-size: 14px; color: #64748b; margin: 0; }
.eco-custom__li {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  color: #0A66C2;
  transition: opacity 0.2s;
}
.eco-custom__li:hover { opacity: 0.7; }
.eco-custom__contact {
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.eco-custom__contact:hover { background: #6366f1; color: white; }

/* ============================================================
   Dark theme variant — opt-in via <div class="eco-root eco-dark">
   Used on suisse-intra to match its dark navy background.
   ============================================================ */
.eco-root.eco-dark { color: #e2e8f0; }
.eco-root.eco-dark .eco-section { background: transparent; }
.eco-root.eco-dark .eco-custom { background: rgba(255, 255, 255, 0.02); }
.eco-root.eco-dark .eco-custom::before { background: rgba(99, 102, 241, 0.06); }

.eco-root.eco-dark .eco-badge {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}
.eco-root.eco-dark .eco-title,
.eco-root.eco-dark .eco-custom__title {
  color: #f8fafc;
}
.eco-root.eco-dark .eco-subtitle,
.eco-root.eco-dark .eco-custom__subtitle {
  color: #94a3b8;
}

.eco-root.eco-dark .eco-card {
  background: color-mix(in srgb, var(--c) 12%, #1e293b);
  border-color: color-mix(in srgb, var(--c) 30%, transparent);
}
.eco-root.eco-dark .eco-card__media {
  background: rgba(255, 255, 255, 0.04);
}
.eco-root.eco-dark .eco-card__media::after {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.eco-root.eco-dark .eco-owner__avatar {
  box-shadow:
    0 0 0 4px #0f172a,
    0 0 0 6px color-mix(in srgb, var(--c) 35%, transparent),
    0 12px 32px color-mix(in srgb, var(--c) 25%, transparent);
}
.eco-root.eco-dark .eco-owner__name { color: #f8fafc; }
.eco-root.eco-dark .eco-owner__role { color: #94a3b8; }
.eco-root.eco-dark .eco-owner__icon-li { color: #60a5fa; }
.eco-root.eco-dark .eco-owner__icon-mail { color: #94a3b8; }

.eco-root.eco-dark .eco-tag {
  background: color-mix(in srgb, var(--c) 22%, transparent);
  color: color-mix(in srgb, var(--c) 60%, white);
}

.eco-root.eco-dark .eco-card__title { color: #f8fafc; }
.eco-root.eco-dark .eco-features li { color: #cbd5e1; }

.eco-root.eco-dark .eco-checks li { color: #cbd5e1; }
.eco-root.eco-dark .eco-checks svg { color: #818cf8; }

.eco-root.eco-dark .eco-custom__badge {
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
}
.eco-root.eco-dark .eco-custom__name { color: #f8fafc; }
.eco-root.eco-dark .eco-custom__role { color: #94a3b8; }
.eco-root.eco-dark .eco-custom__li { color: #60a5fa; }
.eco-root.eco-dark .eco-custom__contact {
  border-color: rgba(129, 140, 248, 0.35);
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}
.eco-root.eco-dark .eco-custom__contact:hover {
  background: #6366f1;
  color: white;
}
