.smartia-ecosystem {
  position: relative;
  padding: 88px 20px;
  background:
    radial-gradient(circle at top center, rgba(99, 102, 241, 0.16), transparent 30%),
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.14), transparent 35%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  overflow: hidden;
}

.smartia-ecosystem-inner {
  max-width: 1220px;
  margin: 0 auto;
}

.smartia-ecosystem-heading {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 48px;
}

.smartia-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.smartia-ecosystem-heading h2 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
  font-weight: 800;
}

.smartia-ecosystem-heading p {
  margin: 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.8;
}

.smartia-ecosystem-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 22px;
  align-items: center;
  margin: 0 auto 52px;
}

.smartia-core,
.smartia-node {
  position: relative;
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 18px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.10);
}

.smartia-node {
  background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
  color: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.12);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.smartia-node small {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: #334155;
}

.smartia-core {
  grid-column: 3;
  grid-row: 2;
  min-height: 250px;
  background: linear-gradient(180deg, #1e3a8a 0%, #172554 100%);
  color: #ffffff;
  z-index: 2;
}

.smartia-core-inner span {
  display: block;
  margin-bottom: 12px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.smartia-core-inner strong {
  display: block;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
}

.smartia-node-top { grid-column: 3; grid-row: 1; background: linear-gradient(180deg, #c4b5fd 0%, #8b5cf6 100%); color: #fff; }
.smartia-node-left-top { grid-column: 1; grid-row: 1; }
.smartia-node-right-top { grid-column: 5; grid-row: 1; background: linear-gradient(180deg, #7dd3fc 0%, #38bdf8 100%); color: #fff; }
.smartia-node-left-mid { grid-column: 1; grid-row: 2; background: linear-gradient(180deg, #818cf8 0%, #4f46e5 100%); color: #fff; }
.smartia-node-right-mid { grid-column: 5; grid-row: 2; background: linear-gradient(180deg, #86efac 0%, #34d399 100%); color: #fff; }
.smartia-node-left-bottom { grid-column: 2; grid-row: 3; background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%); color: #fff; }
.smartia-node-bottom { grid-column: 3; grid-row: 3; background: linear-gradient(180deg, #5eead4 0%, #14b8a6 100%); color: #fff; }
.smartia-node-right-bottom { grid-column: 4; grid-row: 3; background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%); color: #fff; }

.smartia-flow {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}

.smartia-flow-box {
  padding: 20px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.smartia-flow-box strong {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 18px;
}

.smartia-flow-box span {
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}

.smartia-flow-box-center {
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
}

.smartia-flow-arrow {
  color: #2563eb;
  font-size: 34px;
  font-weight: 800;
  text-align: center;
}

.smartia-ecosystem-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 24px;
  border-radius: 999px;
  text-align: center;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #0f172a;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

@media (max-width: 1100px) {
  .smartia-ecosystem-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .smartia-node-top { grid-column: 2; grid-row: 1; }
  .smartia-node-left-top { grid-column: 1; grid-row: 1; }
  .smartia-node-right-top { grid-column: 3; grid-row: 1; }
  .smartia-node-left-mid { grid-column: 1; grid-row: 2; }
  .smartia-core { grid-column: 2; grid-row: 2; }
  .smartia-node-right-mid { grid-column: 3; grid-row: 2; }
  .smartia-node-left-bottom { grid-column: 1; grid-row: 3; }
  .smartia-node-bottom { grid-column: 2; grid-row: 3; }
  .smartia-node-right-bottom { grid-column: 3; grid-row: 3; }

  .smartia-flow {
    grid-template-columns: 1fr;
  }

  .smartia-flow-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 700px) {
  .smartia-ecosystem {
    padding: 64px 16px;
  }

  .smartia-ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .smartia-node-top,
  .smartia-node-left-top,
  .smartia-node-right-top,
  .smartia-node-left-mid,
  .smartia-core,
  .smartia-node-right-mid,
  .smartia-node-left-bottom,
  .smartia-node-bottom,
  .smartia-node-right-bottom {
    grid-column: 1;
    grid-row: auto;
  }

  .smartia-core {
    min-height: 220px;
  }

  .smartia-core-inner strong {
    font-size: 28px;
  }

  .smartia-node,
  .smartia-core {
    clip-path: none;
    border-radius: 24px;
  }

  .smartia-ecosystem-footer {
    border-radius: 24px;
    font-size: 18px;
    line-height: 1.5;
  }
}