/**
 * SimSys Messager - Modern Eye-Catching & Retina-Sharp Design System
 * Unified CSS for Topbar Mega Menu, Hero, Services, Features, Workflow, 
 * Testimonials, Pricing, FAQs, Compliance Badges, and Legal Policies.
 */

:root {
  --sim-primary: #4f46e5;
  --sim-primary-rgb: 79, 70, 229;
  --sim-primary-hover: #4338ca;
  --sim-secondary: #06b6d4;
  --sim-secondary-rgb: 6, 182, 212;
  --sim-accent: #8b5cf6;
  --sim-whatsapp: #25d366;
  --sim-sms: #3b82f6;
  --sim-email: #f59e0b;
  --sim-dark: #0f172a;
  --sim-dark-card: #1e293b;
  --sim-light-bg: #f8fafc;
  --sim-card-bg: #ffffff;
  --sim-card-border: #e2e8f0;
  --sim-text-main: #0f172a;
  --sim-text-muted: #64748b;
  --sim-gradient-primary: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --sim-gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --sim-gradient-whatsapp: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --sim-gradient-sms: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --sim-gradient-email: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --sim-glow-shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.35);
  --sim-card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --sim-radius-sm: 8px;
  --sim-radius-md: 14px;
  --sim-radius-lg: 20px;
  --sim-radius-full: 9999px;
}

/* Base Smoothing & Typography */
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--sim-text-main);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================================
   1. HEADER & MEGA MENU (Crisp, High-Contrast & Always Visible)
   ======================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1050;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  padding: 12px 0;
}

.header .menu-link {
  color: #1e293b !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.header .menu-link:hover,
.header .menu-link.active {
  color: var(--sim-primary) !important;
  background: rgba(79, 70, 229, 0.06);
}

/* Mega Menu Dropdown */
.has-mega-menu {
  position: relative;
}

.mega-menu {
  position: absolute !important;
  top: 100% !important;
  left: -120px !important;
  width: 720px !important;
  max-width: 90vw !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--sim-radius-lg) !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2) !important;
  padding: 8px !important;
  margin-top: 14px !important;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1100;
}

.has-mega-menu:hover .mega-menu,
.has-mega-menu:focus-within .mega-menu,
.mega-menu:hover {
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.mega-menu-inner {
  background: #ffffff;
  border-radius: 14px;
}

.menu-feature-item {
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  background: transparent;
  cursor: pointer;
}

.menu-feature-item:hover,
.menu-feature-item.active {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  transform: translateX(4px);
}

.menu-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

/* ========================================================
   2. HERO & BANNER ENHANCEMENTS
   ======================================================== */
.banner {
  padding-top: 50px;
  padding-bottom: 60px;
  background: radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.05) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 60%);
}

.sim-badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(79, 70, 229, 0.25);
  padding: 6px 16px;
  border-radius: var(--sim-radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--sim-primary);
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.08);
}

.sim-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: simPulse 2s infinite;
}

@keyframes simPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.banner-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 20px;
}

.text-gradient {
  background: var(--sim-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Stats Grid */
.sim-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-top: 24px;
  margin-bottom: 20px;
}

.sim-stat-card {
  background: #ffffff;
  border: 1px solid var(--sim-card-border);
  border-radius: var(--sim-radius-md);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--sim-card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sim-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sim-glow-shadow);
  border-color: rgba(79, 70, 229, 0.3);
}

.sim-stat-number {
  font-size: 20px;
  font-weight: 800;
  color: var(--sim-primary);
  line-height: 1.2;
}

.sim-stat-label {
  font-size: 11px;
  color: var(--sim-text-muted);
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================================
   3. CHANNEL SOLUTION CARDS (SMS, WhatsApp, Email)
   ======================================================== */
.sim-channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.sim-channel-card {
  background: #ffffff;
  border: 1px solid var(--sim-card-border);
  border-radius: var(--sim-radius-lg);
  padding: 32px 28px;
  box-shadow: var(--sim-card-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sim-channel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--sim-gradient-primary);
  opacity: 0.8;
  transition: height 0.3s ease;
}

.sim-channel-card.sms::before { background: var(--sim-gradient-sms); }
.sim-channel-card.whatsapp::before { background: var(--sim-gradient-whatsapp); }
.sim-channel-card.email::before { background: var(--sim-gradient-email); }

.sim-channel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
  border-color: rgba(79, 70, 229, 0.35);
}

.sim-channel-card:hover::before {
  height: 6px;
}

.sim-channel-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--sim-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.sim-channel-icon-wrap.sms { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.sim-channel-icon-wrap.whatsapp { background: rgba(37, 211, 102, 0.12); color: #059669; }
.sim-channel-icon-wrap.email { background: rgba(245, 158, 11, 0.12); color: #d97706; }

.sim-channel-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--sim-text-main);
  margin-bottom: 8px;
}

.sim-channel-desc {
  font-size: 14px;
  color: var(--sim-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.sim-channel-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.sim-channel-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sim-text-main);
  margin-bottom: 10px;
}

.sim-channel-features li i {
  color: #10b981;
  font-size: 16px;
  flex-shrink: 0;
}

/* ========================================================
   4. PAYMENT GATEWAYS & SECURITY COMPLIANCE BADGES
   ======================================================== */
.sim-compliance-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.sim-compliance-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 12px 20px;
  border-radius: var(--sim-radius-md);
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  transition: transform 0.2s ease;
}

.sim-compliance-item:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.sim-compliance-item i {
  font-size: 24px;
}

.sim-compliance-item-text h6 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.sim-compliance-item-text p {
  margin: 0;
  font-size: 11px;
  color: #64748b;
}

.sim-gateway-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.sim-gateway-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* ========================================================
   5. POLICY & LEGAL COMPLIANCE STYLING
   ======================================================== */
.sim-policy-wrapper {
  background: #ffffff;
  border-radius: var(--sim-radius-lg);
  border: 1px solid var(--sim-card-border);
  box-shadow: var(--sim-card-shadow);
  padding: 40px;
  margin-top: 20px;
  margin-bottom: 60px;
}

.sim-policy-header {
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 24px;
  margin-bottom: 30px;
}

.sim-policy-badge {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--sim-radius-full);
  margin-bottom: 12px;
}

.sim-policy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}

.sim-policy-nav a {
  padding: 8px 16px;
  border-radius: var(--sim-radius-full);
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sim-policy-nav a.active,
.sim-policy-nav a:hover {
  background: var(--sim-primary);
  color: #ffffff;
}

.sim-policy-content h2,
.sim-policy-content h3,
.sim-policy-content h4 {
  color: #0f172a;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 14px;
}

.sim-policy-content p {
  color: #334155;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.sim-policy-content ul,
.sim-policy-content ol {
  color: #334155;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
  padding-left: 24px;
}

.sim-policy-callout {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border-left: 4px solid var(--sim-primary);
  border-radius: var(--sim-radius-sm);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 14px;
  color: #0f172a;
}

.sim-policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.sim-policy-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--sim-radius-md);
  padding: 20px;
}

.sim-policy-card h5 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.sim-policy-card p {
  font-size: 13px;
  margin: 0;
  color: #64748b;
}

/* ========================================================
   6. FLOATING LIVE WHATSAPP SUPPORT
   ======================================================== */
.sim-floating-support {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1040;
}

.sim-floating-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* Responsive Rules */
@media (max-width: 991px) {
  .mega-menu {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 8px !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .sim-policy-wrapper {
    padding: 22px;
  }
}

/* ========================================================
   7. PRICING PLANS ALIGNMENT & TYPOGRAPHY SYSTEM
   ======================================================== */
.plan-card-wrapper {
  margin-top: 20px;
}

.plan-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 32px 26px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  height: 100% !important;
}

.plan-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.12) !important;
  border-color: rgba(79, 70, 229, 0.4) !important;
}

.plan-card.recommend {
  border: 2px solid #4f46e5 !important;
  box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.18) !important;
}

.plan-card .recommend-tag {
  position: absolute !important;
  top: -14px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  padding: 4px 16px !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35) !important;
  z-index: 5 !important;
}

.plan-card .plan-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em !important;
}

.plan-card .price {
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
}

.plan-card .price h3 {
  font-size: 40px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1 !important;
  margin: 0 !important;
  letter-spacing: -0.02em !important;
}

.plan-card .pricing-list li {
  font-size: 13.5px !important;
  color: #334155 !important;
  line-height: 1.5 !important;
}

.plan-credits-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
}
