/* Cinematic demos — stacked vertically, sky visible inside each iframe */

.fx-cinematic-section {
  position: relative;
  z-index: 1;
  max-width: min(1200px, 96vw);
  margin: 0 auto;
  padding: 40px 20px 96px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.fx-sky .fx-cinematic-section {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.fx-cinematic-section .fx-eyebrow {
  text-align: center;
  margin-bottom: 8px;
}

.fx-cinematic-section > h2 {
  text-align: center;
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.fx-cinematic-section > .fx-section-desc {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  color: var(--fx-text-secondary, #5c5c6a);
  line-height: 1.55;
}

/* Up / down — one demo per row */
.fx-cinematic-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(40px, 6vw, 64px);
  width: 100%;
}

.fx-cinematic-block {
  width: 100%;
  max-width: 100%;
}

.fx-cinematic-block h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-align: center !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  position: static !important;
  padding: 0 !important;
}

/* Dashboard UI + sky render inside the iframe */
.fx-cinematic-frame {
  position: relative;
  width: 100%;
  min-height: min(58vh, 720px);
  height: min(58vh, 720px);
  overflow: hidden !important;
  background: transparent;
  border: none;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(45, 90, 135, 0.18);
  overscroll-behavior: contain;
  isolation: isolate;
}

.fx-cinematic-block--create .fx-cinematic-frame {
  min-height: min(78vh, 920px);
  height: min(78vh, 920px);
}

.fx-cinematic-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  opacity: 0;
  transition: opacity 0.5s ease;
  overflow: hidden;
  overscroll-behavior: none;
  border-radius: 16px !important;
  pointer-events: none;
}

.fx-cinematic-iframe.is-loaded {
  opacity: 1;
}

@media (max-width: 700px) {
  .fx-cinematic-frame {
    min-height: min(52vh, 560px);
    height: min(52vh, 560px);
  }

  .fx-cinematic-block--create .fx-cinematic-frame {
    min-height: min(68vh, 760px);
    height: min(68vh, 760px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-cinematic-iframe {
    transition: none;
    opacity: 1;
  }
}

/* flowix Teams showcase — glass panel, video left, copy right */
.fx-teams-showcase {
  position: relative;
  z-index: 1;
  max-width: min(1320px, 96vw);
  margin: 0 auto;
  padding: 24px 20px 72px;
}

.fx-teams-showcase-title {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-align: center;
}

.fx-teams-showcase-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 3.5vw, 48px);
  align-items: center;
  max-width: none;
  margin: 0;
  padding: clamp(28px, 3.5vw, 40px);
}

.fx-teams-video-frame {
  position: relative;
  width: 100%;
  min-height: min(62vh, 620px);
  height: min(62vh, 620px);
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, #5eb3e8 0%, #87ceeb 42%, #e8f4fc 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  isolation: isolate;
}

.fx-teams-demo-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  opacity: 1;
  border-radius: 16px;
  pointer-events: none;
}

.fx-teams-demo-iframe:not(.is-loaded) {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.fx-teams-demo-iframe.is-loaded {
  opacity: 1;
}

.fx-teams-showcase-copy {
  color: var(--fx-text, #12121a);
}

.fx-teams-showcase-copy .fx-eyebrow {
  color: var(--fx-text-tertiary, #6b7280);
  text-align: left;
  margin-bottom: 8px;
}

.fx-teams-showcase-copy .fx-display-title {
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--fx-text, #12121a);
  text-align: left;
}

.fx-teams-showcase-copy .fx-section-desc {
  text-align: left;
  margin: 0 0 20px;
  max-width: none;
  color: var(--fx-text-secondary, #5c5c6a);
  line-height: 1.55;
}

.fx-teams-showcase-steps {
  margin: 0 0 24px;
  padding-left: 20px;
  color: var(--fx-text-secondary, #5c5c6a);
  font-size: 15px;
  line-height: 1.6;
}

.fx-teams-showcase-steps strong {
  color: var(--fx-text, #12121a);
}

.fx-teams-download-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.fx-teams-showcase-foot {
  margin: 0;
  font-size: 14px;
}

.fx-teams-showcase-foot a {
  color: #156cc2;
  font-weight: 600;
  text-decoration: none;
}

.fx-teams-showcase-foot a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .fx-teams-showcase-panel {
    grid-template-columns: 1fr;
  }

  .fx-teams-video-frame {
    min-height: min(50vh, 480px);
    height: min(50vh, 480px);
  }
}
