/* =========================================================
   Mart Multi Solution — Premium Design System
   ========================================================= */

:root {
  /* Brand colors */
  --mp-primary: #2A3FE8;
  --mp-primary-dark: #1B2BB0;
  --mp-primary-light: #5B6BFF;
  --mp-secondary: #7B2FF7;
  --mp-secondary-dark: #5A1FC2;
  --mp-accent: #0FD3E0;
  --mp-success: #12B76A;
  --mp-warning: #F59E0B;
  --mp-danger: #E5484D;

  /* Neutrals */
  --mp-ink: #0B1220;
  --mp-ink-soft: #4B5468;
  --mp-muted: #7C8698;
  --mp-line: #E7EAF3;
  --mp-surface: #FFFFFF;
  --mp-surface-alt: #F5F7FC;
  --mp-surface-dark: #0B1024;

  /* Gradients */
  --mp-gradient-brand: linear-gradient(135deg, var(--mp-primary) 0%, var(--mp-secondary) 100%);
  --mp-gradient-accent: linear-gradient(135deg, var(--mp-accent) 0%, var(--mp-primary) 100%);
  --mp-gradient-dark: linear-gradient(160deg, #10163A 0%, #1A1145 60%, #2A1060 100%);
  --mp-gradient-radial: radial-gradient(60% 60% at 50% 40%, rgba(123,47,247,.16) 0%, rgba(42,63,232,0) 70%);

  /* Elevation */
  --mp-shadow-sm: 0 2px 10px rgba(15, 23, 42, .06);
  --mp-shadow-md: 0 12px 30px rgba(15, 23, 42, .10);
  --mp-shadow-lg: 0 24px 60px rgba(15, 23, 42, .16);
  --mp-shadow-glow: 0 20px 50px rgba(42, 63, 232, .25);

  /* Radii */
  --mp-radius-sm: 12px;
  --mp-radius-md: 20px;
  --mp-radius-lg: 28px;
  --mp-radius-pill: 999px;

  /* Type */
  --mp-font-heading: 'Poppins', sans-serif;
  --mp-font-body: 'Inter', sans-serif;

  /* Motion */
  --mp-ease: cubic-bezier(.22, 1, .36, 1);
  --mp-speed: .35s;
}

/* =========================================================
   Base
   ========================================================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--mp-font-heading);
  font-weight: 700;
  color: var(--mp-ink);
  letter-spacing: -0.02em;
}

p { color: var(--mp-ink-soft); line-height: 1.75; }

a { text-decoration: none; color: var(--mp-primary); transition: color var(--mp-speed) var(--mp-ease); }
a:hover { color: var(--mp-secondary); }

img { max-width: 100%; height: auto; }

::selection { background: var(--mp-primary); color: #fff; }

.section-pad { padding: 100px 0; }
.bg-surface-alt { background: var(--mp-surface-alt); }
.text-gradient {
  background: var(--mp-gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mp-font-heading);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mp-primary);
  background: rgba(42, 63, 232, .08);
  padding: 8px 18px;
  border-radius: var(--mp-radius-pill);
  margin-bottom: 20px;
}
.eyebrow i { color: var(--mp-secondary); }

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 18px;
}
.section-sub {
  font-size: 1.05rem;
  max-width: 640px;
  color: var(--mp-ink-soft);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  font-family: var(--mp-font-heading);
  font-weight: 600;
  border-radius: var(--mp-radius-pill);
  padding: 14px 30px;
  position: relative;
  overflow: hidden;
  border: none;
  transition: transform var(--mp-speed) var(--mp-ease), box-shadow var(--mp-speed) var(--mp-ease);
  isolation: isolate;
}
.btn:active { transform: scale(.97); }

.btn-brand {
  background: var(--mp-gradient-brand);
  color: #fff;
  box-shadow: var(--mp-shadow-glow);
}
.btn-brand:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 26px 55px rgba(42,63,232,.35); }

.btn-outline-brand {
  background: transparent;
  color: var(--mp-primary);
  border: 1.5px solid var(--mp-line);
}
.btn-outline-brand:hover { color: var(--mp-primary); border-color: var(--mp-primary); background: rgba(42,63,232,.06); transform: translateY(-3px); }

.btn-light-pill {
  background: #fff;
  color: var(--mp-primary);
  box-shadow: var(--mp-shadow-md);
}
.btn-light-pill:hover { color: var(--mp-primary); transform: translateY(-3px); box-shadow: var(--mp-shadow-lg); }

.btn-sm-pill { padding: 10px 22px; font-size: .9rem; }

/* Ripple */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: mp-ripple .6s linear;
  background: rgba(255,255,255,.55);
  pointer-events: none;
}
@keyframes mp-ripple { to { transform: scale(3); opacity: 0; } }

/* =========================================================
   Header / Navbar
   ========================================================= */
.mp-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--mp-speed) var(--mp-ease);
  background: transparent;
}
.mp-header.is-scrolled {
  padding: 10px 0;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  box-shadow: var(--mp-shadow-sm);
}

.mp-brand { display: flex; align-items: center; gap: 10px; font-family: var(--mp-font-heading); font-weight: 700; font-size: 1.35rem; color: var(--mp-ink); transition: color var(--mp-speed) var(--mp-ease); }
.mp-brand-logo { height: 44px; width: auto; display: block; }
.mp-brand-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--mp-gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
  box-shadow: var(--mp-shadow-glow);
}
.mp-brand:hover { color: var(--mp-ink); }

/* Sticky header sits over a dark hero/banner until scrolled, so brand + nav need light text by default */
.mp-header .mp-brand { color: #fff; }
.mp-header .mp-brand:hover { color: #fff; }
.mp-header.is-scrolled .mp-brand { color: var(--mp-ink); }
.mp-header.is-scrolled .mp-brand:hover { color: var(--mp-ink); }

.mp-nav-link {
  font-family: var(--mp-font-heading);
  font-weight: 500;
  font-size: .95rem;
  color: rgba(255,255,255,.92);
  padding: 10px 16px !important;
  border-radius: var(--mp-radius-pill);
  position: relative;
  transition: color var(--mp-speed) var(--mp-ease), background var(--mp-speed) var(--mp-ease);
}
.mp-nav-link:hover, .mp-nav-link.active, .mp-nav-link.show { color: rgb(253 119 42); background: rgba(255,255,255,.14); }
.mp-header.is-scrolled .mp-nav-link { color: var(--mp-ink); }
.mp-header.is-scrolled .mp-nav-link:hover, .mp-header.is-scrolled .mp-nav-link.active, .mp-header.is-scrolled .mp-nav-link.show { color: rgb(253 119 42); background: rgba(42,63,232,.07); }

/* Bootstrap's .navbar-nav .nav-link.active/.show (3-class specificity) otherwise
   beats the rules above and falls back to --bs-navbar-active-color (near-black). */
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show { color: rgb(253 119 42); }

.mp-header .navbar-toggler { color: #fff; }
.mp-header .navbar-toggler i { color: #fff; transition: color var(--mp-speed) var(--mp-ease); }
.mp-header.is-scrolled .navbar-toggler i { color: var(--mp-ink); }

.mp-header .btn-outline-brand { color: #fff; border-color: rgba(255,255,255,.4); }
.mp-header .btn-outline-brand:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.12); }
.mp-header.is-scrolled .btn-outline-brand { color: var(--mp-primary); border-color: var(--mp-line); }
.mp-header.is-scrolled .btn-outline-brand:hover { color: var(--mp-primary); border-color: var(--mp-primary); background: rgba(42,63,232,.06); }

.mp-mega {
  border: none;
  border-radius: var(--mp-radius-md);
  box-shadow: var(--mp-shadow-lg);
  padding: 28px;
  margin-top: 14px !important;
}
.mp-mega-col-title {
  font-family: var(--mp-font-heading);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--mp-muted);
  margin-bottom: 14px;
}
.mp-mega-link {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--mp-ink);
  transition: background var(--mp-speed);
}
.mp-mega-link:hover { background: var(--mp-surface-alt); color: var(--mp-primary); }
.mp-mega-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(42,63,232,.08); color: var(--mp-primary);
}
.mp-mega-link small { display: block; color: var(--mp-muted); font-size: .78rem; }

.mp-mega-promo {
  border-radius: var(--mp-radius-md);
  background: var(--mp-gradient-dark);
  color: #fff;
  padding: 22px;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Mobile offcanvas nav */
.mp-offcanvas .nav-link { padding: 14px 6px; border-bottom: 1px solid var(--mp-line); font-family: var(--mp-font-heading); font-weight: 500; }

/* =========================================================
   Cards
   ========================================================= */
.mp-card {
  background: #fff;
  border-radius: var(--mp-radius-lg);
  border: 1px solid var(--mp-line);
  padding: 32px;
  height: 100%;
  transition: transform var(--mp-speed) var(--mp-ease), box-shadow var(--mp-speed) var(--mp-ease), border-color var(--mp-speed);
  position: relative;
}
.mp-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--mp-shadow-lg);
  border-color: transparent;
}
.mp-card-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
  background: var(--mp-gradient-brand);
  margin-bottom: 22px;
  box-shadow: var(--mp-shadow-glow);
}
.mp-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.mp-card p { font-size: .95rem; margin-bottom: 0; }

/* Glass card (for hero / dark sections) */
.mp-glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(18px);
  border-radius: var(--mp-radius-lg);
  color: #fff;
}
.mp-glass p { color: rgba(255,255,255,.75); }

/* Animated gradient border card */
.mp-card-border {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--mp-gradient-brand) border-box;
}

/* =========================================================
   Sections: hero / stats / steps / testimonials / faq / cta
   ========================================================= */
.mp-hero {
  position: relative;
  padding: 190px 0 120px;
  overflow: hidden;
  background: var(--mp-gradient-dark);
  color: #fff;
  isolation: isolate;
}
.mp-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--mp-gradient-radial);
  z-index: -1;
}
.mp-hero h1, .mp-hero h2, .mp-hero h3 { color: #fff; }
.mp-hero p.lead { color: rgba(255,255,255,.75); }
.mp-hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .5;
  z-index: -1;
}

.mp-stats-strip {
  background: var(--mp-surface-alt);
  border-radius: var(--mp-radius-lg);
  padding: 48px 20px;
}
.mp-stat-num {
  font-family: var(--mp-font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  background: var(--mp-gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mp-stat-label { font-size: .88rem; color: var(--mp-muted); font-weight: 500; }

.mp-step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px dashed var(--mp-line);
}
.mp-step:last-child { border-bottom: none; }
.mp-step-num {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 14px;
  background: var(--mp-gradient-brand);
  color: #fff; font-family: var(--mp-font-heading); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.mp-testi {
  background: #fff;
  border-radius: var(--mp-radius-lg);
  border: 1px solid var(--mp-line);
  padding: 30px;
  height: 100%;
}
.mp-testi-avatar {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--mp-gradient-brand);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--mp-font-heading); font-weight: 700;
}
.mp-testi i.bi-star-fill { color: var(--mp-warning); font-size: .8rem; }

.accordion-item.mp-faq-item { border: none; border-radius: var(--mp-radius-md) !important; margin-bottom: 14px; overflow: hidden; box-shadow: var(--mp-shadow-sm); }
.mp-faq-item .accordion-button { font-family: var(--mp-font-heading); font-weight: 600; padding: 22px 26px; }
.mp-faq-item .accordion-button:not(.collapsed) { color: var(--mp-primary); background: var(--mp-surface-alt); box-shadow: none; }
.mp-faq-item .accordion-button:focus { box-shadow: none; }
.mp-faq-item .accordion-body { padding: 4px 26px 24px; color: var(--mp-ink-soft); }

.mp-cta {
  border-radius: var(--mp-radius-lg);
  background: var(--mp-gradient-brand);
  color: #fff;
  padding: 64px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.mp-cta::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(50% 80% at 90% 10%, rgba(255,255,255,.18), transparent 60%);
  z-index: -1;
}

.mp-newsletter { background: var(--mp-surface-dark); color: #fff; }
.mp-newsletter .form-control {
  border-radius: var(--mp-radius-pill);
  padding: 16px 24px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
}
.mp-newsletter .form-control::placeholder { color: rgba(255,255,255,.5); }
.mp-newsletter .form-control:focus { box-shadow: none; border-color: var(--mp-accent); background: rgba(255,255,255,.1); }

/* Tabs */
.mp-tabs .nav-link {
  border-radius: var(--mp-radius-pill);
  font-family: var(--mp-font-heading);
  font-weight: 600;
  color: var(--mp-ink-soft);
  padding: 12px 26px;
  border: 1px solid var(--mp-line);
  margin: 0 6px 12px 0;
}
.mp-tabs .nav-link.active { background: var(--mp-gradient-brand); color: #fff; border-color: transparent; box-shadow: var(--mp-shadow-glow); }

/* =========================================================
   Breadcrumb / Page banner
   ========================================================= */
.mp-banner {
  padding: 160px 0 90px;
  background: var(--mp-gradient-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.mp-banner::before { content:''; position:absolute; inset:0; background: var(--mp-gradient-radial); z-index:-1; }
.mp-banner h1, .mp-banner h2, .mp-banner h3 { color: #fff; }
.mp-breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: rgba(255,255,255,.6); }
.mp-breadcrumb a { color: rgba(255,255,255,.8); }
.mp-breadcrumb a:hover { color: #fff; }

/* =========================================================
   Footer
   ========================================================= */
.mp-footer { background: var(--mp-surface-dark); color: rgba(255,255,255,.7); padding: 90px 0 0; }
.mp-footer h6 { color: #fff; font-family: var(--mp-font-heading); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 22px; }
.mp-footer a.footer-link { color: rgba(255,255,255,.62); display: block; padding: 7px 0; font-size: .92rem; }
.mp-footer a.footer-link:hover { color: #fff; padding-left: 4px; }
.mp-social {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: #fff;
  transition: all var(--mp-speed);
}
.mp-social:hover { background: var(--mp-gradient-brand); color: #fff; transform: translateY(-4px); }
.mp-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 60px; padding: 26px 0; font-size: .85rem; }

/* =========================================================
   Back to top
   ========================================================= */
.mp-back-top {
  position: fixed; right: 26px; bottom: 26px;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--mp-gradient-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--mp-shadow-glow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all var(--mp-speed) var(--mp-ease);
  z-index: 999; border: none;
}
.mp-back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* =========================================================
   Forms
   ========================================================= */
.mp-form-control {
  border-radius: 14px;
  border: 1.5px solid var(--mp-line);
  padding: 14px 18px;
  font-size: .95rem;
}
.mp-form-control:focus { border-color: var(--mp-primary); box-shadow: 0 0 0 4px rgba(42,63,232,.12); }
.mp-form-label { font-family: var(--mp-font-heading); font-weight: 600; font-size: .88rem; margin-bottom: 8px; }

/* =========================================================
   404 / misc utility pages
   ========================================================= */
.mp-404-code {
  font-family: var(--mp-font-heading);
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 700;
  line-height: 1;
  background: var(--mp-gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mp-toc { position: sticky; top: 110px; }
.mp-toc a { display: block; padding: 8px 14px; border-left: 2px solid var(--mp-line); color: var(--mp-ink-soft); font-size: .9rem; }
.mp-toc a:hover, .mp-toc a.active { border-color: var(--mp-primary); color: var(--mp-primary); }

.mp-policy h2 { font-size: 1.35rem; margin-top: 40px; margin-bottom: 14px; }
.mp-policy p, .mp-policy li { color: var(--mp-ink-soft); }

/* Blog */
.mp-blog-card { border-radius: var(--mp-radius-lg); overflow: hidden; border: 1px solid var(--mp-line); transition: all var(--mp-speed) var(--mp-ease); }
.mp-blog-card:hover { box-shadow: var(--mp-shadow-lg); transform: translateY(-8px); }
.mp-blog-thumb { height: 210px; background: var(--mp-gradient-brand); position: relative; display:flex; align-items:center; justify-content:center; color:#fff; font-size: 2.4rem; }
.mp-tag { font-family: var(--mp-font-heading); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mp-primary); background: rgba(42,63,232,.08); padding: 6px 14px; border-radius: var(--mp-radius-pill); }

/* Preloader */
.mp-preloader { position: fixed; inset: 0; z-index: 9999; background: #fff; display: flex; align-items: center; justify-content: center; transition: opacity .5s, visibility .5s; }
.mp-preloader.is-hidden { opacity: 0; visibility: hidden; }
.mp-preloader-ring { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--mp-line); border-top-color: var(--mp-primary); animation: mp-spin 1s linear infinite; }
@keyframes mp-spin { to { transform: rotate(360deg); } }
