/* ==========================================================================
   Mobitplus — Design System
   Clean, bold, modern, AI-development-specific.
   Plain CSS, no framework, no build step.
   ========================================================================== */

:root{
  /* Core palette */
  --ink:            #0A0C12;
  --ink-soft:       #3A3F52;
  --muted:          #6B7185;
  --line:           #E7E8EF;
  --surface:        #FFFFFF;
  --surface-alt:    #F6F7FB;
  --surface-dark:   #0A0C12;
  --surface-dark-2: #12141F;

  /* Brand accents */
  --violet:  #6C5CE7;
  --blue:    #3E7BFA;
  --teal:    #00C2A8;
  --coral:   #E23B3B;

  --grad-primary: linear-gradient(120deg, #6C5CE7 0%, #3E7BFA 55%, #00C2A8 100%);
  --grad-crm:     #E23B3B;
  --grad-mesh:    radial-gradient(circle at 15% 20%, rgba(108,92,231,0.35), transparent 45%),
                   radial-gradient(circle at 85% 15%, rgba(0,194,168,0.28), transparent 40%),
                   radial-gradient(circle at 50% 90%, rgba(62,123,250,0.30), transparent 45%);

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

  --shadow-sm: 0 2px 10px rgba(10,12,18,0.06);
  --shadow-md: 0 12px 32px rgba(10,12,18,0.10);
  --shadow-lg: 0 24px 60px rgba(10,12,18,0.16);

  --container: 1180px;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ overflow-x: hidden; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img, svg{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p{ margin: 0; }
button{ font-family: inherit; cursor: pointer; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section{ position: relative; }

/* ---------- Utility ---------- */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 16px;
}
.eyebrow::before{
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad-primary);
  flex-shrink: 0;
}
.eyebrow.on-dark{ color: #B9C2FF; }
.eyebrow.coral{ color: var(--coral); }
.eyebrow.coral::before{ background: var(--grad-crm); }

.gradient-text{
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-text.crm{ background: var(--grad-crm); -webkit-background-clip: text; background-clip: text; }

.section-head{
  max-width: 680px;
  margin: 0 0 56px;
}
.section-head.center{ margin-inline: auto; text-align: center; }
.section-head h2{ font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 16px; }
.section-head p{ color: var(--muted); font-size: 1.05rem; }

.muted{ color: var(--muted); }

.pill{
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.tag{
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover{ box-shadow: var(--shadow-lg); }
.btn-crm{
  background: var(--grad-crm);
  color: #fff;
  box-shadow: 0 12px 32px rgba(226,59,59,0.28);
}
.btn-ghost{
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover{ border-color: var(--ink); }
.btn-on-dark{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-on-dark:hover{ background: rgba(255,255,255,0.16); }
.btn-sm{ padding: 10px 20px; font-size: 0.85rem; }
.btn-block{ width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled{
  border-color: var(--line);
  box-shadow: 0 4px 20px rgba(10,12,18,0.05);
}
.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo{
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
}
.logo .plus{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  margin-left: 4px;
  border-radius: 7px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}
.logo .crm-badge{
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  margin-left: 8px;
  border-radius: 7px;
  background: var(--grad-crm);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.parent-link{
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.parent-link:hover{ color: var(--ink); }
.nav-links{
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a{
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color .15s ease;
  position: relative;
}
.nav-links a:hover{ color: var(--ink); }
.nav-links a.active{ color: var(--violet); }
.nav-links a.crm-link{ color: var(--coral); }
.nav-cta{ display: flex; align-items: center; gap: 14px; }
.nav-cta-mobile{ display: none; }

/* ---------- Products nav dropdown ---------- */
.nav-dropdown{ position: relative; }
.nav-dropdown-toggle{
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 0.95rem; font-weight: 600; color: var(--ink-soft);
  display: flex; align-items: center; gap: 5px; padding: 0;
  transition: color .15s ease;
}
.nav-dropdown-toggle:hover{ color: var(--ink); }
.nav-dropdown-toggle .chevron{ font-size: 0.65rem; transition: transform .15s ease; }
.nav-dropdown.open .nav-dropdown-toggle .chevron{ transform: rotate(180deg); }

/* Highlighted variant — used for the Products menu to stand out from plain nav links */
.nav-dropdown-toggle.highlight{
  background: var(--grad-primary);
  color: #fff;
  padding: 9px 16px 9px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(108,92,231,0.30);
}
.nav-dropdown-toggle.highlight:hover{ color: #fff; box-shadow: 0 10px 26px rgba(108,92,231,0.4); transform: translateY(-1px); }
.nav-dropdown-toggle.highlight .chevron{ color: rgba(255,255,255,0.85); }

.nav-dropdown-menu{
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%);
  width: 320px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 10px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .15s ease, visibility .15s ease;
  z-index: 60;
}
.nav-dropdown-menu.wide{ width: 460px; }
.nav-dropdown-menu.wide .nav-dropdown-list{ display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav-dropdown.open .nav-dropdown-menu{ opacity: 1; visibility: visible; pointer-events: auto; }
.nav-dropdown-item{
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px; border-radius: var(--radius-md);
}
.nav-dropdown-item:hover{ background: var(--surface-alt); }
.ndi-icon{
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.02em;
}
.ndi-icon.erp{ background: #4F46E5; }
.ndi-icon.fsm{ background: #0D9488; }
.ndi-icon.industry{ background: var(--grad-primary); font-size: 1rem; font-weight: 400; }
.nav-dropdown-item strong{ display: block; font-size: 0.92rem; color: var(--ink); margin-bottom: 2px; }
.nav-dropdown-item small{ display: block; font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.nav-dropdown-item.plain{ align-items: center; font-size: 0.92rem; font-weight: 600; color: var(--ink); }

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span{
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero (dark) ---------- */
.hero{
  background: var(--surface-dark);
  color: #fff;
  overflow: hidden;
  padding: 96px 0 100px;
}
.hero::before{
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-mesh);
  pointer-events: none;
}
.hero::after{
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 90%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 90%);
  pointer-events: none;
}
.hero-inner{ position: relative; z-index: 1; text-align: center; max-width: 880px; margin: 0 auto; }
.hero h1{
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  color: #fff;
  margin-bottom: 24px;
}
.hero p.lead{
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255,255,255,0.72);
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-cta{ display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-tags{ display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-tags .tag{ background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); color: rgba(255,255,255,0.85); }

.page-hero{
  background: var(--surface-dark);
  color: #fff;
  overflow: hidden;
  padding: 76px 0 84px;
}
.page-hero::before{ content:''; position:absolute; inset:0; background: var(--grad-mesh); pointer-events:none; }
.page-hero-inner{ position: relative; z-index: 1; max-width: 720px; }
.page-hero h1{ font-size: clamp(2.1rem, 4.4vw, 3.2rem); color: #fff; margin-bottom: 18px; }
.page-hero p{ color: rgba(255,255,255,0.72); font-size: 1.1rem; max-width: 620px; }
.breadcrumb{ position:relative; z-index:1; display:flex; gap:8px; align-items:center; font-size:0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 24px; }
.breadcrumb a:hover{ color:#fff; }

/* ---------- Sections ---------- */
.section{ padding: 100px 0; }
.section.alt{ background: var(--surface-alt); }
.section.tight{ padding: 72px 0; }

/* ---------- Segment cards (who we serve) ---------- */
.segment-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.segment-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.segment-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.segment-card .num{
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 20px;
  display: block;
}
.segment-card h3{ font-size: 1.3rem; margin-bottom: 12px; }
.segment-card p{ color: var(--muted); font-size: 0.96rem; }

/* ---------- Process steps ---------- */
.process-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.process-step{
  padding: 28px 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
}
.process-step::before{
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 14px;
}
.process-step h4{ font-size: 1.05rem; margin-bottom: 8px; }
.process-step p{ color: var(--muted); font-size: 0.92rem; }

/* ---------- Service / Solution cards ---------- */
.card-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card-grid.cols-2{ grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4{ grid-template-columns: repeat(4, 1fr); }

.svc-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.svc-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); }
.svc-icon{
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-primary);
  color: #fff;
  margin-bottom: 22px;
  font-size: 1.4rem;
}
.svc-card h3{ font-size: 1.2rem; margin-bottom: 10px; }
.svc-card p{ color: var(--muted); font-size: 0.94rem; margin-bottom: 18px; }
.svc-card .link-arrow{ margin-top: auto; font-weight: 700; font-size: 0.88rem; color: var(--violet); display: inline-flex; align-items: center; gap: 6px; }
.svc-card ul{ margin: 0 0 18px; display:flex; flex-direction:column; gap:8px; }
.svc-card ul li{ font-size: 0.9rem; color: var(--ink-soft); display:flex; gap:10px; align-items:flex-start; }
.svc-card ul li::before{ content:'✓'; color: var(--teal); font-weight:700; flex-shrink:0; }
.tech-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top: 8px; }

/* solution card variant (gradient top bar) */
.sol-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.sol-card::before{
  content:'';
  position:absolute; top:0; left:0; right:0; height: 4px;
  background: var(--grad-primary);
}
.sol-card h3{ font-size: 1.1rem; margin: 6px 0 10px; }
.sol-card p{ color: var(--muted); font-size: 0.92rem; }
.sol-card.featured::before{ background: var(--grad-crm); }
.sol-card.featured{ border-color: rgba(226,59,59,0.35); }

/* ---------- Tech strip ---------- */
.tech-strip{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.tech-strip .tag{ font-size: 0.85rem; padding: 9px 16px; }

/* ---------- CRM spotlight ---------- */
.crm-spotlight{
  background: linear-gradient(135deg, #17100F 0%, #1F1413 60%, #241514 100%);
  border-radius: var(--radius-lg);
  padding: 64px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.crm-spotlight::before{
  content:'';
  position:absolute; inset:0;
  background: radial-gradient(circle at 85% 20%, rgba(226,59,59,0.30), transparent 55%),
              radial-gradient(circle at 10% 90%, rgba(226,59,59,0.16), transparent 50%);
  pointer-events:none;
}
.crm-spotlight-content{ position: relative; z-index: 1; }
.crm-spotlight h2{ color:#fff; font-size: clamp(1.6rem,3vw,2.2rem); margin-bottom: 18px; }
.crm-spotlight p{ color: rgba(255,255,255,0.72); font-size: 1.02rem; margin-bottom: 28px; max-width: 480px; }
.crm-feature-list{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; position:relative; z-index:1; }
.crm-feature-list li{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.crm-feature-list li span{ display:block; font-size: 1.3rem; margin-bottom: 8px; }

/* ---------- Portfolio ---------- */
.work-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card{
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.work-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.work-thumb{
  height: 160px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.92);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.work-thumb.alt1{ background: linear-gradient(120deg,#3E7BFA,#00C2A8); }
.work-thumb.alt2{ background: linear-gradient(120deg,#FF6B4A,#6C5CE7); }
.work-thumb.alt3{ background: linear-gradient(120deg,#00C2A8,#6C5CE7); }
.work-thumb.alt4{ background: linear-gradient(120deg,#3E7BFA,#FF6B4A); }
.work-body{ padding: 22px 24px 26px; }
.work-body .tag{ margin-bottom: 12px; }
.work-body h3{ font-size: 1.08rem; margin-bottom: 6px; }
.work-body p{ color: var(--muted); font-size: 0.9rem; }

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--surface-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before{ content:''; position:absolute; inset:0; background: var(--grad-mesh); pointer-events:none; }
.cta-band-inner{ position: relative; z-index: 1; }
.cta-band h2{ color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 16px; }
.cta-band p{ color: rgba(255,255,255,0.7); margin-bottom: 32px; max-width: 520px; margin-inline: auto; }
.cta-actions{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--surface-dark);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 32px;
}
.footer-top{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo{ color: #fff; margin-bottom: 16px; }
.footer-brand p{ font-size: 0.92rem; color: rgba(255,255,255,0.55); max-width: 280px; }
.footer-col h4{ color: #fff; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul{ display: flex; flex-direction: column; gap: 12px; }
.footer-col a{ font-size: 0.92rem; color: rgba(255,255,255,0.6); transition: color .15s ease; }
.footer-col a:hover{ color: #fff; }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a{ color: rgba(255,255,255,0.55); }
.footer-bottom a:hover{ color: #fff; }

/* ---------- Forms ---------- */
.form-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field{ display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field.full{ grid-column: 1 / -1; }
.form-field label{ font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.form-field input, .form-field select, .form-field textarea{
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--ink);
  resize: vertical;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.15);
}
.contact-card{
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--line);
}
.contact-info-item{ display:flex; gap:16px; align-items:flex-start; margin-bottom: 26px; }
.contact-info-item .ic{
  width: 44px; height:44px; border-radius: 12px;
  background: var(--grad-primary); color:#fff;
  display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:1.1rem;
}
.contact-info-item h4{ font-size: 0.98rem; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a{ color: var(--muted); font-size: 0.9rem; }

/* ---------- Two column layout ---------- */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse{ direction: rtl; }
.split.reverse > *{ direction: ltr; }

.stat-block{ display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 36px; }
.stat-block .stat h3{ font-size: 1.8rem; margin-bottom: 4px; }
.stat-block .stat p{ font-size: 0.85rem; color: var(--muted); }

.visual-panel{
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
  padding: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display:flex; flex-direction:column; justify-content:center;
}
.visual-panel::before{ content:''; position:absolute; inset:0; background: var(--grad-mesh); pointer-events:none; }
.visual-panel-inner{ position: relative; z-index:1; }
.code-line{ font-family: 'Space Grotesk', monospace; font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 10px; }
.code-line b{ color: #fff; }
.code-line .kw{ color: #7FB3FF; }
.code-line .str{ color: #7FE9D0; }

/* ---------- Image placeholders / mockup frames ---------- */
.img-placeholder{
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  aspect-ratio: 16 / 10;
  padding: 24px;
}
.img-placeholder .ph-icon{ font-size: 2rem; opacity: 0.6; }
.img-placeholder.on-dark{
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.55);
}
.img-placeholder.small{ aspect-ratio: 4 / 3; padding: 16px; font-size: 0.8rem; gap: 6px; }
.img-placeholder.small .ph-icon{ font-size: 1.4rem; }

.browser-frame{
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.browser-frame .bf-bar{
  height: 38px;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.browser-frame .bf-bar span{ width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-frame .bf-screen{
  aspect-ratio: 16 / 9;
  background: repeating-linear-gradient(135deg, var(--surface-alt), var(--surface-alt) 12px, var(--surface) 12px, var(--surface) 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  padding: 24px;
}
.browser-frame .bf-screen .ph-icon{ font-size: 2.4rem; opacity: 0.55; }

.phone-frame{
  width: 220px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 34px;
  background: #14161C;
  box-shadow: var(--shadow-lg);
}
.phone-frame .pf-screen{
  aspect-ratio: 9 / 19;
  border-radius: 24px;
  background: repeating-linear-gradient(135deg, var(--surface-alt), var(--surface-alt) 10px, var(--surface) 10px, var(--surface) 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-align: center;
  padding: 18px;
}
.phone-frame .pf-screen .ph-icon{ font-size: 1.8rem; opacity: 0.55; }

.shot-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
  align-items: center;
}

/* ---------- Compact bullet list (features / modules) ---------- */
.bullet-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 48px;
}
.bullet-list li{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.bullet-list .bullet-dot{
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad-crm);
  color: #fff;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
}
.bullet-list .bullet-dot::before{ content: '✓'; }
.bullet-list strong{ color: var(--ink); font-weight: 700; }

/* ---------- Customers ---------- */
.customer-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
}
.customer-item{ text-align: center; }
.logo-slot{
  border: 2px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  aspect-ratio: 3 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
}
.customer-item h4{ margin-top: 14px; font-size: 1.02rem; }

/* ---------- Value grid (about) ---------- */
.value-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; }
.value-card{ padding: 26px; border-radius: var(--radius-md); background: var(--surface); border:1px solid var(--line); }
.value-card .svc-icon{ width:44px; height:44px; margin-bottom:16px; font-size:1.15rem; border-radius:12px; }
.value-card h4{ font-size:1.02rem; margin-bottom:8px; }
.value-card p{ font-size:0.88rem; color: var(--muted); }

/* ---------- Pricing ---------- */
.price-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.price-card.featured{
  border-color: rgba(226,59,59,0.4);
  box-shadow: var(--shadow-md);
  position: relative;
}
.price-card.featured::before{
  content: 'Most Popular';
  position: absolute;
  top: -13px; left: 30px;
  background: var(--grad-crm);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}
.price-card h3{ font-size: 1.1rem; margin-bottom: 4px; }
.price-card .price-amount{
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  margin: 14px 0 2px;
}
.price-card .price-period{ font-size: 0.85rem; color: var(--muted); margin-bottom: 22px; display:block; }
.price-card ul{ display:flex; flex-direction:column; gap:10px; margin-bottom: 26px; flex-grow: 1; }
.price-card ul li{ font-size: 0.9rem; color: var(--ink-soft); display:flex; gap:10px; align-items:flex-start; }
.price-card ul li::before{ content:'✓'; color: var(--coral); font-weight:700; flex-shrink:0; }

/* ---------- FAQ ---------- */
.faq-item{
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item summary{
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content: '+';
  font-size: 1.4rem;
  color: var(--violet);
  font-weight: 400;
  transition: transform .2s ease;
}
.faq-item[open] summary::after{ transform: rotate(45deg); }
.faq-item p{ color: var(--muted); margin-top: 14px; font-size: 0.95rem; max-width: 720px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .nav-links{
    position: fixed;
    top: 80px; left: 0; right: 0; bottom: 0;
    height: calc(100vh - 80px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-cta{ display:none; }
  .nav-links .nav-cta-mobile{ display:flex; flex-direction:column; gap:12px; width:100%; margin-top: 12px; }
  .nav-toggle{ display: flex; }

  .nav-dropdown{ width: 100%; }
  .nav-dropdown-toggle{ width: 100%; justify-content: space-between; font-size: 1rem; }
  .nav-dropdown-toggle.highlight{ width: auto; align-self: flex-start; }
  .nav-dropdown-menu{
    position: static; transform: none; width: 100%; max-width: none;
    box-shadow: none; border: none; padding: 8px 0 0 0;
    opacity: 1; visibility: visible; pointer-events: none;
    display: none;
  }
  .nav-dropdown-menu.wide{ width: 100%; }
  .nav-dropdown-menu.wide .nav-dropdown-list{ grid-template-columns: 1fr; }
  .nav-dropdown.open .nav-dropdown-menu{ display: block; pointer-events: auto; }
  .nav-dropdown-item{ padding: 10px 0; }

  .segment-grid, .process-grid, .card-grid, .card-grid.cols-4, .value-grid, .work-grid{ grid-template-columns: repeat(2,1fr); }
  .crm-spotlight{ grid-template-columns: 1fr; padding: 40px 28px; }
  .crm-feature-list{ grid-template-columns: 1fr 1fr; }
  .split{ grid-template-columns: 1fr; gap: 36px; }
  .footer-top{ grid-template-columns: 1fr 1fr; }
  .stat-block{ grid-template-columns: 1fr 1fr; }
  .shot-grid{ grid-template-columns: 1fr; }
  .shot-grid .phone-frame{ width: 200px; }
  .customer-grid{ grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (max-width: 640px){
  .section{ padding: 64px 0; }
  .segment-grid, .process-grid, .card-grid, .card-grid.cols-2, .card-grid.cols-4, .value-grid, .work-grid, .form-grid{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr; }
  .cta-band, .crm-spotlight{ padding: 36px 22px; }
  .hero{ padding: 64px 0 72px; }
  .stat-block{ grid-template-columns: 1fr; }
  .bullet-list{ grid-template-columns: 1fr; }
  .customer-grid{ grid-template-columns: 1fr; max-width: 280px; }
}

/* ==========================================================================
   Mobitplus CRM — product UI theme (scoped to body.crm-theme)
   Indigo brand color, white cards on slate canvas, moderate radius, Inter only —
   matches the look and feel of the Mobitplus Manager app.
   ========================================================================== */
body.crm-theme{
  --ink:            #0F172A;
  --ink-soft:       #334155;
  --muted:          #64748B;
  --line:           #E2E8F0;
  --surface:        #FFFFFF;
  --surface-alt:    #F1F5F9;
  --coral:          #4F46E5;
  --grad-crm:       #4F46E5;
  --font-display:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-pill: 8px;
}

body.crm-theme .site-header{ background: rgba(255,255,255,0.9); }
body.crm-theme .site-header.scrolled{ border-color: var(--line); box-shadow: 0 4px 20px rgba(15,23,42,0.06); }
body.crm-theme .logo{ color: var(--ink); }
body.crm-theme .parent-link{ border-left-color: var(--line); }
body.crm-theme .nav-links{ background: #fff; }

body.crm-theme .hero{ background: linear-gradient(135deg, #6366F1 0%, #4338CA 100%); }

body.crm-theme .eyebrow.coral{ color: rgba(255,255,255,0.85); }
body.crm-theme .eyebrow.coral::before{ background: #fff; }

body.crm-theme .gradient-text.crm{ background: none; -webkit-text-fill-color: #C7D2FE; color: #C7D2FE; }

body.crm-theme .btn-crm{ box-shadow: 0 10px 24px rgba(79,70,229,0.28); }
body.crm-theme .btn-crm:hover{ box-shadow: 0 14px 32px rgba(79,70,229,0.34); }
body.crm-theme .btn-ghost{ border-color: var(--ink); color: var(--ink); }
body.crm-theme .btn-ghost:hover{ border-color: var(--coral); color: var(--coral); background: rgba(79,70,229,0.05); }

body.crm-theme .svc-card, body.crm-theme .price-card, body.crm-theme .segment-card,
body.crm-theme .browser-frame, body.crm-theme .sol-card{
  box-shadow: 0 1px 2px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.08);
}
body.crm-theme .price-card.featured{ border-color: var(--coral); box-shadow: 0 8px 24px rgba(79,70,229,0.15); }
body.crm-theme .faq-item summary::after{ color: var(--coral); }

body.crm-theme .cta-band::before{ background: none; }
body.crm-theme .phone-frame{ background: var(--ink); }

/* ==========================================================================
   Mobitplus Field Sales Manager — dark "live tracking" theme (body.fsm-theme)
   Dark navy canvas, vivid live-green accent, pill shapes — deliberately
   different from the light indigo ERP dashboard theme.
   ========================================================================== */
body.fsm-theme{
  --ink:            #F1F5F9;
  --ink-soft:       #CBD5E1;
  --muted:          #94A3B8;
  --line:           rgba(255,255,255,0.12);
  --surface:        #0B1220;
  --surface-alt:    #101B2D;
  --coral:          #22C55E;
  --grad-crm:       #22C55E;
  --font-display:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm:  10px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-pill: 999px;
  background: var(--surface);
}

body.fsm-theme .site-header{ background: rgba(11,18,32,0.86); }
body.fsm-theme .site-header.scrolled{ border-color: var(--line); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
body.fsm-theme .logo{ color: var(--ink); }
body.fsm-theme .nav-links a{ color: var(--ink-soft); }
body.fsm-theme .nav-links a:hover{ color: var(--ink); }
body.fsm-theme .parent-link{ border-left-color: var(--line); color: var(--muted); }
body.fsm-theme .nav-links{ background: #0B1220; }

body.fsm-theme .hero{
  background:
    radial-gradient(circle at 20% 15%, rgba(34,197,94,0.20), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(34,197,94,0.12), transparent 50%),
    #0B1220;
}

body.fsm-theme .eyebrow.coral{ color: var(--coral); }
body.fsm-theme .eyebrow.coral::before{ background: var(--coral); }

body.fsm-theme .gradient-text.crm{ background: none; -webkit-text-fill-color: var(--coral); color: var(--coral); }

body.fsm-theme .btn-crm{ box-shadow: 0 10px 24px rgba(34,197,94,0.30); }
body.fsm-theme .btn-crm:hover{ box-shadow: 0 14px 32px rgba(34,197,94,0.38); }
body.fsm-theme .btn-ghost{ border-color: rgba(255,255,255,0.3); color: var(--ink); }
body.fsm-theme .btn-ghost:hover{ border-color: var(--coral); color: var(--coral); background: rgba(34,197,94,0.08); }
body.fsm-theme .btn-on-dark{ background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); }

body.fsm-theme .svc-card, body.fsm-theme .price-card, body.fsm-theme .segment-card,
body.fsm-theme .browser-frame, body.fsm-theme .sol-card, body.fsm-theme .process-step{
  background: var(--surface-alt);
  box-shadow: none;
}
body.fsm-theme .price-card.featured{ border-color: var(--coral); box-shadow: 0 8px 24px rgba(34,197,94,0.18); }
body.fsm-theme .faq-item summary::after{ color: var(--coral); }
body.fsm-theme .process-step::before{ -webkit-text-fill-color: var(--coral); background: none; color: var(--coral); }

body.fsm-theme .cta-band::before{ background: none; }
body.fsm-theme .phone-frame{ background: #000; }
body.fsm-theme .phone-frame .pf-screen{
  background: repeating-linear-gradient(135deg, var(--surface-alt), var(--surface-alt) 10px, var(--surface) 10px, var(--surface) 20px);
}
body.fsm-theme .browser-frame .bf-bar{ background: var(--surface); }
body.fsm-theme .browser-frame .bf-screen{
  background: repeating-linear-gradient(135deg, var(--surface-alt), var(--surface-alt) 12px, var(--surface) 12px, var(--surface) 24px);
}
body.fsm-theme .img-placeholder{ background: var(--surface-alt); }

/* Live-pulse indicator */
.live-dot{
  position: relative;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral); display: inline-block; flex-shrink: 0;
}
.live-dot::after{
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--coral); opacity: 0.6;
  animation: livePulse 1.8s ease-out infinite;
}
@keyframes livePulse{
  0%{ transform: scale(0.5); opacity: 0.7; }
  100%{ transform: scale(2.2); opacity: 0; }
}

/* Feature chip grid — compact, pill-shaped, icon + short label only */
.chip-grid{ display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.feature-chip{
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-alt); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 13px 22px 13px 13px;
  font-weight: 600; font-size: 0.95rem; color: var(--ink);
}
.feature-chip .fc-icon{
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad-crm); color: #0B1220;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
}

/* Split hero: text left, device mockup right (Field Sales Manager) */
body.fsm-theme .hero-inner{
  text-align: left;
  max-width: 1120px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
body.fsm-theme .hero-text .eyebrow{ justify-content: flex-start; }
body.fsm-theme .hero-text .hero-cta{ justify-content: flex-start; }
body.fsm-theme .hero-text .hero-tags{ justify-content: flex-start; }
body.fsm-theme .hero p.lead{ margin: 0 0 32px 0; max-width: 520px; }
body.fsm-theme .hero-visual{ position: relative; padding: 0 24px 44px 0; }
body.fsm-theme .hero-visual .browser-frame{ width: 100%; }
body.fsm-theme .hero-visual .browser-frame .bf-screen{ aspect-ratio: 16 / 11; }
body.fsm-theme .hero-visual .phone-frame{
  position: absolute;
  bottom: 0; right: 0;
  width: 120px;
  margin: 0;
  box-shadow: 0 20px 44px rgba(0,0,0,0.45);
}

@media (max-width: 900px){
  body.fsm-theme .hero-inner{ grid-template-columns: 1fr; text-align: center; gap: 40px; }
  body.fsm-theme .hero-text .eyebrow{ justify-content: center; }
  body.fsm-theme .hero-text .hero-cta{ justify-content: center; }
  body.fsm-theme .hero-text .hero-tags{ justify-content: center; }
  body.fsm-theme .hero p.lead{ margin: 0 auto 32px; }
  body.fsm-theme .hero-visual{ max-width: 380px; margin: 0 auto; padding: 0 20px 40px 0; }
}

/* ---------- ERP dedicated footer ---------- */
.erp-footer{ background: #0F172A; color: rgba(255,255,255,0.7); padding: 56px 0 28px; }
.erp-footer-top{
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.erp-footer-brand{ max-width: 320px; }
.erp-footer-brand .logo{ color: #fff; margin-bottom: 12px; display: inline-flex; }
.erp-footer-brand p{ font-size: 0.88rem; color: rgba(255,255,255,0.55); }
.erp-footer-links{ display: flex; flex-direction: column; gap: 12px; }
.erp-footer-links a, .erp-footer-links button{
  background: none; border: none; padding: 0; text-align: left; cursor: pointer;
  color: rgba(255,255,255,0.7); font-size: 0.92rem; font-family: inherit;
}
.erp-footer-links a:hover, .erp-footer-links button:hover{ color: #fff; }
.store-label{ display: block; font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.store-badges{ display: flex; gap: 10px; flex-wrap: wrap; }
.store-badge{
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px; padding: 9px 14px; color: #fff; font-size: 0.82rem; font-weight: 600;
}
.store-badge:hover{ background: rgba(255,255,255,0.14); }
.erp-footer-bottom{
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; font-size: 0.82rem; color: rgba(255,255,255,0.45);
}
.erp-footer-bottom a{ color: rgba(255,255,255,0.6); }
.erp-footer-bottom a:hover{ color: #fff; }

@media (max-width: 640px){
  .erp-footer-top{ flex-direction: column; gap: 28px; }
}

/* ---------- Chat widget ---------- */
.chat-widget{ position: fixed; bottom: 24px; right: 24px; z-index: 500; }
.chat-bubble-btn{
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--grad-crm); color: #fff; font-size: 1.5rem;
  border: none; cursor: pointer; box-shadow: 0 12px 28px rgba(0,0,0,0.24);
  display: flex; align-items: center; justify-content: center;
}
.chat-panel{
  position: absolute; bottom: 74px; right: 0;
  width: 320px; max-width: calc(100vw - 48px);
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.chat-panel.open{ opacity: 1; visibility: visible; transform: translateY(0); }
.chat-panel-header{
  background: var(--grad-crm); color: #fff;
  padding: 16px 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.chat-panel-header strong{ display: block; font-size: 0.95rem; }
.chat-panel-header span{ display: block; font-size: 0.78rem; opacity: 0.85; margin-top: 2px; }
.chat-close{ background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.chat-panel-body{ padding: 16px 18px 0; }
.chat-bubble{
  background: var(--surface-alt); border-radius: var(--radius-md);
  padding: 12px 14px; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.5;
}
.chat-panel-footer{ padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.chat-panel-footer input, .chat-panel-footer textarea{
  padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  font-family: inherit; font-size: 0.85rem; resize: vertical; background: var(--surface); color: var(--ink);
}
.chat-panel-footer input:focus, .chat-panel-footer textarea:focus{ outline: none; border-color: var(--coral); }
