/* ═══════════════════════════════════════════════════════════
   IOTFIY SOLUTIONS — Product Portfolio (premium)
   ═══════════════════════════════════════════════════════════ */

.products-page {
  -webkit-text-size-adjust: 100%;
  background: #eef2f7;
  font-family: 'Inter', sans-serif;
}

.products-page h1,
.products-page h2,
.products-page h3,
.products-page h4 {
  font-family: 'Space Grotesk', sans-serif;
}

.products-page .header {
  background: rgba(15, 23, 42, 0.94) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(99, 102, 241, 0.22) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.18) !important;
  padding: 10px 0 !important;
}

.products-page .header .logo img {
  max-height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
}

.products-page .header .navmenu > ul > li > a {
  color: rgba(226, 232, 240, 0.9) !important;
}

.products-page .header .navmenu > ul > li > a.active,
.products-page .header .navmenu > ul > li > a:hover {
  color: #fff !important;
}

.products-page .header .btn-getstarted {
  background: linear-gradient(135deg, #6366f1, #7c3aed) !important;
  border: none !important;
  border-radius: 100px !important;
  padding: 8px 18px !important;
  font-size: 0.8125rem !important;
}

.products-page .main {
  padding-top: 0;
}

/* Hero */
.products-hero-premium {
  background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
  padding: calc(80px + 2rem) 0 3rem;
  position: relative;
  overflow: hidden;
}

.products-hero-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 20% 40%, rgba(99, 102, 241, 0.2), transparent),
    radial-gradient(ellipse 45% 35% at 85% 60%, rgba(34, 211, 238, 0.12), transparent);
  pointer-events: none;
}

.products-hero-premium .container {
  position: relative;
  z-index: 1;
}

.products-hero-premium .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.22);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.products-hero-premium h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1rem;
}

.products-hero-premium h1 .accent {
  background: linear-gradient(135deg, #818cf8, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.products-hero-premium .lead {
  color: rgba(226, 232, 240, 0.85);
  font-size: 1.0625rem;
  max-width: 680px;
  margin: 0 auto 1.75rem;
  line-height: 1.65;
}

.products-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.products-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.8125rem;
  font-weight: 600;
}

.products-stat i {
  color: #818cf8;
}

/* Process */
.products-process {
  background: #eef2f7;
  padding: 0 0 1.5rem;
  margin-top: -1rem;
  position: relative;
  z-index: 2;
}

.products-process__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: #fff;
  border-radius: 20px;
  padding: 1.25rem;
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.products-process__step {
  text-align: center;
  padding: 8px 6px;
}

.products-process__step i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(124, 58, 237, 0.08));
  color: #6366f1;
  font-size: 1.125rem;
}

.products-process__step span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.products-process__step small {
  display: block;
  font-size: 0.6875rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Featured */
.products-featured {
  background: #eef2f7;
  padding-bottom: 0.5rem;
}

.products-featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: linear-gradient(135deg, #064e3b 0%, #0f172a 55%, #1e1b4b 100%);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
}

.products-featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 72px rgba(16, 185, 129, 0.2);
  color: inherit;
}

.products-featured-card__visual {
  position: relative;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.products-featured-card__visual img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.products-featured-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 100px;
}

.products-featured-card__body {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.products-featured-card__body h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.products-featured-card__tagline {
  color: #6ee7b7;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.products-featured-card__body p {
  color: #cbd5e1;
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.products-featured-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.products-featured-card__tags span {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 100px;
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.products-read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #6ee7b7;
  margin-top: auto;
}

.products-read-link i {
  transition: transform 0.2s;
}

.products-featured-card:hover .products-read-link i {
  transform: translateX(4px);
}

/* Filters */
.products-filters-section {
  background: #eef2f7;
  padding: 1rem 0 0.5rem;
}

.products-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.products-filter-btn {
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: #fff;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

.products-filter-btn:hover {
  border-color: rgba(99, 102, 241, 0.4);
  color: #4338ca;
}

.products-filter-btn.active {
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

/* Grid */
.products-grid-section {
  background: #eef2f7;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product-item.is-hidden {
  display: none;
}

.product-card-premium {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s, box-shadow 0.25s;
}

.product-card-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(99, 102, 241, 0.12);
}

.product-card-premium__visual {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  overflow: hidden;
}

.product-card-premium__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.product-card-premium:hover .product-card-premium__visual img {
  transform: scale(1.05);
}

.product-card-premium__category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(99, 102, 241, 0.9);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 100px;
  z-index: 1;
}

.product-card-premium__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-premium__body h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.product-card-premium__body h3 a {
  color: #0f172a;
  text-decoration: none;
}

.product-card-premium__body h3 a:hover {
  color: #6366f1;
}

.product-card-premium__desc {
  color: #64748b;
  font-size: 0.8125rem;
  line-height: 1.55;
  margin-bottom: 0.875rem;
  flex: 1;
}

.product-card-premium__features {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-card-premium__features li {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 100px;
  background: rgba(99, 102, 241, 0.08);
  color: #4338ca;
}

.product-card-premium__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6366f1;
  text-decoration: none;
  margin-top: auto;
}

.product-card-premium__link i {
  transition: transform 0.2s;
}

.product-card-premium:hover .product-card-premium__link i {
  transform: translateX(4px);
}

/* CTA */
.products-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  text-align: center;
}

.products-cta h2 {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.products-cta p {
  color: #cbd5e1;
  max-width: 520px;
  margin: 0 auto 1.5rem;
  line-height: 1.65;
}

.products-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  transition: transform 0.25s;
}

.products-cta__btn:hover {
  transform: translateY(-2px);
  color: #fff !important;
}

/* Mobile nav */
.products-page .mobile-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  padding: 10px 16px;
}

.products-page .mobile-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.products-page .mobile-logo img {
  max-height: 32px;
  filter: brightness(0) invert(1);
}

.products-page .mobile-nav-cta {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 100px;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff !important;
  text-decoration: none;
}

.products-page .mobile-menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 4px 8px;
}

@media (max-width: 991px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-featured-card {
    grid-template-columns: 1fr;
  }

  .products-process__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .products-hero-premium {
    padding-top: calc(56px + env(safe-area-inset-top, 0px) + 2rem);
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .products-page .mobile-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .products-page .mobile-menu-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    background: rgba(99, 102, 241, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .products-page .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10040;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .products-page.mobile-menu-open .mobile-menu-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .products-page .mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 86vw);
    height: 100dvh;
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
    border-left: 1px solid rgba(99, 102, 241, 0.2);
    z-index: 10045;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .products-page .mobile-menu.active {
    transform: translateX(0);
  }

  .products-page .mobile-menu-header {
    display: flex;
    flex-direction: column;
    padding: calc(56px + 8px) 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .products-page .mobile-menu-header span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
  }

  .products-page .mobile-menu-header small {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #818cf8;
  }

  .products-page .mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 12px;
  }

  .products-page .mobile-menu ul li a {
    display: block;
    padding: 13px 14px;
    margin-bottom: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.9375rem;
  }

  .products-page .mobile-menu ul li a.active {
    background: rgba(99, 102, 241, 0.25);
    color: #fff;
  }

  .products-page.mobile-menu-open {
    overflow: hidden;
  }

  .products-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .products-filters::-webkit-scrollbar {
    display: none;
  }

  .products-filter-btn {
    flex-shrink: 0;
  }
}

@media (min-width: 768px) {
  .products-page .mobile-navbar {
    display: none !important;
  }
}
