/* ========================================
   CellManager.io - Landing Page Styles
   ======================================== */

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fafaf9;
}

::selection { background-color: #0ea5e9; color: white; }

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(14, 165, 233, 0.3); }
  50% { box-shadow: 0 0 30px rgba(14, 165, 233, 0.5); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-slow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

/* Animation Classes */
.animate-fade-up { animation: fadeInUp 0.6s ease-out; }
.animate-glow { animation: glow 2s ease-in-out infinite; }
.animate-slide-right { animation: slideInRight 0.6s ease-out; }
.animate-pulse-slow { animation: pulse-slow 2s ease-in-out infinite; }


/* ========================================
   Layout Components
   ======================================== */

/* Hero Gradient */
.gradient-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0ea5e9 100%);
}

/* Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #0ea5e9, #06b6d4, #0ea5e9);
  background-size: 200% 100%;
  z-index: 9999;
  transition: width 0.1s ease;
  animation: gradientMove 2s linear infinite;
}

/* ========================================
   Cards & Hover Effects
   ======================================== */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-glow {
  position: relative;
  overflow: hidden;
}

.card-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card-glow:hover::before {
  opacity: 1;
}

/* Hierarchy Cards */
.hierarchy-card {
  position: relative;
  transition: all 0.3s ease;
}

.hierarchy-card:hover {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* Level Badges */
.level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: bold;
  color: white;
  margin-bottom: 12px;
}

.level-1 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.level-2 { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.level-3 { background: linear-gradient(135deg, #10b981, #047857); }
.level-4 { background: linear-gradient(135deg, #f59e0b, #d97706); }

/* Stat Card */
.stat-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 4px solid #0ea5e9;
}

/* Report Preview */
.report-preview {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
}

/* Feature Tags */
.feature-tag {
  display: inline-block;
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
  color: #0369a1;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin: 4px;
}

/* Benefit Items */
.benefit-item {
  display: flex;
  align-items: start;
  gap: 12px;
}

.benefit-icon {
  width: 24px;
  height: 24px;
  background: #dbeafe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}


/* ========================================
   Reveal Animations (Scroll)
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================
   Typing Effect
   ======================================== */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: #0ea5e9;
  margin-left: 4px;
  animation: blink 1s infinite;
}

/* ========================================
   WhatsApp Button
   ======================================== */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* ========================================
   Particles
   ======================================== */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float 15s infinite;
}

/* ========================================
   Navigation
   ======================================== */
html {
  scroll-behavior: smooth;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0ea5e9, #06b6d4);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ========================================
   Custom Scrollbar
   ======================================== */
::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0ea5e9, #0284c7);
  border-radius: 10px;
  border: 3px solid #e2e8f0;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0284c7, #0369a1);
}

/* Firefox scrollbar */
* {
  scrollbar-width: auto;
  scrollbar-color: #0ea5e9 #e2e8f0;
}

/* ========================================
   Form Styles
   ======================================== */
.form-success {
  background-color: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}

.form-error {
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.slug-available {
  color: #16a34a;
}

.slug-unavailable {
  color: #dc2626;
}

.slug-checking {
  color: #ca8a04;
}
