/* ==========================================================================
   FINAMAN ERP — Product Page Styles
   Logix Infotech LLP
   Prefix: fm- (scoped to avoid collisions with host theme)
   ========================================================================== */

.fm-scope {
  --fm-primary: #123A7A;
  --fm-primary-dark: #0B2856;
  --fm-secondary: #2563EB;
  --fm-accent: #F59E0B;
  --fm-accent-dark: #B45309;
  --fm-bg: #F5F9FF;
  --fm-white: #FFFFFF;
  --fm-text: #111827;
  --fm-grey: #6B7280;
  --fm-grey-light: #E5EAF3;
  --fm-line: rgba(17, 24, 39, 0.08);

  --fm-radius-sm: 10px;
  --fm-radius-md: 16px;
  --fm-radius-lg: 24px;
  --fm-radius-xl: 32px;

  --fm-shadow-sm: 0 2px 8px rgba(18, 58, 122, 0.06);
  --fm-shadow-md: 0 8px 24px rgba(18, 58, 122, 0.10);
  --fm-shadow-lg: 0 24px 60px rgba(11, 40, 86, 0.16);
  --fm-shadow-glow: 0 12px 32px rgba(37, 99, 235, 0.28);

  --fm-font-display: 'Sora', 'Segoe UI', sans-serif;
  --fm-font-body: 'Inter', 'Segoe UI', sans-serif;
  --fm-font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --fm-ease: cubic-bezier(0.16, 1, 0.3, 1);

  font-family: var(--fm-font-body);
  color: var(--fm-text);
  background: var(--fm-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.fm-scope * { box-sizing: border-box; }
.fm-scope img { max-width: 100%; display: block; }
.fm-scope a { text-decoration: none; color: inherit; }
.fm-scope ul { list-style: none; margin: 0; padding: 0; }
.fm-scope button { font-family: inherit; }

.fm-scope h1, .fm-scope h2, .fm-scope h3, .fm-scope h4 {
  font-family: var(--fm-font-display);
  color: var(--fm-primary-dark);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

.fm-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.fm-section {
  padding-block: clamp(56px, 9vw, 120px);
  position: relative;
}

.fm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fm-font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fm-secondary);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 7px 16px;
  border-radius: 999px;
}

.fm-section__head {
  max-width: 720px;
  margin: 0 0 clamp(32px, 5vw, 56px);
}
.fm-section__head--center { margin-inline: auto; text-align: center; }

.fm-section__title {
  font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.8rem);
  margin-top: 14px;
}

.fm-section__desc {
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  color: var(--fm-grey);
  margin-top: 14px;
  line-height: 1.7;
}

.fm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--fm-font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 15px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.35s var(--fm-ease), box-shadow 0.35s var(--fm-ease), background 0.35s var(--fm-ease);
  white-space: nowrap;
}
.fm-btn--primary {
  background: linear-gradient(135deg, var(--fm-secondary), var(--fm-primary));
  color: #fff;
  box-shadow: var(--fm-shadow-glow);
}
.fm-btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(37, 99, 235, 0.38); }
.fm-btn--ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--fm-primary-dark);
  border: 1.5px solid rgba(18, 58, 122, 0.18);
  backdrop-filter: blur(6px);
}
.fm-btn--ghost:hover { border-color: var(--fm-secondary); transform: translateY(-3px); background: #fff; }
.fm-btn--light { background: #fff; color: var(--fm-primary-dark); box-shadow: var(--fm-shadow-md); }
.fm-btn--light:hover { transform: translateY(-3px); box-shadow: var(--fm-shadow-lg); }
.fm-btn--outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.fm-btn--outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; transform: translateY(-3px); }
.fm-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.fm-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--fm-ease), transform 0.8s var(--fm-ease); }
.fm-reveal.fm-in { opacity: 1; transform: translateY(0); }
.fm-reveal--stagger.fm-in { transition-delay: var(--fm-delay, 0ms); }

/* ---------- Section 1: Hero ---------- */
.fm-hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 96px) clamp(64px, 9vw, 110px);
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(37, 99, 235, 0.14), transparent 60%),
    radial-gradient(50% 45% at 8% 92%, rgba(245, 158, 11, 0.10), transparent 60%),
    linear-gradient(180deg, #EEF4FF 0%, var(--fm-bg) 100%);
  overflow: hidden;
}
.fm-hero__pattern {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(18,58,122,0.09) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(60% 60% at 70% 20%, #000 40%, transparent 85%);
  opacity: 0.7;
}
.fm-hero__dot { position: absolute; border-radius: 50%; background: var(--fm-secondary); opacity: 0.35; animation: fmFloat 7s ease-in-out infinite; }
.fm-hero__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.fm-hero__content h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.6rem); margin-top: 18px; }
.fm-hero__content .fm-highlight {
  background: linear-gradient(135deg, var(--fm-secondary), var(--fm-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fm-hero__sub { font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem); color: var(--fm-grey); margin-top: 20px; max-width: 560px; line-height: 1.75; }

.fm-trustbullets { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 26px; }
.fm-trustbullets li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; color: var(--fm-primary-dark); }
.fm-trustbullets svg { width: 18px; height: 18px; color: var(--fm-secondary); flex-shrink: 0; }

.fm-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.fm-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.fm-strip li {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--fm-font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em;
  background: #fff; border: 1px solid var(--fm-line); border-radius: 999px;
  padding: 8px 14px; color: var(--fm-primary-dark); box-shadow: var(--fm-shadow-sm);
}
.fm-strip svg { width: 14px; height: 14px; color: var(--fm-accent); }

.fm-hero__visual { position: relative; }
.fm-laptop {
  position: relative;
  background: linear-gradient(160deg, #17285A, var(--fm-primary-dark));
  border-radius: 20px;
  padding: 14px 14px 46px;
  box-shadow: var(--fm-shadow-lg);
  animation: fmDrift 8s ease-in-out infinite;
}
.fm-laptop__notch { position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 60px; height: 5px; border-radius: 4px; background: rgba(255,255,255,0.18); }
.fm-laptop__screen { border-radius: 10px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
.fm-laptop__screen img { width: 100%; height: auto; }
.fm-laptop__base { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 74%; height: 16px; background: linear-gradient(180deg, #1E3363, #0B2856); border-radius: 0 0 12px 12px; }

.fm-float {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--fm-shadow-md);
  font-weight: 700; font-size: 0.82rem; color: var(--fm-primary-dark);
  animation: fmFloat 6s ease-in-out infinite;
}
.fm-float__icon { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.fm-float__icon svg { width: 16px; height: 16px; }
.fm-float--production { top: -6%; left: -8%; animation-delay: 0.2s; }
.fm-float--production .fm-float__icon { background: var(--fm-secondary); }
.fm-float--inventory { top: 16%; right: -10%; animation-delay: 1.1s; }
.fm-float--inventory .fm-float__icon { background: var(--fm-accent); }
.fm-float--quality { bottom: 28%; left: -12%; animation-delay: 2s; }
.fm-float--quality .fm-float__icon { background: #16A34A; }
.fm-float--warehouse { bottom: 4%; right: -6%; animation-delay: 0.7s; }
.fm-float--warehouse .fm-float__icon { background: #7C3AED; }
.fm-float--accounting { top: 46%; left: 44%; animation-delay: 1.6s; }
.fm-float--accounting .fm-float__icon { background: var(--fm-primary); }

@keyframes fmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes fmDrift { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(-0.4deg); } }

/* ---------- Section 2: Trust / Logo carousel ---------- */
.fm-trust { background: #fff; padding-block: clamp(48px, 6vw, 80px); }
.fm-trust__title { text-align: center; font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); color: var(--fm-primary-dark); max-width: 640px; margin: 0 auto; }
.fm-marquee { margin-top: 40px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.fm-marquee__track { display: flex; gap: 20px; width: max-content; animation: fmMarquee 32s linear infinite; }
.fm-marquee.fm-paused .fm-marquee__track { animation-play-state: paused; }
.fm-logo-card {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 220px; height: 84px; background: var(--fm-bg);
  border: 1px solid var(--fm-line); border-radius: var(--fm-radius-md);
  box-shadow: var(--fm-shadow-sm); color: var(--fm-grey); font-weight: 700; font-size: 0.95rem;
}
.fm-logo-card svg { width: 22px; height: 22px; color: var(--fm-secondary); }
@keyframes fmMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.fm-trustindicators { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.fm-trustindicators li { text-align: center; padding: 20px 14px; border-radius: var(--fm-radius-md); background: var(--fm-bg); }
.fm-trustindicators strong { display: block; font-family: var(--fm-font-display); color: var(--fm-primary-dark); font-size: 1.05rem; margin-bottom: 6px; }
.fm-trustindicators span { color: var(--fm-grey); font-size: 0.88rem; }

/* ---------- Section 3: About ---------- */
.fm-about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.fm-about__media { position: relative; border-radius: var(--fm-radius-xl); overflow: hidden; box-shadow: var(--fm-shadow-lg); }
.fm-about__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.fm-about__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11,40,86,0.55));
}
.fm-checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; margin-top: 28px; }
.fm-checklist li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--fm-primary-dark); font-size: 0.95rem; }
.fm-checklist span { width: 24px; height: 24px; border-radius: 50%; background: rgba(37,99,235,0.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fm-checklist svg { width: 13px; height: 13px; color: var(--fm-secondary); }

/* ---------- Section 4: Industries ---------- */
.fm-industries__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fm-ind-card {
  border-radius: var(--fm-radius-lg); overflow: hidden; background: #fff;
  box-shadow: var(--fm-shadow-sm); transition: transform 0.45s var(--fm-ease), box-shadow 0.45s var(--fm-ease);
  display: flex; flex-direction: column;
}
.fm-ind-card:hover { transform: translateY(-8px); box-shadow: var(--fm-shadow-lg); }
.fm-ind-card__media { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.fm-ind-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--fm-ease); }
.fm-ind-card:hover .fm-ind-card__media img { transform: scale(1.06); }
.fm-ind-card__media--icon { display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, var(--fm-primary), var(--fm-secondary)); }
.fm-ind-card__media--icon svg { width: 46px; height: 46px; color: #fff; opacity: 0.95; }
.fm-ind-card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.fm-ind-card__body h3 { font-size: 1.12rem; }
.fm-ind-card__body p { color: var(--fm-grey); font-size: 0.9rem; line-height: 1.6; flex: 1; }
.fm-ind-card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.86rem; color: var(--fm-secondary); margin-top: 4px; }
.fm-ind-card__link svg { width: 15px; height: 15px; transition: transform 0.3s var(--fm-ease); }
.fm-ind-card:hover .fm-ind-card__link svg { transform: translateX(4px); }

/* ---------- Section 5: Workflow ---------- */
.fm-workflow { background: linear-gradient(180deg, #fff, var(--fm-bg)); }
.fm-flow { position: relative; margin-top: 12px; }
.fm-flow__track {
  display: flex; gap: 0; overflow-x: auto; padding-bottom: 20px; scroll-snap-type: x proximity;
  -ms-overflow-style: none; scrollbar-width: none;
}
.fm-flow__track::-webkit-scrollbar { display: none; }
.fm-flow__step { flex: 0 0 auto; width: 168px; scroll-snap-align: start; text-align: center; position: relative; padding-top: 8px; }
.fm-flow__num { font-family: var(--fm-font-mono); font-size: 0.7rem; color: var(--fm-secondary); letter-spacing: 0.08em; }
.fm-flow__node {
  width: 64px; height: 64px; margin: 10px auto 14px; border-radius: 18px;
  background: #fff; border: 1.5px solid var(--fm-line); box-shadow: var(--fm-shadow-sm);
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 2;
  transition: box-shadow 0.4s var(--fm-ease), transform 0.4s var(--fm-ease), border-color 0.4s var(--fm-ease);
}
.fm-flow__step:hover .fm-flow__node { box-shadow: var(--fm-shadow-glow); transform: translateY(-4px); border-color: var(--fm-secondary); }
.fm-flow__node svg { width: 26px; height: 26px; color: var(--fm-primary); }
.fm-flow__step h3 { font-size: 0.92rem; }
.fm-flow__connector {
  position: absolute; top: 42px; left: 50%; width: 100%; height: 2px; z-index: 1;
  background-image: linear-gradient(90deg, var(--fm-secondary) 0 6px, transparent 6px 14px);
  background-size: 14px 2px;
}
.fm-flow__connector--pulse::before {
  content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--fm-accent); box-shadow: 0 0 0 4px rgba(245,158,11,0.2);
  animation: fmPulseMove 3.2s var(--fm-ease) infinite;
}
@keyframes fmPulseMove { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
.fm-flow__step:last-child .fm-flow__connector { display: none; }

/* ---------- Section 6: Features (dark) ---------- */
.fm-features {
  background: linear-gradient(160deg, var(--fm-primary-dark) 0%, var(--fm-primary) 55%, #16408C 100%);
  color: #fff;
}
.fm-features .fm-section__head { max-width: 640px; }
.fm-features .fm-section__title { color: #fff; }
.fm-features .fm-section__desc { color: rgba(255,255,255,0.72); }
.fm-features .fm-eyebrow { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.24); color: #fff; }
.fm-features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fm-feat-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--fm-radius-md); padding: 22px 18px; backdrop-filter: blur(6px);
  transition: transform 0.4s var(--fm-ease), background 0.4s var(--fm-ease), border-color 0.4s var(--fm-ease);
}
.fm-feat-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.12); border-color: rgba(245,158,11,0.5); }
.fm-feat-card__icon { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--fm-accent), #FBBF24); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.fm-feat-card__icon svg { width: 21px; height: 21px; color: #12233F; }
.fm-feat-card h3 { color: #fff; font-size: 0.98rem; margin-bottom: 6px; }
.fm-feat-card p { color: rgba(255,255,255,0.62); font-size: 0.82rem; line-height: 1.55; }

/* ---------- Section 7: Screenshots ---------- */
.fm-tabs__nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.fm-tabs__btn {
  background: #fff; border: 1.5px solid var(--fm-line); color: var(--fm-grey); font-weight: 600; font-size: 0.88rem;
  padding: 11px 20px; border-radius: 999px; cursor: pointer; transition: all 0.3s var(--fm-ease);
}
.fm-tabs__btn:hover { border-color: var(--fm-secondary); color: var(--fm-primary-dark); }
.fm-tabs__btn[aria-selected="true"] { background: linear-gradient(135deg, var(--fm-secondary), var(--fm-primary)); color: #fff; border-color: transparent; box-shadow: var(--fm-shadow-glow); }
.fm-tabs__stage {
  position: relative; border-radius: var(--fm-radius-xl); overflow: hidden; background: linear-gradient(160deg, #17285A, var(--fm-primary-dark));
  padding: clamp(14px, 2.4vw, 26px); box-shadow: var(--fm-shadow-lg);
}
.fm-tabs__panel { display: none; }
.fm-tabs__panel[data-active="true"] { display: block; animation: fmFadeIn 0.5s var(--fm-ease); }
.fm-tabs__panel img { width: 100%; border-radius: 12px; }
.fm-tabs__caption { color: rgba(255,255,255,0.85); text-align: center; font-size: 0.9rem; margin-top: 14px; }
@keyframes fmFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Section 8: Modules ---------- */
.fm-modules__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fm-mod-card {
  background: #fff; border-radius: var(--fm-radius-md); padding: 26px 20px; text-align: center;
  box-shadow: var(--fm-shadow-sm); transition: transform 0.4s var(--fm-ease), box-shadow 0.4s var(--fm-ease);
}
.fm-mod-card:hover { transform: translateY(-6px); box-shadow: var(--fm-shadow-md); }
.fm-mod-card__icon { width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 13px; background: rgba(37,99,235,0.1); display: flex; align-items: center; justify-content: center; }
.fm-mod-card__icon svg { width: 22px; height: 22px; color: var(--fm-secondary); }
.fm-mod-card h3 { font-size: 0.92rem; }

/* ---------- Section 9: Comparison ---------- */
.fm-compare { overflow-x: auto; border-radius: var(--fm-radius-lg); box-shadow: var(--fm-shadow-md); }
.fm-compare table { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; }
.fm-compare th, .fm-compare td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--fm-line); font-size: 0.92rem; }
.fm-compare th:first-child, .fm-compare td:first-child { text-align: left; font-weight: 600; color: var(--fm-primary-dark); }
.fm-compare thead th { font-family: var(--fm-font-display); font-size: 0.95rem; color: var(--fm-grey); background: var(--fm-bg); }
.fm-compare thead th.fm-compare__highlight { color: #fff; background: linear-gradient(135deg, var(--fm-secondary), var(--fm-primary)); }
.fm-compare td.fm-compare__highlight { background: rgba(37,99,235,0.05); }
.fm-compare tr:last-child td { border-bottom: none; }
.fm-compare svg.fm-yes { width: 18px; height: 18px; color: #16A34A; }
.fm-compare svg.fm-no { width: 18px; height: 18px; color: #D1D5DB; }

/* ---------- Section 10: Benefits ---------- */
.fm-benefits__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fm-ben-card { background: #fff; border-radius: var(--fm-radius-lg); padding: 30px 26px; box-shadow: var(--fm-shadow-sm); transition: transform 0.4s var(--fm-ease), box-shadow 0.4s var(--fm-ease); }
.fm-ben-card:hover { transform: translateY(-6px); box-shadow: var(--fm-shadow-md); }
.fm-ben-card__icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(245,158,11,0.12); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.fm-ben-card__icon svg { width: 24px; height: 24px; color: var(--fm-accent-dark); }
.fm-ben-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.fm-ben-card p { color: var(--fm-grey); font-size: 0.9rem; line-height: 1.6; }
.fm-counter { font-family: var(--fm-font-display); font-size: 2rem; color: var(--fm-primary-dark); display: block; margin-bottom: 4px; }
.fm-counter__label { font-size: 0.78rem; color: var(--fm-grey); font-family: var(--fm-font-mono); letter-spacing: 0.04em; }

/* ---------- Section 11: Video ---------- */
.fm-video { background: linear-gradient(160deg, var(--fm-primary-dark), #0A1F42); color: #fff; }
.fm-video__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.fm-video__frame { position: relative; border-radius: var(--fm-radius-xl); overflow: hidden; box-shadow: var(--fm-shadow-lg); cursor: pointer; }
.fm-video__frame img { width: 100%; aspect-ratio: 16/10; object-fit: cover; filter: brightness(0.62); transition: filter 0.4s var(--fm-ease); }
.fm-video__frame:hover img { filter: brightness(0.5); }
.fm-video__play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%;
  background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 14px rgba(255,255,255,0.12); transition: transform 0.35s var(--fm-ease);
}
.fm-video__frame:hover .fm-video__play { transform: scale(1.08); }
.fm-video__play svg { width: 30px; height: 30px; color: var(--fm-primary); margin-left: 4px; }
.fm-video .fm-section__title, .fm-video h2 { color: #fff; }
.fm-video__list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.fm-video__list li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,0.82); font-size: 0.95rem; }
.fm-video__list svg { width: 20px; height: 20px; color: var(--fm-accent); flex-shrink: 0; margin-top: 2px; }

/* ---------- Section 12: Testimonials ---------- */
.fm-testi__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fm-testi-card { background: #fff; border-radius: var(--fm-radius-lg); padding: 28px 24px; box-shadow: var(--fm-shadow-sm); transition: transform 0.4s var(--fm-ease), box-shadow 0.4s var(--fm-ease); display: flex; flex-direction: column; gap: 16px; }
.fm-testi-card:hover { transform: translateY(-6px); box-shadow: var(--fm-shadow-md); }
.fm-testi-card__stars { display: flex; gap: 3px; }
.fm-testi-card__stars svg { width: 16px; height: 16px; color: var(--fm-accent); }
.fm-testi-card p.fm-quote { font-size: 0.96rem; line-height: 1.65; color: var(--fm-text); flex: 1; }
.fm-testi-card__person { display: flex; align-items: center; gap: 12px; }
.fm-testi-card__avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.fm-testi-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.fm-testi-card__person strong { display: block; font-size: 0.9rem; color: var(--fm-primary-dark); }
.fm-testi-card__person span { font-size: 0.8rem; color: var(--fm-grey); }

/* ---------- Section 13: Downloads ---------- */
.fm-downloads__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fm-dl-card { background: #fff; border-radius: var(--fm-radius-md); padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--fm-shadow-sm); transition: transform 0.4s var(--fm-ease), box-shadow 0.4s var(--fm-ease); }
.fm-dl-card:hover { transform: translateY(-6px); box-shadow: var(--fm-shadow-md); }
.fm-dl-card__icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(18,58,122,0.08); display: flex; align-items: center; justify-content: center; }
.fm-dl-card__icon svg { width: 22px; height: 22px; color: var(--fm-primary); }
.fm-dl-card h3 { font-size: 1rem; }
.fm-dl-card p { font-size: 0.84rem; color: var(--fm-grey); flex: 1; line-height: 1.5; }
.fm-dl-card .fm-btn { align-self: flex-start; padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Section 14: Specifications ---------- */
.fm-specs__table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--fm-radius-lg); overflow: hidden; box-shadow: var(--fm-shadow-md); }
.fm-specs__table tr:nth-child(even) { background: var(--fm-bg); }
.fm-specs__table th, .fm-specs__table td { text-align: left; padding: 16px 24px; font-size: 0.94rem; border-bottom: 1px solid var(--fm-line); }
.fm-specs__table th { width: 38%; color: var(--fm-grey); font-weight: 600; }
.fm-specs__table td { color: var(--fm-primary-dark); font-weight: 600; }
.fm-specs__table tr:last-child th, .fm-specs__table tr:last-child td { border-bottom: none; }

/* ---------- Section 15: FAQ ---------- */
.fm-faq__list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.fm-faq-item { background: #fff; border: 1px solid var(--fm-line); border-radius: var(--fm-radius-md); overflow: hidden; }
.fm-faq-item__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--fm-font-display); font-size: 0.98rem; color: var(--fm-primary-dark); font-weight: 600;
}
.fm-faq-item__q svg { width: 20px; height: 20px; color: var(--fm-secondary); flex-shrink: 0; transition: transform 0.35s var(--fm-ease); }
.fm-faq-item[data-open="true"] .fm-faq-item__q svg { transform: rotate(45deg); }
.fm-faq-item__a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--fm-ease); }
.fm-faq-item__a-inner { padding: 0 22px 20px; color: var(--fm-grey); font-size: 0.92rem; line-height: 1.65; }

/* ---------- Section 16: Final CTA ---------- */
.fm-cta {
  background: linear-gradient(135deg, var(--fm-primary) 0%, var(--fm-secondary) 100%);
  border-radius: var(--fm-radius-xl);
  margin-inline: clamp(16px, 4vw, 48px);
  padding: clamp(48px, 8vw, 88px) clamp(24px, 6vw, 64px);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.fm-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 70% at 50% 0%, rgba(255,255,255,0.16), transparent 70%);
}
.fm-cta__inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.fm-cta h2 { color: #fff; font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem); }
.fm-cta p { color: rgba(255,255,255,0.85); margin-top: 16px; font-size: clamp(0.98rem, 0.9rem + 0.3vw, 1.12rem); line-height: 1.7; }
.fm-cta__ctas { display: flex; justify-content: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- Video Modal ---------- */
.fm-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 24px; }
.fm-modal[data-open="true"] { display: flex; }
.fm-modal__backdrop { position: absolute; inset: 0; background: rgba(11,40,86,0.82); backdrop-filter: blur(4px); }
.fm-modal__box { position: relative; width: 100%; max-width: 920px; aspect-ratio: 16/9; background: #000; border-radius: var(--fm-radius-md); overflow: hidden; box-shadow: var(--fm-shadow-lg); }
.fm-modal__box iframe, .fm-modal__box video { width: 100%; height: 100%; border: 0; }
.fm-modal__close { position: absolute; top: -44px; right: 0; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fm-modal__close svg { width: 18px; height: 18px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .fm-scope * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ==========================================================================
   Responsive — Laptop (≤1280px)
   ========================================================================== */
@media (max-width: 1280px) {
  .fm-features__grid { grid-template-columns: repeat(3, 1fr); }
  .fm-modules__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Responsive — Tablet (≤900px)
   ========================================================================== */
@media (max-width: 900px) {
  .fm-hero__grid { grid-template-columns: 1fr; }
  .fm-hero__visual { max-width: 460px; margin: 0 auto; order: -1; }
  .fm-hero__content { text-align: left; }
  .fm-about__grid { grid-template-columns: 1fr; }
  .fm-about__media { max-width: 420px; margin: 0 auto; }
  .fm-industries__grid { grid-template-columns: repeat(2, 1fr); }
  .fm-features__grid { grid-template-columns: repeat(2, 1fr); }
  .fm-modules__grid { grid-template-columns: repeat(2, 1fr); }
  .fm-benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .fm-testi__grid { grid-template-columns: repeat(2, 1fr); }
  .fm-downloads__grid { grid-template-columns: repeat(2, 1fr); }
  .fm-video__grid { grid-template-columns: 1fr; }
  .fm-trustindicators { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Responsive — Mobile (≤600px)
   ========================================================================== */
@media (max-width: 600px) {
  .fm-industries__grid,
  .fm-features__grid,
  .fm-modules__grid,
  .fm-benefits__grid,
  .fm-testi__grid,
  .fm-downloads__grid { grid-template-columns: 1fr; }
  .fm-checklist { grid-template-columns: 1fr; }
  .fm-trustindicators { grid-template-columns: 1fr; }
  .fm-hero__ctas { flex-direction: column; }
  .fm-hero__ctas .fm-btn { width: 100%; }
  .fm-cta__ctas { flex-direction: column; }
  .fm-cta__ctas .fm-btn { width: 100%; }
  .fm-float { display: none; }
  .fm-float--production, .fm-float--inventory { display: flex; position: static; margin: 8px auto 0; animation: none; width: fit-content; }
  .fm-hero__visual { display: flex; flex-direction: column; align-items: center; }
  .fm-compare th, .fm-compare td { padding: 12px 14px; font-size: 0.82rem; }
  .fm-specs__table th, .fm-specs__table td { padding: 12px 16px; font-size: 0.86rem; }
}
