/* ============ GLOBAL ============ */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif; }

::selection { background: rgba(34, 211, 238, 0.3); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0a0e1a; }
::-webkit-scrollbar-thumb { background: #1a2040; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2a3060; }

/* ============ NAV ============ */
#navbar {
  background: transparent;
  backdrop-filter: blur(0);
}
#navbar.scrolled {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============ HERO BG ============ */
.hero-bg {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.18), transparent 40%),
    url('https://images.unsplash.com/photo-1639762681485-074b7f938ba0?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  opacity: 0.45;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
}

/* ============ PRODUCT CARDS ============ */
.product-card {
  position: relative;
  background: linear-gradient(145deg, rgba(26, 32, 64, 0.6), rgba(17, 22, 42, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 20px 50px -10px rgba(34, 211, 238, 0.15);
}
.product-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.85) contrast(1.05);
}
.product-card:hover .product-image img { transform: scale(1.08); }
.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(17, 22, 42, 0.95));
  pointer-events: none;
}
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: #22d3ee;
  border-radius: 999px;
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  border-radius: 999px;
}

/* ============ WHY CARDS ============ */
.why-card {
  position: relative;
  padding: 1.75rem;
  background: linear-gradient(145deg, rgba(26, 32, 64, 0.5), rgba(17, 22, 42, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  transition: all 0.3s ease;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.why-card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.3); }
.why-card:hover::before { opacity: 1; }
.why-num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

/* ============ FORM ============ */
.form-input {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(10, 14, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.6rem;
  color: #fff;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(10, 14, 26, 0.8);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.7s ease forwards; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .hero-bg { opacity: 0.3; }
}
