/* ═══════════════════════════════════════════════════════════════
   HOME — page-specific styles only. Shared tokens/nav/footer/
   about-img/division-card live in base.css.
   ═══════════════════════════════════════════════════════════════ */

/* ─── HERO ─── */
#hero {
  min-height: 65vh;
  background: #f0f4ff;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center;
  padding-top: 80px;
}
/* Background blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
  pointer-events: none;
}
.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #0d6efd 0%, transparent 70%);
  top: -120px; left: -120px;
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #00b894 0%, transparent 70%);
  bottom: -80px; left: 30%;
  opacity: 0.18;
}
.blob-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #6c63ff 0%, transparent 70%);
  top: 30%; right: -80px;
  opacity: 0.20;
}
/* DNA canvas */
#dnaCanvas {
  position: absolute;
  right: 0; top: 0;
  height: 100%;
  width: 55%;
  pointer-events: none;
}
/* Floating dots */
.float-dot {
  position: absolute;
  border-radius: 50%;
  animation: floatDot 6s ease-in-out infinite;
}
@keyframes floatDot {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: white;
  border: 1px solid rgba(13,110,253,0.15);
  border-radius: 99px;
  padding: 0.35rem 1rem;
  font-size: calc(0.78rem * var(--km-scale, 1));
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.hero-badge i { font-size: calc(0.7rem * var(--km-scale, 1)); color: var(--secondary); }
.hero-title {
  font-size: calc(clamp(2.2rem, 4vw, 3.5rem) * var(--km-scale, 1));
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}
.hero-title .accent-word {
  background: linear-gradient(135deg, var(--logo-blue), var(--primary), var(--logo-blue));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 5s ease infinite;
}
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-desc {
  font-size: calc(1.05rem * var(--km-scale, 1));
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: calc(0.9rem * var(--km-scale, 1));
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(13,110,253,0.3);
}
.btn-primary-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(13,110,253,0.4);
  color: white;
}
.btn-outline-hero {
  background: white;
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 0.8rem 2rem;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: calc(0.9rem * var(--km-scale, 1));
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.btn-outline-hero:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
/* Stat pills */
.hero-stats {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  margin-top: 3rem;
}
.stat-pill {
  background: white;
  border-radius: 12px;
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
  min-width: 100px;
}
.stat-pill strong {
  display: block;
  font-family: var(--font-heading);
  font-size: calc(1.6rem * var(--km-scale, 1));
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-pill span {
  font-size: calc(0.72rem * var(--km-scale, 1));
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── HERO BLEND ENHANCEMENTS (v2-inspired) ─── */
#heroParticleCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}
.hero-aurora {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
@keyframes auroraShiftA {
  0% { transform: translateX(-30%) rotate(-3deg) scale(1.1); }
  50% { transform: translateX(10%) rotate(2deg) scale(1.2); }
  100% { transform: translateX(-30%) rotate(-3deg) scale(1.1); }
}
@keyframes auroraShiftB {
  0% { transform: translateX(20%) rotate(2deg) scale(1.15); }
  50% { transform: translateX(-20%) rotate(-3deg) scale(1.05); }
  100% { transform: translateX(20%) rotate(2deg) scale(1.15); }
}
.hero-aurora-1 { animation: auroraShiftA 14s ease-in-out infinite; }
.hero-aurora-2 { animation: auroraShiftB 18s ease-in-out infinite; }

.badge-pulse-dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--secondary);
  display: inline-block;
  flex-shrink: 0;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3.2); opacity: 0; }
}
.badge-pulse-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  animation: pulseRing 2s ease-out infinite;
}

@keyframes shimmerSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(220%); }
}
.shimmer-btn { position: relative; overflow: hidden; }
.shimmer-btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: shimmerSweep 3.2s ease-in-out infinite;
}

@keyframes floatIconHero {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(4deg); }
}
.hero-float-icon {
  position: absolute;
  animation: floatIconHero 6.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

/* ─── ABOUT (home teaser) ─── */
#about { background: white; }
.about-feature {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 1.4rem;
}
.about-feature .feat-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: calc(1rem * var(--km-scale, 1));
  margin-top: 2px;
}
.about-feature h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: calc(0.92rem * var(--km-scale, 1));
  margin-bottom: 0.2rem;
  color: var(--text);
}
.about-feature p { font-size: calc(0.85rem * var(--km-scale, 1)); color: var(--text-muted); margin: 0; }

/* ─── DIVISIONS (home-only "Learn More" link) ─── */
#divisions { background: var(--bg); }
.btn-learn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: calc(0.82rem * var(--km-scale, 1));
  text-decoration: none;
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  color: var(--text);
  transition: all 0.25s;
  align-self: flex-start;
  margin-top: 0.5rem;
}
.div-1 .btn-learn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.div-2 .btn-learn:hover { border-color: #e67e22; color: #e67e22; background: #fef5e7; }
.div-3 .btn-learn:hover { border-color: #2d3436; color: #2d3436; background: #f0f0f0; }

/* ─── PRODUCTS TEASER ───
   Scoped under #products: this is a simpler, homepage-only card style,
   distinct from the full .product-card component on the Products page
   (products.css) — scoping prevents the two from colliding when both
   stylesheets are ever present. */
#products { background: white; }
#products .product-card {
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.35s ease;
  cursor: default;
}
#products .product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(13,110,253,0.15);
}
#products .product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: grayscale(50%);
  transition: filter 0.4s ease;
  display: block;
}
#products .product-card:hover img { filter: grayscale(0%); }
#products .product-card-body {
  padding: 1.2rem;
}
#products .product-card-body h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: calc(0.9rem * var(--km-scale, 1));
  color: var(--text);
  margin-bottom: 0.25rem;
}
#products .product-card-body p {
  font-size: calc(0.78rem * var(--km-scale, 1));
  color: var(--text-muted);
  margin: 0;
}
#products .product-cat-badge {
  display: inline-block;
  font-size: calc(0.68rem * var(--km-scale, 1));
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.3px;
}

/* ─── BRANDS / PARTNERS ─── */
#partners { background: var(--bg); padding: 60px 0; }
.partners-label {
  font-size: calc(0.75rem * var(--km-scale, 1));
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2.5rem;
}
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 2rem;
  filter: grayscale(100%);
  opacity: 0.45;
  transition: all 0.3s;
}
.partner-logo:hover { filter: grayscale(0%); opacity: 1; }
.partner-logo span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: calc(1.1rem * var(--km-scale, 1));
  color: var(--text);
  letter-spacing: -0.5px;
}

/* ─── WHY US ─── */
#whyus { background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #6c63ff 100%); }
.whyus-card {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(8px);
  transition: background 0.3s, transform 0.3s;
  height: 100%;
}
.whyus-card:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-4px);
}
.whyus-card .icon {
  font-size: calc(2rem * var(--km-scale, 1));
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}
.whyus-card h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: white;
  margin-bottom: 0.6rem;
  font-size: calc(1rem * var(--km-scale, 1));
}
.whyus-card p { font-size: calc(0.85rem * var(--km-scale, 1)); color: rgba(255,255,255,0.75); margin: 0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 991px) {
  #dnaCanvas { width: 100%; opacity: 0.12; }
  .hero-content { text-align: center; }
  .hero-badge { margin: 0 auto 1.5rem; display: inline-flex; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
}
@media (max-width: 575px) {
  .hero-title { font-size: calc(1.9rem * var(--km-scale, 1)); }
  .stat-pill { min-width: 80px; padding: 0.7rem 0.9rem; }
  .stat-pill strong { font-size: calc(1.3rem * var(--km-scale, 1)); }
}
