/* ============================================================
   SmartLite CRM — Website Stylesheet
   Custom styles that extend Tailwind CSS
   ============================================================ */

/* ── Fonts ────────────────────────────────────────────────── */
* { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

/* ── Smooth Scroll ────────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── Custom Properties ────────────────────────────────────── */
:root {
  --brand-indigo: #4F46E5;
  --brand-violet: #7C3AED;
  --brand-emerald: #10B981;
  --brand-dark: #0F172A;
  --brand-gray: #64748B;
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ── Nav ──────────────────────────────────────────────────── */
.nav-scrolled {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

/* ── Gradient Text ────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-emerald {
  background: linear-gradient(135deg, #10B981 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Gradient Buttons ─────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 0.625rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
  background: white;
  color: #4F46E5;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 0.625rem;
  border: 1.5px solid #C7D2FE;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: #4F46E5;
  background: #EEF2FF;
  transform: translateY(-1px);
}

.btn-white {
  background: white;
  color: #4F46E5;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 0.625rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* ── Hero Background ──────────────────────────────────────── */
.hero-bg {
  background: linear-gradient(160deg, #0F172A 0%, #1E1B4B 40%, #0F172A 100%);
  position: relative;
  overflow: hidden;
}

.hero-blob-1 {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,70,229,0.25) 0%, transparent 70%);
  border-radius: 50%;
  top: -200px; right: -100px;
  animation: blobFloat 8s ease-in-out infinite;
}
.hero-blob-2 {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -150px; left: -100px;
  animation: blobFloat 10s ease-in-out infinite reverse;
}
.hero-blob-3 {
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%; left: 30%;
  animation: blobFloat 6s ease-in-out infinite 2s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── Dashboard Mockup ─────────────────────────────────────── */
.dashboard-mockup {
  background: #1E293B;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
  animation: floatUpDown 4s ease-in-out infinite;
}

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.mockup-bar { height: 40px; background: #0F172A; display: flex; align-items: center; padding: 0 16px; gap: 6px; }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-sidebar { width: 56px; background: #0F172A; min-height: 100%; }
.mockup-content { flex: 1; padding: 16px; }
.mockup-stat { background: #334155; border-radius: 8px; padding: 12px; }
.mockup-chart-bar { background: linear-gradient(to top, #4F46E5, #818CF8); border-radius: 4px 4px 0 0; }
.mockup-row { background: #334155; border-radius: 6px; height: 28px; }
.pulse-dot { animation: pulseDot 2s ease-in-out infinite; }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ── Feature Cards ────────────────────────────────────────── */
.feature-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  padding: 1.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,70,229,0.03), rgba(124,58,237,0.03));
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  border-color: #A5B4FC;
  box-shadow: 0 10px 40px rgba(79,70,229,0.1);
  transform: translateY(-4px);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}

/* ── Step Cards ───────────────────────────────────────────── */
.step-connector {
  position: absolute;
  top: 26px; left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 2px;
  background: linear-gradient(to right, #C7D2FE, #DDD6FE);
}

/* ── Pricing Cards ────────────────────────────────────────── */
.pricing-card {
  background: white;
  border: 1.5px solid #E2E8F0;
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.3s ease;
}
.pricing-card:hover {
  border-color: #A5B4FC;
  box-shadow: 0 15px 50px rgba(79,70,229,0.12);
  transform: translateY(-4px);
}
.pricing-card.popular {
  border-color: #4F46E5;
  background: linear-gradient(160deg, #EEF2FF 0%, white 60%);
  box-shadow: 0 15px 50px rgba(79,70,229,0.15);
  transform: scale(1.03);
}
.pricing-card.popular:hover { transform: scale(1.03) translateY(-4px); }

.pricing-badge {
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Testimonial Cards ────────────────────────────────────── */
.testimonial-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  padding: 1.75rem;
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-item {
  border: 1px solid #E2E8F0;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.2s;
}
.faq-item:hover { border-color: #A5B4FC; }
.faq-item.open { border-color: #4F46E5; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer.open { max-height: 300px; }

/* ── Stats Counter ────────────────────────────────────────── */
.stat-number { font-variant-numeric: tabular-nums; }

/* ── Glow Effects ─────────────────────────────────────────── */
.glow-indigo { box-shadow: 0 0 30px rgba(79,70,229,0.3); }

/* ── Section dividers ─────────────────────────────────────── */
.wave-divider { display: block; width: 100%; }

/* ── Trust logos ──────────────────────────────────────────── */
.trust-logo {
  opacity: 0.5;
  transition: opacity 0.2s;
  filter: grayscale(100%);
}
.trust-logo:hover { opacity: 0.8; filter: grayscale(0%); }

/* ── Mobile menu ──────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.6);
  z-index: 50;
  backdrop-filter: blur(4px);
}
.mobile-menu.open { display: flex; }
.mobile-menu-panel {
  background: white;
  width: 300px;
  height: 100%;
  padding: 1.5rem;
  animation: slideInLeft 0.25s ease;
}
@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

/* ── Scroll animation ─────────────────────────────────────── */
[data-aos] { transition-property: transform, opacity; }

/* ── Responsive tweaks ────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-blob-1, .hero-blob-2, .hero-blob-3 { display: none; }
  .pricing-card.popular { transform: scale(1); }
}

/* ── Cookie / GDPR notice ─────────────────────────────────── */
.cookie-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1E293B;
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 100;
  flex-wrap: wrap;
}
