/* ============================================================
   home.css — Homepage-specific styles
   ============================================================ */

/* === Hero Section === */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero-placeholder {
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 40%, #1a1a0a 0%, #0A0A0A 70%);
  position: relative;
}

/* Subtle animated particles */
.hero-placeholder__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-placeholder__particles span {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: var(--color-gold-400);
  border-radius: 50%;
  animation: floatUp 6s infinite ease-in;
  opacity: 0;
}

.hero-placeholder__particles span:nth-child(1) { left: 10%; animation-delay: 0s; }
.hero-placeholder__particles span:nth-child(2) { left: 20%; animation-delay: 0.8s; }
.hero-placeholder__particles span:nth-child(3) { left: 30%; animation-delay: 1.6s; }
.hero-placeholder__particles span:nth-child(4) { left: 45%; animation-delay: 0.4s; }
.hero-placeholder__particles span:nth-child(5) { left: 55%; animation-delay: 1.2s; }
.hero-placeholder__particles span:nth-child(6) { left: 65%; animation-delay: 2.0s; }
.hero-placeholder__particles span:nth-child(7) { left: 75%; animation-delay: 0.6s; }
.hero-placeholder__particles span:nth-child(8) { left: 85%; animation-delay: 1.8s; }
.hero-placeholder__particles span:nth-child(9) { left: 92%; animation-delay: 2.4s; }
.hero-placeholder__particles span:nth-child(10) { left: 50%; animation-delay: 3.0s; }

@keyframes floatUp {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.5) 50%,
    rgba(10, 10, 10, 0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 var(--space-md);
}

.hero-tag {
  display: inline-block;
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-400);
  margin-bottom: var(--space-md);
  padding: 0.4rem 1rem;
  border: 1px solid rgba(229, 168, 48, 0.3);
  border-radius: var(--radius-full);
  background: rgba(229, 168, 48, 0.06);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--color-text-muted);
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* === Product Feature Cards === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.product-feature-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-feature-card__image {
  width: 100%;
  transition: transform var(--transition-slow);
}

.product-feature-card:hover .product-feature-card__image {
  transform: scale(1.05);
}

.product-feature-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg) var(--space-md);
}

.product-feature-card__overlay h3 {
  font-size: var(--text-h4);
  margin-bottom: 0.35rem;
}

.product-feature-card__overlay p {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

/* === Solutions Grid Home === */
.solutions-grid-home {
  gap: var(--space-md);
}

/* === Stats Grid === */
.stats-grid {
  gap: var(--space-lg);
}

/* ===== Responsive ===== */
@media (max-width: 1023px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 767px) {
  .hero {
    min-height: 500px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }


  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}
