/* =========================================================
   ECOM ERP PRO — Core Stylesheet
   Design tokens follow the brief exactly:
   Primary #2563EB / Secondary #0EA5E9 / Success #16A34A
   Warning #F59E0B / Danger #DC2626 / Background #F8FAFC
   ========================================================= */

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --secondary: #0EA5E9;
  --success: #16A34A;
  --warning: #F59E0B;
  --danger: #DC2626;
  --bg: #F8FAFC;
  --ink: #0F172A;
  --ink-soft: #475569;
  --line: #E2E8F0;
  --white: #FFFFFF;

  --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);

  --shadow-soft: 0 10px 30px -12px rgba(15, 23, 42, 0.12);
  --shadow-lift: 0 24px 48px -16px rgba(37, 99, 235, 0.25);

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; }

.container-xl {
  max-width: 100%;
  padding-left: 48px;
  padding-right: 48px;
}
@media (max-width: 768px) {
  .container-xl { padding-left: 20px; padding-right: 20px; }
}

/* ---------- Typography ---------- */
.display-heading {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Loading Screen ---------- */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
#loader.hide { opacity: 0; visibility: hidden; }
.loader-mark {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  animation: pulseMark 1.1s ease-in-out infinite;
}
@keyframes pulseMark { 0%,100% { transform: scale(1); } 50% { transform: scale(0.85); } }

/* ---------- Navbar ---------- */
.navbar-erp {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(248, 250, 252, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: all .3s ease;
  padding: 18px 0;
}
.navbar-erp.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 12px 0;
}
.navbar-brand-erp { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.navbar-brand-erp .mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700;
}
.nav-link-erp {
  color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; margin: 0 10px; position: relative;
}
.nav-link-erp:hover, .nav-link-erp.active { color: var(--primary); }
.btn-gradient {
  background: var(--gradient-brand); color: #fff; border: none; font-weight: 600;
  padding: 11px 26px; border-radius: 999px; transition: all .25s ease; box-shadow: var(--shadow-lift);
}
.btn-gradient:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 28px 50px -14px rgba(37,99,235,.4); }
.btn-outline-erp {
  border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; padding: 10px 24px; border-radius: 999px; background: var(--white);
  transition: all .25s ease;
}
.btn-outline-erp:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Hero ---------- */
.hero-section { padding: 170px 0 90px; position: relative; overflow: hidden; }
.hero-section::before {
  content: ''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.14), transparent 70%); z-index: 0;
}
.hero-section::after {
  content: ''; position: absolute; bottom: -250px; left: -150px; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,.12), transparent 70%); z-index: 0;
}
.hero-content { position: relative; z-index: 2; }
.hero-title { font-size: clamp(2.4rem, 4.2vw, 3.6rem); }
.hero-sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 560px; }

.hero-mockup-wrap { position: relative; z-index: 2; perspective: 1200px; }
.laptop-frame {
  background: var(--gradient-dark);
  border-radius: 20px; padding: 14px 14px 34px; box-shadow: var(--shadow-lift);
  transform: rotateY(-8deg) rotateX(3deg);
  transition: transform .6s ease;
}
.laptop-frame:hover { transform: rotateY(-3deg) rotateX(1deg); }
.laptop-screen { border-radius: 10px; overflow: hidden; background: #fff; }
.laptop-screen img { width: 100%; display: block; }

.floating-card {
  position: absolute; background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.6); border-radius: var(--radius-md);
  padding: 12px 16px; box-shadow: var(--shadow-soft); font-size: 0.85rem; z-index: 3;
  animation: floatCard 4.5s ease-in-out infinite;
}
.floating-card .fc-label { color: var(--ink-soft); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.floating-card .fc-value { font-weight: 700; font-size: 1.05rem; }
@keyframes floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Trust logos ---------- */
.trust-strip { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-logo { opacity: .55; filter: grayscale(1); font-weight: 700; font-size: 1.1rem; color: var(--ink-soft); transition: opacity .25s; }
.trust-logo:hover { opacity: 1; }

/* ---------- Counters ---------- */
.counter-box { text-align: center; }
.counter-number { font-size: 2.6rem; font-weight: 700; color: var(--primary); }
.counter-label { color: var(--ink-soft); font-weight: 500; }

/* ---------- Feature cards ---------- */
.feature-card {
  background: #fff; border-radius: var(--radius-md); padding: 28px 24px; border: 1px solid var(--line);
  height: 100%; transition: all .3s ease; position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: transparent; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; background: rgba(37,99,235,.08); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px;
  transition: all .3s ease;
}
.feature-card:hover .feature-icon { background: var(--gradient-brand); color: #fff; }
.feature-card h5 { font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* ---------- Module Preview (interactive) ---------- */
.module-preview-shell {
  display: grid; grid-template-columns: 260px 1fr; gap: 0; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lift); border: 1px solid var(--line);
}
.module-sidebar { background: var(--gradient-dark); padding: 20px 10px; }
.module-sidebar .module-nav-item {
  display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.68); font-size: .88rem;
  padding: 11px 14px; border-radius: 10px; cursor: pointer; transition: all .2s ease; border: none; background: none; width: 100%; text-align: left;
}
.module-sidebar .module-nav-item i { font-size: 1rem; width: 18px; text-align: center; }
.module-sidebar .module-nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.module-sidebar .module-nav-item.active { color: #fff; background: rgba(37,99,235,.35); }
.module-display { background: #fff; padding: 36px; min-height: 480px; }
.module-display img {
  width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow-soft); margin-bottom: 22px;
}
.module-display .module-title { font-weight: 700; font-size: 1.6rem; }
.module-display .module-tagline { color: var(--primary); font-weight: 500; }
.module-feature-pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; font-size: .85rem; margin: 4px 6px 4px 0;
}
.module-feature-pill i { color: var(--success); }
.fade-swap { animation: fadeSwap .45s ease; }
@keyframes fadeSwap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Workflow ---------- */
.workflow-track { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 8px; }
.workflow-step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 20px;
  font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-soft);
}
.workflow-arrow { color: var(--primary); font-size: 1.3rem; }

/* ---------- Why choose ---------- */
.why-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.why-item i { color: var(--success); font-size: 1.3rem; margin-top: 3px; }
.why-item h6 { font-weight: 600; margin-bottom: 2px; }
.why-item p { color: var(--ink-soft); font-size: .88rem; margin: 0; }

/* ---------- Pricing / Billing Toggle ---------- */
.billing-label { font-weight: 600; color: var(--ink-soft); font-size: .95rem; cursor: pointer; transition: color .2s ease; user-select: none; }
.billing-label.active { color: var(--ink); }
.save-badge {
  display: inline-block; background: rgba(22,163,74,.12); color: var(--success);
  font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-left: 6px; vertical-align: middle;
}
.billing-switch { position: relative; display: inline-block; width: 52px; height: 28px; flex-shrink: 0; }
.billing-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.billing-slider {
  position: absolute; inset: 0; cursor: pointer; background: var(--line); border-radius: 999px; transition: background .25s ease;
}
.billing-slider::before {
  content: ''; position: absolute; height: 22px; width: 22px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .25s ease; box-shadow: var(--shadow-soft);
}
.billing-switch input:checked + .billing-slider { background: var(--gradient-brand); }
.billing-switch input:checked + .billing-slider::before { transform: translateX(24px); }
.pricing-price { min-height: 3rem; }

.pricing-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 28px;
  height: 100%; transition: all .3s ease; position: relative;
}
.pricing-card.highlight { border: 2px solid var(--primary); box-shadow: var(--shadow-lift); transform: scale(1.03); }
.pricing-card .badge-popular {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-brand); color: #fff; padding: 6px 18px; border-radius: 999px; font-size: .75rem; font-weight: 600;
}
.pricing-price { font-size: 2.4rem; font-weight: 700; }
.pricing-list li { padding: 8px 0; display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.pricing-list li i { color: var(--success); margin-top: 3px; }

/* ---------- Gallery ---------- */
.gallery-filters .btn { border-radius: 999px; margin: 0 4px 8px 0; font-size: .85rem; }
.gallery-item { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); cursor: pointer; position: relative; box-shadow: var(--shadow-soft); }
.gallery-item img { width: 100%; display: block; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 16px; color: #fff; font-weight: 600; font-size: .9rem;
  background: linear-gradient(to top, rgba(15,23,42,.85), transparent);
}

/* ---------- Testimonials ---------- */
.testimonial-card { background: #fff; border-radius: var(--radius-md); padding: 30px; border: 1px solid var(--line); height: 100%; }
.testimonial-card p.quote { color: var(--ink-soft); font-style: italic; }
.testimonial-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--gradient-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ---------- FAQ ---------- */
.accordion-erp .accordion-item { border: 1px solid var(--line); border-radius: var(--radius-sm) !important; margin-bottom: 12px; overflow: hidden; }
.accordion-erp .accordion-button { font-weight: 600; background: #fff; }
.accordion-erp .accordion-button:not(.collapsed) { color: var(--primary); background: rgba(37,99,235,.05); box-shadow: none; }
.accordion-erp .accordion-button:focus { box-shadow: none; }

/* ---------- Contact ---------- */
.contact-form-card { background: #fff; border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.form-control-erp { border-radius: var(--radius-sm); border: 1.5px solid var(--line); padding: 12px 16px; }
.form-control-erp:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.1); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gradient-dark); border-radius: var(--radius-lg); padding: 60px; color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: var(--gradient-brand); opacity: .18; }

/* ---------- Footer ---------- */
.footer-erp { background: #0B1220; color: rgba(255,255,255,.7); padding: 70px 0 30px; }
.footer-erp h6 { color: #fff; font-weight: 600; margin-bottom: 18px; }
.footer-erp a { color: rgba(255,255,255,.65); }
.footer-erp a:hover { color: #fff; }
.footer-social { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; transition: all .25s; }
.footer-social:hover { background: var(--gradient-brand); transform: translateY(-3px); }

/* ---------- Back to top / whatsapp ---------- */
.floating-btn {
  position: fixed; right: 24px; z-index: 900; width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lift);
  transition: all .3s ease; color: #fff; font-size: 1.3rem;
}
#backToTop { bottom: 24px; background: var(--gradient-brand); opacity: 0; pointer-events: none; transform: translateY(10px); }
#backToTop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#whatsappBtn { bottom: 90px; background: #25D366; }

/* ---------- Mobile nav toggle + custom sidebar ---------- */
.nav-toggle-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--white); color: var(--ink); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; transition: all .2s ease; cursor: pointer;
}
.nav-toggle-btn:hover { border-color: var(--primary); color: var(--primary); }

.mobile-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .5);
  z-index: 2998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.mobile-sidebar-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50vw;
  min-width: 260px;
  max-width: 380px;
  background: #ffffff;
  z-index: 2999;
  box-shadow: -18px 0 50px -10px rgba(15, 23, 42, .25);
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-sidebar.show {
  transform: translateX(0);
}
.mobile-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 20px 22px;
  background: #ffffff;
  flex-shrink: 0;
}
.mobile-sidebar-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #ffffff;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
}
.mobile-nav-links a.nav-link-erp {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 15px 22px;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
  transition: all .2s ease;
}
.mobile-nav-links a.nav-link-erp i { font-size: 1.05rem; color: var(--ink-soft); width: 20px; text-align: center; }
.mobile-nav-links a.nav-link-erp:hover { background: rgba(37,99,235,.06); color: var(--primary); border-left-color: var(--primary); }
.mobile-nav-links a.nav-link-erp:hover i { color: var(--primary); }
.mobile-nav-links a.nav-link-erp.active { background: rgba(37,99,235,.08); color: var(--primary); border-left-color: var(--primary); }
.mobile-nav-links a.nav-link-erp.active i { color: var(--primary); }
.mobile-sidebar-footer {
  margin-top: auto;
  padding: 20px 22px;
}
@media (max-width: 400px) {
  .mobile-sidebar { width: 100vw; max-width: 100vw; }
}

/* ---------- Utility / responsive ---------- */

.section-pad { padding: 90px 0; }
@media (max-width: 991px) {
  .module-preview-shell { grid-template-columns: 1fr; }
  .module-sidebar { display: flex; overflow-x: auto; gap: 4px; }
  .module-sidebar .module-nav-item { white-space: nowrap; }
  .hero-mockup-wrap { margin-top: 50px; }
  .cta-band { padding: 40px 24px; }
}
@media (max-width: 576px) {
  .section-pad { padding: 60px 0; }
  .floating-card { display: none; }
}
