/* LUMU Visual Enhancement - Loaded directly by HTML, bypasses Tailwind/PostCSS */

/* === Noise texture (body-level) === */
body.noise-base::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  z-index: 9999;
  background-repeat: repeat;
  background-size: 200px 200px;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* === Section brand glow background === */
section.section::before,
section.bg-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(4,150,110,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(4,150,110,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* === Hero product background image === */
.hero-product-bg {
  position: absolute;
  inset: 0;
  background-image: url("/images/lumu_hero.png");
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  filter: blur(2px) saturate(1.3);
  z-index: 0;
}
.hero-product-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    hsl(var(--background) / 0.3) 0%,
    hsl(var(--background) / 0.7) 40%,
    hsl(var(--background)) 100%
  );
}

/* === Hero gradient text animation === */
.hero-gradient-text {
  background: linear-gradient(135deg, #f0fdf4 0%, #a7f3d0 40%, #059669 60%, #d1fae5 80%, #f0fdf4 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroGradientShift 6s ease-in-out infinite;
}
@keyframes heroGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* === Hero glow (radial gradient behind hero) === */
.hero-glow {
  position: relative;
}
.hero-glow::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse, hsl(var(--primary) / 0.2) 0%, hsl(var(--primary) / 0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-glow::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, transparent, hsl(var(--background)));
  pointer-events: none;
  z-index: 0;
}

/* === Hero grid pattern === */
.hero-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* === Section top glow === */
.section-glow-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80px at 50% 0%, hsl(var(--primary) / 0.08), transparent 70%);
  pointer-events: none;
}

/* === Section divider brand strip === */
.section-brand-strip {
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    hsl(var(--primary) / 0.15) 15%,
    hsl(var(--primary) / 0.4) 35%,
    hsl(var(--brand-light) / 0.5) 50%,
    hsl(var(--primary) / 0.4) 65%,
    hsl(var(--primary) / 0.15) 85%,
    transparent 100%
  );
  box-shadow: 0 0 20px hsl(var(--brand-light) / 0.15), 0 0 60px hsl(var(--primary) / 0.08);
}

/* === Section divider (original thin line) === */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, hsl(var(--primary) / 0.2) 30%, hsl(var(--brand-light) / 0.3) 50%, hsl(var(--primary) / 0.2) 70%, transparent 95%);
}

/* === CTA glow === */
.cta-glow::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, hsl(var(--primary) / 0.25) 0%, hsl(var(--primary) / 0.06) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* === Card glow (bottom brand light) === */
.card-glow {
  position: relative;
}
.card-glow::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 4px;
  background: radial-gradient(ellipse, hsl(var(--primary) / 0.2) 0%, transparent 80%);
  filter: blur(4px);
  pointer-events: none;
}

/* === Stat card enhanced shadow === */
.stat-card-enhanced {
  box-shadow:
    0 1px 3px rgba(0,0,0,0.06),
    0 8px 24px rgba(0,0,0,0.04),
    inset 0 1px 0 hsl(var(--primary) / 0.08);
}

/* === Floating particle === */
.floating-particle {
  position: absolute;
  border-radius: 9999px;
  opacity: 0.6;
  animation: floatParticle 6s ease-in-out infinite;
}

/* === Stat counter === */
.stat-counter {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}

/* === Stat progress bar === */
.stat-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
  border-radius: 9999px;
}

/* === Gradient text === */
.gradient-text {
  background: linear-gradient(120deg, hsl(var(--brand-deep)), hsl(var(--brand-light)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* === Animated gradient orbs === */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
}
.orb-green { background: hsl(var(--primary)); }
.orb-blue { background: #0ea5e9; }
.orb-purple { background: #8b5cf6; }
.orb-amber { background: #f59e0b; }

/* === Mesh gradient for dark sections === */
.mesh-dark {
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(4,150,110,0.18), transparent),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(139,92,246,0.12), transparent),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(14,165,233,0.08), transparent),
    hsl(222 47% 11%);
}

/* === Noise overlay === */
.noise-overlay {
  position: relative;
}
.noise-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
  background-repeat: repeat;
  background-size: 200px 200px;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* === Grid soft background === */
.grid-soft {
  background-image: radial-gradient(circle at 1px 1px, rgba(4,150,110,0.07) 1px, transparent 0);
  background-size: 26px 26px;
}

/* === Shimmer animation for stats === */
.stat-shimmer {
  background: linear-gradient(90deg, hsl(var(--brand-deep)), hsl(var(--brand-light)), hsl(var(--brand-deep)));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* === Mask fade bottom === */
.mask-fade-b {
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent);
  mask-image: linear-gradient(to bottom, black 70%, transparent);
}

/* === Glow line === */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.3), transparent);
}

/* === Card gradient backgrounds === */
.card-gradient-green {
  background: linear-gradient(135deg, hsl(160 84% 22% / 0.06), hsl(158 64% 52% / 0.04), transparent);
}
.card-gradient-blue {
  background: linear-gradient(135deg, hsl(199 89% 48% / 0.06), hsl(199 89% 48% / 0.04), transparent);
}
.card-gradient-purple {
  background: linear-gradient(135deg, hsl(263 70% 50% / 0.06), hsl(263 70% 50% / 0.04), transparent);
}
.card-gradient-amber {
  background: linear-gradient(135deg, hsl(38 92% 50% / 0.06), hsl(38 92% 50% / 0.04), transparent);
}

/* === Hero gradient shift (Tailwind class fallback) === */
.hero-gradient-shift {
  background-size: 200% 200% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: heroGradientShift 6s ease-in-out infinite;
}

/* === Stat number hero (large) === */
.stat-number-hero {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 768px) {
  .stat-number-hero { font-size: 4.5rem; }
}
