/* ==========================================================================
   HOME PAGE STYLES — PRL COL Platform — Mobile-First
   Base = mobile (< 640px), scale up via min-width queries
   ========================================================================== */


/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: auto;
  padding-top: var(--space-16);
  padding-bottom: var(--space-12);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.03) 30%, rgba(255,255,255,0.15) 60%, var(--bg-primary) 100%);
  z-index: 1;
}

[data-theme="dark"] .hero__bg::after {
  background: linear-gradient(to bottom, transparent 0%, rgba(10,10,10,0.03) 30%, rgba(10,10,10,0.15) 60%, var(--bg-primary) 100%);
}

.hero__vanta {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* El globo de Vanta renderiza en un canvas — ajuste de opacidad por tema */
.hero__vanta canvas {
  opacity: 0.85;
}

[data-theme="light"] .hero__vanta canvas {
  opacity: 0.55;
}

/* Line mask + char animation — mobile: inline flow, tablet+: block masks */
.hero__title br {
  display: none;
}

.hero-line-mask {
  display: inline;
  overflow: visible;
  padding-bottom: 0;
}

.hero-line {
  display: inline;
}

.hero-word {
  display: inline;
  white-space: nowrap;
}

.hero__title .char {
  display: inline-block;
  opacity: 0;
  will-change: transform, opacity;
}

.hero-title--split .text-gradient {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  color: inherit;
}

.char--gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}

[data-theme="light"] .hero__title {
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .hero__subtitle {
  color: var(--text-primary);
}

/* Hero primary button — gradient */
.hero .btn--primary {
  --glass-reflex-light: 0;
  --glass-reflex-dark: 1;
  background: var(--gradient-text);
  color: var(--text-on-primary);
  -webkit-text-fill-color: var(--text-on-primary);
  border: none;
  box-shadow: var(--glass-shadow),
              0 2px 10px rgba(206, 50, 255, 0.15);
}

.hero .btn--primary::after { display: none; }

.hero .btn--primary:hover {
  --glass-reflex-dark: 1.4;
  transform: translateY(-1px) scale(1.02);
  color: var(--text-on-primary);
  -webkit-text-fill-color: var(--text-on-primary);
  box-shadow: var(--glass-shadow),
              0 6px 20px rgba(206, 50, 255, 0.25);
}

.hero .btn--primary:active {
  transform: translateY(0) scale(0.98);
}

[data-theme="dark"] .hero .btn--primary {
  box-shadow: var(--glass-shadow),
              0 2px 10px rgba(206, 50, 255, 0.18);
}

[data-theme="dark"] .hero .btn--primary:hover {
  box-shadow: var(--glass-shadow),
              0 6px 20px rgba(206, 50, 255, 0.28);
}

/* Hero secondary button — glass */
[data-theme="light"] .hero .btn--secondary {
  --glass-reflex-light: 1.4;
  background-color: color-mix(in srgb, var(--glass-color) 18%, transparent);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--glass-shadow);
}

[data-theme="light"] .hero .btn--secondary:hover {
  transform: translateY(-2px) scale(1.04);
  background-color: color-mix(in srgb, var(--glass-color) 25%, transparent);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: var(--glass-shadow),
              0 8px 28px rgba(206, 50, 255, 0.12);
}

[data-theme="dark"] .hero .btn--secondary {
  --glass-reflex-dark: 1.4;
  background-color: color-mix(in srgb, var(--glass-color) 10%, transparent);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--glass-shadow);
}

[data-theme="dark"] .hero .btn--secondary:hover {
  transform: translateY(-2px) scale(1.04);
  background: linear-gradient(135deg, rgba(206, 50, 255, 0.10), rgba(255, 62, 137, 0.10));
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: var(--glass-shadow),
              0 8px 28px rgba(206, 50, 255, 0.15);
}

/* Layout */
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  text-align: center;
}

.hero__text {
  max-width: 100%;
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
}

.hero__subtitle {
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  max-width: 100%;
}

.hero__highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.15em 0.6em;
  font-weight: 700;
  font-size: 0.9em;
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: -0.01em;
  --glass-color: #d970ff;
  background-color: color-mix(in srgb, var(--glass-color) 18%, transparent);
  backdrop-filter: var(--glass-backdrop-soft) url(#glass-distort);
  -webkit-backdrop-filter: var(--glass-backdrop-soft);
  border: none;
  box-shadow: var(--glass-shadow);
}

[data-theme="dark"] .hero__highlight {
  --glass-color: #b820e6;
}

.hero__highlight span,
.hero__highlight i {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__highlight svg {
  color: var(--color-primary);
}

[data-theme="dark"] .hero__highlight svg {
  color: var(--color-secondary);
}

.hero__actions {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.hero__actions .btn {
  padding: var(--space-3) var(--space-5);
  min-height: 2.75rem;
  font-size: var(--text-sm);
}

/* Trust bar — one clean line, Apple style */
.hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  opacity: 0.7;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

.hero__trust:hover {
  opacity: 1;
}

.hero__trust-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  white-space: nowrap;
}

.hero__trust-divider {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: var(--border-default);
  flex-shrink: 0;
}

.hero__trust-name {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  white-space: nowrap;
}

.hero__trust-dot {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  line-height: 1;
}


/* ── Líneas de Negocio — features-cards style ──────── */
.lineas-cards .section__header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.lineas-cards {
  padding-block: 0 var(--space-4);
  overflow: hidden;
}

.lineas-cards__swiper {
  position: relative;
  margin-inline: calc(-1 * var(--space-6));
}

.lineas-cards .glass-swiper__nav {
  justify-content: flex-end;
  margin-top: var(--space-5);
}

.lineas-cards__item {
  position: relative;
  flex: 0 0 clamp(260px, 78vw, 380px);
  min-height: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
      0 4px 24px rgba(0, 0, 0, 0.12),
      0 1px 4px rgba(0, 0, 0, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-smooth),
              border-color var(--duration-normal) var(--ease-smooth);
}

.lineas-cards__item:hover {
  transform: translateY(-4px);
  border-color: rgba(206, 50, 255, 0.35);
  box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.18),
      0 4px 12px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .lineas-cards__item {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
      0 4px 24px rgba(0, 0, 0, 0.07),
      0 1px 4px rgba(0, 0, 0, 0.04),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .lineas-cards__item:hover {
  border-color: rgba(206, 50, 255, 0.40);
  box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.10),
      0 4px 12px rgba(0, 0, 0, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Gradient background fills — CSS-only, no images needed */
.lineas-cards__img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.lineas-cards__item:hover .lineas-cards__img-wrap {
  transform: scale(1.04);
}

.lineas-cards__img-wrap--software {
  background-image: url('/assets/img/lines/software.avif');
  background-size: cover;
  background-position: center;
}

.lineas-cards__img-wrap--iot {
  background-image: url('/assets/img/lines/iot.avif');
  background-size: cover;
  background-position: center;
}

.lineas-cards__img-wrap--experiences {
  background-image: url('/assets/img/lines/experiences.avif');
  background-size: cover;
  background-position: center;
}

/* Overlay for text readability */
.lineas-cards__item::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70%;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.50) 40%,
    rgba(0, 0, 0, 0.15) 70%,
    transparent 100%
  );
  pointer-events: none;
}

[data-theme="light"] .lineas-cards__item::before {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.30) 40%,
    rgba(0, 0, 0, 0.08) 70%,
    transparent 100%
  );
}

/* Text pinned to bottom */
.lineas-cards__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: var(--space-5);
}

.lineas-cards__label {
  display: inline-block;
  font-size: var(--text-2xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: #fff;
  margin-bottom: var(--space-2);
  padding: 0.25em 0.75em;
  background: var(--glass-bg);
  border-radius: var(--radius-full);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  box-shadow: var(--glass-shadow);
}

.lineas-cards__title {
  font-size: var(--text-2xl);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  color: #fff;
  margin-bottom: var(--space-1);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.lineas-cards__subtitle {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--leading-relaxed);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ── Portfolio — showcase de productos ─────────────── */
.portfolio .section__header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.portfolio__block {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
  margin-bottom: var(--space-16);
}

.portfolio__block:last-child {
  margin-bottom: 0;
}

.portfolio__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.portfolio__text .badge {
  margin-bottom: var(--space-3);
}

.portfolio__title {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.portfolio__text p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.portfolio__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.portfolio__feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.portfolio__feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  background-color: color-mix(in srgb, var(--color-primary) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-primary) 15%, transparent);
  color: var(--color-primary);
}

[data-theme="dark"] .portfolio__feature-icon {
  background-color: color-mix(in srgb, var(--color-secondary) 10%, transparent);
  border-color: color-mix(in srgb, var(--color-secondary) 20%, transparent);
  color: var(--color-secondary);
}

.portfolio__feature-label {
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: var(--fw-medium);
}

/* Portfolio CTA — text arrow link, Apple style */
.portfolio__text .btn {
  align-self: flex-start;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  gap: 0.375rem;
  transition: color var(--duration-normal) var(--ease-smooth);
}

.portfolio__text .btn:hover {
  color: var(--color-primary);
  background: transparent;
  transform: none;
}

.portfolio__text .btn svg {
  transition: transform var(--duration-normal) var(--ease-spring);
}

.portfolio__text .btn:hover svg {
  transform: translateX(5px);
}

[data-theme="dark"] .portfolio__text .btn {
  color: var(--color-secondary);
}

[data-theme="dark"] .portfolio__text .btn:hover {
  color: var(--color-secondary);
  background: transparent;
}

/* Product logo visual */
.portfolio__visual {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portfolio__logo-wrap {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  --spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0L13.4 9.2L20 12L13.4 14.8L12 24L10.6 14.8L4 12L10.6 9.2Z' fill='%23ffffff'/%3E%3C/svg%3E");
}

.portfolio__logo-wrap::before,
.portfolio__logo-wrap::after {
  content: '';
  position: absolute;
  inset: 5% 5%;
  z-index: 2;
  pointer-events: none;
}

.portfolio__logo-wrap::before {
  background:
    var(--spark) no-repeat 28% 22%,
    var(--spark) no-repeat 68% 38%,
    var(--spark) no-repeat 42% 72%;
  background-size: 16px 16px, 12px 12px, 14px 14px;
  animation: sparkle-a 4s var(--ease-in-out) infinite;
}

.portfolio__logo-wrap::after {
  background:
    var(--spark) no-repeat 58% 18%,
    var(--spark) no-repeat 22% 58%,
    var(--spark) no-repeat 72% 78%;
  background-size: 11px 11px, 15px 15px, 9px 9px;
  animation: sparkle-b 5.5s var(--ease-in-out) 2s infinite;
}

.portfolio__logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  filter:
    drop-shadow(0 4px 12px rgba(206, 50, 255, 0.18))
    drop-shadow(0 16px 40px rgba(206, 50, 255, 0.14))
    drop-shadow(0 32px 64px rgba(255, 62, 137, 0.08));
}

[data-theme="dark"] .portfolio__logo {
  filter:
    drop-shadow(0 4px 12px rgba(255, 255, 255, 0.06))
    drop-shadow(0 16px 40px rgba(206, 50, 255, 0.12))
    drop-shadow(0 32px 64px rgba(255, 62, 137, 0.06));
}

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

/* SaaS Factory text wordmark (until logo is ready) */
.portfolio__logo-wrap--text {
  padding: var(--space-8) var(--space-10);
}

.portfolio__logo-wordmark {
  display: block;
  font-size: var(--text-4xl);
  font-weight: var(--fw-extrabold);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  text-align: center;
}


/* ── Clients Orbit — 3-ring visualization ──────────── */
.clients-orbit .section__header {
  text-align: center;
  margin-bottom: var(--space-10);
}

/* clients-orbit base styles → components.css */


/* ==========================================================================
   TABLET (>= 640px)
   ========================================================================== */
@media (min-width: 640px) {

  .hero__title br {
    display: block;
  }

  .hero-line-mask {
    display: block;
    overflow: hidden;
    padding-bottom: 0.1em;
  }

  .hero-line {
    display: block;
  }

  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }

  .hero__actions .btn {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-md);
  }

  .hero__trust {
    flex-direction: row;
    justify-content: center;
  }

  .lineas-cards__swiper {
    margin-inline: calc(-1 * var(--space-8));
  }

  .lineas-cards .glass-swiper__track,
  .lineas-cards .glass-swiper__nav {
    padding-inline: var(--space-8);
  }

  .lineas-cards__item {
    flex: 0 0 clamp(320px, 48vw, 420px);
    min-height: 520px;
  }

  .portfolio__card {
    width: min(420px, 90vw);
  }

  /* Orbit — tablet sizing */
  .clients-orbit__scene {
    --orbit-scene:  480px;
    --orbit-inner:  210px;
    --orbit-middle: 340px;
    --orbit-outer:  464px;
    --orbit-center: 96px;
  }

  .clients-orbit__node {
    height: 28px;
  }

  .clients-orbit__ring--inner .clients-orbit__node {
    height: 32px;
  }

  .clients-orbit__name {
    font-size: var(--text-xs);
  }

}


/* ==========================================================================
   DESKTOP (>= 1024px)
   ========================================================================== */
@media (min-width: 1024px) {

  .hero {
    min-height: 100vh;
    padding-top: var(--space-12);
    padding-bottom: var(--space-16);
  }

  .hero__content {
    text-align: center;
    align-items: center;
  }

  .hero__text {
    max-width: 720px;
    margin-inline: auto;
  }

  .hero__subtitle {
    font-size: var(--text-lg);
    max-width: 560px;
    margin-inline: auto;
    margin-bottom: var(--space-8);
  }

  .hero__title {
    margin-bottom: var(--space-3);
  }

  .hero__actions {
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
  }

  .lineas-cards__swiper {
    margin-inline: calc(-1 * var(--space-16));
  }

  .lineas-cards .glass-swiper__track {
    padding-inline: var(--space-16);
    gap: var(--space-5);
  }

  .lineas-cards .glass-swiper__nav {
    padding-inline: var(--space-16);
  }

  .lineas-cards__item {
    flex: 0 0 clamp(340px, 28vw, 440px);
    min-height: 540px;
  }

  /* Desktop: grid 1fr/1fr — ocupa todo el ancho del container */
  .portfolio__block {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    margin-bottom: var(--space-20);
  }

  /* --right: texto izquierda, visual derecha (orden natural del DOM) */
  .portfolio__block--right .portfolio__text { order: 1; }
  .portfolio__block--right .portfolio__visual { order: 2; }

  /* --left: visual izquierda, texto derecha */
  .portfolio__block--left .portfolio__text { order: 2; }
  .portfolio__block--left .portfolio__visual { order: 1; }

  .portfolio__text {
    justify-content: center;
  }

  .portfolio__title {
    font-size: var(--text-4xl);
  }

  .portfolio__visual {
    justify-content: center;
  }

  .portfolio__logo {
    max-width: 440px;
  }

  /* Orbit — desktop sizing */
  .clients-orbit__scene {
    --orbit-scene:  600px;
    --orbit-inner:  268px;
    --orbit-middle: 426px;
    --orbit-outer:  580px;
    --orbit-center: 110px;
  }

  .clients-orbit__node {
    height: 30px;
  }

  .clients-orbit__ring--inner .clients-orbit__node {
    height: 34px;
  }

  .clients-orbit__name {
    font-size: var(--text-xs);
  }

}


/* ==========================================================================
   WIDE (>= 1440px)
   ========================================================================== */
@media (min-width: 1440px) {

  .portfolio__block {
    gap: var(--space-20);
  }

  .portfolio__title {
    font-size: var(--text-5xl);
  }

  .portfolio__logo {
    max-width: 520px;
  }

}


/* ══════════════════════════════════════════════════════════
   ECOSYSTEM — Tres productos, un solo ecosistema
   ══════════════════════════════════════════════════════════ */

.ecosystem {
    padding: 0;
    overflow: visible;
}

.ecosystem__bleed {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: #060610;
    padding-block: var(--space-20);
    overflow: hidden;
}

.ecosystem__bleed .badge {
    --glass-reflex-light: 0.3;
    --glass-reflex-dark:  2;
}

.ecosystem__atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(206, 50, 255, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 50%, rgba(81, 112, 255, 0.08) 0%, transparent 55%);
}

/* Header */
.ecosystem__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-4);
    max-width: 580px;
    margin-inline: auto;
    margin-bottom: var(--space-14);
}

.ecosystem__title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: #fafafa;
    margin: 0;
}

.ecosystem__desc {
    font-size: var(--text-base);
    color: rgba(250, 250, 250, 0.5);
    line-height: 1.65;
    margin: 0;
}

/* Diagram — mobile: vertical stack, desktop: horizontal */
.ecosystem__diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 860px;
    margin-inline: auto;
}

/* Rows */
.ecosystem__rows {
    display: flex;
    flex-direction: column;
    max-width: 760px;
    margin-inline: auto;
}

.ecosystem__row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-6);
    padding-block: var(--space-7);
}

.ecosystem__row-num {
    font-size: var(--text-sm);
    font-weight: 700;
    color: rgba(250, 250, 250, 0.2);
    letter-spacing: 0.04em;
    min-width: 2rem;
    padding-top: 0.2em;
    flex-shrink: 0;
}

.ecosystem__row-num--accent {
    font-size: var(--text-xl);
    color: rgba(206, 50, 255, 0.6);
    padding-top: 0;
}

.ecosystem__row-logo {
    display: flex;
    align-items: center;
    height: 2rem;
    flex-shrink: 0;
}

.ecosystem__row-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.ecosystem__row-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.ecosystem__row-body strong {
    font-size: var(--text-lg);
    font-weight: 800;
    color: #fafafa;
    letter-spacing: -0.02em;
}

.ecosystem__row-body span {
    font-size: var(--text-sm);
    color: rgba(250, 250, 250, 0.4);
    line-height: 1.55;
}

.ecosystem__row-tag {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-2xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(250, 250, 250, 0.22);
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 0.3em;
}

.ecosystem__row-tag svg {
    opacity: 0.5;
}


.ecosystem__connector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-block: var(--space-2);
}

.ecosystem__connector-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(206, 50, 255, 0.25), transparent);
}

.ecosystem__bridge-pill {
    display: inline-flex;
    flex-shrink: 0;
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(250, 250, 250, 0.55);
    background: color-mix(in srgb, #b820e6 10%, transparent);
    border: 1px solid rgba(206, 50, 255, 0.22);
    backdrop-filter: blur(var(--glass-blur-soft));
    -webkit-backdrop-filter: blur(var(--glass-blur-soft));
}

.ecosystem__bridge-pill em {
    font-style: italic;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
