/* ==========================================================
   MZAP.APP - MODERN DESIGN SYSTEM & ANIMATIONS
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --color-brand: #25D366;
  --color-brand-hover: #1EBE5D;
  --color-brand-dark: #128C7E;
  --color-brand-deep: #075E54;
  --color-brand-glow: rgba(37, 211, 102, 0.35);
  
  --bg-primary: #0A0F0D;
  --bg-secondary: #111A16;
  --bg-card: rgba(22, 33, 28, 0.7);
  --bg-card-hover: rgba(28, 44, 37, 0.85);
  --border-card: rgba(37, 211, 102, 0.15);
  --border-card-hover: rgba(37, 211, 102, 0.35);
  
  --text-main: #F0FDF4;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-primary);
}

/* Background Glowing Mesh Gradients */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  background: 
    radial-gradient(circle at 15% 15%, rgba(37, 211, 102, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(18, 140, 126, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(37, 211, 102, 0.08) 0%, transparent 55%),
    #0A0F0D;
}

/* Noise overlay */
.bg-grid-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Glassmorphism Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: var(--border-card-hover);
  box-shadow: 0 25px 50px -12px rgba(37, 211, 102, 0.15), inset 0 1px 0 rgba(37, 211, 102, 0.2);
  transform: translateY(-2px);
}

/* Glow Elements */
.glow-brand {
  box-shadow: 0 0 40px -5px var(--color-brand-glow);
}

.glow-text {
  text-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #052E16;
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #29E870 0%, #15A090 100%);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(37, 211, 102, 0.6);
  color: #032010;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F0FDF4;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(37, 211, 102, 0.4);
  color: #25D366;
  transform: translateY(-2px);
}

/* Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.875rem;
  border-radius: 9999px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #25D366;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Phone Mockup Styling */
.phone-frame {
  width: 320px;
  height: 640px;
  background: #020604;
  border: 8px solid #1E2923;
  border-radius: 44px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 30px 70px -15px rgba(0, 0, 0, 0.8),
    0 0 60px -10px rgba(37, 211, 102, 0.2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 22px;
  background: #1E2923;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 30;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-notch::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #0A0F0D;
  border-radius: 50%;
}

/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.5deg);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Quick chips */
.chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.chip:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.4);
  color: #25D366;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0A0F0D;
}

::-webkit-scrollbar-thumb {
  background: #1E2923;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #25D366;
}

/* Toast Notifications */
#toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #111A16;
  border: 1px solid var(--color-brand);
  color: #F0FDF4;
  text-align: center;
  border-radius: 12px;
  padding: 12px 20px;
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 0.875rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(37, 211, 102, 0.3);
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s;
}

#toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 40px;
}
