/* ============================================================
   MV Reports Site v3.0 — Custom Stylesheet
   Stack: Bootstrap 3 + jQuery + Custom CSS
   ============================================================ */

/* --- CSS Variables (Light Mode defaults) --- */
:root {
  --mv-primary:      #2563eb;
  --mv-primary-dark: #1d4ed8;
  --mv-primary-light:#eff6ff;
  --mv-accent:       #0ea5e9;
  --mv-success:      #16a34a;
  --mv-warning:      #d97706;
  --mv-danger:       #dc2626;

  --mv-text:         #1e293b;
  --mv-muted:        #64748b;
  --mv-heading:      #0f172a;
  --mv-border:       #e2e8f0;

  --mv-bg:           #f8fafc;
  --mv-bg-alt:       #ffffff;
  --mv-card:         #ffffff;
  --mv-card-border:  #e2e8f0;

  --mv-nav-bg:       rgba(255,255,255,0.95);
  --mv-nav-text:     #1e293b;
  --mv-nav-hover:    #2563eb;

  --mv-shadow-sm:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --mv-shadow:       0 4px 16px rgba(0,0,0,0.08);
  --mv-shadow-lg:    0 12px 32px rgba(0,0,0,0.1);

  --mv-radius:       10px;
  --mv-radius-lg:    16px;
  --mv-transition:   all 0.25s ease;
}

/* --- Dark Mode overrides --- */
body.dark-mode {
  --mv-text:         #e2e8f0;
  --mv-muted:        #94a3b8;
  --mv-heading:      #f1f5f9;
  --mv-border:       #334155;

  --mv-bg:           #0f172a;
  --mv-bg-alt:       #1e293b;
  --mv-card:         #1e293b;
  --mv-card-border:  #334155;

  --mv-nav-bg:       rgba(15,23,42,0.97);
  --mv-nav-text:     #e2e8f0;
  --mv-nav-hover:    #60a5fa;

  --mv-primary-light:#1e3a5f;
  --mv-shadow-sm:    0 1px 3px rgba(0,0,0,0.3);
  --mv-shadow:       0 4px 16px rgba(0,0,0,0.3);
  --mv-shadow-lg:    0 12px 32px rgba(0,0,0,0.4);
}

/* --- Global Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--mv-text);
  background-color: var(--mv-bg);
  line-height: 1.7;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  color: var(--mv-heading);
  font-weight: 700;
  line-height: 1.2;
  transition: color 0.3s ease;
}

a {
  color: var(--mv-primary);
  transition: var(--mv-transition);
}

a:hover {
  color: var(--mv-primary-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* --- Section spacing --- */
.mv-section {
  padding: 90px 0;
}

.mv-section-sm {
  padding: 60px 0;
}

.mv-section-alt {
  background-color: var(--mv-bg-alt);
  transition: background-color 0.3s ease;
}

/* --- Section labels --- */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mv-primary);
  background: var(--mv-primary-light);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 18px;
  transition: background 0.3s ease, color 0.3s ease;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--mv-heading);
  margin-top: 0;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--mv-muted);
  max-width: 620px;
  line-height: 1.7;
}

.section-title-center {
  text-align: center;
}

.section-sub-center {
  text-align: center;
  margin: 0 auto;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.mv-navbar {
  background: transparent;
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 6px 0;
}

.mv-navbar.scrolled {
  background: var(--mv-nav-bg);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mv-navbar .navbar-brand {
  padding: 10px 15px;
  height: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mv-navbar .navbar-brand img {
  height: 36px;
  width: auto;
  transition: filter 0.3s ease;
}

/* In dark mode the wordmark dark text (#1e293b) becomes invisible — lighten it */
body.dark-mode .mv-navbar .navbar-brand img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.mv-navbar.scrolled .logo-text {
  color: var(--mv-heading);
}

.mv-navbar .navbar-nav > li > a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 20px 14px;
  transition: var(--mv-transition);
}

.mv-navbar.scrolled .navbar-nav > li > a {
  color: var(--mv-nav-text);
}

.mv-navbar .navbar-nav > li > a:hover,
.mv-navbar .navbar-nav > li > a:focus {
  color: #ffffff;
  background: transparent;
}

.mv-navbar.scrolled .navbar-nav > li > a:hover,
.mv-navbar.scrolled .navbar-nav > li > a:focus {
  color: var(--mv-primary);
  background: transparent;
}

.nav-btn-login {
  border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: 6px !important;
  margin: 12px 6px !important;
  padding: 7px 16px !important;
}

.mv-navbar.scrolled .nav-btn-login {
  border-color: var(--mv-border) !important;
}

.nav-btn-demo {
  background: var(--mv-primary) !important;
  color: #fff !important;
  border-radius: 6px !important;
  margin: 12px 0 !important;
  padding: 7px 18px !important;
  font-weight: 600 !important;
}

.nav-btn-demo:hover {
  background: var(--mv-primary-dark) !important;
}

.nav-divider {
  border-left: 1px solid rgba(255,255,255,0.2);
  height: 20px;
  margin: 20px 8px;
  display: inline-block;
  vertical-align: middle;
}

.mv-navbar.scrolled .nav-divider {
  border-color: var(--mv-border);
}

#lang-toggle,
#theme-toggle {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.mv-navbar .navbar-toggle {
  border-color: rgba(255,255,255,0.3);
  margin-top: 14px;
}

.mv-navbar .navbar-toggle .icon-bar {
  background-color: #ffffff;
}

.mv-navbar.scrolled .navbar-toggle {
  border-color: var(--mv-border);
}

.mv-navbar.scrolled .navbar-toggle .icon-bar {
  background-color: var(--mv-heading);
}

/* ============================================================
   HERO
   ============================================================ */
/* ============================================================
   HERO — SPLIT PANEL
   ============================================================ */
.mv-hero-split {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #0f172a;
}

.hero-panel {
  position: absolute;
  top: 0;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* MES: left panel with diagonal right edge */
.hero-panel-mes {
  left: 0;
  width: 57%;
  clip-path: polygon(0 0, 100% 0, calc(100% - 90px) 100%, 0 100%);
  z-index: 2;
}

/* CMMS: full-width behind MES, visible only on right */
.hero-panel-cmms {
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1;
}

/* Background videos */
.hero-panel-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  transition: transform 0.75s ease;
}

.mv-hero-split.hover-mes .hero-panel-mes .hero-panel-video,
.mv-hero-split.hover-cmms .hero-panel-cmms .hero-panel-video {
  transform: translate(-50%, -50%) scale(1.04);
}

/* Overlays */
.hero-panel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: background 0.5s ease;
}

.hero-panel-mes .hero-panel-overlay {
  background: linear-gradient(150deg, rgba(15,23,42,0.8) 0%, rgba(37,99,235,0.5) 100%);
}

.hero-panel-cmms .hero-panel-overlay {
  background: linear-gradient(30deg, rgba(15,23,42,0.8) 0%, rgba(2,132,199,0.5) 100%);
}

/* Active panel: lighten overlay to reveal video */
.mv-hero-split.hover-mes .hero-panel-mes .hero-panel-overlay {
  background: linear-gradient(150deg, rgba(15,23,42,0.55) 0%, rgba(37,99,235,0.38) 100%);
}

.mv-hero-split.hover-cmms .hero-panel-cmms .hero-panel-overlay {
  background: linear-gradient(30deg, rgba(15,23,42,0.55) 0%, rgba(2,132,199,0.35) 100%);
}

/* Inactive panel: darken */
.mv-hero-split.hover-mes .hero-panel-cmms .hero-panel-overlay,
.mv-hero-split.hover-cmms .hero-panel-mes .hero-panel-overlay {
  background: rgba(8, 12, 28, 0.88);
}

/* Panel content blocks — hidden until panel is hovered */
.hero-panel-content {
  position: absolute;
  z-index: 3;
  bottom: 12%;
  max-width: 400px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.4s ease 0.05s, transform 0.4s ease 0.05s;
}

.mv-hero-split.hover-mes .hero-panel-mes .hero-panel-content,
.mv-hero-split.hover-cmms .hero-panel-cmms .hero-panel-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-panel-mes .hero-panel-content {
  left: 7%;
}

.hero-panel-cmms .hero-panel-content {
  right: 7%;
  left: auto;
  text-align: left;
}

/* Module tag */
.hero-panel-tag {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 16px;
}

/* Panel title */
.hero-panel-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px, 3vw, 50px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin: 0 0 14px;
}

/* Panel subtitle */
.hero-panel-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.68);
  line-height: 1.65;
  margin: 0 0 28px;
}

/* CTA — hidden until panel is hovered */
.hero-panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.32);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 12px 24px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease 0.08s, transform 0.35s ease 0.08s, background 0.2s ease;
  pointer-events: none;
}

.hero-panel-cta:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
  text-decoration: none;
}

.mv-hero-split.hover-mes .hero-panel-mes .hero-panel-cta,
.mv-hero-split.hover-cmms .hero-panel-cmms .hero-panel-cta {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Width transitions on hover */
.mv-hero-split.hover-mes  .hero-panel-mes  { width: 68%; }
.mv-hero-split.hover-cmms .hero-panel-mes  { width: 42%; }

/* Centered overlay title */
.hero-center-block {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  width: 90%;
  opacity: 0; /* hidden until hero-ready */
}

/* Entrance */
.mv-hero-split.hero-ready .hero-center-block {
  opacity: 1;
}

/* Slide toward the hovered side instead of disappearing */
.mv-hero-split.hover-mes .hero-center-block {
  opacity: 0.72;
  transform: translate(-74%, -50%) scale(0.66);
}

.mv-hero-split.hover-cmms .hero-center-block {
  opacity: 0.72;
  transform: translate(-26%, -50%) scale(0.66);
}

.hero-center-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(40px, 6vw, 86px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.05;
  margin: 0 0 12px;
  text-shadow: 0 2px 32px rgba(0,0,0,0.5);
  letter-spacing: -0.5px;
}

.hero-center-hint {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: opacity 0.3s ease;
}

.mv-hero-split.hover-mes .hero-center-hint,
.mv-hero-split.hover-cmms .hero-center-hint {
  opacity: 0;
}

/* Always-visible module label (cross-fades with detail content on hover) */
.hero-panel-label {
  position: absolute;
  z-index: 3;
  bottom: 14%;
  max-width: 440px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-panel-mes .hero-panel-label   { left: 7%; }
.hero-panel-cmms .hero-panel-label  { right: 7%; left: auto; }

/* Entrance — staggered after hero-ready */
.mv-hero-split.hero-ready .hero-panel-mes .hero-panel-label {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.mv-hero-split.hero-ready .hero-panel-cmms .hero-panel-label {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

/* Fade out when THIS panel is active — placed after ready rules so cascade wins */
.mv-hero-split.hover-mes .hero-panel-mes .hero-panel-label,
.mv-hero-split.hover-cmms .hero-panel-cmms .hero-panel-label {
  opacity: 0;
  transform: translateY(-10px);
  transition-delay: 0s;
}

.hero-panel-label-name {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(30px, 3.2vw, 52px);
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0,0,0,0.55);
}

/* Dead zone — transparent strip over the diagonal seam.
   The clip-path shifts the seam ~90px left from top to bottom,
   so the zone must be wide enough to cover the full diagonal sweep. */
.hero-dead-zone {
  position: absolute;
  top: 0;
  left: calc(57% - 110px);
  width: 180px;
  height: 100%;
  z-index: 11;
  cursor: default;
}

/* Diagonal seam line */
.hero-seam {
  position: absolute;
  top: 0;
  height: 100%;
  width: 3px;
  left: calc(57% - 1px);
  background: linear-gradient(to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.28) 35%,
    rgba(255,255,255,0.28) 65%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-6.5deg);
  transform-origin: top center;
  z-index: 6;
  pointer-events: none;
  transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.mv-hero-split.hover-mes  .hero-seam { left: calc(68% - 1px); }
.mv-hero-split.hover-cmms .hero-seam { left: calc(42% - 1px); }

/* ── Mobile: stack vertically ── */
@media (max-width: 767px) {
  .mv-hero-split { height: auto; }

  /* Each panel fills the full width and takes ~55 % viewport height */
  .hero-panel {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    height: 56vh;
    min-height: 320px;
    display: flex;
    align-items: center;
  }

  /* Clean horizontal stack — no diagonal on mobile */
  .hero-panel-mes {
    clip-path: none !important;
    z-index: 2;
    border-bottom: 2px solid rgba(255,255,255,0.1);
  }

  .hero-panel-cmms { clip-path: none !important; }

  /* Centre-block and panel-label are desktop-only concepts */
  .hero-center-block  { display: none; }
  .hero-panel-label   { display: none !important; }

  /* Content block: always visible, vertically centred via the flex parent */
  .hero-panel-content {
    position: relative !important;
    bottom: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100%;
    max-width: 100%;
    padding: 0 6% 0 6%;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  /* Tag pill: slightly smaller on mobile */
  .hero-panel-tag {
    font-size: 11px;
    padding: 5px 10px;
    margin-bottom: 10px;
  }

  /* Title: tighter on narrow screens */
  .hero-panel-title {
    font-size: clamp(24px, 6vw, 36px);
    line-height: 1.15;
    margin-bottom: 10px;
  }

  .hero-panel-sub {
    font-size: 14px;
    margin-bottom: 20px;
  }

  /* CTA: always visible on mobile */
  .hero-panel-cta {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    font-size: 14px;
    padding: 10px 18px;
  }

  .hero-seam { display: none; }
}

/* ============================================================
   PAIN POINTS
   ============================================================ */
.mv-pain {
  background: var(--mv-bg-alt);
  transition: background 0.3s ease;
}

.pain-card {
  background: var(--mv-card);
  border: 1px solid var(--mv-card-border);
  border-radius: var(--mv-radius-lg);
  padding: 0;
  height: 100%;
  transition: var(--mv-transition);
  position: relative;
  overflow: hidden;
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mv-primary), var(--mv-accent));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mv-shadow-lg);
}

.pain-card:hover::before {
  opacity: 1;
}

.pain-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.pain-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.pain-card:hover .pain-card-img img {
  transform: scale(1.05);
}

.pain-card-body {
  padding: 28px 26px;
}

.pain-quote {
  font-size: 15px;
  color: var(--mv-text);
  line-height: 1.65;
  font-style: italic;
}

/* ============================================================
   PLATFORM OVERVIEW (BENTO)
   ============================================================ */
/* Replace the URL below with your own image (e.g. assets/img/bg-platform.jpg) */
.mv-platform {
  position: relative;
  background-color: var(--mv-bg);
  background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=1920&q=80&auto=format');
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
}

.mv-platform::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.88);
  z-index: 0;
  pointer-events: none;
  transition: background 0.3s ease;
}

body.dark-mode .mv-platform::before {
  background: rgba(15, 23, 42, 0.91);
}

.mv-platform > .container {
  position: relative;
  z-index: 1;
}

.bento-row {
  margin-bottom: 24px;
}

.bento-card {
  background: var(--mv-card);
  border: 1px solid var(--mv-card-border);
  border-radius: var(--mv-radius-lg);
  padding: 32px;
  height: 100%;
  min-height: 240px;
  transition: var(--mv-transition);
  overflow: hidden;
  position: relative;
}

.bento-card:hover {
  box-shadow: var(--mv-shadow-lg);
  transform: translateY(-3px);
}

.bento-card-large {
  min-height: 340px;
}

.bento-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.bento-module-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 3px 9px;
  color: #fff;
}

.bento-module-tag.mes  { background: var(--mv-primary); }
.bento-module-tag.cmms { background: #7c3aed; }
.bento-module-tag.wms  { background: #ea580c; }
.bento-module-tag.qms  { background: #059669; }
.bento-module-tag.mobile { background: #0284c7; }

.bento-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--mv-heading);
  margin: 0;
}

.bento-card-desc {
  font-size: 14px;
  color: var(--mv-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* MES mini-dashboard */
.mini-dashboard {
  background: var(--mv-bg);
  border: 1px solid var(--mv-border);
  border-radius: 10px;
  padding: 16px;
  transition: background 0.3s ease;
}

.mini-oee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mini-oee-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mv-muted);
}

.mini-oee-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--mv-success);
}

.mini-oee-delta {
  font-size: 12px;
  color: var(--mv-success);
  font-weight: 600;
}

.mini-bar-track {
  height: 6px;
  background: var(--mv-border);
  border-radius: 3px;
  margin-bottom: 16px;
  overflow: hidden;
}

.mini-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mv-primary), var(--mv-accent));
  border-radius: 3px;
  width: 94%;
}

.mini-status-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mv-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.green  { background: #22c55e; }
.status-dot.orange { background: #f97316; }
.status-dot.blue   { background: #60a5fa; }

/* CMMS feature list */
.bento-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bento-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--mv-text);
}

.bento-feature-list li i {
  color: var(--mv-primary);
  font-size: 14px;
  width: 16px;
}

.bento-card.cmms-card .bento-feature-list li i {
  color: #7c3aed;
}

/* WMS & QMS small cards */
.bento-card-small {
  min-height: 180px;
}

/* Mobile card */
.bento-card-mobile {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
  border-color: #2d4a6e;
  color: #fff;
}

.bento-card-mobile .bento-card-title {
  color: #fff;
}

.bento-card-mobile .bento-card-desc {
  color: rgba(255,255,255,0.7);
}

.bento-card-mobile .bento-feature-list li {
  color: rgba(255,255,255,0.8);
}

.bento-card-mobile .bento-feature-list li i {
  color: #60a5fa;
}

.mobile-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.mobile-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
}

/* ============================================================
   MES & CMMS DEEP DIVE
   ============================================================ */
.mv-mes {
  background: var(--mv-bg-alt);
  transition: background 0.3s ease;
}

.mv-cmms {
  background: var(--mv-bg);
  transition: background 0.3s ease;
}

.module-body p {
  font-size: 16px;
  color: var(--mv-muted);
  line-height: 1.75;
  margin-bottom: 18px;
}

.module-feature-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.module-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--mv-text);
}

.feature-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mv-primary-light);
  color: var(--mv-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.cmms-card-inner .feature-check {
  background: #ede9fe;
  color: #7c3aed;
}

.module-callout {
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  border-left: 4px solid var(--mv-primary);
  border-radius: 0 var(--mv-radius) var(--mv-radius) 0;
  padding: 20px 24px;
  margin-top: 28px;
  font-size: 15px;
  font-style: italic;
  color: var(--mv-primary-dark);
  line-height: 1.6;
  transition: background 0.3s ease;
}

body.dark-mode .module-callout {
  background: linear-gradient(135deg, #1e3a5f, #1a2f4a);
  color: #93c5fd;
  border-left-color: #60a5fa;
}

.module-visual-panel {
  background: var(--mv-card);
  border: 1px solid var(--mv-card-border);
  border-radius: var(--mv-radius-lg);
  padding: 32px;
  box-shadow: var(--mv-shadow-lg);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.module-visual-panel h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mv-muted);
  margin-top: 0;
  margin-bottom: 20px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.kpi-card {
  background: var(--mv-bg);
  border: 1px solid var(--mv-border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  transition: background 0.3s ease;
}

.kpi-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--mv-heading);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.kpi-value.green { color: var(--mv-success); }
.kpi-value.blue  { color: var(--mv-primary); }
.kpi-value.orange { color: var(--mv-warning); }
.kpi-value.purple { color: #7c3aed; }

.kpi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mv-muted);
}

.wo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--mv-bg);
  border: 1px solid var(--mv-border);
  border-radius: 8px;
  font-size: 13px;
  transition: background 0.3s ease;
}

.wo-id {
  font-weight: 700;
  color: var(--mv-primary);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
}

.wo-desc {
  color: var(--mv-muted);
  flex: 1;
  padding: 0 12px;
}

.wo-status {
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  padding: 3px 9px;
}

.wo-status.open     { background: #fef3c7; color: #92400e; }
.wo-status.progress { background: #dbeafe; color: #1e40af; }
.wo-status.done     { background: #dcfce7; color: #166534; }

body.dark-mode .wo-status.open     { background: #451a03; color: #fbbf24; }
body.dark-mode .wo-status.progress { background: #1e3a5f; color: #93c5fd; }
body.dark-mode .wo-status.done     { background: #052e16; color: #86efac; }

/* ============================================================
   VIDEO SHOWCASE
   ============================================================ */
.mv-videos {
  background: var(--mv-bg-alt);
  transition: background 0.3s ease;
}

.video-card {
  background: var(--mv-card);
  border: 1px solid var(--mv-card-border);
  border-radius: var(--mv-radius-lg);
  overflow: hidden;
  transition: var(--mv-transition);
  cursor: pointer;
  height: 100%;
}

.video-card:hover {
  box-shadow: var(--mv-shadow-lg);
  transform: translateY(-4px);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0f172a;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.video-card:hover .video-thumb-img {
  transform: scale(1.05);
}

.video-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

.video-card:hover .video-thumb-overlay {
  background: rgba(0,0,0,0.22);
}

.video-thumb-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  transition: var(--mv-transition);
  backdrop-filter: blur(4px);
}

.video-card:hover .video-thumb-icon {
  transform: scale(1.12);
  background: rgba(255,255,255,0.28);
}

.video-module-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.4);
  border-radius: 4px;
  padding: 3px 9px;
  backdrop-filter: blur(4px);
}

.video-card-body {
  padding: 18px 20px 20px;
}

.video-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--mv-heading);
  margin: 0 0 6px;
}

.video-card-desc {
  font-size: 13px;
  color: var(--mv-muted);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   WMS + QMS COMPACT
   ============================================================ */
.mv-wmsqms {
  background: var(--mv-bg);
  transition: background 0.3s ease;
}

.secondary-module-card {
  background: var(--mv-card);
  border: 1px solid var(--mv-card-border);
  border-radius: var(--mv-radius-lg);
  padding: 0;
  height: 100%;
  overflow: hidden;
  transition: var(--mv-transition);
}

.secondary-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.secondary-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.secondary-module-card:hover .secondary-card-img img {
  transform: scale(1.05);
}

.secondary-card-body {
  padding: 32px 28px;
}

.secondary-module-card:hover {
  box-shadow: var(--mv-shadow);
}

.secondary-module-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.secondary-module-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--mv-heading);
  margin: 0 0 8px;
}

.secondary-module-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.secondary-module-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--mv-text);
}

.secondary-module-list li i {
  color: var(--mv-muted);
  width: 14px;
}

.secondary-cta-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mv-primary);
}

.secondary-cta-link:hover {
  color: var(--mv-primary-dark);
}

/* ============================================================
   ERP INTEGRATION
   ============================================================ */
.mv-erp {
  background: var(--mv-bg-alt);
  transition: background 0.3s ease;
}

.erp-badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}

.erp-badge-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mv-card);
  border: 1px solid var(--mv-card-border);
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 16px;
  font-weight: 800;
  color: var(--mv-heading);
  letter-spacing: 0.04em;
  box-shadow: var(--mv-shadow-sm);
  transition: var(--mv-transition);
}

.erp-badge-large:hover {
  box-shadow: var(--mv-shadow);
  transform: translateY(-2px);
  border-color: var(--mv-primary);
  color: var(--mv-primary);
}

.erp-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mv-success);
}

.erp-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.erp-benefit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--mv-text);
  line-height: 1.55;
}

.erp-benefit-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--mv-primary-light);
  color: var(--mv-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
  transition: background 0.3s ease;
}

/* ============================================================
   WHY MV REPORTS
   ============================================================ */
/* Replace the URL below with your own image (e.g. assets/img/bg-why.jpg) */
.mv-why {
  position: relative;
  background-color: var(--mv-bg);
  background-image: url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?w=1920&q=80&auto=format');
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
}

.mv-why::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.88);
  z-index: 0;
  pointer-events: none;
  transition: background 0.3s ease;
}

body.dark-mode .mv-why::before {
  background: rgba(15, 23, 42, 0.91);
}

.mv-why > .container {
  position: relative;
  z-index: 1;
}

.why-card {
  background: var(--mv-card);
  border: 1px solid var(--mv-card-border);
  border-radius: var(--mv-radius-lg);
  padding: 32px 28px;
  height: 100%;
  transition: var(--mv-transition);
}

.why-card:hover {
  box-shadow: var(--mv-shadow-lg);
  transform: translateY(-4px);
  border-color: var(--mv-primary);
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--mv-primary-light);
  color: var(--mv-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
  transition: background 0.3s ease;
}

.why-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--mv-heading);
  margin: 0 0 10px;
}

.why-card-body {
  font-size: 14px;
  color: var(--mv-muted);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   DEMO CTA
   ============================================================ */
.mv-demo {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e40af 100%);
  padding: 100px 0;
}

.demo-headline {
  font-size: clamp(30px, 5vw, 52px);
  color: #ffffff;
  margin: 0 0 16px;
}

.demo-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.demo-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 28px;
}

.btn-demo-primary {
  background: #fff;
  color: var(--mv-primary-dark);
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--mv-transition);
}

.btn-demo-primary:hover {
  background: #f0f9ff;
  color: var(--mv-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-demo-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--mv-transition);
}

.btn-demo-secondary:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
  transform: translateY(-1px);
}

.demo-trust {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   PRODUCT TOUR — tabbed S-path layout
   ============================================================ */
.mv-tour {
  background: var(--mv-bg-alt);
}

/* ── Tab nav ── */
.tour-tab-nav {
  margin-top: 44px;
  display: flex;
  justify-content: center;
}

.tour-tabs {
  display: inline-flex;
  gap: 10px;
  border: none !important;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.tour-tabs > li {
  float: none;
}

.tour-tabs > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 11px 26px;
  border-radius: var(--mv-radius) !important;
  border: 1.5px solid var(--mv-border) !important;
  color: var(--mv-muted) !important;
  background: var(--mv-card) !important;
  transition: var(--mv-transition);
  margin: 0 !important;
}

.tour-tabs > li > a i {
  font-size: 20px;
}

.tour-tabs > li > a:hover {
  color: var(--mv-primary) !important;
  border-color: var(--mv-primary) !important;
}

.tour-tabs > li.active > a,
.tour-tabs > li.active > a:focus {
  background: var(--mv-primary) !important;
  color: #fff !important;
  border-color: var(--mv-primary) !important;
}

/* ── Tab content ── */
.tour-tab-content {
  padding-top: 52px;
  border: none !important;
}

/* ── Flow container (positions SVG overlay) ── */
.tour-flow {
  position: relative;
}

/* ── Each step row: card | centre dot | spacer (alternating) ── */
.tour-step-row {
  display: flex;
  align-items: center;
  gap: 40px;   /* opens a 168px corridor (40+88+40) for the S-path to swing through */
  margin-bottom: 48px;
}

.tour-step-row:last-child {
  margin-bottom: 0;
}

.tour-step-card {
  flex: 1;
  background: var(--mv-card);
  border: 1.5px solid var(--mv-card-border);
  border-radius: var(--mv-radius-lg);
  padding: 28px 28px 24px;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  z-index: 2;
}

.tour-step-card.active {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: var(--mv-shadow);
}

.tour-pane-cmms .tour-step-card.active {
  border-color: rgba(14, 165, 233, 0.4);
}

.tour-step-center {
  width: 280px;       /* wide corridor — dots sit at ~40 % and ~60 % of container */
  flex-shrink: 0;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 5;         /* above SVG path */
}

/* Dot hugs the edge nearest its card, putting each at opposite x-positions */
.tour-row-left  .tour-step-center { justify-content: flex-start; }
.tour-row-right .tour-step-center { justify-content: flex-end;   }

.tour-step-spacer {
  flex: 1;
}

/* ── Numbered dot ── */
.tour-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--mv-card);
  border: 2px solid var(--mv-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--mv-muted);
  transition: background 0.35s ease, border-color 0.35s ease,
              color 0.35s ease, box-shadow 0.35s ease;
}

.tour-dot.active {
  background: var(--mv-primary);
  border-color: var(--mv-primary);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.14);
}

.tour-pane-cmms .tour-dot.active {
  background: var(--mv-accent);
  border-color: var(--mv-accent);
  box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.14);
}

/* ── Step text ── */
.tour-step-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--mv-heading);
  letter-spacing: 0.3px;
  line-height: 1;
  margin-bottom: 8px;
  transition: color 0.35s ease;
}

.tour-step-card.active .tour-step-label {
  color: var(--mv-primary);
}

.tour-pane-cmms .tour-step-card.active .tour-step-label {
  color: var(--mv-accent);
}

.tour-step-desc {
  font-size: 14px;
  color: var(--mv-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ── Video clip inside card ── */
.tour-video-wrap {
  margin-top: 18px;
  border-radius: var(--mv-radius);
  overflow: hidden;
  background: #0f172a;
  border: 1px solid var(--mv-card-border);
  aspect-ratio: 16 / 9;
}

.tour-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── SVG path overlay — above cards so it's never clipped ── */
.tour-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 4;
}


.tour-path-bg {
  fill: none;
  stroke: var(--mv-border);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tour-path-fg {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tour-pane-mes .tour-path-fg  { stroke: var(--mv-primary); }
.tour-pane-cmms .tour-path-fg { stroke: var(--mv-accent); }

/* ── Mobile: stack vertically, hide SVG ── */
@media (max-width: 767px) {
  .tour-step-row {
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
  }

  .tour-step-card { order: 2; flex-basis: 100%; }
  .tour-step-center { order: 1; width: auto; }
  .tour-step-spacer { display: none; }
  .tour-svg { display: none; }

  .tour-tabs > li > a {
    font-size: 14px;
    padding: 9px 16px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.mv-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.6);
  padding: 64px 0 32px;
}

.footer-logo-area {
  margin-bottom: 32px;
}

.footer-logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 260px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--mv-transition);
}

.footer-social-btn:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 40px 0 24px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   VIDEO MODAL
   ============================================================ */
#videoModal .modal-dialog {
  max-width: 900px;
  width: 90%;
  margin: 40px auto;
}

#videoModal .modal-content {
  background: #000;
  border: none;
  border-radius: var(--mv-radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

#videoModal .modal-header {
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 14px 20px;
}

#videoModal .modal-title {
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
}

#videoModal .close {
  color: rgba(255,255,255,0.7);
  opacity: 1;
  font-size: 24px;
}

#videoModal .close:hover {
  color: #fff;
}

#videoModal .modal-body {
  padding: 0;
}

#modal-video {
  width: 100%;
  display: block;
  max-height: 70vh;
  background: #000;
}

/* ============================================================
   SHARED BUTTON HELPERS
   ============================================================ */
.btn-primary-mv {
  background: var(--mv-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--mv-transition);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary-mv:hover {
  background: var(--mv-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37,99,235,0.3);
}

.btn-outline-mv {
  background: transparent;
  color: var(--mv-primary);
  border: 1px solid var(--mv-primary);
  border-radius: 8px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--mv-transition);
  cursor: pointer;
  text-decoration: none;
}

.btn-outline-mv:hover {
  background: var(--mv-primary);
  color: #fff;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .mv-navbar .navbar-nav > li > a {
    color: var(--mv-nav-text);
    padding: 10px 15px;
  }

  .mv-navbar .navbar-collapse {
    background: var(--mv-nav-bg);
    border-top: 1px solid var(--mv-border);
    padding: 8px 0;
    box-shadow: var(--mv-shadow);
  }

  .nav-divider { display: none; }

  .nav-btn-login,
  .nav-btn-demo {
    margin: 6px 15px !important;
    display: inline-block;
    width: auto;
  }

  .bento-card-large {
    min-height: 280px;
    margin-bottom: 24px;
  }

  .module-visual-panel {
    margin-top: 40px;
  }

  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .mv-section {
    padding: 64px 0;
  }


  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento-card {
    margin-bottom: 18px;
  }

  .secondary-module-card {
    margin-bottom: 24px;
  }

  .erp-badge-strip {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-primary-mv { color: var(--mv-primary); }
.text-muted-mv   { color: var(--mv-muted); }
.text-heading-mv { color: var(--mv-heading); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-6 { margin-bottom: 6px !important; }
.mb-8 { margin-bottom: 8px !important; }
.gap-row > [class*="col-"] { margin-bottom: 24px; }

/* ============================================================
   COMMERCIAL PARTNERS
   ============================================================ */
.mv-partners {
  background: var(--mv-bg);
  transition: background 0.3s ease;
}

.partner-card {
  background: var(--mv-card);
  border: 1px solid var(--mv-card-border);
  border-radius: var(--mv-radius-lg);
  padding: 36px 24px;
  text-align: center;
  height: 100%;
  transition: var(--mv-transition);
}

.partner-card:hover {
  box-shadow: var(--mv-shadow-lg);
  transform: translateY(-4px);
  border-color: var(--mv-primary);
}

.partner-logo-area {
  width: 100%;
  max-width: 144px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.partner-logo-area svg {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.partner-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--mv-heading);
  margin-bottom: 8px;
}

.partner-tier {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 3px 12px;
  background: var(--mv-primary-light);
  color: var(--mv-primary);
  margin-bottom: 14px;
  transition: background 0.3s ease;
}

.partner-desc {
  font-size: 13px;
  color: var(--mv-muted);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.mv-testimonials {
  background: var(--mv-bg-alt);
  transition: background 0.3s ease;
}

.testimonial-card {
  background: var(--mv-card);
  border: 1px solid var(--mv-card-border);
  border-radius: var(--mv-radius-lg);
  padding: 36px 32px;
  height: 100%;
  transition: var(--mv-transition);
}

.testimonial-card:hover {
  box-shadow: var(--mv-shadow-lg);
  transform: translateY(-3px);
}

.testimonial-quote-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 72px;
  line-height: 0.75;
  color: var(--mv-primary);
  opacity: 0.18;
  display: block;
  margin-bottom: 14px;
  user-select: none;
}

.testimonial-quote {
  font-size: 15px;
  color: var(--mv-text);
  line-height: 1.75;
  margin: 0 0 28px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--mv-border);
  padding-top: 20px;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mv-primary), var(--mv-accent));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--mv-heading);
  display: block;
}

.testimonial-role {
  font-size: 12px;
  color: var(--mv-muted);
  display: block;
}

/* ============================================================
   iOS SAFARI FALLBACK
   background-attachment: fixed causes rendering bugs on iOS.
   Falls back to normal scroll on touch devices.
   ============================================================ */
@supports (-webkit-touch-callout: none) {
  .mv-platform,
  .mv-why {
    background-attachment: scroll;
  }
}
