/* ================================================================
   onestopERP.com — Premium Enterprise Design System
   Navy (#0B1020) + Cyan (#22D3EE) + Indigo (#6366F1)
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300..800;1,14..32,300..800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-primary: #0B1020;
  --bg-secondary: #111827;
  --bg-surface: #F8FAFC;
  --bg-card: #FFFFFF;
  --accent-cyan: #22D3EE;
  --accent-indigo: #6366F1;
  --success: #34D399;
  --warning: #F59E0B;
  --error: #EF4444;
  --text-light: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dark: #0F172A;
  --border-dark: #1E293B;
  --border-light: #E2E8F0;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0; padding: 0;
  color: var(--text-dark);
  background: var(--bg-surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1E293B; }
::-webkit-scrollbar-thumb { background: #475569; border-radius: 3px; }

/* ---- Material Symbols ---- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* ---- Glassmorphic Header ---- */
.glass-nav {
  background: rgba(11, 16, 32, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.6);
}

/* ---- Hero Grid Pattern ---- */
.hero-grid {
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---- Glow Effects ---- */
.glow-cyan {
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.15), 0 0 80px rgba(34, 211, 238, 0.05);
}
.glow-indigo {
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.15), 0 0 80px rgba(99, 102, 241, 0.05);
}

/* ---- Gradient Utilities ---- */
.gradient-text-cyan {
  background: linear-gradient(135deg, #22D3EE, #06B6D4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-indigo {
  background: linear-gradient(135deg, #6366F1, #818CF8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-bg-cta {
  background: linear-gradient(135deg, #22D3EE 0%, #6366F1 100%);
}

/* ---- Card Styles ---- */
.feature-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(30, 41, 59, 0.8);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card:hover {
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 211, 238, 0.08);
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  transition: all 0.3s ease;
}
.plan-card:hover {
  border-color: #22D3EE;
  box-shadow: 0 12px 40px rgba(34, 211, 238, 0.08);
}
.plan-card.recommended {
  border: 2px solid #6366F1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* ---- Buttons ---- */
.btn-primary {
  background: #22D3EE;
  color: #0B1020;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-size: 0.875rem;
}
.btn-primary:hover { background: #06B6D4; transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: #F8FAFC;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 10px;
  border: 1px solid #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-size: 0.875rem;
}
.btn-secondary:hover { background: rgba(248, 250, 252, 0.05); border-color: #94A3B8; }

.btn-outline-cyan {
  background: transparent;
  color: #22D3EE;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  border: 1px solid #22D3EE;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
}
.btn-outline-cyan:hover { background: rgba(34, 211, 238, 0.1); }

.btn-buy {
  background: var(--bg-primary);
  color: #F8FAFC;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
  text-align: center;
  font-size: 0.875rem;
  width: 100%;
}
.btn-buy:hover { background: #1E293B; }
.btn-buy.recommended {
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  color: #FFFFFF;
}
.btn-buy.recommended:hover { opacity: 0.9; }

/* ---- Duration Pill Selector ---- */
.duration-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  background: #F1F5F9;
  padding: 4px;
  border-radius: 12px;
}
.duration-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  color: #64748B;
}
.duration-btn.active {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-weight: 600;
}

/* ---- Currency Toggle ---- */
.currency-toggle {
  display: inline-flex;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}
.currency-btn {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  color: #64748B;
}
.currency-btn.active {
  background: #0F172A;
  color: #FFFFFF;
}

/* ---- Category Filter Pills ---- */
.filter-pill {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  color: #64748B;
}
.filter-pill.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

/* ---- Status Badges ---- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-success { background: rgba(52,211,153,0.15); color: #059669; }
.badge-warning { background: rgba(245,158,11,0.15); color: #D97706; }
.badge-error { background: rgba(239,68,68,0.15); color: #DC2626; }
.badge-info { background: rgba(99,102,241,0.15); color: #6366F1; }
.badge-neutral { background: #F1F5F9; color: #475569; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; }
.badge-dot-success { background: #34D399; }
.badge-dot-warning { background: #F59E0B; }

/* ---- Toast Notifications ---- */
#toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 300px; max-width: 420px;
  background: #0F172A; color: #F8FAFC;
  border-left: 3px solid #22D3EE;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border-radius: 10px; padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.8125rem;
}
.toast-success { border-left-color: #34D399; }
.toast-error { border-left-color: #EF4444; }
.toast-warning { border-left-color: #F59E0B; }

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---- Modal Overlay ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px); z-index: 100;
  display: flex; justify-content: center; align-items: center;
  padding: 16px; opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

/* ---- Mobile Drawer ---- */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none; opacity: 0; transition: opacity 0.25s ease;
}
.mobile-drawer.open { pointer-events: auto; opacity: 1; }
.mobile-drawer .drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.mobile-drawer .drawer-panel {
  position: absolute; top: 0; left: 0; width: 85%; max-width: 360px; height: 100%;
  background: #0F172A; transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto; display: flex; flex-direction: column;
}
.mobile-drawer.open .drawer-panel { transform: translateX(0); }

/* ---- Promo Banner ---- */
.promo-banner {
  background: linear-gradient(90deg, #6366F1, #4F46E5);
  color: #FFFFFF; text-align: center;
  padding: 8px 16px; font-size: 0.8125rem; font-weight: 500;
  position: relative;
}
.promo-banner a { color: #22D3EE; font-weight: 700; text-decoration: underline; }

/* ---- Step Connector ---- */
.step-connector { width: 2px; height: 40px; background: linear-gradient(to bottom, #22D3EE, #6366F1); margin: 0 auto; }

/* ---- Ecosystem Node ---- */
.eco-node {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px; border-radius: 12px; border: 1px solid var(--border-dark);
  background: rgba(17, 24, 39, 0.5); transition: all 0.3s ease;
  text-align: center; color: #F8FAFC;
}
.eco-node:hover { border-color: #22D3EE; background: rgba(34, 211, 238, 0.05); }

/* ---- Animations ---- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeInUp 0.4s ease-out forwards; }

@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.animate-pulse { animation: pulse-dot 2s infinite; }

/* ---- Monospace for data ---- */
.font-mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

/* ---- Safe area ---- */
.pb-safe { padding-bottom: env(safe-area-inset-bottom, 16px); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
