/* ============================================
   UAVChip.com - Homepage Styles
   ============================================ */

/* ===== Hero Section ===== */
.hero {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,87,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,87,255,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-glow-1 {
  position: absolute;
  top: -20%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,87,255,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-glow-2 {
  position: absolute;
  bottom: -30%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,201,167,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(0,87,255,0.15);
  border: 1px solid rgba(0,87,255,0.3);
  color: #7EB8FF;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-label .dot {
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
  max-width: 560px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat {
  border-left: 2px solid rgba(255,255,255,0.15);
  padding-left: 1.25rem;
}

.hero-stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-stat-number span { color: var(--secondary); }

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.2rem;
}

.hero-visual {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.hero-chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 380px;
}

.chip-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.chip-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(0,87,255,0.4);
  transform: translateY(-3px);
}

.chip-card.featured {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0,87,255,0.15);
  border-color: rgba(0,87,255,0.35);
}

.chip-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chip-icon svg { width: 22px; height: 22px; color: white; }

.chip-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
  font-family: var(--font-mono);
}

.chip-category { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

.chip-stock {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--secondary);
  margin-top: 0.375rem;
}

.chip-stock .dot {
  width: 5px;
  height: 5px;
  background: var(--secondary);
  border-radius: 50%;
}

/* ===== Search Hero ===== */
.hero-search {
  margin-top: 2rem;
  max-width: 600px;
}

.hero-search-box {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.hero-search-box svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  margin: auto 0 auto 1.25rem;
  flex-shrink: 0;
}

.hero-search-box input {
  flex: 1;
  padding: 1rem 0.75rem;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--dark);
  background: transparent;
}

.hero-search-box input::placeholder { color: var(--text-muted); }

.hero-search-box button {
  margin: 0.375rem;
  padding: 0.625rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.hero-search-box button:hover { background: var(--primary-dark); }

.popular-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.875rem;
}

.popular-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ===== Category Section ===== */
.categories-section { background: var(--white); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.cat-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
  display: block;
}

.cat-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

.cat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.cat-icon svg { width: 28px; height: 28px; }

.cat-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.375rem;
}

.cat-count {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===== Featured Products ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.product-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}

.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  color: inherit;
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.product-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}

.product-manufacturer {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.product-spec-tag {
  padding: 0.2rem 0.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: var(--text-light);
  font-family: var(--font-mono);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.product-stock {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
}

.stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.stock-dot.in-stock { background: var(--success); }
.stock-dot.low-stock { background: var(--warning); }
.stock-dot.out-stock { background: var(--danger); }

/* ===== Solutions Section ===== */
.solutions-section { background: var(--bg); }

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.solution-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition);
  display: block;
  text-decoration: none;
  color: inherit;
}

.solution-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  color: inherit;
}

.solution-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.solution-img svg {
  width: 80px;
  height: 80px;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.solution-body { padding: 1.5rem; }

.solution-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.solution-desc {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.solution-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

/* ===== Why Us ===== */
.why-section { background: var(--white); }

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

.feature-item { text-align: center; }

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.feature-icon svg { width: 30px; height: 30px; }

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.625rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== Manufacturers ===== */
.mfr-section { background: var(--dark); padding: 3.5rem 0; }

.mfr-title {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2rem;
}

.mfr-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.mfr-logo {
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
  transition: all var(--transition);
  cursor: pointer;
}

.mfr-logo:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, #1a3a6e 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0,87,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}

/* ===== Blog Section ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.blog-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: inherit;
}

.blog-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-body { padding: 1.25rem; }

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.blog-category { font-size: 0.75rem; font-weight: 600; color: var(--primary); }
.blog-date { font-size: 0.75rem; color: var(--text-muted); }

.blog-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.blog-excerpt { font-size: 0.875rem; color: var(--text-light); line-height: 1.6; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero { padding: 4rem 0 3rem; }
  .hero-chip-grid { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { min-height: auto; }
  .hero-stats { gap: 1.5rem; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}
