/* ===== SMART FM x Cleaning Robot — premium section =====
   Save as Assets/CSS/SmartFMCleaningIntegration.css (link after Home.css) */
.SFMCSection {
  --bg1: #0a0f1a;
  --bg2: #111a2c;
  --blue: #2f7bff;
  --cyan: #38bdf8;
  --ink: #e8eefc;
  --mute: #9fb0cf;
  --glass: rgba(255, 255, 255, .055);
  --line: rgba(255, 255, 255, .11);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(64px, 8vw, 80px) 5%;
  color: #fff;
  font-family: 'Questrial', 'Josefin Sans', sans-serif;
  background: linear-gradient(180deg, #0b1018 0%, var(--bg2) 55%, #0b1018 100%);
}

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

.SFMCSection::before {
  /* faint grid */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%);
}

.SFMCSection::after {
  /* glows */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(600px 400px at 18% 45%, rgba(47, 123, 255, .22), transparent 70%),
    radial-gradient(520px 380px at 85% 60%, rgba(56, 189, 248, .14), transparent 70%);
}

.SFMCInner {
  max-width: 1240px;
  margin: 0 auto
}

/* Header */
.SFMCHead {
  text-align: center;
  margin: 0 auto clamp(40px, 5vw, 72px)
}

.SFMCBrands {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  justify-content: center
}

.SFMCLogoPill {
  background: #fff;
  border-radius: 999px;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35)
}

.SFMCLogoPill img {
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block
}

.SFMCCross {
  color: var(--mute);
  font-size: 1.1rem
}

.SFMCPartner {
  border: 1px solid var(--line);
  background: var(--glass);
  border-radius: 999px;
  padding: 20px 32px;
  font-size: 20px;
  letter-spacing: .04em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px)
}

.SFMCTitle {
  margin: 0 0 10px;
  font-family: 'Josefin Sans', 'Questrial', sans-serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
  font-size: clamp(2rem, 5.2vw, 3.9rem)
}

.SFMCTitleSpan {
  display: block;
  background: linear-gradient(90deg, #8cc4ff, var(--cyan) 60%, #7aa8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(2rem, 5.2vw, 3.9rem);
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.SFMCLead {
  margin: 0 auto;
  color: var(--mute);
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  line-height: 1.7;
  width: 100% !important;
}

.SFMCLead b {
  color: #fff;
  font-weight: 400
}

/* Stage */
.SFMCStage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1.15fr);
  align-items: center
}

.SFMCGlass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 26px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .08)
}

/* Robot card */
.SFMCRobotCard {
  padding: 28px 28px 30px;
  position: relative
}

.SFMCBadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(56, 189, 248, .1);
  border: 1px solid rgba(56, 189, 248, .28);
  padding: 6px 12px;
  border-radius: 999px
}

.SFMCRobotStage {
  position: relative;
  height: clamp(240px, 26vw, 330px);
  display: flex;
  align-items: center;
  justify-content: center
}

.SFMCRobotStage::before {
  content: "";
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 123, 255, .45), transparent 65%);
  filter: blur(10px)
}

.SFMCRing {
  position: absolute;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(140, 196, 255, .28);
  animation: SFMCspin 40s linear infinite
}

.SFMCRobotSvg {
  position: relative;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  animation: SFMCfloat 6s ease-in-out infinite;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .45))
}

.SFMCRobotName {
  margin: 6px 0 10px;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.2
}

.SFMCRobotName small {
  display: block;
  color: var(--cyan);
  font-size: .62em;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.7;
}

.SFMCRobotDesc {
  color: var(--mute);
  line-height: 1.65;
  font-size: .95rem
}

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

.SFMCChips li {
  font-size: .78rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  color: var(--ink)
}

/* Connector */
.SFMCLink {
  position: relative;
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center
}

.SFMCLink::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, .7), transparent)
}

.SFMCLinkDot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px 3px rgba(56, 189, 248, .8);
  animation: SFMCtravel 2.8s ease-in-out infinite
}

.SFMCLinkDot.Two {
  animation-delay: 1.4s
}

.SFMCLinkNode {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0f1a30;
  border: 1px solid rgba(56, 189, 248, .5);
  box-shadow: 0 0 0 6px rgba(56, 189, 248, .08), 0 0 24px rgba(47, 123, 255, .5)
}

.SFMCLinkNode svg {
  width: 22px;
  height: 22px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: SFMCspin 8s linear infinite
}

/* Software panel */
.SFMCApp {
  position: relative
}

.SFMCAppBar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line)
}

.SFMCAppBar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2)
}

.SFMCAppTitle {
  margin-left: 8px;
  font-size: .92rem;
  letter-spacing: .04em
}

.SFMCAppTitle b {
  color: var(--cyan);
  font-weight: 400
}

.SFMCLive {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .72rem;
  color: #7ee2a8;
  letter-spacing: .1em;
  text-transform: uppercase
}

.SFMCLive::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  animation: SFMCpulse 1.8s infinite
}

.SFMCAppBody {
  padding: 20px 22px 26px;
  display: grid;
  gap: 18px
}

.SFMCMap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0c1424;
  position: relative
}

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

.SFMCMapTag {
  position: absolute;
  left: 12px;
  top: 10px;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute)
}

.SFMCTasks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none
}

.SFMCTask {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  transition: transform .25s, border-color .25s, background .25s
}

.SFMCTask:hover {
  transform: translateX(4px);
  border-color: rgba(56, 189, 248, .45);
  background: rgba(56, 189, 248, .06)
}

.SFMCTaskName {
  font-size: .92rem
}

.SFMCTaskName small {
  display: block;
  color: var(--mute);
  font-size: .75rem;
  margin-top: 2px
}

.SFMCStatus {
  font-size: .7rem;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap
}

.SFMCStatus.Done {
  background: rgba(52, 211, 153, .14);
  color: #7ee2a8
}

.SFMCStatus.Run {
  background: rgba(47, 123, 255, .2);
  color: #8cb8ff
}

.SFMCStatus.Plan {
  background: rgba(251, 191, 36, .14);
  color: #fcd34d
}

.SFMCBar {
  grid-column: 1/-1;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden
}

.SFMCBar i {
  display: block;
  height: 100%;
  width: var(--p);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.4s cubic-bezier(.2, .8, .2, 1) .6s
}

.SFMCSection.SFMCIn .SFMCBar i {
  transform: scaleX(1)
}

.SFMCToast {
  position: absolute;
  right: -14px;
  bottom: -26px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(18, 28, 50, .92);
  border: 1px solid rgba(56, 189, 248, .35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  font-size: .82rem;
  animation: SFMCfloat 5s ease-in-out infinite
}

.SFMCToast span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(52, 211, 153, .18);
  color: #7ee2a8
}

.SFMCToast small {
  display: block;
  color: var(--mute);
  font-size: .72rem
}

/* Applicable scenarios & floor types */
.SFMCApplicHead {
  margin-top: 60px;
  font-size: 2rem;
  letter-spacing: 0.5px;
}

.SFMCApplic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: clamp(20px, 6vw, 20px)
}

.SFMCGroup {
  padding: 28px
}

.SFMCGroupTitle {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .14em;
  text-transform: uppercase
}

.SFMCGroupTitle::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 12px rgba(56, 189, 248, .7)
}

.SFMCScenarios,
.SFMCFloors {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none
}

.SFMCScenarios {
  grid-template-columns: repeat(3, 1fr)
}

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

.SFMCScenario {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 20px 10px;
  min-height: 118px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  font-size: .86rem;
  line-height: 1.3;
  transition: transform .3s, border-color .3s, box-shadow .3s
}

.SFMCScenIcon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(47, 123, 255, .3), rgba(56, 189, 248, .12));
  border: 1px solid rgba(56, 189, 248, .3)
}

.SFMCScenIcon svg {
  width: 22px;
  height: 22px;
  stroke: #bfe3ff;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round
}

.SFMCFloor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  font-size: .8rem;
  line-height: 1.25;
  transition: transform .3s
}

.SFMCSwatch {
  display: block;
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2), 0 8px 18px rgba(0, 0, 0, .35);
  transition: box-shadow .3s
}

.SFMCScenario:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, .5);
  box-shadow: 0 16px 36px rgba(47, 123, 255, .18)
}

.SFMCFloor:hover {
  transform: translateY(-5px)
}

.SFMCFloor:hover .SFMCSwatch {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, .7), 0 12px 24px rgba(47, 123, 255, .3)
}

.SFMCSwatch.Ceramic {
  background: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.5px) 0 0/6px 6px, #575b61
}

.SFMCSwatch.Epoxy {
  background: linear-gradient(115deg, transparent 44%, #f2b01e 44%, #f2b01e 52%, transparent 52%), #1f6aa5
}

.SFMCSwatch.Rubble {
  background: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.5px) 0 0/5px 5px, radial-gradient(rgba(0, 0, 0, .25) 1px, transparent 1.5px) 2px 3px/7px 7px, #868b94
}

.SFMCSwatch.Marble {
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, .18) 41%, transparent 43%), linear-gradient(60deg, transparent 60%, rgba(255, 255, 255, .12) 61%, transparent 63%), #767a82
}

.SFMCSwatch.Square {
  background: linear-gradient(rgba(0, 0, 0, .28) 2px, transparent 2px) 0 0/25% 25%, linear-gradient(90deg, rgba(0, 0, 0, .28) 2px, transparent 2px) 0 0/25% 25%, #948b7a
}

.SFMCSwatch.Carbide {
  background: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1.5px) 0 0/4px 4px, #46535a
}

.SFMCSwatch.Cement {
  background: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.5px) 0 0/5px 5px, radial-gradient(rgba(0, 0, 0, .2) 1px, transparent 1.5px) 3px 2px/6px 6px, #6d7075
}

.SFMCSwatch.Pvc {
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 10px), #41506b
}

/* Entrance (only hidden once JS marks the section ready) */
.SFMCReady .SFMCReveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--d, 0s)
}

.SFMCReady.SFMCIn .SFMCReveal {
  opacity: 1;
  transform: none
}

@keyframes SFMCfloat {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-12px)
  }
}

@keyframes SFMCspin {
  to {
    transform: rotate(360deg)
  }
}

@keyframes SFMCpulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, .6)
  }

  100% {
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0)
  }
}

@keyframes SFMCtravel {
  0% {
    left: 0;
    opacity: 0
  }

  15% {
    opacity: 1
  }

  85% {
    opacity: 1
  }

  100% {
    left: calc(100% - 10px);
    opacity: 0
  }
}

/* Tablet */
@media (max-width:1024px) {
  .SFMCStage {
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.1fr)
  }

  .SFMCRobotCard {
    padding: 22px
  }

  .SFMCFeatures {
    grid-template-columns: repeat(2, 1fr)
  }

  .SFMCLinkNode {
    width: 38px;
    height: 38px
  }
}

/* Mobile: vertical flow */
@media (max-width:820px) {
  .SFMCStage {
    grid-template-columns: 1fr;
    gap: 0
  }

  .SFMCLink {
    min-height: 90px;
    height: 90px
  }

  .SFMCLink::before {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, rgba(56, 189, 248, .7), transparent)
  }

  .SFMCLinkDot {
    left: 50%;
    top: 0;
    margin: 0 0 0 -5px;
    animation-name: SFMCtravelY
  }

  .SFMCToast {
    right: 10px;
    bottom: -22px
  }

  .SFMCApp {
    margin-bottom: 24px
  }
}

@keyframes SFMCtravelY {
  0% {
    top: 0;
    opacity: 0
  }

  15% {
    opacity: 1
  }

  85% {
    opacity: 1
  }

  100% {
    top: calc(100% - 10px);
    opacity: 0
  }
}

@media (max-width:520px) {
  .SFMCSection {
    padding: 56px 18px
  }

  .SFMCGroup {
    padding: 20px 16px
  }

  .SFMCScenarios {
    grid-template-columns: repeat(2, 1fr)
  }

  .SFMCFloors {
    grid-template-columns: repeat(2, 1fr)
  }

  .SFMCAppBody {
    padding: 16px
  }

  .SFMCLogoPill img {
    height: 26px
  }
}

@media (prefers-reduced-motion:reduce) {
  .SFMCSection * {
    animation: none !important;
    transition: none !important
  }

  .SFMCReady .SFMCReveal {
    opacity: 1;
    transform: none
  }

  .SFMCBar i {
    transform: scaleX(1)
  }
}