/* ── Base resets ── */
/* NOTE: Do NOT add unlayered * { margin/padding } resets here.
   Tailwind v4 handles resets in @layer base, and unlayered rules
   would override ALL Tailwind utility classes (mb-*, px-*, py-*, etc.)
   due to CSS Cascade Layers precedence rules. */
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background: #0A0A0A; color: #fff; overflow-x: hidden; }

/* ── Hero gradient mesh ── */
.hero-gradient {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(0,230,118,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(0,200,83,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(0,255,136,0.05) 0%, transparent 50%);
}

/* ── Animated grain overlay ── */
.grain::after {
  content: ''; position: fixed; inset: -50%; z-index: 9999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px;
  opacity: 0.4;
}

/* ── Glow effects ── */
.glow-green {
  box-shadow: 0 0 60px rgba(0,230,118,0.3), 0 0 120px rgba(0,230,118,0.1);
}
.glow-text {
  text-shadow: 0 0 40px rgba(0,230,118,0.4), 0 0 80px rgba(0,230,118,0.15);
}
.glow-line {
  background: linear-gradient(90deg, transparent, #00E676, transparent);
  height: 1px;
}

/* ── Badge button ── */
.cta-badge {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cta-badge:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0,230,118,0.35);
}

/* ── Feature cards ── */
.feature-card {
  background: linear-gradient(135deg, rgba(30,30,30,0.8), rgba(20,20,20,0.6));
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card:hover {
  border-color: rgba(0,230,118,0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(0,230,118,0.08);
}
.feature-icon {
  background: linear-gradient(135deg, rgba(0,230,118,0.15), rgba(0,230,118,0.05));
  border: 1px solid rgba(0,230,118,0.2);
}

/* ── Phone mockup ── */
.phone-mockup {
  position: relative;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6)) drop-shadow(0 0 40px rgba(0,230,118,0.1));
}
.phone-frame {
  background: linear-gradient(160deg, #2A2A2A, #1A1A1A);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 36px;
  padding: 12px;
  position: relative;
}
.phone-frame::before {
  content: ''; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 6px; background: #1E1E1E; border-radius: 3px;
}
.phone-screen {
  border-radius: 26px; overflow: hidden; background: #000;
}

/* ── Stats counter ── */
.stat-item {
  position: relative;
}
.stat-item::after {
  content: ''; position: absolute; right: 0; top: 15%; height: 70%;
  width: 1px; background: linear-gradient(180deg, transparent, rgba(0,230,118,0.2), transparent);
}
.stat-item:last-child::after { display: none; }

/* ── Scroll animations ── */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Frequency wave decoration ── */
.freq-wave {
  position: absolute; width: 100%; height: 100px; opacity: 0.04; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent, transparent 8px, #00E676 8px, #00E676 9px);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100'%3E%3Cpath d='M0,50 Q50,10 100,50 Q150,90 200,50 Q250,10 300,50 Q350,90 400,50 Q450,10 500,50 Q550,90 600,50 Q650,10 700,50 Q750,90 800,50 Q850,10 900,50 Q950,90 1000,50 Q1050,10 1100,50 Q1150,90 1200,50' fill='none' stroke='white' stroke-width='40'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100'%3E%3Cpath d='M0,50 Q50,10 100,50 Q150,90 200,50 Q250,10 300,50 Q350,90 400,50 Q450,10 500,50 Q550,90 600,50 Q650,10 700,50 Q750,90 800,50 Q850,10 900,50 Q950,10 1000,50 Q1050,90 1100,50 Q1150,90 1200,50' fill='none' stroke='white' stroke-width='40'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
}

/* ── Tuning indicator animation ── */
@keyframes pulse-green {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.pulse-dot {
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim-left { animation: slide-in-left 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.anim-right { animation: slide-in-right 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }
.anim-up-1 { animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
.anim-up-2 { animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both; }
.anim-up-3 { animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-content { text-align: center; }
  .stat-item::after { display: none; }
}
