/* ============================================================
   BAJILLION LABS — PRODUCTS PAGE REDESIGN
   Aesthetic: Premium Dark/Light Fusion, Glassmorphism, Mesh Gradients
   ============================================================ */

/* ── HERO SECTION ────────────────────────────────────────── */
.inner-hero {
  position: relative;
  padding: calc(var(--nav-h) + 100px) var(--page-pad) 140px;
  background: var(--ivory);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Dynamic Mesh Background */
.inner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(253, 128, 0, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(27, 140, 140, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(15, 31, 61, 0.02) 0%, transparent 60%);
  z-index: 0;
}

.inner-hero-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.inner-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(253, 128, 0, 0.08);
  border: 1px solid rgba(253, 128, 0, 0.2);
  border-radius: 100px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.inner-hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.inner-hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--teal);
  position: relative;
}

.inner-hero-title em::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(27, 140, 140, 0.1);
  z-index: -1;
}

.inner-hero-desc {
  font-size: 19px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 40px;
}

.inner-hero-visual {
  position: relative;
}

.inner-hero-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.inner-hero-visual:hover img {
  transform: perspective(1000px) rotateY(0) rotateX(0) scale(1.02);
}

/* Floating Elements for Hero */
.hero-dot {
  position: absolute;
  width: 120px;
  height: 120px;
  background: var(--amber);
  filter: blur(60px);
  opacity: 0.15;
  z-index: -1;
  animation: float 10s infinite alternate;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, -30px); }
}

/* ── FILTER BAR ──────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--ivory);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── FEATURED PRODUCT ───────────────────────────────────── */
.featured-section {
  padding: 100px var(--page-pad);
  background: var(--ivory-2);
}

.featured-card {
  background: var(--ivory);
  border-radius: 32px;
  border: 1px solid var(--border);
  padding: 70px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(27, 140, 140, 0.03), rgba(253, 128, 0, 0.03));
  pointer-events: none;
}

.feat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 3px;
  display: block;
  margin-bottom: 20px;
}

.feat-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  color: var(--navy);
  font-weight: 900;
  margin-bottom: 24px;
  line-height: 1.15;
}

.feat-desc {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 40px;
}

.feat-stats {
  display: flex;
  gap: 40px;
}

.feat-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--teal);
  display: block;
}

.feat-stat-lbl {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-3);
  letter-spacing: 1.5px;
  font-weight: 700;
}

/* Modules Grid */
.modules-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.module-row {
  background: var(--ivory-2);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.module-row:hover {
  background: var(--ivory);
  border-color: var(--teal);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.module-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
}

.module-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 8px;
}

.module-sub {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ── PRODUCT GRID ────────────────────────────────────────── */
.all-products-section {
  padding: 120px var(--page-pad);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  margin-top: 50px;
}

/* Glassmorphic Cards */
.product-card {
  background: rgba(250, 250, 247, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.product-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.product-card:hover::after {
  transform: scaleX(1);
}

.product-type-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-3);
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: block;
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 16px;
}

.product-card-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.product-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.p-tag {
  background: var(--ivory-3);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy-3);
}

.btn-text {
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}

.btn-text:hover {
  color: var(--amber);
  gap: 12px;
}

/* Horizontal Variant */
.product-card.horizontal {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 60px;
  padding: 50px;
}

.pc-left {
  flex: 1;
}

.pc-right {
  flex: 0.8;
}

.pc-hero-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: transform 0.5s ease;
}

.product-card.horizontal:hover .pc-hero-img {
  transform: scale(1.05) rotate(2deg);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .inner-hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .inner-hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .inner-hero-label {
    justify-content: center;
  }
  .filter-bar {
    justify-content: center;
  }
  .featured-card {
    grid-template-columns: 1fr;
    padding: 40px;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .product-card.horizontal {
    flex-direction: column;
    padding: 30px;
  }
  .modules-list {
    grid-template-columns: 1fr;
  }
}