/* ═══════════════════════════════════════════════════════════
   IoTFIY — Premium visual cards & brand imagery
   ═══════════════════════════════════════════════════════════ */

/* ── Visual card system ── */
.index-page .iot-v-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  display: flex;
  flex-direction: column;
}

.index-page .iot-v-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.25);
}

.index-page .iot-v-card__visual {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #0f172a;
}

.index-page .iot-v-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.index-page .iot-v-card:hover .iot-v-card__visual img {
  transform: scale(1.06);
}

.index-page .iot-v-card__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.5) 100%);
  pointer-events: none;
}

.index-page .iot-v-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.index-page .iot-v-card__tag--hot {
  background: linear-gradient(135deg, #ef4444, #f97316);
  border: none;
}

.index-page .iot-v-card__tag--new {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
}

.index-page .iot-v-card__metric {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #c7d2fe;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.index-page .iot-v-card__body {
  padding: 1.75rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.index-page .iot-v-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

.index-page .iot-v-card__body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.625rem;
  line-height: 1.25;
}

.index-page .iot-v-card__body p {
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 1;
}

.index-page .iot-v-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.25rem;
}

.index-page .iot-v-card__chip {
  background: rgba(99, 102, 241, 0.08);
  color: #4338ca;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

.index-page .iot-v-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6366f1;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.index-page .iot-v-card__link:hover {
  color: #4338ca;
  gap: 12px;
}

/* Service cards — left-aligned body */
.index-page #services .iot-v-card__body {
  text-align: left;
}

.index-page #services .iot-v-card__visual {
  height: 180px;
}

/* Product cards */
.index-page #products .iot-v-card__visual {
  height: 220px;
}

/* Industry cards — full bleed image */
.index-page #alt-services .iot-v-card {
  border-radius: 20px;
}

.index-page #alt-services .iot-v-card__visual {
  height: 220px;
}

.index-page #alt-services .service-item {
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.index-page #alt-services .service-item .img {
  display: none;
}

.index-page #alt-services .service-item .details {
  padding: 0;
}

.index-page #alt-services .service-item .details h3 {
  font-family: 'Space Grotesk', sans-serif;
}

/* ── About visual panel ── */
.index-page .about-visual-panel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.12);
}

.index-page .about-visual-panel img {
  width: 100%;
  height: auto;
  display: block;
}

.index-page .about-float-stat {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 1rem 1.25rem;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.1);
  z-index: 2;
}

.index-page .about-float-stat--top {
  top: -16px;
  right: -16px;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
  border: none;
}

.index-page .about-float-stat--bottom {
  bottom: -16px;
  left: -16px;
}

.index-page .about-float-stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.index-page .about-float-stat .lbl {
  font-size: 0.8125rem;
  opacity: 0.85;
  margin-top: 4px;
}

.index-page .about-float-stat--bottom .num {
  color: #6366f1;
}

/* ── Ecosystem showcase ── */
.index-page .iot-ecosystem {
  background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.index-page .iot-ecosystem::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(34, 211, 238, 0.1), transparent);
  pointer-events: none;
}

.index-page .iot-ecosystem .section-badge {
  background: rgba(99, 102, 241, 0.2) !important;
  color: #c7d2fe !important;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.index-page .iot-ecosystem h2 {
  color: #fff !important;
}

.index-page .iot-ecosystem .lead-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.index-page .eco-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  position: relative;
}

.index-page .eco-step {
  flex: 1 1 140px;
  max-width: 180px;
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}

.index-page .eco-step__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(124, 58, 237, 0.4));
  border: 1px solid rgba(129, 140, 248, 0.4);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.index-page .eco-step:hover .eco-step__icon {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.35);
}

.index-page .eco-step h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.index-page .eco-step p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0;
}

.index-page .eco-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(129, 140, 248, 0.5);
  font-size: 1.25rem;
  font-weight: 300;
}

.index-page .eco-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.index-page .eco-stat {
  text-align: center;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.index-page .eco-stat .val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #a5b4fc;
  display: block;
}

.index-page .eco-stat .lbl {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* ── Client logo strip ── */
.index-page .client-showcase {
  padding: 3rem 0;
  background: #fff;
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.index-page .client-showcase__label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.index-page .client-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3rem;
}

.index-page .client-logo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-weight: 600;
  font-size: 0.9375rem;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.index-page .client-logo-item i {
  font-size: 1.5rem;
  color: #6366f1;
}

.index-page .client-logo-item:hover {
  opacity: 1;
  color: #4338ca;
}

/* ── Mobile adjustments ── */
@media (max-width: 767px) {
  .index-page .eco-step:not(:last-child)::after {
    display: none;
  }

  .index-page .eco-flow {
    gap: 0.5rem;
  }

  .index-page .eco-step {
    flex: 0 0 calc(50% - 0.5rem);
    max-width: none;
  }

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

  .index-page .about-float-stat--top,
  .index-page .about-float-stat--bottom {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: 1rem;
    display: inline-block;
  }

  .index-page .about-visual-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
}

@media (min-width: 768px) {
  .index-page .about-visual-wrap {
    position: relative;
  }
}
