/* ==========================================================================
   xCRM For Marketers — page-xcrm-for-marketers.php
   --------------------------------------------------------------------------
   Theme-aware (design-system vars). Indigo/purple/cyan SVG theme
   (replaces old teal #04729f). Prefix: fm- / fm__
   Reuses hp__ header classes from xcrm-home.css.
   ========================================================================== */

/* ==========================================================================
   1. KEYFRAMES
   ========================================================================== */

@keyframes fm-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fm-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fm-bar-grow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes fm-dot-pop {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  70% {
    transform: scale(1.25);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fm-chip-float {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.85;
  }
  50% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

@keyframes fm-spark-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fm-ping-ring {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes fm-wave-out {
  0% {
    stroke-dashoffset: 1;
    opacity: 0.2;
  }
  40% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.4;
  }
}

@keyframes fm-float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes fm-orbit {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(6px, -10px);
  }
  50% {
    transform: translate(-4px, -16px);
  }
  75% {
    transform: translate(-8px, -6px);
  }
}

@keyframes fm-ring-expand {
  0% {
    transform: scale(0.85);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.25;
  }
  100% {
    transform: scale(0.85);
    opacity: 0.55;
  }
}

@keyframes fm-row-in {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fm-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes fm-msg-in {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fm-badge-pop {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fm-wheel-bump {
  0%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-4px);
  }
}

@keyframes fm-cluster-in {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fm-mega-kick {
  0%,
  100% {
    transform: rotate(0deg);
  }
  30% {
    transform: rotate(-6deg);
  }
  60% {
    transform: rotate(3deg);
  }
}

/* ==========================================================================
   2. PAGE BASE
   ========================================================================== */

.fm {
  font-family: var(--x-font-sans);
  background: var(--x-bg);
  color: var(--x-text);
  direction: rtl;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.5s var(--x-ease-smooth), color 0.5s var(--x-ease-smooth);
}

.fm *,
.fm *::before,
.fm *::after {
  box-sizing: border-box;
}

.fm__section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.fm__section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(40px, 6vw, 4px);
}

.fm__section-title {
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--x-text);
  margin: 0 0 12px;
  transition: color 0.5s ease;
}

.fm__section-desc {
  font-size: clamp(0.92rem, 1.8vw, 1.08rem);
  color: var(--x-text-highlight);
  line-height: 1.85;
  margin: 0;
  transition: color 0.5s ease;
}

/* Entrance helper (hero above-the-fold) */

.fm-anim {
  opacity: 0;
  animation: fm-rise 0.8s var(--x-ease-standard) forwards;
}

.fm-anim--1 { animation-delay: 0.1s; }
.fm-anim--2 { animation-delay: 0.25s; }
.fm-anim--3 { animation-delay: 0.4s; }
.fm-anim--4 { animation-delay: 0.55s; }
.fm-anim--5 { animation-delay: 0.7s; }

/* ==========================================================================
   3. HERO
   ========================================================================== */

.fm__hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
}

.fm__hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.fm__hero-bg .hp__grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.85;
  mask-image: radial-gradient(ellipse at 50% 40%, black 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 15%, transparent 70%);
}

.fm__hero-bg .hp__blob-wrap {
  position: absolute;
  will-change: transform;
  transition: transform 0.35s ease-out;
}

.fm__hero-bg .hp__blob-wrap--1 { top: 6%; right: 6%; width: 320px; height: 320px; }
.fm__hero-bg .hp__blob-wrap--2 { bottom: 10%; left: 4%; width: 280px; height: 280px; }
.fm__hero-bg .hp__blob-wrap--3 { top: 35%; left: 28%; width: 160px; height: 160px; }

.fm__hero-bg .hp__ring {
  position: absolute;
  left: 50%;
  top: 45%;
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: fm-ring-expand 9s ease-in-out infinite;
}

.dark .fm__hero-bg .hp__ring {
  border-color: rgba(99, 102, 241, 0.1);
}

.fm__hero-bg .hp__ring--1 { width: min(480px, 75vw); height: min(480px, 75vw); }
.fm__hero-bg .hp__ring--2 { width: min(680px, 100vw); height: min(680px, 100vw); animation-delay: 1.5s; border-style: dashed; }
.fm__hero-bg .hp__ring--3 { width: min(900px, 130vw); height: min(900px, 130vw); animation-delay: 3s; opacity: 0.5; }

/* Hero layout */

.fm__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.fm__hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.fm__title {
  font-size: clamp(1.8rem, 4.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--x-text);
  margin: 0 0 18px;
  transition: color 0.5s ease;
}

.fm__subtitle {
  font-size: clamp(0.98rem, 1.9vw, 1.12rem);
  color: var(--x-text-highlight);
  line-height: 1.9;
  margin: 0 0 28px;
  transition: color 0.5s ease;
}

.fm__hero-kicker {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 800;
  color: var(--x-primary);
  margin: -8px 0 14px;
  transition: color 0.5s ease;
}

.fm__subtitle strong {
  color: var(--x-text);
  font-weight: 800;
  transition: color 0.5s ease;
}

.fm__hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.fm__hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fm__hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--x-text-muted);
  transition: color 0.5s ease;
}

.fm__hero-points svg {
  color: var(--x-success);
  flex-shrink: 0;
}

/* ---- Hero dashboard SVG ---- */

.fm__hero-visual {
  position: relative;
}

.fm__dash {
  position: relative;
  border-radius: var(--x-radius-2xl);
  background: var(--x-base);
  border: 1px solid var(--x-border-subtle);
  box-shadow: var(--x-shadow-main), var(--x-glow-primary-sm);
  overflow: hidden;
  transition: background-color 0.5s ease, border-color 0.5s ease;
}

.fm__dash-svg {
  display: block;
  width: 100%;
  height: auto;
}

.fm-dash-frame {
  fill: var(--x-base);
  stroke: var(--x-border-subtle);
  stroke-width: 1.5;
  transition: fill 0.5s ease, stroke 0.5s ease;
}

.fm-dash-label {
  fill: var(--x-text-muted);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--x-font-sans);
}

.fm-dash-grid {
  stroke: var(--x-border-subtle);
  stroke-width: 1;
  opacity: 0.6;
  transition: stroke 0.5s ease;
}

/* Bars — grow from bottom */
.fm-bar {
  transform-origin: center bottom;
  transform-box: fill-box;
  animation: fm-bar-grow 1s var(--x-ease-standard) forwards;
  animation-delay: calc(0.4s + var(--i, 0) * 0.1s);
  opacity: 0;
  animation-fill-mode: forwards;
}

/* Line draw */
.fm-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: fm-draw 1.6s var(--x-ease-standard) 0.7s forwards;
}

/* Area fade */
.fm-area {
  opacity: 0;
  animation: fm-rise 0.8s ease 1.4s forwards;
}

/* Data dots */
.fm-dot {
  fill: var(--x-primary);
  stroke: var(--x-base);
  stroke-width: 2.5;
  transform-origin: center;
  transform-box: fill-box;
  animation: fm-dot-pop 0.45s var(--x-ease-standard) forwards;
  animation-delay: calc(1s + var(--i, 0) * 0.12s);
  opacity: 0;
}

/* KPI chips */
.fm-chip rect {
  fill: var(--x-surface);
  stroke: var(--x-border);
  stroke-width: 1;
  transition: fill 0.5s ease, stroke 0.5s ease;
}

.fm-chip text {
  fill: var(--x-text);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--x-font-sans);
}

.fm-chip--1 {
  animation: fm-chip-float 4s ease-in-out infinite;
  opacity: 0;
  animation:
    fm-badge-pop 0.5s ease 1.6s forwards,
    fm-chip-float 4s ease-in-out 2.2s infinite;
}

.fm-chip--2 {
  opacity: 0;
  animation:
    fm-badge-pop 0.5s ease 1.9s forwards,
    fm-chip-float 4.5s ease-in-out 2.5s infinite;
}

/* ==========================================================================
   4. STATS
   ========================================================================== */

.fm__stats {
  padding: clamp(48px, 7vw, 72px) 0;
  border-block: 1px solid var(--x-border-subtle);
  background: var(--x-base);
  transition: background-color 0.5s ease, border-color 0.5s ease;
}

.fm__stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  text-align: center;
}

.fm__stat-value {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  background: var(--x-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.fm__stat-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--x-text-highlight);
  transition: color 0.5s ease;
}

/* ==========================================================================
   5. VALUE SECTION
   ========================================================================== */

.fm__value {
  padding: clamp(72px, 10vw, 120px) 0;
}

.fm__value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.fm__value-card {
  padding: 28px 26px !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fm__value-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--x-soft-primary);
  color: var(--x-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--x-dur-220) var(--x-ease-standard);
}

.fm__value-card:hover .fm__value-icon {
  transform: scale(1.08) rotate(-5deg);
}

.fm__value-icon--cyan {
  background: var(--x-soft-cyan);
  color: var(--x-cyan);
}

.fm__value-icon--success {
  background: var(--x-soft-success);
  color: var(--x-accent-success);
}

.fm__value-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--x-text);
  margin: 0;
  transition: color 0.5s ease;
}

.fm__value-desc {
  font-size: 0.87rem;
  color: var(--x-text-highlight);
  line-height: 1.8;
  margin: 0;
  transition: color 0.5s ease;
}

/* Sparkline */
.fm__value-spark {
  margin-top: auto;
  padding-top: 12px;
}

.fm__value-spark svg {
  width: 80px;
  height: 28px;
  display: block;
}

.fm-spark-path {
  stroke: var(--x-primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.fm-spark-dot {
  fill: var(--x-primary);
  opacity: 0;
}

[data-reveal].is-visible .fm-spark-dot {
  animation: fm-dot-pop 0.45s var(--x-ease-standard) 1s forwards;
}

[data-reveal].is-visible .fm-spark-path,
.fm__value-card.is-visible .fm-spark-path {
  animation: fm-spark-draw 1.4s var(--x-ease-standard) 0.3s forwards;
}

/* Fallback when already visible via data-reveal */
[data-reveal].is-visible .fm-spark-path {
  animation-play-state: running;
}

/* Solution callout (n8n dedicated) */
.fm__solution {
  margin-top: 28px;
  padding: 24px 26px !important;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.fm__solution-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--x-soft-primary);
  color: var(--x-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.5s ease, background-color 0.5s ease;
}

.fm__solution-body h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--x-text);
  transition: color 0.5s ease;
}

.fm__solution-body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--x-text-highlight);
  transition: color 0.5s ease;
}

.fm__solution-body strong {
  color: var(--x-text);
  font-weight: 800;
  transition: color 0.5s ease;
}

/* Analysis section — 4-column grid on wide screens */
.fm__analysis {
  background: var(--x-surface);
  transition: background-color 0.5s ease;
}

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

/* Gen-3 section */
.fm__gen3 {
  padding: clamp(72px, 10vw, 120px) 0;
}

.fm__quote {
  max-width: 780px;
  margin: 0 auto clamp(32px, 5vw, 48px);
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 44px) !important;
  position: relative;
}

.fm__quote::before {
  content: '«';
  position: absolute;
  top: 8px;
  right: 20px;
  font-size: 4rem;
  line-height: 1;
  color: var(--x-primary);
  opacity: 0.25;
  font-family: Georgia, serif;
  pointer-events: none;
}

.fm__quote p {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  line-height: 2;
  color: var(--x-text-highlight);
  transition: color 0.5s ease;
}

.fm__quote strong {
  color: var(--x-text);
  font-weight: 800;
  transition: color 0.5s ease;
}

/* Redacted / censored text — curiosity (blurred) */
.fm__censored {
  display: inline-block;
  position: relative;
  padding: 0 0.3em;
  margin: 2px 0.1em;
  vertical-align: baseline;
  border-radius: 6px;
  background: var(--x-soft-primary);
  cursor: help;
  transition: background-color 0.5s ease,
    box-shadow var(--x-dur-180) var(--x-ease-standard);
}

.fm__censored > span {
  display: inline-block;
  filter: blur(6px);
  color: var(--x-text);
  font-weight: 700;
  transition: filter var(--x-dur-220) var(--x-ease-standard);
}

.fm__censored:hover {
  box-shadow: 0 0 0 1px var(--x-primary);
}

.fm__censored:hover > span {
  filter: blur(4px);
}

.fm__censored.is-pinged {
  animation: fm-censored-ping 0.55s var(--x-ease-standard);
}

@keyframes fm-censored-ping {
  /* 0%   { transform: scale(1); }
  35%  { transform: scale(1.06) rotate(-1deg); }
  70%  { transform: scale(0.98); }
  100% { transform: scale(1); } */
}

.dark .fm__censored {
  background: rgba(99, 102, 241, 0.12);
}

.fm__gen3-grid {
  margin-top: 8px;
}

/* ==========================================================================
   6. USE CASES
   ========================================================================== */

.fm__usecases {
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--x-surface);
  transition: background-color 0.5s ease;
}

.fm__uc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-bottom: clamp(48px, 7vw, 80px);
}

.fm__uc:last-child {
  margin-bottom: 0;
}

.fm__uc--ltr .fm__uc-visual {
  order: 2;
}

.fm__uc--ltr .fm__uc-body {
  order: 1;
}

.fm__uc-visual {
  position: relative;
  border-radius: var(--x-radius-2xl);
  overflow: hidden;
}

.fm-uc-svg {
  display: block;
  width: 100%;
  height: auto;
}

.fm-uc-bg {
  transition: fill 0.5s ease;
}

.fm__uc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--x-primary);
  background: var(--x-soft-primary);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  transition: background-color 0.5s ease;
}

.dark .fm__uc-num {
  color: #a5b4fc;
}

.fm__uc-title {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 800;
  color: var(--x-text);
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  transition: color 0.5s ease;
}

.fm__uc-desc {
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  color: var(--x-text-highlight);
  line-height: 1.9;
  margin: 0 0 20px;
  transition: color 0.5s ease;
}

.fm__uc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fm__uc-tags li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--x-soft-primary);
  color: var(--x-primary);
  font-size: 0.76rem;
  font-weight: 700;
  transition: background-color 0.5s ease;
}

.dark .fm__uc-tags li {
  color: #a5b4fc;
}

/* ---- Shared SVG animation states (start when parent revealed) ---- */

.fm-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

[data-reveal].is-visible .fm-draw,
.fm__uc.is-visible .fm-draw {
  animation: fm-draw 1.3s var(--x-ease-standard) forwards;
}

[data-reveal].is-visible .fm-draw--1 { animation-delay: 0.15s; }
[data-reveal].is-visible .fm-draw--2 { animation-delay: 0.5s; }
[data-reveal].is-visible .fm-draw--3 { animation-delay: 0.7s; }
[data-reveal].is-visible .fm-draw--link { animation-delay: 0.6s; }
[data-reveal].is-visible .fm-draw--link-2 { animation-delay: 0.85s; }
[data-reveal].is-visible .fm-draw--link-3 { animation-delay: 1.05s; }
[data-reveal].is-visible .fm-draw--check { animation-delay: 0.9s; }
[data-reveal].is-visible .fm-draw--check-2 { animation-delay: 1.1s; }

/* ==========================================================================
   USE CASE 1 — Abandoned cart
   ========================================================================== */

.fm-uc-cart path,
.fm-uc-cart .fm-draw {
  stroke: var(--x-primary);
  fill: none;
}

.fm-uc-wheel {
  fill: var(--x-primary);
  opacity: 0.85;
}

[data-reveal].is-visible .fm-uc-wheel--1 {
  animation: fm-wheel-bump 0.6s ease 0.9s;
}

[data-reveal].is-visible .fm-uc-wheel--2 {
  animation: fm-wheel-bump 0.6s ease 1.05s;
}

.fm-uc-badge-bg {
  fill: var(--x-soft-success);
  stroke: var(--x-success);
  stroke-width: 1.5;
}

.fm-uc-badge-abandoned {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}

[data-reveal].is-visible .fm-uc-badge-abandoned {
  animation: fm-badge-pop 0.55s var(--x-ease-standard) 0.8s forwards;
}

.fm-uc-badge-abandoned .fm-draw {
  stroke: var(--x-accent-success);
}

.fm-uc-msg-bg {
  fill: var(--x-base);
  stroke: var(--x-border);
  stroke-width: 1.5;
  transition: fill 0.5s ease, stroke 0.5s ease;
}

.fm-uc-msg-tail {
  fill: var(--x-base);
  stroke: var(--x-border);
  stroke-width: 1.5;
  transition: fill 0.5s ease, stroke 0.5s ease;
}

.fm-uc-msg-avatar {
  fill: var(--x-primary);
}

.fm-uc-msg-line {
  fill: var(--x-text-muted);
  opacity: 0.45;
}

.fm-uc-msg {
  opacity: 0;
  transform-origin: 20% 100%;
}

[data-reveal].is-visible .fm-uc-msg {
  animation: fm-msg-in 0.6s var(--x-ease-standard) 1.1s forwards;
}

.fm-uc-pulse {
  fill: none;
  stroke: var(--x-primary);
  stroke-width: 2;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}

[data-reveal].is-visible .fm-uc-pulse {
  animation: fm-ping-ring 1.4s ease 1.3s 2;
}

/* ==========================================================================
   USE CASE 2 — Active customers (radar)
   ========================================================================== */

.fm-uc-ring {
  fill: none;
  stroke: var(--x-primary);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}

[data-reveal].is-visible .fm-uc-ring--1 {
  animation: fm-ring-expand 3.5s ease-in-out 0.2s infinite;
  opacity: 0.45;
}

[data-reveal].is-visible .fm-uc-ring--2 {
  animation: fm-ring-expand 3.5s ease-in-out 0.7s infinite;
  opacity: 0.3;
}

[data-reveal].is-visible .fm-uc-ring--3 {
  animation: fm-ring-expand 3.5s ease-in-out 1.2s infinite;
  opacity: 0.18;
}

.fm-uc-person-head,
.fm-uc-person-body {
  opacity: 0;
}

[data-reveal].is-visible .fm-uc-person-head,
[data-reveal].is-visible .fm-uc-person-body {
  animation: fm-badge-pop 0.55s var(--x-ease-standard) 0.3s forwards;
}

.fm-uc-orbit-dot {
  fill: var(--x-cyan);
  opacity: 0;
}

[data-reveal].is-visible .fm-uc-orbit-dot--1 { animation: fm-orbit 7s ease-in-out 0.5s infinite, fm-badge-pop 0.4s ease 0.5s forwards; }
[data-reveal].is-visible .fm-uc-orbit-dot--2 { animation: fm-orbit 8s ease-in-out 0.7s infinite reverse, fm-badge-pop 0.4s ease 0.7s forwards; }
[data-reveal].is-visible .fm-uc-orbit-dot--3 { animation: fm-orbit 6.5s ease-in-out 0.9s infinite, fm-badge-pop 0.4s ease 0.9s forwards; }
[data-reveal].is-visible .fm-uc-orbit-dot--4 { animation: fm-orbit 7.5s ease-in-out 1.1s infinite reverse, fm-badge-pop 0.4s ease 1.1s forwards; }

.fm-uc-chip rect {
  fill: var(--x-base);
  stroke: var(--x-border);
  stroke-width: 1;
  transition: fill 0.5s ease, stroke 0.5s ease;
}

.fm-uc-chip circle {
  fill: var(--x-success);
}

.fm-uc-chip text {
  fill: var(--x-text);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--x-font-sans);
}

.fm-uc-chip {
  opacity: 0;
}

[data-reveal].is-visible .fm-uc-chip {
  animation: fm-badge-pop 0.5s var(--x-ease-standard) 1s forwards, fm-float-soft 4s ease-in-out 1.6s infinite;
}

/* ==========================================================================
   USE CASE 3 — Campaigns (megaphone)
   ========================================================================== */

.fm-uc-mega {
  transform-origin: 30% 50%;
}

[data-reveal].is-visible .fm-uc-mega {
  animation: fm-mega-kick 2.4s ease-in-out 0.4s 2;
}

.fm-uc-mega-handle {
  fill: var(--x-primary);
}

.fm-uc-mega-grip {
  stroke: var(--x-primary);
  fill: none;
}

.fm-uc-wave {
  stroke: var(--x-primary);
  fill: none;
  opacity: 0;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

[data-reveal].is-visible .fm-uc-wave--1 {
  animation: fm-wave-out 1.2s ease 0.5s infinite;
}

[data-reveal].is-visible .fm-uc-wave--2 {
  animation: fm-wave-out 1.2s ease 0.75s infinite;
}

[data-reveal].is-visible .fm-uc-wave--3 {
  animation: fm-wave-out 1.2s ease 1s infinite;
}

.fm-uc-float-chip rect {
  fill: var(--x-base);
  stroke: var(--x-border);
  stroke-width: 1;
  transition: fill 0.5s ease, stroke 0.5s ease;
}

.fm-uc-float-chip text {
  fill: var(--x-text);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--x-font-sans);
}

.fm-uc-float-chip {
  opacity: 0;
}

[data-reveal].is-visible .fm-uc-float-chip--1 {
  animation: fm-badge-pop 0.45s ease 0.9s forwards, fm-float-soft 3.5s ease-in-out 1.5s infinite;
}

[data-reveal].is-visible .fm-uc-float-chip--2 {
  animation: fm-badge-pop 0.45s ease 1.1s forwards, fm-float-soft 4s ease-in-out 1.7s infinite;
}

[data-reveal].is-visible .fm-uc-float-chip--3 {
  animation: fm-badge-pop 0.45s ease 1.3s forwards, fm-float-soft 3.8s ease-in-out 1.9s infinite;
}

/* ==========================================================================
   USE CASE 4 — Segmentation (clusters)
   ========================================================================== */

.fm-uc-cluster {
  fill: none;
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}

.fm-uc-cluster--a { stroke: var(--x-primary); }
.fm-uc-cluster--b { stroke: var(--x-cyan); }
.fm-uc-cluster--c { stroke: var(--x-warn); }

[data-reveal].is-visible .fm-uc-cluster--a {
  animation: fm-cluster-in 0.7s var(--x-ease-standard) 0.2s forwards;
}

[data-reveal].is-visible .fm-uc-cluster--b {
  animation: fm-cluster-in 0.7s var(--x-ease-standard) 0.4s forwards;
}

[data-reveal].is-visible .fm-uc-cluster--c {
  animation: fm-cluster-in 0.7s var(--x-ease-standard) 0.6s forwards;
}

.fm-uc-node {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}

.fm-uc-node--a { fill: var(--x-primary); }
.fm-uc-node--b { fill: var(--x-cyan); }
.fm-uc-node--c { fill: var(--x-warn); }

[data-reveal].is-visible .fm-uc-node {
  animation: fm-dot-pop 0.45s var(--x-ease-standard) 0.5s forwards;
}

[data-reveal].is-visible .fm-uc-node:nth-of-type(2) { animation-delay: 0.6s; }
[data-reveal].is-visible .fm-uc-node:nth-of-type(3) { animation-delay: 0.7s; }
[data-reveal].is-visible .fm-uc-node:nth-of-type(4) { animation-delay: 0.8s; }
[data-reveal].is-visible .fm-uc-node:nth-of-type(5) { animation-delay: 0.9s; }

.fm-draw--link {
  stroke: var(--x-border);
  stroke-width: 2;
}

.fm-uc-label-chip rect {
  fill: var(--x-base);
  stroke: var(--x-border);
  stroke-width: 1;
  transition: fill 0.5s ease, stroke 0.5s ease;
}

.fm-uc-label-chip text {
  fill: var(--x-text);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--x-font-sans);
}

.fm-uc-label-chip {
  opacity: 0;
}

[data-reveal].is-visible .fm-uc-label-chip--a {
  animation: fm-badge-pop 0.45s ease 1s forwards;
}

[data-reveal].is-visible .fm-uc-label-chip--b {
  animation: fm-badge-pop 0.45s ease 1.15s forwards;
}

[data-reveal].is-visible .fm-uc-label-chip--c {
  animation: fm-badge-pop 0.45s ease 1.3s forwards;
}

/* ==========================================================================
   USE CASE 5 — Customer management (list)
   ========================================================================== */

.fm-uc-window {
  fill: var(--x-base);
  stroke: var(--x-border);
  stroke-width: 1.5;
  transition: fill 0.5s ease, stroke 0.5s ease;
}

.fm-uc-window-line {
  stroke: var(--x-border-subtle);
  stroke-width: 1;
  transition: stroke 0.5s ease;
}

.fm-uc-row {
  opacity: 0;
}

[data-reveal].is-visible .fm-uc-row--1 {
  animation: fm-row-in 0.55s var(--x-ease-standard) 0.3s forwards;
}

[data-reveal].is-visible .fm-uc-row--2 {
  animation: fm-row-in 0.55s var(--x-ease-standard) 0.55s forwards;
}

[data-reveal].is-visible .fm-uc-row--3 {
  animation: fm-row-in 0.55s var(--x-ease-standard) 0.8s forwards;
}

.fm-uc-avatar {
  fill: var(--x-primary);
  opacity: 0.85;
}

.fm-uc-avatar--2 { fill: var(--x-purple); }
.fm-uc-avatar--3 { fill: var(--x-cyan); }

.fm-uc-row-line {
  fill: var(--x-text-muted);
  opacity: 0.35;
}

.fm-uc-row-line--sub {
  opacity: 0.2;
}

.fm-uc-row-pill {
  fill: var(--x-soft-success);
}

.fm-uc-row-pill--2 {
  fill: var(--x-soft-info);
}

.fm-draw--check {
  stroke: var(--x-accent-success);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fm-draw--check-2 {
  stroke: var(--x-accent-info);
}

.fm-uc-progress-bg {
  fill: var(--x-border-subtle);
}

.fm-uc-progress-fill {
  fill: url(#uc5bar);
  transform-origin: right center;
  transform-box: fill-box;
}

[data-reveal].is-visible .fm-uc-progress-fill {
  animation: fm-progress 1.2s var(--x-ease-standard) 1s forwards;
  transform: scaleX(0);
}

/* ==========================================================================
   7. FEATURES GRID
   ========================================================================== */

.fm__features {
  padding: clamp(72px, 10vw, 120px) 0;
}

.fm__features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fm__feature {
  padding: 24px 22px !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fm__feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--x-soft-primary);
  color: var(--x-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--x-dur-220) var(--x-ease-standard);
}

.fm__feature:hover .fm__feature-icon {
  transform: scale(1.1) rotate(-6deg);
}

.fm__feature-icon--cyan { background: var(--x-soft-cyan); color: var(--x-cyan); }
.fm__feature-icon--success { background: var(--x-soft-success); color: var(--x-accent-success); }
.fm__feature-icon--warn { background: var(--x-soft-warn); color: var(--x-accent-warn); }
.fm__feature-icon--purple { background: var(--x-soft-purple); color: var(--x-purple); }
.fm__feature-icon--pink { background: var(--x-soft-pink); color: var(--x-pink); }

.fm__feature-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--x-text);
  margin: 0;
  transition: color 0.5s ease;
}

.fm__feature-desc {
  font-size: 0.84rem;
  color: var(--x-text-highlight);
  line-height: 1.75;
  margin: 0;
  transition: color 0.5s ease;
}

/* ==========================================================================
   8. STEPS
   ========================================================================== */

.fm__steps {
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--x-surface);
  transition: background-color 0.5s ease;
}

.fm__steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  position: relative;
}

.fm__steps-list::before {
  content: '';
  position: absolute;
  top: 36px;
  right: 16%;
  left: 16%;
  border-top: 2px dashed rgba(99, 102, 241, 0.25);
}

.fm__step {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.fm__step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--x-gradient-primary);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--x-shadow-primary), var(--x-glow-primary-sm);
  transition: transform var(--x-dur-250) var(--x-ease-standard);
}

.fm__step:hover .fm__step-num {
  transform: scale(1.1);
}

.fm__step-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--x-text);
  margin: 0;
  transition: color 0.5s ease;
}

.fm__step-desc {
  font-size: 0.87rem;
  color: var(--x-text-highlight);
  line-height: 1.8;
  margin: 0;
  max-width: 280px;
  transition: color 0.5s ease;
}

/* ==========================================================================
   9. CTA
   ========================================================================== */

.fm__cta {
  padding: clamp(72px, 10vw, 110px) 0;
}

.fm__cta-box {
  position: relative;
  padding: clamp(44px, 7vw, 72px) clamp(28px, 5vw, 64px);
  text-align: center;
  overflow: hidden;
  border-radius: var(--x-radius-2xl) !important;
}

.fm__cta-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fm__cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.5;
}

.fm__cta-orb--1 {
  width: 260px;
  height: 260px;
  top: -80px;
  right: -40px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent 70%);
  animation: fm-float-soft 8s ease-in-out infinite;
}

.fm__cta-orb--2 {
  width: 220px;
  height: 220px;
  bottom: -70px;
  left: -30px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
  animation: fm-float-soft 10s ease-in-out infinite reverse;
}

.fm__cta-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.fm__cta-title {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 800;
  color: var(--x-text);
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  transition: color 0.5s ease;
}

.fm__cta-desc {
  font-size: clamp(0.9rem, 1.7vw, 1.02rem);
  color: var(--x-text-highlight);
  line-height: 1.85;
  margin: 0 0 30px;
  transition: color 0.5s ease;
}

.fm__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Buttons (mirror homepage) */

.hp__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition:
    background-color var(--x-dur-220) ease,
    border-color var(--x-dur-220) ease,
    color var(--x-dur-220) ease,
    transform var(--x-dur-220) var(--x-ease-standard),
    box-shadow var(--x-dur-220) ease;
}

.hp__btn:hover {
  transform: translateY(-2px);
}

.hp__btn--sm {
  padding: 9px 20px;
  font-size: 0.82rem;
  border-radius: 10px;
}

.hp__btn--primary {
  background: var(--x-primary);
  color: #fff;
  box-shadow: var(--x-shadow-primary);
}

.hp__btn--primary:hover {
  background: var(--x-primary-hover);
  box-shadow: var(--x-shadow-primary-lg);
}

.hp__btn--ghost {
  background: transparent;
  color: var(--x-text);
  border-color: var(--x-border);
}

.hp__btn--ghost:hover {
  border-color: var(--x-primary);
  color: var(--x-primary);
  background: var(--x-soft-primary);
}

/* Badge reuse */

.hp__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--x-soft-primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--x-primary);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 22px;
  transition: background-color 0.5s ease;
}

.hp__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--x-primary);
  animation: fm-ping-ring 2.4s ease-in-out infinite;
}

.hp__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--x-soft-primary);
  color: var(--x-primary);
  border: 1px solid rgba(99, 102, 241, 0.18);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 18px;
  transition: background-color 0.5s ease;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */

.fm__footer {
  border-top: 1px solid var(--x-border-subtle);
  padding: 26px 0;
  background: var(--x-base);
  transition: background-color 0.5s ease, border-color 0.5s ease;
}

.fm__footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.fm__footer-copy {
  font-size: 0.78rem;
  color: var(--x-text-muted);
  margin: 0;
  transition: color 0.5s ease;
}

.fm__footer-links {
  display: flex;
  gap: 18px;
}

.fm__footer-links a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--x-text-highlight);
  text-decoration: none;
  transition: color var(--x-dur-180) ease;
}

.fm__footer-links a:hover {
  color: var(--x-primary);
}

/* ==========================================================================
   11. RESPONSIVE
   ========================================================================== */

@media (max-width: 960px) {
  .fm__hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .fm__hero-copy {
    align-items: center;
  }

  .fm__hero-visual {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .fm__uc {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fm__uc--ltr .fm__uc-visual,
  .fm__uc--ltr .fm__uc-body {
    order: unset;
  }

  .fm__value-grid,
  .fm__features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fm__steps-list::before {
    display: none;
  }
}

@media (max-width: 720px) {
  .fm__stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }

  .fm__value-grid,
  .fm__features-grid {
    grid-template-columns: 1fr;
  }

  .fm__steps-list {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .fm__footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .hp__nav {
    display: none;
  }
}

/* ==========================================================================
   12. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .fm-anim,
  .fm-bar,
  .fm-line,
  .fm-area,
  .fm-dot,
  .fm-chip,
  .fm-spark-path,
  .fm-draw,
  .fm-uc-wheel,
  .fm-uc-badge-abandoned,
  .fm-uc-msg,
  .fm-uc-pulse,
  .fm-uc-ring,
  .fm-uc-person-head,
  .fm-uc-person-body,
  .fm-uc-orbit-dot,
  .fm-uc-chip,
  .fm-uc-mega,
  .fm-uc-wave,
  .fm-uc-float-chip,
  .fm-uc-cluster,
  .fm-uc-node,
  .fm-uc-label-chip,
  .fm-uc-row,
  .fm-uc-progress-fill,
  .fm__cta-orb,
  .hp__badge-dot,
  .fm__hero-bg .hp__ring {
    animation: none !important;
  }

  .fm-anim,
  .fm-bar,
  .fm-area,
  .fm-dot,
  .fm-chip,
  .fm-uc-badge-abandoned,
  .fm-uc-msg,
  .fm-uc-person-head,
  .fm-uc-person-body,
  .fm-uc-orbit-dot,
  .fm-uc-chip,
  .fm-uc-float-chip,
  .fm-uc-cluster,
  .fm-uc-node,
  .fm-uc-label-chip,
  .fm-uc-row {
    opacity: 1 !important;
    transform: none !important;
  }

  .fm-line,
  .fm-draw,
  .fm-spark-path,
  .fm-uc-wave {
    stroke-dashoffset: 0 !important;
  }

  .fm-spark-dot {
    opacity: 1 !important;
    animation: none !important;
  }

  .fm-uc-progress-fill {
    transform: scaleX(1) !important;
  }

  .fm-uc-ring {
    opacity: 0.25 !important;
  }
}
