/* ═══════════════════════════════════════════════════════════
   IoTFIY Ecosystem — Living Building Neural Network Theme
   Violet bioluminescent · glass · organic (distinct from Mushaba & AC-Kit)
   ═══════════════════════════════════════════════════════════ */

.ecosystem-page {
  --eco-deep: #0a0618;
  --eco-violet: #1e1b4b;
  --eco-purple: #7c3aed;
  --eco-teal: #2dd4bf;
  --eco-teal-dim: #14b8a6;
  --eco-magenta: #e879f9;
  --eco-coral: #fb7185;
  --eco-glass: rgba(255, 255, 255, 0.06);
  --eco-border: rgba(255, 255, 255, 0.1);
  font-family: 'DM Sans', sans-serif;
  background: var(--eco-deep);
  color: #e2e8f0;
}

.ecosystem-page h1,
.ecosystem-page h2,
.ecosystem-page h3,
.ecosystem-page h4 {
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.02em;
}

.ecosystem-page .header {
  background: rgba(10, 6, 24, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid var(--eco-border) !important;
  padding: 10px 0 !important;
}

.ecosystem-page .header .logo img {
  max-height: 34px;
  filter: brightness(0) invert(1);
}

.ecosystem-page .header .navmenu > ul > li > a {
  color: rgba(226, 232, 240, 0.88) !important;
}

.ecosystem-page .header .navmenu > ul > li > a.active,
.ecosystem-page .header .navmenu > ul > li > a:hover {
  color: var(--eco-teal) !important;
}

.ecosystem-page .header .btn-getstarted {
  background: linear-gradient(135deg, var(--eco-purple), var(--eco-teal-dim)) !important;
  border: none !important;
  border-radius: 100px !important;
}

.ecosystem-page .main { padding-top: 0; }

/* Hero cinematic */
.eco-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.eco-hero__video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.eco-hero__video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eco-hero__video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 6, 24, 0.75) 0%, rgba(10, 6, 24, 0.92) 55%, var(--eco-deep) 100%),
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(124, 58, 237, 0.25), transparent);
}

.eco-hero .container {
  position: relative;
  z-index: 2;
  padding-top: calc(88px + 2rem);
  padding-bottom: 4rem;
}

.eco-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--eco-glass);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: var(--eco-teal);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.eco-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1rem;
  max-width: 720px;
}

.eco-hero h1 span {
  background: linear-gradient(135deg, var(--eco-teal), var(--eco-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eco-hero__lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 560px;
  margin-bottom: 1.75rem;
}

.eco-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2.5rem;
}

.eco-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}

.eco-btn--glow {
  background: linear-gradient(135deg, var(--eco-purple), #6366f1);
  color: #fff !important;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.45);
}

.eco-btn--glow:hover {
  transform: translateY(-2px);
  color: #fff !important;
}

.eco-btn--glass {
  background: var(--eco-glass);
  border: 1px solid var(--eco-border);
  color: #e2e8f0 !important;
  backdrop-filter: blur(8px);
}

.eco-btn--glass:hover {
  border-color: var(--eco-teal);
  color: var(--eco-teal) !important;
}

.eco-btn--sm {
  padding: 10px 18px;
  font-size: 0.8125rem;
}

/* Sensor constellation */
.eco-constellation {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 720px;
}

.eco-node {
  background: var(--eco-glass);
  border: 1px solid var(--eco-border);
  border-radius: 20px;
  padding: 1rem;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, transform 0.3s;
}

.eco-node:hover {
  transform: translateY(-4px);
  border-color: var(--eco-teal);
}

.eco-node__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 1.125rem;
  color: #fff;
}

.eco-node__icon--odor { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.eco-node__icon--aqi { background: linear-gradient(135deg, #14b8a6, #2dd4bf); }
.eco-node__icon--gas { background: linear-gradient(135deg, #ef4444, #f97316); }
.eco-node__icon--fire { background: linear-gradient(135deg, #f59e0b, #fb7185); }
.eco-node__icon--rack { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.eco-node__icon--hub { background: linear-gradient(135deg, #7c3aed, #a78bfa); }

.eco-node h3 {
  font-size: 0.8125rem;
  color: #fff;
  margin: 0;
}

.eco-node p {
  font-size: 0.6875rem;
  color: #64748b;
  margin: 4px 0 0;
}

/* Alert ticker */
.eco-ticker {
  background: rgba(239, 68, 68, 0.12);
  border-top: 1px solid rgba(239, 68, 68, 0.25);
  border-bottom: 1px solid rgba(239, 68, 68, 0.25);
  padding: 12px 0;
  overflow: hidden;
}

.eco-ticker__track {
  display: flex;
  gap: 3rem;
  animation: eco-scroll 28s linear infinite;
  white-space: nowrap;
}

.eco-ticker__track span {
  font-size: 0.8125rem;
  color: #fca5a5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eco-ticker__track span i {
  color: #ef4444;
}

@keyframes eco-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections */
.eco-section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.eco-section--dark { background: var(--eco-deep); }
.eco-section--violet { background: linear-gradient(180deg, var(--eco-violet) 0%, var(--eco-deep) 100%); }

.eco-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.eco-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(124, 58, 237, 0.2);
  color: var(--eco-magenta);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.eco-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #fff;
  margin-bottom: 0.75rem;
}

.eco-head p {
  color: #94a3b8;
  margin: 0;
  line-height: 1.65;
}

/* Problem glass cards */
.eco-problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.eco-problem {
  background: var(--eco-glass);
  border: 1px solid var(--eco-border);
  border-radius: 24px;
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  transition: transform 0.3s;
}

.eco-problem:hover {
  transform: translateY(-6px);
}

.eco-problem i {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  display: block;
}

.eco-problem:nth-child(1) i { color: #a78bfa; }
.eco-problem:nth-child(2) i { color: var(--eco-teal); }
.eco-problem:nth-child(3) i { color: var(--eco-coral); }

.eco-problem h3 {
  font-size: 1.0625rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.eco-problem p {
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.6;
}

/* Sensor hub tabs */
.eco-sensorhub {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.eco-sensorhub__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eco-sensorhub__tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s;
  width: 100%;
}

.eco-sensorhub__tab:hover,
.eco-sensorhub__tab.active {
  background: var(--eco-glass);
  border-color: var(--eco-border);
  color: #fff;
}

.eco-sensorhub__tab.active {
  border-color: var(--eco-teal);
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.15);
}

.eco-sensorhub__tab i {
  font-size: 1.25rem;
  width: 36px;
  text-align: center;
}

.eco-sensorhub__panel {
  display: none;
  background: var(--eco-glass);
  border: 1px solid var(--eco-border);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.eco-sensorhub__panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.eco-sensorhub__content {
  padding: 2rem;
}

.eco-sensorhub__content h3 {
  font-size: 1.375rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.eco-sensorhub__content p {
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.eco-sensorhub__content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.eco-sensorhub__content li {
  font-size: 0.875rem;
  color: #cbd5e1;
  padding: 6px 0;
  display: flex;
  gap: 8px;
}

.eco-sensorhub__content li i {
  color: var(--eco-teal);
}

.eco-sensorhub__media {
  background: #0f0720;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.eco-sensorhub__media img,
.eco-sensorhub__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Device table */
.eco-table-wrap {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--eco-border);
}

.eco-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 640px;
}

.eco-table th {
  background: rgba(124, 58, 237, 0.25);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
}

.eco-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--eco-border);
  color: #cbd5e1;
}

.eco-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.eco-table strong {
  color: #fff;
}

/* Video theater — cinema stage */
.eco-theater-section {
  position: relative;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  overflow: hidden;
}

.eco-theater-section__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(124, 58, 237, 0.28), transparent 65%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(45, 212, 191, 0.12), transparent),
    linear-gradient(180deg, #12082a 0%, #0a0618 50%, #0f0720 100%);
  pointer-events: none;
}

.eco-theater-section__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
}

.eco-theater-section .container {
  position: relative;
  z-index: 1;
}

.eco-theater-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.eco-theater-head__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(232, 121, 249, 0.35);
  color: var(--eco-magenta);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.eco-theater-head h2 {
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.eco-theater-head h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--eco-teal), var(--eco-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eco-theater-head p {
  color: #94a3b8;
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 0;
}

.eco-stage {
  max-width: 960px;
  margin: 0 auto;
}

.eco-stage__frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 60px rgba(124, 58, 237, 0.35),
    0 32px 80px rgba(0, 0, 0, 0.55);
  margin-bottom: 1.25rem;
}

.eco-stage__frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 28px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.6), rgba(124, 58, 237, 0.6), rgba(232, 121, 249, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}

.eco-stage__frame video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #0a0618;
  object-fit: cover;
}

.eco-stage__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--eco-purple), var(--eco-teal-dim));
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.5);
  transition: transform 0.25s, opacity 0.25s;
  padding-left: 4px;
}

.eco-stage__play:hover {
  transform: scale(1.08);
}

.eco-stage__play.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.eco-stage__now {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.25rem 1rem;
  background: linear-gradient(transparent, rgba(10, 6, 24, 0.92));
  z-index: 2;
  pointer-events: none;
}

.eco-stage__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--eco-teal);
  margin-bottom: 4px;
}

.eco-stage__live i {
  font-size: 0.5rem;
  animation: eco-pulse-dot 1.4s infinite;
}

@keyframes eco-pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.eco-stage__now strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
}

.eco-stage__picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.eco-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--eco-border);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  width: 100%;
}

.eco-pick:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.eco-pick.active {
  border-color: var(--eco-teal);
  background: rgba(45, 212, 191, 0.1);
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.15);
}

.eco-pick__thumb {
  position: relative;
  flex-shrink: 0;
  width: 88px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
}

.eco-pick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eco-pick__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 6, 24, 0.5);
  color: #fff;
  font-size: 1.25rem;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.eco-pick:hover .eco-pick__play,
.eco-pick.active .eco-pick__play {
  opacity: 1;
}

.eco-pick__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.eco-pick__body strong {
  font-family: 'Sora', sans-serif;
  font-size: 0.8125rem;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eco-pick__body small {
  font-size: 0.6875rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Legacy theater — removed */
.eco-theater {
  display: none;
}

/* Dashboard */
.eco-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.eco-dashboard__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.eco-dash-feat {
  background: var(--eco-glass);
  border: 1px solid var(--eco-border);
  border-radius: 16px;
  padding: 1.25rem;
  backdrop-filter: blur(8px);
}

.eco-dash-feat i {
  font-size: 1.25rem;
  color: var(--eco-teal);
  margin-bottom: 0.5rem;
  display: block;
}

.eco-dash-feat h4 {
  font-size: 0.9375rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.eco-dash-feat p {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.eco-dashboard__visual img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--eco-border);
  box-shadow: 0 24px 64px rgba(124, 58, 237, 0.2);
}

.eco-dashboard-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.eco-dashboard-strip figure {
  margin: 0;
}

.eco-dashboard-strip img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--eco-border);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

.eco-dashboard-strip figcaption {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.5rem;
  text-align: center;
}

/* Data Center EMS */
.eco-dc-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(45, 212, 191, 0.12), transparent),
    radial-gradient(ellipse 60% 45% at 90% 80%, rgba(124, 58, 237, 0.2), transparent),
    var(--eco-violet);
}

.eco-dc-section__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(45, 212, 191, 0.08), transparent 55%);
  pointer-events: none;
}

.eco-dc-hub {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr minmax(240px, 360px);
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--eco-glass);
  border: 1px solid var(--eco-border);
  border-radius: 24px;
  backdrop-filter: blur(16px);
}

.eco-dc-hub__visual {
  position: relative;
  text-align: center;
}

.eco-dc-hub__visual img {
  width: 100%;
  max-width: 220px;
  filter: drop-shadow(0 16px 32px rgba(45, 212, 191, 0.25));
}

.eco-dc-hub__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.75rem;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--eco-teal);
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.3);
}

.eco-dc-hub__content h3 {
  font-size: 1.375rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.eco-dc-hub__content > p {
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.eco-dc-hub__list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.eco-dc-hub__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.eco-dc-hub__list li i {
  color: var(--eco-teal);
  margin-top: 2px;
}

.eco-dc-hub__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.eco-dc-hub__dashboard img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--eco-border);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.eco-dc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.eco-dc-card {
  background: rgba(10, 6, 24, 0.5);
  border: 1px solid var(--eco-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}

.eco-dc-card:hover {
  border-color: rgba(45, 212, 191, 0.35);
  transform: translateY(-3px);
}

.eco-dc-card--featured {
  border-color: rgba(124, 58, 237, 0.45);
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.15), rgba(10, 6, 24, 0.6));
}

.eco-dc-card--summary {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.12), rgba(124, 58, 237, 0.15));
  justify-content: center;
}

.eco-dc-card--summary .eco-dc-card__body {
  padding: 1.5rem;
}

.eco-dc-card__img {
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.eco-dc-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eco-dc-card__img--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.eco-dc-card__img--duo img {
  object-fit: cover;
}

.eco-dc-card__body {
  padding: 1.125rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.eco-dc-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--eco-teal);
  margin-bottom: 0.5rem;
}

.eco-dc-card__body h4 {
  font-size: 0.9375rem;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.eco-dc-card__body p {
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.eco-dc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--eco-magenta) !important;
  text-decoration: none;
}

.eco-dc-card__link:hover {
  color: var(--eco-teal) !important;
}

.eco-dc-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--eco-border);
}

.eco-dc-metric {
  text-align: center;
  padding: 1rem;
  background: var(--eco-glass);
  border: 1px solid var(--eco-border);
  border-radius: 16px;
}

.eco-dc-metric strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 1.375rem;
  color: var(--eco-teal);
  margin-bottom: 0.25rem;
}

.eco-dc-metric span {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Real Deployments — editorial field showcase */
.eco-deploy {
  position: relative;
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  overflow: hidden;
  background: #06040f;
}

.eco-deploy__aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 8% 15%, rgba(45, 212, 191, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 40% at 92% 75%, rgba(124, 58, 237, 0.22), transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(232, 121, 249, 0.06), transparent 70%);
  pointer-events: none;
}

.eco-deploy__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.eco-deploy .container {
  position: relative;
  z-index: 1;
}

.eco-deploy__header {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: end;
  margin-bottom: 2.25rem;
}

.eco-deploy__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--eco-teal);
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.28);
  margin-bottom: 1rem;
}

.eco-deploy__intro h2 {
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.eco-deploy__intro h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--eco-teal), var(--eco-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eco-deploy__intro p {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.65;
  max-width: 540px;
  margin: 0;
}

.eco-deploy__venues {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.eco-deploy__venue {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, background 0.25s;
}

.eco-deploy__venue i {
  font-size: 1.125rem;
  color: var(--eco-magenta);
}

.eco-deploy__venue:hover {
  border-color: rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.08);
}

.eco-deploy__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.eco-deploy__filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.eco-deploy__filter:hover {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.18);
}

.eco-deploy__filter.active {
  color: #fff;
  border-color: var(--eco-teal);
  background: rgba(45, 212, 191, 0.12);
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.15);
}

.eco-deploy__spotlight {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.eco-deploy__spot {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.eco-deploy__spot:hover {
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.2);
  transform: translateY(-2px);
}

.eco-deploy__spot--hero {
  display: flex;
  flex-direction: column;
}

.eco-deploy__spot-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eco-deploy__spot-stack .eco-deploy__spot {
  flex: 1;
}

.eco-deploy__spot-frame {
  position: relative;
  overflow: hidden;
  background: #0f0a1e;
}

.eco-deploy__spot--hero .eco-deploy__spot-frame {
  flex: 1;
  min-height: 280px;
}

.eco-deploy__spot-frame img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.eco-deploy__spot-frame--device img,
.eco-deploy__card--device .eco-deploy__card-inner img {
  object-fit: contain;
  padding: 12px;
  background: radial-gradient(circle at 50% 40%, rgba(124, 58, 237, 0.12), #0a0618 70%);
}

.eco-deploy__spot:hover .eco-deploy__spot-frame img {
  transform: scale(1.03);
}

.eco-deploy__spot-meta {
  padding: 1.125rem 1.25rem 1.25rem;
  background: linear-gradient(180deg, rgba(10, 6, 24, 0.4), rgba(10, 6, 24, 0.85));
}

.eco-deploy__spot-meta h3 {
  font-size: 1.0625rem;
  color: #fff;
  margin: 0.5rem 0 0;
  line-height: 1.35;
}

.eco-deploy__spot--hero .eco-deploy__spot-meta h3 {
  font-size: 1.25rem;
}

.eco-deploy__spot-meta p {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin: 0.5rem 0 0;
  line-height: 1.55;
}

.eco-deploy__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.eco-deploy__chip--facilities {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.eco-deploy__chip--hardware {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.eco-deploy__chip--dashboards {
  color: var(--eco-teal);
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.28);
}

.eco-deploy__bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: 14px;
}

.eco-deploy__card {
  grid-column: span 3;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.eco-deploy__card.is-hidden {
  display: none;
}

.eco-deploy__card--tall {
  grid-column: span 3;
  grid-row: span 2;
}

.eco-deploy__card--wide {
  grid-column: span 6;
}

.eco-deploy__card-inner {
  position: relative;
  height: 100%;
  min-height: 160px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.eco-deploy__card:hover .eco-deploy__card-inner {
  border-color: rgba(45, 212, 191, 0.3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}

.eco-deploy__card-inner img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.eco-deploy__card--tall .eco-deploy__card-inner {
  min-height: 100%;
}

.eco-deploy__card--tall .eco-deploy__card-inner img {
  min-height: 334px;
}

.eco-deploy__card--ui .eco-deploy__card-inner {
  background: #0c0818;
}

.eco-deploy__card--ui .eco-deploy__card-inner img {
  object-fit: contain;
  object-position: top center;
  padding: 8px;
}

.eco-deploy__card:hover .eco-deploy__card-inner img {
  transform: scale(1.04);
}

.eco-deploy__card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(6, 4, 15, 0.95));
  pointer-events: none;
}

.eco-deploy__card-overlay strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  margin-top: 0.5rem;
  line-height: 1.35;
}

.eco-deploy__card--wide .eco-deploy__card-overlay strong {
  font-size: 0.9375rem;
}

/* Why mosaic */
.eco-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.eco-mosaic__item {
  position: relative;
  background: var(--eco-glass);
  border: 1px solid var(--eco-border);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.eco-mosaic__item--visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  pointer-events: none;
}

.eco-mosaic__item--visual i,
.eco-mosaic__item--visual h3,
.eco-mosaic__item--visual p {
  position: relative;
  z-index: 1;
}

.eco-mosaic__item i {
  font-size: 1.5rem;
  color: var(--eco-magenta);
  margin-bottom: 0.75rem;
  display: block;
}

.eco-mosaic__item h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.375rem;
}

.eco-mosaic__item p {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.55;
}

/* Specs pills */
.eco-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.eco-spec {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--eco-glass);
  border: 1px solid var(--eco-border);
  border-radius: 20px;
}

.eco-spec i {
  font-size: 1.5rem;
  color: var(--eco-teal);
  margin-bottom: 0.75rem;
  display: block;
}

.eco-spec h4 {
  font-size: 0.875rem;
  color: #fff;
  margin-bottom: 0.375rem;
}

.eco-spec p {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* CTA */
.eco-cta {
  padding: clamp(3rem, 8vw, 5rem) 0;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(124, 58, 237, 0.35), transparent),
    var(--eco-deep);
  border-top: 1px solid var(--eco-border);
}

.eco-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #fff;
  margin-bottom: 1rem;
}

.eco-cta p {
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.eco-cta__actions {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.eco-cta__brand {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.7;
}

.eco-cta__brand a {
  color: var(--eco-teal);
}

/* Mobile dock — anchor nav */
.eco-mobile-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  display: none;
  justify-content: space-around;
  background: linear-gradient(180deg, rgba(15, 8, 35, 0.98) 0%, rgba(10, 6, 24, 0.99) 100%);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(124, 58, 237, 0.35);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  padding: 10px 6px calc(10px + env(safe-area-inset-bottom, 0px));
}

.eco-mobile-dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.5625rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 12px;
  min-width: 52px;
  transition: color 0.2s, background 0.2s;
  border-top: 2px solid transparent;
}

.eco-mobile-dock a i {
  font-size: 1.1875rem;
  transition: transform 0.2s;
}

.eco-mobile-dock a:nth-child(1).active,
.eco-mobile-dock a:nth-child(1):hover { color: #a78bfa; border-top-color: #a78bfa; background: rgba(167, 139, 250, 0.12); }
.eco-mobile-dock a:nth-child(2).active,
.eco-mobile-dock a:nth-child(2):hover { color: var(--eco-teal); border-top-color: var(--eco-teal); background: rgba(45, 212, 191, 0.12); }
.eco-mobile-dock a:nth-child(3).active,
.eco-mobile-dock a:nth-child(3):hover { color: var(--eco-magenta); border-top-color: var(--eco-magenta); background: rgba(232, 121, 249, 0.12); }
.eco-mobile-dock a:nth-child(4).active,
.eco-mobile-dock a:nth-child(4):hover { color: #fbbf24; border-top-color: #fbbf24; background: rgba(251, 191, 36, 0.12); }
.eco-mobile-dock a:nth-child(5).active,
.eco-mobile-dock a:nth-child(5):hover { color: #fb7185; border-top-color: #fb7185; background: rgba(251, 113, 133, 0.12); }

.eco-mobile-dock a.active i {
  transform: scale(1.1);
}

/* Mobile nav */
.ecosystem-page .header .mobile-nav-toggle {
  display: none !important;
}

.ecosystem-page .scroll-top {
  z-index: 9990;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

.ecosystem-page .mobile-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(10, 6, 24, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
  padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 10px;
}

.ecosystem-page .mobile-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ecosystem-page .mobile-logo img {
  max-height: 32px;
  filter: brightness(0) invert(1);
}

.ecosystem-page .mobile-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ecosystem-page .mobile-nav-cta {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--eco-purple), var(--eco-teal-dim));
  color: #fff !important;
  text-decoration: none;
}

.ecosystem-page .mobile-menu-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
}

.ecosystem-page .mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: rgba(10, 6, 24, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  border: none;
  cursor: pointer;
}

.ecosystem-page.mobile-menu-open .mobile-menu-backdrop {
  opacity: 1;
  visibility: visible;
}

.ecosystem-page .mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 86vw);
  height: 100dvh;
  background: linear-gradient(180deg, #0a0618 0%, #1e1b4b 100%);
  border-left: 1px solid rgba(124, 58, 237, 0.3);
  z-index: 10045;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ecosystem-page .mobile-menu.active {
  transform: translateX(0);
}

.ecosystem-page .mobile-menu-header {
  padding: calc(56px + env(safe-area-inset-top, 0px) + 8px) 20px 16px;
  border-bottom: 1px solid var(--eco-border);
}

.ecosystem-page .mobile-menu-header span {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  display: block;
}

.ecosystem-page .mobile-menu-header small {
  font-size: 0.6875rem;
  color: var(--eco-teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ecosystem-page .mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 12px;
}

.ecosystem-page .mobile-menu ul li a {
  display: block;
  padding: 13px 14px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: var(--eco-glass);
  border: 1px solid var(--eco-border);
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.9375rem;
}

.ecosystem-page.mobile-menu-open {
  overflow: hidden;
}

@media (max-width: 1199px) {
  .ecosystem-page #header {
    display: none !important;
  }

  .eco-mobile-dock {
    display: flex;
  }

  .ecosystem-page .main {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .eco-hero .container {
    padding-top: calc(56px + env(safe-area-inset-top, 0px) + 1.5rem);
  }
}

@media (min-width: 1200px) {
  .ecosystem-page .mobile-navbar {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .eco-constellation,
  .eco-problems,
  .eco-sensorhub,
  .eco-sensorhub__panel.active,
  .eco-stage__picker,
  .eco-dashboard,
  .eco-mosaic,
  .eco-specs,
  .eco-dc-hub,
  .eco-dc-grid,
  .eco-dc-metrics,
  .eco-dashboard-strip,
  .eco-deploy__header,
  .eco-deploy__spotlight,
  .eco-deploy__bento {
    grid-template-columns: 1fr;
  }

  .eco-deploy__card,
  .eco-deploy__card--tall,
  .eco-deploy__card--wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .eco-deploy__venues {
    grid-template-columns: repeat(2, 1fr);
  }

  .eco-dc-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .eco-dc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .eco-pick__thumb {
    width: 72px;
    height: 48px;
  }

  .eco-sensorhub__nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .eco-sensorhub__tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .eco-dashboard__features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .eco-constellation {
    grid-template-columns: repeat(2, 1fr);
  }

  .eco-problems {
    grid-template-columns: 1fr;
  }

  .eco-dc-grid {
    grid-template-columns: 1fr;
  }

  .eco-deploy__venues {
    grid-template-columns: 1fr;
  }

  .eco-deploy__bento {
    grid-template-columns: 1fr 1fr;
  }
}
